我曾尝试使用颤振来实现这样的布局。 
为此,我使用了 Cupertino Picker Class。但它看起来并不像我想要的那么好。
我试图通过使用 flutter 网站上列出的属性来修复它,但我没有找到任何更好的解决方案。我该如何解决这个问题,或者在这种情况下还有另一个更好的小部件吗?
我的代码如下所示:
Widget build(BuildContext context) {
return CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
backgroundColor: Colors.red,
),
child: Container(
child: Center(
child: CupertinoPicker(
itemExtent: 40,
diameterRatio: 5,
offAxisFraction: 10,
backgroundColor: Colors.black54,
onSelectedItemChanged: (int index) {
print(index);
},
children: <Widget>[
Text('Tap', style: TextStyle(color:Colors.white)),
Text('Colorbattle',style: TextStyle(color:Colors.white)),
Text('Patience',style: TextStyle(color:Colors.white)),
],
))));
Run Code Online (Sandbox Code Playgroud)
} }