|
|
|
|
@ -105,7 +105,7 @@ class _ServicesListPageState extends State<ServicesListPage> {
|
|
|
|
|
),
|
|
|
|
|
8.width,
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 10,
|
|
|
|
|
flex: 8,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
@ -117,18 +117,20 @@ class _ServicesListPageState extends State<ServicesListPage> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// 5.height,
|
|
|
|
|
Container(
|
|
|
|
|
child: ("${LocaleKeys.branchName.tr()}: ${categoryData.branchName}").toText(
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
color: MyColors.lightTextColor,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Flexible(
|
|
|
|
|
child: ("${LocaleKeys.branchName.tr()}: ${categoryData.branchName}").toText(
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
color: MyColors.lightTextColor,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
if (categoryData.services != null) ...[
|
|
|
|
|
Container(
|
|
|
|
|
child: ("${LocaleKeys.totalNumberOfServices.tr()} ${categoryData.services!.length}").toText(
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
color: MyColors.lightTextColor,
|
|
|
|
|
),
|
|
|
|
|
("${LocaleKeys.totalNumberOfServices.tr()} ${categoryData.services!.length}").toText(
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
color: MyColors.lightTextColor,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
],
|
|
|
|
|
@ -137,9 +139,10 @@ class _ServicesListPageState extends State<ServicesListPage> {
|
|
|
|
|
Expanded(
|
|
|
|
|
flex: 4,
|
|
|
|
|
child: Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
LocaleKeys.active.tr().toText(fontSize: 16),
|
|
|
|
|
8.width,
|
|
|
|
|
5.height,
|
|
|
|
|
Container(
|
|
|
|
|
width: 50,
|
|
|
|
|
height: 30,
|
|
|
|
|
@ -180,7 +183,6 @@ class _ServicesListPageState extends State<ServicesListPage> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<bool> updateCategoryStatus({required bool isCategoryActive, required int categoryId, required int branchId}) async {
|
|
|
|
|
log("isCategoryActive: $isCategoryActive");
|
|
|
|
|
final serviceVM = context.read<ServiceVM>();
|
|
|
|
|
bool status = await serviceVM.updateCategoryStatus(
|
|
|
|
|
context: context,
|
|
|
|
|
|