Skip to content

Commit

Permalink
hotfix: resolve small issues on version 2.0.0 (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
BBarisKilic authored May 11, 2024
2 parents 63e72ad + 929c9f3 commit 9778d68
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class SettingsBottomSheetCubit extends Cubit<SettingsBottomSheetState> {
isAudioOn: true,
playbackSpeed: PlaybackSpeed.one,
videoResolution: VideoResolution.original,
videoAspectRatio: VideoAspectRatio.independent,
videoAspectRatio: VideoAspectRatio.firstVideo,
);

Future<void> init() async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,15 @@ class _AppNavigationBarViewState extends State<_AppNavigationBarView> {
Widget build(BuildContext context) {
final l10n = context.l10n;
final bottomNavigationBarColor = context.colorScheme.secondaryContainer;
final iconBrightness = context.theme.brightness == Brightness.light
? Brightness.dark
: Brightness.light;

return AnnotatedRegion(
value: SystemUiOverlayStyle(
systemNavigationBarColor: bottomNavigationBarColor,
systemNavigationBarIconBrightness: context.theme.brightness,
systemNavigationBarDividerColor: bottomNavigationBarColor,
systemNavigationBarIconBrightness: iconBrightness,
),
child: Scaffold(
body: PageView(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ class _PreviewVideoViewState extends State<_PreviewVideoView>
systemOverlayStyle: SystemUiOverlayStyle(
systemNavigationBarColor:
context.colorScheme.secondaryContainer,
systemNavigationBarIconBrightness: context.theme.brightness,
systemNavigationBarDividerColor:
context.colorScheme.secondaryContainer,
systemNavigationBarIconBrightness:
context.theme.brightness == Brightness.light
? Brightness.dark
: Brightness.light,
),
),
// BottomAppBarTheme is used for the bottom bar in the picker.
Expand Down

0 comments on commit 9778d68

Please sign in to comment.