我尝试了很多次,但总是缺少一些东西。我想要一模一样的,设计,边框。
您可以使用
CupertinoSegmentedControl
https://api.flutter.dev/flutter/cupertino/CupertinoSegmentedControl-class.html
以下是一些示例以及自定义方法:
https://medium.com/@sebbenkra/a-material-styled-segmented-control-1e92310c3a67