-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
onTap function doesn't work #49
Comments
Hello @EbrahimMosaaed , For the For the search working on the item value string, maybe this issue would help you: |
* Calling non future items onTap if not null when list item is tapped. Thanks @EbrahimMosaaed #49 * Fixed some typos. * Added the following example code to the README: Multi dialog paged future
* Calling non future items onTap if not null when list item is tapped. Thanks @EbrahimMosaaed #49 * Fixed some typos. * Added the following example code to the README: Multi dialog paged future
Hello @EbrahimMosaaed , Here is an example working for the onTap with the latest plugin version 2.0.8: String printable=new String.fromCharCodes(wordPair.characters.map<int>((element)=>element.codeUnitAt(0)).toList());
items.add(DropdownMenuItem(
child: Text(wordPair),
value: wordPair,
onTap: (){print("You tapped $printable !!!");},
)); This only works with non future items. |
@lcuis Thanks .👍 |
You're welcome @EbrahimMosaaed ! |
items: dropdownElemnts?.data?.sectors!.map((Sector value) { return DropdownMenuItem<String>( onTap: () { print('clicked'); }, value: value.id.toString(), child: Text(value.name!), ); }).toList(),
Actually i have two issues the first one ,the search feature doesn't work when the value and child pramters take different values as shown..with the below code search feature will work
value: value.name, child: Text(value.name!),
the second issue onTap function doesn't work at all
The text was updated successfully, but these errors were encountered: