728x90

원인
CarouselSlider의 매개 변수 'onPageChanged'가 정의되지 않습니다.

CarouselSlider(items: images, onPageChanged : (index){

            setState(() {

              _currentPage = index;

              _currentKeyword = keywords[_currentPage];

            });
          },)

 

 

해결방법
CarouselSlider의 options를 통하여 해결 가능합니다.

CarouselSlider(items: images, options: CarouselOptions(

             onPageChanged: (index, reason) {

              setState(() {

                _currentPage = index;

                _currentKeyword = keywords[_currentPage];

              });
        }),
      ),

 

728x90
728x90

1. 원인
컴퓨터 성능 문제로 에뮬레이터에 할당 한 메모리 용량에 대한 부분이 큰 문제

2. 해경 방법

userdata-qemu.img를 제거합니다.

728x90
728x90


════════ Exception caught by gesture════════════════════════
Navigator operation requested with a context that does not include a Navigator.
═════════════════════════════════════════════

페이지 이동이 되지 않는다.

https://github.com/flutter/flutter/issues/15919

 

Flutter Error: Navigator operation requested with a context that does not include a Navigator · Issue #15919 · flutter/flutter

Steps to Reproduce I have attached the main and decorationPage, which I have created. Run the AVD --> Launch the app --> Go to Navigator Drawer --> Click on "Decoration". Excepti...

github.com

여기에서 원인을 찾았다.

네비게이터가 되지 않는 이유는 MateriaApp 컨텍스트에서 수행하는 경우 네비게이터가 작동하지 않는다.

 

728x90
728x90

 

No suitable Android AVD system images are available. You may need to install these using sdkmanager, for example:
  sdkmanager "system-images;android-27;google_apis_playstore;x86"

요약하자면 sdk manager이 없다고 설치를 해야한다고 함.

 

안드로이드 스튜디오 들어간다.

Tools → SDK Manager 선택

 

8.1 Download

완료되면 Tools → AVD Manager 선택

원하는 걸로 선택

 

API Lever 27 선택 Download

 

완료

728x90
728x90

안드로이드 스튜디오를 열어서 Plugins 선택

 

다운받고

 

Create New Flutter Project 생성된 것을 볼 수 있다.

 

 

SDK path는 flutter 폴더 경로 해준다.

 

 

728x90
728x90

Flutter?
크로스 플랫폼 앱 개발 프레임워크로 안드로이드, 아이폰, 웹 앱을 단일 코드 베이스로 한번에 개발 할 수 있는 모바일 앱 SDK.
서로 다른 플랫폼에서도 자연스럽게 동작 할 수 있도록 하는 것이 Flutter의 목표이다.

언어 : Dart
만든 회사 : 구글
출시일 : 2017
대표 앱 : 구글 애드센스, 알리바바

특징
1. 높은 개발 효율
 - 안드로이드와 iOS 앱 동시 개발 가능
 - 소수 수정 후 빌드 과정 없이 화면에서 바로 확인

2. 유연한 사용자 인터페이스
 - 다양한 위젯을 통한 맞춤형 앱을 쉽게 제작

3. 빠른 속도
 - 스키아 엔진 사용


장점
1. 다양한 위젯
 - 사용자 맞춤형 앱을 쉽게 개발 및 위젯 활용하여 안드로이드에서 ios 스타일 앱 개발 가능
2. 애니메이션 성능
 - 복잡한 계산식 없이 사용 가능
3. 블루투스 등 네이티브 하드웨어 연결성

단점
1. 개발 생태계 자리 잡히지 않음
 - 오류 발견은 당신이 최초가 될 수 있다.
2. 플러터 SDK 앱 크기가 네이티브 대비 크다.


자바나 C# 언어가 가진 특징을 이용하여 앱 개발 가능

구성 :  프레임워크, 엔진, 임베더

728x90
728x90

 

https://flutter.dev/docs/get-started/install/windows

 

Windows install

How to install on Windows.

flutter.dev

 

 

환경변수 등록 ( Path ->  환경변수 편집 -> 등록)

 

https://git-scm.com/downloads

 

developer.android.com/studio?gclid=EAIaIQobChMIwMSihNad8AIVDa6WCh3s_gluEAAYASAAEgLEB_D_BwE&gclsrc=aw.ds

 

Download Android Studio and SDK tools  |  Android 스튜디오

developer.android.com

 

 

Folder -> 마우스 오른쪽 클릭 -> Git Bash Here 선택

 

[X] Android toolchain - develop for Android devices 대해서는
Install Android Studio from: https://developer.android.com/studio/index.html

 

Download Android Studio and SDK tools  |  Android 스튜디오

developer.android.com

 

Android 동의가 필요하다 전부 Y 입력

 

Visual Studio Code에서 Flutter Install

 

Test Folder 만들고, Test Folder 안에서 마우스 오른쪽 클릭
Git Bash Here 선택

 

flutter create sample_test 입력

 

cd sample_test/ 입력

 

code . 입력하면 Visual Studio Code가 실행.

 

Test Code

 

Test용 앱으로, + 누르면 숫자 증가

728x90

+ Recent posts