use bool in assert (#12170)

This commit is contained in:
Alexandre Ardhuin
2017-09-21 09:33:01 +02:00
committed by GitHub
parent cde6b669b3
commit 2958d7d0fc
74 changed files with 312 additions and 312 deletions

View File

@@ -186,7 +186,7 @@ class GalleryHomeState extends State<GalleryHome> with SingleTickerProviderState
assert(() {
showPreviewBanner = false;
return true;
});
}());
if (showPreviewBanner) {
home = new Stack(

View File

@@ -331,7 +331,7 @@ List<GalleryItem> _buildGalleryItems() {
),
);
return true;
});
}());
return galleryItems;
}

View File

@@ -114,7 +114,7 @@ class StocksAppState extends State<StocksApp> {
debugPaintPointersEnabled = _configuration.debugShowPointers;
debugRepaintRainbowEnabled = _configuration.debugShowRainbow;
return true;
});
}());
return new MaterialApp(
title: 'Stocks',
theme: theme,

View File

@@ -199,7 +199,7 @@ class StockSettingsState extends State<StockSettings> {
),
]);
return true;
});
}());
return new ListView(
padding: const EdgeInsets.symmetric(vertical: 20.0),
children: rows,