/* * This file is part of wger Workout Manager . * Copyright (c) 2026 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ import 'package:flutter/material.dart'; import 'package:wger/core/wide_screen_wrapper.dart'; import 'package:wger/features/account/widgets/settings/certs_not_verified.dart'; import 'package:wger/features/account/widgets/settings/data_privacy.dart'; import 'package:wger/features/account/widgets/settings/health_sync.dart'; import 'package:wger/features/account/widgets/settings/image_cache.dart'; import 'package:wger/features/account/widgets/settings/language.dart'; import 'package:wger/features/account/widgets/settings/theme.dart'; import 'package:wger/features/routines/screens/settings_plates_screen.dart'; import 'package:wger/l10n/generated/app_localizations.dart'; class SettingsPage extends StatelessWidget { static String routeName = '/SettingsPage'; const SettingsPage({super.key}); @override Widget build(BuildContext context) { final i18n = AppLocalizations.of(context); return Scaffold( appBar: AppBar(title: Text(i18n.settingsTitle)), body: WidescreenWrapper( child: ListView( children: [ // Collapses to nothing unless certificates are actually going // unverified, so it sits above the first section rather than in one. const SettingsCertsNotVerified(), ListTile( title: Text( i18n.settingsCacheTitle, style: Theme.of(context).textTheme.headlineSmall, ), ), const SettingsImageCache(), ListTile( title: Text( i18n.settingsDataTitle, style: Theme.of(context).textTheme.headlineSmall, ), ), const SettingsDataPrivacy(), const HealthSyncSettingsTile(), ListTile(title: Text(i18n.others, style: Theme.of(context).textTheme.headlineSmall)), const SettingsTheme(), const SettingsLanguage(), ListTile( title: Text(i18n.selectAvailablePlates), onTap: () { Navigator.of(context).pushNamed(ConfigurePlatesScreen.routeName); }, trailing: const Icon(Icons.chevron_right), ), ], ), ), ); } }