Skip to content

Commit 4b0812b

Browse files
committed
Update README.md
1 parent 154242b commit 4b0812b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ import 'package:responsive_builder2/responsive_builder2.dart';
3838
3939
// Construct and pass in a widget builder per screen type, with sizing info
4040
ScreenTypeLayout.builder2(
41-
mobile: (BuildContext context, SizingInformation sizing) => Container(
41+
phone: (BuildContext context, SizingInformation sizing) => Container(
4242
color: sizing.isPhone ? Colors.blue : Colors.grey,
43-
child: Text('Width: \\${sizing.screenSize.width}'),
43+
child: Text('Phone, Width: \\${sizing.screenSize.width}'),
4444
),
4545
tablet: (BuildContext context, SizingInformation sizing) => Container(
4646
color: Colors.yellow,

0 commit comments

Comments
 (0)