|
@@ -27,6 +27,8 @@ class VQRCodeWithLogo extends StatefulWidget implements FWidget {
|
|
|
/// logo尺寸
|
|
|
final double? logoSize;
|
|
|
|
|
|
+ final double titleWidth;
|
|
|
+
|
|
|
///带Logo的二维码
|
|
|
const VQRCodeWithLogo(
|
|
|
this.qrData, {
|
|
@@ -35,6 +37,7 @@ class VQRCodeWithLogo extends StatefulWidget implements FWidget {
|
|
|
this.operationStatement = "QRCodeOperationStatement",
|
|
|
this.operationSuccessCallback,
|
|
|
this.size = 280,
|
|
|
+ this.titleWidth = 160,
|
|
|
this.logoSize,
|
|
|
}) : super(key: key);
|
|
|
|
|
@@ -78,7 +81,7 @@ class _VQRCodeWithLogoState extends State<VQRCodeWithLogo> {
|
|
|
return Material(
|
|
|
color: Colors.white,
|
|
|
child: FContainer(
|
|
|
- width: 160,
|
|
|
+ width: widget.titleWidth,
|
|
|
child: FColumn(
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
children: [
|