This commit is contained in:
lollipopkit
2023-11-27 17:35:15 +08:00
parent 05de760c41
commit ad49593fe3
21 changed files with 62 additions and 102 deletions

View File

@@ -1,9 +1,7 @@
import 'package:flutter/services.dart';
import 'package:toolbox/data/res/misc.dart';
class BgRunMC {
const BgRunMC._();
abstract final class BgRunMC {
static const _channel = MethodChannel('${Miscs.pkgName}/app_retain');
static void moveToBg() {

View File

@@ -1,9 +1,7 @@
import 'package:flutter/services.dart';
import 'package:toolbox/data/res/misc.dart';
class HomeWidgetMC {
const HomeWidgetMC._();
abstract final class HomeWidgetMC {
static const _channel = MethodChannel('${Miscs.pkgName}/home_widget');
static void update() {

View File

@@ -5,9 +5,7 @@ import 'package:flutter/foundation.dart';
import 'package:hive_flutter/hive_flutter.dart';
import 'package:toolbox/data/res/path.dart';
// class SecureStore {
// SecureStore._();
// abstract final class SecureStore {
// static const _secureStorage = FlutterSecureStorage();
// static HiveAesCipher? _cipher;

View File

@@ -25,11 +25,9 @@ class SyncResult<T, E> {
}
}
class ICloud {
abstract final class ICloud {
static const _containerId = 'iCloud.tech.lolli.serverbox';
const ICloud._();
/// Upload file to iCloud
///
/// - [relativePath] is the path relative to [docDir],

View File

@@ -5,9 +5,7 @@ import 'package:local_auth/local_auth.dart';
import 'package:toolbox/core/utils/platform/base.dart';
import 'package:local_auth/error_codes.dart' as errs;
class BioAuth {
const BioAuth._();
abstract final class BioAuth {
static final _auth = LocalAuthentication();
static bool get isPlatformSupported => isAndroid || isIOS || isWindows;

View File

@@ -5,9 +5,7 @@ import 'package:share_plus/share_plus.dart';
import 'package:toolbox/core/extension/context/locale.dart';
import 'package:toolbox/data/res/provider.dart';
class Shares {
const Shares._();
abstract final class Shares {
static Future<bool> files(List<String> filePaths) async {
for (final filePath in filePaths) {
if (!await File(filePath).exists()) {