hmxc
张萌 4 years ago
parent efa0141fed
commit cd0893093a

@ -1,5 +1,6 @@
// Flutter imports: // Flutter imports:
import 'package:aku_community_manager/models/manager/bussiness_and_fix/bussiness_and_fix_model.dart'; 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/material.dart';
// Project imports: // Project imports:
@ -70,7 +71,7 @@ class _BusinessPageState extends State<BusinessPage>
padding: EdgeInsets.symmetric(horizontal: 32.w), padding: EdgeInsets.symmetric(horizontal: 32.w),
itemBuilder: (context, index) { itemBuilder: (context, index) {
final item = list[index]; final item = list[index];
if (item is DecorationModel) { if (item is DecorationListModel) {
return DecorationManagerCard(model: item); return DecorationManagerCard(model: item);
} else if (item is BussinessAndFixModel) { } else if (item is BussinessAndFixModel) {
return BusinessFixCard(model: item); return BusinessFixCard(model: item);

@ -1,5 +1,6 @@
// Flutter imports: // Flutter imports:
import 'package:aku_community_manager/models/manager/bussiness_and_fix/bussiness_and_fix_model.dart'; 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/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
@ -502,7 +503,7 @@ class _HomePageState extends State<HomePage> {
child: Builder( child: Builder(
builder: (context) { builder: (context) {
final item = AllModel(context).waitThings[index]; final item = AllModel(context).waitThings[index];
if (item is DecorationModel) { if (item is DecorationListModel) {
return DecorationManagerCard(model: item); return DecorationManagerCard(model: item);
} else if (item is BussinessAndFixModel) { } else if (item is BussinessAndFixModel) {
return BusinessFixCard( return BusinessFixCard(
@ -539,7 +540,8 @@ class _HomePageState extends State<HomePage> {
), ),
Row(children: [ Row(children: [
GridientDiveder().horizontalDivider(343.w), GridientDiveder().horizontalDivider(343.w),
GridientDiveder(isReverse: true).horizontalDivider(343.w) GridientDiveder(isReverse: true)
.horizontalDivider(343.w)
]), ]),
Row( Row(
children: [ children: [

Loading…
Cancel
Save