pd4d10 / git-touch

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

feat: skip login screen when logged in #191

Closed shreyas1599 closed 3 years ago

shreyas1599 commented 3 years ago
pd4d10 commented 3 years ago
flutter: 2021-02-05T10:40:36.558239 D   CodeModel.init:  read code: null, null, null
flutter: 2021-02-05T10:40:39.327024 E   AuthModel.init:  prefs getAccount failed
NoSuchMethodError: The getter 'platform' was called on null.
Receiver: null
Tried calling: platform
#5      main
package:git_touch/main.dart:41
#6      _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:231:25)
#7      _rootRun (dart:async/zone.dart:1190:13)
#8      _CustomZone.run (dart:async/zone.dart:1093:19)
#9      _runZoned (dart:async/zone.dart:1630:10)
#10     runZonedGuarded (dart:async/zone.dart:1618:12)
#11     _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:223:5)
#12     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:301:19)
#13     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)

There are some errors in the first launch (without any shared_preferences values). Not sure if it's introduced in this PR, or an existing bug. Could you please take a look?

shreyas1599 commented 3 years ago

Alright. I'll take a look.