Tratando de agregar un vínculo a una imagen

0

Pregunta

Necesito un poco de ayuda. He aquí lo que he hecho hasta ahora. Quiero tener un gridview diseño y agregar imágenes a los que enlace a url diferente

body: Center(
      child: Material(
        elevation: 10,
        borderRadius: BorderRadius.circular(30),
        clipBehavior: Clip.antiAliasWithSaveLayer,
        child: InkWell(
          splashColor: Colors.grey,
          onTap: () {},
          child: Container(
            decoration: BoxDecoration(
              color: Colors.transparent,
              border: Border.all(color: Colors.grey, width: 3),
              borderRadius: BorderRadius.circular(30),
            ),
            child: Ink.image(
              image: const AssetImage('images/APPvideogames2.jpg'),
              height: 200,
              width: 200,
              fit: BoxFit.cover,
            ),
          ),
        ),
      ),
    ));
gridview hyperlink image
2021-11-19 02:27:56
1

Mejor respuesta

0

Creo que se puede envolver con GestureDetector luego onTap usted es capaz de redirigir a el enlace que usted proporcione

2021-11-19 02:31:23

Como está escrito, su respuesta no está clara. Por favor editar para agregar detalles adicionales que ayudarán a otros a entender cómo esto se refiere a la pregunta. Usted puede encontrar más información sobre cómo escribir buenas respuestas en el centro de ayuda.
Community

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................