π
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| class CustomToast { | |
| static void show( | |
| BuildContext context, { | |
| required String message, | |
| Duration duration = const Duration(seconds: 2), | |
| }) { | |
| final overlay = Overlay.of(context); | |
| late OverlayEntry overlayEntry; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| /// ---------------------------- | |
| /// πΉ Spacing Extensions | |
| /// ---------------------------- | |
| extension SpaceExtension on num { | |
| SizedBox get h => SizedBox(height: toDouble()); | |
| SizedBox get w => SizedBox(width: toDouble()); | |
| } |