chore: Follow up custom reactions dialog
This commit is contained in:
parent
aa4a575c5c
commit
816b753efb
1 changed files with 18 additions and 30 deletions
|
|
@ -10,6 +10,7 @@ import 'package:swipe_to_action/swipe_to_action.dart';
|
||||||
import 'package:fluffychat/config/themes.dart';
|
import 'package:fluffychat/config/themes.dart';
|
||||||
import 'package:fluffychat/l10n/l10n.dart';
|
import 'package:fluffychat/l10n/l10n.dart';
|
||||||
import 'package:fluffychat/pages/chat/events/room_creation_state_event.dart';
|
import 'package:fluffychat/pages/chat/events/room_creation_state_event.dart';
|
||||||
|
import 'package:fluffychat/utils/adaptive_bottom_sheet.dart';
|
||||||
import 'package:fluffychat/utils/date_time_extension.dart';
|
import 'package:fluffychat/utils/date_time_extension.dart';
|
||||||
import 'package:fluffychat/utils/file_description.dart';
|
import 'package:fluffychat/utils/file_description.dart';
|
||||||
import 'package:fluffychat/utils/string_color.dart';
|
import 'package:fluffychat/utils/string_color.dart';
|
||||||
|
|
@ -705,41 +706,28 @@ class Message extends StatelessWidget {
|
||||||
.customReaction,
|
.customReaction,
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
final emoji =
|
final emoji =
|
||||||
await showDialog<
|
await showAdaptiveBottomSheet<
|
||||||
String>(
|
String>(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) =>
|
builder: (context) =>
|
||||||
AlertDialog(
|
Scaffold(
|
||||||
title: Row(
|
appBar: AppBar(
|
||||||
mainAxisSize:
|
title: Text(
|
||||||
MainAxisSize.min,
|
L10n.of(context)
|
||||||
spacing: 4,
|
.customReaction,
|
||||||
children: [
|
),
|
||||||
CloseButton(
|
leading: CloseButton(
|
||||||
onPressed: () =>
|
onPressed: () =>
|
||||||
Navigator.of(
|
Navigator.of(
|
||||||
context,
|
context,
|
||||||
).pop(
|
).pop(
|
||||||
null,
|
null,
|
||||||
),
|
|
||||||
),
|
),
|
||||||
Text(
|
),
|
||||||
L10n.of(context)
|
|
||||||
.customReaction,
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
titlePadding:
|
body: SizedBox(
|
||||||
const EdgeInsets
|
height:
|
||||||
.all(8),
|
double.infinity,
|
||||||
contentPadding:
|
|
||||||
const EdgeInsets
|
|
||||||
.all(0),
|
|
||||||
clipBehavior:
|
|
||||||
Clip.hardEdge,
|
|
||||||
content: SizedBox(
|
|
||||||
width: 350,
|
|
||||||
height: 350,
|
|
||||||
child: EmojiPicker(
|
child: EmojiPicker(
|
||||||
onEmojiSelected: (
|
onEmojiSelected: (
|
||||||
_,
|
_,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue