Skip to content

praja/achievement_view_flutter

 
 

Repository files navigation

pub package buymeacoffee

AchievementView

Beautiful toast to show Achievements in your application

Usage of the achievement_view on an android device

Usage

To use this plugin, add achieviment_view as a dependency in your pubspec.yaml file.

Example

import 'package:flutter/material.dart';
import 'package:achievement_view/achievement_view.dart';

void showAchievementView(BuildContext context){
    AchievementView(
        context,
        title: "Yeaaah!",
        subTitle: "Training completed successfully",
        //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();
  }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 36.8%
  • Dart 28.3%
  • CMake 17.3%
  • HTML 8.6%
  • Swift 2.5%
  • Objective-C 1.7%
  • Other 4.8%