indzooomspeedgauge 0.0.1 copy "indzooomspeedgauge: ^0.0.1" to clipboard
indzooomspeedgauge: ^0.0.1 copied to clipboard

Simple widget that let Flutter Devs can easily integrate speedgauge to their apps with customizable options

example/lib/main.dart

import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:indzooomspeedgauge/indzooomspeedgauge.dart';

void main() {
  runApp(
    Center(
      child: Directionality(
        textDirection: TextDirection.ltr,
        child: Container(
          child: Flex(
            direction: Axis.vertical,
            children: <Widget>[
              Spacer(),
              IndzoomSpeedGauge(
                size: 100,
                minValue: -10,
                maxValue: 50,
                currentValue: 30,
                warningValue: 40,
                backgroundColor: Colors.black,
                meterColor: Colors.lightBlueAccent,
                warningColor: Colors.orange,
                kimColor: Colors.purpleAccent,
                displayNumericStyle: TextStyle(
                    fontFamily: 'Digital-Display',
                    color: Colors.white,
                    fontSize: 18),
                displayText: '°C',
                displayTextStyle: TextStyle(color: Colors.white, fontSize: 8),
              ),
              Spacer(),
              IndzoomSpeedGauge(
	              shaddowColor: Colors.black,
	              shaddowOpacity: 0.3,
	              centerKimColor: Colors.white,
                size: 300,
                minValue: 0,
                maxValue: 180,
                currentValue: 58,
                warningValue: 90,
                backgroundColor: Colors.black,
                meterColor: Colors.green,
                warningColor: Colors.orange,
                kimColor: Colors.white,
                displayNumericStyle: TextStyle(
                    fontFamily: 'Digital-Display',
                    color: Colors.white,
                    fontSize: 40),
                displayText: 'km/h',
                displayTextStyle: TextStyle(color: Colors.white, fontSize: 15),
              ),
              Spacer(),
              IndzoomSpeedGauge(),
              Spacer(),
            ],
          ),
        ),
      ),
    ),
  );
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Simple widget that let Flutter Devs can easily integrate speedgauge to their apps with customizable options

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on indzooomspeedgauge