Skip to content

Commit

Permalink
add some comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bladeofgod committed Oct 10, 2020
1 parent 0b276a0 commit 5083723
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/base_framework/widget_state/base_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ mixin WidgetGenerator on BaseState implements _RouteGenerator,_NavigateActor{
}
}

///@param animation : 页面过度动画
///@param animation : page transition's animation
///see details in [PageAnimationBuilder]
@override
Future push<T extends PageState>(T targetPage,{PageAnimation animation}) {
assert(targetPage != null,'the target page must not null !');
Expand Down
6 changes: 5 additions & 1 deletion lib/base_framework/widget_state/page_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ import 'package:flutter_bedrock/base_framework/widget_state/widget_state.dart';

/// * 如果是页面,继承 [PageState]
/// * 如果是view,继承 [WidgetState]
/// 确保你的页面名字在项目中唯一,
/// 否则一些页面跳转的结果可能非你预期
/// ensure your page's name is unique in project,
/// will cause unexpected in navigator action if not.
///
/// 此处扩展功能应该只与page相关
Expand Down

0 comments on commit 5083723

Please sign in to comment.