2022-11-12 21:25:33 +05:30
|
|
|
// ignore_for_file: prefer_const_constructors
|
|
|
|
|
2022-08-10 18:00:28 +05:30
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_i18n/flutter_i18n.dart';
|
2022-08-19 18:34:40 +05:30
|
|
|
import 'package:google_fonts/google_fonts.dart';
|
2022-11-12 21:25:33 +05:30
|
|
|
import 'package:revanced_manager/ui/views/settings/settingsFragement/settings_update_language.dart';
|
|
|
|
import 'package:revanced_manager/ui/views/settings/settingsFragement/settings_update_theme.dart';
|
2022-08-10 18:00:28 +05:30
|
|
|
import 'package:revanced_manager/ui/views/settings/settings_viewmodel.dart';
|
2022-11-12 21:25:33 +05:30
|
|
|
import 'package:revanced_manager/ui/widgets/settingsView/settings_advanced_section.dart';
|
|
|
|
import 'package:revanced_manager/ui/widgets/settingsView/settings_export_section.dart';
|
|
|
|
import 'package:revanced_manager/ui/widgets/settingsView/settings_info_section.dart';
|
|
|
|
import 'package:revanced_manager/ui/widgets/settingsView/settings_team_section.dart';
|
2022-09-02 14:35:25 +01:00
|
|
|
import 'package:revanced_manager/ui/widgets/shared/custom_sliver_app_bar.dart';
|
2022-08-10 18:00:28 +05:30
|
|
|
import 'package:stacked/stacked.dart';
|
|
|
|
|
|
|
|
class SettingsView extends StatelessWidget {
|
2022-09-07 02:37:25 +01:00
|
|
|
const SettingsView({Key? key}) : super(key: key);
|
2022-08-10 18:00:28 +05:30
|
|
|
|
2022-09-19 10:39:25 +02:00
|
|
|
static const _settingsDivider =
|
|
|
|
Divider(thickness: 1.0, indent: 20.0, endIndent: 20.0);
|
|
|
|
|
2022-08-10 18:00:28 +05:30
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return ViewModelBuilder<SettingsViewModel>.reactive(
|
|
|
|
viewModelBuilder: () => SettingsViewModel(),
|
2022-09-12 17:30:44 +01:00
|
|
|
builder: (context, model, child) => Scaffold(
|
2022-08-24 13:22:36 +01:00
|
|
|
body: CustomScrollView(
|
|
|
|
slivers: <Widget>[
|
2022-09-02 14:35:25 +01:00
|
|
|
CustomSliverAppBar(
|
2022-09-19 16:24:31 +01:00
|
|
|
isMainView: true,
|
2022-09-02 14:35:25 +01:00
|
|
|
title: I18nText(
|
|
|
|
'settingsView.widgetTitle',
|
|
|
|
child: Text(
|
|
|
|
'',
|
|
|
|
style: GoogleFonts.inter(
|
2022-09-05 03:32:36 +01:00
|
|
|
color: Theme.of(context).textTheme.headline6!.color,
|
2022-08-20 17:47:00 +05:30
|
|
|
),
|
2022-08-24 13:22:36 +01:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
2022-09-19 10:39:25 +02:00
|
|
|
SliverList(
|
|
|
|
delegate: SliverChildListDelegate.fixed(
|
|
|
|
<Widget>[
|
2022-11-12 21:25:33 +05:30
|
|
|
SUpdateThemeUI(),
|
2022-11-29 17:45:42 +05:30
|
|
|
// SUpdateLanguageUI(),
|
|
|
|
// _settingsDivider,
|
2022-11-12 21:25:33 +05:30
|
|
|
STeamSection(),
|
2022-09-19 10:39:25 +02:00
|
|
|
_settingsDivider,
|
2022-11-12 21:25:33 +05:30
|
|
|
SAdvancedSection(),
|
2022-11-09 14:20:32 +05:30
|
|
|
_settingsDivider,
|
2022-11-12 21:25:33 +05:30
|
|
|
SExportSection(),
|
2022-09-19 23:31:21 +01:00
|
|
|
_settingsDivider,
|
2022-11-12 21:25:33 +05:30
|
|
|
// SLoggingSection(),
|
2022-10-19 18:53:13 +05:30
|
|
|
// _settingsDivider,
|
2022-11-12 21:25:33 +05:30
|
|
|
SInfoSection(),
|
2022-09-19 10:39:25 +02:00
|
|
|
],
|
2022-08-21 21:16:42 +05:30
|
|
|
),
|
2022-08-10 18:00:28 +05:30
|
|
|
),
|
2022-08-24 13:22:36 +01:00
|
|
|
],
|
2022-08-10 18:00:28 +05:30
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|