Compare commits

...

2 commits

Author SHA1 Message Date
8a53be261c
add todo for setting for SSD or CSD 2026-03-04 13:51:08 -05:00
5857b56d4c
add large emoji support 2026-03-04 13:51:02 -05:00
3 changed files with 8 additions and 1 deletions

View file

@ -103,6 +103,7 @@ A simple and user-friendly Matrix client made with Flutter and the Matrix Dart S
- [ ] Spam filtering
- [ ] Settings
- [ ] Light/Dark mode
- [ ] SSD or CSD
- [ ] Show media by default
- [ ] Dynamic Theming
- [ ] Devices

View file

@ -14,11 +14,13 @@ import "package:nexus/widgets/chat_page/html/quoted.dart";
class Html extends ConsumerWidget {
final String html;
const Html(this.html, {super.key});
final TextStyle? textStyle;
const Html(this.html, {this.textStyle, super.key});
@override
Widget build(BuildContext context, WidgetRef ref) => HtmlWidget(
html,
textStyle: textStyle,
customWidgetBuilder: (element) {
if (element.attributes.keys.contains("data-mx-spoiler")) {
return InlineCustomWidget(child: SpoilerText(text: element.text));

View file

@ -391,6 +391,10 @@ class RoomChat extends HookConsumerWidget {
CrossAxisAlignment.start,
children: [
Html(
textStyle:
message.metadata?["big"] == true
? TextStyle(fontSize: 32)
: null,
(message.metadata?["formatted"]
as String)
.replaceAllMapped(