[PATCH v1] page/buffer: fix interline height in compact mode
Export this patch
It was changed for some reason when moving to Material 3 and way
too large.
---
lib/page/buffer.dart | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/lib/page/buffer.dart b/lib/page/buffer.dart
index 7064a09..d3147f5 100644
--- a/lib/page/buffer.dart
+++ b/lib/page/buffer.dart
@@ -715,10 +715,13 @@ class _CompactMessageItem extends StatelessWidget {
return Container(
margin: EdgeInsets.only(top: prevMsgSameSender ? 0 : 2.5, bottom: last ? 10 : 0, left: 4, right: 5),
- child: Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
- Stack(children: stack),
- if (linkPreview != null) linkPreview,
- ]),
+ child: DefaultTextStyle.merge(
+ style: TextStyle(height: 1.15),
+ child: Column(crossAxisAlignment: CrossAxisAlignment.stretch, children: [
+ Stack(children: stack),
+ if (linkPreview != null) linkPreview,
+ ]),
+ ),
);
}
}
base-commit: 975ae000bdcda8c63de29ae78bab3c0b44c2b03f
--
2.45.1
Pushed, thanks!