|
9 | 9 |
|
10 | 10 | import 'package:flutter/material.dart'; |
11 | 11 | import 'package:flutter_test/flutter_test.dart'; |
| 12 | +import 'package:leak_tracker_flutter_testing/leak_tracker_flutter_testing.dart'; |
12 | 13 |
|
13 | 14 | void main() { |
14 | 15 | tearDown(() { |
@@ -160,7 +161,7 @@ void main() { |
160 | 161 | expect(const BoxShadow(blurRadius: 4.0, blurStyle: BlurStyle.solid).toString(), equals('BoxShadow(Color(0xff000000), Offset(0.0, 0.0), 4.0, 0.0, BlurStyle.solid)')); |
161 | 162 | }); |
162 | 163 |
|
163 | | - testWidgets('BoxShadow BoxStyle.solid', (WidgetTester tester) async { |
| 164 | + testWidgetsWithLeakTracking('BoxShadow BoxStyle.solid', (WidgetTester tester) async { |
164 | 165 | final Key key = UniqueKey(); |
165 | 166 | debugDisableShadows = false; |
166 | 167 | await tester.pumpWidget( |
@@ -192,7 +193,7 @@ void main() { |
192 | 193 | debugDisableShadows = true; |
193 | 194 | }); |
194 | 195 |
|
195 | | - testWidgets('BoxShadow BoxStyle.outer', (WidgetTester tester) async { |
| 196 | + testWidgetsWithLeakTracking('BoxShadow BoxStyle.outer', (WidgetTester tester) async { |
196 | 197 | final Key key = UniqueKey(); |
197 | 198 | debugDisableShadows = false; |
198 | 199 | await tester.pumpWidget( |
@@ -224,7 +225,7 @@ void main() { |
224 | 225 | debugDisableShadows = true; |
225 | 226 | }); |
226 | 227 |
|
227 | | - testWidgets('BoxShadow BoxStyle.inner', (WidgetTester tester) async { |
| 228 | + testWidgetsWithLeakTracking('BoxShadow BoxStyle.inner', (WidgetTester tester) async { |
228 | 229 | final Key key = UniqueKey(); |
229 | 230 | debugDisableShadows = false; |
230 | 231 | await tester.pumpWidget( |
@@ -256,7 +257,7 @@ void main() { |
256 | 257 | debugDisableShadows = true; |
257 | 258 | }); |
258 | 259 |
|
259 | | - testWidgets('BoxShadow BoxStyle.normal', (WidgetTester tester) async { |
| 260 | + testWidgetsWithLeakTracking('BoxShadow BoxStyle.normal', (WidgetTester tester) async { |
260 | 261 | final Key key = UniqueKey(); |
261 | 262 | debugDisableShadows = false; |
262 | 263 | await tester.pumpWidget( |
@@ -288,7 +289,7 @@ void main() { |
288 | 289 | debugDisableShadows = true; |
289 | 290 | }); |
290 | 291 |
|
291 | | - testWidgets('BoxShadow BoxStyle.normal.wide_radius', (WidgetTester tester) async { |
| 292 | + testWidgetsWithLeakTracking('BoxShadow BoxStyle.normal.wide_radius', (WidgetTester tester) async { |
292 | 293 | final Key key = UniqueKey(); |
293 | 294 | debugDisableShadows = false; |
294 | 295 | await tester.pumpWidget( |
@@ -321,7 +322,7 @@ void main() { |
321 | 322 | debugDisableShadows = true; |
322 | 323 | }); |
323 | 324 |
|
324 | | - testWidgets('BoxShadow BoxStyle.outer.wide_radius', (WidgetTester tester) async { |
| 325 | + testWidgetsWithLeakTracking('BoxShadow BoxStyle.outer.wide_radius', (WidgetTester tester) async { |
325 | 326 | final Key key = UniqueKey(); |
326 | 327 | debugDisableShadows = false; |
327 | 328 | await tester.pumpWidget( |
@@ -354,7 +355,7 @@ void main() { |
354 | 355 | debugDisableShadows = true; |
355 | 356 | }); |
356 | 357 |
|
357 | | - testWidgets('BoxShadow BoxStyle.solid.wide_radius', (WidgetTester tester) async { |
| 358 | + testWidgetsWithLeakTracking('BoxShadow BoxStyle.solid.wide_radius', (WidgetTester tester) async { |
358 | 359 | final Key key = UniqueKey(); |
359 | 360 | debugDisableShadows = false; |
360 | 361 | await tester.pumpWidget( |
@@ -386,7 +387,7 @@ void main() { |
386 | 387 | debugDisableShadows = true; |
387 | 388 | }); |
388 | 389 |
|
389 | | - testWidgets('BoxShadow BoxStyle.inner.wide_radius', (WidgetTester tester) async { |
| 390 | + testWidgetsWithLeakTracking('BoxShadow BoxStyle.inner.wide_radius', (WidgetTester tester) async { |
390 | 391 | final Key key = UniqueKey(); |
391 | 392 | debugDisableShadows = false; |
392 | 393 | await tester.pumpWidget( |
|
0 commit comments