How to check if there is an update in Android OS using Flutter

Viewed 26

I want to check if there is a software update in Android OS from Flutter side. Is there any package that helps me to do that?

Thanks for responses.

1 Answers

Yes you can use upgrader for this

enter image description here

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Upgrader Example',
      home: Scaffold(
          appBar: AppBar(title: Text('Upgrader Example')),
          body: UpgradeAlert(
            child: Center(child: Text('Checking...')),
          )),
    );
  }
}
Related