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);
|
||||
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,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue