Search packages, repositories and app categories

console_bars cover
Package detailsv1.3.0

console_bars

A package for creating a customizable progress bar in console easily.

AndroidiOSmacOSWindowsLinux
30-day downloads
10.7K
Likes
33
Pub points
160

Install package

flutter pub add console_bars

Package Overview

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

console_bars is a Flutter/Dart package designed to create customizable progress bars directly in the console. It provides an easy-to-use API for displaying real-time progress indicators in command-line applications, making it ideal for CLI tools, scripts, or any console-based workflow that requires visual feedback. The package supports multiple platforms including Android, iOS, macOS, Windows, and Linux, ensuring broad compatibility. With simple configuration options, developers can tailor the appearance and behavior of progress bars to suit their needs.

Use cases

  • CLI tool progress tracking
  • script execution monitoring
  • console-based data processing
  • command-line application feedback
  • batch operation visualization

Key features

  • Easy-to-use API
  • Customizable appearance
  • Real-time progress updates
  • Multi-platform support
  • Simple integration with Flutter/Dart

Suitable for

  • Developers building CLI tools
  • Users needing console progress indicators
  • Projects with terminal-based workflows
  • Dart/Flutter apps with console output
  • Scripting and automation tasks

Considerations

  • Requires console environment
  • Limited to text-based UI
  • Not suitable for GUI applications
  • May not render on all terminal types
  • Depends on platform-specific console capabilities

Original README

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

Pub Version (including pre-releases) GitHub last commit GitHub language count GitHub top language

A package for creating an awesome progress bar in the terminal. Handy while developing a CLI or a desktop utility in dart.

See in pub.dev

Usage

Options:

  • total : Total number of steps
  • desc : Simple text shown before the bar (optional)
  • space : Character denoting empty space (default : '.')
  • fill : Character denoting filled space (default : '█')
  • time : Toggle timing mode (default : false)
  • percentage : Toggle percentage display (default : false)
  • scale : Scale of the bar relative to width (between: 0 and 1, default: 0.5, Irrelavant if width is specified)
  • width : Width of the bar (If not specified, it will be automatically calculated using the terminal width and scale)

Code:

final p = FillingBar(desc: "Loading", total: 1000, time: true, percentage:true);
  for (var i = 0; i < 1000; i++) {
    p.increment();
    sleep(Duration(milliseconds: 10));
  }

Result:

Animation

Loading : ████████████████████████████████████████.................... 673/1000 67.3% [ 0:00:13.28 / 0:00:06.45 ]

Note: You can use the total and desc setters to change the total number of steps and description mid-way.

Categories

Source repository

Projects using this package

No data available yet.