add missing key and fix height

This commit is contained in:
otsmr 2025-11-18 23:35:59 +01:00
parent c3e92ac7d1
commit 66fb320355
6 changed files with 8 additions and 5 deletions

View file

@ -20,7 +20,7 @@ class HomeViewCameraPreview extends StatelessWidget {
}
return Positioned.fill(
child: MediaViewSizing(
requiredHeight: 90,
requiredHeight: 80,
bottomNavigation: Container(),
child: Screenshot(
controller: screenshotController,
@ -60,7 +60,7 @@ class SendToCameraPreview extends StatelessWidget {
}
return Positioned.fill(
child: MediaViewSizing(
requiredHeight: 90,
requiredHeight: 80,
bottomNavigation: Container(),
child: Screenshot(
controller: screenshotController,

View file

@ -598,7 +598,7 @@ class _CameraPreviewViewState extends State<CameraPreviewView> {
return Container();
}
return MediaViewSizing(
requiredHeight: 90,
requiredHeight: 80,
bottomNavigation: Container(),
child: GestureDetector(
onPanStart: (details) async {

View file

@ -74,6 +74,7 @@ class BestFriendsSelector extends StatelessWidget {
children: [
Expanded(
child: UserCheckbox(
key: ValueKey(groups[firstUserIndex]),
isChecked: selectedGroupIds
.contains(groups[firstUserIndex].groupId),
group: groups[firstUserIndex],
@ -83,6 +84,7 @@ class BestFriendsSelector extends StatelessWidget {
if (secondUserIndex < groups.length)
Expanded(
child: UserCheckbox(
key: ValueKey(groups[secondUserIndex]),
isChecked: selectedGroupIds
.contains(groups[secondUserIndex].groupId),
group: groups[secondUserIndex],

View file

@ -524,7 +524,7 @@ class _ShareImageEditorView extends State<ShareImageEditorView> {
setState(() {});
},
child: MediaViewSizing(
requiredHeight: 90,
requiredHeight: 80,
bottomNavigation: ColoredBox(
color: Theme.of(context).colorScheme.surface,
child: Row(

View file

@ -513,7 +513,7 @@ class _MediaViewerViewState extends State<MediaViewerView> {
},
child: MediaViewSizing(
bottomNavigation: bottomNavigation(),
requiredHeight: 90,
requiredHeight: 80,
child: Stack(
children: [
if (videoController != null)

View file

@ -52,6 +52,7 @@ class _AvatarIconState extends State<AvatarIcon> {
super.dispose();
}
// ignore: strict_top_level_inference
Widget errorBuilder(_, __, ___) {
return const SvgPicture(
AssetBytesLoader('assets/images/default_avatar.svg.vec'),