This commit is contained in:
problematicconsumer
2023-12-28 10:43:57 +03:30
parent 3712c50c4e
commit 65847d3ea3
5 changed files with 4 additions and 16 deletions

View File

@@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
import 'package:hiddify/core/analytics/analytics_controller.dart';
import 'package:hiddify/core/localization/locale_extensions.dart';
import 'package:hiddify/core/localization/locale_preferences.dart';
@@ -33,7 +32,7 @@ class LocalePrefTile extends HookConsumerWidget {
title: Text(e.localeName),
value: e,
groupValue: locale,
onChanged: (e) => context.pop(e),
onChanged: Navigator.of(context).maybePop,
),
)
.toList(),
@@ -75,7 +74,7 @@ class RegionPrefTile extends HookConsumerWidget {
title: Text(e.present(t)),
value: e,
groupValue: region,
onChanged: (e) => context.pop(e),
onChanged: Navigator.of(context).maybePop,
),
)
.toList(),