mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 20:28:54 +03:30
Set Transmitter name for item history
This commit is contained in:
@@ -68,13 +68,15 @@ class ItemHistoryObject extends Equatable {
|
||||
final String userHistoryName;
|
||||
final String userHistoryId;
|
||||
final String userHistoryPhon;
|
||||
ItemHistoryObject({
|
||||
required this.fromDate,
|
||||
required this.toDate,
|
||||
required this.userHistoryName,
|
||||
required this.userHistoryId,
|
||||
required this.userHistoryPhon,
|
||||
});
|
||||
final String? userTransferName;
|
||||
|
||||
ItemHistoryObject(
|
||||
{required this.fromDate,
|
||||
required this.toDate,
|
||||
required this.userHistoryName,
|
||||
required this.userHistoryId,
|
||||
required this.userHistoryPhon,
|
||||
required this.userTransferName});
|
||||
|
||||
@override
|
||||
List<Object> get props {
|
||||
|
||||
@@ -208,6 +208,9 @@ class MyItemProvider extends ChangeNotifier {
|
||||
userHistoryName: transfer['user']['name'].toString(),
|
||||
userHistoryId: transfer['user']['id'].toString(),
|
||||
userHistoryPhon: transfer['user']['cell_number'].toString(),
|
||||
userTransferName: transfer['userTransfer'] != null
|
||||
? transfer['userTransfer']['name'].toString()
|
||||
: null,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -62,6 +62,27 @@ class UserItemDataBox extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
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,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user