From 43b728db17ee334fea4c6c1388e9e1f7ac46db2b Mon Sep 17 00:00:00 2001 From: Awais Ur Rehman <57310043+Awaisoop@users.noreply.github.com> Date: Fri, 16 Oct 2020 14:54:26 +0500 Subject: [PATCH] Update main.dart --- lib/main.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 2a6d530..be89850 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -12,6 +12,8 @@ class MyApp extends StatelessWidget { return MaterialApp( title: 'Flutter Demo', debugShowCheckedModeBanner: false, + // theme:ThemeSwitcher.of(context).isDarkModeOn?darkTheme(context):lightTheme(context), + //you can also add black and white backgroup swtiching <3 theme: ThemeData( primarySwatch: Colors.blue, textTheme: TextTheme(title: TextStyle(color: Colors.black)),