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ámetro | Tipo | Descripción |
|---|---|---|
type | AdvertisementType | Tipo de anuncio a mostrar, que puede ser modal u otro tipo. |
margin | EdgeInsetsGeometry? | Margen opcional para la tarjeta del anuncio. |
rows | int | Número de filas de anuncios a mostrar. |
height | double | Altura de la tarjeta del anuncio. |
width | double? | Ancho opcional de la tarjeta del anuncio. |
Ejemplo de uso:
AdvertisingCard( type: AdvertisementType.modal, margin: EdgeInsets.all(8), rows: 1, height: 150, width: 300,),