public override void initState() { base.initState(); StatusBarManager.statusBarStyle(true); this._showNavBarShadow = true; this._isHaveTitle = false; this._titlePosition = 0.0f; this._playButtonPosition = 0.0f; this._aspectRatio = 16.0f / 9; if (CCommonUtils.isAndroid) { this._aspectRatio = 3f / 2; } this._controller = new AnimationController( duration: TimeSpan.FromMilliseconds(100), vsync: this ); var rectTween = new RelativeRectTween( RelativeRect.fromLTRB(0, 44, 0, 0), RelativeRect.fromLTRB(0, 0, 0, 0) ); this._animation = rectTween.animate(this._controller); // SchedulerBinding.instance.addPostFrameCallback(_ => { // this.widget.actionModel.startFetchGameDetail(); // this.widget.actionModel.fetchGameDetail(); // }); }
public override void initState() { base.initState(); StatusBarManager.statusBarStyle(false); this._favoriteInfoHeight = 0; this._favoriteArticleOffset = 0; this._isHaveTitle = false; this._controller = new AnimationController( duration: TimeSpan.FromMilliseconds(100), vsync: this ); RelativeRectTween rectTween = new RelativeRectTween( RelativeRect.fromLTRB(0, 44, 0, 0), RelativeRect.fromLTRB(0, 13, 0, 0) ); this._animation = rectTween.animate(parent: this._controller); SchedulerBinding.instance.addPostFrameCallback(_ => { this.widget.actionModel.startFetchFavoriteDetail(); this.widget.actionModel.fetchFavoriteDetail(arg1: this.widget.viewModel.tagId, 0); }); WidgetsBinding.instance.addPostFrameCallback(_ => { var renderBox = (RenderBox)this._favoriteInfoKey.currentContext.findRenderObject(); var favoriteInfoSize = renderBox.size; if (this._favoriteInfoHeight != favoriteInfoSize.height) { this.setState(() => this._favoriteInfoHeight = favoriteInfoSize.height); } }); }
public override void initState() { base.initState(); this._refreshController = new RefreshController(); this._isHaveTitle = false; this._titleHeight = 0.0f; this._controller = new AnimationController( duration: TimeSpan.FromMilliseconds(100), vsync: this ); RelativeRectTween rectTween = new RelativeRectTween( RelativeRect.fromLTRB(0, navBarHeight, 0, 0), RelativeRect.fromLTRB(0, 13, 0, 0) ); this._animation = rectTween.animate(this._controller); SchedulerBinding.instance.addPostFrameCallback(_ => { this.widget.actionModel.startFetchArticleDetail(); this.widget.actionModel.fetchArticleDetail(this.widget.viewModel.articleId); }); this._loginSubId = EventBus.subscribe(EventBusConstant.login_success, args => { this.widget.actionModel.startFetchArticleDetail(); this.widget.actionModel.fetchArticleDetail(this.widget.viewModel.articleId); }); this._jumpState = _ArticleJumpToCommentState.Inactive; this._cachedCommentPosition = null; }
public override void initState() { base.initState(); StatusBarManager.statusBarStyle(true); this._showNavBarShadow = true; this._isHaveTitle = false; this._titleHeight = 0.0f; this._aspectRatio = 16.0f / 9; if (Application.platform != RuntimePlatform.Android) { this._aspectRatio = 3f / 2; } this._controller = new AnimationController( duration: TimeSpan.FromMilliseconds(100), vsync: this ); RelativeRectTween rectTween = new RelativeRectTween( RelativeRect.fromLTRB(0, 44, 0, 0), RelativeRect.fromLTRB(0, 13, 0, 0) ); this._animation = rectTween.animate(this._controller); SchedulerBinding.instance.addPostFrameCallback(_ => { this.widget.actionModel.startFetchEventDetail(); this.widget.actionModel.fetchEventDetail(this.widget.viewModel.eventId, EventType.offline); }); this._loginSubId = EventBus.subscribe(EventBusConstant.login_success, args => { this.widget.actionModel.startFetchEventDetail(); this.widget.actionModel.fetchEventDetail(this.widget.viewModel.eventId, EventType.offline); }); }
public override void initState() { base.initState(); this._showNavBarShadow = true; this._titleHeight = 0.0f; this._isHaveTitle = false; this._controller = new AnimationController( duration: new TimeSpan(0, 0, 0, 0, 300), vsync: this ); this._titleAnimationController = new AnimationController( duration: TimeSpan.FromMilliseconds(100), vsync: this ); RelativeRectTween rectTween = new RelativeRectTween( RelativeRect.fromLTRB(0, 44, 0, 0), RelativeRect.fromLTRB(0, 13, 0, 0) ); this._titleAnimation = rectTween.animate(this._titleAnimationController); SchedulerBinding.instance.addPostFrameCallback(_ => { this.widget.actionModel.showChatWindow(false); this.widget.actionModel.startFetchEventDetail(); this.widget.actionModel.fetchEventDetail(this.widget.viewModel.eventId, EventType.online); }); this._loginSubId = EventBus.subscribe(EventBusConstant.login_success, args => { this.widget.actionModel.startFetchEventDetail(); this.widget.actionModel.fetchEventDetail(this.widget.viewModel.eventId, EventType.online); }); }
public override void initState() { base.initState(); StatusBarManager.statusBarStyle(true); this._articlePageNumber = 1; this._favoriteArticleOffset = 0; this._refreshController = new RefreshController(); this._isHaveTitle = false; this._hideNavBar = true; this._isShowTop = false; this._selectedIndex = 0; this._controller = new AnimationController( duration: TimeSpan.FromMilliseconds(100), vsync: this ); RelativeRectTween rectTween = new RelativeRectTween( RelativeRect.fromLTRB(0, top: navBarHeight, 0, 0), RelativeRect.fromLTRB(0, 0, 0, 0) ); this._animation = rectTween.animate(parent: this._controller); SchedulerBinding.instance.addPostFrameCallback(_ => { this.widget.actionModel.startFetchUserProfile(); this.widget.actionModel.fetchUserProfile(); this.widget.actionModel.startFetchUserArticle(); this.widget.actionModel.startFetchUserFavorite(); }); }
public override void initState() { base.initState(); StatusBarManager.statusBarStyle(true); this._articleOffset = 0; this._refreshController = new RefreshController(); this._isHaveTitle = false; this._hideNavBar = true; this._controller = new AnimationController( duration: TimeSpan.FromMilliseconds(100), vsync: this ); RelativeRectTween rectTween = new RelativeRectTween( RelativeRect.fromLTRB(0, 44, 0, 0), RelativeRect.fromLTRB(0, 0, 0, 0) ); this._animation = rectTween.animate(this._controller); SchedulerBinding.instance.addPostFrameCallback(_ => { this.widget.actionModel.startFetchTeam(); this.widget.actionModel.fetchTeam(); this.widget.actionModel.startFetchTeamArticle(); this.widget.actionModel.fetchTeamArticle(0); }); }
public override void initState() { base.initState(); StatusBarManager.statusBarStyle(false); this._pageNumber = 1; this._refreshController = new RefreshController(); this._controller = new AnimationController( duration: TimeSpan.FromMilliseconds(100), vsync: this ); RelativeRectTween rectTween = new RelativeRectTween( RelativeRect.fromLTRB(0, 44, 0, 0), RelativeRect.fromLTRB(0, 13, 0, 0) ); this._animation = rectTween.animate(parent: this._controller); SchedulerBinding.instance.addPostFrameCallback(_ => { this.widget.actionModel.startFetchDetailList(); this.widget.actionModel.fetchDetailList(this._pageNumber); }); }
public override void initState() { base.initState(); StatusBarManager.statusBarStyle(false); this._showNavBarShadow = true; this._isHaveTitle = false; this._controller = new AnimationController( duration: new TimeSpan(0, 0, 0, 0, 300), vsync: this ); this._titleAnimationController = new AnimationController( duration: TimeSpan.FromMilliseconds(100), vsync: this ); RelativeRectTween rectTween = new RelativeRectTween( RelativeRect.fromLTRB(0, 44, 0, 0), RelativeRect.fromLTRB(0, 13, 0, 0) ); this._titleAnimation = rectTween.animate(this._titleAnimationController); SchedulerBinding.instance.addPostFrameCallback(_ => { AVPlayerPlugin.initVideoPlayer("", "", 0, (int)MediaQuery.of(this.context).padding.top, MediaQuery.of(this.context).size.width, MediaQuery.of(this.context).size.width * 9 / 16, true); AVPlayerPlugin.hiddenPlayer(); this.widget.actionModel.showChatWindow(false); this.widget.actionModel.startFetchEventDetail(); this.widget.actionModel.fetchEventDetail(this.widget.viewModel.eventId, EventType.online); }); this._loginSubId = EventBus.subscribe(EventBusConstant.login_success, args => { this.widget.actionModel.startFetchEventDetail(); this.widget.actionModel.fetchEventDetail(this.widget.viewModel.eventId, EventType.online); }); this._shareActionSubId = EventBus.subscribe(EventBusConstant.shareAction, args => { if (this.widget.viewModel.eventsDict.ContainsKey(this.widget.viewModel.eventId)) { this._showShareView(this.widget.viewModel.eventsDict[this.widget.viewModel.eventId]); } }); }