Reputation: 509
I have a textformfield when isObscure is true, in Android everything work normally but when I run on iPhone , I can not type anything. I don't know why it happens.
TextFormField(
obscureText: isObscure,
key: passwordEntryKey,
controller: TextEditingController()
..text = provider.data.password
..value = TextEditingValue(text: provider.data.password)
..selection = TextSelection.fromPosition(
TextPosition(offset: provider.data.password.length)),
onChanged: (pass) {
provider.data.password = pass;
},
onTap: () {
SignUpPageState.of(context).changeScale(0.8);
},
validator: (value) {
if (value.isEmpty) {
return "Bạn phải điền mật khẩu";
}
return null;
},
)
Upvotes: 3
Views: 366
Reputation: 2654
Changing to Stable branch seems to fix the problem
flutter channel stable
Upvotes: 1