mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-11 11:08:56 +03:30
Fix transmitter name in package history
This commit is contained in:
@@ -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,
|
||||
),
|
||||
),
|
||||
],),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user