[PR #36] [MERGED] feat: add button to quickly switch accounts #220

Closed
opened 2025-10-31 17:07:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: masterHead: account-switcher


📝 Commits (4)

  • 4324961 Add menu to quickly switch accounts
  • 5e87f66 Revert "Add menu to quickly switch accounts"
  • 07c94c8 Merge branch 'master' of github.com:git-touch/git-touch into account-switcher
  • f98b12b feat: 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.

Simulator Screen Shot - iPhone 11 Pro Max - 2020-02-12 at 10 19 41 Simulator Screen Shot - iPhone 11 Pro Max - 2020-02-12 at 10 19 56


🔄 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. ![Simulator Screen Shot - iPhone 11 Pro Max - 2020-02-12 at 10 19 41](https://user-images.githubusercontent.com/298062/74321317-5972bb80-4d82-11ea-9540-1783ed15e319.png) ![Simulator Screen Shot - iPhone 11 Pro Max - 2020-02-12 at 10 19 56](https://user-images.githubusercontent.com/298062/74321327-5c6dac00-4d82-11ea-8038-d54cedc94ff7.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-10-31 17:07:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/git-touch#220