From fc67f2efc72a4b2afc115acbb60f1750b75e53d0 Mon Sep 17 00:00:00 2001 From: rami-a <2364772+rami-a@users.noreply.github.com> Date: Fri, 1 Feb 2019 14:13:14 -0500 Subject: [PATCH] Ensure Shrine app respects the platform toggle from Gallery options (#27400) * Ensure Shrine app repsects the platform toggle from Gallery options * Retrigger CI * Retrigger CI again --- examples/flutter_gallery/lib/demo/shrine/app.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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), ); } }