Skip to content

Commit

Permalink
Merge pull request #426 from jaivsh/patch2
Browse files Browse the repository at this point in the history
Update profile_screen.dart
  • Loading branch information
avinashkranjan authored Aug 10, 2023
2 parents 53f8fb2 + 035755a commit 2115a78
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lib/screens/profile_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,13 @@ class _ProfileScreenState extends State<ProfileScreen> {
onSelected: (s) async {
},
itemBuilder: (BuildContext context) {
return {'Share App','Settings'}.map((String choice) {
return {'Share App'}.map((String choice) {
return PopupMenuItem<String>(
value: choice,
child: Text(choice),
onTap: () {
if(choice == 'Share App') {
shareapp();
}
else {
print('pencho');
Navigator.of(this.context).push(MaterialPageRoute(builder: (context) => SettingsScreen()));
}

},
);
}).toList();
Expand Down Expand Up @@ -507,4 +502,4 @@ Widget buildDetails(String title, String detail, bool visible) {
),
],
);
}
}

0 comments on commit 2115a78

Please sign in to comment.