Flutter Product Image Carousel

mobile academy
import 'package:dewan_image_carousel/dewan_image_carousel.dart';
import 'package:ecom_app/common/extensions/string_hardcoded.dart';
import 'package:flutter/material.dart';

class ProductDetailImageCarousel extends StatelessWidget {
  final List<String> images;
  final bool isOutOfStock;

  const ProductDetailImageCarousel({
    Key? key,
    required this.images,
    required this.isOutOfStock,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return BCBRImageCarousel(
      images: images,
      boxColor: Colors.white,
      positionTextStyle: const TextStyle(color: Colors.black),
      boxFit: BoxFit.fill,
      autoPlay: true,
      dotColor: Colors.white,
      dotType: DotType.rounded,
      isOutOfStock: isOutOfStock,
      outOfStockText: "SOLD OUT".hardcoded,
      outOfStockTextStyle: const TextStyle(color: Colors.white),
    );
  }
}

GitHub Link: https://github.com/rddewan/dewan-image-carousel

Select your currency
USD United States (US) dollar