diff --git a/lib/pages/after_setup_pages/userspace_page.dart b/lib/pages/after_setup_pages/userspace_page.dart index 13e4191..80ec0a4 100644 --- a/lib/pages/after_setup_pages/userspace_page.dart +++ b/lib/pages/after_setup_pages/userspace_page.dart @@ -174,8 +174,7 @@ class _UserspacePageState extends State { return Scaffold( // appBar: getAppBar("UserSpace"), appBar: getAppBarUserSpace("Userspace", context), - body: - MasonryGridView.count( + body: MasonryGridView.count( crossAxisCount: columns, mainAxisSpacing: 4, crossAxisSpacing: 4, diff --git a/lib/widgets/userspace_widgets/ic_blc.dart b/lib/widgets/userspace_widgets/ic_blc.dart index 71e92a6..ecb7838 100644 --- a/lib/widgets/userspace_widgets/ic_blc.dart +++ b/lib/widgets/userspace_widgets/ic_blc.dart @@ -336,6 +336,8 @@ class _IcBlcState extends State { "enable": {"value": target} }; + print(target); + // Convert JSON object to string String jsonString = jsonEncode(data); diff --git a/lib/widgets/userspace_widgets/ic_bpc.dart b/lib/widgets/userspace_widgets/ic_bpc.dart index c145908..edffa83 100644 --- a/lib/widgets/userspace_widgets/ic_bpc.dart +++ b/lib/widgets/userspace_widgets/ic_bpc.dart @@ -293,7 +293,7 @@ class _IcBpcState extends State { max: _voltageMax ), Text( - 'Current : ${double.parse(_currentValueReq!.toStringAsFixed(_currentDecimal))}V', + 'Current : ${double.parse(_currentValueReq!.toStringAsFixed(_currentDecimal))}A', style: TextStyle( color: black ), diff --git a/lib/widgets/userspace_widgets/templates.dart b/lib/widgets/userspace_widgets/templates.dart index 928fe44..f2cdd31 100644 --- a/lib/widgets/userspace_widgets/templates.dart +++ b/lib/widgets/userspace_widgets/templates.dart @@ -4,9 +4,9 @@ import 'package:panduza_sandbox_flutter/utils/utils_objects/interface_connection Widget cardHeadLine(InterfaceConnection ic) { return ListTile( - title: Text(ic.getType()), + title: Text(ic.getDeviceName()), subtitle: Row(children: [ - Text(ic.getDeviceName(), + Text(ic.getType(), style: const TextStyle( color: Color.fromARGB(255, 0, 9, 27), fontSize: 12)), const Text(" ",