From cd0893093a95338faf05c6af91caa90a0bf0d84b Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Fri, 19 Mar 2021 17:45:12 +0800 Subject: [PATCH] no message --- lib/ui/home/business/business_page.dart | 3 ++- lib/ui/home/home_page.dart | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/ui/home/business/business_page.dart b/lib/ui/home/business/business_page.dart index cbf56f3..bb83e9b 100644 --- a/lib/ui/home/business/business_page.dart +++ b/lib/ui/home/business/business_page.dart @@ -1,5 +1,6 @@ // Flutter imports: import 'package:aku_community_manager/models/manager/bussiness_and_fix/bussiness_and_fix_model.dart'; +import 'package:aku_community_manager/models/manager/decoration/decoration_list_model.dart'; import 'package:flutter/material.dart'; // Project imports: @@ -70,7 +71,7 @@ class _BusinessPageState extends State padding: EdgeInsets.symmetric(horizontal: 32.w), itemBuilder: (context, index) { final item = list[index]; - if (item is DecorationModel) { + if (item is DecorationListModel) { return DecorationManagerCard(model: item); } else if (item is BussinessAndFixModel) { return BusinessFixCard(model: item); diff --git a/lib/ui/home/home_page.dart b/lib/ui/home/home_page.dart index bfd833d..c60e0f4 100644 --- a/lib/ui/home/home_page.dart +++ b/lib/ui/home/home_page.dart @@ -1,5 +1,6 @@ // Flutter imports: import 'package:aku_community_manager/models/manager/bussiness_and_fix/bussiness_and_fix_model.dart'; +import 'package:aku_community_manager/models/manager/decoration/decoration_list_model.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; @@ -502,7 +503,7 @@ class _HomePageState extends State { child: Builder( builder: (context) { final item = AllModel(context).waitThings[index]; - if (item is DecorationModel) { + if (item is DecorationListModel) { return DecorationManagerCard(model: item); } else if (item is BussinessAndFixModel) { return BusinessFixCard( @@ -539,7 +540,8 @@ class _HomePageState extends State { ), Row(children: [ GridientDiveder().horizontalDivider(343.w), - GridientDiveder(isReverse: true).horizontalDivider(343.w) + GridientDiveder(isReverse: true) + .horizontalDivider(343.w) ]), Row( children: [