From 3940e9a4375784ec1bdeab2b769fe881d5d36f0c Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Mon, 4 Dec 2023 23:33:37 -0600 Subject: [PATCH] chore(flutter_bloc): adjust example themes --- packages/flutter_bloc/example/lib/main.dart | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) 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() {