mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 19:28:57 +03:30
Change some ui and accessibility for transfer & ..
This commit is contained in:
@@ -57,7 +57,7 @@ class _ItemDetailScreenState extends State<ItemDetailScreen> {
|
|||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
titleSpacing: -10,
|
titleSpacing: -10,
|
||||||
title: Text(
|
title: Text(
|
||||||
'My Items',
|
'Items',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -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']) ||
|
// datas.hospital.contains(userData['medical_center']) ||
|
||||||
// (userData['roles']?.contains('User')))
|
// (userData['roles']?.contains('User')))
|
||||||
// ?
|
// ?
|
||||||
TransferDestroyButton(
|
if (userData['roles']?.contains('Admin') ||
|
||||||
deviceBlockSize: _deviceBlockSize,
|
userData['roles']?.contains('Supervisor') ||
|
||||||
firstColor: kDarkBlue,
|
(userData['roles']?.contains('User') &&
|
||||||
secondColor: kDarkBlueSub,
|
(userData['name']?.contains(datas.userName.toString()))))
|
||||||
text: 'Transfer',
|
TransferDestroyButton(
|
||||||
onTap: () {
|
deviceBlockSize: _deviceBlockSize,
|
||||||
push();
|
firstColor: kDarkBlue,
|
||||||
},
|
secondColor: kDarkBlueSub,
|
||||||
),
|
text: 'Transfer',
|
||||||
|
onTap: () {
|
||||||
|
push();
|
||||||
|
},
|
||||||
|
),
|
||||||
// : datas.packageId != "null"
|
// : datas.packageId != "null"
|
||||||
// ? TransferDestroyButton(
|
// ? TransferDestroyButton(
|
||||||
// deviceBlockSize: _deviceBlockSize,
|
// deviceBlockSize: _deviceBlockSize,
|
||||||
@@ -457,11 +486,13 @@ class ItemDetailsDataBox extends StatelessWidget {
|
|||||||
// },
|
// },
|
||||||
// )
|
// )
|
||||||
// : Container(),
|
// : Container(),
|
||||||
if (datas.repair == 0)
|
if (userData['roles']?.contains('Admin') ||
|
||||||
if (datas.packageId == "null")
|
userData['roles']?.contains('Supervisor'))
|
||||||
SizedBox(
|
if (datas.repair == 0)
|
||||||
height: 10.0,
|
if (datas.packageId == "null")
|
||||||
),
|
SizedBox(
|
||||||
|
height: 10.0,
|
||||||
|
),
|
||||||
if (datas.repair == 0)
|
if (datas.repair == 0)
|
||||||
(userData['roles']?.contains('Admin') ||
|
(userData['roles']?.contains('Admin') ||
|
||||||
(userData['roles']?.contains('Supervisor') &&
|
(userData['roles']?.contains('Supervisor') &&
|
||||||
@@ -810,28 +841,6 @@ class ItemDetailsDataBox extends StatelessWidget {
|
|||||||
)
|
)
|
||||||
: Container()
|
: Container()
|
||||||
: 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(
|
SizedBox(
|
||||||
height: 30,
|
height: 30,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user