update scaffold

hmxc
张萌 4 years ago
parent dceada58f6
commit 64c7981cc3

@ -1,4 +1,5 @@
import 'package:akuCommunity/pages/activities_page/member_list_page/member_list_page.dart'; import 'package:akuCommunity/pages/activities_page/member_list_page/member_list_page.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
@ -263,13 +264,8 @@ class _ActivitiesDetailsPageState extends State<ActivitiesDetailsPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize(
child: CommonAppBar(
title: '活动详情', title: '活动详情',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Stack( body: Stack(
children: [ children: [
Container( Container(

@ -1,3 +1,4 @@
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
@ -126,13 +127,8 @@ class _ActivitiesPageState extends State<ActivitiesPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize(
child: CommonAppBar(
title: '社区活动', title: '社区活动',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: RefreshConfiguration( body: RefreshConfiguration(
hideFooterWhenNotFull: true, hideFooterWhenNotFull: true,
child: SmartRefresher( child: SmartRefresher(

@ -1,3 +1,4 @@
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart';
@ -150,13 +151,8 @@ class _MemberListPageState extends State<MemberListPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize(
child: CommonAppBar(
title: '参与人员', title: '参与人员',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: RefreshConfiguration( child: RefreshConfiguration(

@ -1,9 +1,11 @@
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/routers/page_routers.dart';
import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:get/get.dart';
import 'widget/address_edit_item.dart'; import 'widget/address_edit_item.dart';
import 'package:velocity_x/velocity_x.dart';
class AddressEditPage extends StatefulWidget { class AddressEditPage extends StatefulWidget {
final Bundle bundle; final Bundle bundle;
@ -80,14 +82,20 @@ class _AddressEditPageState extends State<AddressEditPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize(
child: CommonAppBar(
title: '${widget.bundle.getMap('details')['title']}', title: '${widget.bundle.getMap('details')['title']}',
subtitle: '保存', actions: [
), InkWell(
preferredSize: Size.fromHeight(kToolbarHeight), onTap: () {
), Get.back();
},
child: Container(
height: 98.w,
width: 48.w + 32.w * 2,
alignment: Alignment.center,
child: '保存'.text.color(Color(0xFFFFC40C)).size(24.sp).make()),
)
],
body: SingleChildScrollView( body: SingleChildScrollView(
physics: NeverScrollableScrollPhysics(), physics: NeverScrollableScrollPhysics(),
child: Container( child: Container(

@ -1,7 +1,9 @@
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:velocity_x/velocity_x.dart';
import 'widget/address_item.dart'; import 'widget/address_item.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class AddressPage extends StatefulWidget { class AddressPage extends StatefulWidget {
AddressPage({Key key}) : super(key: key); AddressPage({Key key}) : super(key: key);
@ -34,14 +36,14 @@ class _AddressPageState extends State<AddressPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize(
child: CommonAppBar(
title: '我的收货地址', title: '我的收货地址',
subtitle: '添加新地址', actions: [
), InkWell(
preferredSize: Size.fromHeight(kToolbarHeight), onTap: () {},
), child: '添加新地址'.text.black.size(24.sp).make(),
)
],
body: ListView.builder( body: ListView.builder(
itemBuilder: (BuildContext context, int index) => AddressItem( itemBuilder: (BuildContext context, int index) => AddressItem(
name: _addressInfoList[index]['name'], name: _addressInfoList[index]['name'],

@ -1,3 +1,4 @@
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:akuCommunity/base/assets_image.dart'; import 'package:akuCommunity/base/assets_image.dart';
@ -49,8 +50,7 @@ class _CertificationPageState extends State<CertificationPage> {
children: [ children: [
Text( Text(
'证件类型', '证件类型',
style: TextStyle( style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)),
fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: 25.w), SizedBox(height: 25.w),
Container( Container(
@ -81,8 +81,7 @@ class _CertificationPageState extends State<CertificationPage> {
children: [ children: [
Text( Text(
'上传证件照片', '上传证件照片',
style: TextStyle( style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)),
fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: 25.w), SizedBox(height: 25.w),
Row( Row(
@ -116,8 +115,7 @@ class _CertificationPageState extends State<CertificationPage> {
children: [ children: [
Text( Text(
title, title,
style: TextStyle( style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)),
fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: 25.w), SizedBox(height: 25.w),
CommonInput(inputController: controller, hintText: hintText) CommonInput(inputController: controller, hintText: hintText)
@ -151,13 +149,8 @@ class _CertificationPageState extends State<CertificationPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize(
child: CommonAppBar(
title: '实名认证', title: '实名认证',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: 32.w, top: 32.w,

Loading…
Cancel
Save