Reland "Remove hack from PageView." (#141533)
Fixes https://github.com/flutter/flutter/issues/141119 Original PR: https://github.com/flutter/flutter/pull/141138 Revert: https://github.com/flutter/flutter/pull/141479 Reason for revert: https://fusion2.corp.google.com/presubmit/597877179/OCL:597877179:BASE:597883748:1705084754455:88d992fc/targets Fix: cl/599347719
This commit is contained in:
committed by
GitHub
parent
e05d0dd21f
commit
2cd448574b
@@ -49,7 +49,7 @@ void main() {
|
||||
|
||||
// Verify that page view index is also updated with same index to page indicator.
|
||||
final PageView pageView = tester.widget<PageView>(find.byType(PageView));
|
||||
expect(pageView.controller.page, 1);
|
||||
expect(pageView.controller!.page, 1);
|
||||
|
||||
// Tap backward button on page indicator area.
|
||||
await tester.tap(find.byIcon(Icons.arrow_left_rounded));
|
||||
|
||||
Reference in New Issue
Block a user