Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Luckey-Elijah committed Jul 25, 2024
1 parent 406f313 commit ed200a2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Long story short:
@riverpod
Future<String> boredSuggestion(BoredSuggestionRef ref) async {
final response = await http.get(
Uri.parse('https://boredapi.com/api/activity'),
Uri.https('boredapi.com', '/api/activity'),
);
final json = jsonDecode(response.body);
return json['activity']! as String;
Expand Down
4 changes: 0 additions & 4 deletions packages/riverpod/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
## 2.5.2

- Fix documentation invalid use of `Uri.https` in README and website snippet. (thanks to @Luckey-Elijah)

## 2.5.1 - 2024-03-10

- Improved `Provider(dependencies: [...])` documentation.
Expand Down
2 changes: 1 addition & 1 deletion website/static/snippets/create.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ part 'create.g.dart';
@riverpod
Future<String> boredSuggestion(BoredSuggestionRef ref) async {
final response = await http.get(
Uri.parse('https://boredapi.com/api/activity'),
Uri.https('boredapi.com', '/api/activity'),
);
final json = jsonDecode(response.body) as Map;
return json['activity']! as String;
Expand Down

0 comments on commit ed200a2

Please sign in to comment.