import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:gshop/app_constants.dart';
import 'package:gshop/presentation/style/style.dart';

class BannerShimmer extends StatelessWidget {
  const BannerShimmer({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Expanded(
      child: PageView.builder(
          itemCount: 2,
          scrollDirection: Axis.horizontal,
          itemBuilder: (context, index) {
            return Padding(
              padding: EdgeInsets.symmetric(horizontal: 16.r),
              child: Container(
                decoration: BoxDecoration(
                    color: CustomStyle.shimmerBase,
                    borderRadius:
                        BorderRadius.circular(AppConstants.radiusMax.r)),
              ),
            );
          }),
    );
  }
}
