v1.0.1
achievement_view
以简单的方式在您的应用程序中显示成就的精美提示
108喜欢 249近 30 天下载150Pub 分数
AndroidiOSWebmacOSWindowsLinux
RafaelBarbosatec/achievement_view_flutter open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
Beautiful toast to show Achievements in your application
To use this plugin, add achieviment_view as a dependency in your pubspec.yaml file.
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);
}
依赖清单 3 项
{"sdk":"flutter"}^2.0.0{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗