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:
@@ -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