update
This commit is contained in:
@ -14,6 +14,7 @@ import 'package:rogapp/pages/destination/destination_controller.dart';
|
||||
//import 'package:google_maps_flutter/google_maps_flutter.dart';
|
||||
import 'package:rogapp/pages/index/index_controller.dart';
|
||||
import 'package:rogapp/services/destination_service.dart';
|
||||
import 'package:rogapp/widgets/bottom_sheet_new.dart';
|
||||
import 'package:rogapp/widgets/bottom_sheet_widget.dart';
|
||||
|
||||
class DestinationMapPage extends StatefulWidget {
|
||||
@ -69,30 +70,6 @@ class _DestinationMapPageState extends State<DestinationMapPage> {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
final List<LatLng> _markerPositions = [
|
||||
LatLng(35.728728732933455, 137.06878077038706),
|
||||
LatLng(35.958218259568305, 137.06187578986646),
|
||||
LatLng(35.76795686324816, 137.08949571194879),
|
||||
];
|
||||
|
||||
|
||||
|
||||
List<Marker> get _markers => _markerPositions
|
||||
.map(
|
||||
(markerPosition) => Marker(
|
||||
point: markerPosition,
|
||||
width: 40,
|
||||
height: 40,
|
||||
builder: (_) => const Icon(Icons.location_on, size: 40),
|
||||
anchorPos: AnchorPos.align(AnchorAlign.top),
|
||||
),
|
||||
)
|
||||
.toList();
|
||||
|
||||
|
||||
|
||||
List<LatLng>? getPoints(){
|
||||
//print("##### --- route point ${indexController.routePoints.length}");
|
||||
List<LatLng> pts = [];
|
||||
@ -123,7 +100,8 @@ class _DestinationMapPageState extends State<DestinationMapPage> {
|
||||
indexController.getAction();
|
||||
|
||||
showModalBottomSheet(context: context, isScrollControlled: true,
|
||||
builder:((context) => BottomSheetWidget())
|
||||
//builder:((context) => BottomSheetWidget())
|
||||
builder:((context) => BottomSheetNew())
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user