diff options
author | uvok | 2025-07-31 18:14:54 +0200 |
---|---|---|
committer | uvok | 2025-07-31 18:14:54 +0200 |
commit | 7887ab9999b384e567cb8c19d38c13057d127573 (patch) | |
tree | 9a7b6bf04d2f9b5cc2d26e496ff6af659fb87db3 /lib/model/connection/device_connection.dart | |
parent | 32f6e089c79ba1c3a9d5ee438999dc4b8f784871 (diff) |
ValueNotifier, remove manual back button
Diffstat (limited to 'lib/model/connection/device_connection.dart')
-rw-r--r-- | lib/model/connection/device_connection.dart | 4 |
1 files changed, 3 insertions, 1 deletions
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 <https://www.gnu.org/licenses/>. +import 'package:flutter/foundation.dart'; + enum ConnectionStatus { disconnected, connected, error } abstract class DeviceConnection { Future<void> connect(); Future<void> disconnect(); - ConnectionStatus get status; + ValueNotifier<ConnectionStatus> get status; // Future<Uint8List> read(String endpoint); // Future<void> write(String endpoint, Uint8List data); |