StoryRecupCardOne constructor
StoryRecupCardOne()
Implementation
StoryRecupCardOne()
: super(
name: 'Card/RecupCardOne',
builder: (context) {
const foto =
"https://images.unsplash.com/photo-1658459239113-39cc85f15154?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1374&q=80";
return RecupCardOne(
backgroundImage: foto,
iconButton: const Icon(Icons.add_moderator),
titulo: context.knobs.text(
label: 'titulo',
initial: 'Bon d’achat 5€ sur toute le magasin',
),
subtitulo: context.knobs.text(
label: 'subtitulo',
initial: 'Galeries Lafayette Rouen',
),
isSmallCard: context.knobs.boolean(
label: 'isSmallCard',
initial: true,
description: 'Indica se o card é pequeno ou grande',
),
widgetTitle: Row(
children: const [
Text('3 flacons'),
Icon(Icons.add),
],
),
child: RecupStatus(
child: Text('0,03KM'),
),
);
},
);