fix: upgrade image_picker to 4.0.0

This commit is contained in:
mike doornenbal 2024-08-07 13:50:39 +02:00
parent 066cbe952e
commit 451f03ac5c
2 changed files with 15 additions and 17 deletions

View file

@ -184,13 +184,22 @@ Widget _createImagePickerContainer(
) {
var theme = Theme.of(context);
return Container(
padding: const EdgeInsets.all(8.0),
padding: const EdgeInsets.all(20),
color: Colors.white,
child: ImagePicker(
imagePickerTheme: ImagePickerTheme(
theme: ImagePickerTheme(
closeButtonBuilder: (ontap) => TextButton(
onPressed: onClose,
child: Text(
translations.cancelImagePickerBtn,
style: theme.textTheme.bodyMedium!.copyWith(
fontSize: 18,
decoration: TextDecoration.underline,
),
),
),
title: translations.imagePickerTitle,
titleTextSize: 16,
titleAlignment: TextAlign.center,
titleStyle: theme.textTheme.titleMedium,
iconSize: 40.0,
makePhotoText: translations.takePicture,
selectImageText: translations.uploadFile,
@ -199,16 +208,6 @@ Widget _createImagePickerContainer(
size: 40,
),
),
customButton: TextButton(
onPressed: onClose,
child: Text(
translations.cancelImagePickerBtn,
style: theme.textTheme.bodyMedium!.copyWith(
fontSize: 18,
decoration: TextDecoration.underline,
),
),
),
),
);
}

View file

@ -23,9 +23,8 @@ dependencies:
ref: 3.1.0
cached_network_image: ^3.2.2
flutter_image_picker:
git:
url: https://github.com/Iconica-Development/flutter_image_picker
ref: 1.0.5
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
version: ^4.0.0
flutter_profile:
git:
ref: 1.5.0