Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rafaelbarbosatec/achievement_view_flutter


https://github.com/rafaelbarbosatec/achievement_view_flutter

dart flutter flutter-package

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

[![pub package](https://img.shields.io/pub/v/achievement_view.svg)](https://pub.dartlang.org/packages/achievement_view)
[![buymeacoffee](https://i.imgur.com/aV6DDA7.png)](https://www.buymeacoffee.com/rafaelbarbosa)

# AchievementView

Beautiful toast to show Achievements in your application

![Usage of the achievement_view on an android device](https://github.com/RafaelBarbosatec/achievement_view_flutter/blob/master/img/example.gif)

## 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);
}
```