feat: просмотрщик видео. Крутой.
This commit is contained in:
@@ -67,6 +67,7 @@ class BubbleContext {
|
||||
final int myId;
|
||||
final String chatType;
|
||||
final int? chatId;
|
||||
final String? chatName;
|
||||
final PhotoViewerActions? photoActions;
|
||||
final String? overrideStatus;
|
||||
final ValueListenable<int>? otherReadTime;
|
||||
@@ -87,6 +88,7 @@ class BubbleContext {
|
||||
required this.myId,
|
||||
required this.chatType,
|
||||
this.chatId,
|
||||
this.chatName,
|
||||
this.photoActions,
|
||||
this.overrideStatus,
|
||||
this.otherReadTime,
|
||||
|
||||
@@ -535,6 +535,7 @@ class PhotoBubble extends StatelessWidget {
|
||||
message: ctx.message,
|
||||
actions: ctx.photoActions,
|
||||
hero: hero,
|
||||
sourceName: ctx.chatName,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ import '../../../../core/utils/format.dart';
|
||||
import '../../../../core/utils/haptics.dart';
|
||||
import '../../../../models/attachment.dart';
|
||||
import '../../custom_notification.dart';
|
||||
import '../../video_player_screen.dart';
|
||||
import '../../photo_viewer.dart';
|
||||
import 'bubble_context.dart';
|
||||
import 'video_note_bubble.dart';
|
||||
|
||||
@@ -185,7 +185,14 @@ class VideoBubble extends StatelessWidget {
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
fullscreenDialog: true,
|
||||
builder: (_) => VideoPlayerScreen(sources: sources),
|
||||
builder: (_) => PhotoViewerScreen.video(
|
||||
attachment: video,
|
||||
initialVideoSources: sources,
|
||||
chatId: ctx.message.chatId,
|
||||
message: ctx.message,
|
||||
actions: ctx.photoActions,
|
||||
sourceName: ctx.chatName,
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user