1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

[platform_design]Fix problems in dark mode (#377)

This commit is contained in:
Abdullah Deshmukh
2020-03-19 23:09:40 +05:30
committed by GitHub
parent f8e3d391f3
commit 3a02748df2
3 changed files with 10 additions and 12 deletions

View File

@@ -20,6 +20,7 @@ class MyAdaptingApp extends StatelessWidget {
// Use the green theme for Material widgets.
primarySwatch: Colors.green,
),
darkTheme: ThemeData.dark(),
builder: (context, child) {
return CupertinoTheme(
// Instead of letting Cupertino widgets auto-adapt to the Material