This commit is contained in:
Thomas Klein Langenhorst 2024-07-15 11:00:32 +02:00 committed by GitHub
commit 00ffd6cf13
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 14 deletions

View file

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

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