https://github.com/rafaelbarbosatec/achievement_view_flutter
https://github.com/rafaelbarbosatec/achievement_view_flutter
dart flutter flutter-package
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rafaelbarbosatec/achievement_view_flutter
- Owner: RafaelBarbosatec
- License: mit
- Created: 2019-04-23T13:53:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-18T13:14:52.000Z (over 2 years ago)
- Last Synced: 2025-04-06T07:44:30.130Z (8 months ago)
- Topics: dart, flutter, flutter-package
- Language: C++
- Homepage:
- Size: 434 KB
- Stars: 80
- Watchers: 3
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dartlang.org/packages/achievement_view)
[](https://www.buymeacoffee.com/rafaelbarbosa)
# AchievementView
Beautiful toast to show Achievements in your application

## Usage
To use this plugin, add `achieviment_view` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
### Example
``` dart
import 'package:flutter/material.dart';
import 'package:achievement_view/achievement_view.dart';
void showAchievementView(BuildContext context){
AchievementView(
title: "Yeaaah!",
subTitle: "Training completed successfully",
//content: Widget()
//onTab: _onTabAchievement,
//icon: Icon(Icons.insert_emoticon, color: Colors.white,),
//typeAnimationContent: AnimationTypeAchievement.fadeSlideToUp,
//borderRadius: 5.0,
//color: Colors.blueGrey,
//textStyleTitle: TextStyle(),
//textStyleSubTitle: TextStyle(),
//alignment: Alignment.topCenter,
//duration: Duration(seconds: 3),
//isCircle: false,
listener: (status){
print(status);
//AchievementState.opening
//AchievementState.open
//AchievementState.closing
//AchievementState.closed
}
).show(context);
}
```