|
|
@ -210,7 +210,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 32.w),
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 32.w),
|
|
|
|
padding:
|
|
|
|
padding:
|
|
|
|
EdgeInsets.only(top: 20.w, left: 36.w, right: 36.w),
|
|
|
|
EdgeInsets.only(top: 20.w, left: 0.w, right: 0.w),
|
|
|
|
child: _applications(), //ApplicationView(),
|
|
|
|
child: _applications(), //ApplicationView(),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: Colors.white,
|
|
|
|
color: Colors.white,
|
|
|
@ -230,7 +230,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
flex: 2,
|
|
|
|
child: GestureDetector(
|
|
|
|
child: GestureDetector(
|
|
|
|
child: Container(
|
|
|
|
child: Container(
|
|
|
|
padding:
|
|
|
|
padding:
|
|
|
@ -250,7 +250,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
'访客邀请',
|
|
|
|
'访客邀请',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
fontSize: 26.sp,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
10.hb,
|
|
|
|
10.hb,
|
|
|
@ -271,7 +271,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
BeeGradientDivider.vertical(),
|
|
|
|
BeeGradientDivider.vertical(),
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
|
flex: 2,
|
|
|
|
flex: 3,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
|
|
Expanded(
|
|
|
@ -297,7 +297,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
'一键报警',
|
|
|
|
'一键报警',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
fontSize: 26.sp,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
10.hb,
|
|
|
|
10.hb,
|
|
|
@ -340,7 +340,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
'建议咨询',
|
|
|
|
'建议咨询',
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
color: Color(0xD9000000),
|
|
|
|
fontSize: 26.sp,
|
|
|
|
fontSize: 28.sp,
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
10.hb,
|
|
|
|
10.hb,
|
|
|
@ -368,45 +368,55 @@ class _HomePageState extends State<HomePage>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
child: Column(
|
|
|
|
child: Container(
|
|
|
|
children: [
|
|
|
|
padding: EdgeInsets.all(32.w),
|
|
|
|
HomeTitle(
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 32.w),
|
|
|
|
title: '社区活动',
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
suffixTitle: '查看全部',
|
|
|
|
color: Colors.white,
|
|
|
|
onTap: () => Get.to(() => ActivityListPage()),
|
|
|
|
borderRadius: BorderRadius.circular(16.w)),
|
|
|
|
),
|
|
|
|
child: Column(
|
|
|
|
_activityItemModels == []
|
|
|
|
children: [
|
|
|
|
? SizedBox()
|
|
|
|
HomeTitle(
|
|
|
|
: Container(
|
|
|
|
title: '社区活动',
|
|
|
|
height: 480.w,
|
|
|
|
suffixTitle: '查看全部',
|
|
|
|
padding: EdgeInsets.only(left: 32.w),
|
|
|
|
onTap: () => Get.to(() => ActivityListPage()),
|
|
|
|
child: ListView.separated(
|
|
|
|
),
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
24.hb,
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
_activityItemModels == []
|
|
|
|
return SizedBox(
|
|
|
|
? SizedBox()
|
|
|
|
width: 16.w,
|
|
|
|
: Container(
|
|
|
|
);
|
|
|
|
height: 460.w,
|
|
|
|
},
|
|
|
|
child: ListView.separated(
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
return Container(
|
|
|
|
return SizedBox(
|
|
|
|
width: 500.w,
|
|
|
|
width: 16.w,
|
|
|
|
child: Builder(
|
|
|
|
);
|
|
|
|
builder: (context) {
|
|
|
|
},
|
|
|
|
return ActivityCard(
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
model:
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
_activityItemModels[index]);
|
|
|
|
return Container(
|
|
|
|
},
|
|
|
|
width: 500.w,
|
|
|
|
),
|
|
|
|
child: Builder(
|
|
|
|
);
|
|
|
|
builder: (context) {
|
|
|
|
},
|
|
|
|
return ActivityCard(
|
|
|
|
itemCount: _activityItemModels.length,
|
|
|
|
model:
|
|
|
|
|
|
|
|
_activityItemModels[index]);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
itemCount: _activityItemModels.length,
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
// : ActivityCard(model: _activityItemModel)
|
|
|
|
// : ActivityCard(model: _activityItemModel)
|
|
|
|
// .pSymmetric(h: 24.w, v: 24.w),
|
|
|
|
// .pSymmetric(h: 24.w, v: 24.w),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
|
|
|
|
SliverToBoxAdapter(
|
|
|
|
|
|
|
|
child: 48.hb,
|
|
|
|
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -529,7 +539,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
getFunctionBtn(AO.fromRaw('周边服务')),
|
|
|
|
getFunctionBtn(AO.fromRaw('周边服务')),
|
|
|
|
getFunctionBtn(AO.fromRaw('小蜜蜂任务', replaceTitle: '任务发布')),
|
|
|
|
getFunctionBtn(AO.fromRaw('任务发布', replaceTitle: '任务发布')),
|
|
|
|
getFunctionBtn(AO.fromRaw('邻家宠物')),
|
|
|
|
getFunctionBtn(AO.fromRaw('邻家宠物')),
|
|
|
|
getFunctionBtn(AO.fromRaw('全部应用')),
|
|
|
|
getFunctionBtn(AO.fromRaw('全部应用')),
|
|
|
|
],
|
|
|
|
],
|
|
|
|