ModularCustomizableDropdown.displayOnFocus constructor
- @Deprecated("This factory constructor is no longer maintained.")
- required dynamic onValueSelect(
- DropdownValue selectedValue
- required List<
DropdownValue> allDropdownValues, - required Widget targetBuilder(
- FocusNode focusNode,
- TextEditingController textController
- required TextEditingController textController,
- required FocusNode focusNode,
- bool setTextToControllerOnSelect = true,
- bool collapseOnSelect = true,
- bool barrierDismissible = true,
- dynamic onDropdownVisible()?,
- DropdownStyle style = const DropdownStyle(invertYAxisAlignmentWhenOverflow: true),
- Key? key,
- @visibleForTesting Key? listviewKey,
- @visibleForTesting Key? overlayEntryKey,
- @visibleForTesting Key? offStageWidgetKey,
- @visibleForTesting List<
Key> ? rowKeys,
Same as displayOnTap, but also triggers dropdown when the target is in focus
This is still a bit stable, there's more work to be done...
Don't use in prod...yet
Implementation
@Deprecated("This factory constructor is no longer maintained.")
factory ModularCustomizableDropdown.displayOnFocus({
required Function(DropdownValue selectedValue) onValueSelect,
required List<DropdownValue> allDropdownValues,
required Widget Function(
FocusNode focusNode, TextEditingController textController)
targetBuilder,
required TextEditingController textController,
required FocusNode focusNode,
bool setTextToControllerOnSelect = true,
bool collapseOnSelect = true,
bool barrierDismissible = true,
Function(bool)? onDropdownVisible,
DropdownStyle style =
const DropdownStyle(invertYAxisAlignmentWhenOverflow: true),
Key? key,
@visibleForTesting Key? listviewKey,
@visibleForTesting Key? overlayEntryKey,
@visibleForTesting Key? offStageWidgetKey,
@visibleForTesting List<Key>? rowKeys,
}) {
return ModularCustomizableDropdown(
rowKeys: rowKeys,
listviewKey: listviewKey,
offStageWidgetKey: offStageWidgetKey,
overlayEntryKey: overlayEntryKey,
reactMode: ReactMode.focusReact,
onValueSelect: onValueSelect,
allDropdownValues: allDropdownValues,
collapseOnSelect: collapseOnSelect,
focusReactParams: FocusReactParams(
textController: textController,
focusNode: focusNode,
setTextToControllerOnSelect: setTextToControllerOnSelect,
targetBuilder: targetBuilder),
dropdownStyle: style,
onDropdownVisibilityChange: onDropdownVisible,
barrierDismissible: barrierDismissible,
);
}