I had to do this slightly hacky, since the way BottomMenuItem works, does not allow it to be wrapped in a gesturerecognizer. So I wrapped the icon and text widgets individually. This does seem to work pretty well though.
As described in the issue, this PR adds a long-press gesture to the "Me" tabbar item. It brings up a bottom modal where you can quickly choose a different account. Choosing the currently active one doesn't reload the app but instead just closes the modal. I also added a "Manage" link, that opens the regular login view where the user can also add new accounts or delete existing ones.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/pd4d10/git-touch/pull/36
**Author:** [@phillipthelen](https://github.com/phillipthelen)
**Created:** 2/12/2020
**Status:** ✅ Merged
**Merged:** 10/8/2020
**Merged by:** [@pd4d10](https://github.com/pd4d10)
**Base:** `master` ← **Head:** `account-switcher`
---
### 📝 Commits (4)
- [`4324961`](https://github.com/pd4d10/git-touch/commit/43249613c5bc6a4efb7d3affb2490bbadbba595f) Add menu to quickly switch accounts
- [`5e87f66`](https://github.com/pd4d10/git-touch/commit/5e87f665e0d5ef6de47f81d708508b6aaddfee05) Revert "Add menu to quickly switch accounts"
- [`07c94c8`](https://github.com/pd4d10/git-touch/commit/07c94c84f51ae885faeeb099c0cb8795285d3d3b) Merge branch 'master' of github.com:git-touch/git-touch into account-switcher
- [`f98b12b`](https://github.com/pd4d10/git-touch/commit/f98b12b60a7f9b631b81862d4308789781178fdc) feat: add button to quickly switch accounts
### 📊 Changes
**7 files changed** (+44 additions, -26 deletions)
<details>
<summary>View changed files</summary>
📝 `lib/screens/bb_user.dart` (+1 -0)
📝 `lib/screens/gh_repo.dart` (+2 -2)
📝 `lib/screens/gh_user.dart` (+18 -16)
📝 `lib/screens/gl_user.dart` (+1 -0)
📝 `lib/screens/gt_user.dart` (+1 -0)
📝 `lib/widgets/mutation_button.dart` (+6 -3)
📝 `lib/widgets/user_header.dart` (+15 -5)
</details>
### 📄 Description
Fixes #35
I had to do this slightly hacky, since the way BottomMenuItem works, does not allow it to be wrapped in a gesturerecognizer. So I wrapped the icon and text widgets individually. This does seem to work pretty well though.
As described in the issue, this PR adds a long-press gesture to the "Me" tabbar item. It brings up a bottom modal where you can quickly choose a different account. Choosing the currently active one doesn't reload the app but instead just closes the modal. I also added a "Manage" link, that opens the regular login view where the user can also add new accounts or delete existing ones.
 
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/pd4d10/git-touch/pull/36
Author: @phillipthelen
Created: 2/12/2020
Status: ✅ Merged
Merged: 10/8/2020
Merged by: @pd4d10
Base:
master← Head:account-switcher📝 Commits (4)
4324961Add menu to quickly switch accounts5e87f66Revert "Add menu to quickly switch accounts"07c94c8Merge branch 'master' of github.com:git-touch/git-touch into account-switcherf98b12bfeat: add button to quickly switch accounts📊 Changes
7 files changed (+44 additions, -26 deletions)
View changed files
📝
lib/screens/bb_user.dart(+1 -0)📝
lib/screens/gh_repo.dart(+2 -2)📝
lib/screens/gh_user.dart(+18 -16)📝
lib/screens/gl_user.dart(+1 -0)📝
lib/screens/gt_user.dart(+1 -0)📝
lib/widgets/mutation_button.dart(+6 -3)📝
lib/widgets/user_header.dart(+15 -5)📄 Description
Fixes #35
I had to do this slightly hacky, since the way BottomMenuItem works, does not allow it to be wrapped in a gesturerecognizer. So I wrapped the icon and text widgets individually. This does seem to work pretty well though.
As described in the issue, this PR adds a long-press gesture to the "Me" tabbar item. It brings up a bottom modal where you can quickly choose a different account. Choosing the currently active one doesn't reload the app but instead just closes the modal. I also added a "Manage" link, that opens the regular login view where the user can also add new accounts or delete existing ones.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.