Upgrade flutter_image_picker to 3.0.0

This commit is contained in:
Thomas Klein Langenhorst 2024-07-15 10:57:57 +02:00
parent 15f15748b6
commit 69f2d542bc
2 changed files with 11 additions and 14 deletions

View file

@ -148,15 +148,11 @@ 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,
), ),
@ -167,6 +163,7 @@ Widget _createImagePickerContainer(
), ),
), ),
), ),
),
); );
Scaffold _createScaffold( Scaffold _createScaffold(

View file

@ -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