Browse Source

neon: add settings initial category to SettingsRoute

pull/456/head
Nikolas Rimikis 1 year ago
parent
commit
05df5b5f87
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 3
      packages/neon/neon/lib/src/utils/global_popups.dart

3
packages/neon/neon/lib/src/utils/global_popups.dart

@ -3,6 +3,7 @@ import 'package:meta/meta.dart';
import 'package:neon/l10n/localizations.dart';
import 'package:neon/src/blocs/first_launch.dart';
import 'package:neon/src/blocs/next_push.dart';
import 'package:neon/src/pages/settings.dart';
import 'package:neon/src/router.dart';
import 'package:neon/src/utils/global_options.dart';
import 'package:provider/provider.dart';
@ -43,7 +44,7 @@ class GlobalPopups {
action: SnackBarAction(
label: AppLocalizations.of(context).settings,
onPressed: () {
const SettingsRoute().go(context);
const SettingsRoute(initialCategory: SettingsCageories.pushNotifications).go(context);
},
),
),

Loading…
Cancel
Save