-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: separate atkey upload to a service in at_onboarding_flutter #939
base: trunk
Are you sure you want to change the base?
Conversation
@@ -1,184 +1,5 @@ | |||
import 'dart:io'; | |||
library at_onboarding_legacy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to src/at_onboarding.dart
error, //Authenticate error | ||
cancel, //User canceled | ||
} | ||
library at_onboarding_result_legacy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moved to src/at_onboarding_result
import 'package:at_utils/at_logger.dart'; | ||
import 'package:file_picker/file_picker.dart'; | ||
|
||
class AtKeysFileUploadService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The service extracted from the onboarding home screen
loading = false; | ||
}); | ||
return; | ||
Future<void> _uploadKeyFile() async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This calls the new service, and listens to the progress stream, updating the UI accordingly. The actual logic behind when UI changes occur is the same
@gkc I originally planned to do a lot more, but I believe this service extraction is the minimum required changeset for us to make the planned improvements to the NoPorts desktop onboarding UX. |
Setting back to draft, need to make a few more changes |
- What I did
package
tosrc/
so we have better grasp over our public API.- How I did it
- How to verify it
- Description for the changelog
chore: separate atkey upload to a service in at_onboarding_flutter