Skip to content

Commit

Permalink
Added menu icon to the top right to navigate to the "Settings" screen
Browse files Browse the repository at this point in the history
Updated profile screen by adding menu icon to the top right . This issue himanshusharma89#39 was assigned to me and now is resolved.
  • Loading branch information
sakshi2707 authored Mar 11, 2021
1 parent 93e63f1 commit 3a50783
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion lib/views/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,24 @@ class OrdersSection extends StatelessWidget {
);
}
}

class Settings extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Settings"),
),
body: Center(
child: ElevatedButton(
onPressed: () {
Navigator.pop(context);
},
child: Text('Go back!'),
),
),
);
}
}
class TopSection extends StatelessWidget {
const TopSection({
Key key,
Expand Down Expand Up @@ -236,7 +253,20 @@ class TopSection extends StatelessWidget {
color: Colors.white),
),
],

),
Positioned(
top: 0,
right: 0,
child: IconButton(
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => Settings()),
);},
icon: Icon(Icons.menu),
),
),
)
],
);
Expand Down

0 comments on commit 3a50783

Please sign in to comment.