mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-08-23 02:02:24 +08:00
build: TransitionType.inFromRight to TransitionType.native
This commit is contained in:
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -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);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user