This Custom drop down will have the Custom feature of drop down and search.
Features
A custom drop with search on list .
Getting started
This package supports null safety.Please use this package with flutter that supports null safety.
Usage
DropDownWithSearch(
textController: myController,
inputItem: ["Mumbai", "Chennai", "Maharastra", "Karnataka"],
),
Example
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Dropdown"),
),
body: Padding(
padding: EdgeInsets.symmetric(horizontal: 20),
child: DropDownWithSearch(
textController: myController,
inputItem: ["Mumbai", "Chennai", "Maharastra", "Karnataka"],
),
),
floatingActionButton: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
), // This trailing comma makes auto-formatting nicer for build methods.
);
}
Additional information
Changes to the package is always accepted.Please send PR with changes.