at_gauges 1.0.0 copy "at_gauges: ^1.0.0" to clipboard
at_gauges: ^1.0.0 copied to clipboard

discontinued

The at_radial_gauges library comes with highly customizable radial gauges.

pub package pub points build status gitHub license

Overview #

The at_gauges package is for Flutter developers who want to build beautiful and customizable gauges.

This open source package is written in Dart, supports Flutter with the following widgets:

  • SimpleRadialGauge
  • ScaleRadialGauge
  • SimpleLinearGauge

We welcome suggestions you may have to create more gauges or to add features to gauges already created.

Get started #

There are two options to get started using this package.

1. Clone it from GitHub #

Feel free to fork a copy of the source from the GitHub repo.

$ git clone https://github.com/atsign-foundation/at_gauges

2. Manually add the package to a project #

Instructions on how to manually add this package to you project can be found on pub.dev here.

How it works #

Setup #

This package need to be imported like this;

import 'package:at_gauges/at_gauges.dart';

Usage #

This package provides three beautiful gauges;

Simple Radial Gauge Example

The code snippet below shows the simple gauge widget with the required actualValue, maxValue and the optional properties.

SimpleRadialGauge(
    actualValue: 50,
    maxValue: 100,
    // Optional Parameters
    minValue: 0,
    title: Text('Simple Radial Gauge'),
    titlePosition: TitlePosition.top,
    unit: 'L',
    icon: Icon(Icons.water),
    pointerColor: Colors.blue,
    decimalPlaces: 0,
    isAnimate: true,
    animationDuration: 2000,
    size: 400,
),

alt_text

Scale Radial Gauge

The code snippet below shows the scale gauge widget with the required actualValue, maxValue and the optional properties.

ScaleRadialGauge(
    maxValue: 100,
    actualValue: 70,
    // Optional Parameters
    minValue: 0,
    size: 400,
    title: Text('Scale Radial Gauge'),
    titlePosition: TitlePosition.top,
    pointerColor: Colors.blue,
    needleColor: Colors.blue,
    decimalPlaces: 0,
    isAnimate: true,
    animationDuration: 2000,
    unit: TextSpan(text: 'Km/h', style: TextStyle(fontSize: 10)),
)

alt_text

Simple Linear Gauge

The code snippet below shows the simple gauge widget with the required actualValue, maxValue and the optional` properties.

SimpleLinearGauge(
    maxValue: 100,
    actualValue: 76,
    //Optional Parameters
    minValue: 0,
    divisions: 10,
    title: const Text('Simple Linear Gauge'),
    titlePosition: TitlePosition.top,
    pointerColor: Colors.blue,
    pointerIcon: const Icon(Icons.arrow_right, size: 40),
    decimalPlaces: 0,
    isAnimate: true,
    animationDuration: 2000,
    gaugeStrokeWidth: 5,
    rangeStrokeWidth: 5,
    majorTickStrokeWidth: 5,
    minorTickStrokeWidth: 5,
    actualValueTextStyle: const TextStyle(color: Colors.black, fontSize: 20),
    majorTickValueTextStyle: const TextStyle(color: Colors.black),
),

alt_text

For more information, please see the example tab or API documentation listed on pub.dev.

Open source usage and contributions #

This is open source code, so feel free to use it as is, suggest changes or enhancements or create your own version. See CONTRIBUTING.md for detailed guidance on how to setup tools, tests and make a pull request.

Maintainers #

Curtly Critchlow

38
likes
0
pub points
64%
popularity

Publisher

verified publisheratsign.org

The at_radial_gauges library comes with highly customizable radial gauges.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

cupertino_icons, flutter

More

Packages that depend on at_gauges