feat(video_recordings): updated design, improved downloading logic, updated flutter version to 3.50

This commit is contained in:
misha
2026-11-17 13:47:04 +03:00
parent 3db96a1969
commit b4e1500dd4
655 changed files with 4415 additions and 4385 deletions

View File

@@ -11,7 +11,7 @@ import 'package:eatvio_app/features/notifications/presentation/notifications_scr
import 'package:eatvio_app/features/profile/presentation/pages/profile_screen.dart';
import 'package:eatvio_app/core/locator_service.dart';
import 'package:eatvio_app/core/websockets/ws_manager.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:go_router/go_router.dart';
import 'dart:developer';

View File

@@ -151,10 +151,9 @@ class OtherRoutes {
GoRoute(
path: VideoCallRecordingPlayerScreen.path,
name: VideoCallRecordingPlayerScreen.name,
builder: (context, state) {
final recording = state.extra as VideoCallRecordingModel;
return VideoCallRecordingPlayerScreen(recording: recording);
},
builder: (context, state) => VideoCallRecordingPlayerScreen(
recording: _videoCallRecordingFromRouteExtra(state.extra),
),
),
// Finance routes
@@ -395,6 +394,17 @@ class OtherRoutes {
}
}
VideoCallRecordingModel? _videoCallRecordingFromRouteExtra(Object? extra) {
if (extra is! Map) {
return null;
}
try {
return VideoCallRecordingModel.fromJson(Map<String, dynamic>.from(extra));
} on Object {
return null;
}
}
VideoCallEntryMode _videoCallEntryModeFromRouteExtra(Object? raw) {
if (raw is VideoCallEntryMode) return raw;
if (raw == VideoCallEntryMode.incomingAccepted.name) {