mirrored_repositories/spot_hub/lib/screens/UserLogin/chat
import 'package:card_swiper/card_swiper.dart';
import 'package:flutter/material.dart';
import 'package:spot_hub/configurations/AppColors.dart';
import 'package:spot_hub/configurations/BigText.dart';
import 'package:spot_hub/screens/UserLogin/chat/spot_flicks/content_screen.dart';

class SpotFlicks extends StatelessWidget {
  final List<String> videos = [
    // 'https://assets.mixkit.co/videos/preview/mixkit-taking-photos-from-different-angles-of-a-model-34421-large.mp4',
    // 'https://assets.mixkit.co/videos/preview/mixkit-young-mother-with-her-little-daughter-decorating-a-christmas-tree-39745-large.mp4',
    // 'https://assets.mixkit.co/videos/preview/mixkit-mother-with-her-little-daughter-eating-a-marshmallow-in-nature-39764-large.mp4',
    // 'https://assets.mixkit.co/videos/preview/mixkit-girl-in-neon-sign-1232-large.mp4',
    // 'https://assets.mixkit.co/videos/preview/mixkit-winter-fashion-cold-looking-woman-concept-video-39874-large.mp4',
    // 'https://assets.mixkit.co/videos/preview/mixkit-womans-feet-splashing-in-the-pool-1261-large.mp4',
    // 'https://assets.mixkit.co/videos/preview/mixkit-a-girl-blowing-a-bubble-gum-at-an-amusement-park-1226-large.mp4',

    "https://assets.mixkit.co/videos/preview/mixkit-shrimp-burger-on-a-plate-3551-large.mp4",
    "https://assets.mixkit.co/videos/preview/mixkit-placing-a-plate-of-spaghetti-bolognese-on-a-table-12166-large.mp4",
    "https://assets.mixkit.co/videos/preview/mixkit-burger-with-black-sesame-3553-large.mp4",
    "https://assets.mixkit.co/videos/preview/mixkit-young-man-watching-television-while-eating-26099-large.mp4",
    "https://assets.mixkit.co/videos/preview/mixkit-burgers-on-plates-on-a-table-3552-large.mp4",

    // 'assets/images/FoodReel2020.mp4',
    // 'https://www.videvo.net/video/cooking-breakfast-in-the-outdoors/5785/',
    // 'https://www.youtube.com/shorts/emIfC4zw-Rc',
    // 'https://www.youtube.com/shorts/q5SH4F3U2NU',
    // 'https://www.youtube.com/shorts/Ln7dLmfby6w'
  ];
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
          backgroundColor: AppColors.PrimaryColor,
          title: BigText(
            text: "Spot Flicks",
            color: Colors.white,
          )),
      body: SafeArea(
        child: Container(
          child: Stack(
            children: [
              //We need swiper for every content
              Swiper(
                itemBuilder: (BuildContext context, int index) {
                  return ContentScreen(
                    src: videos[index],
                  );
                },
                itemCount: videos.length,
                scrollDirection: Axis.vertical,
              ),
              // Padding(
              //   padding: const EdgeInsets.all(8.0),
              //   child: Row(
              //     mainAxisAlignment: MainAxisAlignment.spaceBetween,
              //     children: [
              //       Text(
              //         'Flutter Shorts',
              //         style: TextStyle(
              //           fontSize: 22,
              //           fontWeight: FontWeight.w600,
              //         ),
              //       ),
              //       Icon(Icons.camera_alt),
              //     ],
              //   ),
              // ),
            ],
          ),
        ),
      ),
    );
  }
}
