Skip to content

Commit

Permalink
Merge pull request #245 from getBoolean/feature/pagination
Browse files Browse the repository at this point in the history
Fix Connectivity Warning on Web
  • Loading branch information
getBoolean authored Apr 13, 2024
2 parents c9429ff + e4a3fcf commit a310baf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ConnectivityBuilder extends StatefulWidget {
}

class _ConnectivityBuilderState extends State<ConnectivityBuilder> {
List<ConnectivityResult> _connectivityResults = [];
List<ConnectivityResult> _connectivityResults = [ConnectivityResult.wifi];
late final StreamSubscription<List<ConnectivityResult>>
_connectivitySubscription;
final _connectivity = Connectivity();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class OfflineWarningBanner extends ConsumerWidget {
return ConnectivityBuilder(
builder: (context, connectivity, child) =>
connectivity.contains(ConnectivityResult.none)
? const SizedBox.shrink()
: child ?? const SizedBox.shrink(),
? child ?? const SizedBox.shrink()
: const SizedBox.shrink(),
child: ColoredBox(
color: theme.colorScheme.onError,
child: Padding(
Expand Down

0 comments on commit a310baf

Please sign in to comment.