πTextField μ¬μ©λ²
child: TextField(
textAlignVertical: TextAlignVertical.center,
controller: searchTextController,
style: TextStyle(),
/// ν€λ³΄λ λͺ¨μ
textInputAction: TextInputAction.search,
decoration: InputDecoration(
contentPadding: const EdgeInsets.all(0),
/// λ°ννλ©΄ μ
filled: true,
fillColor: Colors.white,
/// ν¬μ»€μ€λμλ, λ°μ border
border: InputBorder.none,
/// Border
enabledBorder: OutlineInputBorder(
borderRadius:
BorderRadius.all(Radius.circular(50.0)),
borderSide:
BorderSide(color: Colors.white, width: 2),
),
focusedBorder: OutlineInputBorder(
borderRadius:
BorderRadius.all(Radius.circular(50.0)),
borderSide: BorderSide(color: Colors.white),
),
/// Textfield μμμ μ€λ₯Έμͺ½μ μλ icon
suffixIcon:
SizedBox(
height: 20,
width: 20,
child: IconButton(
key: Key(JoaraKeys.clearBtn),
padding: new EdgeInsets.all(0.0),
onPressed: () =>
searchTextController.clear(),
icon: Icon(
Icons.timesCircle,
size: 16,
),
),
),
/// TextField μμμ μΌμͺ½μ μλ icon
prefixIcon: SizedBox(
height: 30,
width: 30,
child: IconButton(
padding: new EdgeInsets.all(0.0),
onPressed: () {},
icon: Icon(
Icons.search,
size: 24,
),
),
),
hintText:'Search'),
/// Textfield done ν΄λ¦νμλ
onSubmitted: (text) {
},
/// Textfield ν΄λ¦νμλ
onTap: () {
},
),
),