Skip to content

Commit

Permalink
refactor: main (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gambley1 authored May 21, 2024
1 parent 4cc837d commit dfd76ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import 'package:papa_burger/src/app/app.dart';
import 'package:papa_burger/src/services/network/api/api.dart';
import 'package:papa_burger/src/services/repositories/user/user.dart';

void main() async {
final userApi = UserApi();
final userRepository = UserRepository(userApi: userApi);

await bootstrap(() => App(userRepository: userRepository));
}
void main() {
bootstrap(() {
final userApi = UserApi();
final userRepository = UserRepository(userApi: userApi);
return MyApp(userRepository: userRepository);
});

0 comments on commit dfd76ae

Please sign in to comment.