dropdownproplus 0.1.1 copy "dropdownproplus: ^0.1.1" to clipboard
dropdownproplus: ^0.1.1 copied to clipboard

A customizable dropdown overlay package for Flutter. #dropdown #dropdownproplus

DropdownProPlus #

A customizable dropdown overlay package for Flutter.

Features #

  • Customizable dropdown overlay
  • Clean and simple API
  • Easy to integrate into any Flutter app

Installation #

Add this to your pubspec.yaml:

dependencies: dropdownproplus: ^0.1.1

#Run: flutter pub get

Usage #

Import:

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

Example: #

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

void main() { runApp(const ExampleApp()); }

class ExampleApp extends StatelessWidget { const ExampleApp({super.key});

@override Widget build(BuildContext context) { return MaterialApp( title: 'HSFlow Dropdown Example', theme: ThemeData(primarySwatch: Colors.blue), home: const ExamplePage(), ); } }

class ExamplePage extends StatelessWidget { const ExamplePage({super.key});

@override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text("Example")), body: Padding( padding: const EdgeInsets.all(16.0), child: Column( children: [ DropdownPlus( dropdownLabel: "Fruits", onItemSelected: (value) { ScaffoldMessenger.of( context, ).showSnackBar(SnackBar(content: Text("Selected: $value"))); }, dropdownItems: ["Apple", "Banana", "Orange", "Mango"], value: '', ///Selected Value For Customised Items or for JSON/POJO class object return callBackKey: '', ///To Access Tapped Details Of Dropdown item. ), ], ), ), ); } }

Parameters #

dropdownLabel : Label displayed for the dropdown dropdownItems : List of dropdown items onItemSelected : Callback when an item is selected

License #

MIT License

1
likes
140
points
202
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable dropdown overlay package for Flutter. #dropdown #dropdownproplus

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on dropdownproplus