[flutter_tool][gallery] Standardize target platform override behavior in tool and update flutter gallery to support it (#46206)

This commit is contained in:
Jonah Williams
2019-12-12 15:20:52 -08:00
committed by GitHub
parent 187c89b69d
commit 5ba2830c83
5 changed files with 43 additions and 26 deletions

View File

@@ -70,6 +70,12 @@ class _GalleryAppState extends State<GalleryApp> {
model = AppStateModel()..loadProducts();
}
@override
void reassemble() {
_options = _options.copyWith(platform: defaultTargetPlatform);
super.reassemble();
}
@override
void dispose() {
_timeDilationTimer?.cancel();