hook up emoji picker to composer
This commit is contained in:
parent
15371c699e
commit
f8d1b78282
1 changed files with 11 additions and 3 deletions
|
|
@ -16,6 +16,7 @@ import "package:nexus/models/relation_type.dart";
|
||||||
import "package:nexus/widgets/composer/mention_overlay.dart";
|
import "package:nexus/widgets/composer/mention_overlay.dart";
|
||||||
import "package:nexus/widgets/composer/relation_preview.dart";
|
import "package:nexus/widgets/composer/relation_preview.dart";
|
||||||
import "package:nexus/main.dart";
|
import "package:nexus/main.dart";
|
||||||
|
import "package:nexus/widgets/emoji_picker.dart";
|
||||||
|
|
||||||
class const Composer(
|
class const Composer(
|
||||||
final String roomId, {
|
final String roomId, {
|
||||||
|
|
@ -119,9 +120,16 @@ class const Composer(
|
||||||
)
|
)
|
||||||
? [
|
? [
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () {
|
onPressed: () => showModalBottomSheet(
|
||||||
//TODO onSelection: (_) => node?.requestFocus(),
|
isScrollControlled: true,
|
||||||
|
context: context,
|
||||||
|
builder: (context) => EmojiPicker(
|
||||||
|
onSelection: (value) {
|
||||||
|
controller.value.text += value;
|
||||||
|
node?.requestFocus();
|
||||||
},
|
},
|
||||||
|
),
|
||||||
|
),
|
||||||
icon: Icon(Icons.emoji_emotions),
|
icon: Icon(Icons.emoji_emotions),
|
||||||
),
|
),
|
||||||
PopupMenuButton(
|
PopupMenuButton(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue