2024-08-14 15:43:21 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2024-08-14 17:26:42 +00:00
|
|
|
import 'package:get/get.dart';
|
2024-08-15 12:10:07 +00:00
|
|
|
import 'package:go_router/go_router.dart';
|
2024-08-14 15:43:21 +00:00
|
|
|
|
2024-08-15 12:10:07 +00:00
|
|
|
class SettingsScreen extends StatelessWidget {
|
2024-08-14 15:43:21 +00:00
|
|
|
const SettingsScreen({super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2024-08-15 03:53:01 +00:00
|
|
|
return Material(
|
|
|
|
color: Theme.of(context).colorScheme.surface,
|
|
|
|
child: Scaffold(
|
|
|
|
appBar: AppBar(
|
|
|
|
title: Text('settings'.tr),
|
|
|
|
),
|
|
|
|
body: ListView(
|
|
|
|
children: [
|
2024-08-15 12:10:07 +00:00
|
|
|
ListTile(
|
|
|
|
contentPadding: const EdgeInsets.symmetric(horizontal: 24),
|
|
|
|
trailing: const Icon(Icons.chevron_right),
|
|
|
|
title: Text('settingsAlertSection'.tr),
|
|
|
|
onTap: () {
|
|
|
|
GoRouter.of(context).pushNamed('settingsAlert');
|
|
|
|
},
|
|
|
|
),
|
|
|
|
ListTile(
|
|
|
|
contentPadding: const EdgeInsets.symmetric(horizontal: 24),
|
|
|
|
trailing: const Icon(Icons.chevron_right),
|
|
|
|
title: Text('settingsDataSection'.tr),
|
|
|
|
onTap: () {
|
|
|
|
GoRouter.of(context).pushNamed('settingsDataSource');
|
|
|
|
},
|
|
|
|
),
|
2024-08-15 03:53:01 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
2024-08-14 17:26:42 +00:00
|
|
|
);
|
2024-08-14 15:43:21 +00:00
|
|
|
}
|
|
|
|
}
|