Merge from master
This commit is contained in:
parent
daee0c03e0
commit
55c7d32c13
|
@ -144,8 +144,20 @@ class _HomePageScreenState extends State<HomePageScreen> {
|
||||||
if (_error)
|
if (_error)
|
||||||
return ErrorScreen();
|
return ErrorScreen();
|
||||||
return Column(
|
return Column(
|
||||||
children: List.generate(_homePage.sections.length, (i) {
|
children: List.generate(_homePage.sections.length, (i) {
|
||||||
HomePageSection section = _homePage.sections[i];
|
return HomepageSectionWidget(_homePage.sections[i]);
|
||||||
|
},
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class HomepageSectionWidget extends StatelessWidget {
|
||||||
|
|
||||||
|
final HomePageSection section;
|
||||||
|
HomepageSectionWidget(this.section);
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
return ListTile(
|
return ListTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
section.title??'',
|
section.title??'',
|
||||||
|
@ -194,8 +206,6 @@ class _HomePageScreenState extends State<HomePageScreen> {
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue