Skip to content

Instantly share code, notes, and snippets.

@MadeBugs
Last active December 20, 2022 07:22
Show Gist options
  • Save MadeBugs/f0efe84872e6f9b2d4a3cc3eb589565f to your computer and use it in GitHub Desktop.
Save MadeBugs/f0efe84872e6f9b2d4a3cc3eb589565f to your computer and use it in GitHub Desktop.
输入框
TextField(
keyboardType: TextInputType.number,
inputFormatters: [FilteringTextInputFormatter.allow(RegExp(r'[0-9]'))],
decoration: InputDecoration(
hintText: "入れ替えの比例",
hintStyle: TextStyle(fontSize: 14, color: AppColors.color_cccccc),
fillColor: AppColors.color_f6f6f6,
filled: true,
border:
OutlineInputBorder(borderRadius: BorderRadius.circular(6), borderSide: BorderSide.none),
contentPadding: EdgeInsets.only(left: 12, bottom: 2)),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment