Saltearse al contenido

AdvertisingCard

El widget AdvertisingCard muestra anuncios publicitarios. Dependiendo del tipo de anuncio, puede mostrarse como un modal o en una disposición en fila.

Importación:

import 'package:togie/widgets/advertising_card.dart';

Constructor:

const AdvertisingCard({
super.key,
this.type = AdvertisementType.modal,
this.margin,
this.rows = 1,
this.height = 150,
this.width,
});

Parámetros del constructor:

ParámetroTipoDescripción
typeAdvertisementTypeTipo de anuncio a mostrar, que puede ser modal u otro tipo.
marginEdgeInsetsGeometry?Margen opcional para la tarjeta del anuncio.
rowsintNúmero de filas de anuncios a mostrar.
heightdoubleAltura de la tarjeta del anuncio.
widthdouble?Ancho opcional de la tarjeta del anuncio.

Ejemplo de uso:

AdvertisingCard(
type: AdvertisementType.modal,
margin: EdgeInsets.all(8),
rows: 1,
height: 150,
width: 300,
),