flutter_tindercard
flutter_tindercard copied to clipboard
How to use padding?
I modify the image to text , How do it add Text padding? cardBuilder example :
cardBuilder: (context, index) => Card( margin: const EdgeInsets.only(top:1.0), child: Text('${welcomeImages[index]}'), ),
wrap the Card() widget with a Padding() widget
Padding( padding: const EdgeInsets.only(top:1.0), Card( margin: const EdgeInsets.only(top:1.0), child: Text('${welcomeImages[index]}'), ), ),
@elias97850 thanks, I'm try it
Padding( padding: const EdgeInsets.only(top:20.0), child: Card( margin: const EdgeInsets.only(top:1.0), child: Text('${welcomeImages[index]}'), ), ),