booleanbites / houzi-support

Support forum repo for issues & bugs reported for Houzi Flutter App.
4 stars 0 forks source link

google maps #69

Closed Hralamal2 closed 1 year ago

Hralamal2 commented 1 year ago

Hi

how can i move this item up because the google maps icon is hidden for example if someone click on the location on the post then directly google maps application open for him

that's why i want to move this item up that can everyone the google maps icon

WhatsApp Image 2023-06-17 at 10 20 43 AM

Hralamal2 commented 1 year ago

anyone can help me please

booleanbites commented 1 year ago

Hello, you can add padding to google maps from bottom side. Open following file:

PROJECT_HOME/packages/houzi_package/lib/pages/property_details_related_pages/full_screen_map_view.dart

and goto line # 126 and you should see GoogleMap declaration, add padding param to its constructor as below:

map = GoogleMap(
      myLocationButtonEnabled: false,
      zoomGesturesEnabled: true,
      tiltGesturesEnabled: false,
      zoomControlsEnabled: true,
      padding: EdgeInsets.only(left: 80, right: 80, top: 250, bottom: 250), //<----- ADD THIS KEY
      ...
      markers: googleMapMarkers,
      initialCameraPosition: _initialCameraPosition,
    );

It'll give 250 padding from bottom allowing you to move direction button above property card.

Hralamal2 commented 1 year ago

it's works thank you