36 lines
869 B
Dart
36 lines
869 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import '../../../widgets/bottom_sheet_page_scaffold.dart';
|
|
|
|
/// Base class for video control bottom sheets providing common UI structure
|
|
class BaseVideoControlSheet extends StatelessWidget {
|
|
final String title;
|
|
final IconData icon;
|
|
final Widget child;
|
|
final Color? iconColor;
|
|
final VoidCallback? onBack;
|
|
|
|
const BaseVideoControlSheet({
|
|
super.key,
|
|
required this.title,
|
|
required this.icon,
|
|
required this.child,
|
|
this.iconColor,
|
|
this.onBack,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return BottomSheetPageScaffold(
|
|
title: title,
|
|
icon: icon,
|
|
iconColor: iconColor,
|
|
onBack: onBack,
|
|
titleStyle: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
|
|
showHeaderBorder: false,
|
|
showHeaderDivider: true,
|
|
child: child,
|
|
);
|
|
}
|
|
}
|