mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:38:56 +03:30
Change some ui and accessibility for transfer & ..
This commit is contained in:
@@ -425,6 +425,31 @@ class ItemDetailsDataBox extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
InkWell(
|
||||
onTap: () async => await launch(
|
||||
'https://cssd-doc.com/Show/Item/${datas.id.toString()}',
|
||||
),
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(vertical: 10),
|
||||
width: double.infinity * 2 / 3,
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black,
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
),
|
||||
child: Center(
|
||||
child: Text(
|
||||
'Show More Details',
|
||||
style: TextStyle(
|
||||
fontSize: 5.0 * _deviceBlockSize,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -437,15 +462,19 @@ class ItemDetailsDataBox extends StatelessWidget {
|
||||
// datas.hospital.contains(userData['medical_center']) ||
|
||||
// (userData['roles']?.contains('User')))
|
||||
// ?
|
||||
TransferDestroyButton(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
firstColor: kDarkBlue,
|
||||
secondColor: kDarkBlueSub,
|
||||
text: 'Transfer',
|
||||
onTap: () {
|
||||
push();
|
||||
},
|
||||
),
|
||||
if (userData['roles']?.contains('Admin') ||
|
||||
userData['roles']?.contains('Supervisor') ||
|
||||
(userData['roles']?.contains('User') &&
|
||||
(userData['name']?.contains(datas.userName.toString()))))
|
||||
TransferDestroyButton(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
firstColor: kDarkBlue,
|
||||
secondColor: kDarkBlueSub,
|
||||
text: 'Transfer',
|
||||
onTap: () {
|
||||
push();
|
||||
},
|
||||
),
|
||||
// : datas.packageId != "null"
|
||||
// ? TransferDestroyButton(
|
||||
// deviceBlockSize: _deviceBlockSize,
|
||||
@@ -457,11 +486,13 @@ class ItemDetailsDataBox extends StatelessWidget {
|
||||
// },
|
||||
// )
|
||||
// : Container(),
|
||||
if (datas.repair == 0)
|
||||
if (datas.packageId == "null")
|
||||
SizedBox(
|
||||
height: 10.0,
|
||||
),
|
||||
if (userData['roles']?.contains('Admin') ||
|
||||
userData['roles']?.contains('Supervisor'))
|
||||
if (datas.repair == 0)
|
||||
if (datas.packageId == "null")
|
||||
SizedBox(
|
||||
height: 10.0,
|
||||
),
|
||||
if (datas.repair == 0)
|
||||
(userData['roles']?.contains('Admin') ||
|
||||
(userData['roles']?.contains('Supervisor') &&
|
||||
@@ -810,28 +841,6 @@ class ItemDetailsDataBox extends StatelessWidget {
|
||||
)
|
||||
: Container()
|
||||
: Container(),
|
||||
SizedBox(
|
||||
height: 20.0,
|
||||
),
|
||||
InkWell(
|
||||
onTap: () async => await launch(
|
||||
'https://cssd-doc.com/Show/Item/${datas.id.toString()}',
|
||||
),
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(vertical: 20),
|
||||
width: double.infinity,
|
||||
decoration: BoxDecoration(
|
||||
color: Color.fromRGBO(230, 230, 230, 1),
|
||||
borderRadius: BorderRadius.circular(25),
|
||||
),
|
||||
child: Center(
|
||||
child: Text(
|
||||
'Show More Details',
|
||||
style: TextStyle(fontWeight: FontWeight.w700),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
height: 30,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user