Skip to content

Commit

Permalink
Implement appointment summary screen
Browse files Browse the repository at this point in the history
  • Loading branch information
rusiruavb committed Oct 7, 2021
1 parent ebe7a18 commit c9acf8a
Show file tree
Hide file tree
Showing 8 changed files with 817 additions and 33 deletions.
1 change: 1 addition & 0 deletions lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const int TEXT_SECONDARY = 0xff4a4a4a;
const int COLOR_PRIMARY = 0xffe62a29;
const int COLOR_PRIMARY_DISABLED = 0xffe95b5a;
const int COLOR_SECONDARY = 0xffe2e2e2;
const int COLOR_YELLOW = 0XFFFFB029;
const String FONT_FAMILY_PRIMARY = 'Larsseit';
const String FONT_FAMILY_SECONDARY = 'OpenSans';
const String FONT_FAMILY_DEFAULT = 'Roboto';
Expand Down
3 changes: 0 additions & 3 deletions lib/providers/search_doctor_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ class SearchDoctorProvider with ChangeNotifier {
},
body: jsonEncode(<String, String>{
'name': doctorName,
'specialization': specilization,
'date': selectedDate,
'hospital': hospitalName,
}));

if (responseData.statusCode == 200) {
Expand Down
10 changes: 10 additions & 0 deletions lib/route_generator.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:dialog_doc990_mobile/screens/appointment-summary/appointment_summary_screen.dart';
import 'package:dialog_doc990_mobile/screens/channel_doctor/channel_doctor_screen.dart';
import 'package:dialog_doc990_mobile/screens/channel_doctor/search_doctors.dart';
import 'package:dialog_doc990_mobile/screens/home/home_screen.dart';
Expand Down Expand Up @@ -77,6 +78,15 @@ class RouteGenerator {
child: c,
),
);
case '/appointment-summary':
return PageRouteBuilder(
settings: settings,
pageBuilder: (_, __, ___) => AppointmentSummary(),
transitionsBuilder: (_, a, __, c) => FadeTransition(
opacity: a,
child: c,
),
);
default:
return _errorRoute();
}
Expand Down
Loading

0 comments on commit c9acf8a

Please sign in to comment.