flutter_speedometer 1.0.2

flutter_speedometer #

Flutter Speedometer widget package

Getting Started #

In order to use this package, do import

import 'package:flutter_speedometer/flutter_speedometer.dart';

Basic implementation can be done like below code:

import 'package:flutter/material.dart';
import 'package:flutter_speedometer/flutter_speedometer.dart';

void main() {
  runApp(
    Center(
      child: Speedometer(
        size: 250,
        minValue: 0,
        maxValue: 180,
        currentValue: 76,
        warningValue: 150,
        displayText: 'mph',
      ),
    ),
  );
}

Example App #

You can find more examples from Example App

API #

In this table, you can find all attributes provided by this package:

AttributeDefault valueDescription
size200Min value to be displayed
minValue0Min value to be displayed
maxValue100Max value to be displayed
currentValue0Set the current value
warningValue80Set the current value

Objects #

class Speedometer {

    final double size;
    final int minValue;
    final int maxValue;
    final int currentValue;
    final int warningValue;
    final Color backgroundColor;
    final Color meterColor;
    final Color warningColor;
    final Color kimColor;
    final TextStyle displayNumericStyle;
    final String displayText;
    final TextStyle displayTextStyle;
}

Feedback #

Feel free to leave any feedback for helping support this package 🍻 

[1.0.2] - 2019-08-07

  • Change description

[1.0.1] - 2019-08-07

  • Fixed bugs

[1.0.0] - 2019-07-11

  • First release

[0.0.1] - 2019-07-09

  • Initial raw package

example/README.md

Example of Flutter Speedomater #

This is the example app of Flutter Speedometer package.

Getting Started #

In order to run this example, make sure there is a connected device or a running simulator on your machine. Run below command lines:

Run following command to update dependencies:

flutter packages get

To run simple example app:

cd example
flutter clean
flutter run

Feedback #

Feel free to leave any feedback for helping support this package 🍻 

Credits #

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_speedometer: ^1.0.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_speedometer/flutter_speedometer.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
65
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
82
Learn more about scoring.

We analyzed this package on Sep 13, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.0
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.2

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test