mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-18 18:13:46 +02:00
fix: update image_picker dependency
This commit is contained in:
parent
7aef9d9617
commit
02c136d7ea
2 changed files with 17 additions and 24 deletions
|
@ -199,21 +199,13 @@ class _TimelinePostCreationScreenState
|
|||
var result = await showModalBottomSheet<Uint8List?>(
|
||||
context: context,
|
||||
builder: (context) => Container(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
padding: const EdgeInsets.all(20),
|
||||
color: theme.colorScheme.surface,
|
||||
child: ImagePicker(
|
||||
imagePickerConfig:
|
||||
widget.options.imagePickerConfig,
|
||||
imagePickerTheme: widget
|
||||
.options.imagePickerTheme ??
|
||||
config: widget.options.imagePickerConfig,
|
||||
theme: widget.options.imagePickerTheme ??
|
||||
ImagePickerTheme(
|
||||
titleAlignment: TextAlign.center,
|
||||
title: ' Do you want to upload a file'
|
||||
' or take a picture? ',
|
||||
titleTextSize:
|
||||
theme.textTheme.titleMedium!.fontSize!,
|
||||
font: theme
|
||||
.textTheme.titleMedium!.fontFamily!,
|
||||
titleStyle: theme.textTheme.titleMedium,
|
||||
iconSize: 40,
|
||||
selectImageText: 'UPLOAD FILE',
|
||||
makePhotoText: 'TAKE PICTURE',
|
||||
|
@ -221,18 +213,19 @@ class _TimelinePostCreationScreenState
|
|||
size: 40,
|
||||
Icons.insert_drive_file,
|
||||
),
|
||||
closeButtonBuilder: (onTap) => TextButton(
|
||||
onPressed: () {
|
||||
onTap();
|
||||
},
|
||||
child: Text(
|
||||
'Cancel',
|
||||
style: theme.textTheme.bodyMedium!
|
||||
.copyWith(
|
||||
decoration: TextDecoration.underline,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
customButton: TextButton(
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
},
|
||||
child: Text(
|
||||
'Cancel',
|
||||
style: theme.textTheme.bodyMedium!.copyWith(
|
||||
decoration: TextDecoration.underline,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
|
|
@ -23,7 +23,7 @@ dependencies:
|
|||
version: ^5.0.0
|
||||
flutter_image_picker:
|
||||
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||
version: ^1.0.5
|
||||
version: ^4.0.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_lints: ^2.0.0
|
||||
|
|
Loading…
Reference in a new issue