I have been trying for a while putting text inside a swiper widget on flutter, but I can't, I have been searching but all I find is just with images. this is my code
Container(
padding: EdgeInsets.only(top: 10.0 ),
color : Colors.black12,
child: Swiper(
itemWidth: _screenSize.width *0.7,
itemHeight: _screenSize.height * 0.5,
layout: SwiperLayout.STACK,
itemBuilder: (BuildContext context, int index) {
return ClipRRect(
borderRadius: BorderRadius.circular(20.0),
child: Image.network("https://colourlex.com/wp-content/uploads/2017/04/Spinel-black-painted-swatch-47400-opt.jpg",fit: BoxFit.fill),
);
},
itemCount: 3,
),
);
(Image)this is what I would like to do
Thanks
You can copy paste run full code below
You can use
Stack
to put your text on imagecode snippet
working demo
full code