반응형
Focus
FocusNode: 포커스를 받는 특정 위젯을 식별할 때 사용.
FocusScope: 어떤 위젯들까지 포커스를 받는지 범위를 나타낼 때 사용.
FocusScope.of(context) 메소드: 현재 포커스된 포커스노드를 가르킴
FocusScope.of(context).unfocus() 메소드: 포커스를 해제함
플러터토스트 라이브러리
https://pub.dev/packages/fluttertoast
fluttertoast | Flutter Package
Toast Library for Flutter, Easily create toast messages in single line of code
pub.dev
1. pubspec.yaml 파일에 라이브러리 추가
2. 토스트 보여주는 함수 추가 후 호출
Fluttertoast.showToast() 메소드의 msg 인자는 필수값.
반응형
': IT > Flutter' 카테고리의 다른 글
Visual Studio - develop for Windows (the doctor check crashed) (0) | 2022.06.08 |
---|---|
Final & Const 변수 (0) | 2022.05.21 |
플러터 2.0 버튼 (0) | 2022.03.03 |
Collection and Generic (0) | 2022.03.03 |
Navigator.pushNamed와 routes로 페이지 이동 (0) | 2022.03.01 |