new_version 0.2.0 copy "new_version: ^0.2.0" to clipboard
new_version: ^0.2.0 copied to clipboard

outdated

Check if your user has the most recent version of your Flutter app.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:new_version/new_version.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  void initState() {
    super.initState();

    // Implementation is here
    final newVersion = NewVersion(
      iOSId: 'com.google.Vespa',
      androidId: 'com.google.android.apps.cloudconsole',
    );
    newVersion.showAlertIfNecessary(context: context);
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Example App"),
      ),
    );
  }
}
611
likes
0
pub points
96%
popularity

Publisher

unverified uploader

Check if your user has the most recent version of your Flutter app.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, html, http, package_info_plus, url_launcher

More

Packages that depend on new_version