mirrored_repositories/ToktikApp/lib/presentation/widgets
import 'package:flutter/material.dart';

class VideoBackground extends StatelessWidget {
  const VideoBackground(
      {super.key,
      this.colors = const [Colors.transparent, Colors.black87],
      this.stops = const [0.0, 1.0]})
      : assert(colors.length == stops.length,
            "Stops and colors must be same length ");

  final List<Color> colors;
  final List<double> stops;

  @override
  Widget build(BuildContext context) {
    return Positioned.fill(
        child: DecoratedBox(
      decoration:
          BoxDecoration(gradient: LinearGradient(colors: colors, stops: stops,begin: Alignment.topCenter,end: Alignment.bottomCenter)),
    ));
  }
}
