dark theme in flutter by provider code example Example: flutter dark theme MaterialApp( darkTheme: ThemeData( brightness: Brightness.dark, ),