Skip to content

Flutter app helps users locate nearby hospitals, providing details like open status, ratings, and phone numbers, with Google Maps integration.

Notifications You must be signed in to change notification settings

MAHMOUDELSAYED7/Find-Hospital

Repository files navigation

Find Hospital

Find Hospital is a Flutter application designed to help users locate the nearest hospitals around them. The app provides detailed information about hospitals, including their name, current open status, business status, rating, total user ratings, phone number, and place ID. Users can also view the hospital location on Google Maps. The app offers two theme modes: green and red. Additionally, it saves the last updated hospital data in the app.

Features

  1. Nearest Hospitals: Get a list of the nearest hospitals based on your current location.
  2. Hospital Details: View detailed information about each hospital, including:
  • Name
  • Open Now status
  • Business status
  • Rating,
  • Total user ratings
  • Distances
  • Duration
  • Phone number
  • Place ID
  1. Google Maps Integration: Open hospital locations directly in Google Maps.
  2. Theme Modes: Switch between green and red theme modes for a personalized experience.
  3. Data Persistence: The app saves the last updated hospital data for future reference.

Screenshots

Screenshot 1 Screenshot 2 Screenshot 3 Screenshot 4 Screenshot 5 Screenshot 6 Screenshot 7 Screenshot 8 Screenshot 9 Screenshot 10

Installation

To get started with the Find Hospital mobile application, follow these steps:

Step 1: Clone the Repository First, you'll need to clone the repository from GitHub. Open your terminal and run the following command:

https://github.com/MAHMOUDELSAYED7/Find-Hospital.git

Replace with the actual URL of your repository if it was changed.

Step 2: Install Dependencies After navigating to the project directory, you need to install all the necessary dependencies. Run:

flutter pub get

This command fetches all the dependencies listed in the pubspec.yaml file.

Step 3: Configure the App Ensure all necessary configurations are done. This includes adding your assets and setting up environment variables if needed. Verify that your pubspec.yaml file includes all required assets and fonts.

Step 4: Run the Application Finally, run the application on your desired device using the following command: `

flutter run

This command compiles your Flutter app and deploys it to the connected device or simulator.

Additional Tips Updating Dependencies: If there are any updates to the dependencies, you can update them using:

flutter pub upgrade --major-versions

Flutter Doctor: Run flutter doctor to ensure that your development environment is set up correctly.

flutter doctor

This command checks your environment and displays a report of the status of your Flutter installation, dependencies, and connected devices.

By following these steps, you'll have the Find Hospital app and running on your device, ready to Find the Hospitals around you. If you encounter any issues during installation, please refer to the Flutter documentation.

Usage

  • Grant Location Permissions: Ensure the app has permission to access your location.
  • Find Hospitals: The app will automatically display the nearest hospitals around you.
  • View Details: Tap on any hospital to view detailed information.
  • Open in Google Maps: Click on the Google Maps icon to open the hospital's location in Google Maps.
  • Switch Themes: Use the theme switcher to toggle between green and red modes.
  • Save Data: The app automatically saves the last updated hospital data.

Dependencies

This project uses the following Flutter packages:

This project uses the following Flutter packages:

  • bloc: State management library.
  • cached_network_image: Load and cache network images.
  • dio: HTTP client for Dart.
  • dropdown_button2: Customizable dropdown buttons.
  • flutter_bloc: BLoC design pattern.
  • flutter_dotenv: Load environment variables.
  • flutter_screenutil: Screen size adaptation.
  • geolocator: Access device location.
  • intl: Internationalization and localization.
  • lottie: Render Adobe After Effects animations.
  • meta: Dart analyzer annotations.
  • shared_preferences: Manage application preferences.
  • url_launcher: Launch URLs in mobile platform.
  • uuid: Generate unique identifiers.

Ensure these dependencies are added to your pubspec.yaml file.e.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any questions or feedback, please reach out via email: mahmoudelsayed.dev@gmail.com