inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

173만명의 커뮤니티!! 함께 토론해봐요.

button강의에 resolveWith()메소드 질문 있어요!

해결됨

[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!

- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 검색해보세요. - 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요. 코드팩토리 디스코드 https://bit.ly/3HzRzUM Flutter 강의를 구매하시면 코드팩토리 디스코드 서버 플러터 프리미엄 채널에 들어오실 수 있습니다! 디스코드 서버에 들어오시고 저에게 메세지로 강의를 구매하신 이메일을 보내주시면 프리미엄 채널에 등록해드려요! 프리미엄 채널에 들어오시면 모든 질의응답 최우선으로 답변해드립니다! 강의에 나온대로 resolveWith를 사용해서 실행했는데 버튼을 눌러도 계속 빨강색으로 뜨고 하얀색으로 바뀌질 않아요. 뭐가 문제인걸까요?ㅠㅠ

  • flutter
  • 클론코딩
star 댓글 1 좋아요 0 조회수 275

webview 강의 따라하는데 다음과 같은 에러가 나옵니다. ㅜㅜ

미해결

[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!

webview 강의 진행중 에러가 나와서 문의 드립니다. console창에 나온 에러 내용입니다. 강의보면서 세팅 똑같이 했는데 이렇게 나오면서 화면이 아무것도 적용이 안되네요. Performing hot restart... Syncing files to device Android SDK built for x86... Restarted application in 797ms. E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebStorageHostApi.create (package:webview_flutter_android/src/android_webview.pigeon.dart:2036:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebViewHostApi.create (package:webview_flutter_android/src/android_webview.pigeon.dart:289:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebSettingsHostApi.create (package:webview_flutter_android/src/android_webview.pigeon.dart:1013:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebSettingsHostApi.setDomStorageEnabled (package:webview_flutter_android/src/android_webview.pigeon.dart:1061:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebSettingsHostApi.setJavaScriptCanOpenWindowsAutomatically (package:webview_flutter_android/src/android_webview.pigeon.dart:1087:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebSettingsHostApi.setSupportMultipleWindows (package:webview_flutter_android/src/android_webview.pigeon.dart:1113:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebSettingsHostApi.setLoadWithOverviewMode (package:webview_flutter_android/src/android_webview.pigeon.dart:1239:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebSettingsHostApi.setUseWideViewPort (package:webview_flutter_android/src/android_webview.pigeon.dart:1263:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebSettingsHostApi.setDisplayZoomControls (package:webview_flutter_android/src/android_webview.pigeon.dart:1288:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebSettingsHostApi.setBuiltInZoomControls (package:webview_flutter_android/src/android_webview.pigeon.dart:1313:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebViewClientHostApi.create (package:webview_flutter_android/src/android_webview.pigeon.dart:1476:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebSettingsHostApi.setUserAgentString (package:webview_flutter_android/src/android_webview.pigeon.dart:1163:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): #1 Future.wait.<anonymous closure> (dart:async/future.dart:522:21) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): #2 WebViewAndroidPlatformController.updateSettings (package:webview_flutter_android/webview_android_widget.dart:275:5) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebSettingsHostApi.setMediaPlaybackRequiresUserGesture (package:webview_flutter_android/src/android_webview.pigeon.dart:1189:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 DownloadListenerHostApi.create (package:webview_flutter_android/src/android_webview.pigeon.dart:1749:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): #1 Future.wait.<anonymous closure> (dart:async/future.dart:522:21) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): #2 WebView.setDownloadListener (package:webview_flutter_android/src/android_webview.dart:379:5) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebChromeClientHostApi.create (package:webview_flutter_android/src/android_webview.pigeon.dart:1861:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): #1 Future.wait.<anonymous closure> (dart:async/future.dart:522:21) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): #2 WebView.setWebChromeClient (package:webview_flutter_android/src/android_webview.dart:399:5) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(channel-error, Unable to establish connection on channel., null, null) E/flutter ( 3101): #0 WebViewHostApi.loadUrl (package:webview_flutter_android/src/android_webview.pigeon.dart:401:7) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): E/flutter ( 3101): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, java.lang.IllegalStateException: Trying to create a platform view of unregistered type: plugins.flutter.io/webview E/flutter ( 3101): at io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView( PlatformViewsController.java:489 ) E/flutter ( 3101): at io.flutter.plugin.platform.PlatformViewsController$1.createForTextureLayer( PlatformViewsController.java:191 ) E/flutter ( 3101): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create( PlatformViewsChannel.java:128 ) E/flutter ( 3101): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall( PlatformViewsChannel.java:55 ) E/flutter ( 3101): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage( MethodChannel.java:258 ) E/flutter ( 3101): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler( DartMessenger.java:295 ) E/flutter ( 3101): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger( DartMessenger.java:322 ) E/flutter ( 3101): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12) E/flutter ( 3101): at android.os.Handler.handleCallback( Handler.java:938 ) E/flutter ( 3101): at android.os.Handler.dispatchMessage( Handler.java:99 ) E/flutter ( 3101): at android.os.Looper.loop( Looper.java:223 ) E/flutter ( 3101): at android.app .ActivityThread.main( ActivityThread.java:7656 ) E/flutter ( 3101): at java.lang.reflect.Method.invoke(Native Method) E/flutter ( 3101): at com.android .internal.os.RuntimeInit$MethodAndArgsCaller.run( RuntimeInit.java:592 ) E/flutter ( 3101): at com.android .internal.os.ZygoteInit.main( ZygoteInit.java:947 ) E/flutter ( 3101): , null, null) E/flutter ( 3101): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:653:7) E/flutter ( 3101): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:315:18) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): #2 SurfaceAndroidViewController._sendCreateMessage (package:flutter/src/services/platform_views.dart:1017:30) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): #3 AndroidViewController.create (package:flutter/src/services/platform_views.dart:801:5) E/flutter ( 3101): <asynchronous suspension> E/flutter ( 3101): 도움 좀 부탁드립니다.

  • flutter
  • 클론코딩
justin cho 댓글 1 좋아요 0 조회수 2297

gradle 사용하시는 분 도움

미해결

더 자바, 코드를 조작하는 다양한 방법

일단 새로운 프로젝트 만들고 premain 추가해주는 것 까진 강의를 그대로 따라하시면 됩니다. manifest plugin 부터 조금 차이가 있어서 거기부터 설명하면, build gradle 에 다음과 같이 추가한다. tasks.named('jar') { manifest { attributes( 'Implementation-Title': project.name, 'Implementation-Version': project.version, 'Premain-Class' : "com.java.magicianAgent.MagicianAgent", 'Can-Redefine-Classes' : true, 'Can-Retransform-Classes' : true) } } 터미널에서 다음 명령어를 통해 build 한다 ./gradlew clean build build.libs file 안에 있는 jar file 을 확인한다. (옵션) 강의에서와 마찬가지로 zip file 로 변경하면 확인가능합니다. 저같은 경우 SNAPSHOT.jar 과 SNAPSHOT -plain.jar 이렇게 2개가 생겼는데 SNAPSHOT.jar 은 제가 spring boot 로 실행서 그런지 관련 설정들이 보이고 SNAPSHOT -plain.jar 이 맞는거 같더라구요. jar file 의 절대 경로를 복사해 VM option 에 추가한다. 여기서부터는 다시 강의와 같습니다. VM option 이 안보이시면 오른쪽에 Modify options 클릭하면 add vm options 라고 보이실 겁니다. 이상한거나 궁금한거 있으시면 말씀해주세요. gradle 을 쓰시는 모든 분들도 마술을 성공시킵시다 하하

  • java
  • spring
안호성 댓글 1 좋아요 4 조회수 789

초기화 질문

미해결

[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!

안녕하세요 속도를 위해 캐싱을 하고 있지만 매번 다시 초기화 해서 불러올려면 어떤 방법이 있을까요

  • flutter
  • 하이브리드-앱
dlckdals9467 댓글 1 좋아요 0 조회수 319

질문1) webview 과제중 실행시 url화면을 받아오지 못하는 문제 질문2)실행시 app관련 화면보여주는 emulator 설정방법

해결됨

[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!

질문1) webview 과제중 실행시 url화면을 받아오지를 못하네요 질문2) Android studio에서 run작동시킬때 app ios나 android가 나오지않습니다. 추가로 설정하는방법 알고싶습니다 감사합니다!!:)

  • flutter
  • 클론코딩
MJ90 댓글 1 좋아요 2 조회수 309

페이제 갱신 문제 해결에서 버그가 있는거 같아요~

해결됨

[Bloc 응용] 실전 앱 만들기 (책 리뷰 앱) : SNS 로그인, Firebase 적용, Bloc 상태 관리, GoRouter

search 함수에서 result 상태만 초기화 되어서 searchOption 의 start 가 갱신이 안되는 문제가 있는거 같습니다. 위 스크린샷 처럼 searchOption 을 위와 같이 초기화 했더니 문제는 해결되었는데 맞는 방법인지 모르겠네요~

  • flutter
  • firebase
  • bloc
Moon 댓글 1 좋아요 0 조회수 309

context 관련 질문입니다!

해결됨

Flutter 앱 개발 실전

섹션3 / AssetIcon / 04:41~04:51 / Line24 color ?? context.color.text, 04:47에서 context.co까지만 입력해도 자동완성이 뜨는데요. Q1. context가 어떤걸(어떤 파일의 어떤 클래스?) 지칭하는지 궁금합니다 Q2. 어떤 매커니즘으로 theme_service import가 자동완성으로 뜨는지 궁금합니다(어떻게 인식했는지..?) 질문이 난해할 수도 있는데, context에 관한 질문입니다!

  • flutter
  • dart
  • context
안일호 댓글 1 좋아요 1 조회수 492

가운데정렬 이안되여

미해결

[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!

import 'package:flutter/material.dart'; class HomeScreen extends StatelessWidget { const HomeScreen({super.key}); @override Widget build(BuildContext context) { return Scaffold( body: SafeArea( bottom: false, child: Container( width: double.infinity, height: double.infinity, color: Colors.black, child: Column( mainAxisAlignment: MainAxisAlignment.spaceAround, crossAxisAlignment: CrossAxisAlignment.center, children: [ Row( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ Container(color: Colors.red, width: 50, height: 50), Container(color: Colors.orange, width: 50, height: 50), Container(color: Colors.yellow, width: 50, height: 50), Container(color: Colors.green, width: 50, height: 50), ], ), Row( children: [ Container(color: Colors.orange, width: 50, height: 50), ], ), Row( mainAxisAlignment: MainAxisAlignment.end, children: [ Container(color: Colors.red, width: 50, height: 50), Container(color: Colors.orange, width: 50, height: 50), Container(color: Colors.yellow, width: 50, height: 50), Container(color: Colors.green, width: 50, height: 50), ], ), Row(children: [ Container(color: Colors.green, width: 50, height: 50), ],), ], ), ), ), ); } }

  • flutter
  • 클론코딩
YOUNGJAE KIM 댓글 2 좋아요 0 조회수 410

3-D 질문입니다..

미해결

10주완성 C++ 코딩테스트 | 알고리즘 코딩테스트

2일째 고민을 해보았는데.. 2%까지만 맞고 틀리다고 합니당..ㅠㅠ 포기하고 싶지 않은 마음에 도움을 요청합니다!! 제가 짠 코드는 이렇습니다! import java.io.*; import java.util.*; // 불이 하나가 아닌 여러개일 수 있다. public class Main { public static int R; public static int C; public static String[][] map; public static int[][] visitedFire; public static int[][] visitedHuman; public static int[] dx; public static int[] dy; public static Node fireLocation; public static Node humanLocation; public static Queue<Node> fireQueue; public static void main(String[] args) throws IOException { // 초기화 BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); StringTokenizer st = new StringTokenizer(br.readLine()); R = Integer.parseInt(st.nextToken()); C = Integer.parseInt(st.nextToken()); map = new String[R][C]; // 0으로 초기화 visitedFire = new int[R][C]; visitedHuman = new int[R][C]; dx = new int[]{0,1,0,-1}; dy = new int[]{-1,0,1,0}; fireQueue = new LinkedList<>(); // 맵 입력 for (int i = 0; i < R; i++) { String S = br.readLine(); for (int j = 0; j < C; j++) { // 불 좌표, 지훈이 좌표 찾기 map[i][j] = String.valueOf(S.charAt(j)); if(map[i][j].equals("J")){ humanLocation = new Node(j,i); map[i][j] = "."; // .으로 변경 }else if(map[i][j].equals("F")){ // 불이 여러개, 불이 아무것도 없을 수 있다. -> 반레 fireLocation = new Node(j,i); fireQueue.add(fireLocation); visitedFire[i][j] = 1; } } } // (1) 불이 이동할 수 있는 최단경로 fireBfs(); // (2) 사람이 이동할 수 있는 최단경로 + 길 비교해야함 humanBfs(humanLocation.y, humanLocation.x); // 가능한 길 찾아서 int result = Integer.MAX_VALUE; // (3) 가장 짧은 최단거리 찾기 (가장자리 찾기) for (int i = 0; i < visitedHuman.length; i++) { for (int j = 0; j < visitedHuman[i].length; j++) { if((0<i && i<R-1) && 0 < j && j < C-1)continue; // 가장자리가 아닌 경우 pass if(visitedHuman[i][j] > 0) { result = Math.min(result, visitedHuman[i][j]); } } } if(result == Integer.MAX_VALUE){ System.out.println("IMPOSSIBLE"); }else{ System.out.println(result); } } public static void humanBfs(int y, int x){ // tkfk visitedHuman[y][x] = 1; Node node = new Node(x,y); Queue<Node> queue = new LinkedList<>(); queue.add(node); while(queue.size()>0){ Node cur = queue.poll(); for (int i = 0; i < 4; i++) { int nx = cur.x + dx[i]; int ny = cur.y + dy[i]; if(nx < 0 || nx >= C || ny < 0 || ny >= R) continue; if(visitedHuman[ny][nx] == 0 && (map[ny][nx].equals("."))){ if(visitedHuman[ny][nx] < visitedFire[ny][nx] || visitedFire[ny][nx] == 0){ visitedHuman[ny][nx] = visitedHuman[cur.y][cur.x] + 1; Node next = new Node(nx,ny); queue.add(next); } } } } } public static void fireBfs(){ while(fireQueue.size()>0){ Node cur = fireQueue.poll(); for (int i = 0; i < 4; i++) { // 4방향 탐지 int nx = cur.x + dx[i]; int ny = cur.y + dy[i]; if(nx < 0 || nx >= C || ny < 0 || ny >= R) continue; if(visitedFire[ny][nx] == 0 && (map[ny][nx].equals("."))){ visitedFire[ny][nx] = visitedFire[cur.y][cur.x] + 1; // 이동함을 표현 Node next = new Node(nx,ny); fireQueue.add(next); } } } } public static class Node { int x; int y; Node(int x, int y){ this.x = x; this.y = y; } } }

  • 코딩-테스트
  • java
댓글 2 좋아요 0 조회수 363

리뷰 작성화면에서 질문이 있습니다.

해결됨

[Bloc 응용] 실전 앱 만들기 (책 리뷰 앱) : SNS 로그인, Firebase 적용, Bloc 상태 관리, GoRouter

review_write_page에서 ReviewBox 부분에 리뷰를 작성후 textfield에서 focus out이 되었을때 작성한 리뷰 text가 안보이는 현상이 있습니다. text가 사라지고 저장을 하게 되면 DB에는 데이터가 제대로 들어갑니다. 혹시 이부분은 어디를 수정해야 될까요?

  • flutter
  • firebase
  • bloc
진내 댓글 1 좋아요 0 조회수 256

Interceptor 작업 중 질문드립니다.

해결됨

[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!

동일하게 restaurant_repository에서 @Headers 를 통해 'accessToken' : 'true' 라는 map을 헤더에 넣어주었음에도 dio.dart에서는 해당 onRequest에서 header가 빈 map으로 나오는 현상이 발생합니다. url과 GET 요청이라는 정보는 제대로 들어갑니다. 혹시 무슨 문제인지 알고 계신가요?

  • flutter
  • 하이브리드-앱
ollo20 댓글 2 좋아요 1 조회수 529

for loop

미해결

[코드팩토리] [입문] Dart 언어 4시간만에 완전정복

void main() { int total = 0; for (int i = 0; i < 10; i++) { total += 1; if (total == 5) { break; } } print(total); } ->5 여기서 0이였던 i 값이 1(i++)이되고 total 은 1이 되며(total+=1) 또 반복으로 i 값이 2가되고 total 은 2가 되고 쭉 반복되어 total 이 5가되었을때 나와서 출력된거맞나요?

  • flutter
  • 함수형-프로그래밍
  • 객체지향
나율 댓글 1 좋아요 0 조회수 420

list map set

미해결

[코드팩토리] [입문] Dart 언어 4시간만에 완전정복

안녕하세요 강의 잘 듣고있습니다. 컬렉션 List<data type> 변수 = ['지수', '제니']; Map <key:value> 변수 = { 'key' : 'value'}; Set<data type> 변수 ' { ........}; enum Status {..} List 만 [] 대괄호 나머지는 {}중괄호를 쓰는 이유가 뭔가요 그냥 공식일까요? 그리고 enum Status { approved, pending, rejected } void main() { Status status = Status.approved; print(status); } 이 예제에서 Status는 키워드 인가요?

  • flutter
  • 함수형-프로그래밍
  • 객체지향
나율 댓글 1 좋아요 1 조회수 404

강의에서 Future 리턴타입 Map<String, dynamic>

해결됨

[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!

안녕하세요? 강좌 섹션5 > 레스토랑상세페이지 구현단계에서 build 의 FutureBuilder 의 builder 에서 아래와 같이 구현 되어있는데 builder: (context, AsyncSnapshot<Map<String, dynamic>> snapshot) { 아래와 같이 AsyncSnapshot<Map<String, dynamic>> 를 제거후 syntax error 따라다니면서 반환타입을 바꾸니 문제 없던데요.. builder: (context, snapshot) { flutter 가 업그레이드 되면서 type safe 된거 같기도 한데 AsyncSnapshot<Map<String, dynamic>> 부분이 이해가 잘 안가는데요 부연 설명 가능할까요?

  • flutter
  • 하이브리드-앱
Changdae Cho 댓글 1 좋아요 1 조회수 785

로고 크기 지정이 안 되는 문제

미해결

[코드팩토리] [중급] Flutter 진짜 실전! 상태관리, 캐시관리, Code Generation, GoRouter, 인증로직 등 중수가 되기 위한 필수 스킬들!

안녕하세요 강사님. 다름이 아니라 아래 코드가 적용되지 않아서 글 남깁니다. Image.asset( 'asset/img/misc/logo.png', width: MediaQuery.of(context).size.width * (2 / 3), ), width에 그 어떠한 값을 넣어봐도 로고 크기가 변하지 않았습니다. 이에 아래 코드와 같이 width가 아닌 height 값을 지정해 보니 드디어 로고 크기가 변하기 시작하더군요. Image.asset( 'asset/img/misc/logo.png', height: 100, ), 왜 width에 값을 넣었을 때는 로고 크기가 변하지 않았고, height에 값을 넣었을 때만 로고 크기가 변했는지 그 이유가 궁금합니다.

  • flutter
  • 하이브리드-앱
David Heo 댓글 1 좋아요 0 조회수 485

Row 위젯의 children의 [위젯1, 위젯2...] 안에서 if문

미해결

[코드팩토리] [초급] Flutter 3.0 앱 개발 - 10개의 프로젝트로 오늘 초보 탈출!

위 코드처럼 Row위젯의 children 파라미터에 있는 ElevatedButton 위에 if문을 작성하였는데, 이떄 if 문을 적용하는 코드에는 {} 를 쓰는데 여기서는 안써도 왜 if문을 먼저 통과해야 ElevatedButton이 생기는지 이유가 궁금합니다!

  • flutter
  • 클론코딩
승일 댓글 1 좋아요 0 조회수 465

isEqualByComparingTo를 사용하는 이유가 궁금합니다.

미해결

Practical Testing: 실용적인 테스트 가이드

안녕하세요 강의를 듣다가 궁금증이 생겨서 질문을 드립니다. void init() { // given List<Product> products = List.of( createProduct("001", 1000), createProduct("002", 2000) ); // when Order order = Order.create(products, LocalDateTime.now()); // then assertThat(order.getOrderStatus()).isEqualByComparingTo(OrderStatus.INIT); } 강의에서 OrderTest 클래스 테스트 과정에서 enum을 비교할때 isEqualByComparingTo를 사용하셨습니다. assertThat(order.getOrderStatus()).isEqualTo(OrderStatus.INIT); 위와 같이 isEqualTo를 사용해도 enum을 비교할 수 있는데, 혹시 isEqualTo 대신 isEqualByComparingTo를 사용한 이유를 알 수 있을까요? isEqualByComparing가 정의된 AbstractComparableAssert.java를 확인해보면 BigDecimal을 예시로 들어서 사용법을 설명하고 있습니다. BigDecimal의 예시로 Enum을 써야 하는 방법을 생각해보았는데, 유추(?)가 잘 되지 않아서 질문을 남깁니다. 항상 좋은 강의 제공해주셔서 감사합니다!!😀😀

  • 소프트웨어-테스트
  • junit5
  • java
amenable 댓글 2 좋아요 1 조회수 847

api 질문입니다.

해결됨

[코드캠프] 부트캠프에서 만든 고농축 프론트엔드 코스

포토폴리오 마이페이지 - 내포인트 부분을 작업하는 도중 api 질문입니다. fetchPointTransactionsOfBuying 이 내포인트 -> 구매내역 api로 알고있습니다. 피그마를 보면 거기서 판매자 데이터를 가져오고있는데 오류가 뜨네요.ㅠ 판매자 데이터를 가져오고 싶은데 여기서 seller {name} 이부분을 넣으면 데이터가 안가져오네요.. 판매자데이터가 없어서 그런건지 왜 그런지와 어떻게 해야하는지 두가지 모두 알고싶습니다.

  • react
  • node.js
  • seo
  • graphql
  • next.js
임프런 댓글 2 좋아요 0 조회수 381

freezed 파일 생성하기 위해 build_runner build 시 NullThrownError 발생

미해결

Flutter 중급 1편 - 클린 아키텍처

질문은 아니고 해결 방법 공유 드립니다. build_script_generate/bootstrap.dart:76:40: Error: Method not found: 'NullThrownError'. final error = e[0] as Object? ?? NullThrownError(); 위 에러가 발생하는 경우 https://pub.dev/ 에서 사용하는 라이브러리들을 검색해서 버전들을 최신으로 맞춰주시면 됩니다. 발생 원인은 NullThrownError 가 Dart 2.14 이후에 제거되었는데 예전 버전들에서 저 메서드를 사용하려고 하니 발생하는 것이 아닐까 싶습니다.

  • flutter
  • ios
  • android
파란하늘 댓글 4 좋아요 2 조회수 1439

Firebase로 이메일 로그인 기능 구현

해결됨

Flutter 입문 - 안드로이드, iOS 개발을 한 번에 (with Firebase)

올려주신 방법 모두 해봤는데 안돼서 질문드립니다ㅠ

  • flutter
  • ios
  • android
FLUTter 댓글 1 좋아요 0 조회수 387

인기 태그

인프런 TOP Writers

주간 인기글