chore(shorebird_code_push): Release 1.0.0, change downloadUpdate to downloadUpdateIfAvailable (#46)

* Release 1.0.0, change downloadUpdate to downloadUpdateIfAvailable

* update readme and contributing

* add dart doc

* add discord badge

* remove doc checkin

* formatting
This commit is contained in:
Bryan Oltman
2023-06-29 16:42:56 -04:00
committed by GitHub
parent b0734d9275
commit 0be41d9d85
7 changed files with 66 additions and 25 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ class _MyHomePageState extends State<MyHomePage> {
Future<void> _downloadUpdate() async {
_showDownloadingBanner();
await _shorebirdCodePush.downloadUpdate();
await _shorebirdCodePush.downloadUpdateIfAvailable();
if (!mounted) return;
ScaffoldMessenger.of(context).hideCurrentMaterialBanner();