apgapg / search_widget Goto Github PK
View Code? Open in Web Editor NEWFlutter package: Search Widget for selecting an option from a data list.
Home Page: https://pub.dartlang.org/packages/search_widget
License: MIT License
Flutter package: Search Widget for selecting an option from a data list.
Home Page: https://pub.dartlang.org/packages/search_widget
License: MIT License
I'm new to Flutter and so wasn't able to figure out quite what's going wrong, but I can't get SearchWidget to work on web. The Inkwell gets highlighted when my cursor is at some offset from the actual list item, and clicking when the inkwell is highlighted just closes the overlay. Clicking on the actual list item doesn't work either. In both cases the overlay just gets closed.
I suspect it has something to do with the Positioned or CompositedTransformFollower widgets. This gist has a trivial example Flutter web app that demonstrates the issue.
Would love to get this working, other than this issue it seems to be a really nice widget. Let me know how I can help debug.
hi,
Are there any ways to dismiss the popup item widget by tapping the screen?
thanks
In the queryBulider function this keeps out putting "The method 'toLowerCase' was called on null." and the query has value.
queryBuilder: (String query, List<Word> list) {
return list.where(
(Word item) => item.translation.toLowerCase().contains(query.toLowerCase())
).toList();
},
my Word data structure is
class Word{
int id,difficulty;
String word,definition1,definition2,example,translation;
Word({this.id,this.word,this.definition1,this.definition2,this.difficulty,this.example,this.translation});
}
Really appreciate what you did tho.
Hi,
Is there a way to show the selected value in the TextField, instead of clearing the TextField onItemSelected ?
Goodmorning again,
Went through your packages and this is exactly what i need. The only thing i would like to have different is that whenever you choose an item, it is selected in the textField and not in a card below the searchfield. I tried to sent the controller to the selectedItemBuilder and set the text from there, but that didn't seem to work.
Is there any way on doing this?
Hello,
seems you using a deprecated API with name " flutter_keyboard_visibility-0.7" ...although the app works fine ..the error keeps coming .
The method 'markNeedsBuild' was called on null. Receiver: null Tried calling: markNeedsBuild() >>>> TRACE <<<< #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5) #1 MySingleChoiceSearchState.init.<anonymous closure> (package:search_widget/search_widget.dart:109:22) #2 ChangeNotifier.notifyListeners (package:flutter/src/foundation/change_notifier.dart:206:21) #3 ValueNotifier.value= (package:flutter/src/foundation/change_notifier.dart:273:5) #4 TextEditingController.clear (package:flutter/src/widgets/editable_text.dart:183:5) #5 MySingleChoiceSearchState.onDropDownItemTap (package:search_widget/search_widget.dart:193:17) #6 MySingleChoiceSearchState.onTap.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:search_widget/search_widget.dart:257:39) #7 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:635:14) #8 _InkResponseState.build.<anonymous closure> (package:flu<…>
It's returning error like this in both Android and iOS
/ . ***/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:6: error: a type with the same simple name is already defined by the single-type-import of KeyboardVisibilityPlugin
import com.github.adee42.keyboardvisibility.KeyboardVisibilityPlugin;
^
1 error
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org . .\
I can't access my selected item outside "selectedItemBuilder" and even can,t set state
setting state cause problem
Please add null safety version
Hi, it works in the app but I get this exception. Running on newest version 1.0.1, though same error when trying with 1.0.0.
I/flutter ( 8648): ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY
I/flutter ( 8648): The following MissingPluginException was thrown while activating platform stream on channel
I/flutter ( 8648): flutter_keyboard_visibility:
I/flutter ( 8648): MissingPluginException(No implementation found for method listen on channel
I/flutter ( 8648): flutter_keyboard_visibility)
[√] Flutter (Channel stable, v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.17763.914], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.5)
[√] VS Code (version 1.35.0)
[√] Connected device (1 available)
• No issues found!
Could you update this plugin? I can't use it in another package because the version here is earlier.
Grateful for the attention.
Hi, is it possible to add the selected item directly in the TextField instead to create a new Widget?
Hi,
works ok, but when I select from the filtered list, it always return the first element in the original list not the filtered one.
when I add this widget as dependency to my Pubspec.yaml file, the app will crash when I run it in debug mode on an android emulator and it gives me this error:
error: a type with the same simple name is already defined by the single-type-import of KeyboardVisibilityPlugin
import com.github.adee42.keyboardvisibility.KeyboardVisibilityPlugin;
^
1 errorFAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.Get more help at https://help.gradle.org
the version for the widget is search_widget: ^0.2.0
the app works without it
hi there,
is there any indication for search close without selection (such as back press event or outside click)?
what i'm trying to do is to implement a functionality where there is dim screen behind the results list only when its open.
C:\Users\Mobile02\AndroidStudioProjects\siga_atividade_coletiva\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:5: error: a type with the same simple name is already defined by the single-type-import of KeyboardVisibilityPlugin
import com.github.adee42.keyboardvisibility.KeyboardVisibilityPlugin;
^
1 error
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 3m 40s
Finished with error: Gradle task assembleDebug failed with exit code 1
I have an icon that opens and closes the SearchWidget. It works great unless I close it without selecting a result. The search results list remains in the overlay even after the SearchWidget is disposed if no item was selected from within the results.
i want to show dropdown builder only if i typed in search box
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.