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

avoid_web_libraries_in_flutter #1

Closed
md2eoseo opened this issue May 19, 2021 · 1 comment
Closed

avoid_web_libraries_in_flutter #1

md2eoseo opened this issue May 19, 2021 · 1 comment
Labels
bug 버그 발견

Comments

@md2eoseo
Copy link
Owner

로그인에 성공하면 JWT를 발급받고 웹, 모바일 환경에 알맞는 저장소에 저장하도록 구현.
웹의 경우, dart:html 라이브러리를 사용하여 localStorage에 저장하고
모바일의 경우, flutter_secure_storage 패키지를 사용하여 저장.

현재는 웹, 모바일 버전을 동시 개발할 때, 다트 웹 라이브러리를 플러터에서 사용하는 것을 권장하지 않음.
웹 라이브러리를 사용하는 경우 웹 버전, 모바일 버전을 따로 개발해야 됨.

https://dart-lang.github.io/linter/lints/avoid_web_libraries_in_flutter.html
flutter/flutter#53005

@md2eoseo md2eoseo added the bug 버그 발견 label May 19, 2021
@md2eoseo
Copy link
Owner Author

universal_html 패키지로 해결

https://pub.dev/packages/universal_html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 버그 발견
Projects
None yet
Development

No branches or pull requests

1 participant