mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-29 21:44:26 +02:00

Co-authored-by: aAbed <39409020+TheAabedKhan@users.noreply.github.com> Co-authored-by: Ushie <ushiekane@gmail.com> Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de> Co-authored-by: Mr. X <79870712+n30mrx@users.noreply.github.com> Co-authored-by: festry0 <153519925+festry0@users.noreply.github.com>
38 lines
1.0 KiB
Dart
38 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:revanced_manager/gen/strings.g.dart';
|
|
import 'package:revanced_manager/ui/views/settings/settings_viewmodel.dart';
|
|
|
|
class SLastPatchedApp extends StatefulWidget {
|
|
const SLastPatchedApp({super.key});
|
|
|
|
@override
|
|
State<SLastPatchedApp> createState() =>
|
|
_SLastPatchedAppState();
|
|
}
|
|
|
|
final _settingsViewModel = SettingsViewModel();
|
|
|
|
class _SLastPatchedAppState
|
|
extends State<SLastPatchedApp> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SwitchListTile(
|
|
contentPadding: const EdgeInsets.symmetric(horizontal: 20.0),
|
|
title: Text(
|
|
t.settingsView.lastPatchedAppLabel,
|
|
style: const TextStyle(
|
|
fontSize: 20,
|
|
fontWeight: FontWeight.w500,
|
|
),
|
|
),
|
|
subtitle: Text(t.settingsView.lastPatchedAppHint),
|
|
value: _settingsViewModel.isLastPatchedAppEnabled(),
|
|
onChanged: (value) {
|
|
setState(() {
|
|
_settingsViewModel.useLastPatchedApp(value);
|
|
});
|
|
},
|
|
);
|
|
}
|
|
}
|