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

A customizable Flutter package with searchable dropdowns, filtering, and styling, ideal for intuitive transactional data selection.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: const Text('Searchable Dropdown Demo')),
        body: Center(
          child: Padding(
            padding: const EdgeInsets.all(16.0),
            child: FormSearchableDropdown<String>(
              items: const ['Apple', 'Banana', 'Cherry', 'Date', 'Elderberry'],
              itemLabelBuilder: (item) => item,
              onChanged: (selected) => print('Selected: $selected'),
              hintText: 'Select a fruit',
            ),
          ),
        ),
      ),
    );
  }
}
2
likes
140
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter package with searchable dropdowns, filtering, and styling, ideal for intuitive transactional data selection.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on form_searchable_dropdown