pd4d10 / git-touch

An open-source app for GitHub, GitLab, Bitbucket, Gitea, and Gitee(码云), built with Flutter
Apache License 2.0
1.57k stars 138 forks source link

Option to make account primary #84

Closed shreyas1599 closed 3 years ago

shreyas1599 commented 4 years ago

@pd4d10 Doesn't seem too hard. I'd just have to use a ReorderableList. I'll open a PR for this if it's alright with you.

shreyas1599 commented 3 years ago

I think it's better to have an option to make an account primary so it opens by default while opening the app. (the intention of using reorder able list was to move the frequently used accounts to the top). Making an account primary seems a better way to do it.

shreyas1599 commented 3 years ago

Looks like auth.activeAccount already solves this. But it is not persistent. Login screen reopens if you force close and open the app. Should we just write it into shared prefs?

(Eg: On popular apps that support multiple accounts, opening the last used account is the way its done instead of asking the user to select from the list of accounts)

@pd4d10 Is this fine or do you have an alternative suggestion?

pd4d10 commented 3 years ago

opening the last used account

OK, I think it's a good idea