Merge from master

This commit is contained in:
kilowatt 2020-11-03 17:07:52 +03:00
parent daee0c03e0
commit 55c7d32c13

View File

@ -145,7 +145,19 @@ class _HomePageScreenState extends State<HomePageScreen> {
return ErrorScreen();
return Column(
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(
title: Text(
section.title??'',
@ -194,8 +206,6 @@ class _HomePageScreenState extends State<HomePageScreen> {
),
)
);
})
);
}
}