Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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.

About

Xamarin.Essentials VersionTracking for Flutter

Topics

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.