todo page implementation started

pull/91/head
haroon amjad 5 months ago
parent d3a8d545b2
commit f280d4a28a

@ -5,6 +5,7 @@ import 'package:hmg_patient_app_new/presentation/book_appointment/book_appointme
import 'package:hmg_patient_app_new/presentation/hmg_services/services_page.dart'; import 'package:hmg_patient_app_new/presentation/hmg_services/services_page.dart';
import 'package:hmg_patient_app_new/presentation/home/landing_page.dart'; import 'package:hmg_patient_app_new/presentation/home/landing_page.dart';
import 'package:hmg_patient_app_new/presentation/medical_file/medical_file_page.dart'; import 'package:hmg_patient_app_new/presentation/medical_file/medical_file_page.dart';
import 'package:hmg_patient_app_new/presentation/todo/todo_page.dart';
import 'package:hmg_patient_app_new/widgets/bottom_navigation/bottom_navigation.dart'; import 'package:hmg_patient_app_new/widgets/bottom_navigation/bottom_navigation.dart';
class LandingNavigation extends StatefulWidget { class LandingNavigation extends StatefulWidget {
@ -30,7 +31,7 @@ class _LandingNavigationState extends State<LandingNavigation> {
const LandingPage(), const LandingPage(),
appState.isAuthenticated ? MedicalFilePage() : /* need add feedback page */ const LandingPage(), appState.isAuthenticated ? MedicalFilePage() : /* need add feedback page */ const LandingPage(),
BookAppointmentPage(), BookAppointmentPage(),
const LandingPage(), const ToDoPage(),
appState.isAuthenticated ? /* need add news page */ ServicesPage() : const LandingPage(), appState.isAuthenticated ? /* need add news page */ ServicesPage() : const LandingPage(),
], ],
), ),

@ -1,23 +1,31 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:hmg_patient_app_new/core/utils/size_utils.dart';
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
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';
class ToDoPage extends StatelessWidget { class ToDoPage extends StatefulWidget {
const ToDoPage({super.key}); const ToDoPage({super.key});
@override
State<ToDoPage> createState() => _ToDoPageState();
}
class _ToDoPageState extends State<ToDoPage> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return CollapsingListView(
backgroundColor: AppColors.bgScaffoldColor, title: "ToDo List".needTranslation,
appBar: AppBar( isLeading: false,
title: const Text('Appointments'), child: Column(
backgroundColor: AppColors.bgScaffoldColor, crossAxisAlignment: CrossAxisAlignment.start,
), children: [
body: const Center( SizedBox(height: 16.h),
child: Text( "Ancillary Orders".needTranslation.toText18(isBold: true),
'Appointments Page',
style: TextStyle(fontSize: 24), ],
), ).paddingSymmetrical(24.w, 0),
),
); );
} }
} }
Loading…
Cancel
Save