mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 10:53:51 +02:00
fix: upgrade image_picker to 4.0.0
This commit is contained in:
parent
066cbe952e
commit
451f03ac5c
2 changed files with 15 additions and 17 deletions
|
@ -184,13 +184,22 @@ Widget _createImagePickerContainer(
|
||||||
) {
|
) {
|
||||||
var theme = Theme.of(context);
|
var theme = Theme.of(context);
|
||||||
return Container(
|
return Container(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(20),
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
child: ImagePicker(
|
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,
|
title: translations.imagePickerTitle,
|
||||||
titleTextSize: 16,
|
titleStyle: theme.textTheme.titleMedium,
|
||||||
titleAlignment: TextAlign.center,
|
|
||||||
iconSize: 40.0,
|
iconSize: 40.0,
|
||||||
makePhotoText: translations.takePicture,
|
makePhotoText: translations.takePicture,
|
||||||
selectImageText: translations.uploadFile,
|
selectImageText: translations.uploadFile,
|
||||||
|
@ -199,16 +208,6 @@ Widget _createImagePickerContainer(
|
||||||
size: 40,
|
size: 40,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
customButton: TextButton(
|
|
||||||
onPressed: onClose,
|
|
||||||
child: Text(
|
|
||||||
translations.cancelImagePickerBtn,
|
|
||||||
style: theme.textTheme.bodyMedium!.copyWith(
|
|
||||||
fontSize: 18,
|
|
||||||
decoration: TextDecoration.underline,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,9 +23,8 @@ dependencies:
|
||||||
ref: 3.1.0
|
ref: 3.1.0
|
||||||
cached_network_image: ^3.2.2
|
cached_network_image: ^3.2.2
|
||||||
flutter_image_picker:
|
flutter_image_picker:
|
||||||
git:
|
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
url: https://github.com/Iconica-Development/flutter_image_picker
|
version: ^4.0.0
|
||||||
ref: 1.0.5
|
|
||||||
flutter_profile:
|
flutter_profile:
|
||||||
git:
|
git:
|
||||||
ref: 1.5.0
|
ref: 1.5.0
|
||||||
|
|
Loading…
Reference in a new issue