Compare commits
2 changed files with 4 additions and 12 deletions
|
|
@ -16,7 +16,6 @@ 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, {
|
||||||
|
|
@ -120,16 +119,9 @@ class const Composer(
|
||||||
)
|
)
|
||||||
? [
|
? [
|
||||||
IconButton(
|
IconButton(
|
||||||
onPressed: () => showModalBottomSheet(
|
onPressed: () {
|
||||||
isScrollControlled: true,
|
//TODO onSelection: (_) => node?.requestFocus(),
|
||||||
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(
|
||||||
|
|
|
||||||
|
|
@ -238,7 +238,7 @@ final class const RoomChat({
|
||||||
icon: Icon(Icons.emoji_emotions),
|
icon: Icon(Icons.emoji_emotions),
|
||||||
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
// TODO: More adaptive, e.g. dialog on desktop
|
// TODO: More adaptive
|
||||||
Navigator.of(context).pop();
|
Navigator.of(context).pop();
|
||||||
showModalBottomSheet(
|
showModalBottomSheet(
|
||||||
isScrollControlled: true,
|
isScrollControlled: true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue