Skip to content

Commit

Permalink
feat: add custom transition animation support
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGong2013 committed Nov 23, 2020
1 parent e4156d4 commit 2540ed3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/src/route/native_bridge.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,23 @@ Color _defaultBackgroundColor(BuildContext context) {
: CupertinoColors.black;
}

///
/// backgroundColorProvider
///
/// 如果当前页面不为透明背景,默认为根据系统是否黑暗模式默认为 黑/白
///
/// transitionBuilderProvider
///
/// 页面切换动画,默认返回null 使用native系统默认动画即可,在一下几种场景中需要手动自定义
///
///
/// android
///
/// fragment 切换
/// activity的launch mode 不为 standard 的情况
///
/// ios
/// addChild 或者是 禁用了系统默认动画的情况
class FaradayNativeBridge extends StatefulWidget {
final RouteFactory onGenerateRoute;
final RouteFactory onUnknownRoute;
Expand Down

0 comments on commit 2540ed3

Please sign in to comment.