just_a_dropdown

Last updated:

0 purchases

just_a_dropdown Image
just_a_dropdown Images
Add to Cart

Description:

just a dropdown

TODO:this is used for to search in list with dropdown like functionality with hover effect.
Features #
TODO: can serach in list with overlay effect.
Getting started #
TODO: List prerequisites and provide or point to information on how to
start using the package.
Usage #
TODO: expalin code in example folder

class Example extends StatefulWidget {
const Example({super.key});

@override
State<Example> createState() => _ExampleState();
}

class _ExampleState extends State<Example> {
String unitModel = "";
List unitList = [];
@override
Widget build(BuildContext context) {
return CustomDropdownFormField(

hintText: "Select Unit",
childWidget: unitList.map((item) {
return StatefulBuilder(
builder: (context, setState) {
WidgetsBinding.instance.addPostFrameCallback((_) => setState(() {}));
setState(() {});
return Text(
"${item.unitName}",
);
}
);
}).toList(),
items: unitList,
value: unitModel == null ? "" : "${unitModel!}",
onSelected: (value){
unitModel = value!;
setState(() {});
return "${unitModel}";
}, onChanged: (String? value ) { }, loadingValue: false,
);
}
}

copied to clipboard
Additional information #
TODO: if you need any help you can mail me at [email protected]

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.