-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
singleInputDialog - Value not working when set initially #11
Comments
I found this code in the initState() of the __SingleInputDialogState class (the code setting the initial value is in comment): @OverRide |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
When I create a singleInputDialog and add a value, the value is not set in the textfield - it actually looks like the value is set in the textfield, bit it is being shown as a label or something "behind" the textfield. When I save the dialog the value is emplty unless I enter at new value in the textfield.
singleInputDialog( context, title: "Input Dialog", label: "Name", value: item.optionName, validator: (value) { print("Validator: $value"); return value.isEmpty ? "Required!" : null; }, positiveAction: (value) async { item.optionName = value; await updateOption(item); setState(() {}); print("Submit: $value"); }, negativeAction: () { print("negative action"); }, neutralAction: () { print("neutral action"); }, negativeText: "d", );
The text was updated successfully, but these errors were encountered: