Fix status of package in detail screens

This commit is contained in:
fhkhd
2024-01-31 19:55:57 +03:30
parent 2dc4c6b416
commit 86feef9a38
8 changed files with 415 additions and 161 deletions
@@ -264,6 +264,33 @@ class PackageDetailsDataBox extends StatelessWidget {
],
),
Divider(),
SizedBox(
height: 5,
),
Row(
children: <Widget>[
Container(
width: 35 * _deviceBlockSize,
child: Text(
'Status',
style: TextStyle(
color: Colors.grey,
),
),
),
Container(
width: 45 * _deviceBlockSize,
child: Text(
datas.status == 'approved' ? 'Confirmed' : 'Rejected',
style: TextStyle(
fontWeight: FontWeight.w700,
color: datas.status == 'approved' ? kBlue : kPink,
),
overflow: TextOverflow.clip,
),
),
],
),
SizedBox(
height: 30,
),