|
|
@ -56,7 +56,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
|
|
|
|
|
|
|
|
int page = 1;
|
|
|
|
int page = 1;
|
|
|
|
|
|
|
|
|
|
|
|
List<GridButton> _gridList = [
|
|
|
|
List<GridButton> _gridList = [
|
|
|
|
GridButton('一键开门', R.ASSETS_ICONS_TOOL_YJKM_PNG, () {
|
|
|
|
GridButton('一键开门', R.ASSETS_ICONS_TOOL_YJKM_PNG, () {
|
|
|
|
Get.to(OpenDoorPage());
|
|
|
|
Get.to(OpenDoorPage());
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -147,45 +147,50 @@ class _HomePageState extends State<HomePage>
|
|
|
|
super.build(context);
|
|
|
|
super.build(context);
|
|
|
|
ScreenUtil.init(context,
|
|
|
|
ScreenUtil.init(context,
|
|
|
|
designSize: Size(750, 1334), allowFontScaling: true);
|
|
|
|
designSize: Size(750, 1334), allowFontScaling: true);
|
|
|
|
return BeeScaffold(
|
|
|
|
return Scaffold(
|
|
|
|
title: 'TEST',
|
|
|
|
extendBodyBehindAppBar: true,
|
|
|
|
bgColor: BaseStyle.colorffd000,
|
|
|
|
appBar: AppBar(
|
|
|
|
leading: Container(
|
|
|
|
title: 'TEST'.text.make(),
|
|
|
|
margin: EdgeInsets.only(left: 32.w),
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
child: Column(
|
|
|
|
elevation: 0,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
centerTitle: true,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
leading: Container(
|
|
|
|
children: [
|
|
|
|
margin: EdgeInsets.only(left: 32.w),
|
|
|
|
Text(
|
|
|
|
child: Column(
|
|
|
|
'深圳',
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
style: TextStyle(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
children: [
|
|
|
|
fontSize: 24.sp,
|
|
|
|
Text(
|
|
|
|
color: Color(0xff333333),
|
|
|
|
'深圳',
|
|
|
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
|
|
|
|
fontSize: 24.sp,
|
|
|
|
|
|
|
|
color: Color(0xff333333),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
'阴 27℃',
|
|
|
|
'阴 27℃',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 20.sp,
|
|
|
|
fontSize: 20.sp,
|
|
|
|
color: Color(0xff333333),
|
|
|
|
color: Color(0xff333333),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
actions: [
|
|
|
|
|
|
|
|
_buildColButton(
|
|
|
|
|
|
|
|
icon: AntDesign.scan1,
|
|
|
|
|
|
|
|
title: '扫一扫',
|
|
|
|
|
|
|
|
onTap: () => Get.to(ScanPage()),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
_buildColButton(
|
|
|
|
|
|
|
|
icon: AntDesign.bells,
|
|
|
|
|
|
|
|
title: '消息',
|
|
|
|
|
|
|
|
onTap: () => Get.to(MessageCenterPage()),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
16.wb,
|
|
|
|
actions: [
|
|
|
|
],
|
|
|
|
_buildColButton(
|
|
|
|
|
|
|
|
icon: AntDesign.scan1,
|
|
|
|
|
|
|
|
title: '扫一扫',
|
|
|
|
|
|
|
|
onTap: () => Get.to(ScanPage()),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
_buildColButton(
|
|
|
|
|
|
|
|
icon: AntDesign.bells,
|
|
|
|
|
|
|
|
title: '消息',
|
|
|
|
|
|
|
|
onTap: () => Get.to(MessageCenterPage()),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
16.wb,
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
),
|
|
|
|
body: RefreshConfiguration(
|
|
|
|
body: RefreshConfiguration(
|
|
|
|
child: SmartRefresher(
|
|
|
|
child: SmartRefresher(
|
|
|
|
controller: _refreshController,
|
|
|
|
controller: _refreshController,
|
|
|
@ -211,7 +216,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SingleAdSpace(
|
|
|
|
SingleAdSpace(
|
|
|
|
imagePath: 'assets/example/guanggao2.png',
|
|
|
|
imagePath: R.ASSETS_EXAMPLE_GUANGGAO2_PNG,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HomeTagBar(
|
|
|
|
HomeTagBar(
|
|
|
|
title: '物业收费标准请查收~',
|
|
|
|
title: '物业收费标准请查收~',
|
|
|
@ -225,7 +230,9 @@ class _HomePageState extends State<HomePage>
|
|
|
|
tag: '活动',
|
|
|
|
tag: '活动',
|
|
|
|
isShowImage: false,
|
|
|
|
isShowImage: false,
|
|
|
|
fun: () {
|
|
|
|
fun: () {
|
|
|
|
ActivitiesPage(bundle: Bundle()..putBool('isVote', false),).to;
|
|
|
|
ActivitiesPage(
|
|
|
|
|
|
|
|
bundle: Bundle()..putBool('isVote', false),
|
|
|
|
|
|
|
|
).to;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
HomeCard(
|
|
|
|
HomeCard(
|
|
|
|