这是indexloc提供的服务,不要输入任何密码
Skip to content

Enhancement: Replace hardcoded location with user’s current location #6

@Abhishek14104

Description

@Abhishek14104

Description

The app currently uses a hardcoded New Delhi (Lat-Long-> 28.6139, 77.2090) location for evaluating location-based alarm conditions.
This should be replaced with the user’s real-time current location fetched from the device.

Files potentially involved

  • lib/app/modules/smart_control/controllers/location_controller.dart
  • lib/app/modules/smart_control/views/location
  • AndroidManifest.xml (for location permissions)

Expected behaviour

  • Get the user current location when they get to the location condition view.
    • Use the latlong2, flutter_map, and fl_location packages (similar to the Ultimate Alarm Clock Android app).
  • Replace hardcoded coordinates with dynamic location data.
  • Handle location permission gracefully.
  • If location is unavailable, use a default fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions