-
Notifications
You must be signed in to change notification settings - Fork 212
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
hexInputController causes setState() called after dispose() exception #61
Comments
I don't have any issues with your code above, is something I missed? |
@mchome Did you try opening, then close then open the Dialog again? The exception is caught when I open the dialog again. It doesn't throw this exception once I remove the hexInputController value so I reckon it's something internal with the ColorPicker widget.
|
Please provide the full code & steps that I can reproduce the bug. |
@mchome
|
Nan, here's my log:
Device: Pixel 3 (Android 12) |
I'm currently using it on Flutter Web - Chrome. I didn't expect this to be a platform issue |
Oh, maybe I am writing v1.0.0, I will try v0.6.0 again. |
I actually just tested on Pixel 4 XL (Android 11) - Flutter 2.5.2 stable and it produced the same exception. Would you kindly check again |
I post v0.6.1 with the fixes. |
May I ask what led to the exception and how you handled it? |
Just remove the listener of textController in colorpicker.dart:
class ColorPicker extends StatefulWidget {
...
@override
void dispose() {
widget.hexInputController?.removeListener(colorPickerTextInputListener);
super.dispose();
}
... |
The code that throws this exception.
This exception is thrown when I close the Dialog and open it again, and is not thrown once I remove the controller.
The text was updated successfully, but these errors were encountered: