Search packages, repositories and app categories

select_dialog cover
Package detailsv2.0.2

select_dialog

Package designed to select an item from a list, with the option to filter and even search the items online.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
3K
Likes
97
Pub points
150

Install package

flutter pub add select_dialog

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that provides a customizable dialog for selecting items from a list, featuring filtering and optional online search capabilities. It enhances user experience by allowing quick navigation through large datasets with real-time search and dynamic filtering. Ideal for forms, settings, or any UI requiring item selection. The package supports multiple platforms including Android, iOS, Web, macOS, Windows, and Linux, ensuring consistent behavior across devices.

Use cases

  • Form field selection
  • User preference settings
  • Dynamic data filtering
  • Online item search
  • Multi-platform app interfaces
  • Data lookup in lists

Key features

  • Real-time filtering
  • Online search integration
  • Cross-platform compatibility
  • Customizable UI
  • Simple API integration
  • Support for large datasets

Suitable for

  • Developers building cross-platform apps
  • Apps needing searchable dropdowns
  • UI-heavy applications with data selection
  • Teams prioritizing consistent UX across platforms
  • Projects requiring lightweight dialog solutions

Considerations

  • Requires manual implementation of online search logic
  • Limited to basic styling customization
  • May need additional state management for complex use cases
  • Not optimized for extremely large datasets without pagination
  • Depends on external dependencies for advanced features

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

select_dialog Package

Package designed to select an item from a list, with the option to filter and even search the items online.

Versions

Non Null Safety Version: 1.2.3 or less

Null Safety Version: 2.0.0 or more

pubspec.yaml

select_dialog: <last version>

import

import 'package:select_dialog/select_dialog.dart';

Simple example

String ex1 = "No value selected";

SelectDialog.showModal<String>(
  context,
  label: "Simple Example",
  selectedValue: ex1,
  items: List.generate(50, (index) => "Item $index"),
  onChange: (String selected) {
    setState(() {
      ex1 = selected;
    });
  },
);

Multiple items select

List<String> ex5 = [];

SelectDialog.showModal<String>(
  context,
  label: "Multiple Items Example",
  multipleSelectedValues: ex5,
  items: List.generate(50, (index) => "Item $index"),
  onMultipleItemsChange: (List<String> selected) {
    setState(() {
      ex5 = selected;
    });
  },
); 
MORE EXAMPLES

Attention

To use a template as an item type, you need to implement toString, equals and hashcode, as shown below:

class UserModel {
  final String id;
  final DateTime createdAt;
  final String name;
  final String avatar;

  UserModel({this.id, this.createdAt, this.name, this.avatar});

  @override
  String toString() => name;

  @override
  operator ==(o) => o is UserModel && o.id == id;

  @override
  int get hashCode => id.hashCode^name.hashCode^createdAt.hashCode;

}

Getting Started

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Categories

Source repository

Projects using this package