|
|
@ -239,8 +239,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
borderRadius: BorderRadius.circular(16.w),
|
|
|
|
borderRadius: BorderRadius.circular(16.w),
|
|
|
|
image: DecorationImage(
|
|
|
|
image: DecorationImage(
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
fit: BoxFit.fill,
|
|
|
|
image: AssetImage(
|
|
|
|
image: AssetImage( Assets.home.imgFkyq.path),
|
|
|
|
Assets.home.imgFkyq.path),
|
|
|
|
|
|
|
|
)),
|
|
|
|
)),
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
crossAxisAlignment:
|
|
|
@ -264,8 +263,11 @@ class _HomePageState extends State<HomePage>
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onTap: () {
|
|
|
|
onTap: () async {
|
|
|
|
Get.to(() => VisitorAccessPage());
|
|
|
|
BotToast.showText(
|
|
|
|
|
|
|
|
text: '本小区尚未配置门禁设备',
|
|
|
|
|
|
|
|
align: Alignment(0, 0.5));
|
|
|
|
|
|
|
|
//Get.to(() => VisitorAccessPage());
|
|
|
|
},
|
|
|
|
},
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -355,7 +357,9 @@ class _HomePageState extends State<HomePage>
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () async {
|
|
|
|
await TipsDialog.tipsDialog();
|
|
|
|
BotToast.showText(
|
|
|
|
|
|
|
|
text: '本小区尚未配置门禁设备',
|
|
|
|
|
|
|
|
align: Alignment(0, 0.5));
|
|
|
|
// Get.to(AdvicePage(
|
|
|
|
// Get.to(AdvicePage(
|
|
|
|
// type: AdviceType.SUGGESTION));
|
|
|
|
// type: AdviceType.SUGGESTION));
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -386,7 +390,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
_activityItemModels == []
|
|
|
|
_activityItemModels == []
|
|
|
|
? SizedBox()
|
|
|
|
? SizedBox()
|
|
|
|
: Container(
|
|
|
|
: Container(
|
|
|
|
height: 460.w,
|
|
|
|
height: 450.w,
|
|
|
|
child: ListView.separated(
|
|
|
|
child: ListView.separated(
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
padding: EdgeInsets.zero,
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
|
separatorBuilder: (context, index) {
|
|
|
@ -401,6 +405,7 @@ class _HomePageState extends State<HomePage>
|
|
|
|
child: Builder(
|
|
|
|
child: Builder(
|
|
|
|
builder: (context) {
|
|
|
|
builder: (context) {
|
|
|
|
return ActivityCard(
|
|
|
|
return ActivityCard(
|
|
|
|
|
|
|
|
home: true,
|
|
|
|
model:
|
|
|
|
model:
|
|
|
|
_activityItemModels[index]);
|
|
|
|
_activityItemModels[index]);
|
|
|
|
},
|
|
|
|
},
|
|
|
|