본문 바로가기

Flutter/Flutter FAQ380

VSCode는 Flutter SDK의 경로를 찾을 수 없습니다., VSCode Can't Find the PATH To the Flutter SDK 질문 I just tried to execute Flutter: New Project, but it shows an error that could not find a flutter SDK. I've ensured to complete all of the requirements from the flutter doctor. Is there any way to solve this problem? Thanks. 답변 macOS에서는 다음 단계를 따라 해결할 수 있습니다. 먼저 플러터 SDK를 다운로드 한 위치를 찾으세요. (여기에서 다운로드 할 수 있습니다). 다운로드 폴더에 있을 것입니다. 그렇지 않은 경우 다른 위치를 선택한 것입니다. 다음: 터미널을 엽니다. 다음 명령을 실행하세요: sudo nano /e.. 2024. 1. 3.
Flutter flutter_local_notifications: "PlatformException (PlatformException(INVALID_ICON, 해당 리소스를 찾을 수 없습니다)), flutter_local_notifications: "PlatformException (PlatformException(INVALID_ICON, The resource could not be found)) 질문 flutter_local_notifications 플러그인을 사용하여 앱에 알림을 추가하려고합니다. 그러나 AndroidInitializationSettings은 drawable 리소스가 필요하며 제공되지 않을 경우 다음 오류가 발생합니다: "PlatformException (PlatformException(INVALID_ICON, 리소스를 찾을 수 없습니다. Android 헤드 프로젝트에 drawable 리소스로 추가되었는지 확인하십시오., null))" 문제는 Android 헤드 프로젝트가 어디에 있는지 모른다는 것입니다. 답변 위에 답변된 방법으로 해결하셨길 바랍니다. 그러나 저는 기존 앱 아이콘을 사용하여 다른 방법으로 해결했습니다. var initializationSettingsAndroi.. 2024. 1. 3.
Flutter 플러터에서 흐릿한 장식 이미지, Blurred Decoration Image in Flutter 질문 내 앱의 배경은 다음과 같이 설정되어 있습니다: class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( home: new Container( decoration: new BoxDecoration( image: new DecorationImage( image: new ExactAssetImage('assets/lol/aatrox.jpg'), fit: BoxFit.cover, ), ), child: new BackdropFilter(filter: new ImageFilter.blur(sigmaX: 600.0, sigmaY: 1000.0)), width: 400.0,.. 2024. 1. 3.
Flutter 네트워크에서 이미지를 로드하는 더 좋은 방법은 플러터입니다., Better way to load images from network flutter 질문 네트워크에서 이미지를 로드하고 GridView에 표시하려고 합니다. StatefulWidget을 사용하고 이미지를 build 메서드 내에서 로드하고 있습니다. 그러나 내가 이해한 바에 따르면 build 메서드 내에서 네트워크 호출을 하는 것은 좋지 않다고 생각합니다. 어떻게하면 BLoC 파일 내에서 네트워크에서 이미지를 다운로드하고 나중에 다운로드한 이미지 목록을 위젯에 전달할 수 있을까요? 아래는 현재의 구현입니다. class MovieList extends StatefulWidget { @override State createState() { return MovieListState(); } } class MovieListState extends State { @override void initS.. 2024. 1. 3.