mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 02:07:58 -06:00
Added dependencies which fix crash on android 12L/13, improved list layout in inbox
This commit is contained in:
7
lib/extensions/string_extensions.dart
Normal file
7
lib/extensions/string_extensions.dart
Normal file
@@ -0,0 +1,7 @@
|
||||
extension SizeLimitedString on String {
|
||||
String withLengthLimitedTo(int length, [String overflow = "..."]) {
|
||||
return this.length > length
|
||||
? '${substring(0, length - overflow.length)}$overflow'
|
||||
: this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user