Search packages, repositories and app categories

pretty_gauge cover
Package detailsv1.0.1

pretty_gauge

Fully customizable Gauge widget for Flutter with options for multiple segments, colors and customizable styling for displaying current value and text

AndroidiOSWebmacOSWindowsLinux
30-day downloads
3.7K
Likes
22
Pub points
150

Install package

flutter pub add pretty_gauge

Package Overview

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

Pretty Gauge is a highly customizable Flutter widget designed for visualizing data through gauges with support for multiple segments, dynamic coloring, and extensive styling options. It allows developers to display current values and custom text with precision, making it ideal for dashboards, performance indicators, or progress tracking. The widget is fully responsive and works across all major platforms including Android, iOS, Web, macOS, Windows, and Linux. With intuitive configuration, it enhances UIs by providing clear, visually appealing representations of numerical data.

Use cases

  • Dashboard widgets
  • Performance monitoring
  • Progress indicators
  • Data visualization in apps
  • Custom meter displays

Key features

  • Multiple segment support
  • Customizable colors
  • Styling for value and text
  • Responsive design
  • Cross-platform compatibility
  • Easy integration via pub

Suitable for

  • Developers building dashboards
  • UI designers needing visual metrics
  • Apps requiring progress visualization
  • Cross-platform applications
  • Custom gauge components

Considerations

  • Requires understanding of Flutter layout
  • May need tuning for complex segment logic
  • Limited built-in animations
  • Best suited for static or smoothly changing values

Original README

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

pretty_gauge

Fully customizable Gauge widget for Flutter

Installing:

In your pubspec.yaml, add the following dependency

dependencies:
  pretty_gauge: 1.0.0

Example Usage:

import 'package:pretty_gauge/pretty_gauge.dart';

PrettyGauge(
    gaugeSize: 200,
    segments: [
        GaugeSegment('Low', 20, Colors.red),
        GaugeSegment('Medium', 40, Colors.orange),
        GaugeSegment('High', 40, Colors.green),
    ],
    currentValue: 46,
    displayWidget: Text('Fuel in tank', style: TextStyle(fontSize: 12)),
),

Features:

  • Fully featured Gauge widget that is built from scratch
  • Can have any number of segments in the Gauge with different segment length and colors
  • Gauge can have any dimension (square dimension only) with any minimum and maximum value
  • Needle color can be customized
  • Display and Value widget can be customized, so that you can display what you want on the Gauge
  • Can turn on/off markers that display Min and Max value on the Gauge. You can even style these markers!

License:

This project is licensed under the BSD 2-Clause license - see the LICENSE file for details

Categories

Source repository

Projects using this package

No data available yet.