hmxc
张萌 4 years ago
parent efa0141fed
commit cd0893093a

@ -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<BusinessPage>
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);

@ -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<HomePage> {
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<HomePage> {
),
Row(children: [
GridientDiveder().horizontalDivider(343.w),
GridientDiveder(isReverse: true).horizontalDivider(343.w)
GridientDiveder(isReverse: true)
.horizontalDivider(343.w)
]),
Row(
children: [

Loading…
Cancel
Save