Skip to content

Commit d71e5c6

Browse files
authored
Fix nullability in docs (flutter#3876)
Update code in docs snippets.
1 parent 090a3af commit d71e5c6

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

packages/url_launcher/url_launcher/CHANGELOG.md

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

3+
* Fixes some url_launcher docs that were missing the null operator (?).
34
* Updates minimum Flutter version to 3.3.
45
* Aligns Dart and Flutter SDK constraints.
56

packages/url_launcher/url_launcher/lib/src/link.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Future<ByteData> Function(Object?, String) pushRouteToFrameworkFunction =
2525
/// ```dart
2626
/// Link(
2727
/// uri: Uri.parse('https://flutter.dev'),
28-
/// builder: (BuildContext context, FollowLink followLink) => ElevatedButton(
28+
/// builder: (BuildContext context, FollowLink? followLink) => ElevatedButton(
2929
/// onPressed: followLink,
3030
/// // ... other properties here ...
3131
/// )},
@@ -37,7 +37,7 @@ Future<ByteData> Function(Object?, String) pushRouteToFrameworkFunction =
3737
/// ```dart
3838
/// Link(
3939
/// uri: Uri.parse('/home'),
40-
/// builder: (BuildContext context, FollowLink followLink) => ElevatedButton(
40+
/// builder: (BuildContext context, FollowLink? followLink) => ElevatedButton(
4141
/// onPressed: followLink,
4242
/// // ... other properties here ...
4343
/// )},

packages/url_launcher/url_launcher/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: Flutter plugin for launching a URL. Supports
33
web, phone, SMS, and email schemes.
44
repository: https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher
55
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+url_launcher%22
6-
version: 6.1.10
6+
version: 6.1.11
77

88
environment:
99
sdk: ">=2.18.0 <4.0.0"

0 commit comments

Comments
 (0)