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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user