在Flutter中模拟iOS风格导航的最接近的方式是什么,更具体地说,使用Over Full Screen演示和Cross Dissolve过渡的Present Modally类型?我试着查看他们的文档和构造函数页面,但它没有任何帮助。
CODE:
rand_num = 2
guess_num = 3
rand_num = 4
if rand_num < 3:
pass
elif (rand_num - 10) <= guess_num <= rand_num or rand_num <= guess_num <= (rand_num + 10):
print('working')
else:
print('not working')
# prints working
但是他没有做任何事。我甚至试过
IconButton(
icon: Icon(Icons.filter_list),
onPressed: () {
AnimationController controller = new AnimationController(duration: const Duration(milliseconds: 200), vsync: this);
Animation<double> animation = new Tween(begin: 0.1, end: 1.0).animate(controller);
CupertinoFullscreenDialogTransition(
animation: animation,
child: Container(color: Colors.blue, width: 100.0, height: 100.0,),
);
},
),
并没有做任何事情。