Skip to content

Commit

Permalink
feat: Added statusbar
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Dec 12, 2024
1 parent 30c7944 commit 15bda46
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/src/components/status_bar/status_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import 'package:impaktfull_ui/src/util/descriptor/component_descriptor_mixin.dar

part 'status_bar.describe.dart';

class ImpaktfullUiStatusBar extends StatelessWidget with ComponentDescriptorMixin {
class ImpaktfullUiStatusBar extends StatelessWidget
with ComponentDescriptorMixin {
final Widget child;
final bool isDark;

Expand All @@ -28,8 +29,10 @@ class ImpaktfullUiStatusBar extends StatelessWidget with ComponentDescriptorMixi
Widget build(BuildContext context) {
return AnnotatedRegion<SystemUiOverlayStyle>(
value: isDark
? SystemUiOverlayStyle.dark.copyWith(systemNavigationBarColor: Colors.transparent)
: SystemUiOverlayStyle.light.copyWith(systemNavigationBarColor: Colors.transparent),
? SystemUiOverlayStyle.dark
.copyWith(systemNavigationBarColor: Colors.transparent)
: SystemUiOverlayStyle.light
.copyWith(systemNavigationBarColor: Colors.transparent),
child: child,
);
}
Expand Down

0 comments on commit 15bda46

Please sign in to comment.