게시글
질문&답변
3강
JSon to Dart null safe사이트에서 conver to dart로 변경을 한 소스이면 에러가 나는것 같습니다. 안드로이드 스튜디오에서 json to dart로 변경 후 photo_widget.dart에서 아래와 같이 변경 하니 에러가 나지 않습니다. 아래와 같이 하고 진행해도 괜찮을까요? import 'package:flutter/material.dart';import 'package:image_search/model/photo.dart';class PhotoWidget extends StatelessWidget { final Photo photo; const PhotoWidget({ Key? key, required this.photo, }) : super(key: key); @override Widget build(BuildContext context) { return Container( decoration: BoxDecoration( borderRadius: const BorderRadius.all(Radius.circular(16.0)), image: DecorationImage( fit: BoxFit.cover, image: NetworkImage(photo.previewURL!), ), ), ); }}
- 0
- 2
- 250
질문&답변
StreamBuilder 부분 질문 드립니다.
앗.. 제실수가 맞습니다. 감사합니다.
- 0
- 4
- 239
질문&답변
StreamBuilder 부분 질문 드립니다.
위의 코드상에는 자세히 보이지는 않습니다만, return Text('${snapshot.data}', style: TextStyle(fontSize: 30)); 으로 되어 있습니다.
- 0
- 4
- 239
질문&답변
firebase 연동 후 빌드시 에러가 납니다.
추가 질문 드립니다. 강의 소스중 Future _hadleSignIn() async { GoogleSignInAccount googleUser = await _googleSignIn.signIn(); GoogleSignInAuthentication googleAuth = await googleUser.authentication; FirebaseUser user = await _auth.signInWithCredential(GoogleAuthProvider.getCredential(idToken: googleAuth.idToken, accessToken: googleAuth.accessToken)); return user;} await _auth.signInWithCredential(GoogleAuthProvider.getCredential(idToken: googleAuth.idToken, accessToken: googleAuth.accessToken)); 이부분에서 빨간줄이 생깁니다. 잘못된곳이 없지 싶은데요...
- 0
- 6
- 1.5K
질문&답변
firebase 연동 후 빌드시 에러가 납니다.
감사합니다. 마지막에 알려주신 데로 수정하였더니 빌드에러가 나지 않아 1. android > app > src > main > AndroidManifest.xml 에 카메라 권한 추가 삭제 2. android > app > build.gradle 에 minSdkVersion 을 다시 16로 변경 후 리빌드 하여도 에러가 나지 않았습니다. 늦은시간까지 신경써 주셔서 정말 감사 드립니다. 추가적으로 문의 사항은 코틀린 버젼 에러는 * What went wrong: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher. The following dependencies do not satisfy the required version: root project 'android' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71 이 부분이 맞는지요? firebase-core 는 앞으로 선언을 안하고 작업을 해도 괜찮은가요?
- 0
- 6
- 1.5K
질문&답변
firebase 연동 후 빌드시 에러가 납니다.
알려 주신데로 1. android > app > src > main > AndroidManifest.xml 에 카메라 권한 추가 android:name="android.permission.CAMERA" /> 2. pubspec.yaml 에서 image_picker 버전은 처음에 줄때 dependencies: image_picker: ^0.6.1+4 버전으로 주었습니다. 3. android > app > build.gradle 에 minSdkVersion 을 21로 변경 위와같이 변경 하였으나 같은 빌드에러가 발생 하고 있습니다. ㅠㅠ 어떻해야 할까요?
- 0
- 6
- 1.5K
질문&답변
그래프 강좌 실행시 Thread오류 납니다.
역시 스레드 에러 납니다 ㅠㅠ
- 0
- 3
- 200