Skip to content

Commit 993c6bd

Browse files
update
1 parent fea3050 commit 993c6bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/flutter/test/widgets/page_view_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,14 +1385,14 @@ void main() {
13851385
children: <Widget>[
13861386
Builder(
13871387
builder: (BuildContext context) {
1388-
final double currentPage = controller.hasClients ? controller.page ?? -1.0 : -2.0;
1389-
return Center(child: Text(currentPage.toString()));
1388+
final String currentPage = controller.hasClients ? '${controller.page}' : 'not empty';
1389+
return Center(child: Text(currentPage));
13901390
},
13911391
),
13921392
],
13931393
),
13941394
),
13951395
));
1396-
expect(find.text('-1.0'), findsOneWidget);
1396+
expect(find.text('null'), findsOneWidget);
13971397
});
13981398
}

0 commit comments

Comments
 (0)