Skip to content

Commit

Permalink
chore(flutter_bloc): adjust example themes
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel committed Dec 5, 2023
1 parent b40cd4f commit 3940e9a
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions packages/flutter_bloc/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,19 +169,9 @@ class ThemeCubit extends Cubit<ThemeData> {
/// {@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() {
Expand Down

0 comments on commit 3940e9a

Please sign in to comment.