1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-10 17:07:28 +00:00

Reformats platform_design to match repo conventions, fixes missing icon (#89)

This commit is contained in:
Andrew Brogdon
2019-06-11 08:53:53 -07:00
committed by GitHub
parent 325c5a5d2b
commit 938ef8682c
9 changed files with 271 additions and 69 deletions

View File

@@ -26,13 +26,13 @@ class _NewsTabState extends State<NewsTab> {
void initState() {
colors = getRandomColors(_itemsLength);
titles = List.generate(_itemsLength, (index) => generateRandomHeadline());
contents = List.generate(_itemsLength, (index) => lorem(paragraphs: 1, words: 24));
contents =
List.generate(_itemsLength, (index) => lorem(paragraphs: 1, words: 24));
super.initState();
}
Widget _listBuilder(context, index) {
if (index >= _itemsLength)
return null;
if (index >= _itemsLength) return null;
return SafeArea(
top: false,
@@ -81,7 +81,7 @@ class _NewsTabState extends State<NewsTab> {
],
),
),
)
),
),
);
}