You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
5.5 KiB
Dart
138 lines
5.5 KiB
Dart
import 'dart:ui';
|
|
|
|
import 'package:diplomaticquarterapp/core/model/ImagesInfo.dart';
|
|
import 'package:diplomaticquarterapp/core/viewModels/all_habib_medical_services/e_referral_view_model.dart';
|
|
import 'package:diplomaticquarterapp/core/viewModels/medical/prescriptions_view_model.dart';
|
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/E-Referral/New_E_Referral/new_e_referral_index_page.dart';
|
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/E-Referral/New_E_Referral/new_e_referral_step_one_page.dart';
|
|
import 'package:diplomaticquarterapp/pages/AlHabibMedicalService/E-Referral/search_for_referrals_page.dart';
|
|
import 'package:diplomaticquarterapp/pages/base/base_view.dart';
|
|
import 'package:diplomaticquarterapp/pages/medical/prescriptions/prescriptions_history_page.dart';
|
|
import 'package:diplomaticquarterapp/pages/medical/prescriptions/prescriptions_page.dart';
|
|
import 'package:diplomaticquarterapp/uitl/translations_delegate_base.dart';
|
|
import 'package:diplomaticquarterapp/widgets/data_display/text.dart';
|
|
import 'package:diplomaticquarterapp/widgets/others/app_scaffold_widget.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class EReferralPage extends StatefulWidget {
|
|
@override
|
|
_EReferralPageState createState() => _EReferralPageState();
|
|
}
|
|
|
|
class _EReferralPageState extends State<EReferralPage>
|
|
with SingleTickerProviderStateMixin {
|
|
TabController _tabController;
|
|
|
|
@override
|
|
void initState() {
|
|
super.initState();
|
|
_tabController = TabController(length: 2, vsync: this);
|
|
}
|
|
|
|
@override
|
|
void dispose() {
|
|
super.dispose();
|
|
_tabController.dispose();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return BaseView<EReferralViewModel>(
|
|
builder: (_, model, widget) =>
|
|
AppScaffold(
|
|
isShowAppBar: true,
|
|
appBarTitle: "E-Referral",
|
|
description: "This service allows you to submit a Referral request from any health care providers either inside or outside the kingdom of Saudi Arabia to any of HMG Hospitals, By filling some of the patient's data and attaching the medical reports, moreover you can track the request status (Under process, Accepted or Rejected)",
|
|
imagesInfo: [
|
|
ImagesInfo(
|
|
imageAr: 'assets/images/Wifi-AR.png',
|
|
imageEn: 'assets/images/wifi-EN.png',
|
|
isAsset: true)
|
|
],
|
|
body: Scaffold(
|
|
extendBodyBehindAppBar: true,
|
|
appBar: PreferredSize(
|
|
preferredSize: Size.fromHeight(65.0),
|
|
child: Stack(
|
|
children: <Widget>[
|
|
Positioned(
|
|
bottom: 1,
|
|
left: 0,
|
|
right: 0,
|
|
child: BackdropFilter(
|
|
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
|
|
child: Container(
|
|
color: Theme.of(context)
|
|
.scaffoldBackgroundColor
|
|
.withOpacity(0.8),
|
|
height: 70.0,
|
|
),
|
|
),
|
|
),
|
|
Center(
|
|
child: Container(
|
|
height: 60.0,
|
|
margin: EdgeInsets.only(top: 10.0),
|
|
width: MediaQuery.of(context).size.width * 0.9,
|
|
decoration: BoxDecoration(
|
|
border: Border(
|
|
bottom: BorderSide(
|
|
color: Theme.of(context).dividerColor,
|
|
width: 0.7),
|
|
),
|
|
color: Colors.white),
|
|
child: Center(
|
|
child: TabBar(
|
|
isScrollable: true,
|
|
controller: _tabController,
|
|
indicatorWeight: 5.0,
|
|
indicatorSize: TabBarIndicatorSize.tab,
|
|
indicatorColor: Colors.red[800],
|
|
labelColor: Theme.of(context).primaryColor,
|
|
labelPadding:
|
|
EdgeInsets.only(top: 4.0, left: 18.0, right: 18.0),
|
|
unselectedLabelColor: Colors.grey[800],
|
|
tabs: [
|
|
Container(
|
|
width: MediaQuery.of(context).size.width * 0.37,
|
|
child: Center(
|
|
child: Texts(TranslationBase.of(context).newReferral, textAlign: TextAlign.center,),
|
|
),
|
|
),
|
|
Container(
|
|
width: MediaQuery.of(context).size.width * 0.37,
|
|
child: Center(
|
|
child: Texts(TranslationBase.of(context).searchForReferrals , textAlign: TextAlign.center,),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
body: Column(
|
|
children: <Widget>[
|
|
Expanded(
|
|
child: TabBarView(
|
|
physics: BouncingScrollPhysics(),
|
|
controller: _tabController,
|
|
children: <Widget>[
|
|
StartIndexForNewEReferral(
|
|
),
|
|
SearchForReferralsPage(
|
|
)
|
|
],
|
|
),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|