mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 02:43:50 +02:00
bugfix imagepickertheme
This commit is contained in:
parent
7fd38e3770
commit
0caebe7d02
1 changed files with 6 additions and 3 deletions
|
@ -8,18 +8,19 @@ import 'package:flutter_image_picker/flutter_image_picker.dart';
|
|||
abstract class ChatService {
|
||||
ChatService({
|
||||
required this.options,
|
||||
required this.imagePickerTheme,
|
||||
required this.imagePickerConfig,
|
||||
required this.dataProvider,
|
||||
});
|
||||
|
||||
final CommunityChatInterface dataProvider;
|
||||
final ChatOptions options;
|
||||
final ImagePickerTheme imagePickerTheme;
|
||||
final ImagePickerConfig imagePickerConfig;
|
||||
bool _isFetchingUsers = false;
|
||||
|
||||
ChatTranslations translations(BuildContext buildContext);
|
||||
ImagePickerTheme imagePickerTheme(BuildContext context) =>
|
||||
const ImagePickerTheme();
|
||||
|
||||
ChatTranslations translations(BuildContext context);
|
||||
|
||||
Future<void> _push(BuildContext context, Widget widget) =>
|
||||
Navigator.of(context).push(
|
||||
|
@ -103,6 +104,8 @@ abstract class ChatService {
|
|||
() => Navigator.of(context).pop(),
|
||||
translations(context),
|
||||
),
|
||||
imagePickerConfig: imagePickerConfig,
|
||||
imagePickerTheme: imagePickerTheme(context),
|
||||
),
|
||||
),
|
||||
).then(
|
||||
|
|
Loading…
Reference in a new issue