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),
color: Colors.white,
child: ImagePicker(
imagePickerTheme: ImagePickerTheme(
title: translations.imagePickerTitle,
titleTextSize: 16,
titleAlignment: TextAlign.center,
theme: ImagePickerTheme(
iconSize: 60.0,
makePhotoText: translations.takePicture,
selectImageText: translations.uploadFile,
),
customButton: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context).primaryColor,
),
onPressed: onClose,
child: Text(
translations.cancelImagePickerBtn,
style: const TextStyle(color: Colors.white),
closeButtonBuilder: (onCLose) => ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Theme.of(context).primaryColor,
),
onPressed: onClose,
child: Text(
translations.cancelImagePickerBtn,
style: const TextStyle(color: Colors.white),
),
),
),
),

View file

@ -25,7 +25,7 @@ dependencies:
flutter_image_picker:
git:
url: https://github.com/Iconica-Development/flutter_image_picker
ref: 1.0.5
ref: 3.0.0
flutter_profile:
git:
ref: 1.3.0