Inpatient services in dev
parent
2fea4b2b07
commit
906fd5fd6a
@ -0,0 +1,65 @@
|
|||||||
|
import 'package:diplomaticquarterapp/core/viewModels/project_view_model.dart';
|
||||||
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:provider/provider.dart';
|
||||||
|
|
||||||
|
class InPatientAdvancePayment extends StatefulWidget {
|
||||||
|
const InPatientAdvancePayment({Key key}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<InPatientAdvancePayment> createState() => _InPatientAdvancePaymentState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _InPatientAdvancePaymentState extends State<InPatientAdvancePayment> with SingleTickerProviderStateMixin {
|
||||||
|
TabController _tabController;
|
||||||
|
ProjectViewModel projectViewModel;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void initState() {
|
||||||
|
_tabController = TabController(length: 2, vsync: this);
|
||||||
|
super.initState();
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
projectViewModel = Provider.of(context);
|
||||||
|
return AppScaffold(
|
||||||
|
isShowAppBar: true,
|
||||||
|
isShowDecPage: false,
|
||||||
|
showNewAppBarTitle: true,
|
||||||
|
showNewAppBar: true,
|
||||||
|
appBarTitle: TranslationBase.of(context).advancePayment,
|
||||||
|
body: Column(
|
||||||
|
children: [
|
||||||
|
TabBar(
|
||||||
|
controller: _tabController,
|
||||||
|
indicatorWeight: 3.0,
|
||||||
|
indicatorSize: TabBarIndicatorSize.tab,
|
||||||
|
labelColor: Color(0xff2B353E),
|
||||||
|
unselectedLabelColor: Color(0xff575757),
|
||||||
|
labelPadding: EdgeInsets.only(top: 15, bottom: 13, left: 20, right: 20),
|
||||||
|
labelStyle: TextStyle(
|
||||||
|
fontFamily: projectViewModel.isArabic ? 'Cairo' : 'Poppins',
|
||||||
|
fontSize: 16,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
letterSpacing: -0.48,
|
||||||
|
),
|
||||||
|
unselectedLabelStyle: TextStyle(
|
||||||
|
fontFamily: projectViewModel.isArabic ? 'Cairo' : 'Poppins',
|
||||||
|
fontSize: 16,
|
||||||
|
fontWeight: FontWeight.w600,
|
||||||
|
letterSpacing: -0.48,
|
||||||
|
),
|
||||||
|
tabs: [Text(TranslationBase.of(context).pending), Text(TranslationBase.of(context).close)],
|
||||||
|
onTap: (index) {
|
||||||
|
if (index == 1) {
|
||||||
|
// getOBGyneOrdersList();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,95 @@
|
|||||||
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
||||||
|
import 'package:diplomaticquarterapp/uitl/utils_new.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/others/app_expandable_notifier.dart';
|
||||||
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
||||||
|
import 'package:flutter/material.dart';
|
||||||
|
|
||||||
|
class MealPlanPage extends StatefulWidget {
|
||||||
|
const MealPlanPage({Key key}) : super(key: key);
|
||||||
|
|
||||||
|
@override
|
||||||
|
State<MealPlanPage> createState() => _MealPlanPageState();
|
||||||
|
}
|
||||||
|
|
||||||
|
class _MealPlanPageState extends State<MealPlanPage> {
|
||||||
|
@override
|
||||||
|
Widget build(BuildContext context) {
|
||||||
|
return AppScaffold(
|
||||||
|
isShowAppBar: true,
|
||||||
|
isShowDecPage: false,
|
||||||
|
showNewAppBarTitle: true,
|
||||||
|
showNewAppBar: true,
|
||||||
|
appBarTitle: TranslationBase.of(context).mealPlanTitle,
|
||||||
|
body: SingleChildScrollView(
|
||||||
|
child: Padding(
|
||||||
|
padding: EdgeInsets.all(21.0),
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
decoration: containerRadius(Colors.white, 12),
|
||||||
|
child: AppExpandableNotifier(
|
||||||
|
title: "Breakfast TAT: 10:00 AM",
|
||||||
|
isTitleSingleLine: false,
|
||||||
|
widgetColor: Colors.transparent,
|
||||||
|
bodyWidget: Column(
|
||||||
|
children: [
|
||||||
|
getDivider(),
|
||||||
|
Container(
|
||||||
|
height: 200.0,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
mHeight(21),
|
||||||
|
Container(
|
||||||
|
decoration: containerRadius(Colors.white, 12),
|
||||||
|
child: AppExpandableNotifier(
|
||||||
|
title: "Lunch TAT: 04:00 PM",
|
||||||
|
isTitleSingleLine: false,
|
||||||
|
widgetColor: Colors.transparent,
|
||||||
|
bodyWidget: Column(
|
||||||
|
children: [
|
||||||
|
getDivider(),
|
||||||
|
Container(
|
||||||
|
height: 200.0,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
mHeight(21),
|
||||||
|
Container(
|
||||||
|
decoration: containerRadius(Colors.white, 12),
|
||||||
|
child: AppExpandableNotifier(
|
||||||
|
title: "Dinner TAT: 12:00 AM",
|
||||||
|
isTitleSingleLine: false,
|
||||||
|
widgetColor: Colors.transparent,
|
||||||
|
bodyWidget: Column(
|
||||||
|
children: [
|
||||||
|
getDivider(),
|
||||||
|
Container(
|
||||||
|
height: 200.0,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
Widget getDivider() {
|
||||||
|
return Padding(
|
||||||
|
padding: EdgeInsets.only(left: 15, right: 15),
|
||||||
|
child: Divider(
|
||||||
|
height: 1.5,
|
||||||
|
thickness: 2.0,
|
||||||
|
color: Colors.black,
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue