diff --git a/lib/main.dart b/lib/main.dart index 46e3626..3f6c3ff 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,7 +1,10 @@ import 'package:flutter/material.dart'; import 'views/radio.dart'; +import 'controller/ws.dart'; void main() { + LiveFeeder f = LiveFeeder(); + f.init(); runApp(const MyApp()); } diff --git a/lib/views/radio.dart b/lib/views/radio.dart index 97922db..76dce53 100644 --- a/lib/views/radio.dart +++ b/lib/views/radio.dart @@ -1,6 +1,6 @@ import 'package:flutter/material.dart'; -import 'lcd.dart'; -import 'keypad.dart'; +import '../../views/lcd.dart'; +import '../../views/keypad.dart'; class MainRadio extends StatefulWidget { const MainRadio({super.key, required this.title}); diff --git a/pubspec.lock b/pubspec.lock index 4c6d22a..aa3e13f 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -344,6 +344,22 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.0" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" + url: "https://pub.dev" + source: hosted + version: "0.1.6" + web_socket_channel: + dependency: "direct main" + description: + name: web_socket_channel + sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" + url: "https://pub.dev" + source: hosted + version: "3.0.1" xdg_directories: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 75aa45d..df22576 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -38,6 +38,7 @@ dependencies: google_fonts: ^6.2.1 fixnum: ^1.1.0 protobuf: ^3.1.0 + web_socket_channel: ^3.0.1 dev_dependencies: flutter_test: