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

select_all_dropdown is a highly customizable and user-friendly Flutter package that provides a multi-select dropdown with a convenient "Select All" feature. It allows users to select multiple items fr [...]

example/main.dart

import 'package:flutter/material.dart';
import 'package:select_all_dropdown/src/drop_down_multi_select.dart';
void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text('Select All Dropdown Example'),
        ),
        body: Center(
          child: DropdownExample(),
        ),
      ),
    );
  }
}

class DropdownExample extends StatefulWidget {
  @override
  _DropdownExampleState createState() => _DropdownExampleState();
}

class _DropdownExampleState extends State<DropdownExample> {
  List<String> _selectedValues = [];
  final List<String> _options = ['Option 1', 'Option 2', 'Option 3', 'Option 4'];

  @override
  Widget build(BuildContext context) {
    return DropDownMultiSelect<String>(
      options: _options,
      selectedValues: _selectedValues,
      onChanged: (List<String> newValue) {
        setState(() {
          _selectedValues = newValue;
        });
      },
      whenEmpty: 'Select options',
      icon: Icon(Icons.arrow_drop_down),
      hint: Text('Choose options'),
    );
  }
}
4
likes
110
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

select_all_dropdown is a highly customizable and user-friendly Flutter package that provides a multi-select dropdown with a convenient "Select All" feature. It allows users to select multiple items from a list with ease and efficiency, making it an ideal choice for forms, filtering options, and settings screens.

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, states_rebuilder

More

Packages that depend on select_all_dropdown