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

outdated

Introducing the new "odo" widget in flutter. It simulates a odometer or a speedometer style gauge in mobile application.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:circular_progress_gauge_odo/odo.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Odo Demo',
      debugShowCheckedModeBanner: false,
      home: new MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {

  @override
  _MyHomePageState createState() => new _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage>{
  double _value = 0.0;

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceEvenly,
            children: <Widget>[
              Odo(
                size: 300.0,
                inputValue: _value,
              ),
              Slider(value: _value,min: 0.0,max: 1.0, onChanged: (sliderInput){
                setState(() {
                  _value = sliderInput;
                });
              })
            ],
          )
      ),
    );
  }
}
0
likes
50
pub points
0%
popularity

Publisher

unverified uploader

Introducing the new &quot;odo&quot; widget in flutter. It simulates a odometer or a speedometer style gauge in mobile application.

Repository (GitHub)
View/report issues

License

Apache-2.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on circular_progress_gauge_odo