flutter GetX路由跳转时允许页面自己跳自己

//例如:当前页面为:WantPostDetail有一个按钮WantPostDetail跳转到WantPostDetail
GestureDetector(
child: Text('跳自己'),
onTap:(){
Get.to(() => WantPostDetail(),
                arguments: state.articleDetail.id,
                preventDuplicates: false,
              );
}
)
 

你可能感兴趣的:(flutter,前端)