set to dark theme flutter code example Example: flutter dark theme MaterialApp( darkTheme: ThemeData( brightness: Brightness.dark, ),