mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-31 14:34:23 +01:00
2e87050544
- 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>
34 lines
768 B
Dart
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,
|
|
);
|
|
}
|
|
}
|