velopack_flutter 0.0.2 velopack_flutter: ^0.0.2 copied to clipboard
A flutter implementation of Velopack to enable easy distribution and auto-updates for flutter apps
import 'package:flutter/material.dart';
import 'package:velopack_flutter/velopack_flutter.dart';
Future<void> main() async {
await RustLib.init();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: const Text('flutter_rust_bridge quickstart')),
body: Center(
child: FutureBuilder(
future: isUpdateAvailable(url:'https://test.com') ,
builder: (context,snap) => Text(
'Update is available: ${snap.data}'),
),
),
),
);
}
}