Skip to content

Commit

Permalink
More work on architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
guyluz11 committed Dec 10, 2023
1 parent 5294bd0 commit 068d922
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class _PrinterWidgetState extends State<PrinterWidget> {
).show(context);

final String printerIp =
widget._deviceEntity.deviceLastKnownIp.getOrCrash();
widget._deviceEntity.deviceLastKnownIp.getOrCrash()!;
launchUrl(
Uri.parse('http://$printerIp'),
mode: LaunchMode.externalApplication,
Expand Down
6 changes: 6 additions & 0 deletions lib/presentation/pages/devices_in_network_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ class _DevicesInNetworkPageState extends State<DevicesInNetworkPage> {
TextAtom(
', Mac: ${device.devicesMacAddress.getOrCrash()}',
),
TextAtom(
', Srv: ${device.srvResourceRecord.getOrCrash()}',
),
TextAtom(
', Ptr: ${device.ptrResourceRecord.getOrCrash()}',
),
],
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class SecurityCamerasInTheRoomBlock extends StatelessWidget {
context.router.push(
VideoStreamOutputContainerRoute(
streamAddress:
securityCamerasInRoom.first.deviceLastKnownIp.getOrCrash(),
securityCamerasInRoom.first.deviceLastKnownIp.getOrCrash()!,
),
);
},
Expand Down

0 comments on commit 068d922

Please sign in to comment.