Skip to content

Commit

Permalink
Update settings_require_suggested_app_version.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Nov 22, 2023
1 parent c29c14e commit 7023a58
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_i18n/widgets/I18nText.dart';
import 'package:revanced_manager/services/haptics.dart';
import 'package:revanced_manager/ui/views/settings/settings_viewmodel.dart';

class SRequireSuggestedAppVersion extends StatefulWidget {
Expand Down Expand Up @@ -29,6 +30,7 @@ class _SRequireSuggestedAppVersionState extends State<SRequireSuggestedAppVersio
subtitle: I18nText('settingsView.requireSuggestedAppVersionHint'),
value: _settingsViewModel.isRequireSuggestedAppVersionEnabled(),
onChanged: (value) async {
hapticSwitch(value);
await _settingsViewModel.showRequireSuggestedAppVersionDialog(context, value,);
setState(() {});
},
Expand Down

0 comments on commit 7023a58

Please sign in to comment.