Skip to content

Commit

Permalink
Account
Browse files Browse the repository at this point in the history
  • Loading branch information
uumair327 committed Feb 19, 2024
1 parent a5923f3 commit 544150d
Show file tree
Hide file tree
Showing 2 changed files with 117 additions and 12 deletions.
86 changes: 80 additions & 6 deletions lib/screens/account.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
),
],
),
),
),
);
}
}
43 changes: 37 additions & 6 deletions lib/screens/searchPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,43 @@ class SearchPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
extendBody: true,
body: SafeArea(
child: Center(
child: Text(
"SEARCHPAGE",
))),
appBar: AppBar(
title: Text('Search'),
leading: IconButton(
icon: Icon(Icons.arrow_back),
onPressed: () {
Navigator.pop(context);
},
),
actions: [
IconButton(
icon: Icon(Icons.clear),
onPressed: () {
// Clear search text
},
),
],
bottom: PreferredSize(
preferredSize: Size.fromHeight(kToolbarHeight),
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 16.0),
child: TextField(
decoration: InputDecoration(
hintText: 'Search...',
border: OutlineInputBorder(),
),
onSubmitted: (value) {
// Perform search based on the entered value
},
),
),
),
),
body: Center(
child: Text(
"SEARCH RESULTS",
),
),
);
}
}

0 comments on commit 544150d

Please sign in to comment.