This commit is contained in:
lollipopkit
2024-05-14 23:39:17 +08:00
parent 04dfede535
commit ba4abcecfb
25 changed files with 86 additions and 279 deletions

View File

@@ -1,7 +1,6 @@
import 'package:fl_lib/fl_lib.dart';
import 'package:plain_notification_token/plain_notification_token.dart';
Future<String?> getToken() async {
if (isIOS) {
final plainNotificationToken = PlainNotificationToken();
@@ -14,10 +13,3 @@ Future<String?> getToken() async {
}
return null;
}
String? getFileName(String? path) {
if (path == null || path.isEmpty) {
return null;
}
return path.split('/').last;
}