mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
#157 opt.: icloud sync
This commit is contained in:
@@ -13,7 +13,7 @@ final _logger = Logger('iCloud');
|
||||
class ICloud {
|
||||
static const _containerId = 'iCloud.tech.lolli.serverbox';
|
||||
|
||||
const ICloud();
|
||||
const ICloud._();
|
||||
|
||||
/// Upload file to iCloud
|
||||
///
|
||||
@@ -148,7 +148,6 @@ class ICloud {
|
||||
errs.add(err);
|
||||
}
|
||||
}
|
||||
_logger.info('Errs: $errs');
|
||||
|
||||
return errs.isEmpty ? null : errs;
|
||||
} catch (e, s) {
|
||||
|
||||
@@ -43,11 +43,11 @@ void showSnackBarWithAction(
|
||||
));
|
||||
}
|
||||
|
||||
void showRestartSnackbar(BuildContext context, S s) {
|
||||
void showRestartSnackbar(BuildContext context, {String? btn, String? msg}) {
|
||||
showSnackBarWithAction(
|
||||
context,
|
||||
'${s.success}\n${s.needRestart}',
|
||||
s.restart,
|
||||
msg ?? 'Need restart to take effect',
|
||||
btn ?? 'Restart',
|
||||
() => rebuildAll(context),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user