nishtha_dropdown_kit 0.0.5
nishtha_dropdown_kit: ^0.0.5 copied to clipboard
A fully customizable Flutter dropdown with search, debounce, pagination, and theme-aware styling.
example/lib/main.dart
import 'package:flutter/material.dart';
import 'package:nishtha_dropdown_kit/nishtha_dropdown_kit.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'SmartDropDown Demo',
theme: ThemeData(colorScheme: .fromSeed(seedColor: Colors.deepPurple)),
home: const MyHomePage(),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
static const _fruits = ['Apple', 'Banana', 'Cherry', 'Date', 'Elderberry'];
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('SmartDropDown Demo')),
body: Padding(
padding: const EdgeInsets.all(16),
child: SmartDropDown<String>(
items: _fruits,
hintText: 'Pick a fruit',
isSearch: true,
onItemSelected: (item) => debugPrint('Selected: $item'),
),
),
);
}
}