mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-03-22 14:09:41 -05:00
[PR #36] [MERGED] feat: add button to quickly switch accounts #220
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.