2023-09-02 21:29:06 +08:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'constants.dart';
|
|
|
|
|
|
|
|
class SettingsPage extends StatefulWidget {
|
|
|
|
const SettingsPage({super.key});
|
|
|
|
@override
|
|
|
|
_SettingsPageState createState() => _SettingsPageState();
|
|
|
|
}
|
|
|
|
|
|
|
|
class _SettingsPageState extends State<SettingsPage> {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Padding(
|
|
|
|
padding: const EdgeInsets.all(16.0),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
const Text(
|
|
|
|
'General',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 18,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SwitchListTile(
|
2023-09-05 22:47:13 +08:00
|
|
|
// Currently unavailable
|
2023-09-02 21:29:06 +08:00
|
|
|
title: const Text('Dark Mode'),
|
|
|
|
value: switchTheme,
|
|
|
|
shape: RoundedRectangleBorder(borderRadius: myBorderRadius),
|
|
|
|
onChanged: (value) {
|
|
|
|
setState(() {
|
|
|
|
switchTheme = value;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|