51 lines
1.6 KiB
Dart
51 lines
1.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:syncfusion_flutter_charts/charts.dart';
|
|
|
|
class HomePageContent extends StatelessWidget {
|
|
const HomePageContent({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text("Aktuelle Messung", style: TextStyle(fontSize: 20)),
|
|
RotatedBox(
|
|
quarterTurns: 2,
|
|
child: SfCircularChart(
|
|
series: <CircularSeries<(String, int, Color?), String>>[
|
|
RadialBarSeries<(String, int, Color?), String>(
|
|
dataSource: [
|
|
("DIA", 80, Color(0xFF8ED973)),
|
|
("SYS", 120, null),
|
|
],
|
|
xValueMapper: (e, _) => e.$1,
|
|
yValueMapper: (e, _) => e.$2,
|
|
pointColorMapper: (e, _) => e.$3,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
Row(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
Text("SYS 120", style: TextStyle(color: Color(0xFF030070))),
|
|
SizedBox(width: 8),
|
|
Text("-"),
|
|
SizedBox(width: 8),
|
|
Text("DIA 80", style: TextStyle(color: Color(0xFF8ED973))),
|
|
],
|
|
),
|
|
SizedBox(height: 24),
|
|
FilledButton(onPressed: () {
|
|
ScaffoldMessenger.of(context).showSnackBar(
|
|
SnackBar(
|
|
content: Text(
|
|
"Neue Messung wurde gestartet",
|
|
),
|
|
),
|
|
);}, child: Text("Neue Messung starten")),
|
|
],
|
|
);
|
|
}
|
|
}
|