finishCommit
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import '../../controller/home_controller.dart';
|
||||
import '../comparison_bar_chart.dart';
|
||||
|
||||
class TraunView extends StatelessWidget {
|
||||
const TraunView({super.key});
|
||||
@@ -23,11 +24,19 @@ class TraunView extends StatelessWidget {
|
||||
},
|
||||
)
|
||||
),
|
||||
body: const Center(
|
||||
child: Text(
|
||||
"PV Traun",
|
||||
style: TextStyle(fontSize: 30),
|
||||
),
|
||||
body: Obx(
|
||||
() => hCtrl.responseOutputTraunPV.value.dataResult?.values?.isEmpty ?? true
|
||||
? const Center(
|
||||
child: Text(
|
||||
'Keine Daten verfügbar',
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
)
|
||||
: ComparisonBarChart(
|
||||
pvData: hCtrl.responseOutputTraunPV.value,
|
||||
importData: hCtrl.responseOutputTraunImport.value,
|
||||
title: 'TraunPV/Import Vergleich',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user