Widget showBigImg(Widget widget, String imgUrl) { return Hero( tag: imgUrl, child: Material( color: Colors.transparent, child: InkWell( child: widget, onTap: () { AnimalPhoto.show(context, imgUrl); }, ), ), ); }
Flutter 传入图片后,点击显示大图页面
3 min read
Widget showBigImg(Widget widget, String imgUrl) { return Hero( tag: imgUrl, child: Material( color: Colors.transparent, child: InkWell( child: widget, onTap: () { AnimalPhoto.show(context, imgUrl); }, ), ), ); }