반응형

플러터 12

'Device File Explorer' missing on Android Studio

Device File Explorer ?'Device File Explorer'는 연결된 에뮬레이터 또는 실물 스마트폰의 파일을 탐색할 수 있어 개발시 편리하게 이용되는 안드로이드 스튜디오의 기본 기능 중 하나이다. 상단메뉴 View > Tool Windows > Device File Explorer 또는 우측하단의 메뉴를 통해 진입 가능하다. 플러터 프로젝트에서의 Device File Explorer플러터 프로젝트에서는 Device File Explorer 메뉴가 없어 기능을 실행할 수 없다!!해결방법 1Project Structure > Project Settings > Modules 에서 아래와 같이 "Android" 를 추가하면 Device File Explorer 메뉴가 나타난다.해결방법 2fl..

FixedExtentScrollController 사용시 오류 처리.

Flutter 2.5.1 Dart 2.14.2 책의 예제를 테스트 하던 중 못보던 오류가 갑자기 발생하였다. ======== Exception caught by foundation library ==================================================== The following assertion was thrown while dispatching notifications for FixedExtentScrollController: 'package:flutter/src/rendering/object.dart': Failed assertion: line 2666 pos 12: '!_debugDisposed': is not true. CupertinoPicker 위젯에서 sc..

TextField 내부 padding 제거

TextField 위젯을 기본값으로 출력해 보면 text box 내부의 위, 아래 padding이 꽤 거슬릴 정도로 크다. TextField( keyboardType: TextInputType.number, controller: textController, decoration: InputDecoration( border: OutlineInputBorder(), ),), TextField 내부의 기본적인 여백은 Padding 위젯으로 TextField 위젯을 둘러싸서 설정해도 조절이 안된다. TextField의 decoration 속성에서 InputDecoration 위젯의  isDense 속성과 contentPadding 속성을 설정하여 조절할 수 있다. TextField( keyboard..

Android Studio 단축키 (for Mac)

Mac에서 안드로이드 스튜디오를 통해 flutter 프로그래밍 작업시 유용하게 사용할 수 있는 단축키를 정리해 보았다. option + Enter : show Context action flutter 는 여러 위젯을 중첩하여 사용하는 경우가 많은데, 특정 위젯 사이에 다른 위젯을 넣는다던가, 아니면 위젯을 삭제한다던가 할때 탭이 많아 헷갈리면서도 번거롭다. 다행스럽게도 안드로이드 스튜디오에서 해당 동작을 해주는 기능이 있어 매우 편리하게 자주 사용된다. String Text 등 위젯이 아닌 다른 곳에서 단축키를 사용하면 해당 위치에 맞는 다른 메뉴가 나타난다. control + J : Quick Documentation 커서가 위치한 곳의 위젯, 함수, 변수 등에 대한 정보를 pop-up 형태로 확인할 ..

flutter doctor - "Unable to find bundled Java version." 오류 처리.

- 2021.10.13 추가 Arctic Fox 2020.3.1 patch3 버전에서 이 문제가 수정된것 같다!! 업데이트 중 아래 해결책으로 설정한 symbolic link 가 중복된다며 삭제가 진행되었고, 그 이후 flutter doctor 에서 문제 나타나지 않았다. Android Studio Arctic Fox 2020.3 으로 update 한 후, flutter doctor 실행시 오류가 발생하였다. 구글링으로 찾은 해결 방법들은 공통적으로 아래처럼 설정을 하고, JAVA_HOME 도 setting 하라는 내용이었다. cd /Applications/Android\ Studio.app/Contents/jre ln -s ../jre jdk ln -s "/Library/Internet Plug-Ins..

반응형