mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
feature: Details screen rework (#190)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
473e817e0f
commit
d2138da785
21 changed files with 462 additions and 394 deletions
|
|
@ -14,6 +14,7 @@ extension StringExtensions on String {
|
|||
}
|
||||
|
||||
String maxLength({int limitTo = 75}) {
|
||||
if (isEmpty) return this;
|
||||
if (length > limitTo) {
|
||||
return "${substring(0, limitTo.clamp(0, length))}...";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue