[Bloc 응용] 실전 앱 만들기 (책 리뷰 앱) : SNS 로그인, Firebase 적용, Bloc 상태 관리, GoRouter
안녕하세요! dio주입할때 MyApp에서 바로 생성해서 NaverBookRepository(dio)에 넣어주면 되지 않나요? 왜 main()함수에서 넣어주는지 궁금합니다! 나중에 혼자서 프로젝트를 할때 이런 부분이 헷갈릴것 같아서요 또한 stateful위젯에서 stateful위젯을 상속받는 class와 (ex App) state를 상속받는 class(ex _AppState)에서 변수를 사용할 때 어떨때 stf위젯에 써서 state로 넘겨주는지, 아니면 state위젯 자체에서 바로 선언하고 쓰는지 알 수 있을까요?? stf위젯은 계속생성이되고, state위젯은 한번생성되면 (initState) build부분만 재 빌드 되잖아요 이 차이를 이용해서 하는것 같은데 구체적인 감은 안잡혀서요 개남님의 지식공유 부탁드립니다 ㅠㅠ!
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
settings - Language & Frameworks 로 들어가면 두 가지 (Android SDK, Kotlin) 이렇게 밖에 안 나오는데, 이것이 문제가 될까요? new flutter project를 할 때, Android language만 뜨고 Ios는 안떠서 swift를 체크하고 넘어갈 수가 없습니다. 도와주세요
[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!
RestaurantPagination-5 2:25경에 나오는 부분입니다. if (fetchMore) { final pState = state as CursorPagination<T>; state = CursorPaginationFetchingMore( meta: pState.meta, data: pState.data, ); paginationParams = paginationParams.copyWith( after: pState.data.last.id, ); } // 데이터를 처음부터 가져오는 상황. else { // 만약에 데이터가 있는 상황이라면 // 기존 데이터를 보존한 채로 Fetch를 진행한다. // 여기!! if (state is CursorPagination && !forceRefetch) { final pState = state as CursorPagination<T>; state = CursorPaginationRefetching<T>( meta: pState.meta, data: pState.data, ); } else { state = CursorPaginationLoading(); } } 해당로직에서 "// 여기!!"로 표시한 부분에서 if(state is CursorPagination && !forceRefetch)조건문이 이해가지 않습니다. fetchMore는 아닌데 새로고침(forceRefetch)도 아니다. 그런데 데이터를 이미 가지고 있고 새로운 데이터를 요청한다? 이게 어떤 경우를 의미하고 작성된 케이스일까요?
구글링을 통해 pip upgrade, scipy==1.12.0 버전설치 vscode vswhere.exe 설치등을 해 보았는데 해결이 안되어 문의드립니다. (desktop_venv) D:\voicechat\DESKTOP>pip install scipy WARNING: Ignoring invalid distribution - (d:\voicechat\desktop\desktop_venv\lib\site-packages) WARNING: Ignoring invalid distribution -ip (d:\voicechat\desktop\desktop_venv\lib\site-packages) Collecting scipy Using cached scipy-1.13.1.tar.gz (57.2 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error × Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [21 lines of output] + meson setup C:\Users\joon\AppData\Local\Temp\pip-install-uhszo9tp\scipy_fd7942d271b54ed8b7897408b2e63822 C:\Users\joon\AppData\Local\Temp\pip-install-uhszo9tp\scipy_fd7942d271b54ed8b7897408b2e63822\.mesonpy-_ppx3dkm -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\joon\AppData\Local\Temp\pip-install-uhszo9tp\scipy_fd7942d271b54ed8b7897408b2e63822\.mesonpy-_ppx3dkm\meson-python-native-file.ini The Meson build system Version: 1.4.1 Source dir: C:\Users\joon\AppData\Local\Temp\pip-install-uhszo9tp\scipy_fd7942d271b54ed8b7897408b2e63822 Build dir: C:\Users\joon\AppData\Local\Temp\pip-install-uhszo9tp\scipy_fd7942d271b54ed8b7897408b2e63822\.mesonpy-_ppx3dkm Build type: native build Project name: scipy Project version: 1.13.1 WARNING: Failed to activate VS environment: Could not parse vswhere.exe output ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']] The following exception(s) were encountered: Running icl "" gave "[WinError 2] 지정된 파일을 찾을 수 없습니다" Running cl /? gave "[WinError 2] 지정된 파일을 찾을 수 없습니다" Running cc --version gave "[WinError 2] 지정된 파일을 찾을 수 없습니다" Running gcc --version gave "[WinError 2] 지정된 파일을 찾을 수 없습니다" Running clang --version gave "[WinError 2] 지정된 파일을 찾을 수 없습니다" Running clang-cl /? gave "[WinError 2] 지정된 파일을 찾을 수 없습니다" Running pgcc --version gave "[WinError 2] 지정된 파일을 찾을 수 없습니다" A full log can be found at C:\Users\joon\AppData\Local\Temp\pip-install-uhszo9tp\scipy_fd7942d271b54ed8b7897408b2e63822\.mesonpy-_ppx3dkm\meson-logs\meson-log.txt [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
void main() { List<String> words = [ '안녕하세요 ', '저는 ', '코드팩토리입니다.', ]; final sentence = words.fold<String>('', (prev + next) => prev + next); print(sentence); } 이렇게 똑같이 작성을 했는데, 오류가 뜨는 이유가 뭘까요? The argument type 'String Function(String)' can't be assigned to the parameter type 'String Function(String, String)'. Expected to find ')'. Undefined name 'next'.
안녕하세요. 작년에 강의를 결제하여 잘 들었고 해당 내용에도 실무에도 많은 부분에 적용하여 큰 도움이 되고 있습니다 감사합니다. 다만 계속 처리해야할 일이 많아져 제가 테스트 부분을 아직 듣질 못해서.. 혹시 수강기간을 연장해주실수 있으실까 싶어서 문의드립니다. 감사합니다.
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
미세먼지 강의에서 클래스를 인스턴스로 만들지 않고 ,변수를 직접사용하는 부분이 이해가 안됩니다. 클래스를 인스터스화 하지않고 , 직접변수를 사용이 가능한가요? (static을 사용하면 변수를 직접사용 가능한것은 알고 있습니다. ) class StatusModel { final int level; final String label; final Color primaryColor; final Color darkColor; final Color lightColor; final Color detailFontColor; final String imagePath; final String comment; final double minFineDust; final double minUltraFineDust; final double minO3; final double minNO2; final double minCO; final double minSO2; StatusModel( {required this.level, required this.label, required this.primaryColor, required this.darkColor, required this.lightColor, required this.detailFontColor, required this.imagePath, required this.comment, required this.minFineDust, required this.minUltraFineDust, required this.minO3, required this.minNO2, required this.minCO, required this.minSO2}); }
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
안녕하세요! StatefulWidget 라이프사이클 강의 중에 Widget build(BuildContext context) 를 설명해주실 때 build함수에서 Build Context와 context를 파라미터로 받을 수 있고 context를 변수로 사용할 수 있다고 하셨는데요, 이 부분에 대해 잘 이해가 가지 않아 문의드립니다. build는 함수이고 (Build Context context)는 build함수의 파라미터가 되는 것일까요? (Build Context context)의 각각 역할은 어떤 것일까요? context에 대해 변수라는 설명도 있었는데 같이 설명부탁드려요. 감사합니다.
안녕하세요. 강의 잘 듣고 있습니다!! ㅎㅎ AndroidStudio를 살짝 맛 봤던 사람으로써 코드 없이 앱을 만들 수 있다는게 너무 편하고 좋네요.. FlutterFlow에서는 Firebase를 주로 사용하는데 제가 맡은 업무에서는 Postgre 연결이 필요할 것 같아요 혹시 이 연결 방법은 고급 강의에서 들을 수 있나요? 제가 postgre sql자체를 아예 몰라서... 문서 찾기나 방법 찾기가 더욱 힘든 것 같아 질문 남겨봅니다. 또한 자체 개발 백앤드 api를 연결 할 경우 방법이 쉬운 편인지도 여쭤보고싶어요 😃
[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!
Launching lib/main.dart on iPhone 15 in debug mode... Running pod install... CocoaPods' output: ↳ [!] Invalid Podfile file: /Users/yurim/Desktop/flutter/chool_check_app/Flutter/Generated.xcconfig must exist. If you're running pod install manually, make sure flutter pub get is executed first. # from /Users/yurim/Desktop/flutter/chool_check_app/ios/Podfile:9 # ------------------------------------------- # unless File.exist?(generated_xcode_build_settings_path) > raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" # end # ------------------------------------------- /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:335:in `rescue in block in from_ruby' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:329:in `block in from_ruby' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:50:in `instance_eval' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:50:in `initialize' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:327:in `new' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:327:in `from_ruby' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-core-1.15.2/lib/cocoapods-core/podfile.rb:293:in `from_file' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/config.rb:206:in `podfile' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:160:in `verify_podfile_exists!' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command/install.rb:46:in `run' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/lib/cocoapods/command.rb:52:in `run' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/gems/cocoapods-1.15.2/bin/pod:55:in `<top (required)>' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/bin/pod:25:in `load' /opt/homebrew/Cellar/cocoapods/1.15.2/libexec/bin/pod:25:in `<main>' Error running pod install Error launching application on iPhone 15. 이렇게 에러가나서 지도가 나오지 않습니다 ㅜㅜ 도와주세요
안녕하세요 개발 초보입니다. 파이어베이스로 관계형 데이터베이스를 구축하기는 힘들거라는 조언을 얻었는데 구체적으로 뭐가 힘든건지는 잘 모르겠어서 질문드립니다 일단 플러터플로우에서 기본적으로 파이어베이스를 제공하고있고 자료도 많아 이쪽으로 하고싶은데 조언대로라면 수파베이스를 써야할 것 같아서요. 예를 들어 a유저와 b유저 사이에 각자가 생각하는 친밀도값이 있고 b유저와 c유저도 마찬가지로 친밀도값이 있습니다. 결국 a유저와 b유저는 친하고, b유저는 c유저와 친하다는 것을 알아내어 a와 c를 연결하기 위한 것이 목적인데 이러한 알고리즘을 파이어베이스로 구축가능할까요?