v1.0.4simple_update_dialog
一个简单的包,用于显示平台特定的对话框,以促进用户更新应用。
4喜欢 27近 30 天下载160Pub 分数
AndroidiOSmacOSWindowsLinux
SoSerious194/simple_update_dialog open-source repository details.
以下为英文项目原文快照,最新内容请访问 GitHub。
A simple package for showing a paltform-specific dialog to promote users to update the app.
To use this plugin, add simple_update_dialog as a dependency in your pubspec.yaml file.
import 'package:flutter/material.dart';
import 'package:simple_update_dialog/simple_update_dialog.dart';
class HomePage extends StatelessWidget {
const HomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: ElevatedButton(
onPressed: () {
SimpleUpdateDialog.showUpdateDialog(
context: context,
isForceUpdate: false,
dialogConfig: DialogConfig(
appStoreUrl: '',
playStoreUrl: '',
currentVersion: '1.0.0',
latestAndroidVersion: '1.0.1',
latestIOSVersion: '1.0.1',
minAndroidAppVerAllowed: '1.0.0',
minIOSAppVerAllowed: '1.0.0',
),
);
},
child: const Text("Show Update Dialog"),
),
),
);
}
}
See the example app for better understanding.
依赖清单 4 项
{"sdk":"flutter"}^6.2.4^2.0.0{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗