545 B
545 B
Snippets
- to have ::after like effect
Stack(
clipBehavior: Clip.none, // Important: Allow content to extend beyond the Stack's bounds
children: [
ElevatedButton(
onPressed: () { /* ... */ },
child: Text('Button Text'),
),
Positioned(
bottom: -20, // Adjust this value to control the vertical offset
left: 0,
right: 0, // For full width
child: Text(
'Text Below Button',
style: TextStyle(fontSize: 12, color: Colors.grey), // Style as needed
),
),
],
)