finishCommit

This commit is contained in:
atseirjo
2026-07-23 09:17:56 +02:00
parent 9f7ee3f356
commit c8a3cc9812
12 changed files with 822 additions and 175 deletions
+61 -30
View File
@@ -11,38 +11,69 @@ class DashboardView extends StatelessWidget {
var hCtrl = Get.find<HomeController>();
return Center(
child: Container(
margin: const EdgeInsets.all(20),
padding: const EdgeInsets.all(20),
width: 1000,
child: Wrap(
spacing: 20,
runSpacing: 20,
children: [
InkWell(
onTap: () {
hCtrl.changeView(MainView.dashboard);
},
child: Image.asset('assets/images/AskiDashboard.png',width: 450),
child: Wrap(
spacing: 20,
runSpacing: 20,
children: [
Padding(
padding: const EdgeInsets.only(right: 35.0),
child: TextField(
controller: hCtrl.dateFromToIsoController.value,
decoration: InputDecoration(
labelText: 'Input From ISO',
border: OutlineInputBorder(),
hintText: 'Enter Input From ISO',
),
),
),
Padding(
padding: const EdgeInsets.only(right: 35.0),
child: TextField(
controller: hCtrl.dateToIsoController.value,
decoration: InputDecoration(
labelText: 'Input To ISO',
border: OutlineInputBorder(),
hintText: 'Enter Input To ISO',
),
),
),
// Padding(
// padding: const EdgeInsets.only(right: 35.0),
// child: StaticLocationDropdown(
// selectedValue: hCtrl.inputSwitchBranches,
// ),
// ),
InkWell(
onTap: () {
hCtrl.changeView(MainView.dashboard);
},
child: Image.asset('assets/images/AskiDashboard.png', width: 450),
),
InkWell(
onTap: () {
hCtrl.changeView(MainView.traun);
},
child: Image.asset('assets/images/AskiTraun.png', width: 450),
),
InkWell(
onTap: () {
hCtrl.changeView(MainView.sarleinsbach);
},
child: Image.asset(
'assets/images/AskiSarleinsbach.png',
width: 450,
),
InkWell(
onTap: () {
hCtrl.changeView(MainView.traun);
},
child: Image.asset('assets/images/AskiTraun.png',width: 450),
),
InkWell(
onTap: () {
hCtrl.changeView(MainView.sarleinsbach);
},
child: Image.asset('assets/images/AskiSarleinsbach.png',width: 450),
),
InkWell(
onTap: () {
hCtrl.changeView(MainView.lannach);
},
child: Image.asset('assets/images/AskiLannach.png',width: 450),
),
],
),
),
InkWell(
onTap: () {
hCtrl.changeView(MainView.lannach);
},
child: Image.asset('assets/images/AskiLannach.png', width: 450),
),
],
),
),
);
}
+14 -5
View File
@@ -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 LannachView extends StatelessWidget {
const LannachView({super.key});
@@ -23,11 +24,19 @@ class LannachView extends StatelessWidget {
},
)
),
body: const Center(
child: Text(
"PV Lannach",
style: TextStyle(fontSize: 30),
),
body: Obx(
() => hCtrl.responseOutputLannachPV.value.dataResult?.values?.isEmpty ?? true
? const Center(
child: Text(
'Keine Daten verfügbar',
style: TextStyle(fontSize: 18),
),
)
: ComparisonBarChart(
pvData: hCtrl.responseOutputLannachPV.value,
importData: hCtrl.responseOutputLannachImport.value,
title: 'LannachPV/Import Vergleich',
),
),
);
}
+14 -5
View File
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../../controller/home_controller.dart';
import '../comparison_bar_chart.dart';
class SarleinsbachView extends StatelessWidget {
const SarleinsbachView({super.key});
@@ -24,11 +25,19 @@ class SarleinsbachView extends StatelessWidget {
},
)
),
body: const Center(
child: Text(
"PV Sarleinsbach",
style: TextStyle(fontSize: 30),
),
body: Obx(
() => hCtrl.responseOutputSarleinsbachPV.value.dataResult?.values?.isEmpty ?? true
? const Center(
child: Text(
'Keine Daten verfügbar',
style: TextStyle(fontSize: 18),
),
)
: ComparisonBarChart(
pvData: hCtrl.responseOutputSarleinsbachPV.value,
importData: hCtrl.responseOutputSarleinsbachImport.value,
title: 'SarleinsbachPV/Import Vergleich',
),
),
);
}
+8 -31
View File
@@ -11,7 +11,7 @@ class SettingsView extends StatelessWidget {
var hCtrl = Get.find<HomeController>();
return Scaffold(
appBar: AppBar(
title: const Text('Data Settings'),
title: const Text('System Settings'),
centerTitle: true,
backgroundColor: Colors.blueGrey,
foregroundColor: Colors.white,
@@ -41,43 +41,34 @@ class SettingsView extends StatelessWidget {
children: [
SizedBox(height: 10),
Text(
"Please enter User and Password",
"Please enter User and Password for Web Methodes",
style: TextStyle(fontSize: 18),
),
SizedBox(height: 10),
TextField(
controller: hCtrl.askiUserController.value,
controller: hCtrl.userWebMethodesController.value,
decoration: InputDecoration(
labelText: 'Input User',
border: OutlineInputBorder(),
hintText: 'Enter ASKI User',
hintText: 'Enter Admin User',
),
),
SizedBox(height: 10),
TextField(
controller: hCtrl.askiPasswordController.value,
controller: hCtrl.passwordWebMethodesController.value,
obscureText: true,
decoration: InputDecoration(
labelText: 'Input Password',
border: OutlineInputBorder(),
hintText: 'Enter ASKI Password',
hintText: 'Enter Admin Password',
),
),
SizedBox(height: 10),
Text(
"Please enter the URLs for the ASKI login and power data",
"Please enter the URLs for WebMethodes PV data Url",
style: TextStyle(fontSize: 18),
),
SizedBox(height: 10),
TextField(
controller: hCtrl.loginUrlController.value,
decoration: InputDecoration(
labelText: 'Login URL',
border: OutlineInputBorder(),
hintText: 'Enter ASKI Login URL',
),
),
SizedBox(height: 10),
TextField(
controller: hCtrl.powerUrlController.value,
decoration: InputDecoration(
@@ -85,21 +76,7 @@ class SettingsView extends StatelessWidget {
border: OutlineInputBorder(),
hintText: 'Enter ASKI Power URL',
),
),
SizedBox(height: 10),
Text(
"Please enter the device for PV Traun and PV Sarleinsbach and PV Lannach",
style: TextStyle(fontSize: 18),
),
SizedBox(height: 10),
TextField(
controller: hCtrl.pvTraunDeviceController.value,
decoration: InputDecoration(
labelText: 'PV Traun Device',
border: OutlineInputBorder(),
hintText: 'Enter PV Traun Device',
),
),
)
],
),
),
+14 -5
View File
@@ -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',
),
),
);
}