version_tracking 1.0.1+1 copy "version_tracking: ^1.0.1+1" to clipboard
version_tracking: ^1.0.1+1 copied to clipboard

Xamarin.Essentials VersionTracking for Flutter.

VersionTracking for Flutter #

pub package

Introduction #

This is pretty much as copy/paste job from the Xamarin folks with a few adjustments to make things work for Flutter.

Documentation #

docs.microsoft.com/xamarin/essentials/version-tracking

Usage #

The Xamarin.Essentials VersionTracking requires calling Track() each time the application runs, in the Flutter version, calling the constructor from accomplishes the same thing.

void main() {
    SharedPreferences.getInstance().then((sharedPreferences) {
        PackageInfo.fromPlatform().then((packageInfo) {
            runApp(MyApp(
                versionTracking: VersionTracking.from(
                    sharedPreferences: sharedPreferences,
                    packageInfo: packageInfo
                )
            ));
        });
    });
}

class MyApp extends StatelessWidget {
    MyApp({this.versionTrackings});

    final VersionTracking versionTracking;
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
25
pub points
0%
popularity

Publisher

verified publisherjamiewest.dev

Xamarin.Essentials VersionTracking for Flutter.

Repository

License

MIT (license)

Dependencies

flutter, package_info, shared_preferences

More

Packages that depend on version_tracking