Improve device card layout
This commit is contained in:
@@ -202,17 +202,21 @@ class _DeviceCardState extends TbContextState<DeviceCard, _DeviceCardState> {
|
|||||||
mainAxisSize: MainAxisSize.max,
|
mainAxisSize: MainAxisSize.max,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
FittedBox(
|
Flexible(
|
||||||
fit: BoxFit.fitWidth,
|
fit: FlexFit.tight,
|
||||||
alignment: Alignment.centerLeft,
|
child: FittedBox(
|
||||||
child: Text('${widget.device.field('name')!}',
|
fit: BoxFit.scaleDown,
|
||||||
style: TextStyle(
|
alignment: Alignment.centerLeft,
|
||||||
color: Color(0xFF282828),
|
child: Text('${widget.device.field('name')!}',
|
||||||
fontSize: 14,
|
style: TextStyle(
|
||||||
fontWeight: FontWeight.w500,
|
color: Color(0xFF282828),
|
||||||
height: 20 / 14
|
fontSize: 14,
|
||||||
))
|
fontWeight: FontWeight.w500,
|
||||||
|
height: 20 / 14
|
||||||
|
))
|
||||||
|
)
|
||||||
),
|
),
|
||||||
|
SizedBox(width: 12),
|
||||||
Text(entityDateFormat.format(DateTime.fromMillisecondsSinceEpoch(widget.device.createdTime!)),
|
Text(entityDateFormat.format(DateTime.fromMillisecondsSinceEpoch(widget.device.createdTime!)),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Color(0xFFAFAFAF),
|
color: Color(0xFFAFAFAF),
|
||||||
|
|||||||
Reference in New Issue
Block a user