I get this error if i can't found icon after search
════════ Exception caught by widgets library ═══════════════════════════════════
The following NoSuchMethodError was thrown building IconPicker(dirty, dependencies: [_LocalizationsScope-[GlobalKey#62a5e], _InheritedTheme], state: _IconPickerState#db38d):
The method '+' was called on null.
Receiver: null
Tried calling: +(" ")
The relevant error-causing widget was
MaterialApp
lib\main.dart:28
When the exception was thrown, this was the stack
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 _IconPickerState.build
package:flutter_iconpicker/IconPicker/iconPicker.dart:69
#2 StatefulElement.build
package:flutter/…/widgets/framework.dart:4619
#3 ComponentElement.performRebuild
package:flutter/…/widgets/framework.dart:4502
#4 StatefulElement.performRebuild
package:flutter/…/widgets/framework.dart:4675
...
════════════════════════════════════════════════════════════════════════════════
After i check in your file , I think you forgot to add default noResultText in your constructor.
I get this error if i can't found icon after search
After i check in your file , I think you forgot to add default noResultText in your constructor.
Error Line
Your Constructor
If i added property noResultsText in
FlutterIconPicker.showIconPicker(context, iconSize: 40, noResultsText: 'Not found my bro');
error is gone.I hope you added default noResultText or make it required in your constructor.