Multiple changes:

- Split up UI into several files
- Handle connection state better
- Add images
- Granular rebuilding of state dependent widgets
- Fix usage of alert dialogs
- Add some basic theming
- Add dialog for adding multiple links at once
This commit is contained in:
2024-12-18 20:12:14 +01:00
parent 540b504c2e
commit 6b82280c14
15 changed files with 719 additions and 525 deletions

View File

@@ -1,16 +1,16 @@
import 'dart:convert';
sealed class ConnectionEvent {}
sealed class PlayerConnectionEvent {}
class Connect extends ConnectionEvent {
class Connect extends PlayerConnectionEvent {
final String uri;
Connect(this.uri);
}
class Disconnect extends ConnectionEvent {}
class Disconnect extends PlayerConnectionEvent {}
class Command extends ConnectionEvent {
class Command extends PlayerConnectionEvent {
final String type;
final Map<String, dynamic> value;

View File

@@ -1,7 +1,6 @@
// TODO: handle typing and deserialization of events
import 'package:flutter/foundation.dart';
import '../state/player_state.dart';
import 'package:gergle/state/player_state.dart';
// NOTE: see DEFAULT_PROPERTY_SUBSCRIPTIONS in the websocket API source for greg-ng.