use bool in assert (#12170)
This commit is contained in:
committed by
GitHub
parent
cde6b669b3
commit
2958d7d0fc
@@ -186,7 +186,7 @@ class GalleryHomeState extends State<GalleryHome> with SingleTickerProviderState
|
||||
assert(() {
|
||||
showPreviewBanner = false;
|
||||
return true;
|
||||
});
|
||||
}());
|
||||
|
||||
if (showPreviewBanner) {
|
||||
home = new Stack(
|
||||
|
||||
@@ -331,7 +331,7 @@ List<GalleryItem> _buildGalleryItems() {
|
||||
),
|
||||
);
|
||||
return true;
|
||||
});
|
||||
}());
|
||||
|
||||
return galleryItems;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ class StocksAppState extends State<StocksApp> {
|
||||
debugPaintPointersEnabled = _configuration.debugShowPointers;
|
||||
debugRepaintRainbowEnabled = _configuration.debugShowRainbow;
|
||||
return true;
|
||||
});
|
||||
}());
|
||||
return new MaterialApp(
|
||||
title: 'Stocks',
|
||||
theme: theme,
|
||||
|
||||
@@ -199,7 +199,7 @@ class StockSettingsState extends State<StockSettings> {
|
||||
),
|
||||
]);
|
||||
return true;
|
||||
});
|
||||
}());
|
||||
return new ListView(
|
||||
padding: const EdgeInsets.symmetric(vertical: 20.0),
|
||||
children: rows,
|
||||
|
||||
Reference in New Issue
Block a user