update
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
import 'dart:ffi';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:geojson/geojson.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:rogapp/pages/destination/destination_controller.dart';
|
||||
import 'package:rogapp/pages/index/index_controller.dart';
|
||||
import 'package:rogapp/widgets/bottom_sheet_widget.dart';
|
||||
import 'package:timeline_tile/timeline_tile.dart';
|
||||
|
||||
class DestinationWidget extends StatelessWidget {
|
||||
@ -110,6 +112,25 @@ class DestinationWidget extends StatelessWidget {
|
||||
minHeight: 80,
|
||||
),
|
||||
child: ListTile(
|
||||
onTap: () async {
|
||||
{
|
||||
double lat = destinationController.destinations[index]["location"]["geometry"]["coordinates"][0][1] as double;
|
||||
double lon = destinationController.destinations[index]["location"]["geometry"]["coordinates"][0][0] as double;
|
||||
GeoJsonFeature? fs = await destinationController.getDEstinationForLatLong(lat, lon);
|
||||
print("----fsf-----${fs}");
|
||||
if(fs != null){
|
||||
if(indexController.currentFeature.length > 0) {
|
||||
indexController.currentFeature.clear();
|
||||
}
|
||||
indexController.currentFeature.add(fs);
|
||||
indexController.getAction();
|
||||
|
||||
showModalBottomSheet(context: context, isScrollControlled: true,
|
||||
builder:((context) => BottomSheetWidget())
|
||||
);
|
||||
}
|
||||
};
|
||||
},
|
||||
onLongPress: (){
|
||||
print("#### long press #### ${destinationController.destination_index_data.length}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user