From 33c3cb1b469b3041eba63e8a7034d7a14f5b2f4a Mon Sep 17 00:00:00 2001 From: Angelo Cassano Date: Thu, 11 Jul 2024 09:28:55 +0200 Subject: [PATCH] Fixed README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 23d11f4..553b3b9 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,10 @@ class DemoPage extends StatelessWidget { body: OfflineBuilder( connectivityBuilder: ( BuildContext context, - ConnectivityResult connectivity, + List connectivity, Widget child, ) { - final bool connected = connectivity != ConnectivityResult.none; + final bool connected = !connectivity.contains(ConnectivityResult.none); return new Stack( fit: StackFit.expand, children: [