fluffychat/lib/pages/chat/events/sticker.dart
TheOneWithTheBraid 2e87050544 feat: add animated emoji support
- implement animated emoji support in both HTML and Linkify message type
- fix some missing font glyphs
- trim message input

Signed-off-by: TheOneWithTheBraid <the-one@with-the-braid.cf>
2023-07-13 18:17:29 +02:00

34 lines
768 B
Dart

import 'package:flutter/material.dart';
import 'package:adaptive_dialog/adaptive_dialog.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import 'package:matrix/matrix.dart';
import 'image_bubble.dart';
class Sticker extends StatelessWidget {
final Event event;
final Color watermarkColor;
const Sticker(this.event, {Key? key, required this.watermarkColor})
: super(key: key);
@override
Widget build(BuildContext context) {
return ImageBubble(
event,
width: 400,
height: 400,
fit: BoxFit.contain,
onTap: () {
showOkAlertDialog(
context: context,
message: event.body,
okLabel: L10n.of(context)!.ok,
);
},
watermarkColor: watermarkColor,
);
}
}