Add back lost gallery theme code (#26333)

This commit is contained in:
xster
2019-01-11 14:36:14 -08:00
committed by GitHub
parent 141d6e1394
commit 181d357c95

View File

@@ -144,7 +144,17 @@ class _GalleryAppState extends State<GalleryApp> {
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,