Replace usage of FractionalOffset with Alignment (#12348)

Alignment will eventually replace FractionalOffset.
This commit is contained in:
Adam Barth
2017-10-02 00:06:24 -07:00
committed by GitHub
parent 2b126bcd0d
commit 0044ea2dbb
28 changed files with 62 additions and 62 deletions

View File

@@ -29,7 +29,7 @@ void main() {
)),
);
expect(find.byType(GestureDetector), findsNWidgets(2));
final Finder hitTestable = find.byType(GestureDetector).hitTestable(at: const FractionalOffset(0.5, 0.5));
final Finder hitTestable = find.byType(GestureDetector).hitTestable(at: Alignment.center);
expect(hitTestable, findsOneWidget);
expect(tester.widget(hitTestable).key, const ValueKey<int>(0));
});