Chat context menu (w.i.p)

This commit is contained in:
2024-11-18 22:52:22 +08:00
parent 5032cccf38
commit ce414d92a2
6 changed files with 139 additions and 86 deletions

View File

@ -248,7 +248,7 @@ class _PostContentHeader extends StatelessWidget {
children: [
const Icon(Symbols.reply),
const Gap(16),
Text('reply').tr(),
Text('replyPost').tr(),
],
),
onTap: () {

View File

@ -76,11 +76,15 @@ class PostMediaPendingListRaw extends StatelessWidget {
final media = attachments[idx];
final result = (!kIsWeb && (Platform.isIOS || Platform.isMacOS))
? await showCupertinoImageCropper(
// ignore: use_build_context_synchronously
context,
// ignore: use_build_context_synchronously
imageProvider: media.getImageProvider(context)!,
)
: await showMaterialImageCropper(
// ignore: use_build_context_synchronously
context,
// ignore: use_build_context_synchronously
imageProvider: media.getImageProvider(context)!,
);