2023-12-17 23:00:31 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:moody/views/settings_page/widgets/SettingsSelectionWdiget.dart';
|
|
|
|
|
|
|
|
import '../../utils/widgets/BottomNavigationWidget.dart';
|
|
|
|
|
|
|
|
class SettingsPage extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return MaterialApp(
|
|
|
|
home: Scaffold(
|
|
|
|
appBar: AppBar(title: Text('Settings Example')),
|
|
|
|
body: SingleChildScrollView(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
SettingsSection(
|
|
|
|
title: 'Account Settings',
|
|
|
|
items: [
|
|
|
|
SettingsItem(
|
|
|
|
title: 'Profile',
|
|
|
|
detail: 'View and edit profile',
|
|
|
|
trailingText: 'View',
|
|
|
|
url: 'https://example.com/profile',
|
|
|
|
),
|
|
|
|
SettingsItem(
|
|
|
|
title: 'Privacy',
|
|
|
|
detail: 'Privacy settings',
|
|
|
|
onTap: () {
|
|
|
|
// Handle Privacy tap
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
// More sections...
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,
|
2023-12-18 17:51:22 +01:00
|
|
|
floatingActionButton:
|
|
|
|
CustomBottomNavigationBar(initialSelectedIndex: 2),
|
2023-12-17 23:00:31 +01:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|