{"id":19426687,"url":"https://github.com/mainawycliffe/flutter_connectivity_demo","last_synced_at":"2026-05-15T20:01:40.102Z","repository":{"id":124922121,"uuid":"189478603","full_name":"mainawycliffe/flutter_connectivity_demo","owner":"mainawycliffe","description":"This a simple demos for using the Connectivity Plugin Demo.","archived":false,"fork":false,"pushed_at":"2019-05-30T20:33:41.000Z","size":26231,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-28T17:53:25.798Z","etag":null,"topics":["connectivity","flutter","flutter-plugins"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mainawycliffe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-30T20:32:58.000Z","updated_at":"2019-05-30T20:38:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"fca7689e-f5e0-4f5c-afad-5a26da22c833","html_url":"https://github.com/mainawycliffe/flutter_connectivity_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mainawycliffe/flutter_connectivity_demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainawycliffe%2Fflutter_connectivity_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainawycliffe%2Fflutter_connectivity_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainawycliffe%2Fflutter_connectivity_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainawycliffe%2Fflutter_connectivity_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mainawycliffe","download_url":"https://codeload.github.com/mainawycliffe/flutter_connectivity_demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainawycliffe%2Fflutter_connectivity_demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33077923,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connectivity","flutter","flutter-plugins"],"created_at":"2024-11-10T14:08:37.833Z","updated_at":"2026-05-15T20:01:40.085Z","avatar_url":"https://github.com/mainawycliffe.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flutter Demo - Connectivity Plugin Demo\n\n![Flutter Demo - Connectivity Plugin Demo](demo/demo.gif)\n\nThis a simple demos for using the [Connectivity Plugin Demo](https://pub.dev/packages/connectivity).\n\nThe demos taps into the `Stream\u003cConnectivityResult\u003e` provided the plugin and rebuilding the widget using the `StreamBuilder` everytime the connectivity status changes.\n\n```dart\nfinal Stream\u003cConnectivityResult\u003e subscription = Connectivity().onConnectivityChanged;\n```\n\nAnd then:\n\n```dart\nStreamBuilder(\n    stream: subscription,\n    builder: (BuildContext context, AsyncSnapshot\u003cConnectivityResult\u003e snapshot) {\n        switch (snapshot.data) {\n            case ConnectivityResult.mobile:\n            // connection on mobile\n            break;\n            case ConnectivityResult.wifi:\n            // connection on wifi\n            break;\n            default:\n            // no network connection\n        }\n    },\n)\n\n```\n\nPlease note the following:\n\n\u003e \"NB: Note that on Android, this does not guarantee connection to Internet. For instance, the app might have wifi access but it might be a VPN or a hotel WiFi with no access.\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainawycliffe%2Fflutter_connectivity_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmainawycliffe%2Fflutter_connectivity_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainawycliffe%2Fflutter_connectivity_demo/lists"}