Merge branch 'master' of 192.168.2.201:laiiihz/akuCommunity

* 'master' of 192.168.2.201:laiiihz/akuCommunity:
  update scaffold
  update sacffold
hmxc
小赖 4 years ago
commit 0d9ff360ee

@ -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/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
@ -27,59 +28,7 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
{'title': "#运动会", 'isSelect': false}, {'title': "#运动会", 'isSelect': false},
]; ];
AppBar _appBar() {
return AppBar(
elevation: 0,
backgroundColor: Color(0xffffffff),
centerTitle: true,
title: Text(
'社区',
style: TextStyle(
fontSize: 36.sp,
color: Color(0xff333333),
),
),
leading: InkWell(
onTap: () => Get.back(),
child: Container(
padding: EdgeInsets.only(left: 32.w),
alignment: Alignment.center,
child: Text(
'取消',
style: TextStyle(
fontSize: 34.sp,
color: Color(0xff030303),
),
),
),
),
actions: [
Container(
alignment: Alignment.center,
padding: EdgeInsets.only(right: 32.w),
child: InkWell(
onTap: () {},
child: Container(
height: 64.w,
width: 116.w,
alignment: Alignment.center,
decoration: BoxDecoration(
color: Color(0xffffd000),
borderRadius: BorderRadius.all(Radius.circular(4)),
),
child: Text(
'发表',
style: TextStyle(
fontSize: 34.sp,
color: Color(0xff030303),
),
),
),
),
),
],
);
}
Container _containerTextField() { Container _containerTextField() {
return Container( return Container(
@ -185,17 +134,17 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
.keys .keys
.map((index) => index == 0 .map((index) => index == 0
? Container( ? Container(
padding: EdgeInsets.only(top: 10.w), padding: EdgeInsets.only(top: 10.w),
width: 156.w, width: 156.w,
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: Text( child: Text(
_themeList[index]['title'], _themeList[index]['title'],
style: TextStyle( style: TextStyle(
fontSize: 34.sp, fontSize: 34.sp,
color: Color(0xff333333), color: Color(0xff333333),
),
), ),
), )
)
: InkWell( : InkWell(
onTap: () { onTap: () {
_themeList.forEach((item) { _themeList.forEach((item) {
@ -237,8 +186,47 @@ class _NoteCreatePageState extends State<NoteCreatePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
double _statusHeight = MediaQuery.of(context).padding.top; double _statusHeight = MediaQuery.of(context).padding.top;
return Scaffold( return BeeScaffold(
appBar: _appBar(), title: '社区',
leading: InkWell(
onTap: () => Get.back(),
child: Container(
padding: EdgeInsets.only(left: 32.w),
alignment: Alignment.center,
child: Text(
'取消',
style: TextStyle(
fontSize: 34.sp,
color: Color(0xff030303),
),
),
),
),
actions: [
Container(
alignment: Alignment.center,
padding: EdgeInsets.only(right: 32.w),
child: InkWell(
onTap: () {},
child: Container(
height: 64.w,
width: 116.w,
alignment: Alignment.center,
decoration: BoxDecoration(
color: Color(0xffffd000),
borderRadius: BorderRadius.all(Radius.circular(4)),
),
child: Text(
'发表',
style: TextStyle(
fontSize: 34.sp,
color: Color(0xff030303),
),
),
),
),
),
],
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
height: MediaQuery.of(context).size.height - height: MediaQuery.of(context).size.height -

@ -1,8 +1,8 @@
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 'widget/confirm_address.dart'; import 'widget/confirm_address.dart';
import 'widget/confirm_content.dart'; import 'widget/confirm_content.dart';
import 'widget/confirm_bottom_bar.dart'; import 'widget/confirm_bottom_bar.dart';
@ -13,11 +13,8 @@ class ConfirmOrderPage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '确认订单',
child: CommonAppBar(title: '确认订单'),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Stack( body: Stack(
children: [ children: [
ListView( ListView(

@ -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:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
@ -125,11 +126,8 @@ class PayOrderPage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '付款方式',
child: CommonAppBar(title: '付款方式'),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: ListView( child: ListView(

@ -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:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
@ -92,13 +93,8 @@ class _ConvenientPhonePageState extends State<ConvenientPhonePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '便民电话',
child: CommonAppBar(
title: '便民电话',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: NestedScrollView( child: NestedScrollView(

@ -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/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
@ -52,12 +53,10 @@ class _FitupManagePageState extends State<FitupManagePage>
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28,
), ),
labelPadding: labelPadding: EdgeInsets.symmetric(horizontal: (131.5).w),
EdgeInsets.symmetric(horizontal: (131.5).w),
indicatorColor: Color(0xffffc40c), indicatorColor: Color(0xffffc40c),
indicatorSize: TabBarIndicatorSize.label, indicatorSize: TabBarIndicatorSize.label,
indicatorPadding: indicatorPadding: EdgeInsets.symmetric(horizontal: 21.w),
EdgeInsets.symmetric(horizontal: 21.w),
isScrollable: true, isScrollable: true,
controller: _controller, controller: _controller,
tabs: List.generate( tabs: List.generate(
@ -73,13 +72,8 @@ class _FitupManagePageState extends State<FitupManagePage>
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '装修管理',
child: CommonAppBar(
title: '装修管理',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: NestedScrollView( body: NestedScrollView(
headerSliverBuilder: _silverBuilder, headerSliverBuilder: _silverBuilder,
body: TabBarView( body: TabBarView(

@ -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:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
@ -17,14 +18,12 @@ class DetoCodePage extends StatelessWidget {
children: [ children: [
Text( Text(
'宁波华茂悦峰', '宁波华茂悦峰',
style: TextStyle( style: TextStyle(fontSize: 40.sp, color: Color(0xffffffff)),
fontSize: 40.sp, color: Color(0xffffffff)),
), ),
SizedBox(height: 10.w), SizedBox(height: 10.w),
Text( Text(
'1幢-1单元-702室', '1幢-1单元-702室',
style: TextStyle( style: TextStyle(fontSize: 26.sp, color: Color(0xffffffff)),
fontSize: 26.sp, color: Color(0xffffffff)),
), ),
], ],
), ),
@ -136,13 +135,8 @@ class DetoCodePage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '出户二维码',
child: CommonAppBar(
title: '出户二维码',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Color(0xff333333), color: Color(0xff333333),
child: Stack( child: Stack(

@ -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/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
@ -136,8 +137,7 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
margin: EdgeInsets.only(right: 30.w), margin: EdgeInsets.only(right: 30.w),
child: Text( child: Text(
title, title,
style: TextStyle( style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)),
fontSize: 28.sp, color: Color(0xff333333)),
), ),
), ),
CommonRadio( CommonRadio(
@ -158,13 +158,8 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '物品出户',
child: CommonAppBar(
title: '物品出户',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: Stack( child: Stack(
@ -184,9 +179,7 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
_checkCard('搬运方式', _listMode), _checkCard('搬运方式', _listMode),
_inkWellCheckbox(), _inkWellCheckbox(),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(top: 54.w, bottom: 24.w),
top: 54.w,
bottom: 24.w),
child: Text( child: Text(
'添加图片信息(0/9)', '添加图片信息(0/9)',
style: TextStyle( style: TextStyle(

@ -1,5 +1,6 @@
import 'package:akuCommunity/pages/goods_deto_page/deto_create_page/deto_create_page.dart'; import 'package:akuCommunity/pages/goods_deto_page/deto_create_page/deto_create_page.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.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:get/get.dart'; import 'package:get/get.dart';
@ -87,13 +88,8 @@ class _GoodsDetoPageState extends State<GoodsDetoPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '物品出户',
child: CommonAppBar(
title: '物品出户',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Stack( body: Stack(
children: [ children: [
Padding( Padding(

@ -1,9 +1,10 @@
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/widget/bottom_button.dart'; import 'package:akuCommunity/widget/bottom_button.dart';
import 'package:akuCommunity/widget/cached_image_wrapper.dart'; import 'package:akuCommunity/widget/cached_image_wrapper.dart';
import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:velocity_x/velocity_x.dart';
class GoodsManagePage extends StatefulWidget { class GoodsManagePage extends StatefulWidget {
GoodsManagePage({Key key}) : super(key: key); GoodsManagePage({Key key}) : super(key: key);
@ -111,14 +112,16 @@ class _GoodsManagePageState extends State<GoodsManagePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '借还管理',
child: CommonAppBar( actions: [
title: '借还管理', InkWell(
subtitle: '我的借还物品', onTap: () {},
), child: Container(
preferredSize: Size.fromHeight(kToolbarHeight), padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
), alignment: Alignment.center,
child: '我的借还物品'.text.black.size(28.sp).make()))
],
body: Stack( body: Stack(
children: [ children: [
Column( Column(

@ -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';
@ -207,13 +208,8 @@ class _MineGoodsPageState extends State<MineGoodsPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '我的借还物品',
child: CommonAppBar(
title: '我的借还物品',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: RefreshConfiguration( body: RefreshConfiguration(
child: SmartRefresher( child: SmartRefresher(
controller: _refreshController, controller: _refreshController,

@ -1,6 +1,5 @@
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'package:akuCommunity/base/base_style.dart';
import 'package:akuCommunity/const/resource.dart'; import 'package:akuCommunity/const/resource.dart';
import 'package:akuCommunity/pages/activities_page/activities_page.dart'; import 'package:akuCommunity/pages/activities_page/activities_page.dart';
import 'package:akuCommunity/pages/convenient_phone/convenient_phone_page.dart'; import 'package:akuCommunity/pages/convenient_phone/convenient_phone_page.dart';
@ -14,7 +13,6 @@ import 'package:akuCommunity/pages/things_page/fixed_submit_page.dart';
import 'package:akuCommunity/pages/things_page/things_page.dart'; import 'package:akuCommunity/pages/things_page/things_page.dart';
import 'package:akuCommunity/pages/total_application_page/total_applications_page.dart'; import 'package:akuCommunity/pages/total_application_page/total_applications_page.dart';
import 'package:akuCommunity/pages/visitor_access_page/visitor_access_page.dart'; import 'package:akuCommunity/pages/visitor_access_page/visitor_access_page.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:akuCommunity/extensions/num_ext.dart'; import 'package:akuCommunity/extensions/num_ext.dart';
import 'package:akuCommunity/widget/grid_buttons.dart'; import 'package:akuCommunity/widget/grid_buttons.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';

@ -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/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
@ -14,10 +15,7 @@ class _CommitteeMailboxPageState extends State<CommitteeMailboxPage> {
TextEditingController _thingsContent = new TextEditingController(); TextEditingController _thingsContent = new TextEditingController();
Widget _input() { Widget _input() {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(top: 32.w, left: 22.w, right: 35.w),
top: 32.w,
left: 22.w,
right: 35.w),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(8)), borderRadius: BorderRadius.all(Radius.circular(8)),
border: Border.all(color: Color(0xffd4cfbe), width: 1.0), border: Border.all(color: Color(0xffd4cfbe), width: 1.0),
@ -63,8 +61,7 @@ class _CommitteeMailboxPageState extends State<CommitteeMailboxPage> {
margin: EdgeInsets.only(top: 40.w), margin: EdgeInsets.only(top: 40.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xffffc40c), color: Color(0xffffc40c),
borderRadius: borderRadius: BorderRadius.all(Radius.circular(48.w))),
BorderRadius.all(Radius.circular(48.w))),
child: Text( child: Text(
'确认提交', '确认提交',
style: TextStyle( style: TextStyle(
@ -78,13 +75,8 @@ class _CommitteeMailboxPageState extends State<CommitteeMailboxPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '业委会信箱',
child: CommonAppBar(
title: '业委会信箱',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: ListView( child: ListView(

@ -1,4 +1,5 @@
import 'package:akuCommunity/pages/industry_committee/committee_mailbox/committee_mailbox_page.dart'; import 'package:akuCommunity/pages/industry_committee/committee_mailbox/committee_mailbox_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:get/get.dart'; import 'package:get/get.dart';
@ -114,8 +115,7 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
return Positioned( return Positioned(
bottom: 0, bottom: 0,
child: Container( child: Container(
height: height: 98.w + MediaQuery.of(context).viewPadding.bottom,
98.w + MediaQuery.of(context).viewPadding.bottom,
width: MediaQuery.of(context).size.width, width: MediaQuery.of(context).size.width,
child: Row( child: Row(
children: _listBottom children: _listBottom
@ -133,13 +133,8 @@ class _IndustryCommitteePageState extends State<IndustryCommitteePage> {
} }
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '业委会',
child: CommonAppBar(
title: '业委会',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Stack( body: Stack(
children: [ children: [
StaffList(), StaffList(),

@ -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:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
@ -33,27 +34,6 @@ class _InvoicePageState extends State<InvoicePage> {
}); });
} }
AppBar _appBar() {
return AppBar(
elevation: 0,
backgroundColor: Color(0xffffffff),
leading: IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
centerTitle: true,
title: Text(
'开具发票',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: 32.sp,
color: Color(0xff333333),
),
),
);
}
Container _containerInvoiceDetailCheck() { Container _containerInvoiceDetailCheck() {
return Container( return Container(
@ -231,9 +211,15 @@ class _InvoicePageState extends State<InvoicePage> {
); );
} }
return Scaffold( return BeeScaffold(
key: _scaffoldKey, key: _scaffoldKey,
appBar: _appBar(), title: '开具发票',
leading:IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
height: 1334.w, height: 1334.w,

@ -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/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
@ -37,20 +38,12 @@ class _LifePayBillPageState extends State<LifePayBillPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '账单详情',
child: CommonAppBar(
title: '账单详情',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: ListView( body: ListView(
children: [ children: [
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(top: 32.w, left: 32.w, right: 32.w),
top: 32.w,
left: 32.w,
right: 32.w),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(6)), borderRadius: BorderRadius.all(Radius.circular(6)),

@ -1,4 +1,5 @@
import 'package:akuCommunity/pages/life_pay/life_pay_bill_page/life_pay_bill_page.dart'; import 'package:akuCommunity/pages/life_pay/life_pay_bill_page/life_pay_bill_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:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
@ -16,16 +17,10 @@ class LifePayInfoPage extends StatefulWidget {
} }
class _LifePayInfoPageState extends State<LifePayInfoPage> { class _LifePayInfoPageState extends State<LifePayInfoPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: ' ${widget.bundle.getMap('detailMap')['title']}明细',
child: CommonAppBar(
title:' ${widget.bundle.getMap('detailMap')['title']}明细',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Stack( body: Stack(
children: [ children: [
ListView( ListView(

@ -1,11 +1,13 @@
import 'package:akuCommunity/pages/life_pay/life_pay_info_page/life_pay_info_page.dart'; import 'package:akuCommunity/pages/life_pay/life_pay_info_page/life_pay_info_page.dart';
import 'package:akuCommunity/pages/life_pay/life_pay_record_page/life_pay_record_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: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 'widget/order_card.dart'; import 'widget/order_card.dart';
import 'widget/submit_bar.dart'; import 'widget/submit_bar.dart';
import 'package:velocity_x/velocity_x.dart';
class LifePayPage extends StatefulWidget { class LifePayPage extends StatefulWidget {
LifePayPage({Key key}) : super(key: key); LifePayPage({Key key}) : super(key: key);
@ -17,14 +19,20 @@ class LifePayPage extends StatefulWidget {
class _LifePayPageState extends State<LifePayPage> { class _LifePayPageState extends State<LifePayPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '生活缴费',
child: CommonAppBar( actions: [
title: '生活缴费', InkWell(
subtitle: '缴费记录', onTap: () {
LifePayRecordPage().to();
},
child: Container(
padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
alignment: Alignment.center,
child: '缴费记录'.text.black.size(28.sp).make(),
),
), ),
preferredSize: Size.fromHeight(kToolbarHeight), ],
),
body: Stack( body: Stack(
children: [ children: [
ListView( ListView(

@ -1,10 +1,9 @@
import 'package:akuCommunity/pages/life_pay/life_pay_bill_page/life_pay_bill_page.dart'; import 'package:akuCommunity/pages/life_pay/life_pay_bill_page/life_pay_bill_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:pull_to_refresh/pull_to_refresh.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/routers/page_routers.dart';
import 'package:akuCommunity/widget/common_app_bar.dart';
import 'widget/record_card.dart'; import 'widget/record_card.dart';
class LifePayRecordPage extends StatefulWidget { class LifePayRecordPage extends StatefulWidget {
@ -36,7 +35,6 @@ class _LifePayRecordPageState extends State<LifePayRecordPage> {
_refreshController.loadComplete(); _refreshController.loadComplete();
} }
@override @override
void dispose() { void dispose() {
super.dispose(); super.dispose();
@ -45,13 +43,8 @@ class _LifePayRecordPageState extends State<LifePayRecordPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '缴费记录',
child: CommonAppBar(
title: '缴费记录',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: RefreshConfiguration( body: RefreshConfiguration(
hideFooterWhenNotFull: true, hideFooterWhenNotFull: true,
child: SmartRefresher( child: SmartRefresher(

@ -1,8 +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:pull_to_refresh/pull_to_refresh.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:velocity_x/velocity_x.dart';
class CommentMessagePage extends StatefulWidget { class CommentMessagePage extends StatefulWidget {
CommentMessagePage({Key key}) : super(key: key); CommentMessagePage({Key key}) : super(key: key);
@ -49,8 +50,6 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
super.initState(); super.initState();
} }
void _onRefresh() async { void _onRefresh() async {
await Future.delayed(Duration(milliseconds: 1500)); await Future.delayed(Duration(milliseconds: 1500));
@ -146,14 +145,18 @@ class _CommentMessagePageState extends State<CommentMessagePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '评论通知',
child: CommonAppBar( actions: [
title: '评论通知', InkWell(
subtitle: '清空', onTap: () {},
), child: Container(
preferredSize: Size.fromHeight(kToolbarHeight), padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
), child: '清空'.text.black.size(28.sp).make(),
alignment: Alignment.center,
),
)
],
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: RefreshConfiguration( child: RefreshConfiguration(

@ -1,12 +1,12 @@
import 'package:akuCommunity/pages/message_center_page/comment_message_page/comment_message_page.dart'; import 'package:akuCommunity/pages/message_center_page/comment_message_page/comment_message_page.dart';
import 'package:akuCommunity/pages/message_center_page/shop_message_page/shop_message_page.dart'; import 'package:akuCommunity/pages/message_center_page/shop_message_page/shop_message_page.dart';
import 'package:akuCommunity/pages/message_center_page/system_message_page/system_message_page.dart'; import 'package:akuCommunity/pages/message_center_page/system_message_page/system_message_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:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/base/assets_image.dart'; import 'package:akuCommunity/base/assets_image.dart';
import 'package:akuCommunity/routers/page_routers.dart'; import 'package:velocity_x/velocity_x.dart';
import 'package:akuCommunity/widget/common_app_bar.dart';
class MessageCenterPage extends StatefulWidget { class MessageCenterPage extends StatefulWidget {
MessageCenterPage({Key key}) : super(key: key); MessageCenterPage({Key key}) : super(key: key);
@ -51,14 +51,18 @@ class _MessageCenterPageState extends State<MessageCenterPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '消息中心',
child: CommonAppBar( actions: [
title: '消息中心', InkWell(
subtitle: '全部已读', onTap: () {},
), child: Container(
preferredSize: Size.fromHeight(kToolbarHeight), padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
), child: '全部已读'.text.black.size(28.sp).make(),
alignment: Alignment.center,
),
)
],
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: ListView( child: ListView(

@ -1,10 +1,11 @@
// import 'package:akuCommunity/pages/common/common_page.dart'; // import 'package:akuCommunity/pages/common/common_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';
import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:velocity_x/velocity_x.dart';
class ShopMessagePage extends StatefulWidget { class ShopMessagePage extends StatefulWidget {
ShopMessagePage({Key key}) : super(key: key); ShopMessagePage({Key key}) : super(key: key);
@ -176,14 +177,18 @@ class _ShopMessagePageState extends State<ShopMessagePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '商城通知',
child: CommonAppBar( actions: [
title: '商城通知', InkWell(
subtitle: '清空', onTap: () {},
), child: Container(
preferredSize: Size.fromHeight(kToolbarHeight), padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
), child: '清空'.text.black.size(28.sp).make(),
alignment: Alignment.center,
),
)
],
body: RefreshConfiguration( body: RefreshConfiguration(
hideFooterWhenNotFull: true, hideFooterWhenNotFull: true,
child: SmartRefresher( child: SmartRefresher(

@ -1,7 +1,7 @@
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/widget/common_app_bar.dart';
import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/routers/page_routers.dart';
class SystemDetailsPage extends StatelessWidget { class SystemDetailsPage extends StatelessWidget {
@ -10,13 +10,8 @@ class SystemDetailsPage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '查看详情',
child: CommonAppBar(
title: '查看详情',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: ListView( child: ListView(

@ -1,11 +1,12 @@
import 'package:akuCommunity/pages/message_center_page/system_message_page/system_details_page/system_details_page.dart'; import 'package:akuCommunity/pages/message_center_page/system_message_page/system_details_page/system_details_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';
import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:pull_to_refresh/pull_to_refresh.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:velocity_x/velocity_x.dart';
class SystemMessagePage extends StatefulWidget { class SystemMessagePage extends StatefulWidget {
SystemMessagePage({Key key}) : super(key: key); SystemMessagePage({Key key}) : super(key: key);
@ -145,14 +146,18 @@ class _SystemMessagePageState extends State<SystemMessagePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '系统通知',
child: CommonAppBar( actions: [
title: '系统通知', InkWell(
subtitle: '清空', onTap: () {},
), child: Container(
preferredSize: Size.fromHeight(kToolbarHeight), padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
), child: '清空'.text.black.size(28.sp).make(),
alignment: Alignment.center,
),
)
],
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:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
@ -47,13 +48,8 @@ class _CarAddPageState extends State<CarAddPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '添加车辆',
child: CommonAppBar(
title: '添加车辆',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
color: Colors.white, color: Colors.white,

@ -1,10 +1,10 @@
import 'package:akuCommunity/pages/mine_car_page/select_parking_page/select_parking_page.dart'; import 'package:akuCommunity/pages/mine_car_page/select_parking_page/select_parking_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';
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';
class SelectCommunityPage extends StatefulWidget { class SelectCommunityPage extends StatefulWidget {
SelectCommunityPage({Key key}) : super(key: key); SelectCommunityPage({Key key}) : super(key: key);
@ -18,13 +18,8 @@ class _SelectCommunityPageState extends State<SelectCommunityPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '选择小区',
child: CommonAppBar(
title: '选择小区',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: ListView( body: ListView(
children: [ children: [
Container( Container(

@ -1,8 +1,8 @@
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';
class SelectParkingPage extends StatefulWidget { class SelectParkingPage extends StatefulWidget {
final Bundle bundle; final Bundle bundle;
@ -15,13 +15,8 @@ class SelectParkingPage extends StatefulWidget {
class _SelectParkingPageState extends State<SelectParkingPage> { class _SelectParkingPageState extends State<SelectParkingPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '车位列表',
child: CommonAppBar(
title: '车位列表',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: ListView( body: ListView(
children: [ children: [
Container( Container(

@ -1,7 +1,7 @@
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/widget/common_app_bar.dart';
import 'package:akuCommunity/widget/common_input.dart'; import 'package:akuCommunity/widget/common_input.dart';
class HouseAuthenticatePage extends StatefulWidget { class HouseAuthenticatePage extends StatefulWidget {
@ -61,13 +61,8 @@ class _HouseAuthenticatePageState extends State<HouseAuthenticatePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '房屋认证',
child: CommonAppBar(
title: '房屋认证',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: SingleChildScrollView( child: SingleChildScrollView(

@ -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:flutter_html/flutter_html.dart'; import 'package:flutter_html/flutter_html.dart';
@ -109,13 +110,8 @@ class NoticePage extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '社区公告',
child: CommonAppBar(
title: '社区公告',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Stack( body: Stack(
children: [ children: [
Container( Container(

@ -1,12 +1,15 @@
import 'package:akuCommunity/pages/one_alarm/widget/explain_template.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/common_app_bar.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:amap_map_fluttify/amap_map_fluttify.dart'; import 'package:amap_map_fluttify/amap_map_fluttify.dart';
import 'package:amap_location_fluttify/amap_location_fluttify.dart'; import 'package:amap_location_fluttify/amap_location_fluttify.dart';
import 'package:flutter_beautiful_popup/main.dart';
import 'package:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:permission_handler/permission_handler.dart'; import 'package:permission_handler/permission_handler.dart';
import 'package:url_launcher/url_launcher.dart'; import 'package:url_launcher/url_launcher.dart';
import 'package:velocity_x/velocity_x.dart';
class PermissionUtil { class PermissionUtil {
static Future<bool> getLocationPermission() async { static Future<bool> getLocationPermission() async {
@ -26,12 +29,48 @@ class _AlarmPageState extends State<AlarmPage> {
show: true, show: true,
myLocationType: MyLocationType.Locate, myLocationType: MyLocationType.Locate,
); );
Future<void> _makephonenum(String url)async{ Future<void> _makephonenum(String url) async {
(await canLaunch(url))?await launch(url):throw 'Could not launch $url'; (await canLaunch(url)) ? await launch(url) : throw 'Could not launch $url';
} }
AmapController _amapController; AmapController _amapController;
Location _location; Location _location;
void showExplain(BuildContext context) {
final popup = BeautifulPopup.customize(
context: context,
build: (options) => ExplainTemplate(options),
);
popup.show(
title: Text(
'功能说明',
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 32.sp,
color: Color(0xff15c0ec),
),
),
content: Text(
'点击“呼叫110”后,您可以直接拨打本地110。页面中提供了您当前所在位置,以便您与警方沟通。(GPS信号弱时位置可能存在偏移)',
style: TextStyle(
fontSize: 28.sp,
color: Color(0xff666666),
),
),
actions: [
MaterialButton(
color: Color(0xff15c0ec),
textColor: Colors.white,
shape: RoundedRectangleBorder(
side: BorderSide.none,
borderRadius: BorderRadius.all(Radius.circular(50))),
child: Text('关闭'),
onPressed: Navigator.of(context).pop,
)
],
close: SizedBox());
}
@override @override
void initState() { void initState() {
super.initState(); super.initState();
@ -49,14 +88,20 @@ class _AlarmPageState extends State<AlarmPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '一键报警',
child: CommonAppBar( actions: [
title: '一键报警', InkWell(
subtitle: '功能说明', onTap: () {
), showExplain(context);
preferredSize: Size.fromHeight(kToolbarHeight), },
), child: Container(
padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
child: '全部已读'.text.black.size(28.sp).make(),
alignment: Alignment.center,
),
)
],
body: Stack( body: Stack(
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
children: [ children: [
@ -90,9 +135,7 @@ class _AlarmPageState extends State<AlarmPage> {
children: [ children: [
SizedBox(height: 24.w), SizedBox(height: 24.w),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(top: 24.w, left: 32.w),
top: 24.w,
left: 32.w),
child: Text( child: Text(
'当前位置(仅供参考)', '当前位置(仅供参考)',
style: TextStyle( style: TextStyle(
@ -102,9 +145,7 @@ class _AlarmPageState extends State<AlarmPage> {
), ),
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(top: 20.w, left: 32.w),
top: 20.w,
left: 32.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
@ -114,8 +155,7 @@ class _AlarmPageState extends State<AlarmPage> {
size: 29.sp, size: 29.sp,
), ),
Container( Container(
margin: margin: EdgeInsets.only(left: 5.w),
EdgeInsets.only(left: 5.w),
child: Text( child: Text(
(_location == null) (_location == null)
? '加载中……' ? '加载中……'
@ -140,8 +180,7 @@ class _AlarmPageState extends State<AlarmPage> {
width: 66.w, width: 66.w,
height: 66.w, height: 66.w,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: borderRadius: BorderRadius.circular(66.w),
BorderRadius.circular(66.w),
boxShadow: <BoxShadow>[ boxShadow: <BoxShadow>[
BoxShadow( BoxShadow(
color: Color(0x1F000000), color: Color(0x1F000000),
@ -153,12 +192,10 @@ class _AlarmPageState extends State<AlarmPage> {
child: FlatButton( child: FlatButton(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: borderRadius: BorderRadius.circular(66.w)),
BorderRadius.circular(66.w)),
color: Color(0xFFFFFFFF), color: Color(0xFFFFFFFF),
onPressed: () { onPressed: () {
_amapController?.setCenterCoordinate( _amapController?.setCenterCoordinate(_location.latLng);
_location.latLng);
Future.delayed(Duration(milliseconds: 500), () { Future.delayed(Duration(milliseconds: 500), () {
if (mounted) _amapController.setZoomLevel(16); if (mounted) _amapController.setZoomLevel(16);
}); });
@ -193,8 +230,8 @@ class _AlarmPageState extends State<AlarmPage> {
width: 196.w, width: 196.w,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all( borderRadius:
Radius.circular(196.w)), BorderRadius.all(Radius.circular(196.w)),
), ),
child: Container( child: Container(
height: 172.w, height: 172.w,
@ -205,8 +242,8 @@ class _AlarmPageState extends State<AlarmPage> {
end: Alignment.topLeft, end: Alignment.topLeft,
colors: [Color(0xffef0909), Color(0xffff8880)], colors: [Color(0xffef0909), Color(0xffff8880)],
), ),
borderRadius: BorderRadius.all( borderRadius:
Radius.circular(172.w)), BorderRadius.all(Radius.circular(172.w)),
boxShadow: <BoxShadow>[ boxShadow: <BoxShadow>[
BoxShadow( BoxShadow(
color: Color(0xfffd7770).withOpacity(0.33), color: Color(0xfffd7770).withOpacity(0.33),
@ -218,8 +255,7 @@ class _AlarmPageState extends State<AlarmPage> {
), ),
child: FlatButton( child: FlatButton(
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular( borderRadius: BorderRadius.circular(172.w)),
172.w)),
onPressed: () { onPressed: () {
setState(() { setState(() {
_makephonenum('tel:110'); _makephonenum('tel:110');

@ -1,9 +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:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
import 'package:qr_flutter/qr_flutter.dart'; import 'package:qr_flutter/qr_flutter.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/common_app_bar.dart';
class OpeningCodePage extends StatefulWidget { class OpeningCodePage extends StatefulWidget {
OpeningCodePage({Key key}) : super(key: key); OpeningCodePage({Key key}) : super(key: key);
@ -15,13 +15,8 @@ class OpeningCodePage extends StatefulWidget {
class _OpeningCodePageState extends State<OpeningCodePage> { class _OpeningCodePageState extends State<OpeningCodePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '开门码',
child: CommonAppBar(
title: '开门码',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Color(0xfff9f9f9), color: Color(0xfff9f9f9),
child: ListView( child: ListView(

@ -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:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
@ -25,28 +26,6 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
{'radioName': '差评', 'isCheck': false} {'radioName': '差评', 'isCheck': false}
]; ];
AppBar _appBar() {
return AppBar(
elevation: 0,
backgroundColor: Colors.white,
leading: IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
centerTitle: true,
title: Text(
'发表评价',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32,
color: ktextPrimary,
),
),
);
}
Container _containerContentList(List<Map<String, dynamic>> listContent) { Container _containerContentList(List<Map<String, dynamic>> listContent) {
return Container( return Container(
child: Column( child: Column(
@ -73,8 +52,8 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
children: [ children: [
Text( Text(
'描述相符', '描述相符',
style: TextStyle( style:
fontSize: BaseStyle.fontSize28, color: ktextPrimary), TextStyle(fontSize: BaseStyle.fontSize28, color: ktextPrimary),
), ),
SizedBox(width: 34.w), SizedBox(width: 34.w),
Row( Row(
@ -168,18 +147,15 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
Container _containerAddImage() { Container _containerAddImage() {
return Container( return Container(
padding: EdgeInsets.only( padding:
left: 36.w, EdgeInsets.only(left: 36.w, right: 36.w, top: 32.w, bottom: 24.w),
right: 36.w,
top: 32.w,
bottom: 24.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
'添加图片信息(0/9)', '添加图片信息(0/9)',
style: TextStyle( style:
fontSize: BaseStyle.fontSize28, color: ktextPrimary), TextStyle(fontSize: BaseStyle.fontSize28, color: ktextPrimary),
), ),
SizedBox(height: 24.w), SizedBox(height: 24.w),
InkWell( InkWell(
@ -228,8 +204,14 @@ class _EvaluateGoodPageState extends State<EvaluateGoodPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
double _statusHeight = MediaQuery.of(context).padding.top; double _statusHeight = MediaQuery.of(context).padding.top;
return Scaffold( return BeeScaffold(
appBar: _appBar(), leading: IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
title: '发表评价',
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
height: MediaQuery.of(context).size.height - height: MediaQuery.of(context).size.height -

@ -1,4 +1,5 @@
import 'package:akuCommunity/pages/personal/refund_select_page.dart'; import 'package:akuCommunity/pages/personal/refund_select_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:extended_text/extended_text.dart'; import 'package:extended_text/extended_text.dart';
@ -18,28 +19,6 @@ class OrderDetailsPage extends StatefulWidget {
} }
class _OrderDetailsPageState extends State<OrderDetailsPage> { class _OrderDetailsPageState extends State<OrderDetailsPage> {
AppBar _appBar() {
return AppBar(
elevation: 0,
backgroundColor: BaseStyle.colorffd000,
leading: IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
centerTitle: true,
title: Text(
'订单详情',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32,
color: ktextPrimary,
),
),
);
}
Container _containerHeader(String status) { Container _containerHeader(String status) {
return Container( return Container(
width: double.infinity, width: double.infinity,
@ -459,8 +438,14 @@ class _OrderDetailsPageState extends State<OrderDetailsPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
double statusHeight = MediaQuery.of(context).padding.top; double statusHeight = MediaQuery.of(context).padding.top;
return Scaffold( return BeeScaffold(
appBar: _appBar(), leading: IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
title: '订单详情',
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
height: MediaQuery.of(context).size.height - height: MediaQuery.of(context).size.height -

@ -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:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
@ -21,28 +22,6 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
String hintText = '选填'; String hintText = '选填';
AppBar _appBar() {
return AppBar(
elevation: 0,
backgroundColor: BaseStyle.colorffd000,
leading: IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
centerTitle: true,
title: Text(
'申请退款',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32,
color: ktextPrimary,
),
),
);
}
Container _containerContentList(List<Map<String, dynamic>> listContent) { Container _containerContentList(List<Map<String, dynamic>> listContent) {
return Container( return Container(
child: Column( child: Column(
@ -178,8 +157,14 @@ class _RefundApplyPageState extends State<RefundApplyPage> {
{'title': '退款原因', 'subtitle': '请选择', 'fun': null, 'isRight': true}, {'title': '退款原因', 'subtitle': '请选择', 'fun': null, 'isRight': true},
{'title': '退款方式', 'subtitle': '物业上门取件', 'fun': null, 'isRight': false} {'title': '退款方式', 'subtitle': '物业上门取件', 'fun': null, 'isRight': false}
]; ];
return Scaffold( return BeeScaffold(
appBar: _appBar(), title: '申请退款',
leading: IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
height: MediaQuery.of(context).size.height - height: MediaQuery.of(context).size.height -

@ -1,4 +1,5 @@
import 'package:akuCommunity/pages/personal/refund_apply_page.dart'; import 'package:akuCommunity/pages/personal/refund_apply_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';
@ -18,27 +19,7 @@ class RefundSelectPage extends StatefulWidget {
} }
class _RefundSelectPageState extends State<RefundSelectPage> { class _RefundSelectPageState extends State<RefundSelectPage> {
AppBar _appBar() {
return AppBar(
elevation: 0,
backgroundColor: BaseStyle.colorffd000,
leading: IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
centerTitle: true,
title: Text(
'选择服务类型',
style: TextStyle(
fontWeight: FontWeight.w600,
fontSize: BaseStyle.fontSize32,
color: ktextPrimary,
),
),
);
}
Container _containerContentList(List<Map<String, dynamic>> listContent) { Container _containerContentList(List<Map<String, dynamic>> listContent) {
return Container( return Container(
@ -88,8 +69,14 @@ class _RefundSelectPageState extends State<RefundSelectPage> {
'isRight': true 'isRight': true
} }
]; ];
return Scaffold( return BeeScaffold(
appBar: _appBar(), leading: IconButton(
icon: Icon(AntDesign.left, size: 40.sp),
onPressed: () {
Get.back();
},
),
title: '选择服务类型',
body: ListView( body: ListView(
children: [ children: [
SizedBox(height: 24.w), SizedBox(height: 24.w),

@ -1,10 +1,10 @@
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_html/flutter_html.dart'; import 'package:flutter_html/flutter_html.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/base/base_style.dart'; import 'package:akuCommunity/base/base_style.dart';
import 'package:akuCommunity/widget/cached_image_wrapper.dart'; import 'package:akuCommunity/widget/cached_image_wrapper.dart';
import 'package:akuCommunity/widget/common_app_bar.dart';
import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/routers/page_routers.dart';
class QuestionnaireDetailsPage extends StatefulWidget { class QuestionnaireDetailsPage extends StatefulWidget {
@ -71,7 +71,7 @@ class _QuestionnaireDetailsPageState extends State<QuestionnaireDetailsPage> {
Widget _questionCard(String title, List<Map<String, dynamic>> optionList) { Widget _questionCard(String title, List<Map<String, dynamic>> optionList) {
return Container( return Container(
margin: EdgeInsets.only(top:64.w), margin: EdgeInsets.only(top: 64.w),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -95,7 +95,7 @@ class _QuestionnaireDetailsPageState extends State<QuestionnaireDetailsPage> {
}); });
}, },
child: Container( child: Container(
margin: EdgeInsets.only(left:15.w), margin: EdgeInsets.only(left: 15.w),
width: MediaQuery.of(context).size.width / 2.35, width: MediaQuery.of(context).size.width / 2.35,
child: Row( child: Row(
children: [ children: [
@ -109,8 +109,7 @@ class _QuestionnaireDetailsPageState extends State<QuestionnaireDetailsPage> {
size: 32.w, size: 32.w,
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(left: 16.w),
left: 16.w),
width: MediaQuery.of(context).size.width / 3.2, width: MediaQuery.of(context).size.width / 3.2,
child: Text( child: Text(
item['title'], item['title'],
@ -138,10 +137,7 @@ class _QuestionnaireDetailsPageState extends State<QuestionnaireDetailsPage> {
Widget _containerTextField() { Widget _containerTextField() {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(top: 24.w, left: 24.w, right: 32.w),
top: 24.w,
left: 24.w,
right: 32.w),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(6)), borderRadius: BorderRadius.all(Radius.circular(6)),
border: Border.all(color: Color(0xffd4cfbe), width: 1.0), border: Border.all(color: Color(0xffd4cfbe), width: 1.0),
@ -206,13 +202,8 @@ class _QuestionnaireDetailsPageState extends State<QuestionnaireDetailsPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '问卷调查',
child: CommonAppBar(
title: '问卷调查',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: Stack( child: Stack(
@ -266,14 +257,11 @@ class _QuestionnaireDetailsPageState extends State<QuestionnaireDetailsPage> {
), ),
), ),
Container( Container(
margin: EdgeInsets.only( margin: EdgeInsets.only(top: 80.w, bottom: 24.w),
top: 80.w,
bottom: 24.w),
child: Text( child: Text(
'您的觉得我们需要改进的地方', '您的觉得我们需要改进的地方',
style: TextStyle( style: TextStyle(
fontSize: BaseStyle.fontSize28, fontSize: BaseStyle.fontSize28, color: ktextPrimary),
color: ktextPrimary),
), ),
), ),
_containerTextField(), _containerTextField(),

@ -1,4 +1,5 @@
import 'package:akuCommunity/pages/questionnaire_page/questionnaire_details_page/questionnaire_details_page.dart'; import 'package:akuCommunity/pages/questionnaire_page/questionnaire_details_page/questionnaire_details_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:pull_to_refresh/pull_to_refresh.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart';
@ -83,13 +84,8 @@ class _QuestionnairePageState extends State<QuestionnairePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '问卷调查',
child: CommonAppBar(
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:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
@ -16,13 +17,8 @@ class AboutPage extends StatelessWidget {
color: Color(0xff575757), color: Color(0xff575757),
); );
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '关于小蜜蜂智慧社区',
child: CommonAppBar(
title: '关于小蜜蜂智慧社区',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
padding: EdgeInsets.only( padding: EdgeInsets.only(

@ -1,4 +1,5 @@
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class AgreementPage extends StatefulWidget { class AgreementPage extends StatefulWidget {
@ -9,18 +10,15 @@ class AgreementPage extends StatefulWidget {
class _AgreementPageState extends State<AgreementPage> { class _AgreementPageState extends State<AgreementPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: AppBar( title: '用户协议',
title: Text('用户协议'),
),
body: SingleChildScrollView( body: SingleChildScrollView(
padding: EdgeInsets.all(16.w), padding: EdgeInsets.all(16.w),
child: Column( child: Column(
children: [ children: [
Text( Text(
'《用户协议》', '《用户协议》',
style: TextStyle( style: TextStyle(fontWeight: FontWeight.w600, fontSize: 35.w),
fontWeight: FontWeight.w600, fontSize: 35.w),
), ),
Text( Text(
''' '''

@ -1,4 +1,5 @@
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
class PrivacyPage extends StatefulWidget { class PrivacyPage extends StatefulWidget {
@ -10,17 +11,15 @@ class PrivacyPage extends StatefulWidget {
class _PrivacyPageState extends State<PrivacyPage> { class _PrivacyPageState extends State<PrivacyPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: AppBar( title: '隐私政策',
title: Text('隐私政策'),
),
body: SingleChildScrollView( body: SingleChildScrollView(
padding: EdgeInsets.all(16.sp), padding: EdgeInsets.all(16.sp),
child: Column( child: Column(
children: [Text( children: [
Text(
'小蜜蜂智慧社区隐私政策', '小蜜蜂智慧社区隐私政策',
style: TextStyle( style: TextStyle(fontWeight: FontWeight.w600, fontSize: 35.w),
fontWeight: FontWeight.w600, fontSize: 35.w),
), ),
Text( Text(
''' '''

@ -1,5 +1,6 @@
import 'dart:math'; import 'dart:math';
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:bot_toast/bot_toast.dart'; import 'package:bot_toast/bot_toast.dart';
import 'package:flustars/flustars.dart'; import 'package:flustars/flustars.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
@ -101,13 +102,8 @@ class _FeedBackPageState extends State<FeedBackPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '意见反馈',
child: CommonAppBar(
title: '意见反馈',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
color: Colors.white, color: Colors.white,

@ -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:qr_flutter/qr_flutter.dart'; import 'package:qr_flutter/qr_flutter.dart';
@ -20,13 +21,8 @@ class InvitePage extends StatelessWidget {
); );
} }
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '邀请注册',
child: CommonAppBar(
title: '邀请注册',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
padding: EdgeInsets.only(top: 146.w), padding: EdgeInsets.only(top: 146.w),

@ -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/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
@ -268,13 +269,8 @@ class _ThingsCreatePageState extends State<ThingsCreatePage> {
// .toList(); // .toList();
// } // }
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '${widget.bundle.getMap('create')['title']}',
child: CommonAppBar(
title: '${widget.bundle.getMap('create')['title']}',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: Stack( child: Stack(

@ -1,12 +1,13 @@
import 'package:akuCommunity/pages/things_page/things_evaluate_page/things_evaluate_page.dart'; import 'package:akuCommunity/pages/things_page/things_evaluate_page/things_evaluate_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:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/expandable_text.dart'; import 'package:akuCommunity/widget/expandable_text.dart';
import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/routers/page_routers.dart';
import 'package:akuCommunity/widget/common_app_bar.dart';
import '../widget/image_grid.dart'; import '../widget/image_grid.dart';
import 'widget/goods_info_card.dart'; import 'widget/goods_info_card.dart';
import 'package:velocity_x/velocity_x.dart';
class ThingsDetailPage extends StatefulWidget { class ThingsDetailPage extends StatefulWidget {
final Bundle bundle; final Bundle bundle;
@ -101,14 +102,20 @@ class _ThingsDetailPageState extends State<ThingsDetailPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '查看详情',
child: CommonAppBar( actions: [
title: '查看详情', widget.bundle.getMap('things')['isRepair']
subtitle: widget.bundle.getMap('things')['isRepair'] ? '' : '评价', ? SizedBox()
), : InkWell(
preferredSize: Size.fromHeight(kToolbarHeight), onTap: () {},
), child: Container(
padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
child: '评价'.text.black.size(28.sp).make(),
alignment: Alignment.center,
),
)
],
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: Stack( child: Stack(

@ -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:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
@ -137,13 +138,8 @@ class _ThingsEvaluatePageState extends State<ThingsEvaluatePage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '${widget.bundle.getMap('details')['title']}',
child: CommonAppBar(
title: '${widget.bundle.getMap('details')['title']}',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: SingleChildScrollView( body: SingleChildScrollView(
child: Container( child: Container(
color: Colors.white, color: Colors.white,

@ -1,11 +1,13 @@
import 'package:akuCommunity/pages/visitor_access_page/visitor_record_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_datetime_picker/flutter_datetime_picker.dart'; import 'package:flutter_datetime_picker/flutter_datetime_picker.dart';
import 'package:akuCommunity/base/assets_image.dart'; import 'package:akuCommunity/base/assets_image.dart';
import 'package:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
import 'package:akuCommunity/utils/headers.dart'; import 'package:akuCommunity/utils/headers.dart';
import 'package:akuCommunity/widget/common_app_bar.dart';
import 'package:akuCommunity/widget/common_input.dart'; import 'package:akuCommunity/widget/common_input.dart';
import 'package:velocity_x/velocity_x.dart';
class VisitorAccessPage extends StatefulWidget { class VisitorAccessPage extends StatefulWidget {
VisitorAccessPage({Key key}) : super(key: key); VisitorAccessPage({Key key}) : super(key: key);
@ -35,8 +37,7 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
children: [ children: [
Text( Text(
'来访房屋', '来访房屋',
style: TextStyle( style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)),
fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: 32.w), SizedBox(height: 32.w),
Container( Container(
@ -120,8 +121,7 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
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)
@ -184,8 +184,7 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
children: [ children: [
Text( Text(
'访客性别', '访客性别',
style: TextStyle( style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)),
fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: 32.w), SizedBox(height: 32.w),
Container( Container(
@ -229,8 +228,7 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
children: [ children: [
Text( Text(
'到访时间', '到访时间',
style: TextStyle( style: TextStyle(fontSize: 28.sp, color: Color(0xff333333)),
fontSize: 28.sp, color: Color(0xff333333)),
), ),
SizedBox(height: 32.w), SizedBox(height: 32.w),
Container( Container(
@ -291,22 +289,27 @@ class _VisitorAccessPageState extends State<VisitorAccessPage> {
), ),
child: Text( child: Text(
'通行证只在到访当天单次有效,逾期或超次需要重新生成', '通行证只在到访当天单次有效,逾期或超次需要重新生成',
style: TextStyle( style: TextStyle(fontSize: 20.sp, color: Color(0xff999999)),
fontSize: 20.sp, color: Color(0xff999999)),
), ),
), ),
); );
} }
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '访客通行',
child: CommonAppBar( actions: [
title: '访客通行', InkWell(
subtitle: '访客记录', onTap: () {
), VisitorRecordPage().to;
preferredSize: Size.fromHeight(kToolbarHeight), },
), child: Container(
padding: EdgeInsets.fromLTRB(32.w, 28.w, 32.w, 20.w),
child: '访客记录'.text.black.size(28.sp).make(),
alignment: Alignment.center,
),
)
],
body: Container( body: Container(
color: Colors.white, color: Colors.white,
child: ListView( child: ListView(

@ -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:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
@ -21,14 +22,12 @@ class _VisitorPassPageState extends State<VisitorPassPage> {
children: [ children: [
Text( Text(
'宁波华茂悦峰', '宁波华茂悦峰',
style: TextStyle( style: TextStyle(fontSize: 40.sp, color: Color(0xffffffff)),
fontSize: 40.sp, color: Color(0xffffffff)),
), ),
SizedBox(height: 10.w), SizedBox(height: 10.w),
Text( Text(
'1幢-1单元-702室', '1幢-1单元-702室',
style: TextStyle( style: TextStyle(fontSize: 26.sp, color: Color(0xffffffff)),
fontSize: 26.sp, color: Color(0xffffffff)),
), ),
], ],
), ),
@ -77,7 +76,7 @@ class _VisitorPassPageState extends State<VisitorPassPage> {
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 36.sp, fontSize: 36.sp,
color: Color(0xff333333)), color: Color(0xff333333)),
), ),
@ -183,13 +182,8 @@ class _VisitorPassPageState extends State<VisitorPassPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: PreferredSize( title: '访客通行证',
child: CommonAppBar(
title: '访客通行证',
),
preferredSize: Size.fromHeight(kToolbarHeight),
),
body: Container( body: Container(
color: Color(0xff333333), color: Color(0xff333333),
child: Stack( child: Stack(

@ -1,6 +1,7 @@
import 'package:akuCommunity/utils/logger/logger_card.dart'; import 'package:akuCommunity/utils/logger/logger_card.dart';
import 'package:akuCommunity/utils/logger/logger_data.dart'; import 'package:akuCommunity/utils/logger/logger_data.dart';
import 'package:akuCommunity/extensions/page_router.dart'; import 'package:akuCommunity/extensions/page_router.dart';
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
@ -88,13 +89,11 @@ class _LoggerViewState extends State<LoggerView> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: AppBar( title: 'Logger',
title: 'Logger'.text.make(), actions: [
actions: [ IconButton(icon: Icon(Icons.list), onPressed: () {}),
IconButton(icon: Icon(Icons.list), onPressed: () {}), ],
],
),
body: ListView.builder( body: ListView.builder(
itemBuilder: (context, index) => itemBuilder: (context, index) =>
LoggerCard(data: LoggerData.data[index]), LoggerCard(data: LoggerData.data[index]),

@ -1,5 +1,6 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'asset.dart'; import 'asset.dart';
import 'bee_scaffold.dart';
class SearchBarDemo extends StatefulWidget { class SearchBarDemo extends StatefulWidget {
_SearchBarDemoState createState() => _SearchBarDemoState(); _SearchBarDemoState createState() => _SearchBarDemoState();
@ -8,16 +9,18 @@ class SearchBarDemo extends StatefulWidget {
class _SearchBarDemoState extends State<SearchBarDemo> { class _SearchBarDemoState extends State<SearchBarDemo> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return BeeScaffold(
appBar: AppBar(title: Text('SearchBarDemo'), actions: <Widget>[ title: 'SearchBarDemo',
IconButton( actions: [
icon: Icon(Icons.search), IconButton(
onPressed: () { icon: Icon(Icons.search),
showSearch(context: context, delegate: SearchBarDelegate()); onPressed: () {
} showSearch(context: context, delegate: SearchBarDelegate());
// showSearch(context:context,delegate: searchBarDelegate()), }
), // showSearch(context:context,delegate: searchBarDelegate()),
])); ),
],
);
} }
} }

Loading…
Cancel
Save