Skip to content

Commit

Permalink
Name the import to make it's usage more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Nov 2, 2023
1 parent 1abef72 commit e857cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/flutter_http_example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import 'package:http/http.dart';

import 'book.dart';
import 'http_client_factory.dart'
if (dart.library.html) 'http_client_factory_web.dart';
if (dart.library.html) 'http_client_factory_web.dart' as http_factory;

void main() {
runWithClient(() => runApp(const BookSearchApp()), httpClient);
runWithClient(() => runApp(const BookSearchApp()), http_factory.httpClient);
}

class BookSearchApp extends StatelessWidget {
Expand Down

0 comments on commit e857cfb

Please sign in to comment.