From 7887ab9999b384e567cb8c19d38c13057d127573 Mon Sep 17 00:00:00 2001 From: uvok Date: Thu, 31 Jul 2025 18:14:54 +0200 Subject: ValueNotifier, remove manual back button --- lib/model/connection/device_connection.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/model/connection/device_connection.dart') diff --git a/lib/model/connection/device_connection.dart b/lib/model/connection/device_connection.dart index 5c810f0..baeaa9f 100644 --- a/lib/model/connection/device_connection.dart +++ b/lib/model/connection/device_connection.dart @@ -13,12 +13,14 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +import 'package:flutter/foundation.dart'; + enum ConnectionStatus { disconnected, connected, error } abstract class DeviceConnection { Future connect(); Future disconnect(); - ConnectionStatus get status; + ValueNotifier get status; // Future read(String endpoint); // Future write(String endpoint, Uint8List data); -- cgit v1.2.3