-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #301 from woltapp/remove-provider-dependency-from-…
…coffee-maker-nav2-example Remove Provider state management dependency from coffee maker nav2 example
- Loading branch information
Showing
70 changed files
with
758 additions
and
740 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import 'package:wolt_di/wolt_di.dart'; | ||
import 'package:coffee_maker_navigator_2/app/di/coffee_maker_app_level_dependency_container.dart'; | ||
import 'package:demo_ui_components/demo_ui_components.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
class CoffeeMakerApp extends StatelessWidget { | ||
const CoffeeMakerApp({Key? key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return DependencyInjector( | ||
child: Builder(builder: (context) { | ||
final appLevelDependencyContainer = DependencyInjector.container< | ||
CoffeeMakerAppLevelDependencyContainer>(context); | ||
|
||
return MaterialApp.router( | ||
debugShowCheckedModeBanner: false, | ||
theme: AppThemeData.themeData(context), | ||
routerDelegate: appLevelDependencyContainer.appRouterDelegate, | ||
backButtonDispatcher: | ||
appLevelDependencyContainer.backButtonDispatcher, | ||
); | ||
}), | ||
); | ||
} | ||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...data/auth/repository/auth_repository.dart → ...auth/data/repository/auth_repository.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.