mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Fix application settings on iOS
This commit is contained in:
@ -7,4 +7,6 @@ import 'package:flutter/foundation.dart' show kIsWeb;
|
||||
|
||||
bool get isWeb => kIsWeb;
|
||||
|
||||
bool get isAndroid => !isWeb && Platform.isAndroid;
|
||||
bool get isAndroid => !isWeb && Platform.isAndroid;
|
||||
|
||||
bool get isIOS => !isWeb && Platform.isIOS;
|
6
lib/utils/string_utils.dart
Normal file
6
lib/utils/string_utils.dart
Normal file
@ -0,0 +1,6 @@
|
||||
/// String utilities
|
||||
///
|
||||
/// @author Pierre Hubert
|
||||
|
||||
String reduceString(String str, int maxLen) =>
|
||||
str.length <= maxLen ? str : str.substring(0, maxLen - 3) + "...";
|
Reference in New Issue
Block a user