
Flutter Interview Questions and AnswersIn this article, you’ll work through a series of Flutter and Dart job interview questions and answers.www.kodeco.com 1. fat arrow 문법 써보기아래 코드에서 makeMilkshake()를 fat arrow 문법을 사용해서 milkshake() getter로 바꿔보기class Recipe { int cows; int trampolines; Recipe(this.cows, this.trampolines); int makeMilkshake() { return cows + trampolines; }}class Recipe { ..

Android 14부터 WillPopScope가 사라지게 된다고 함. 왜냐하면 Android 14부터 Predictive Back 기능이 생겼는데, 이 기능은 사용자가 뒤로 가기 제스처를 수행할 때 현재 화면 뒤를 살짝 보게 하여, 제스처를 계속할지 취소할지를 결정할 수 있게 함. 그러나 이는 사용자가 뒤로 가기 제스처를 받은 후 이를 취소할 수 있게 했던 Flutter의 기존 네비게이션 API와 호환되지 않음. Predictive Back에서는 제스처가 시작되면 즉시 애니메이션이 시작되어 제스처가 완료되기 전에 발생 -> 그래서 Flutter 앱은 그 시점에서 이를 허용할지 결정할 기회가 없고, 이러한 결정은 미리 되어 있어야 함. 이러한 이유로, Flutter 앱 개발자가 뒤로 가기 제스처를 받은..

지난 번에는 Navigator.push()를 통해 단순하게 화면을 넘기고, 데이터를 넘겨받는 방법을 알아봤다면,오늘은 Navigator.pushNamed()로 화면을 넘기고, 그 때 데이터를 넘기고 넘겨받는 방법을 정리하려고 함! 공식 문서에 따르면 만약 앱의 다양한 부분에서 똑같은 화면으로 계속 네비게이트한다면, Navigator.push()를 통한 화면 전환은 코드 중복을 일으킬 수 있기 때문에 named route가 해결책이 될 수 있다고 함 지난 번 글https://day-of-soonjin.tistory.com/112 [Flutter] push, pop 화면 전환하며 데이터 넘겨 받는 방법플러터에서 화면을 push, pop하면서 데이터를 넘겨받는 방법 1. push 할 때(1) 새로운 화면..

Flutter를 3.22.2로 업그레이드 했더니, 아래와 같은 메시지가 발생! You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply 메시지에서 안내해준 링크로 가보니 내용이 아래와 같음 과거 방식 (Flutter 3.16 이전):Gradle의 기존..

플러터에서 화면을 push, pop하면서 데이터를 넘겨받는 방법 1. push 할 때(1) 새로운 화면(SecondScreen)에 필수 파라미터를 설정하여 값을 넘기는 방법SecondScreen에 inputString이라는 필수 파라미터를 설정하여 push할 때 해당 파라미터 값을 넘기도록 함onPressed: () { Navigator.push( context, CupertinoPageRoute( builder: (context) => SecondScreen(inputString: _textEditingController.text), ), );}, 전체코드import 'package:flutter/cupertino.dart';import 'package:flutter/mate..

현재 설치된 것 ✅ 맥북 : ventura 13.4 ✅ xcode : 14.3.1 ✅ vscode : 1.81.0 설치가 필요한 것 ☑️ Flutter ☑️ Android Studio ☑️ 기타 Flutter 설치 1. 플러터 사이트 방문하여 애플 실리콘용 설치 파일 다운로드 https://docs.flutter.dev/get-started/install/macos macOS install How to install on macOS. docs.flutter.dev 2. 압축 풀기 3. 터미널 켜서 플러터 경로 설정 mkdir ./Developments && mv ~/Downloads/flutter ./Developments/ && echo 'export PATH="$PATH:$HOME/Developmen..

참고 영상 : https://www.youtube.com/watch?v=8nvtNM-Ycp8 사전 준비 1. xcode 설치 2. 안드로이드 설치 Install Install Flutter and get started. Downloads available for Windows, macOS, Linux, and ChromeOS operating systems. docs.flutter.dev macOS install How to install on macOS. docs.flutter.dev 0. M1일 경우, 터미널에서 아래 명령어 쳐줄 것 sudo softwareupdate --install-rosetta --agree-to-license 1. M1용 Flutter SDK 다운로드 2. 압축 풀기 - 다운..
- Total
- Today
- Yesterday