50 lines
1.3 KiB
Dart
50 lines
1.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
import 'package:timeago/timeago.dart' as timeago;
|
|
import '../models/post.dart';
|
|
import '../models/thread_node.dart';
|
|
import '../services/api_service.dart';
|
|
import '../theme/app_theme.dart';
|
|
import '../widgets/glassmorphic_quips_sheet.dart';
|
|
|
|
/// Glassmorphic video comments sheet with kinetic navigation
|
|
class VideoCommentsSheet extends StatefulWidget {
|
|
final String postId;
|
|
final int initialCommentCount;
|
|
final VoidCallback? onCommentPosted;
|
|
|
|
const VideoCommentsSheet({
|
|
super.key,
|
|
required this.postId,
|
|
this.initialCommentCount = 0,
|
|
this.onCommentPosted,
|
|
});
|
|
|
|
@override
|
|
State<VideoCommentsSheet> createState() => _VideoCommentsSheetState();
|
|
}
|
|
|
|
class _VideoCommentsSheetState extends State<VideoCommentsSheet> {
|
|
// This is now just a wrapper around GlassmorphicQuipsSheet
|
|
// All functionality is delegated to the glassmorphic sheet
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
}
|
|
|
|
@override
|
|
void dispose() {
|
|
super.dispose();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GlassmorphicQuipsSheet(
|
|
postId: widget.postId,
|
|
initialQuipCount: widget.initialCommentCount,
|
|
onQuipPosted: widget.onCommentPosted,
|
|
);
|
|
}
|
|
}
|