diff --git a/examples/flutter_gallery/lib/demo/shrine/app.dart b/examples/flutter_gallery/lib/demo/shrine/app.dart index e5eae3af50..cccf588347 100644 --- a/examples/flutter_gallery/lib/demo/shrine/app.dart +++ b/examples/flutter_gallery/lib/demo/shrine/app.dart @@ -58,7 +58,9 @@ class _ShrineAppState extends State with SingleTickerProviderStateMix ), initialRoute: '/login', onGenerateRoute: _getRoute, - theme: _kShrineTheme, + // Copy the platform from the main theme in order to support platform + // toggling from the Gallery options menu. + theme: _kShrineTheme.copyWith(platform: Theme.of(context).platform), ); } }