https://github.com/amdkholil/tiny-alert
Flutter Package: Simple & tiny size alert dialog
https://github.com/amdkholil/tiny-alert
dart dart-package dart-packages flutter flutter-package flutter-packages
Last synced: about 1 month ago
JSON representation
Flutter Package: Simple & tiny size alert dialog
- Host: GitHub
- URL: https://github.com/amdkholil/tiny-alert
- Owner: amdkholil
- License: mit
- Created: 2023-11-09T07:38:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T02:13:45.000Z (over 2 years ago)
- Last Synced: 2025-10-23T01:32:44.522Z (9 months ago)
- Topics: dart, dart-package, dart-packages, flutter, flutter-package, flutter-packages
- Language: Dart
- Homepage: https://pub.dev/packages/tiny_alert
- Size: 7.26 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# tiny_alert (flutter package)
Just simple alert in tiny size for simple UI.

## Getting Started
add dependency latest version with command:
```command
$ flutter pub add tiny_alert
```
or just adding to `pubspec.yaml`
```yaml
dependecies:
tiny_alert:
```
and then run bellow command to get packages:
```comand
$ flutter pub get
```
## Examples
- ### Success
```dart
TinyAlert.success(
context,
title: "Success!",
message: "This is a success message!",
);
```
- ### Info
```dart
TinyAlert.info(
context,
title: "Info!",
message: "This is a info message!",
);
```
- ### Warning
```dart
TinyAlert.warning(
context,
title: "Warning!",
message: "This is a warning message!",
);
```
- ### Error
```dart
TinyAlert.error(
context,
title: "Error!",
message: "This is a error message!",
);
```
- ### Confirmation
```dart
TinyAlert.confirm(
context,
title: "Confrimation!",
message: "This is a confirmation message!",
onConfirm: () {
Navigator.pop(context);
},
);
// also available onCancale function
```
- ### Loading
```dart
TinyAlert.progress(context,
label: "Loading...",
barrierDismissible: true,
); // barrierDismissible is optional, the default is false
```
- ### Snackbar
```dart
TinyAlert.snackbar(
context,
"This is snackbar message!",
);
```
> There are several features that the author cannot write in this documentation due to the author's limitations.