Skip to content

Commit

Permalink
Mark leak in _DraggableScrollableSheetState. (#133693)
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c authored Aug 31, 2023
1 parent 2bc4c7a commit be3e64a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/flutter/test/material/about_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ void main() {
expect(tester.getCenter(find.byType(ListView)), const Offset(160, 356));
});

testWidgets('Material3 - LicensePage master view layout position - ltr', (WidgetTester tester) async {
testWidgetsWithLeakTracking('Material3 - LicensePage master view layout position - ltr', (WidgetTester tester) async {
const TextDirection textDirection = TextDirection.ltr;
const Size defaultSize = Size(800.0, 600.0);
const Size wideSize = Size(1200.0, 600.0);
Expand Down Expand Up @@ -1590,7 +1590,12 @@ void main() {
expect(titleOffset, const Offset(292.0, 136.0));
expect(titleOffset.dx, lessThan(wideSize.width - 320)); // Default master view width is 320.0.
expect(tester.getCenter(find.byType(ListView)), const Offset(160, 356));
});
},
leakTrackingTestConfig: const LeakTrackingTestConfig(
// TODO(polina-c): remove after fixing
// https://github.com/flutter/flutter/issues/133705
notDisposedAllowList: <String, int?> {'ValueNotifier<double>':5},
));

testWidgets('Material2 - LicensePage master view layout position - rtl', (WidgetTester tester) async {
const TextDirection textDirection = TextDirection.rtl;
Expand Down

0 comments on commit be3e64a

Please sign in to comment.