mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-11 09:38:55 +03:30
Improve color of repair button
This commit is contained in:
@@ -632,8 +632,8 @@ class MyItemsDetailsDataBox extends StatelessWidget {
|
||||
userData['roles']?.contains('Supervisor'))
|
||||
? TransferDestroyButton(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
firstColor: Colors.green,
|
||||
secondColor: Colors.lightGreen,
|
||||
firstColor: datas.repair == 1 ? kPink : Colors.green,
|
||||
secondColor: datas.repair == 1 ? kPinkSub : Colors.lightGreen,
|
||||
text: 'Repair',
|
||||
onTap: () {
|
||||
showDialog(
|
||||
@@ -668,8 +668,12 @@ class MyItemsDetailsDataBox extends StatelessWidget {
|
||||
builder: (context, itemProvider, child) {
|
||||
return TransferDestroyButton(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
firstColor: Colors.green,
|
||||
secondColor: Colors.lightGreen,
|
||||
firstColor: datas.repair == 1
|
||||
? kPink
|
||||
: Colors.green,
|
||||
secondColor: datas.repair == 1
|
||||
? kPinkSub
|
||||
: Colors.lightGreen,
|
||||
isLoadingButton:
|
||||
itemProvider.isloadingButton,
|
||||
onTap: () async {
|
||||
@@ -717,8 +721,9 @@ class MyItemsDetailsDataBox extends StatelessWidget {
|
||||
? datas.packageId != null
|
||||
? TransferDestroyButton(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
firstColor: Colors.green,
|
||||
secondColor: Colors.lightGreen,
|
||||
firstColor: datas.repair == 1 ? kPink : Colors.green,
|
||||
secondColor:
|
||||
datas.repair == 1 ? kPinkSub : Colors.lightGreen,
|
||||
text: 'Repair',
|
||||
onTap: () {
|
||||
showDialog(
|
||||
@@ -751,8 +756,12 @@ class MyItemsDetailsDataBox extends StatelessWidget {
|
||||
),
|
||||
TransferDestroyButton(
|
||||
deviceBlockSize: _deviceBlockSize,
|
||||
firstColor: Colors.green,
|
||||
secondColor: Colors.lightGreen,
|
||||
firstColor: datas.repair == 1
|
||||
? kPink
|
||||
: Colors.green,
|
||||
secondColor: datas.repair == 1
|
||||
? kPinkSub
|
||||
: Colors.lightGreen,
|
||||
onTap: () {
|
||||
Provider.of<MyItemProvider>(context,
|
||||
listen: false)
|
||||
|
||||
Reference in New Issue
Block a user