add markdown for term

This commit is contained in:
tzw
2024-02-28 17:47:47 +06:30
parent 270be54d38
commit 8305cb45ce
17 changed files with 456 additions and 462 deletions

View File

@@ -26,21 +26,24 @@ class PrintQrCodePage extends StatelessWidget {
Row(
children: [
QrImageView(
data: 'This is a simple QR code',
version: QrVersions.auto,
size: 100,
gapless: true,
),
data: carton.cartonNumber ?? "",
version: QrVersions.auto,
size: 100,
gapless: true),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(carton.cartonNumber ?? "",
style: TextStyle(fontSize: 18,fontFamily: "Roboto")),
Text(carton.userName!, style: TextStyle(fontSize: 16,fontFamily: "Roboto")),
style: TextStyle(fontSize: 18, fontFamily: "Roboto")),
Text(carton.userName!,
style: TextStyle(fontSize: 16, fontFamily: "Roboto")),
Padding(
padding: const EdgeInsets.only(top: 3),
child: Text("${carton.actualWeight} lb",
style: TextStyle(fontSize: 16, color: labelColor,fontFamily: "Roboto")),
style: TextStyle(
fontSize: 16,
color: labelColor,
fontFamily: "Roboto")),
)
],
)
@@ -54,7 +57,7 @@ class PrintQrCodePage extends StatelessWidget {
color: primaryColor,
iconData: Icons.print_outlined,
callBack: () {
generateCartonPdf(carton);
generateCartonPdf(carton);
},
),
)