43 lines
1.3 KiB
Dart
43 lines
1.3 KiB
Dart
|
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,
|
||
|
floatingActionButton: CustomBottomNavigationBar(),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|