update
This commit is contained in:
@ -2,6 +2,8 @@ PODS:
|
|||||||
- Flutter (1.0.0)
|
- Flutter (1.0.0)
|
||||||
- flutter_compass (0.0.1):
|
- flutter_compass (0.0.1):
|
||||||
- Flutter
|
- Flutter
|
||||||
|
- flutter_keyboard_visibility (0.0.1):
|
||||||
|
- Flutter
|
||||||
- FMDB (2.7.5):
|
- FMDB (2.7.5):
|
||||||
- FMDB/standard (= 2.7.5)
|
- FMDB/standard (= 2.7.5)
|
||||||
- FMDB/standard (2.7.5)
|
- FMDB/standard (2.7.5)
|
||||||
@ -30,6 +32,7 @@ PODS:
|
|||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- Flutter (from `Flutter`)
|
- Flutter (from `Flutter`)
|
||||||
- flutter_compass (from `.symlinks/plugins/flutter_compass/ios`)
|
- flutter_compass (from `.symlinks/plugins/flutter_compass/ios`)
|
||||||
|
- flutter_keyboard_visibility (from `.symlinks/plugins/flutter_keyboard_visibility/ios`)
|
||||||
- geolocator_apple (from `.symlinks/plugins/geolocator_apple/ios`)
|
- geolocator_apple (from `.symlinks/plugins/geolocator_apple/ios`)
|
||||||
- google_maps_flutter (from `.symlinks/plugins/google_maps_flutter/ios`)
|
- google_maps_flutter (from `.symlinks/plugins/google_maps_flutter/ios`)
|
||||||
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
- image_picker_ios (from `.symlinks/plugins/image_picker_ios/ios`)
|
||||||
@ -48,6 +51,8 @@ EXTERNAL SOURCES:
|
|||||||
:path: Flutter
|
:path: Flutter
|
||||||
flutter_compass:
|
flutter_compass:
|
||||||
:path: ".symlinks/plugins/flutter_compass/ios"
|
:path: ".symlinks/plugins/flutter_compass/ios"
|
||||||
|
flutter_keyboard_visibility:
|
||||||
|
:path: ".symlinks/plugins/flutter_keyboard_visibility/ios"
|
||||||
geolocator_apple:
|
geolocator_apple:
|
||||||
:path: ".symlinks/plugins/geolocator_apple/ios"
|
:path: ".symlinks/plugins/geolocator_apple/ios"
|
||||||
google_maps_flutter:
|
google_maps_flutter:
|
||||||
@ -66,6 +71,7 @@ EXTERNAL SOURCES:
|
|||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
|
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
|
||||||
flutter_compass: cbbd285cea1584c7ac9c4e0c3e1f17cbea55e855
|
flutter_compass: cbbd285cea1584c7ac9c4e0c3e1f17cbea55e855
|
||||||
|
flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069
|
||||||
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
|
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
|
||||||
geolocator_apple: cc556e6844d508c95df1e87e3ea6fa4e58c50401
|
geolocator_apple: cc556e6844d508c95df1e87e3ea6fa4e58c50401
|
||||||
google_maps_flutter: c59fc576c0d0c7f4dc4bd63832c862d22d5a7c6d
|
google_maps_flutter: c59fc576c0d0c7f4dc4bd63832c862d22d5a7c6d
|
||||||
|
|||||||
@ -22,7 +22,12 @@ class IndexPage extends GetView<IndexController> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return WillPopScope(
|
||||||
|
onWillPop: () async {
|
||||||
|
indexController.switchPage(AppPages.INITIAL);
|
||||||
|
return false;
|
||||||
|
},
|
||||||
|
child: Scaffold(
|
||||||
drawer: const DrawerPage(),
|
drawer: const DrawerPage(),
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
leading: IconButton(
|
leading: IconButton(
|
||||||
@ -49,18 +54,6 @@ class IndexPage extends GetView<IndexController> {
|
|||||||
child: const Center(child: Icon(Icons.search),),
|
child: const Center(child: Icon(Icons.search),),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// RaisedButton(
|
|
||||||
// child: Text("db"),
|
|
||||||
// onPressed: (){
|
|
||||||
// DatabaseHelper db = DatabaseHelper.instance;
|
|
||||||
// db.getDestinations().then((value){
|
|
||||||
// print("-------- lendth in db ${value.length} ---- :::::");
|
|
||||||
// for(Destination d in value){
|
|
||||||
// print("-------- values in db are ${d.checkedin} ---- :::::");
|
|
||||||
// };
|
|
||||||
// });
|
|
||||||
// },
|
|
||||||
// ),
|
|
||||||
CatWidget(indexController: indexController,),
|
CatWidget(indexController: indexController,),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
@ -137,6 +130,7 @@ class IndexPage extends GetView<IndexController> {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -58,6 +58,16 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
|||||||
if (!await launch(url)) throw 'Could not launch $url';
|
if (!await launch(url)) throw 'Could not launch $url';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isInDestination(String locationid){
|
||||||
|
int lid = int.parse(locationid);
|
||||||
|
if(destinationController.destinations.where((element) => element.location_id == lid).length > 0){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
|
||||||
@ -352,7 +362,6 @@ class BottomSheetNew extends GetView<BottomSheetController> {
|
|||||||
indexController.rog_mode == 0 ?
|
indexController.rog_mode == 0 ?
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: Icon(Icons.pin_drop_sharp, size: 32,),
|
icon: Icon(Icons.pin_drop_sharp, size: 32,),
|
||||||
|
|
||||||
onPressed: (){
|
onPressed: (){
|
||||||
GeoJsonMultiPoint mp = indexController.currentFeature[0].geometry as GeoJsonMultiPoint;
|
GeoJsonMultiPoint mp = indexController.currentFeature[0].geometry as GeoJsonMultiPoint;
|
||||||
LatLng pt = LatLng(mp.geoSerie!.geoPoints[0].latitude, mp.geoSerie!.geoPoints[0].longitude);
|
LatLng pt = LatLng(mp.geoSerie!.geoPoints[0].latitude, mp.geoSerie!.geoPoints[0].longitude);
|
||||||
|
|||||||
Reference in New Issue
Block a user