updatermaster 0.0.2 copy "updatermaster: ^0.0.2" to clipboard
updatermaster: ^0.0.2 copied to clipboard

A package to check the new version of the application.

UpdaterMaster #

Developed with 💙 by Hossein Valipour (Hosivay)

Version Star #

A package to check the new version of the application.

Platform Support #

Android iOS MacOS Web Linux Windows

Getting started #

Add updatermaster as a dependency in your pubspec.yaml:

dependencies:
   updatermaster: ^0.0.2

Update your packages with flutter pub get.

Usage #

Check Update with github :

You can use UpdateChecker to query information about the new version of the program from the GitHub repository.

import 'package:updatermaster/updatermaster.dart';

...

  Future<bool>? _checker;

  @override
  void initState() {
    _checker = UpdaterMaster.withGithub(
      repo: "https://github.com/username/repo",
      version: "v1.3.0" //The current version of your program 
    );
    super.initState();
  }


...

FutureBuilder(
        future: _checker,
        builder: (context, snapshot) {
        if (snapshot.data == true) {
          return const Text("new version is available");
        } else {
            return const Text("The version is updated");
        }
    },
),

6
likes
140
pub points
0%
popularity

Publisher

unverified uploader

A package to check the new version of the application.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, http

More

Packages that depend on updatermaster