diff --git a/README.md b/README.md index 1600b7e..e2f7f4b 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,6 @@ 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 diff --git a/lib/widgets/chat_page/html/html.dart b/lib/widgets/chat_page/html/html.dart index 65d45dd..32e3de7 100644 --- a/lib/widgets/chat_page/html/html.dart +++ b/lib/widgets/chat_page/html/html.dart @@ -14,13 +14,11 @@ import "package:nexus/widgets/chat_page/html/quoted.dart"; class Html extends ConsumerWidget { final String html; - final TextStyle? textStyle; - const Html(this.html, {this.textStyle, super.key}); + const Html(this.html, {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)); diff --git a/lib/widgets/chat_page/room_chat.dart b/lib/widgets/chat_page/room_chat.dart index 321cb0f..fe7e3a1 100644 --- a/lib/widgets/chat_page/room_chat.dart +++ b/lib/widgets/chat_page/room_chat.dart @@ -391,10 +391,6 @@ class RoomChat extends HookConsumerWidget { CrossAxisAlignment.start, children: [ Html( - textStyle: - message.metadata?["big"] == true - ? TextStyle(fontSize: 32) - : null, (message.metadata?["formatted"] as String) .replaceAllMapped(