shell.dart 646 B

123456789101112131415161718192021222324252627282930313233343536
  1. part of 'frame_view.dart';
  2. class _VidFrameViewShell extends StatelessWidget
  3. implements VidFrameViewInterface {
  4. const _VidFrameViewShell(
  5. this.data, {
  6. Key? key,
  7. this.width,
  8. this.height,
  9. this.processors,
  10. }) : super(key: key);
  11. @override
  12. final Uint8List data;
  13. @override
  14. final double? height;
  15. @override
  16. final double? width;
  17. @override
  18. final List<VidFrameProcessor>? processors;
  19. @override
  20. Widget build(BuildContext context) {
  21. return Image.memory(
  22. data,
  23. width: width,
  24. height: height,
  25. isAntiAlias: true,
  26. fit: BoxFit.contain,
  27. gaplessPlayback: true,
  28. );
  29. }
  30. }