Fix transmitter name in package history

This commit is contained in:
hanie.khodkari
2024-06-11 18:47:14 +03:30
parent a3a2a48034
commit 3531dcbfdb
4 changed files with 116 additions and 109 deletions
@@ -3,13 +3,11 @@ import 'package:flutter/material.dart';
class UserPackageDataBox extends StatelessWidget {
final PackageHistoryObject? user;
final String? transmitterName;
const UserPackageDataBox({
Key? key,
required double deviceBlockSize,
this.user,
this.transmitterName
}) : _deviceBlockSize = deviceBlockSize,
super(key: key);
@@ -42,7 +40,7 @@ class UserPackageDataBox extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Container(
width: 30 * _deviceBlockSize,
width: 25 * _deviceBlockSize,
child: Text(
user!.userHistoryName,
style: TextStyle(
@@ -52,7 +50,7 @@ class UserPackageDataBox extends StatelessWidget {
),
),
Container(
width: 30 * _deviceBlockSize,
width: 25 * _deviceBlockSize,
child: Text(
user!.userHistoryPhon,
style: TextStyle(
@@ -64,25 +62,27 @@ class UserPackageDataBox extends StatelessWidget {
),
],
),
SizedBox(
width: 3 * _deviceBlockSize,
Row(
children: [
Text(
user!.userTransferName != null ? "Transmitter : " : "",
style: TextStyle(
fontSize: 3 * _deviceBlockSize,
fontWeight: FontWeight.w700,
),
),
Container(
width: 25 * _deviceBlockSize,
child: Text(
user!.userTransferName ?? "",
style: TextStyle(
fontSize: 3 * _deviceBlockSize,
fontWeight: FontWeight.w700,
),
),
),
],
),
Row(children: [
Text(
"Transmitter : ",
style: TextStyle(
fontSize: 3 * _deviceBlockSize,
fontWeight: FontWeight.w700,
),
),
Text(
transmitterName ?? "null",
style: TextStyle(
fontSize: 3 * _deviceBlockSize,
fontWeight: FontWeight.w700,
),
),
],),
],
),
),