version_tracking 1.0.1+1

Flutter Android iOS

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
75
pub points
28%
popularity

Publisher

jamiewest.dev

Xamarin.Essentials VersionTracking for Flutter.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, package_info, shared_preferences

More

Packages that depend on version_tracking