FLUTTER ECOSYSTEM

prompts

Rich, simple, synchronous command-line prompt library for Dart.

prompts cover
Latest version
2.0.0
30-day downloads
1.1M
Likes
29
Pub points
140

Package Overview

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

Overview

A rich, simple, and synchronous command-line prompt library for Dart, designed to make interactive CLI applications easy to build. It provides a clean API for asking users for input through various prompt types, such as text, password, confirmation, and choice-based inputs. The library is ideal for tools, scripts, or development utilities that require user interaction in terminal environments. Prompts runs on all major platforms including Android, iOS, macOS, Windows, and Linux, making it highly portable. Its synchronous nature simplifies flow control without requiring async/await boilerplate.

Use cases
  • Building CLI tools
  • Interactive setup wizards
  • User input collection in scripts
  • Development utility applications
  • Terminal-based configuration
Key features
  • Synchronous API
  • Multiple prompt types
  • Cross-platform support
  • Simple, intuitive syntax
  • No async/await required
Suitable for
  • Dart developers building CLI apps
  • Tools needing user interaction in terminals
  • Simple command-line interfaces
Considerations
  • Not suitable for asynchronous workflows
  • Limited to console-based interaction
  • May block execution during input
  • Requires terminal access
  • Not designed for GUI applications
Supported platformsAndroidiOSmacOSWindowsLinux

Install package

flutter pub add prompts

Categories

Dependencies

Dependency list 2 items

Source repository

Related projects