flutter_speedometer_new

Last updated:

0 purchases

flutter_speedometer_new Image
flutter_speedometer_new Images
Add to Cart

Description:

flutter speedometer new

flutter_speedometer #
Flutter Speedometer widget package

Getting Started #
In order to use this package, do import
import 'package:flutter_speedometer_new/flutter_speedometer.dart';
copied to clipboard
Basic implementation can be done like below code:
import 'package:flutter/material.dart';
import 'package:flutter_speedometer_new/flutter_speedometer.dart';

void main() {
runApp(
Center(
child: Speedometer(
size: 250,
minValue: 0,
maxValue: 180,
currentValue: 76,
warningValue: 150,
displayText: 'mph',
),
),
);
}
copied to clipboard
Example App #
You can find more examples from Example App
API #
In this table, you can find all attributes provided by this package:



Attribute
Default value
Description




size
200
Min value to be displayed


minValue
0
Min value to be displayed


maxValue
100
Max value to be displayed


currentValue
0
Set the current value


warningValue
80
Set 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;
}
copied to clipboard
Feedback #
Feel free to leave any feedback for helping support this package 🍻

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.