Skip to content

offlineCallback does not appear to be firing #17

@brookesia

Description

@brookesia

Hi,

This looks like a great widget, I'm just trying it out at the moment to see if it will work for my app.

It seems to be working well when going from offline to online, however, going from online to offline doesn't appear to work, in the code snippet below offlineCallback is never called, additionally the offlineBanner doesn't show when going from online to offline.

The offlineBanner does show if the app starts up when offline, it's just the change from online to offline that doesn't appear to be working

...
body: ConnectivityWidget(
        onlineCallback: () {
          print('online');
        },
        offlineCallback: () {
          print('offline');
        },
        builder: (context, isOnline) {
          return CustomPaint(
...

Any suggestions grealty received.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions