Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.

Commit 301635e

Browse files
authored
Merge pull request #696 from lamarios/bugfix/post-release-layout-issues
fix layout issues
2 parents fa8619d + f9a4aeb commit 301635e

File tree

5 files changed

+25
-20
lines changed

5 files changed

+25
-20
lines changed

lib/player/views/components/mini_player_aware.dart

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,27 @@ class MiniPlayerAware extends StatelessWidget {
1010

1111
@override
1212
Widget build(BuildContext context) {
13-
return Builder(
14-
builder: (
15-
context,
16-
) {
17-
bool isHidden =
18-
context.select((PlayerCubit cubit) => cubit.state.isHidden);
19-
bool isClosing =
20-
context.select((PlayerCubit cubit) => cubit.state.isClosing);
21-
bool isMini = context.select((PlayerCubit cubit) => cubit.state.isMini);
13+
return SafeArea(
14+
child: Builder(
15+
builder: (
16+
context,
17+
) {
18+
bool isHidden =
19+
context.select((PlayerCubit cubit) => cubit.state.isHidden);
20+
bool isClosing =
21+
context.select((PlayerCubit cubit) => cubit.state.isClosing);
22+
bool isMini =
23+
context.select((PlayerCubit cubit) => cubit.state.isMini);
2224

23-
return AnimatedContainer(
24-
padding: EdgeInsets.only(
25-
bottom: !isHidden && isMini && !isClosing ? targetHeight : 0),
26-
duration: animationDuration,
27-
curve: Curves.easeInOutQuad,
28-
child: SafeArea(bottom: !isHidden && isMini, child: child),
29-
);
30-
},
25+
return AnimatedContainer(
26+
padding: EdgeInsets.only(
27+
bottom: !isHidden && isMini && !isClosing ? targetHeight : 0),
28+
duration: animationDuration,
29+
curve: Curves.easeInOutQuad,
30+
child: child,
31+
);
32+
},
33+
),
3134
);
3235
}
3336
}

lib/player/views/components/player.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ class Player extends StatelessWidget {
126126
child: SafeArea(
127127
bottom: !isDragging,
128128
top: false,
129+
left: !isFullScreen,
130+
right: !isFullScreen,
129131
child: AnimatedContainer(
130132
duration: animationDuration,
131133
color: colors.surface,

lib/videos/views/components/download_modal_sheet.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DownloadModalSheet extends StatelessWidget {
2525
this.onDownloadStarted,
2626
this.onDownload});
2727

28-
static showVideoModalSheet(BuildContext context, Video video,
28+
static void showVideoModalSheet(BuildContext context, Video video,
2929
{Function(bool isDownloadStarted)? onDownloadStarted,
3030
Function()? onDownload}) {
3131
showModalBottomSheet<void>(

lib/videos/views/components/video_modal_sheet.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class VideoModalSheet extends StatelessWidget {
1515

1616
const VideoModalSheet({super.key, required this.video});
1717

18-
static showVideoModalSheet(BuildContext context, Video video) {
18+
static void showVideoModalSheet(BuildContext context, Video video) {
1919
showModalBottomSheet<void>(
2020
context: context,
2121
showDragHandle: true,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: clipious
2-
version: 1.22.10+4073
2+
version: 1.22.11+4074
33
publish_to: none
44
description: Client for invidious.
55
environment:

0 commit comments

Comments
 (0)