auto_updater 1.0.0 copy "auto_updater: ^1.0.0" to clipboard
auto_updater: ^1.0.0 copied to clipboard

This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle).

example/lib/main.dart

import 'package:auto_updater_example/pages/home.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:window_manager/window_manager.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await windowManager.ensureInitialized();

  windowManager.waitUntilReadyToShow(null, () async {
    await windowManager.setPreventClose(true);
    await windowManager.show();
    await windowManager.focus();
  });

  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        primaryColor: const Color(0xff416ff4),
        canvasColor: Colors.white,
        scaffoldBackgroundColor: const Color(0xffF7F9FB),
        dividerColor: Colors.grey.withOpacity(0.3),
      ),
      builder: BotToastInit(),
      navigatorObservers: [BotToastNavigatorObserver()],
      home: const HomePage(),
    );
  }
}
162
likes
150
pub points
93%
popularity

Publisher

verified publisherleanflutter.dev

This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle).

Repository (GitHub)
View/report issues

Topics

#auto-updater

Documentation

API reference

License

MIT (license)

Dependencies

auto_updater_macos, auto_updater_platform_interface, auto_updater_windows, flutter, json_annotation, path

More

Packages that depend on auto_updater