diff --git a/lib/widgets/sync_button.dart b/lib/widgets/sync_button.dart index 61137d47..34147da6 100644 --- a/lib/widgets/sync_button.dart +++ b/lib/widgets/sync_button.dart @@ -40,7 +40,7 @@ class _SyncButtonState extends State { @override Widget build(BuildContext context) { - final repo = Provider.of(context); + final repo = Provider.of(context); if (_connectivity == ConnectivityResult.none) { return GitPendingChangesBadge( @@ -97,7 +97,7 @@ class _SyncButtonState extends State { void _syncRepo() async { try { - final repo = Provider.of(context, listen: false); + final repo = Provider.of(context, listen: false); await repo.syncNotes(); } on GitException catch (e) { showSnackbar(context, tr('widgets.SyncButton.error', args: [e.cause])); @@ -107,7 +107,7 @@ class _SyncButtonState extends State { } IconData _syncStatusIcon() { - final repo = Provider.of(context); + final repo = Provider.of(context); switch (repo.syncStatus) { case SyncStatus.Error: return Icons.cloud_off; @@ -181,7 +181,7 @@ class GitPendingChangesBadge extends StatelessWidget { color: darkMode ? Colors.black : Colors.white, ); - final repo = Provider.of(context); + final repo = Provider.of(context); return Badge( badgeContent: Text(repo.numChanges.toString(), style: style),