We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fea3050 commit 993c6bdCopy full SHA for 993c6bd
packages/flutter/test/widgets/page_view_test.dart
@@ -1385,14 +1385,14 @@ void main() {
1385
children: <Widget>[
1386
Builder(
1387
builder: (BuildContext context) {
1388
- final double currentPage = controller.hasClients ? controller.page ?? -1.0 : -2.0;
1389
- return Center(child: Text(currentPage.toString()));
+ final String currentPage = controller.hasClients ? '${controller.page}' : 'not empty';
+ return Center(child: Text(currentPage));
1390
},
1391
),
1392
],
1393
1394
1395
));
1396
- expect(find.text('-1.0'), findsOneWidget);
+ expect(find.text('null'), findsOneWidget);
1397
});
1398
}
0 commit comments