更新
This commit is contained in:
@@ -278,14 +278,21 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
||||
minHeight: 200.rpx,
|
||||
),
|
||||
decoration: BoxDecoration(
|
||||
color: FlutterFlowTheme.of(context)
|
||||
.secondaryBackground,
|
||||
),
|
||||
child: QrImageView(
|
||||
data: '1234567890',
|
||||
version: QrVersions.auto,
|
||||
size: 200.0.rpx,
|
||||
color: Colors.transparent,
|
||||
),
|
||||
child: (widget.device['code']
|
||||
?.toString()
|
||||
.isNotEmpty ??
|
||||
false)
|
||||
? QrImageView(
|
||||
data: widget.device['code'].toString(),
|
||||
version: QrVersions.auto,
|
||||
size: 200.0.rpx,
|
||||
)
|
||||
: Image.asset(
|
||||
"assets/img/errorImg.jpeg",
|
||||
fit: BoxFit.cover,
|
||||
),
|
||||
),
|
||||
Container(
|
||||
height: 50.rpx,
|
||||
@@ -293,7 +300,11 @@ class _DeviceDetailPageState extends State<DeviceDetailPage> {
|
||||
child: Align(
|
||||
alignment: AlignmentDirectional(-1.rpx, 0.rpx),
|
||||
child: Text(
|
||||
'A35968956',
|
||||
(widget.device['code'] ?? '')
|
||||
.toString()
|
||||
.isNotEmpty
|
||||
? widget.device['code'].toString()
|
||||
: '未知数据'.tr,
|
||||
style: FlutterFlowTheme.of(context)
|
||||
.bodyMedium
|
||||
.override(
|
||||
|
||||
Reference in New Issue
Block a user