mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: bump dart sdk to 3.8 (#20355)
* chore: bump dart sdk to 3.8 * chore: make build * make pigeon * chore: format files --------- Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
9b3718120b
commit
e52b9d15b5
643 changed files with 32561 additions and 35292 deletions
|
|
@ -12,9 +12,7 @@ import 'package:immich_mobile/widgets/settings/settings_switch_list_tile.dart';
|
|||
import 'package:permission_handler/permission_handler.dart';
|
||||
|
||||
class NotificationSetting extends HookConsumerWidget {
|
||||
const NotificationSetting({
|
||||
super.key,
|
||||
});
|
||||
const NotificationSetting({super.key});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context, WidgetRef ref) {
|
||||
|
|
@ -39,14 +37,8 @@ class NotificationSetting extends HookConsumerWidget {
|
|||
builder: (ctx) => AlertDialog(
|
||||
content: const Text('notification_permission_dialog_content').tr(),
|
||||
actions: [
|
||||
TextButton(
|
||||
child: const Text('cancel').tr(),
|
||||
onPressed: () => ctx.pop(),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () => openAppNotificationSettings(ctx),
|
||||
child: const Text('settings').tr(),
|
||||
),
|
||||
TextButton(child: const Text('cancel').tr(), onPressed: () => ctx.pop()),
|
||||
TextButton(onPressed: () => openAppNotificationSettings(ctx), child: const Text('settings').tr()),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
|
@ -63,10 +55,10 @@ class NotificationSetting extends HookConsumerWidget {
|
|||
buttonText: 'notification_permission_list_tile_enable_button'.tr(),
|
||||
onButtonTap: () =>
|
||||
ref.watch(notificationPermissionProvider.notifier).requestNotificationPermission().then((permission) {
|
||||
if (permission == PermissionStatus.permanentlyDenied) {
|
||||
showPermissionsDialog();
|
||||
}
|
||||
}),
|
||||
if (permission == PermissionStatus.permanentlyDenied) {
|
||||
showPermissionsDialog();
|
||||
}
|
||||
}),
|
||||
),
|
||||
SettingsSwitchListTile(
|
||||
enabled: hasPermission,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue