better_drop_down 1.0.2 copy "better_drop_down: ^1.0.2" to clipboard
better_drop_down: ^1.0.2 copied to clipboard

A customizable Flutter dropdown widget with enhanced UI, hover effects, and Material Design styling.

BetterDropDown #

A customizable Flutter dropdown widget with enhanced UI, hover effects, and Material Design styling.

Demo #

📱 Mobile Preview:

Mobile Demo

🖥️ Web Preview:

Web Demo

Features #

  • Customizable hint text, icon, and dropdown color
  • Smooth hover effects for menu items
  • Material Design styling with elevation and border customization

Installation #

Add this to your pubspec.yaml:

dependencies:
  better_drop_down: ^1.0.0

Then run:

flutter pub get

Usage #

import 'package:flutter/material.dart';
import 'package:better_drop_down/better_drop_down.dart';

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String? selectedValue;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: BetterDropDown<String>(
            hintText: 'Select an option',
            value: selectedValue,
            onChanged: (String? value) {
              setState(() {
                selectedValue = value;
              });
            },
            items: const [
              DropdownMenuItem(value: '1', child: Text('Option 1')),
              DropdownMenuItem(value: '2', child: Text('Option 2')),
              DropdownMenuItem(value: '3', child: Text('Option 3')),
            ],
          ),
        ),
      ),
    );
  }
}

License #

MIT License

2
likes
0
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter dropdown widget with enhanced UI, hover effects, and Material Design styling.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on better_drop_down