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