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( return Positioned.fill(
child: MediaViewSizing( child: MediaViewSizing(
requiredHeight: 90, requiredHeight: 80,
bottomNavigation: Container(), bottomNavigation: Container(),
child: Screenshot( child: Screenshot(
controller: screenshotController, controller: screenshotController,
@ -60,7 +60,7 @@ class SendToCameraPreview extends StatelessWidget {
} }
return Positioned.fill( return Positioned.fill(
child: MediaViewSizing( child: MediaViewSizing(
requiredHeight: 90, requiredHeight: 80,
bottomNavigation: Container(), bottomNavigation: Container(),
child: Screenshot( child: Screenshot(
controller: screenshotController, controller: screenshotController,

View file

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

View file

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

View file

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

View file

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

View file

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