Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to put a A for current value instead a V #80

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/pages/after_setup_pages/userspace_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ class _UserspacePageState extends State<UserspacePage> {
return Scaffold(
// appBar: getAppBar("UserSpace"),
appBar: getAppBarUserSpace("Userspace", context),
body:
MasonryGridView.count(
body: MasonryGridView.count(
crossAxisCount: columns,
mainAxisSpacing: 4,
crossAxisSpacing: 4,
Expand Down
2 changes: 2 additions & 0 deletions lib/widgets/userspace_widgets/ic_blc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ class _IcBlcState extends State<IcBlc> {
"enable": {"value": target}
};

print(target);

// Convert JSON object to string
String jsonString = jsonEncode(data);

Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/userspace_widgets/ic_bpc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class _IcBpcState extends State<IcBpc> {
max: _voltageMax
),
Text(
'Current : ${double.parse(_currentValueReq!.toStringAsFixed(_currentDecimal))}V',
'Current : ${double.parse(_currentValueReq!.toStringAsFixed(_currentDecimal))}A',
style: TextStyle(
color: black
),
Expand Down
4 changes: 2 additions & 2 deletions lib/widgets/userspace_widgets/templates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(" ",
Expand Down