mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-10 19:19:17 +03:30
change remove button ui on tiles
This commit is contained in:
@@ -431,10 +431,18 @@ class TestItemBox extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Container(
|
||||||
Icons.delete,
|
padding: EdgeInsets.all(7),
|
||||||
size: 5 * _deviceBlockSize,
|
width: 8 * _deviceBlockSize,
|
||||||
color: Colors.black,
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: kPink,
|
||||||
|
),
|
||||||
|
child: Icon(
|
||||||
|
Icons.delete_outlined,
|
||||||
|
size: 4 * _deviceBlockSize,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: (userData['roles']?.contains('Supervisor') &&
|
: (userData['roles']?.contains('Supervisor') &&
|
||||||
@@ -471,10 +479,18 @@ class TestItemBox extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Container(
|
||||||
Icons.delete,
|
padding: EdgeInsets.all(7),
|
||||||
size: 5 * _deviceBlockSize,
|
width: 8 * _deviceBlockSize,
|
||||||
color: Colors.black,
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: kPink,
|
||||||
|
),
|
||||||
|
child: Icon(
|
||||||
|
Icons.delete_outlined,
|
||||||
|
size: 4 * _deviceBlockSize,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: userData['roles']?.contains('Admin') ?? false
|
: userData['roles']?.contains('Admin') ?? false
|
||||||
@@ -511,10 +527,18 @@ class TestItemBox extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Container(
|
||||||
Icons.delete,
|
padding: EdgeInsets.all(7),
|
||||||
size: 5 * _deviceBlockSize,
|
width: 8 * _deviceBlockSize,
|
||||||
color: Colors.black,
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: kPink,
|
||||||
|
),
|
||||||
|
child: Icon(
|
||||||
|
Icons.delete_outlined,
|
||||||
|
size: 4 * _deviceBlockSize,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
: Container(),
|
: Container(),
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
|||||||
import 'package:intl/intl.dart';
|
import 'package:intl/intl.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
|
import '../../../config/colors.dart';
|
||||||
import '../../../config/routes.dart';
|
import '../../../config/routes.dart';
|
||||||
import '../../../models/cycles_models.dart';
|
import '../../../models/cycles_models.dart';
|
||||||
|
|
||||||
@@ -161,10 +162,18 @@ class CycleItemBox extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Container(
|
||||||
Icons.delete,
|
padding: EdgeInsets.all(7),
|
||||||
size: 5 * _deviceBlockSize,
|
width: 8 * _deviceBlockSize,
|
||||||
color: Colors.black,
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: kPink,
|
||||||
|
),
|
||||||
|
child: Icon(
|
||||||
|
Icons.delete_outlined,
|
||||||
|
size: 4 * _deviceBlockSize,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
|
import '../../../config/colors.dart';
|
||||||
import '../../../config/routes.dart';
|
import '../../../config/routes.dart';
|
||||||
import '../../../models/label_models.dart';
|
import '../../../models/label_models.dart';
|
||||||
|
|
||||||
@@ -153,10 +154,18 @@ class LabelItemBox extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Container(
|
||||||
Icons.delete,
|
padding: EdgeInsets.all(7),
|
||||||
size: 5 * _deviceBlockSize,
|
width: 8 * _deviceBlockSize,
|
||||||
color: Colors.black,
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: kPink,
|
||||||
|
),
|
||||||
|
child: Icon(
|
||||||
|
Icons.delete_outlined,
|
||||||
|
size: 4 * _deviceBlockSize,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|||||||
@@ -168,10 +168,18 @@ class PackageItemBox extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
child: Icon(
|
child: Container(
|
||||||
Icons.delete,
|
padding: EdgeInsets.all(7),
|
||||||
size: 5 * _deviceBlockSize,
|
width: 8 * _deviceBlockSize,
|
||||||
color: Colors.black,
|
decoration: BoxDecoration(
|
||||||
|
shape: BoxShape.circle,
|
||||||
|
color: kPink,
|
||||||
|
),
|
||||||
|
child: Icon(
|
||||||
|
Icons.delete_outlined,
|
||||||
|
size: 4 * _deviceBlockSize,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|||||||
Reference in New Issue
Block a user