mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 10:53:51 +02:00
refactor: polish image picker styling
This commit is contained in:
parent
c4955e6eb7
commit
158973cd7a
2 changed files with 15 additions and 1 deletions
|
@ -137,9 +137,17 @@ 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(
|
||||||
|
title: translations.imagePickerTitle,
|
||||||
|
titleTextSize: 16,
|
||||||
|
titleAlignment: TextAlign.center,
|
||||||
|
iconSize: 60.0,
|
||||||
|
makePhotoText: translations.takePicture,
|
||||||
|
selectImageText: translations.uploadFile,
|
||||||
|
),
|
||||||
customButton: ElevatedButton(
|
customButton: ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
backgroundColor: Colors.black,
|
backgroundColor: const Color.fromRGBO(113, 198, 209, 1),
|
||||||
),
|
),
|
||||||
onPressed: onClose,
|
onPressed: onClose,
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|
|
@ -26,6 +26,9 @@ class ChatTranslations {
|
||||||
this.anonymousUser = 'Anonymous user',
|
this.anonymousUser = 'Anonymous user',
|
||||||
this.chatCantBeDeleted = 'This chat can\'t be deleted',
|
this.chatCantBeDeleted = 'This chat can\'t be deleted',
|
||||||
this.chatProfileUsers = 'Users:',
|
this.chatProfileUsers = 'Users:',
|
||||||
|
this.imagePickerTitle = 'Do you want to upload a file or take a picture?',
|
||||||
|
this.uploadFile = 'UPLOAD FILE',
|
||||||
|
this.takePicture = 'TAKE PICTURE',
|
||||||
});
|
});
|
||||||
|
|
||||||
final String chatsTitle;
|
final String chatsTitle;
|
||||||
|
@ -48,6 +51,9 @@ class ChatTranslations {
|
||||||
final String noChatsFound;
|
final String noChatsFound;
|
||||||
final String chatCantBeDeleted;
|
final String chatCantBeDeleted;
|
||||||
final String chatProfileUsers;
|
final String chatProfileUsers;
|
||||||
|
final String imagePickerTitle;
|
||||||
|
final String uploadFile;
|
||||||
|
final String takePicture;
|
||||||
|
|
||||||
/// Shown when the user has no name
|
/// Shown when the user has no name
|
||||||
final String anonymousUser;
|
final String anonymousUser;
|
||||||
|
|
Loading…
Reference in a new issue