mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-18 18:33:49 +02:00
fix(color-picker): get icon color from theme
This commit is contained in:
parent
91420fde78
commit
1ea2887e27
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
|||
## 5.0.0 - WIP
|
||||
- Get the color for the imagepicker from the Theme's primaryColor
|
||||
|
||||
## 4.0.0
|
||||
- Move to the new user story architecture
|
||||
|
||||
|
|
|
@ -24,12 +24,15 @@ Future<void> onPressSelectImage(
|
|||
color: Colors.white,
|
||||
child: ImagePicker(
|
||||
theme: ImagePickerTheme(
|
||||
spaceBetweenIcons: 32.0,
|
||||
iconColor: Theme.of(context).primaryColor,
|
||||
title: options.translations.imagePickerTitle,
|
||||
titleStyle: Theme.of(context).textTheme.titleMedium,
|
||||
iconSize: 60.0,
|
||||
makePhotoText: options.translations.takePicture,
|
||||
selectImageText: options.translations.uploadFile,
|
||||
selectImageIcon: const Icon(
|
||||
selectImageIcon: Icon(
|
||||
color: Theme.of(context).primaryColor,
|
||||
Icons.insert_drive_file_rounded,
|
||||
size: 60,
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue