1. kazuhideoki

    No comment

    kazuhideoki
Changes in body
Source | HTML | Preview
@@ -60,13 +60,13 @@
Widget build(BuildContext context) {
return TextFormField(
// '/'を含めた5文字
maxLength: 5,
buildCounter: (context,
- {required int currentLength,
- required bool isFocused,
- required int? maxLength}) {
+ {int currentLength,
+ bool isFocused,
+ int? maxLength}) {
// `/`を抜いた文字数でカウント
final length = currentLength < 3 ? currentLength : currentLength - 1;
return CustomText.caption('$length/4');
},
// 配列の中に格納