|
|
|
@ -18,6 +18,7 @@ import 'package:hmg_patient_app_new/presentation/my_invoices/widgets/invoice_lis
|
|
|
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
|
|
|
import 'package:hmg_patient_app_new/theme/colors.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/appbar/collapsing_list_view.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/appbar/collapsing_list_view.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/common_bottom_sheet.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/common_bottom_sheet.dart';
|
|
|
|
|
|
|
|
import 'package:hmg_patient_app_new/widgets/custom_tab_bar.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/loader/bottomsheet_loader.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/loader/bottomsheet_loader.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/routes/custom_page_route.dart';
|
|
|
|
import 'package:hmg_patient_app_new/widgets/routes/custom_page_route.dart';
|
|
|
|
import 'package:open_filex/open_filex.dart';
|
|
|
|
import 'package:open_filex/open_filex.dart';
|
|
|
|
@ -122,6 +123,21 @@ class _MyInvoicesListState extends State<MyInvoicesList> {
|
|
|
|
child: Consumer<MyInvoicesViewModel>(builder: (context, myInvoicesVM, child) {
|
|
|
|
child: Consumer<MyInvoicesViewModel>(builder: (context, myInvoicesVM, child) {
|
|
|
|
return Column(
|
|
|
|
return Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
|
|
|
|
CustomTabBar(
|
|
|
|
|
|
|
|
activeTextColor: Color(0xffED1C2B),
|
|
|
|
|
|
|
|
activeBackgroundColor: Color(0xffED1C2B).withValues(alpha: .1),
|
|
|
|
|
|
|
|
initialIndex: 0,
|
|
|
|
|
|
|
|
tabs: [
|
|
|
|
|
|
|
|
CustomTabBarModel(null, LocaleKeys.visitsOrders.tr(context: context)),
|
|
|
|
|
|
|
|
CustomTabBarModel(null, LocaleKeys.pharmacy.tr(context: context)),
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
onTabChange: (index) {
|
|
|
|
|
|
|
|
myInvoicesVM.onTabChanged(index);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
).paddingSymmetrical(24.h, 0.h),
|
|
|
|
|
|
|
|
myInvoicesVM.selectedTabIndex == 0 ? Column(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
SizedBox(height: 16.h),
|
|
|
|
Row(
|
|
|
|
Row(
|
|
|
|
@ -313,6 +329,8 @@ class _MyInvoicesListState extends State<MyInvoicesList> {
|
|
|
|
: Utils.getNoDataWidget(context);
|
|
|
|
: Utils.getNoDataWidget(context);
|
|
|
|
}).paddingSymmetrical(24.w, 0.h),
|
|
|
|
}).paddingSymmetrical(24.w, 0.h),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
) : Container(),
|
|
|
|
|
|
|
|
],
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|