universal_app 0.1.0
universal_app: ^0.1.0 copied to clipboard
A utility to open app store links across platforms.
// ignore_for_file: avoid_print
import 'package:universal_app/universal_app.dart';
Future<void> openStore() async {
final needForSpeedNoLimits = UniversalApp(
appleAppId: '883393043',
appleAppCountry: 'us',
androidPackageName: 'com.ea.game.nfs14_row',
fallbackFunction: (appStore, playStore, _ /* Huawei App if configured */, _ /* Microsoft Store if configured */) {
print('App Store URI: ${appStore!.storeLink}');
print('Play Store URI: ${playStore!.storeLink}');
return null;
},
);
await needForSpeedNoLimits.open();
}