initial
This commit is contained in:
commit
74ae93a96e
1 changed files with 94691 additions and 0 deletions
23
joplin notion extension/Web Development/Flutter/Snippets.md
Normal file
23
joplin notion extension/Web Development/Flutter/Snippets.md
Normal 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
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
```
|
||||
Loading…
Reference in a new issue