We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1da2d7 commit 104f0efCopy full SHA for 104f0ef
1 file changed
011-network-sensitive-ui/2-final/lib/main.dart
@@ -12,7 +12,8 @@ class MyApp extends StatelessWidget {
12
@override
13
Widget build(BuildContext context) {
14
return StreamProvider<ConnectivityStatus>(
15
- builder: (context) => ConnectivityService().connectionStatusController,
+ create: (context) =>
16
+ ConnectivityService().connectionStatusController.stream,
17
child: MaterialApp(
18
title: 'Connectivity Aware UI',
19
theme: ThemeData(
0 commit comments