-
https://pub.dev/packages/keyboard_attachable
keyboard_attachable | Flutter Package
A Flutter package to build widgets that can be attached to the soft keyboard.
pub.dev
를 사용하면 키보드가 활성화될때 고정된 UI를 보여줄 수 있습니다.
import 후 하단과 같이 사용합니다.
KeyboardAttachable(
backgroundColor: Colors.blue,
child:
Container(
padding: const EdgeInsets.all(16),
color: Colors.blue,
child:
// 원본
const TextField(
decoration: InputDecoration(
hintText: "Tap me!",
fillColor: Colors.white,
filled: true,
border: OutlineInputBorder(),
),
),
),
)'flutter' 카테고리의 다른 글
[메모 스크랩] bloc state는 항상 불변이어야하는가? (0) 2021.11.17 flutter batch 사용 (0) 2021.10.27 flutter 텍스트 폰트크기 고정 (0) 2021.09.08 appbundle 뽑다 오류 (0) 2021.08.07 빌드오류 Cannot run with sound null safety because dependencies don't support null safety (0) 2021.08.02