Skip to content
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

Clean code of shared folder #249

Merged
merged 6 commits into from
Jun 23, 2022
Merged

Clean code of shared folder #249

merged 6 commits into from
Jun 23, 2022

Conversation

xpwmaosldk
Copy link
Contributor

child: ImmichLoadingIndicator(),
),
)
: const SizedBox();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not used to return SizedBox for empty Widget, is it the same as return Container()?

Copy link
Contributor Author

@xpwmaosldk xpwmaosldk Jun 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Learning a lot from you!

late final Dio dio;

NetworkService() {
dio = Dio();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very cool, to instantiate only once and add the interceptor at the constructor. Love this change!

@alextran1502
Copy link
Contributor

alextran1502 commented Jun 23, 2022

This is good to merge, let me know if there is anything else you would like to add

Edited - Forgot the question about the uploadProfileImage once it is resolved, we can merge this

@alextran1502 alextran1502 merged commit ef097d1 into immich-app:main Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants