check_app_version 0.6.0 copy "check_app_version: ^0.6.0" to clipboard
check_app_version: ^0.6.0 copied to clipboard

outdated

The plugin verifies that the version of the installed app is the most up-to-date, if not, it invites the user to update.

example/lib/main.dart

import 'package:check_app_version/show_dialog.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Check App Version',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Check App Version'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

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

  _init() {
    ShowDialog(
            context: context,
            jsonUrl: 'https://besimsoft.com/example.json',
            updateButtonColor: Colors.blue,
            cupertinoDialog: true,
            laterButtonEnable: true)
        .checkVersion();
  }

  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(),
    );
  }
}
7
likes
70
pub points
65%
popularity

Publisher

verified publisherenzodesimone.dev

The plugin verifies that the version of the installed app is the most up-to-date, if not, it invites the user to update.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

app_installer, flutter, http, package_info_plus

More

Packages that depend on check_app_version