[flutter_tool][gallery] Standardize target platform override behavior in tool and update flutter gallery to support it (#46206)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user