add camera picking support
Not tested.
This commit is contained in:
parent
c4f63d18b5
commit
bd1bad76d7
1 changed files with 14 additions and 0 deletions
|
|
@ -138,6 +138,20 @@ class Composer extends HookConsumerWidget {
|
|||
title: Text("Camera"),
|
||||
leading: Icon(Icons.add_a_photo),
|
||||
),
|
||||
onTap: () async => ref
|
||||
.watch(
|
||||
AttachmentController.provider(
|
||||
roomId,
|
||||
).notifier,
|
||||
)
|
||||
.add(
|
||||
(await ref
|
||||
.watch(
|
||||
ImagePickerController.provider,
|
||||
)
|
||||
.pickImage(source: .camera))!,
|
||||
)
|
||||
.onError(showError),
|
||||
),
|
||||
PopupMenuItem(
|
||||
child: ListTile(
|
||||
|
|
|
|||
Loading…
Reference in a new issue