Skip to content

Commit 104f0ef

Browse files
committed
update after packages update
1 parent a1da2d7 commit 104f0ef

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • 011-network-sensitive-ui/2-final/lib

011-network-sensitive-ui/2-final/lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ class MyApp extends StatelessWidget {
1212
@override
1313
Widget build(BuildContext context) {
1414
return StreamProvider<ConnectivityStatus>(
15-
builder: (context) => ConnectivityService().connectionStatusController,
15+
create: (context) =>
16+
ConnectivityService().connectionStatusController.stream,
1617
child: MaterialApp(
1718
title: 'Connectivity Aware UI',
1819
theme: ThemeData(

0 commit comments

Comments
 (0)