-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
117 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,86 @@ class Account extends StatelessWidget { | |
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
extendBody: true, | ||
body: SafeArea( | ||
child: Center( | ||
child: Text( | ||
"Account", | ||
))), | ||
appBar: AppBar( | ||
title: Text('Account'), | ||
), | ||
body: SingleChildScrollView( | ||
child: Padding( | ||
padding: EdgeInsets.all(16.0), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Text( | ||
'Profile Information', | ||
style: TextStyle( | ||
fontSize: 20, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
SizedBox(height: 10), | ||
ListTile( | ||
leading: Icon(Icons.person), | ||
title: Text('Name: John Doe'), | ||
), | ||
ListTile( | ||
leading: Icon(Icons.email), | ||
title: Text('Email: [email protected]'), | ||
), | ||
ListTile( | ||
leading: Icon(Icons.phone), | ||
title: Text('Phone: +1 (123) 456-7890'), | ||
), | ||
Divider(), | ||
Text( | ||
'Child Safety Settings', | ||
style: TextStyle( | ||
fontSize: 20, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
SwitchListTile( | ||
title: Text('Enable Child Safety Mode'), | ||
value: true, | ||
onChanged: (value) { | ||
// Toggle child safety mode | ||
}, | ||
), | ||
ListTile( | ||
title: Text('Emergency Contact'), | ||
onTap: () { | ||
// Navigate to emergency contact page | ||
}, | ||
), | ||
ListTile( | ||
title: Text('Report an Incident'), | ||
onTap: () { | ||
// Navigate to report page | ||
}, | ||
), | ||
Divider(), | ||
Text( | ||
'Settings', | ||
style: TextStyle( | ||
fontSize: 20, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
ListTile( | ||
title: Text('Change Password'), | ||
onTap: () { | ||
// Navigate to change password page | ||
}, | ||
), | ||
ListTile( | ||
title: Text('Log Out'), | ||
onTap: () { | ||
// Log out the user | ||
}, | ||
), | ||
], | ||
), | ||
), | ||
), | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters