【发布时间】:2019-12-13 23:57:22
【问题描述】:
我正在尝试使用 Flutter 重新创建 iOS 的秒表 UI,我需要创建这两个按钮,但我不知道如何塑造它们。
我已经尝试过使用标准 CupertinoButton,但没有与圆形按钮相关的选项。
这是类,我想我应该把这两个按钮放在一行中。
class _StopWatchState extends State<StopWatch> {
@override
Widget build(BuildContext context) {
return CupertinoTabView(
builder: (context) {
return CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
middle: Text('Stopwatch'),
),
child: Column(
children: <Widget>[
Expanded(
child: Center(
child: Text('00:00,000'),
),
),
Expanded(
child: Row(
children: <Widget>[
],
),
),
],
),
);
},
);
}
}
【问题讨论】:
-
你能展示你想要达到的目标吗
-
是的,我刚刚添加了一个图片链接
标签: android ios user-interface flutter flutter-cupertino