Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ approved!)_:
| https://randomuser.me/api/?inc=gender | CORS enabled, no-cache |
| https://dog.ceo/api/breed/husky/list | CORS enabled, no-cache |
| https://lenta.ru | Russia supported, CORS enabled, no-cache |
| https://www.gazeta.ru | Russia supported, CORS enabled, no-cache |

_Feel free to use your own trusted endpoints! We don't judge your API choices._
🎯
Expand Down
4 changes: 3 additions & 1 deletion example/lib/pages/custom_uris.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ class _CustomURIsState extends State<CustomURIs> {
super.initState();
_subscription = InternetConnection.createInstance(
customCheckOptions: [
InternetCheckOption(
uri: Uri.parse('https://cloudflare.com/cdn-cgi/trace'),
),
InternetCheckOption(uri: Uri.parse('https://ipapi.co/ip')),
InternetCheckOption(
uri: Uri.parse('https://api.adviceslip.com/advice'),
Expand All @@ -40,7 +43,6 @@ class _CustomURIsState extends State<CustomURIs> {
uri: Uri.parse('https://dog.ceo/api/breed/husky/list'),
),
InternetCheckOption(uri: Uri.parse('https://lenta.ru')),
InternetCheckOption(uri: Uri.parse('https://www.gazeta.ru')),
],
useDefaultOptions: false,
).onStatusChange.listen((status) {
Expand Down