Compare commits
No commits in common. "8a53be261cb67c2b738364fc63ea19664d9abd8f" and "e7462aab5738695de249bf9e132e96ba7ea75190" have entirely different histories.
8a53be261c
...
e7462aab57
3 changed files with 1 additions and 8 deletions
|
|
@ -103,7 +103,6 @@ A simple and user-friendly Matrix client made with Flutter and the Matrix Dart S
|
||||||
- [ ] Spam filtering
|
- [ ] Spam filtering
|
||||||
- [ ] Settings
|
- [ ] Settings
|
||||||
- [ ] Light/Dark mode
|
- [ ] Light/Dark mode
|
||||||
- [ ] SSD or CSD
|
|
||||||
- [ ] Show media by default
|
- [ ] Show media by default
|
||||||
- [ ] Dynamic Theming
|
- [ ] Dynamic Theming
|
||||||
- [ ] Devices
|
- [ ] Devices
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,11 @@ import "package:nexus/widgets/chat_page/html/quoted.dart";
|
||||||
|
|
||||||
class Html extends ConsumerWidget {
|
class Html extends ConsumerWidget {
|
||||||
final String html;
|
final String html;
|
||||||
final TextStyle? textStyle;
|
const Html(this.html, {super.key});
|
||||||
const Html(this.html, {this.textStyle, super.key});
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context, WidgetRef ref) => HtmlWidget(
|
Widget build(BuildContext context, WidgetRef ref) => HtmlWidget(
|
||||||
html,
|
html,
|
||||||
textStyle: textStyle,
|
|
||||||
customWidgetBuilder: (element) {
|
customWidgetBuilder: (element) {
|
||||||
if (element.attributes.keys.contains("data-mx-spoiler")) {
|
if (element.attributes.keys.contains("data-mx-spoiler")) {
|
||||||
return InlineCustomWidget(child: SpoilerText(text: element.text));
|
return InlineCustomWidget(child: SpoilerText(text: element.text));
|
||||||
|
|
|
||||||
|
|
@ -391,10 +391,6 @@ class RoomChat extends HookConsumerWidget {
|
||||||
CrossAxisAlignment.start,
|
CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Html(
|
Html(
|
||||||
textStyle:
|
|
||||||
message.metadata?["big"] == true
|
|
||||||
? TextStyle(fontSize: 32)
|
|
||||||
: null,
|
|
||||||
(message.metadata?["formatted"]
|
(message.metadata?["formatted"]
|
||||||
as String)
|
as String)
|
||||||
.replaceAllMapped(
|
.replaceAllMapped(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue