mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 02:23: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?>(
|
var result = await showModalBottomSheet<Uint8List?>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) => Container(
|
builder: (context) => Container(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(20),
|
||||||
color: theme.colorScheme.surface,
|
color: theme.colorScheme.surface,
|
||||||
child: ImagePicker(
|
child: ImagePicker(
|
||||||
imagePickerConfig:
|
config: widget.options.imagePickerConfig,
|
||||||
widget.options.imagePickerConfig,
|
theme: widget.options.imagePickerTheme ??
|
||||||
imagePickerTheme: widget
|
|
||||||
.options.imagePickerTheme ??
|
|
||||||
ImagePickerTheme(
|
ImagePickerTheme(
|
||||||
titleAlignment: TextAlign.center,
|
titleStyle: theme.textTheme.titleMedium,
|
||||||
title: ' Do you want to upload a file'
|
|
||||||
' or take a picture? ',
|
|
||||||
titleTextSize:
|
|
||||||
theme.textTheme.titleMedium!.fontSize!,
|
|
||||||
font: theme
|
|
||||||
.textTheme.titleMedium!.fontFamily!,
|
|
||||||
iconSize: 40,
|
iconSize: 40,
|
||||||
selectImageText: 'UPLOAD FILE',
|
selectImageText: 'UPLOAD FILE',
|
||||||
makePhotoText: 'TAKE PICTURE',
|
makePhotoText: 'TAKE PICTURE',
|
||||||
|
@ -221,18 +213,19 @@ class _TimelinePostCreationScreenState
|
||||||
size: 40,
|
size: 40,
|
||||||
Icons.insert_drive_file,
|
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
|
version: ^5.0.0
|
||||||
flutter_image_picker:
|
flutter_image_picker:
|
||||||
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
hosted: https://forgejo.internal.iconica.nl/api/packages/internal/pub
|
||||||
version: ^1.0.5
|
version: ^4.0.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_lints: ^2.0.0
|
flutter_lints: ^2.0.0
|
||||||
|
|
Loading…
Reference in a new issue