universal_app 0.1.0 copy "universal_app: ^0.1.0" to clipboard
universal_app: ^0.1.0 copied to clipboard

A utility to open app store links across platforms.

example/main.dart

// 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();
}
3
likes
160
points
14
downloads

Publisher

verified publishernorbertcsorgo.me

Weekly Downloads

A utility to open app store links across platforms.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause, MIT (license)

Dependencies

flutter, url_launcher

More

Packages that depend on universal_app