From 181d357c950c3a1ced08234e7947039a0e22e1b1 Mon Sep 17 00:00:00 2001 From: xster Date: Fri, 11 Jan 2019 14:36:14 -0800 Subject: [PATCH] Add back lost gallery theme code (#26333) --- examples/flutter_gallery/lib/gallery/app.dart | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/examples/flutter_gallery/lib/gallery/app.dart b/examples/flutter_gallery/lib/gallery/app.dart index e31e838efd..a502087660 100644 --- a/examples/flutter_gallery/lib/gallery/app.dart +++ b/examples/flutter_gallery/lib/gallery/app.dart @@ -144,7 +144,17 @@ class _GalleryAppState extends State { builder: (BuildContext context, Widget child) { return Directionality( textDirection: _options.textDirection, - child: _applyTextScaleFactor(child), + child: _applyTextScaleFactor( + // Specifically use a blank Cupertino theme here and do not transfer + // over the Material primary color etc except the brightness to + // showcase standard iOS looks. + CupertinoTheme( + data: CupertinoThemeData( + brightness: _options.theme.data.brightness, + ), + child: child, + ), + ), ); }, home: home,