Skip to content

Commit

Permalink
fix: updates flutter_statusbarcolor_ns to ^0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FilledStacks committed Dec 13, 2024
1 parent 4404698 commit 2dc6a47
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class MyApp extends StatelessWidget {
darkTheme: ThemeData(
brightness: Brightness.dark,
colorScheme: ColorScheme.fromSwatch().copyWith(
background: Colors.blue[700],
surface: Colors.blue[700],
brightness: Brightness.dark,
secondary: Colors.yellow[700],
),
),
lightTheme: ThemeData(
brightness: Brightness.light,
colorScheme: ColorScheme.fromSwatch().copyWith(
background: Colors.blue[300],
surface: Colors.blue[300],
brightness: Brightness.light,
secondary: Colors.yellow[300],
),
Expand Down
2 changes: 1 addition & 1 deletion example/lib/ui/dark_light/dark_light_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class DarkLightView extends StatelessWidget {
Widget build(BuildContext context) {
return ViewModelBuilder<DarkLightViewModel>.reactive(
builder: (context, model, child) => Scaffold(
backgroundColor: Theme.of(context).colorScheme.background,
backgroundColor: Theme.of(context).colorScheme.surface,
body: Padding(
padding: const EdgeInsets.all(20.0),
child: Center(
Expand Down
2 changes: 1 addition & 1 deletion example/lib/ui/multiple_themes/multiple_themes_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MultipleThemesView extends StatelessWidget {
var theme = Theme.of(context);
return ViewModelBuilder<MultipleThemesViewModel>.reactive(
builder: (context, model, child) => Scaffold(
backgroundColor: theme.colorScheme.background,
backgroundColor: theme.colorScheme.surface,
body: Center(
child: Wrap(
spacing: 30,
Expand Down
10 changes: 5 additions & 5 deletions example/lib/ui/theme_setup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@ List<ThemeData> getThemes() {
ThemeData(
colorScheme: ColorScheme.fromSwatch()
.copyWith(secondary: Colors.yellow)
.copyWith(background: Colors.blue)),
.copyWith(surface: Colors.blue)),
ThemeData(
colorScheme: ColorScheme.fromSwatch()
.copyWith(secondary: Colors.green)
.copyWith(background: Colors.white)),
.copyWith(surface: Colors.white)),
ThemeData(
colorScheme: ColorScheme.fromSwatch()
.copyWith(secondary: Colors.green)
.copyWith(background: Colors.purple)),
.copyWith(surface: Colors.purple)),
ThemeData(
colorScheme: ColorScheme.fromSwatch()
.copyWith(secondary: Colors.red)
.copyWith(background: Colors.black)),
.copyWith(surface: Colors.black)),
ThemeData(
colorScheme: ColorScheme.fromSwatch()
.copyWith(secondary: Colors.blue)
.copyWith(background: Colors.red)),
.copyWith(surface: Colors.red)),
];
}
2 changes: 2 additions & 0 deletions lib/src/theme_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ class _ThemeBuilderState extends State<ThemeBuilder>
break;
case AppLifecycleState.detached:
break;
case AppLifecycleState.hidden:
break;
}
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies:
rxdart: ^0.27.1
shared_preferences: ^2.0.6
get_it: ^7.1.3
flutter_statusbarcolor_ns: ^0.5.0
flutter_statusbarcolor_ns: ^0.6.0

universal_io: ^2.0.4

Expand Down

0 comments on commit 2dc6a47

Please # to comment.