Skip to content

Commit c05fd0b

Browse files
authored
[multi] Remove @tool from docs that does not work (#9394)
![Screenshot 2025-06-05 at 6 10 11 PM](https://github.com/user-attachments/assets/7f6515c4-bc23-4574-b5b2-e3e411bb44e6) Usage of `@tool sample` and `@tool snippet` are not rendered in package docs here like they are in flutter/flutter. ## Pre-Review Checklist [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling.
1 parent 974f152 commit c05fd0b

File tree

15 files changed

+11
-23
lines changed

15 files changed

+11
-23
lines changed

packages/go_router/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## NEXT
1+
## 15.1.3
22

33
* Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.
4+
* Fixes typo in API docs.
45

56
## 15.1.2
67

packages/go_router/lib/src/route.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ class GoRoute extends RouteBase {
301301
/// property can be used to navigate to this route without knowing exact the
302302
/// URI of it.
303303
///
304-
/// {@tool snippet}
305304
/// Typical usage is as follows:
306305
///
307306
/// ```dart
@@ -326,7 +325,6 @@ class GoRoute extends RouteBase {
326325
/// queryParameters: <String, String>{'qid': 'quid'},
327326
/// );
328327
/// ```
329-
/// {@end-tool}
330328
///
331329
/// See the [named routes example](https://github.com/flutter/packages/blob/main/packages/go_router/example/lib/named_routes.dart)
332330
/// for a complete runnable app.

packages/go_router/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: go_router
22
description: A declarative router for Flutter based on Navigation 2 supporting
33
deep linking, data-driven routes and more
4-
version: 15.1.2
4+
version: 15.1.3
55
repository: https://github.com/flutter/packages/tree/main/packages/go_router
66
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+go_router%22
77

packages/two_dimensional_scrollables/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.3.6
2+
3+
* Fixes typo in API docs.
4+
15
## 0.3.5
26

37
* Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.

packages/two_dimensional_scrollables/lib/src/common/span.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,6 @@ class SpanDecoration {
346346
/// This same row decoration will consume any padding from the column spans so
347347
/// as to decorate the row as one continuous span.
348348
///
349-
/// {@tool snippet}
350349
/// This example illustrates how [consumeSpanPadding] affects
351350
/// [SpanDecoration.color]. By default, the color of the decoration
352351
/// consumes the padding, coloring the row fully by including the padding
@@ -379,7 +378,6 @@ class SpanDecoration {
379378
/// },
380379
/// );
381380
/// ```
382-
/// {@end-tool}
383381
final bool consumeSpanPadding;
384382

385383
/// Called to draw the decoration around a span.

packages/two_dimensional_scrollables/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: two_dimensional_scrollables
22
description: Widgets that scroll using the two dimensional scrolling foundation.
3-
version: 0.3.5
3+
version: 0.3.6
44
repository: https://github.com/flutter/packages/tree/main/packages/two_dimensional_scrollables
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+two_dimensional_scrollables%22+
66

packages/webview_flutter/webview_flutter_platform_interface/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## NEXT
1+
## 2.13.1
22

33
* Updates minimum supported SDK version to Flutter 3.27/Dart 3.6.
4+
* Fixes typo in API docs.
45

56
## 2.13.0
67

packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/javascript_message.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import 'package:flutter/foundation.dart';
1010
/// this class and providing a factory method that takes the
1111
/// [JavaScriptMessage] as a parameter.
1212
///
13-
/// {@tool sample}
1413
/// This example demonstrates how to extend the [JavaScriptMessage] to
1514
/// provide additional platform specific parameters.
1615
///
@@ -38,7 +37,6 @@ import 'package:flutter/foundation.dart';
3837
/// final String? extraData;
3938
/// }
4039
/// ```
41-
/// {@end-tool}
4240
@immutable
4341
class JavaScriptMessage {
4442
/// Creates a new JavaScript message object.

packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/load_request_params.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ extension LoadRequestMethodExtensions on LoadRequestMethod {
3333
/// Platform specific implementations can add additional fields by extending
3434
/// this class.
3535
///
36-
/// {@tool sample}
3736
/// This example demonstrates how to extend the [LoadRequestParams] to
3837
/// provide additional platform specific parameters.
3938
///
@@ -62,7 +61,6 @@ extension LoadRequestMethodExtensions on LoadRequestMethod {
6261
/// final Uri? historyUrl;
6362
/// }
6463
/// ```
65-
/// {@end-tool}
6664
@immutable
6765
class LoadRequestParams {
6866
/// Used by the platform implementation to create a new [LoadRequestParams].

packages/webview_flutter/webview_flutter_platform_interface/lib/src/types/platform_navigation_delegate_creation_params.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import 'package:flutter/material.dart';
99
/// Platform specific implementations can add additional fields by extending
1010
/// this class.
1111
///
12-
/// {@tool sample}
1312
/// This example demonstrates how to extend the [PlatformNavigationDelegateCreationParams] to
1413
/// provide additional platform specific parameters.
1514
///
@@ -36,7 +35,6 @@ import 'package:flutter/material.dart';
3635
/// final String? filter;
3736
/// }
3837
/// ```
39-
/// {@end-tool}
4038
@immutable
4139
class PlatformNavigationDelegateCreationParams {
4240
/// Used by the platform implementation to create a new [PlatformNavigationkDelegate].

0 commit comments

Comments
 (0)