From 4e85464b96ffdec61044a2747156b94c58c7a4a1 Mon Sep 17 00:00:00 2001 From: spellsuvam Date: Thu, 30 Jun 2022 10:23:28 +0545 Subject: [PATCH] unwanted folder deleted --- lib/heallivedoctormodeltest/availableday.dart | 63 ---- lib/heallivedoctormodeltest/clinicdata.dart | 27 -- .../clinicdetailsofdoctor.dart | 127 -------- lib/heallivedoctormodeltest/doctordata.dart | 4 - .../doctordetails.dart | 63 ---- lib/heallivedoctormodeltest/enums..dart | 9 - lib/heallivedoctormodeltest/timeslot.dart | 54 ---- .../uitoaddclinic.dart | 130 --------- .../workingdaysandshiftwidget.dart | 276 ------------------ lib/homepage.dart | 6 +- lib/main.dart | 3 +- 11 files changed, 2 insertions(+), 760 deletions(-) delete mode 100644 lib/heallivedoctormodeltest/availableday.dart delete mode 100644 lib/heallivedoctormodeltest/clinicdata.dart delete mode 100644 lib/heallivedoctormodeltest/clinicdetailsofdoctor.dart delete mode 100644 lib/heallivedoctormodeltest/doctordata.dart delete mode 100644 lib/heallivedoctormodeltest/doctordetails.dart delete mode 100644 lib/heallivedoctormodeltest/enums..dart delete mode 100644 lib/heallivedoctormodeltest/timeslot.dart delete mode 100644 lib/heallivedoctormodeltest/uitoaddclinic.dart delete mode 100644 lib/heallivedoctormodeltest/workingdaysandshiftwidget.dart diff --git a/lib/heallivedoctormodeltest/availableday.dart b/lib/heallivedoctormodeltest/availableday.dart deleted file mode 100644 index e480080..0000000 --- a/lib/heallivedoctormodeltest/availableday.dart +++ /dev/null @@ -1,63 +0,0 @@ -import 'dart:convert'; - -import 'package:flutter/foundation.dart'; - -import 'timeslot.dart'; - -class AvailableDay { - List workingDays; - List availableTimeSlots; - AvailableDay({ - required this.workingDays, - required this.availableTimeSlots, - }); - - AvailableDay copyWith({ - List? workingDays, - List? availableTimeSlots, - }) { - return AvailableDay( - workingDays: workingDays ?? this.workingDays, - availableTimeSlots: availableTimeSlots ?? this.availableTimeSlots, - ); - } - - Map toMap() { - return { - 'workingDays': workingDays, - 'availableTimeSlots': availableTimeSlots.map((x) => x.toMap()).toList(), - }; - } - - factory AvailableDay.fromMap(Map map) { - return AvailableDay( - workingDays: List.from((map['workingDays'] as List)), - availableTimeSlots: List.from( - (map['availableTimeSlots'] as List).map( - (x) => TimeSlot.fromMap(x as Map), - ), - ), - ); - } - - String toJson() => json.encode(toMap()); - - factory AvailableDay.fromJson(String source) => - AvailableDay.fromMap(json.decode(source) as Map); - - @override - String toString() => - 'AvailableDay(workingDays: $workingDays, availableTimeSlots: $availableTimeSlots)'; - - @override - bool operator ==(Object other) { - if (identical(this, other)) return true; - - return other is AvailableDay && - listEquals(other.workingDays, workingDays) && - listEquals(other.availableTimeSlots, availableTimeSlots); - } - - @override - int get hashCode => workingDays.hashCode ^ availableTimeSlots.hashCode; -} diff --git a/lib/heallivedoctormodeltest/clinicdata.dart b/lib/heallivedoctormodeltest/clinicdata.dart deleted file mode 100644 index df10af3..0000000 --- a/lib/heallivedoctormodeltest/clinicdata.dart +++ /dev/null @@ -1,27 +0,0 @@ -import 'availableday.dart'; -import 'clinicdetailsofdoctor.dart'; -import 'timeslot.dart'; - -ClinicDetailsOfDoctor clinic1 = ClinicDetailsOfDoctor( - clinicName: "rajisha clinic", - addressLine: "godhawari", - appointmentDuration: "15", - country: "nepal", - emergencyCharge: "500", - googleMapLink: "www.map.com", - state: "state 1", - normalAppointmentCharge: "500", - availableDays: [ - AvailableDay(workingDays: [ - "friday", - "saturday" - ], availableTimeSlots: [ - TimeSlot(startTime: "11:00", endTime: "2:00"), - TimeSlot(startTime: "4:00", endTime: "6:00"), - TimeSlot(startTime: "4:00", endTime: "6:00") - ]), - AvailableDay( - workingDays: ["tuesday"], - availableTimeSlots: [TimeSlot(startTime: "12:00", endTime: "4:00")]) - ], -); diff --git a/lib/heallivedoctormodeltest/clinicdetailsofdoctor.dart b/lib/heallivedoctormodeltest/clinicdetailsofdoctor.dart deleted file mode 100644 index 69af3ac..0000000 --- a/lib/heallivedoctormodeltest/clinicdetailsofdoctor.dart +++ /dev/null @@ -1,127 +0,0 @@ -// ignore_for_file: public_member_api_docs, sort_constructors_first -import 'dart:convert'; - -import 'package:flutter/foundation.dart'; - -import 'availableday.dart'; - -class ClinicDetailsOfDoctor { - String clinicName; - String country; - String state; - String addressLine; - String? googleMapLink; - String appointmentDuration; - String normalAppointmentCharge; - String emergencyCharge; - List availableDays; - ClinicDetailsOfDoctor({ - required this.clinicName, - required this.country, - required this.state, - required this.addressLine, - this.googleMapLink, - required this.appointmentDuration, - required this.normalAppointmentCharge, - required this.emergencyCharge, - required this.availableDays, - }); - - ClinicDetailsOfDoctor copyWith({ - String? clinicName, - String? country, - String? state, - String? addressLine, - String? googleMapLink, - String? appointmentDuration, - String? normalAppointmentCharge, - String? emergencyCharge, - List? availableDays, - }) { - return ClinicDetailsOfDoctor( - clinicName: clinicName ?? this.clinicName, - country: country ?? this.country, - state: state ?? this.state, - addressLine: addressLine ?? this.addressLine, - googleMapLink: googleMapLink ?? this.googleMapLink, - appointmentDuration: appointmentDuration ?? this.appointmentDuration, - normalAppointmentCharge: - normalAppointmentCharge ?? this.normalAppointmentCharge, - emergencyCharge: emergencyCharge ?? this.emergencyCharge, - availableDays: availableDays ?? this.availableDays, - ); - } - - Map toMap() { - return { - 'clinicName': clinicName, - 'country': country, - 'state': state, - 'addressLine': addressLine, - 'googleMapLink': googleMapLink, - 'appointmentDuration': appointmentDuration, - 'normalAppointmentCharge': normalAppointmentCharge, - 'emergencyCharge': emergencyCharge, - 'availableDays': availableDays.map((x) => x.toMap()).toList(), - }; - } - - factory ClinicDetailsOfDoctor.fromMap(Map map) { - return ClinicDetailsOfDoctor( - clinicName: map['clinicName'] as String, - country: map['country'] as String, - state: map['state'] as String, - addressLine: map['addressLine'] as String, - googleMapLink: - map['googleMapLink'] != null ? map['googleMapLink'] as String : null, - appointmentDuration: map['appointmentDuration'] as String, - normalAppointmentCharge: map['normalAppointmentCharge'] as String, - emergencyCharge: map['emergencyCharge'] as String, - availableDays: List.from( - (map['availableDays'] as List).map( - (x) => AvailableDay.fromMap(x as Map), - ), - ), - ); - } - - String toJson() => json.encode(toMap()); - - factory ClinicDetailsOfDoctor.fromJson(String source) => - ClinicDetailsOfDoctor.fromMap( - json.decode(source) as Map); - - @override - String toString() { - return 'ClinicDetailsOfDoctor(clinicName: $clinicName, country: $country, state: $state, addressLine: $addressLine, googleMapLink: $googleMapLink, appointmentDuration: $appointmentDuration, normalAppointmentCharge: $normalAppointmentCharge, emergencyCharge: $emergencyCharge, availableDays: $availableDays)'; - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) return true; - - return other is ClinicDetailsOfDoctor && - other.clinicName == clinicName && - other.country == country && - other.state == state && - other.addressLine == addressLine && - other.googleMapLink == googleMapLink && - other.appointmentDuration == appointmentDuration && - other.normalAppointmentCharge == normalAppointmentCharge && - other.emergencyCharge == emergencyCharge && - listEquals(other.availableDays, availableDays); - } - - @override - int get hashCode { - return clinicName.hashCode ^ - country.hashCode ^ - state.hashCode ^ - addressLine.hashCode ^ - googleMapLink.hashCode ^ - appointmentDuration.hashCode ^ - normalAppointmentCharge.hashCode ^ - emergencyCharge.hashCode ^ - availableDays.hashCode; - } -} diff --git a/lib/heallivedoctormodeltest/doctordata.dart b/lib/heallivedoctormodeltest/doctordata.dart deleted file mode 100644 index fedff74..0000000 --- a/lib/heallivedoctormodeltest/doctordata.dart +++ /dev/null @@ -1,4 +0,0 @@ -import 'package:camera_app/heallivedoctormodeltest/clinicdata.dart'; -import 'package:camera_app/heallivedoctormodeltest/doctordetails.dart'; - -DoctorDetails doctor1 = DoctorDetails(name: "shuvam", clinics: [clinic1]); diff --git a/lib/heallivedoctormodeltest/doctordetails.dart b/lib/heallivedoctormodeltest/doctordetails.dart deleted file mode 100644 index 5d4bde0..0000000 --- a/lib/heallivedoctormodeltest/doctordetails.dart +++ /dev/null @@ -1,63 +0,0 @@ -// ignore_for_file: public_member_api_docs, sort_constructors_first -import 'dart:convert'; - -import 'package:flutter/foundation.dart'; - -import 'package:camera_app/heallivedoctormodeltest/clinicdetailsofdoctor.dart'; - -class DoctorDetails { - String name; - List clinics; - DoctorDetails({ - required this.name, - required this.clinics, - }); - - DoctorDetails copyWith({ - String? name, - List? clinics, - }) { - return DoctorDetails( - name: name ?? this.name, - clinics: clinics ?? this.clinics, - ); - } - - Map toMap() { - return { - 'name': name, - 'clinics': clinics.map((x) => x.toMap()).toList(), - }; - } - - factory DoctorDetails.fromMap(Map map) { - return DoctorDetails( - name: map['name'] as String, - clinics: List.from( - (map['clinics'] as List).map( - (x) => ClinicDetailsOfDoctor.fromMap(x as Map), - ), - ), - ); - } - - String toJson() => json.encode(toMap()); - - factory DoctorDetails.fromJson(String source) => - DoctorDetails.fromMap(json.decode(source) as Map); - - @override - String toString() => 'DoctorDetails(name: $name, clinics: $clinics)'; - - @override - bool operator ==(Object other) { - if (identical(this, other)) return true; - - return other is DoctorDetails && - other.name == name && - listEquals(other.clinics, clinics); - } - - @override - int get hashCode => name.hashCode ^ clinics.hashCode; -} diff --git a/lib/heallivedoctormodeltest/enums..dart b/lib/heallivedoctormodeltest/enums..dart deleted file mode 100644 index bf69250..0000000 --- a/lib/heallivedoctormodeltest/enums..dart +++ /dev/null @@ -1,9 +0,0 @@ -enum WorkingDays { - sunday, - monday, - tuesday, - wednesday, - thursday, - friday, - saturday -} diff --git a/lib/heallivedoctormodeltest/timeslot.dart b/lib/heallivedoctormodeltest/timeslot.dart deleted file mode 100644 index b9ad5e9..0000000 --- a/lib/heallivedoctormodeltest/timeslot.dart +++ /dev/null @@ -1,54 +0,0 @@ -import 'dart:convert'; - -class TimeSlot { - String startTime; - String endTime; - TimeSlot({ - required this.startTime, - required this.endTime, - }); - - TimeSlot copyWith({ - String? startTime, - String? endTime, - }) { - return TimeSlot( - startTime: startTime ?? this.startTime, - endTime: endTime ?? this.endTime, - ); - } - - Map toMap() { - return { - 'startTime': startTime, - 'endTime': endTime, - }; - } - - factory TimeSlot.fromMap(Map map) { - return TimeSlot( - startTime: map['startTime'] as String, - endTime: map['endTime'] as String, - ); - } - - String toJson() => json.encode(toMap()); - - factory TimeSlot.fromJson(String source) => - TimeSlot.fromMap(json.decode(source) as Map); - - @override - String toString() => 'TimeSlot(startTime: $startTime, endTime: $endTime)'; - - @override - bool operator ==(Object other) { - if (identical(this, other)) return true; - - return other is TimeSlot && - other.startTime == startTime && - other.endTime == endTime; - } - - @override - int get hashCode => startTime.hashCode ^ endTime.hashCode; -} diff --git a/lib/heallivedoctormodeltest/uitoaddclinic.dart b/lib/heallivedoctormodeltest/uitoaddclinic.dart deleted file mode 100644 index 627b329..0000000 --- a/lib/heallivedoctormodeltest/uitoaddclinic.dart +++ /dev/null @@ -1,130 +0,0 @@ -import 'dart:developer'; - -import 'package:camera_app/heallivedoctormodeltest/availableday.dart'; -import 'package:camera_app/heallivedoctormodeltest/clinicdetailsofdoctor.dart'; -import 'package:camera_app/heallivedoctormodeltest/timeslot.dart'; -import 'package:camera_app/heallivedoctormodeltest/workingdaysandshiftwidget.dart'; -import 'package:flutter/material.dart'; -import 'clinicdata.dart'; - -class UIToAddClinic extends StatefulWidget { - const UIToAddClinic({Key? key}) : super(key: key); - @override - State createState() => _UIToAddClinicState(); -} - -class _UIToAddClinicState extends State { - Map getRequestBody( - ClinicDetailsOfDoctor clinicDetailsOfDoctor) { - Map requestBody = {}; - requestBody['clinicName'] = clinicDetailsOfDoctor.clinicName; - requestBody['country'] = clinicDetailsOfDoctor.country; - requestBody['state'] = clinicDetailsOfDoctor.state; - requestBody['addressLine'] = clinicDetailsOfDoctor.addressLine; - requestBody['googleMapLink'] = clinicDetailsOfDoctor.googleMapLink; - requestBody['appointmentDuration'] = - clinicDetailsOfDoctor.appointmentDuration; - requestBody['normalAppointmentCharge'] = - clinicDetailsOfDoctor.normalAppointmentCharge; - requestBody['emergencyCharge'] = clinicDetailsOfDoctor.emergencyCharge; - for (int i = 0; i < clinicDetailsOfDoctor.availableDays.length; i++) { - for (int j = 0; - j < clinicDetailsOfDoctor.availableDays[i].workingDays.length; - j++) { - requestBody['day[$i][$j]'] = - clinicDetailsOfDoctor.availableDays[i].workingDays[j]; - } - for (int k = 0; - k < clinicDetailsOfDoctor.availableDays[i].availableTimeSlots.length; - k++) { - requestBody['start_time[$i][$k]'] = clinicDetailsOfDoctor - .availableDays[i].availableTimeSlots[k].startTime; - requestBody['end_time[$i][$k]'] = clinicDetailsOfDoctor - .availableDays[i].availableTimeSlots[k].endTime; - } - } - return requestBody; - } - - final GlobalKey _formKey = GlobalKey(); - void validateAndSubmit() { - if (_formKey.currentState!.validate()) { - _formKey.currentState!.save(); - log(getRequestBody(clinic1).toString()); - } - } - - @override - Widget build(BuildContext context) { - return Scaffold( - appBar: AppBar(title: const Text("Add clinic")), - body: SingleChildScrollView( - child: Form( - key: _formKey, - child: Column( - children: [ - ...clinic1.availableDays - .asMap() - .map((i, element) => MapEntry( - i, - WorkingDaysAndShiftWidget( - day: element, - index: i, - onDelete: () { - setState(() { - clinic1.availableDays.removeAt(i); - }); - }, - ))) - .values - .toList(), - addWorkingDaysAndShiftsButton(), - saveButton(), - ], - ), - ), - ), - ); - } - - TextButton saveButton() { - return TextButton( - onPressed: () { - // log(clinic1.toJson().toString()); - validateAndSubmit(); - }, - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - children: const [Text("Save"), Icon(Icons.save)], - )); - } - - InkWell addWorkingDaysAndShiftsButton() { - return InkWell( - onTap: () { - setState(() { - clinic1.availableDays.add(AvailableDay( - workingDays: [], - availableTimeSlots: [TimeSlot(startTime: "", endTime: "")])); - }); - }, - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - const Text("Add Days and Shifts"), - const SizedBox( - width: 8, - ), - Container( - height: 30, - width: 30, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(10), - border: Border.all(color: Colors.grey.withOpacity(0.5))), - child: const Icon(Icons.add), - ), - ], - ), - ); - } -} diff --git a/lib/heallivedoctormodeltest/workingdaysandshiftwidget.dart b/lib/heallivedoctormodeltest/workingdaysandshiftwidget.dart deleted file mode 100644 index f5b38f3..0000000 --- a/lib/heallivedoctormodeltest/workingdaysandshiftwidget.dart +++ /dev/null @@ -1,276 +0,0 @@ -import 'dart:developer'; - -import 'package:camera_app/heallivedoctormodeltest/availableday.dart'; -import 'package:flutter/material.dart'; -import 'package:intl/intl.dart'; -import 'package:multi_select_flutter/multi_select_flutter.dart'; - -import 'clinicdata.dart'; -import 'timeslot.dart'; - -class WorkingDaysAndShiftWidget extends StatefulWidget { - const WorkingDaysAndShiftWidget( - {Key? key, - required this.day, - required this.index, - required this.onDelete}) - : super(key: key); - final AvailableDay day; - final Function onDelete; - final int index; - @override - State createState() => - _WorkingDaysAndShiftWidgetState(); -} - -class _WorkingDaysAndShiftWidgetState extends State { - var weekDays = [ - 'sunday', - 'monday', - 'tuesday', - 'wednesday', - 'thursday', - "friday", - "saturday" - ]; - List selectedWeekDays = []; - - IconButton deleteButton(Function _function) => IconButton( - onPressed: () { - _function(); - }, - icon: const Icon(Icons.delete)); - - Divider horizontalDivider() { - return const Divider( - color: Colors.black, - ); - } - - InkWell addShiftButton() { - return InkWell( - onTap: () { - setState(() { - clinic1.availableDays[widget.index].availableTimeSlots - .add(TimeSlot(startTime: "", endTime: "")); - }); - }, - child: Row( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - const Text("Add shift"), - const SizedBox( - width: 8, - ), - Container( - height: 30, - width: 30, - decoration: BoxDecoration( - borderRadius: BorderRadius.circular(10), - border: Border.all(color: Colors.grey.withOpacity(0.5))), - child: const Icon(Icons.add), - ), - ], - ), - ); - } - - Padding selectTimeSlots(TimeSlot timeSlot, int index) { - TextEditingController startTime = - TextEditingController(text: timeSlot.startTime); - TextEditingController endTime = - TextEditingController(text: timeSlot.endTime); - return Padding( - padding: const EdgeInsets.all(8.0), - child: Row( - children: [ - Expanded( - child: TextFormField( - validator: ((value) { - if (value!.isEmpty) { - return "Please enter start time"; - } - return null; - }), - onTap: (() { - showTimePicker(context: context, initialTime: TimeOfDay.now()) - .then( - (value) { - if (value != null) { - DateTime parsedTime = DateFormat.jm() - .parse(value.format(context).toString()); - String formattedTime = - DateFormat('HH:mm:ss').format(parsedTime); - clinic1 - .availableDays[widget.index] - .availableTimeSlots[index] - .startTime = value.format(context); - setState(() { - startTime.text = value.format(context); - }); - } - }, - ); - }), - readOnly: true, - controller: startTime, - decoration: const InputDecoration( - isDense: true, - border: OutlineInputBorder(), - labelText: 'Start Time', - ), - ), - ), - const SizedBox( - width: 10, - ), - Expanded( - child: TextFormField( - validator: ((value) { - if (value!.isEmpty) { - return "Please enter end time"; - } - return null; - }), - onTap: (() { - showTimePicker(context: context, initialTime: TimeOfDay.now()) - .then( - (value) { - if (value != null) { - DateTime parsedTime = DateFormat.jm() - .parse(value.format(context).toString()); - String formattedTime = - DateFormat('HH:mm:ss').format(parsedTime); - clinic1 - .availableDays[widget.index] - .availableTimeSlots[index] - .endTime = value.format(context); - setState(() { - endTime.text = value.format(context); - }); - } - }, - ); - }), - readOnly: true, - controller: endTime, - decoration: const InputDecoration( - isDense: true, - border: OutlineInputBorder(), - labelText: 'End Time', - ), - ), - ), - Visibility( - visible: widget.day.availableTimeSlots.length > 1, - child: deleteButton(() { - setState(() { - clinic1.availableDays[widget.index].availableTimeSlots - .removeAt(index); - }); - })) - ], - ), - ); - } - - Row selectWorkingDays() { - return Row( - children: [ - Expanded( - child: MultiSelectDialogField( - buttonIcon: const Icon(Icons.keyboard_arrow_down), - buttonText: const Text("Select Working Days"), - validator: ((value) { - if (value!.isEmpty) { - return "Please choose any day"; - } - return null; - }), - separateSelectedItems: true, - initialValue: clinic1.availableDays[widget.index].workingDays, - chipDisplay: MultiSelectChipDisplay( - icon: const Icon(Icons.cancel), - onTap: (String value) { - clinic1.availableDays[widget.index].workingDays.remove(value); - setState(() {}); - }, - items: clinic1.availableDays[widget.index].workingDays - .map((e) => MultiSelectItem(e, e)) - .toList(), - ), - decoration: BoxDecoration( - border: Border.all(width: 1), - borderRadius: BorderRadius.circular(10)), - barrierColor: Colors.black.withOpacity(0.5), - title: const Text("Select Working Days."), - items: weekDays.map((e) => MultiSelectItem(e, e)).toList(), - listType: MultiSelectListType.CHIP, - onConfirm: (List values) { - clinic1.availableDays[widget.index].workingDays = values; - // selectedWeekDays = values.map((String e) => e).toList(); - }, - ), - ), - ], - ); - } - - @override - Widget build(BuildContext context) { - return Padding( - padding: const EdgeInsets.all(8.0), - child: Column( - children: [ - horizontalDivider(), - Row( - children: [ - const Expanded( - child: Text( - "Select Days and Shifts. ", - style: TextStyle( - fontSize: 14, - ), - ), - ), - Visibility( - visible: clinic1.availableDays.length > 1, - child: deleteButton(() { - widget.onDelete(); - })) - ], - ), - SizedBox( - width: MediaQuery.of(context).size.width, - child: Padding( - padding: const EdgeInsets.all(8.0), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - const Text("Days"), - const SizedBox( - height: 10, - ), - selectWorkingDays(), - const SizedBox( - height: 10, - ), - ...widget.day.availableTimeSlots - .asMap() - .map((i, element) => MapEntry( - i, - selectTimeSlots(element, i), - )) - .values - .toList(), - addShiftButton(), - // horizontalDivider(), - ], - ), - ), - ) - ], - ), - ); - } -} diff --git a/lib/homepage.dart b/lib/homepage.dart index 46022e8..633d4b9 100644 --- a/lib/homepage.dart +++ b/lib/homepage.dart @@ -1,8 +1,4 @@ -import 'dart:collection'; -import 'dart:developer'; import 'dart:io'; - -import 'package:camera_app/heallivedoctormodeltest/clinicdata.dart'; import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; import 'package:image_picker/image_picker.dart'; @@ -61,7 +57,7 @@ class _HomePageState extends State { } print("total images:-"); print(formData.files.length); - print(clinic1.toJson().toString()); + // print(clinic1.toJson().toString()); // try { // var response = await dio.post("https://imgbb.com/json", // data: formData, diff --git a/lib/main.dart b/lib/main.dart index 4111dfe..54edb2c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,4 +1,3 @@ -import 'package:camera_app/heallivedoctormodeltest/uitoaddclinic.dart'; import 'package:camera_app/homepage.dart'; import 'package:flutter/material.dart'; @@ -16,7 +15,7 @@ class MyApp extends StatelessWidget { theme: ThemeData( primarySwatch: Colors.blue, ), - home: const UIToAddClinic(), + home: const HomePage(), ); } }