Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/flutter/lib/src/client_offline_mixin.dart.twig
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class ClientOfflineMixin {

Future<void> checkOnlineStatus() async {
try {
final url = Uri.parse('{{spec.endpoint}}/version');
final url = Uri.parse('{{sdk.url}}/version');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but there is this /version ? will this work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

await http.head(url).timeout(Duration(seconds: 1));
isOnline.value = true;
} catch (_) {
Expand Down