📜  flutter to play store - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:35.253000             🧑  作者: Mango

代码示例2
import 'package:url_launcher/url_launcher.dart';

try {
  launch("market://details?id=" + appPackageName);
} on PlatformException catch(e) {
    launch("https://play.google.com/store/apps/details?id=" + appPackageName);        
} finally {
  launch("https://play.google.com/store/apps/details?id=" + appPackageName);        
}