Skip to content

Commit

Permalink
fix: error in riverpod
Browse files Browse the repository at this point in the history
  • Loading branch information
radenadri committed Aug 26, 2024
1 parent e8837eb commit 436a29b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import UIKit
import Flutter

@UIApplicationMain
@main
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
Expand Down
4 changes: 2 additions & 2 deletions lib/riverpod/number_trivia_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class NumberTrivia extends _$NumberTrivia {

try {
final response = await Isolate.run(() async {
await http.get(
return await http.get(
Uri.parse('$API_URL/random'),
headers: {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -59,7 +59,7 @@ class NumberTrivia extends _$NumberTrivia {
state = const AsyncLoading();

final response = await Isolate.run(() async {
await http.get(
return await http.get(
Uri.parse('$API_URL/$number'),
headers: {
'Content-Type': 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion lib/riverpod/number_trivia_provider.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 436a29b

Please sign in to comment.