【发布时间】:2022-07-25 13:06:59
【问题描述】:
我正在使用来自flutter_slidable 包的Slidable。我想对我的Slidable 进行四舍五入。具体怎么做?
我的代码:
return Slidable(
key: Key(packlists[index].toString()),
endActionPane: ActionPane(
motion: BehindMotion(),
children: [
SlidableAction(
flex: 2,
onPressed: null,
backgroundColor: Color(0xFF7BC043),
foregroundColor: Colors.white,
icon: Icons.delete,
label: 'Löschen',
),
],
),
child: PackListCard(
title: 'Packliste',
subtitle: DateFormat.yMMMMd('de_DE')
.format(packlists[index].date),
icon: Icon(Icons.list_alt),
checked: packlists[index].checked,
),
);
屏幕
我想要带圆角的绿色部分 (BorderRadius)
我尝试使用容器
【问题讨论】:
标签: flutter dart flutter-layout