This commit is contained in:
nm1 2026-11-04 00:33:23 +05:30
commit 74ae93a96e

View file

@ -0,0 +1,23 @@
Snippets
- to have ::after like effect
```dart
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
),
),
],
)
```