This commit is contained in:
Odein
2023-10-28 15:25:31 +04:30
parent eab99539d5
commit 92d6024cb1
11 changed files with 181 additions and 65 deletions
@@ -26,7 +26,7 @@ class ItemHistoryDate extends StatelessWidget {
width: 6.0,
),
Text(
items.fromDate!.toString(),
items.fromDate.toString(),
style: TextStyle(
fontSize: 4 * _deviceBlockSize,
fontWeight: FontWeight.w700,
@@ -49,7 +49,7 @@ class ItemHistoryDate extends StatelessWidget {
width: 6.0,
),
Text(
items.toDate!.toString(),
items.toDate.toString(),
style: TextStyle(
fontSize: 4 * _deviceBlockSize,
fontWeight: FontWeight.w700,
@@ -130,7 +130,7 @@ class RequestsDataBox extends StatelessWidget {
Provider.of<MyItemProvider>(context,
listen: false)
.verifyItemRequests(
item!.id, 'approved')
item!.requestId!, 'approved')
.then((result) {
if (result) {
print('true');
@@ -184,7 +184,7 @@ class RequestsDataBox extends StatelessWidget {
Provider.of<MyItemProvider>(context,
listen: false)
.verifyItemRequests(
item!.id, 'rejected')
item!.requestId!, 'rejected')
.then((result) {
if (result) {
print('false');