kishan-dhankecha / blurrycontainer

A Flutter package to create a frosted glass effect on a container.
https://pub.dev/packages/blurrycontainer
MIT License
38 stars 10 forks source link

bug #8

Open xaiocaiji7653 opened 6 months ago

xaiocaiji7653 commented 6 months ago

The following code realizes the picture sliding left and right and the background picture has Gaussian blur. How to solve the problem when the picture sliding left and right appears white lines on both sides of the picture


Code:

PageView.builder(
  itemCount: widget.works == null ? 0 : widget.works!.apPhotoEntityList!.length,
  itemBuilder: (context, index) {
    return Stack(
      children: [
        //背景图片
        Image.network(
          widget.works!.apPhotoEntityList![index].imgUrl!,
          fit: BoxFit.cover,
          width: double.infinity,
          height: double.infinity,
        ),
        Align(
          alignment: Alignment.center,
          child: Image.network(
            widget.works!.apPhotoEntityList![index].imgUrl!,
            fit: BoxFit.fitWidth,
          ),
        ).blurry(
          shadowColor: Colors.transparent,
          borderRadius: BorderRadius.zero,
          padding: EdgeInsets.zero,
          blur: 5,
          elevation: 0,
          color: Colors.transparent,
        ),
      ],
    );
  },
)

Screenshot

kishan-dhankecha commented 6 months ago

Thanks for filing this issue @xaiocaiji7653.

Can you please provide reproducible steps and code for this so I can directly start fixing relevant bugs instead of recreation the issue on my side?

yatinj30 commented 4 months ago

@xaiocaiji7653 Can you provide reproducible steps, so I can start fixing?