|
|
|
|
@ -1,4 +1,3 @@
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
import 'package:mc_common_app/classes/consts.dart';
|
|
|
|
|
import 'package:mc_common_app/config/routes.dart';
|
|
|
|
|
@ -16,9 +15,7 @@ import 'package:provider/provider.dart';
|
|
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
|
|
|
|
|
|
|
|
|
class BranchAppointmentFragment extends StatelessWidget {
|
|
|
|
|
const BranchAppointmentFragment({
|
|
|
|
|
Key? key,
|
|
|
|
|
}) : super(key: key);
|
|
|
|
|
const BranchAppointmentFragment({super.key});
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
@ -45,7 +42,9 @@ class BranchAppointmentFragment extends StatelessWidget {
|
|
|
|
|
return RefreshIndicator(
|
|
|
|
|
onRefresh: () async => serviceVM.getBranchAndServices(),
|
|
|
|
|
child: branches.isEmpty
|
|
|
|
|
? Center(child: LocaleKeys.noBranchFound.tr().toText(fontSize: 16, color: MyColors.lightTextColor, fontWeight: MyFonts.Medium),)
|
|
|
|
|
? Center(
|
|
|
|
|
child: LocaleKeys.noBranchFound.tr().toText(fontSize: 16, color: MyColors.lightTextColor, fontWeight: MyFonts.Medium),
|
|
|
|
|
)
|
|
|
|
|
: ListView.separated(
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
return Row(
|
|
|
|
|
@ -71,7 +70,6 @@ class BranchAppointmentFragment extends StatelessWidget {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
// Row(
|
|
|
|
|
// children: [
|
|
|
|
|
// const Icon(
|
|
|
|
|
|