geekyants_flutter_gauges 0.0.3 geekyants_flutter_gauges: ^0.0.3 copied to clipboard
Here in Flutter you can use this package to plot a machinery information effortlessly.
import 'package:flutter/material.dart';
import 'package:geekyants_flutter_gauges/gauges.dart';
void main() {
runApp(const MaterialApp(home: MyGaugeExample()));
}
class MyGaugeExample extends StatefulWidget {
const MyGaugeExample({Key? key}) : super(key: key);
@override
State<MyGaugeExample> createState() => _MyGaugeExampleState();
}
class _MyGaugeExampleState extends State<MyGaugeExample> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: const [
SizedBox(
child: LinearGauge(
value: 50.0,
),
),
],
),
),
);
}
}