feat: fix overflow text & separate version from patch name (#666)

* chore: Add note

* feat: Fix overflow text & seperate version from patch title

* feat: Fix overflow text & separate version from patch name
This commit is contained in:
EvadeMaster 2023-01-30 19:07:25 +07:00 committed by GitHub
parent 1c965c3788
commit 40888c07f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,25 +75,27 @@ class _PatchItemState extends State<PatchItem> {
Row( Row(
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
children: <Widget>[ children: <Widget>[
Text( Expanded(
widget.simpleName, child: Text(
maxLines: 2, widget.simpleName,
overflow: TextOverflow.visible, maxLines: 2,
style: const TextStyle( overflow: TextOverflow.visible,
fontSize: 16, style: const TextStyle(
fontWeight: FontWeight.w600, fontSize: 16,
), fontWeight: FontWeight.w600,
), ),
const SizedBox(width: 6),
Text(
widget.version,
style: TextStyle(
fontSize: 16,
color: Theme.of(context).colorScheme.secondary,
), ),
), ),
], ],
), ),
const SizedBox(height: 1),
Text(
widget.version,
style: TextStyle(
fontSize: 14,
color: Theme.of(context).colorScheme.secondary,
),
),
const SizedBox(height: 4), const SizedBox(height: 4),
Text( Text(
widget.description, widget.description,
@ -201,4 +203,4 @@ class _PatchItemState extends State<PatchItem> {
), ),
); );
} }
} }