- Direct m.login.password auth against matrix.m8chat.au - Room list with unread badges, last message, timestamps - Chat timeline (text, images, files, replies, reactions) - Profile screen with expandable Notifications and Security sections - Olm E2EE initialisation (web WASM bootstrap) - Global error handler preventing Matrix SDK crashes - GoRouter with refreshListenable (no recreation on auth change) - Feature-first clean architecture: Riverpod + GoRouter + Drift - Deployed to https://app2.m8chat.au Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
637 B
Dart
20 lines
637 B
Dart
// Version: 1.0.0 | Created: 2026-04-01
|
|
// Call state sealed hierarchy. LiveKit integration in Phase 2.
|
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'call_state.freezed.dart';
|
|
|
|
@freezed
|
|
sealed class CallState with _$CallState {
|
|
const factory CallState.idle() = CallIdle;
|
|
const factory CallState.connecting({required String roomId}) = CallConnecting;
|
|
const factory CallState.active({
|
|
required String roomId,
|
|
required Duration duration,
|
|
@Default(false) bool isVideoEnabled,
|
|
@Default(true) bool isAudioEnabled,
|
|
}) = CallActive;
|
|
const factory CallState.ended({String? reason}) = CallEnded;
|
|
}
|