mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 11:18:41 +00:00
add missing key and fix height
This commit is contained in:
parent
c3e92ac7d1
commit
66fb320355
6 changed files with 8 additions and 5 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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],
|
||||||
|
|
|
||||||
|
|
@ -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(
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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'),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue