mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Improve UI.
This commit is contained in:
@@ -334,7 +334,12 @@ class ComicTile extends StatelessWidget {
|
||||
}
|
||||
|
||||
var children = <Widget>[];
|
||||
for (var line in text.split('\n')) {
|
||||
var lines = text.split('\n');
|
||||
lines.removeWhere((e) => e.trim().isEmpty);
|
||||
if (lines.length > 3) {
|
||||
lines = lines.sublist(0, 3);
|
||||
}
|
||||
for (var line in lines) {
|
||||
children.add(Container(
|
||||
margin: const EdgeInsets.fromLTRB(2, 0, 2, 2),
|
||||
padding: constraints.maxWidth < 80
|
||||
|
Reference in New Issue
Block a user