Forked from saturov/gist:237f70ef6e0637ba9db01af83a2706b9
Created
June 13, 2020 09:59
-
-
Save rovkinmax/2bed0be723abceafe4b98df747201917 to your computer and use it in GitHub Desktop.
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
/// Билдер [WidgetModel] для экрана Дэшборда [DashboardScreen] | |
DashboardWidgetModel createDashboardScreenWm(BuildContext context) { | |
final component = Injector.of<DashboardScreenComponent>(context).component; | |
final dependencies = WidgetModelDependencies( | |
errorHandler: StandardErrorHandler( | |
component.messageController, | |
component.dialogController, | |
component.sessionInteractor, | |
component.authInteractor, | |
), | |
); | |
return DashboardWidgetModel( | |
dependencies, | |
component.dashboardManager, | |
component.notificationInteractor, | |
component.organizationInteractor, | |
component.companyInteractor, | |
component.operationInteractor, | |
component.sessionInteractor, | |
component.scaffoldKey, | |
component.dialogController, | |
component.scaffoldKey, | |
component.navigator, | |
component.unreadNotificationInteractor, | |
component.accountInteractor, | |
component.analyticsInteractor, | |
component.remoteConfigInteractor, | |
component.dashboardInteractor, | |
component.isSendMainCompanyEvent, | |
component.isSendAuthEvent, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment