From 66fb3203552908d27559a385487df58732347f6d Mon Sep 17 00:00:00 2001 From: otsmr Date: Tue, 18 Nov 2025 23:35:59 +0100 Subject: [PATCH] add missing key and fix height --- .../camera/camera_preview_components/camera_preview.dart | 4 ++-- lib/src/views/camera/camera_preview_controller_view.dart | 2 +- .../camera/share_image_components/best_friends_selector.dart | 2 ++ lib/src/views/camera/share_image_editor_view.dart | 2 +- lib/src/views/chats/media_viewer.view.dart | 2 +- lib/src/views/components/avatar_icon.component.dart | 1 + 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/src/views/camera/camera_preview_components/camera_preview.dart b/lib/src/views/camera/camera_preview_components/camera_preview.dart index 8cfb61d..6bae7e3 100644 --- a/lib/src/views/camera/camera_preview_components/camera_preview.dart +++ b/lib/src/views/camera/camera_preview_components/camera_preview.dart @@ -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, diff --git a/lib/src/views/camera/camera_preview_controller_view.dart b/lib/src/views/camera/camera_preview_controller_view.dart index 49fee04..007f1df 100644 --- a/lib/src/views/camera/camera_preview_controller_view.dart +++ b/lib/src/views/camera/camera_preview_controller_view.dart @@ -598,7 +598,7 @@ class _CameraPreviewViewState extends State { return Container(); } return MediaViewSizing( - requiredHeight: 90, + requiredHeight: 80, bottomNavigation: Container(), child: GestureDetector( onPanStart: (details) async { diff --git a/lib/src/views/camera/share_image_components/best_friends_selector.dart b/lib/src/views/camera/share_image_components/best_friends_selector.dart index 7271518..2f96d48 100644 --- a/lib/src/views/camera/share_image_components/best_friends_selector.dart +++ b/lib/src/views/camera/share_image_components/best_friends_selector.dart @@ -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], diff --git a/lib/src/views/camera/share_image_editor_view.dart b/lib/src/views/camera/share_image_editor_view.dart index 515e8ce..8ef97c5 100644 --- a/lib/src/views/camera/share_image_editor_view.dart +++ b/lib/src/views/camera/share_image_editor_view.dart @@ -524,7 +524,7 @@ class _ShareImageEditorView extends State { setState(() {}); }, child: MediaViewSizing( - requiredHeight: 90, + requiredHeight: 80, bottomNavigation: ColoredBox( color: Theme.of(context).colorScheme.surface, child: Row( diff --git a/lib/src/views/chats/media_viewer.view.dart b/lib/src/views/chats/media_viewer.view.dart index e3da12f..846b32d 100644 --- a/lib/src/views/chats/media_viewer.view.dart +++ b/lib/src/views/chats/media_viewer.view.dart @@ -513,7 +513,7 @@ class _MediaViewerViewState extends State { }, child: MediaViewSizing( bottomNavigation: bottomNavigation(), - requiredHeight: 90, + requiredHeight: 80, child: Stack( children: [ if (videoController != null) diff --git a/lib/src/views/components/avatar_icon.component.dart b/lib/src/views/components/avatar_icon.component.dart index 996fbe6..5b269a7 100644 --- a/lib/src/views/components/avatar_icon.component.dart +++ b/lib/src/views/components/avatar_icon.component.dart @@ -52,6 +52,7 @@ class _AvatarIconState extends State { super.dispose(); } + // ignore: strict_top_level_inference Widget errorBuilder(_, __, ___) { return const SvgPicture( AssetBytesLoader('assets/images/default_avatar.svg.vec'),