Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rovkinmax/2bed0be723abceafe4b98df747201917 to your computer and use it in GitHub Desktop.
Save rovkinmax/2bed0be723abceafe4b98df747201917 to your computer and use it in GitHub Desktop.
/// Билдер [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