kdgaugeview

Creator: coderz1093

Last updated:

Add to Cart

Description:

kdgaugeview

KdGaugeViewFlutter #
KDGaugeView is a simple and customizable gauge control for Android inspired by KdGaugeView
The source code is 100% Dart.

Motivation #
I need some clean Guage view for my Flutter application.
Getting started #
Installing #
Add this to your package's pubspec.yaml file:
This library is posted in pub.dev
pubspec.yaml
dependencies:
kdgaugeview: ^1.0.4
copied to clipboard
Usage #
After Importing this library, you can directly use this view in your Widget tree
import 'package:kdgaugeview/kdgaugeviewflutter.dart';
copied to clipboard
GlobalKey<KdGaugeViewState> key = GlobalKey<KdGaugeViewState>();
copied to clipboard
KdGaugeView(
key: key,
minSpeed: 0,
maxSpeed: 180,
speed: 70,
animate: true,
)
copied to clipboard
Update the speed of the Gauge View using this method
key.currentState.updateSpeed(120, animate: true,duration: Duration(milliseconds: 400));
copied to clipboard
Customization #
Depending on your view you may want to tweak the UI. For now you can these custom attributes



Property
Type
Description




'speed'
double
Initial speed for the Gauge


'speedTextStyle'
TextStyle
Text Style for Speed Text



Screenshots #
        
Author #


Saurabh K Sharma - GIT
I am very new to open source community. All suggestion and improvement are most welcomed.


Contributing #

Fork it (https://github.com/sorbh/kdgaugeViewflutter/fork)
Create your feature branch (git checkout -b feature/fooBar)
Commit your changes (git commit -am 'Add some fooBar')
Push to the branch (git push origin feature/fooBar)
Create a new Pull Request

License

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

Customer Reviews

There are no reviews.