mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 06:08:56 +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 userHistoryName;
|
||||||
final String userHistoryId;
|
final String userHistoryId;
|
||||||
final String userHistoryPhon;
|
final String userHistoryPhon;
|
||||||
ItemHistoryObject({
|
final String? userTransferName;
|
||||||
required this.fromDate,
|
|
||||||
required this.toDate,
|
ItemHistoryObject(
|
||||||
required this.userHistoryName,
|
{required this.fromDate,
|
||||||
required this.userHistoryId,
|
required this.toDate,
|
||||||
required this.userHistoryPhon,
|
required this.userHistoryName,
|
||||||
});
|
required this.userHistoryId,
|
||||||
|
required this.userHistoryPhon,
|
||||||
|
required this.userTransferName});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<Object> get props {
|
List<Object> get props {
|
||||||
|
|||||||
@@ -208,6 +208,9 @@ class MyItemProvider extends ChangeNotifier {
|
|||||||
userHistoryName: transfer['user']['name'].toString(),
|
userHistoryName: transfer['user']['name'].toString(),
|
||||||
userHistoryId: transfer['user']['id'].toString(),
|
userHistoryId: transfer['user']['id'].toString(),
|
||||||
userHistoryPhon: transfer['user']['cell_number'].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