File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
test/widget_tests/painters Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ import 'package:flutter_test/flutter_test.dart';
88/// This helper creates a standard MaterialApp scaffold with a CustomPaint
99/// widget for testing custom painters in a consistent way across all tests.
1010///
11- /// @param painter The CustomPainter instance to test.
12- /// @param key A unique key to identify the CustomPaint widget in tests.
13- /// @param width The width of the canvas (default: 200).
14- /// @param height The height of the canvas (default: 200).
11+ /// **params**:
12+ /// * `painter` : The CustomPainter instance to test.
13+ /// * `key` : A unique key to identify the CustomPaint widget in tests.
14+ /// * `width` : The width of the canvas (default: 200).
15+ /// * `height` : The height of the canvas (default: 200).
1516Widget buildPainterTestWidget ({
1617 required CustomPainter painter,
1718 required Key key,
@@ -39,7 +40,8 @@ Widget buildPainterTestWidget({
3940/// Verifies that the [paint] method completes without throwing exceptions
4041/// for various standard and edge-case canvas sizes.
4142///
42- /// @param createPainter A factory function that returns a new instance of the [CustomPainter] to test.
43+ /// **params**:
44+ /// * `createPainter` : A factory function that returns a new instance of the [CustomPainter] to test.
4345void runPaintSmokeTests (CustomPainter Function () createPainter) {
4446 group ('paint() method smoke tests' , () {
4547 final sizes = [
You can’t perform that action at this time.
0 commit comments