syncfusion_flutter_gauges 1.0.0-beta copy "syncfusion_flutter_gauges: ^1.0.0-beta" to clipboard
syncfusion_flutter_gauges: ^1.0.0-beta copied to clipboard

outdated

Syncfusion Flutter Gauges is a data visualization library written natively in Dart for creating beautiful, high-performance and interactive gauges.

example/main.dart

import 'package:flutter/material.dart';
import 'package:syncfusion_flutter_gauges/gauges.dart';

void main() => runApp(ChartApp());

class ChartApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Radial Gauge Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  // ignore: prefer_const_constructors_in_immutables
  MyHomePage({Key key}) : super(key: key);

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

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('Syncfusion Flutter Radial Gauge'),
        ),
        body: SfRadialGauge(
          title:GaugeTitle(text: 'Speedometer', textStyle: const TextStyle(
            fontSize: 20.0,fontWeight: FontWeight.bold)),
          axes: <RadialAxis>[
          RadialAxis(minimum: 0,maximum: 150,
          ranges: <GaugeRange>[
            GaugeRange(startValue: 0,endValue: 50,color: Colors.green,startWidth: 10,endWidth: 10),
            GaugeRange(startValue: 50,endValue: 100,color: Colors.orange,startWidth: 10,endWidth: 10),
            GaugeRange(startValue: 100,endValue: 150,color: Colors.red,startWidth: 10,endWidth: 10)],
          pointers: <GaugePointer>[NeedlePointer(value:90)],
          annotations: <GaugeAnnotation>[
            GaugeAnnotation(widget: Container(child:
            Text('90.0',style: TextStyle(fontSize: 25,fontWeight: FontWeight.bold))),
            angle: 90,positionFactor: 0.5)])])
    );
  }
}
973
likes
0
pub points
99%
popularity

Publisher

verified publishersyncfusion.com

Syncfusion Flutter Gauges is a data visualization library written natively in Dart for creating beautiful, high-performance and interactive gauges.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on syncfusion_flutter_gauges