Dark Theme

Adding dark mode to your App

setup

 import "./themes/app_theme.dart";
 
 void main() {
   runApp(MyApp());
 }
 
 
 class MyApp extends StatelessWidget {
   @override
   Widget build(BuildContext context) {
     return MaterialApp(
       title: 'Flutter Demo',
       theme: FlutcnTheme.darkTheme(), 
       home: const MyHomePage(title: 'Flutter Demo Home Page'),
     );
   }
 }

Note

press hot reload and you will see the dark theme applied to your app.

On this page