public override Widget build(BuildContext context) { return(new StoreConnector <AppState, MyEventsScreenViewModel>( converter: state => new MyEventsScreenViewModel { futureListLoading = state.mineState.futureListLoading, futureEventsList = state.mineState.futureEventsList, futureEventTotal = state.mineState.futureEventTotal, placeDict = state.placeState.placeDict }, builder: (context1, viewModel, dispatcher) => { var actionModel = new MyEventsScreenActionModel { mainRouterPop = () => dispatcher.dispatch(new MainNavigatorPopAction()), pushToEventDetail = (id, type) => dispatcher.dispatch(new MainNavigatorPushToEventDetailAction { eventId = id, eventType = type }), startFetchMyFutureEvents = () => dispatcher.dispatch(new StartFetchMyFutureEventsAction()), fetchMyFutureEvents = pageNumber => dispatcher.dispatch <IPromise>(Actions.fetchMyFutureEvents(pageNumber)) }; return new MyFutureEventsScreen(viewModel, actionModel); } )); }
public MyEventsScreen( MyEventsScreenActionModel actionModel = null, Key key = null ) : base(key) { this.actionModel = actionModel; }
public MyPastEventsScreen( MyEventsScreenViewModel viewModel = null, MyEventsScreenActionModel actionModel = null, Key key = null ) : base(key: key) { this.viewModel = viewModel; this.actionModel = actionModel; }
public MyFutureEventsScreen( MyEventsScreenViewModel viewModel = null, MyEventsScreenActionModel actionModel = null, string mode = null, Key key = null ) : base(key: key) { this.viewModel = viewModel; this.actionModel = actionModel; this.mode = mode; }
public override Widget build(BuildContext context) { return(new StoreConnector <AppState, object>( converter: state => null, builder: (context1, viewModel, dispatcher) => { var actionModel = new MyEventsScreenActionModel { mainRouterPop = () => dispatcher.dispatch(new MainNavigatorPopAction()) }; return new MyEventsScreen(actionModel); } )); }