{"id":22330642,"url":"https://github.com/rodrigobertotti/flutter_url_image_load_fail","last_synced_at":"2026-01-11T04:41:28.966Z","repository":{"id":56830472,"uuid":"172899484","full_name":"RodrigoBertotti/flutter_url_image_load_fail","owner":"RodrigoBertotti","description":"Flutter - Load a Image and depending of the state show a loading icon or error message","archived":false,"fork":false,"pushed_at":"2022-01-09T01:18:53.000Z","size":1000,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T11:26:27.204Z","etag":null,"topics":["flutter"],"latest_commit_sha":null,"homepage":"https://pub.dartlang.org/packages/flutter_url_image_load_fail","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RodrigoBertotti.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-27T11:03:50.000Z","updated_at":"2024-04-24T11:26:27.205Z","dependencies_parsed_at":"2022-09-09T17:11:27.566Z","dependency_job_id":null,"html_url":"https://github.com/RodrigoBertotti/flutter_url_image_load_fail","commit_stats":null,"previous_names":["rodrigobertotti/flutter_url_image_load_fail","wisetap/flutter_url_image_load_fail"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigoBertotti%2Fflutter_url_image_load_fail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigoBertotti%2Fflutter_url_image_load_fail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigoBertotti%2Fflutter_url_image_load_fail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RodrigoBertotti%2Fflutter_url_image_load_fail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RodrigoBertotti","download_url":"https://codeload.github.com/RodrigoBertotti/flutter_url_image_load_fail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228041290,"owners_count":17860221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["flutter"],"created_at":"2024-12-04T04:07:26.827Z","updated_at":"2026-01-11T04:41:28.877Z","avatar_url":"https://github.com/RodrigoBertotti.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_url_image_load_fail\n\nFlutter Widget that allows load images from an URL and define the Widgets that will be shown on loading, loaded with success and failed to load states\n\n## Getting Started\n\n![Alt Text](example/example.gif)\n\nAdd the dependency on pubspec.yaml\n```yaml\ndependencies:\n  flutter_url_image_load_fail: ^1.0.0\n```\n\nImport the Widget\n```dart\nimport 'package:flutter_url_image_load_fail/flutter_url_image_load_fail.dart';\n```\n\nInstantiate the LoadImageFromUrl Widget and use it\n```dart\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        title: Text('flutter_url_image_load_fail example'),\n      ),\n      body: Center(\n        child: LoadImageFromUrl(\n          imageUrl: 'https://upload.wikimedia.org/wikipedia/commons/1/17/Google-flutter-logo.png', //Image URL to load\n          buildSuccessWidget:  (image) =\u003e image,\n          buildLoadingWidget:  () =\u003e Text('Loading...'),\n          buildFailedWidget: (retryLoadImage, code, message){\n              return ElevatedButton(\n                child: Text('Try Again'),\n                onPressed: (){\n                  retryLoadImage();\n                },\n              );\n            },\n            requestTimeout: Duration(seconds: 5) //Optionally set the timeout\n        ),\n      ),\n    );\n  }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigobertotti%2Fflutter_url_image_load_fail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodrigobertotti%2Fflutter_url_image_load_fail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodrigobertotti%2Fflutter_url_image_load_fail/lists"}