first step form add patient profile

merge-requests/16/head
Elham Rababah 6 years ago
parent 1a584ea815
commit 404e4c4651

@ -1,4 +1,6 @@
import 'package:doctor_app_flutter/screens/patients/patient_profile_screen.dart';
import './screens/QR_reader_screen.dart';
import './screens/auth/change_password_screen.dart';
import './screens/auth/login_screen.dart';
@ -13,7 +15,7 @@ import './screens/patients/patient_search_screen.dart';
import './screens/patients/patients_screen.dart';
import './screens/settings/settings_screen.dart';
const String INIT_ROUTE = LOGIN;
const String INIT_ROUTE = PATIENTS;
const String HOME = '/';
const String LOGIN = 'login';
const String CHANGE_PASSWORD = 'change-password';
@ -23,11 +25,11 @@ const String MY_SCHEDULE = 'my-schedule';
const String QR_READER = 'qr-reader';
const String PATIENT_SEARCH = 'patients/patient-search';
const String PATIENTS = 'patients/patients';
const String PATIENTS_PROFILE = 'patients/patients-profile';
const String BLOOD_BANK = 'blood-bank';
const String DOCTOR_REPLY = 'doctor-reply';
const String MEDICINE_SEARCH = 'medicine-search';
const String SETTINGS = 'settings';
const LOADER ='loader';
var routes = {
HOME: (_) => DashboardScreen(),
@ -43,4 +45,5 @@ var routes = {
CHANGE_PASSWORD: (_) => ChangePasswordScreen(),
VERIFY_ACCOUNT: (_) => VerifyAccountScreen(),
VERIFICATION_METHODS:(_)=> VerificationMethodsScreen(),
PATIENTS_PROFILE:(_)=> PatientProfile()
};

@ -0,0 +1,16 @@
import 'package:doctor_app_flutter/widgets/patients/patinet_profile_widget.dart';
import 'package:doctor_app_flutter/widgets/shared/app_scaffold_widget.dart';
import 'package:flutter/material.dart';
class PatientProfile extends StatelessWidget {
const PatientProfile({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return AppScaffold(
// child: child,
appBarTitle: 'Patient Profile',
body: PatientProfileWidget(),
);
}
}

@ -1,3 +1,4 @@
import 'package:doctor_app_flutter/routes.dart';
import 'package:flutter/material.dart';
import '../../widgets/shared/app_scaffold_widget.dart';
@ -16,13 +17,16 @@ class PatientsScreen extends StatelessWidget {
body: Container(
child: Column(
children: litems.map((item) {
return CardWithBgWidget(
line1Text: 'Fahad AlSlehm - 324599',
line2Text: '12/04/2020 - 02:00 PM',
// line3Text: '',
heightPercentage: 0.15,
widthPercentage: 0.80);
return InkWell(
child: CardWithBgWidget(
line1Text: 'Fahad AlSlehm - 324599',
line2Text: '12/04/2020 - 02:00 PM',
heightPercentage: 0.15,
widthPercentage: 0.80),
onTap: (){
Navigator.of(context).pushNamed(PATIENTS_PROFILE);
},
);
}).toList(),
),
),

@ -0,0 +1,9 @@
import 'package:flutter/material.dart';
class PatientProfileWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
child: Center(child: Text('Heeeer Must be Patient Profile'),),
);
}
}
Loading…
Cancel
Save