Skip to content
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

Error in null saftey for change #86

Closed
bibekmakaju opened this issue Apr 7, 2021 · 3 comments
Closed

Error in null saftey for change #86

bibekmakaju opened this issue Apr 7, 2021 · 3 comments

Comments

@bibekmakaju
Copy link

bibekmakaju commented Apr 7, 2021

onChange : (selected){

}
while changing
[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type '(S2SingleSelected) => void' is not a subtype of type '((S2SingleSelected<String?>) => void)?'

E/flutter (10308): #0 S2SingleState.onChange
package:smart_select/src/widget.dart:1709

E/flutter (10308): #1 S2State.showModal
package:smart_select/src/widget.dart:1630

@simonkimi
Copy link

onChange : (selected){

}
while changing
[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type '(S2SingleSelected) => void' is not a subtype of type '((S2SingleSelected<String?>) => void)?'

E/flutter (10308): #0 S2SingleState.onChange
package:smart_select/src/widget.dart:1709

E/flutter (10308): #1 S2State.showModal
package:smart_select/src/widget.dart:1630

import 'package:smart_select/src/model/chosen.dart';
.....
onChange: (S2SingleSelected<String?> value) {
    ....
}

@vasilich6107
Copy link

I released https://pub.dev/packages/flutter_awesome_select with fixed null safety.
Could you check that everything works for you?

@kapil708
Copy link

I released https://pub.dev/packages/flutter_awesome_select with fixed null safety. Could you check that everything works for you?

Work for me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants