flutter_in_store_app_version_checker 1.5.3 copy "flutter_in_store_app_version_checker: ^1.5.3" to clipboard
flutter_in_store_app_version_checker: ^1.5.3 copied to clipboard

A lightweight flutter plugin to check if your app is up-to-date on GooglePlay or AppStore

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter_in_store_app_version_checker/flutter_in_store_app_version_checker.dart';

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

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

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  late InStoreAppVersionChecker _tikTokChecker;
  String? tikTokValue;

  @override
  void initState() {
    super.initState();
    _tikTokChecker = InStoreAppVersionChecker(
      appId: 'com.zhiliaoapp.musically',
      androidStore: AndroidStore.apkPure,
    );

    checkVersion();
  }

  void checkVersion() async {
    Future.wait([
      _tikTokChecker
          .checkUpdate()
          .then((value) => tikTokValue = value.toString()),
    ]).then((_) => setState(() {}));
  }

  @override
  Widget build(BuildContext context) {
    return CupertinoApp(
      debugShowCheckedModeBanner: false,
      home: CupertinoPageScaffold(
        navigationBar: const CupertinoNavigationBar(
          middle: Text('In Store App Version Checker Example'),
        ),
        child: Padding(
          padding: const EdgeInsets.all(16.0),
          child: ListView(
            children: [
              const Text(
                "TikTok: (apkPure)",
                style: TextStyle(fontWeight: FontWeight.w600),
              ),
              const SizedBox(height: 10.0),
              Text(tikTokValue ?? 'Loading ...'),
            ],
          ),
        ),
      ),
    );
  }
}
6
likes
0
points
1.71k
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight flutter plugin to check if your app is up-to-date on GooglePlay or AppStore

Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

http, package_info_plus

More

Packages that depend on flutter_in_store_app_version_checker