Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Widget> w = [];
- //Prima era così
- //w = widget.product.images.map(.....) con un return di GestureDetector e non un w.add()
- widget.product.images.map(
- (item) {
- Widget z = GestureDetector(
- child: Padding(
- padding: const EdgeInsets.all(8.0),
- child: Column(
- children: [
- Stack(
- children: [
- ImageNetwork(src: item.src),
- Positioned(
- child: wElevatedButton(
- onPressed: () {}, icon: Icons.delete),
- bottom: 10,
- right: 10,
- ),
- Positioned(
- child: Text("Id: ${item.iid}"),
- bottom: 10,
- ),
- ],
- ),
- ],
- ),
- ),
- onTap: () {
- index = widget.product.images.indexOf(item);
- Navigator.push(
- context,
- PageTransition(
- type: PageTransitionType.rightToLeftWithFade,
- alignment: Alignment.bottomCenter,
- child: Slideshow(images: widget.product.images, page: index),
- ),
- );
- });
- w.add(z);
- },
- ).toList();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement