build: TransitionType.inFromRight to TransitionType.native

This commit is contained in:
zymxxxs
2019-11-08 13:04:32 +08:00
parent d017fd3cf4
commit fa2e77687d
4 changed files with 7 additions and 7 deletions

View File

@ -448,7 +448,7 @@ class _History extends State<History> {
onTap: () { onTap: () {
Application.router.navigateTo( Application.router.navigateTo(
context, "${targetRouter.toLowerCase()}", context, "${targetRouter.toLowerCase()}",
transition: TransitionType.inFromRight); transition: TransitionType.native);
}, },
child: Chip( child: Chip(
avatar: icon, avatar: icon,

View File

@ -23,7 +23,7 @@ class WidgetItemContainer extends StatelessWidget {
/// 跳转goup /// 跳转goup
void tapToGroup(CategoryComponent cate, BuildContext context) { void tapToGroup(CategoryComponent cate, BuildContext context) {
Application.router.navigateTo(context, "/category/${cate.token}", Application.router.navigateTo(context, "/category/${cate.token}",
transition: TransitionType.inFromRight); transition: TransitionType.native);
} }
/// 跳转到老的widget界面 /// 跳转到老的widget界面
@ -37,14 +37,14 @@ class WidgetItemContainer extends StatelessWidget {
} }
}); });
Application.router.navigateTo(context, targetRouter, Application.router.navigateTo(context, targetRouter,
transition: TransitionType.inFromRight); transition: TransitionType.native);
} }
/// 跳转到新的标准页 /// 跳转到新的标准页
void tapToStandardPage(WidgetLeaf leaf, BuildContext context) { void tapToStandardPage(WidgetLeaf leaf, BuildContext context) {
String targetRouter = '/standard-page/${leaf.pageId}'; String targetRouter = '/standard-page/${leaf.pageId}';
Application.router.navigateTo(context, targetRouter, Application.router.navigateTo(context, targetRouter,
transition: TransitionType.inFromRight); transition: TransitionType.native);
} }
List<Widget> _buildColumns(context) { List<Widget> _buildColumns(context) {
@ -81,7 +81,7 @@ class WidgetItemContainer extends StatelessWidget {
Application.router.navigateTo( Application.router.navigateTo(
context, "/category/error/404", context, "/category/error/404",
transition: TransitionType.inFromRight); transition: TransitionType.native);
}, },
index: addI, index: addI,
totalCount: length, totalCount: length,

View File

@ -115,7 +115,7 @@ class _CollectionFullPageState extends State<CollectionFullPage> {
Icon(Icons.keyboard_arrow_right, color: Colors.grey, size: 30.0), Icon(Icons.keyboard_arrow_right, color: Colors.grey, size: 30.0),
onTap: () { onTap: () {
Application.router.navigateTo(context, targetRouter.toLowerCase(), Application.router.navigateTo(context, targetRouter.toLowerCase(),
transition: TransitionType.inFromRight); transition: TransitionType.native);
}, },
), ),
); );

View File

@ -107,7 +107,7 @@ class _MyHomePageState extends State<AppPage>
.add(SearchHistory(name: targetName, targetRouter: targetRouter)); .add(SearchHistory(name: targetName, targetRouter: targetRouter));
print("searchHistoryList1 ${searchHistoryList.toString()}"); print("searchHistoryList1 ${searchHistoryList.toString()}");
Application.router.navigateTo(context, targetRouter.toLowerCase(), Application.router.navigateTo(context, targetRouter.toLowerCase(),
transition: TransitionType.inFromRight); transition: TransitionType.native);
} }
Widget buildSearchInput(BuildContext context) { Widget buildSearchInput(BuildContext context) {