본문 바로가기
728x90
반응형

플러터3

[Flutter] flutter 버전 업그레이드 오류 뜰 때 Your flutter checkout has local changes that would be erased by upgrading. If you want to keep these changes, it is recommended that you stash them via "git stash" or else commit thechanges to a local branch. If it is okay to remove local changes, then re-run this command with "--force". flutter upgrade를 터미널에 입력했을 때 위에 글과 같이 오류가 발생했다면 코드 수정 때 IDE 부분에서 에러가 났을 경우가 대부분이다. flutter upgrade --force 를 .. 2022. 10. 31.
[Flutter] Theme 파일 (사진 첨부) Flutter에서는 자주 반복되는 글자, 버튼 등의 크기와 색상등의 스타일 옵션값을 Theme으로 설정하여 관리할 수 있습니다. MaterialApp( theme: ThemeData( colorScheme: ColorScheme.fromSwatch( primarySwatch: Colors.blue, // PrimaryColor ).copyWith( secondary: Colors.green, // accentColor: Colors.cyan[600], ), textTheme:const TextTheme(bodyText2: TextStyle(color: Colors.purple)), ), home: Scaffold( appBar: AppBar( title:const Text('ThemeData Demo').. 2022. 10. 29.
[Flutter] 3.0.2 Firebase 연동 방법!(사진 많음) 1. Firebase 프로젝트 생성하기 - firebase 공식 사이트에 들어가 로그인 후 프로젝트를 생성한다. 2. Flutter 앱에 Firebase 추가 - firebase login을 터미널에 입력하여 vscode에 firebase를 로그인합니다. 간혹 Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path. 와 같은 에러가 뜰 수 있습니다. 이럴 땐 export PATH="$PATH":"$HOME/.pub-cache/bin"를 터미널에 입력 후 dart pub global activate fvm 를 입력하여 실행한 후 다시 FlutterFire CLI 설치 및 실행하면 된다. 3. 앱에서 Fire.. 2022. 10. 25.
반응형