Skip to content

Commit

Permalink
Fixed README
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloAvv committed Jul 11, 2024
1 parent 73f8003 commit 33c3cb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ class DemoPage extends StatelessWidget {
body: OfflineBuilder(
connectivityBuilder: (
BuildContext context,
ConnectivityResult connectivity,
List<ConnectivityResult> connectivity,
Widget child,
) {
final bool connected = connectivity != ConnectivityResult.none;
final bool connected = !connectivity.contains(ConnectivityResult.none);
return new Stack(
fit: StackFit.expand,
children: [
Expand Down

0 comments on commit 33c3cb1

Please sign in to comment.