mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 10:53:51 +02:00
Upgrade flutter_image_picker to 3.0.0
This commit is contained in:
parent
15f15748b6
commit
69f2d542bc
2 changed files with 11 additions and 14 deletions
|
@ -148,22 +148,19 @@ Widget _createImagePickerContainer(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
child: ImagePicker(
|
child: ImagePicker(
|
||||||
imagePickerTheme: ImagePickerTheme(
|
theme: ImagePickerTheme(
|
||||||
title: translations.imagePickerTitle,
|
|
||||||
titleTextSize: 16,
|
|
||||||
titleAlignment: TextAlign.center,
|
|
||||||
iconSize: 60.0,
|
iconSize: 60.0,
|
||||||
makePhotoText: translations.takePicture,
|
makePhotoText: translations.takePicture,
|
||||||
selectImageText: translations.uploadFile,
|
selectImageText: translations.uploadFile,
|
||||||
),
|
closeButtonBuilder: (onCLose) => ElevatedButton(
|
||||||
customButton: ElevatedButton(
|
style: ElevatedButton.styleFrom(
|
||||||
style: ElevatedButton.styleFrom(
|
backgroundColor: Theme.of(context).primaryColor,
|
||||||
backgroundColor: Theme.of(context).primaryColor,
|
),
|
||||||
),
|
onPressed: onClose,
|
||||||
onPressed: onClose,
|
child: Text(
|
||||||
child: Text(
|
translations.cancelImagePickerBtn,
|
||||||
translations.cancelImagePickerBtn,
|
style: const TextStyle(color: Colors.white),
|
||||||
style: const TextStyle(color: Colors.white),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
@ -25,7 +25,7 @@ dependencies:
|
||||||
flutter_image_picker:
|
flutter_image_picker:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/Iconica-Development/flutter_image_picker
|
url: https://github.com/Iconica-Development/flutter_image_picker
|
||||||
ref: 1.0.5
|
ref: 3.0.0
|
||||||
flutter_profile:
|
flutter_profile:
|
||||||
git:
|
git:
|
||||||
ref: 1.3.0
|
ref: 1.3.0
|
||||||
|
|
Loading…
Reference in a new issue