diff --git a/packages/flutter_bloc/example/lib/main.dart b/packages/flutter_bloc/example/lib/main.dart index 65446829e8c..b0f4c8b5c30 100644 --- a/packages/flutter_bloc/example/lib/main.dart +++ b/packages/flutter_bloc/example/lib/main.dart @@ -169,19 +169,9 @@ class ThemeCubit extends Cubit { /// {@macro brightness_cubit} ThemeCubit() : super(_lightTheme); - static final _lightTheme = ThemeData( - floatingActionButtonTheme: const FloatingActionButtonThemeData( - foregroundColor: Colors.white, - ), - brightness: Brightness.light, - ); - - static final _darkTheme = ThemeData( - floatingActionButtonTheme: const FloatingActionButtonThemeData( - foregroundColor: Colors.black, - ), - brightness: Brightness.dark, - ); + static final _lightTheme = ThemeData.light(); + + static final _darkTheme = ThemeData.dark(); /// Toggles the current brightness between light and dark. void toggleTheme() {