Sfoglia il codice sorgente

Set background color for dialogs

Vishnu Mohandas 4 anni fa
parent
commit
edf8f9236a
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      lib/main.dart

+ 3 - 0
lib/main.dart

@@ -150,6 +150,9 @@ class MyApp extends StatelessWidget with WidgetsBindingObserver {
           color: Color.fromRGBO(20, 20, 20, 1.0),
           color: Color.fromRGBO(20, 20, 20, 1.0),
         ),
         ),
         cardColor: Color.fromRGBO(25, 25, 25, 1.0),
         cardColor: Color.fromRGBO(25, 25, 25, 1.0),
+        dialogTheme: DialogTheme().copyWith(
+          backgroundColor: Color.fromRGBO(20, 20, 20, 1.0),
+        ),
       ),
       ),
       home: HomeWidget(_title),
       home: HomeWidget(_title),
     );
     );