├── .github ├── ISSUE_TEMPLATE │ ├── ---.md │ ├── bug-report.md │ └── bug.md ├── stale.yml └── workflows │ └── CI.yml ├── .gitignore ├── .metadata ├── CHANGELOG.md ├── LICENSE ├── README.md ├── amap_search_fluttify.iml ├── analysis_options.yaml ├── android ├── .gitignore ├── build.gradle ├── proguard-rules.pro ├── settings.gradle └── src │ └── main │ ├── AndroidManifest.xml │ └── java │ └── me │ └── yohom │ └── amap_search_fluttify │ ├── AmapSearchFluttifyPlugin.java │ └── sub_handler │ ├── SubHandler0.java │ ├── SubHandler1.java │ ├── SubHandler10.java │ ├── SubHandler11.java │ ├── SubHandler12.java │ ├── SubHandler13.java │ ├── SubHandler14.java │ ├── SubHandler15.java │ ├── SubHandler2.java │ ├── SubHandler3.java │ ├── SubHandler4.java │ ├── SubHandler5.java │ ├── SubHandler6.java │ ├── SubHandler7.java │ ├── SubHandler8.java │ ├── SubHandler9.java │ └── custom │ └── SubHandlerCustom.java ├── example ├── .gitignore ├── README.md ├── analysis_options.yaml ├── android │ ├── .gitignore │ ├── amap_search_test.jks │ ├── app │ │ ├── build.gradle │ │ └── src │ │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ │ └── me │ │ │ │ │ └── yohom │ │ │ │ │ └── amap_search_fluttify_example │ │ │ │ │ └── MainActivity.java │ │ │ └── res │ │ │ │ ├── drawable-v21 │ │ │ │ └── launch_background.xml │ │ │ │ ├── drawable │ │ │ │ └── launch_background.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values-night │ │ │ │ └── styles.xml │ │ │ │ └── values │ │ │ │ └── styles.xml │ │ │ └── profile │ │ │ └── AndroidManifest.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ └── gradle-wrapper.properties │ └── settings.gradle ├── ios │ ├── .gitignore │ ├── Flutter │ │ ├── AppFrameworkInfo.plist │ │ ├── Debug.xcconfig │ │ └── Release.xcconfig │ ├── Podfile │ ├── Runner.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── Runner.xcscheme │ ├── Runner.xcworkspace │ │ └── contents.xcworkspacedata │ └── Runner │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ └── LaunchImage.imageset │ │ │ ├── Contents.json │ │ │ ├── LaunchImage.png │ │ │ ├── LaunchImage@2x.png │ │ │ ├── LaunchImage@3x.png │ │ │ └── README.md │ │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── main.m ├── lib │ ├── get_map_data │ │ ├── get_address_desc.screen.dart │ │ ├── get_bus_info.screen.dart │ │ ├── get_district_info.screen.dart │ │ ├── get_poi.screen.dart │ │ └── get_weather_info.screen.dart │ ├── main.dart │ ├── route_plan │ │ ├── route_bus.screen.dart │ │ ├── route_drive.screen.dart │ │ ├── route_ride.screen.dart │ │ └── route_walk.screen.dart │ ├── utils │ │ ├── misc.dart │ │ └── utils.export.dart │ └── widgets │ │ ├── button.widget.dart │ │ ├── dimens.dart │ │ ├── function_group.widget.dart │ │ ├── function_item.widget.dart │ │ ├── future.widget.dart │ │ ├── scrollable_text.widget.dart │ │ ├── setting.widget.dart │ │ └── todo.screen.dart ├── pubspec.lock ├── pubspec.yaml └── test │ └── widget_test.dart ├── ios ├── .gitignore ├── Assets │ └── .gitkeep ├── Classes │ ├── AmapSearchFluttifyPlugin.h │ ├── AmapSearchFluttifyPlugin.m │ ├── Anonymous │ │ ├── AMapNearbySearchManagerDelegate_Anonymous.h │ │ ├── AMapNearbySearchManagerDelegate_Anonymous.m │ │ ├── AMapSearchDelegate_Anonymous.h │ │ └── AMapSearchDelegate_Anonymous.m │ └── SubHandler │ │ ├── Custom │ │ ├── SubHandlerCustom.h │ │ └── SubHandlerCustom.m │ │ ├── SubHandler0.h │ │ ├── SubHandler0.m │ │ ├── SubHandler1.h │ │ ├── SubHandler1.m │ │ ├── SubHandler10.h │ │ ├── SubHandler10.m │ │ ├── SubHandler11.h │ │ ├── SubHandler11.m │ │ ├── SubHandler2.h │ │ ├── SubHandler2.m │ │ ├── SubHandler3.h │ │ ├── SubHandler3.m │ │ ├── SubHandler4.h │ │ ├── SubHandler4.m │ │ ├── SubHandler5.h │ │ ├── SubHandler5.m │ │ ├── SubHandler6.h │ │ ├── SubHandler6.m │ │ ├── SubHandler7.h │ │ ├── SubHandler7.m │ │ ├── SubHandler8.h │ │ ├── SubHandler8.m │ │ ├── SubHandler9.h │ │ └── SubHandler9.m └── amap_search_fluttify.podspec ├── lib ├── amap_search_fluttify.dart └── src │ ├── android │ ├── android.export.g.dart │ ├── com │ │ └── amap │ │ │ └── api │ │ │ └── services │ │ │ ├── busline │ │ │ ├── BusLineItem.g.dart │ │ │ ├── BusLineQuery.g.dart │ │ │ ├── BusLineQuery │ │ │ │ └── SearchType.g.dart │ │ │ ├── BusLineResult.g.dart │ │ │ ├── BusLineSearch.g.dart │ │ │ ├── BusLineSearch │ │ │ │ └── OnBusLineSearchListener.g.dart │ │ │ ├── BusStationItem.g.dart │ │ │ ├── BusStationQuery.g.dart │ │ │ ├── BusStationResult.g.dart │ │ │ ├── BusStationSearch.g.dart │ │ │ └── BusStationSearch │ │ │ │ └── OnBusStationSearchListener.g.dart │ │ │ ├── cloud │ │ │ ├── CloudImage.g.dart │ │ │ ├── CloudItem.g.dart │ │ │ ├── CloudItemDetail.g.dart │ │ │ ├── CloudResult.g.dart │ │ │ ├── CloudSearch.g.dart │ │ │ └── CloudSearch │ │ │ │ ├── OnCloudSearchListener.g.dart │ │ │ │ ├── Query.g.dart │ │ │ │ ├── SearchBound.g.dart │ │ │ │ └── Sortingrules.g.dart │ │ │ ├── core │ │ │ ├── AMapException.g.dart │ │ │ ├── LatLonPoint.g.dart │ │ │ ├── LatLonSharePoint.g.dart │ │ │ ├── PoiItem.g.dart │ │ │ ├── SearchUtils.g.dart │ │ │ ├── ServiceSettings.g.dart │ │ │ └── SuggestionCity.g.dart │ │ │ ├── district │ │ │ ├── DistrictItem.g.dart │ │ │ ├── DistrictResult.g.dart │ │ │ ├── DistrictSearch.g.dart │ │ │ ├── DistrictSearch │ │ │ │ └── OnDistrictSearchListener.g.dart │ │ │ └── DistrictSearchQuery.g.dart │ │ │ ├── geocoder │ │ │ ├── AoiItem.g.dart │ │ │ ├── BusinessArea.g.dart │ │ │ ├── GeocodeAddress.g.dart │ │ │ ├── GeocodeQuery.g.dart │ │ │ ├── GeocodeResult.g.dart │ │ │ ├── GeocodeSearch.g.dart │ │ │ ├── GeocodeSearch │ │ │ │ └── OnGeocodeSearchListener.g.dart │ │ │ ├── RegeocodeAddress.g.dart │ │ │ ├── RegeocodeQuery.g.dart │ │ │ ├── RegeocodeResult.g.dart │ │ │ ├── RegeocodeRoad.g.dart │ │ │ └── StreetNumber.g.dart │ │ │ ├── help │ │ │ ├── Inputtips.g.dart │ │ │ ├── Inputtips │ │ │ │ └── InputtipsListener.g.dart │ │ │ ├── InputtipsQuery.g.dart │ │ │ └── Tip.g.dart │ │ │ ├── nearby │ │ │ ├── NearbyInfo.g.dart │ │ │ ├── NearbySearch.g.dart │ │ │ ├── NearbySearch │ │ │ │ ├── NearbyListener.g.dart │ │ │ │ └── NearbyQuery.g.dart │ │ │ ├── NearbySearchFunctionType.g.dart │ │ │ ├── NearbySearchResult.g.dart │ │ │ ├── UploadInfo.g.dart │ │ │ └── UploadInfoCallback.g.dart │ │ │ ├── poisearch │ │ │ ├── IndoorData.g.dart │ │ │ ├── Photo.g.dart │ │ │ ├── PoiItemExtension.g.dart │ │ │ ├── PoiResult.g.dart │ │ │ ├── PoiSearch.g.dart │ │ │ ├── PoiSearch │ │ │ │ ├── OnPoiSearchListener.g.dart │ │ │ │ ├── Query.g.dart │ │ │ │ └── SearchBound.g.dart │ │ │ └── SubPoiItem.g.dart │ │ │ ├── road │ │ │ ├── Crossroad.g.dart │ │ │ └── Road.g.dart │ │ │ ├── route │ │ │ ├── BusPath.g.dart │ │ │ ├── BusRouteResult.g.dart │ │ │ ├── BusStep.g.dart │ │ │ ├── ChargeStationInfo.g.dart │ │ │ ├── Cost.g.dart │ │ │ ├── DistanceItem.g.dart │ │ │ ├── DistanceResult.g.dart │ │ │ ├── DistanceSearch.g.dart │ │ │ ├── DistanceSearch │ │ │ │ ├── DistanceQuery.g.dart │ │ │ │ └── OnDistanceSearchListener.g.dart │ │ │ ├── District.g.dart │ │ │ ├── Doorway.g.dart │ │ │ ├── DrivePath.g.dart │ │ │ ├── DrivePathV2.g.dart │ │ │ ├── DrivePlanPath.g.dart │ │ │ ├── DrivePlanStep.g.dart │ │ │ ├── DriveRoutePlanResult.g.dart │ │ │ ├── DriveRouteResult.g.dart │ │ │ ├── DriveRouteResultV2.g.dart │ │ │ ├── DriveStep.g.dart │ │ │ ├── DriveStepV2.g.dart │ │ │ ├── ElecConsumeInfo.g.dart │ │ │ ├── Navi.g.dart │ │ │ ├── Path.g.dart │ │ │ ├── Railway.g.dart │ │ │ ├── RailwaySpace.g.dart │ │ │ ├── RailwayStationItem.g.dart │ │ │ ├── RidePath.g.dart │ │ │ ├── RideRouteResult.g.dart │ │ │ ├── RideStep.g.dart │ │ │ ├── RouteBusLineItem.g.dart │ │ │ ├── RouteBusWalkItem.g.dart │ │ │ ├── RoutePlanResult.g.dart │ │ │ ├── RouteRailwayItem.g.dart │ │ │ ├── RouteResult.g.dart │ │ │ ├── RouteSearch.g.dart │ │ │ ├── RouteSearch │ │ │ │ ├── BusRouteQuery.g.dart │ │ │ │ ├── DrivePlanQuery.g.dart │ │ │ │ ├── DriveRouteQuery.g.dart │ │ │ │ ├── FromAndTo.g.dart │ │ │ │ ├── OnRoutePlanSearchListener.g.dart │ │ │ │ ├── OnRouteSearchListener.g.dart │ │ │ │ ├── OnTruckRouteSearchListener.g.dart │ │ │ │ ├── RideRouteQuery.g.dart │ │ │ │ ├── TruckRouteQuery.g.dart │ │ │ │ └── WalkRouteQuery.g.dart │ │ │ ├── RouteSearchCity.g.dart │ │ │ ├── RouteSearchV2.g.dart │ │ │ ├── RouteSearchV2 │ │ │ │ ├── CurveCost.g.dart │ │ │ │ ├── CustomCostMode.g.dart │ │ │ │ ├── DriveRouteQuery.g.dart │ │ │ │ ├── DrivingStrategy.g.dart │ │ │ │ ├── FromAndTo.g.dart │ │ │ │ ├── NewEnergy.g.dart │ │ │ │ ├── OnRoutePlanSearchListener.g.dart │ │ │ │ ├── OnRouteSearchListener.g.dart │ │ │ │ ├── OnTruckRouteSearchListener.g.dart │ │ │ │ ├── PowerTrainLoss.g.dart │ │ │ │ ├── ShowFields.g.dart │ │ │ │ ├── SlopeCost.g.dart │ │ │ │ ├── SpeedCost.g.dart │ │ │ │ └── TransCost.g.dart │ │ │ ├── SearchCity.g.dart │ │ │ ├── TMC.g.dart │ │ │ ├── TaxiItem.g.dart │ │ │ ├── TimeInfo.g.dart │ │ │ ├── TimeInfosElement.g.dart │ │ │ ├── TruckPath.g.dart │ │ │ ├── TruckRouteRestult.g.dart │ │ │ ├── TruckStep.g.dart │ │ │ ├── WalkPath.g.dart │ │ │ ├── WalkRouteResult.g.dart │ │ │ └── WalkStep.g.dart │ │ │ ├── routepoisearch │ │ │ ├── RoutePOIItem.g.dart │ │ │ ├── RoutePOISearch.g.dart │ │ │ ├── RoutePOISearch │ │ │ │ ├── OnRoutePOISearchListener.g.dart │ │ │ │ └── RoutePOISearchType.g.dart │ │ │ ├── RoutePOISearchQuery.g.dart │ │ │ └── RoutePOISearchResult.g.dart │ │ │ ├── share │ │ │ ├── ShareSearch.g.dart │ │ │ └── ShareSearch │ │ │ │ ├── OnShareSearchListener.g.dart │ │ │ │ ├── ShareBusRouteQuery.g.dart │ │ │ │ ├── ShareDrivingRouteQuery.g.dart │ │ │ │ ├── ShareFromAndTo.g.dart │ │ │ │ ├── ShareNaviQuery.g.dart │ │ │ │ └── ShareWalkRouteQuery.g.dart │ │ │ └── weather │ │ │ ├── LocalDayWeatherForecast.g.dart │ │ │ ├── LocalWeatherForecast.g.dart │ │ │ ├── LocalWeatherForecastResult.g.dart │ │ │ ├── LocalWeatherLive.g.dart │ │ │ ├── LocalWeatherLiveResult.g.dart │ │ │ ├── WeatherSearch.g.dart │ │ │ ├── WeatherSearch │ │ │ └── OnWeatherSearchListener.g.dart │ │ │ └── WeatherSearchQuery.g.dart │ ├── constants.g.dart │ └── type_op.g.dart │ ├── facade │ ├── amap_search.dart │ ├── delegates.dart │ ├── extensions.dart │ ├── models.dart │ └── shared.g.dart │ └── ios │ ├── AMapAOI.g.dart │ ├── AMapAddressComponent.g.dart │ ├── AMapBusLine.g.dart │ ├── AMapBusLineBaseSearchRequest.g.dart │ ├── AMapBusLineIDSearchRequest.g.dart │ ├── AMapBusLineNameSearchRequest.g.dart │ ├── AMapBusLineSearchResponse.g.dart │ ├── AMapBusStop.g.dart │ ├── AMapBusStopSearchRequest.g.dart │ ├── AMapBusStopSearchResponse.g.dart │ ├── AMapBusinessArea.g.dart │ ├── AMapCity.g.dart │ ├── AMapCloudImage.g.dart │ ├── AMapCloudPOI.g.dart │ ├── AMapCloudPOIAroundSearchRequest.g.dart │ ├── AMapCloudPOIIDSearchRequest.g.dart │ ├── AMapCloudPOILocalSearchRequest.g.dart │ ├── AMapCloudPOIPolygonSearchRequest.g.dart │ ├── AMapCloudPOISearchResponse.g.dart │ ├── AMapCloudSearchBaseRequest.g.dart │ ├── AMapCloudSortType.g.dart │ ├── AMapDistanceResult.g.dart │ ├── AMapDistanceSearchRequest.g.dart │ ├── AMapDistanceSearchResponse.g.dart │ ├── AMapDistanceSearchType.g.dart │ ├── AMapDistrict.g.dart │ ├── AMapDistrictSearchRequest.g.dart │ ├── AMapDistrictSearchResponse.g.dart │ ├── AMapDrivingCalRouteSearchRequest.g.dart │ ├── AMapDrivingRouteExcludeType.g.dart │ ├── AMapDrivingRouteSearchRequest.g.dart │ ├── AMapDrivingRouteShowFieldType.g.dart │ ├── AMapFutureRouteSearchRequest.g.dart │ ├── AMapFutureRouteSearchResponse.g.dart │ ├── AMapFutureTimeInfo.g.dart │ ├── AMapFutureTimeInfoElement.g.dart │ ├── AMapGeoPoint.g.dart │ ├── AMapGeoPolygon.g.dart │ ├── AMapGeocode.g.dart │ ├── AMapGeocodeSearchRequest.g.dart │ ├── AMapGeocodeSearchResponse.g.dart │ ├── AMapImage.g.dart │ ├── AMapIndoorData.g.dart │ ├── AMapInputTipsSearchRequest.g.dart │ ├── AMapInputTipsSearchResponse.g.dart │ ├── AMapLocalDayWeatherForecast.g.dart │ ├── AMapLocalWeatherForecast.g.dart │ ├── AMapLocalWeatherLive.g.dart │ ├── AMapLocationShareSearchRequest.g.dart │ ├── AMapNavigationShareSearchRequest.g.dart │ ├── AMapNearbySearchManager.g.dart │ ├── AMapNearbySearchManagerDelegate.g.dart │ ├── AMapNearbySearchRequest.g.dart │ ├── AMapNearbySearchResponse.g.dart │ ├── AMapNearbySearchType.g.dart │ ├── AMapNearbyUploadInfo.g.dart │ ├── AMapNearbyUserInfo.g.dart │ ├── AMapPOI.g.dart │ ├── AMapPOIAroundSearchRequest.g.dart │ ├── AMapPOIExtension.g.dart │ ├── AMapPOIIDSearchRequest.g.dart │ ├── AMapPOIKeywordsSearchRequest.g.dart │ ├── AMapPOIPolygonSearchRequest.g.dart │ ├── AMapPOISearchBaseRequest.g.dart │ ├── AMapPOISearchResponse.g.dart │ ├── AMapPOIShareSearchRequest.g.dart │ ├── AMapPath.g.dart │ ├── AMapRailway.g.dart │ ├── AMapRailwaySpace.g.dart │ ├── AMapRailwayStation.g.dart │ ├── AMapReGeocode.g.dart │ ├── AMapReGeocodeSearchRequest.g.dart │ ├── AMapReGeocodeSearchResponse.g.dart │ ├── AMapRidingRouteSearchRequest.g.dart │ ├── AMapRidingRouteSearchResponse.g.dart │ ├── AMapRoad.g.dart │ ├── AMapRoadInter.g.dart │ ├── AMapRoute.g.dart │ ├── AMapRoutePOI.g.dart │ ├── AMapRoutePOISearchRequest.g.dart │ ├── AMapRoutePOISearchResponse.g.dart │ ├── AMapRoutePOISearchType.g.dart │ ├── AMapRouteSearchBaseRequest.g.dart │ ├── AMapRouteSearchResponse.g.dart │ ├── AMapRouteShareSearchRequest.g.dart │ ├── AMapSearchAPI.g.dart │ ├── AMapSearchCoordinateType.g.dart │ ├── AMapSearchDelegate.g.dart │ ├── AMapSearchError.g.dart │ ├── AMapSearchErrorCode.g.dart │ ├── AMapSearchObject.g.dart │ ├── AMapSegment.g.dart │ ├── AMapShareSearchBaseRequest.g.dart │ ├── AMapShareSearchResponse.g.dart │ ├── AMapStep.g.dart │ ├── AMapStreetNumber.g.dart │ ├── AMapSubPOI.g.dart │ ├── AMapSuggestion.g.dart │ ├── AMapTMC.g.dart │ ├── AMapTaxi.g.dart │ ├── AMapTip.g.dart │ ├── AMapTrafficEvaluation.g.dart │ ├── AMapTrafficInfo.g.dart │ ├── AMapTrafficRoad.g.dart │ ├── AMapTransit.g.dart │ ├── AMapTransitRouteSearchRequest.g.dart │ ├── AMapTruckRouteSearchRequest.g.dart │ ├── AMapTruckSizeType.g.dart │ ├── AMapWalking.g.dart │ ├── AMapWalkingRouteSearchRequest.g.dart │ ├── AMapWeatherSearchRequest.g.dart │ ├── AMapWeatherSearchResponse.g.dart │ ├── AMapWeatherType.g.dart │ ├── constants.g.dart │ ├── functions.g.dart │ ├── ios.export.g.dart │ └── type_op.g.dart ├── other ├── 1557492318.jpg ├── Logo-Landscape.png └── WechatIMG111.jpeg ├── pubspec.lock └── pubspec.yaml /.github/ISSUE_TEMPLATE/---.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: 新功能 3 | about: 添加功能 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **功能描述** 11 | 12 | **Native端对应字段/方法** 13 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug-report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: 遇到了bug. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **插件版本** 11 | 12 | **遇到bug的平台(Android/iOS)** 13 | 14 | **描述bug** 15 | 16 | **复现步骤** 17 | 18 | **期望行为** 19 | 20 | **截图** 21 | 22 | **flutter doctor** 23 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug 3 | about: 遇到了bug. 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **插件版本** 11 | 12 | **遇到bug的平台(Android/iOS)** 13 | 14 | **描述bug** 15 | 16 | **复现步骤** 17 | 18 | **期望行为** 19 | 20 | **截图** 21 | 22 | **flutter doctor** 23 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 60 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 7 5 | # Issues with these labels will never be considered stale 6 | exemptLabels: 7 | - pinned 8 | - security 9 | # Label to use when marking an issue as stale 10 | staleLabel: stale 11 | # Comment to post when marking an issue as stale. Set to `false` to disable 12 | markComment: > 13 | This issue has been automatically marked as stale because it has not had 14 | recent activity. It will be closed if no further activity occurs. Thank you 15 | for your contributions. 16 | # Comment to post when closing a stale issue. Set to `false` to disable 17 | closeComment: false -------------------------------------------------------------------------------- /.github/workflows/CI.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | on: [push] 3 | jobs: 4 | build: 5 | runs-on: macos-latest 6 | steps: 7 | - uses: actions/checkout@v1 8 | - uses: actions/setup-java@v1 9 | with: 10 | java-version: '12.x' 11 | - uses: subosito/flutter-action@v1 12 | with: 13 | channel: 'stable' 14 | - run: flutter pub get 15 | - run: flutter test 16 | - run: cd example; flutter build apk; flutter build ios --no-codesign; 17 | 18 | 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 26 | /pubspec.lock 27 | **/doc/api/ 28 | .dart_tool/ 29 | .packages 30 | build/ 31 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled. 5 | 6 | version: 7 | revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 8 | channel: stable 9 | 10 | project_type: plugin 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 17 | base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 18 | - platform: android 19 | create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 20 | base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 21 | - platform: ios 22 | create_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 23 | base_revision: fb57da5f945d02ef4f98dfd9409a72b7cce74268 24 | 25 | # User provided section 26 | 27 | # List of Local paths (relative to this file) that should be 28 | # ignored by the migrate tool. 29 | # 30 | # Files that are not part of the templates will be ignored by default. 31 | unmanaged_files: 32 | - 'lib/main.dart' 33 | - 'ios/Runner.xcodeproj/project.pbxproj' 34 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.10.3 2 | - enhance: 增加adCode 3 | 4 | ## 0.10.1 5 | - enhance: 缺失的城市信息 6 | 7 | ## 0.9.0 8 | - fix: 公交路线空判断 9 | - enhance: [breaking change] Poi使用同步返回 10 | - fix: 地图边界可能存在多个多边形 11 | - enhance: 关键字搜索和附近搜索 增加分页参数 12 | 13 | ## 0.8.2 14 | - enhance: 增加搜索错误处理 15 | 16 | ## 0.8.1 17 | - roll engine #37387b7e 18 | 19 | ## 0.8.0 20 | - enhance: 更新底层依赖 21 | 22 | ## 0.7.9 23 | - roll engine #481e45c1 24 | 25 | ## 0.7.8 26 | - roll engine #dbad1c35 27 | 28 | ## 0.7.7 29 | - roll engine #0a5ab5f1 30 | - feat: ReGeocode增加roads字段 (#20) 31 | 32 | ## 0.7.6 33 | - roll engine #b356b08 34 | 35 | ## 0.7.5 36 | - roll engine #1053dca 37 | - feat: 增加搜索云图方法 searchCloudAround 38 | 39 | ## 0.7.4 40 | - enhance: 提升依赖 41 | - roll engine #356f11c 42 | 43 | ## 0.7.3 44 | - roll engine #107df19 45 | - docs: 加入apk下载二维码 46 | - enhance: 加入打包的key 47 | 48 | ## 0.7.2 49 | - roll engine #4d92ce0. 主要解决type_op的冲突. 50 | 51 | ## 0.7.1 52 | - roll engine #5c1b957 53 | 54 | ## 0.7.0 55 | - roll engine #ea37ae9 56 | 57 | ## 0.6.0 58 | - 提升依赖 59 | 60 | ## 0.5.0 61 | - 提升依赖 62 | 63 | ## 0.4.0 64 | - enhance: 适配1.12.13 65 | - feat: ReGeocode增加poiList 66 | - refactor: [breaking change] AoiIten -> Aoi 67 | 68 | ## 0.3.4 69 | - 解决依赖冲突 70 | 71 | ## 0.3.3 72 | - 更新依赖 73 | 74 | ## 0.3.2 75 | - enhance: podfile调整 76 | - feat: 获取行政区划数据 新增边界经纬度列表 77 | 78 | ## 0.3.1 79 | - fix: 路径搜索经纬度取反 80 | 81 | ## 0.3.0 82 | - 更新底层 83 | 84 | ## 0.2.13 85 | - enhance: InputTip增加经纬度信息 86 | 87 | ## 0.2.12 88 | - enhance: poi增加行政区划名称和编号 89 | 90 | ## 0.2.11 91 | - fix: 处理当构造器参数为null的情况 92 | - fix: 加入混淆规则 93 | 94 | ## 0.2.10 95 | - feat: 逆地理编码增加aoi信息 96 | - fix: #4 add新值时,先判断stream是否已经关闭 97 | 98 | ## 0.2.8 99 | - enhancement: poi增加商圈信息字段 100 | 101 | ## 0.2.7 102 | - fix: 释放原生对象时, 只释放当前插件创建的对象 103 | 104 | ## 0.2.6 105 | - enhancement: poi加入地址信息 106 | 107 | ## 0.2.5 108 | - enhancement: searchAround增加radius参数 109 | 110 | ## 0.2.4 111 | - enhancement: searchAround增加type参数 112 | 113 | ## 0.2.2 114 | - Poi加入经纬度信息 115 | 116 | ## 0.2.1 117 | - bugfix: 释放对象时, 清空对象集合 118 | 119 | ## 0.2.0 120 | - 加强对多fluttify模块的支持 121 | 122 | ## 0.1.1 123 | - 原生对象释放 124 | 125 | ## 0.1.0 126 | - 骑行路径规划 127 | 128 | ## 0.0.5 129 | - 公交站点搜索 130 | - 获取行政区域数据 131 | 132 | ## 0.0.4 133 | - 驾车出行规划 134 | - 步行出行规划 135 | - 公交出行规划 136 | 137 | ## 0.0.3 138 | - 地理编码/逆地理编码 139 | 140 | ## 0.0.2 141 | - poi关键字搜索 142 | - poi附近搜索 143 | - 输入提示 144 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2019 yohom 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /amap_search_fluttify.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:pedantic/analysis_options.yaml 2 | 3 | linter: 4 | rules: 5 | camel_case_types: false 6 | camel_case_extensions: false 7 | omit_local_variable_types: false 8 | prefer_single_quotes: false 9 | unnecessary_this: false -------------------------------------------------------------------------------- /android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | group 'me.yohom.amap_search_fluttify' 2 | version '1.0-SNAPSHOT' 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | 9 | } 10 | 11 | dependencies { 12 | classpath 'com.android.tools.build:gradle:7.1.2' 13 | } 14 | } 15 | 16 | rootProject.allprojects { 17 | repositories { 18 | google() 19 | mavenCentral() 20 | 21 | } 22 | } 23 | 24 | apply plugin: 'com.android.library' 25 | 26 | android { 27 | compileSdkVersion 31 28 | 29 | sourceSets { 30 | main.java.srcDirs += 'src/main/kotlin' 31 | main.jniLibs.srcDir 'libs' 32 | } 33 | defaultConfig { 34 | minSdkVersion 16 35 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 36 | } 37 | lintOptions { 38 | disable 'InvalidPackage' 39 | } 40 | compileOptions { 41 | targetCompatibility JavaVersion.VERSION_1_8 42 | sourceCompatibility JavaVersion.VERSION_1_8 43 | } 44 | packagingOptions { 45 | merge 'res/values/values.xml' 46 | merge 'AndroidManifest.xml' 47 | merge 'R.txt' 48 | merge 'classes.jar' 49 | merge 'proguard.txt' 50 | } 51 | buildTypes { 52 | release { 53 | consumerProguardFiles "proguard-rules.pro" 54 | } 55 | } 56 | } 57 | 58 | dependencies { 59 | implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar']) 60 | implementation 'androidx.annotation:annotation:1.1.0' 61 | implementation 'androidx.appcompat:appcompat:1.1.0' 62 | compileOnly rootProject.findProject(":foundation_fluttify") 63 | // flutter plugin dependency 64 | 65 | // sdk dependency 66 | api 'com.amap.api:search:9.2.0' 67 | } 68 | -------------------------------------------------------------------------------- /android/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # You can control the set of applied configuration files using the 3 | # proguardFiles setting in build.gradle. 4 | # 5 | # For more details, see 6 | # http://developer.android.com/guide/developing/tools/proguard.html 7 | 8 | # If your project uses WebView with JS, uncomment the following 9 | # and specify the fully qualified class name to the JavaScript interface 10 | # class: 11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 12 | # public *; 13 | #} 14 | 15 | # Uncomment this to preserve the line number information for 16 | # debugging stack traces. 17 | #-keepattributes SourceFile,LineNumberTable 18 | 19 | # If you keep the line number information, uncomment this to 20 | # hide the original source file name. 21 | #-renamesourcefileattribute SourceFile 22 | 23 | # 高德地图混淆规则 24 | -keep class com.amap.api.services.**{*;} -------------------------------------------------------------------------------- /android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'amap_search_fluttify' 2 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /android/src/main/java/me/yohom/amap_search_fluttify/sub_handler/custom/SubHandlerCustom.java: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | package me.yohom.amap_search_fluttify.sub_handler.custom; 6 | 7 | import android.os.Bundle; 8 | import android.util.Log; 9 | 10 | import java.util.ArrayList; 11 | import java.util.Collection; 12 | import java.util.HashMap; 13 | import java.util.List; 14 | import java.util.Map; 15 | 16 | import androidx.annotation.NonNull; 17 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 18 | import io.flutter.plugin.common.BinaryMessenger; 19 | import io.flutter.plugin.common.MethodCall; 20 | import io.flutter.plugin.common.MethodChannel; 21 | import io.flutter.plugin.common.PluginRegistry.Registrar; 22 | import io.flutter.plugin.platform.PlatformViewRegistry; 23 | 24 | import me.yohom.amap_search_fluttify.AmapSearchFluttifyPlugin.Handler; 25 | 26 | import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getEnableLog; 27 | import static me.yohom.foundation_fluttify.FoundationFluttifyPluginKt.getHEAP; 28 | 29 | @SuppressWarnings("ALL") 30 | public class SubHandlerCustom { 31 | 32 | public static final SubHandlerCustom instance = new SubHandlerCustom(); 33 | 34 | private SubHandlerCustom() { } 35 | 36 | public Map getSubHandler(BinaryMessenger messenger, android.app.Activity activity) { 37 | return new HashMap() {{ 38 | put("", (args, methodResult) -> { 39 | // args 40 | 41 | // ref 42 | 43 | // invoke native method 44 | try { 45 | 46 | } catch (Throwable throwable) { 47 | throwable.printStackTrace(); 48 | if (getEnableLog()) { 49 | Log.d("Current HEAP: ", getHEAP().toString()); 50 | } 51 | methodResult.error(throwable.getMessage(), null, null); 52 | return; 53 | } 54 | 55 | // convert result to jsonable result 56 | String jsonableResult = "success"; 57 | 58 | methodResult.success(jsonableResult); 59 | }); 60 | }}; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | **/doc/api/ 26 | **/ios/Flutter/.last_build_id 27 | .dart_tool/ 28 | .flutter-plugins 29 | .flutter-plugins-dependencies 30 | .packages 31 | .pub-cache/ 32 | .pub/ 33 | /build/ 34 | 35 | # Web related 36 | lib/generated_plugin_registrant.dart 37 | 38 | # Symbolication related 39 | app.*.symbols 40 | 41 | # Obfuscation related 42 | app.*.map.json 43 | 44 | # Android Studio will place build artifacts here 45 | /android/app/debug 46 | /android/app/profile 47 | /android/app/release 48 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- 1 | # amap_search_fluttify_example 2 | 3 | Demonstrates how to use the amap_search_fluttify plugin. 4 | 5 | ## Getting Started 6 | 7 | This project is a starting point for a Flutter application. 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook) 13 | 14 | For help getting started with Flutter development, view the 15 | [online documentation](https://docs.flutter.dev/), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /example/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | # This file configures the analyzer, which statically analyzes Dart code to 2 | # check for errors, warnings, and lints. 3 | # 4 | # The issues identified by the analyzer are surfaced in the UI of Dart-enabled 5 | # IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be 6 | # invoked from the command line by running `flutter analyze`. 7 | 8 | # The following line activates a set of recommended lints for Flutter apps, 9 | # packages, and plugins designed to encourage good coding practices. 10 | include: package:flutter_lints/flutter.yaml 11 | 12 | linter: 13 | # The lint rules applied to this project can be customized in the 14 | # section below to disable rules from the `package:flutter_lints/flutter.yaml` 15 | # included above or to enable additional rules. A list of all available lints 16 | # and their documentation is published at 17 | # https://dart-lang.github.io/linter/lints/index.html. 18 | # 19 | # Instead of disabling a lint rule for the entire project in the 20 | # section below, it can also be suppressed for a single line of code 21 | # or a specific dart file by using the `// ignore: name_of_lint` and 22 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file 23 | # producing the lint. 24 | rules: 25 | # avoid_print: false # Uncomment to disable the `avoid_print` rule 26 | # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule 27 | 28 | # Additional information about this file can be found at 29 | # https://dart.dev/guides/language/analysis-options 30 | -------------------------------------------------------------------------------- /example/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | 9 | # Remember to never publicly share your keystore. 10 | # See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app 11 | key.properties 12 | **/*.keystore 13 | **/*.jks 14 | -------------------------------------------------------------------------------- /example/android/amap_search_test.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/android/amap_search_test.jks -------------------------------------------------------------------------------- /example/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | def localProperties = new Properties() 2 | def localPropertiesFile = rootProject.file('local.properties') 3 | if (localPropertiesFile.exists()) { 4 | localPropertiesFile.withReader('UTF-8') { reader -> 5 | localProperties.load(reader) 6 | } 7 | } 8 | 9 | def flutterRoot = localProperties.getProperty('flutter.sdk') 10 | if (flutterRoot == null) { 11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") 12 | } 13 | 14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode') 15 | if (flutterVersionCode == null) { 16 | flutterVersionCode = '1' 17 | } 18 | 19 | def flutterVersionName = localProperties.getProperty('flutter.versionName') 20 | if (flutterVersionName == null) { 21 | flutterVersionName = '1.0' 22 | } 23 | 24 | apply plugin: 'com.android.application' 25 | apply plugin: 'kotlin-android' 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" 27 | 28 | android { 29 | compileSdkVersion flutter.compileSdkVersion 30 | ndkVersion flutter.ndkVersion 31 | 32 | compileOptions { 33 | sourceCompatibility JavaVersion.VERSION_1_8 34 | targetCompatibility JavaVersion.VERSION_1_8 35 | } 36 | 37 | defaultConfig { 38 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). 39 | applicationId "me.yohom.amap_search_fluttify_example" 40 | // You can update the following values to match your application needs. 41 | // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. 42 | minSdkVersion 21 43 | targetSdkVersion flutter.targetSdkVersion 44 | versionCode flutterVersionCode.toInteger() 45 | versionName flutterVersionName 46 | } 47 | 48 | signingConfigs { 49 | release { 50 | keyAlias 'amap_search_test' 51 | keyPassword 'amap_search_test' 52 | storeFile file('../amap_search_test.jks') 53 | storePassword 'amap_search_test' 54 | } 55 | } 56 | 57 | buildTypes { 58 | debug { 59 | signingConfig signingConfigs.release 60 | } 61 | release { 62 | signingConfig signingConfigs.release 63 | } 64 | } 65 | } 66 | 67 | flutter { 68 | source '../..' 69 | } 70 | -------------------------------------------------------------------------------- /example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 21 | 22 | 24 | 25 | 33 | 37 | 41 | 42 | 43 | 44 | 45 | 46 | 48 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /example/android/app/src/main/java/me/yohom/amap_search_fluttify_example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package me.yohom.amap_search_fluttify_example; 2 | 3 | import io.flutter.embedding.android.FlutterActivity; 4 | 5 | public class MainActivity extends FlutterActivity { 6 | } 7 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /example/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /example/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /example/android/build.gradle: -------------------------------------------------------------------------------- 1 | buildscript { 2 | ext.kotlin_version = '1.6.10' 3 | repositories { 4 | google() 5 | mavenCentral() 6 | } 7 | 8 | dependencies { 9 | classpath 'com.android.tools.build:gradle:7.1.2' 10 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" 11 | } 12 | } 13 | 14 | allprojects { 15 | repositories { 16 | google() 17 | mavenCentral() 18 | } 19 | } 20 | 21 | rootProject.buildDir = '../build' 22 | subprojects { 23 | project.buildDir = "${rootProject.buildDir}/${project.name}" 24 | } 25 | subprojects { 26 | project.evaluationDependsOn(':app') 27 | } 28 | 29 | task clean(type: Delete) { 30 | delete rootProject.buildDir 31 | } 32 | -------------------------------------------------------------------------------- /example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx1536M 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Fri Jun 23 08:50:38 CEST 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip 7 | -------------------------------------------------------------------------------- /example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | 3 | def localPropertiesFile = new File(rootProject.projectDir, "local.properties") 4 | def properties = new Properties() 5 | 6 | assert localPropertiesFile.exists() 7 | localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } 8 | 9 | def flutterSdkPath = properties.getProperty("flutter.sdk") 10 | assert flutterSdkPath != null, "flutter.sdk not set in local.properties" 11 | apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" 12 | -------------------------------------------------------------------------------- /example/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 9.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /example/ios/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://gitee.com/mirrors/CocoaPods-Specs.git' # 指定源 2 | 3 | # Uncomment this line to define a global platform for your project 4 | # platform :ios, '9.0' 5 | 6 | # CocoaPods analytics sends network stats synchronously affecting flutter build latency. 7 | ENV['COCOAPODS_DISABLE_STATS'] = 'true' 8 | 9 | project 'Runner', { 10 | 'Debug' => :debug, 11 | 'Profile' => :release, 12 | 'Release' => :release, 13 | } 14 | 15 | def flutter_root 16 | generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__) 17 | unless File.exist?(generated_xcode_build_settings_path) 18 | raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" 19 | end 20 | 21 | File.foreach(generated_xcode_build_settings_path) do |line| 22 | matches = line.match(/FLUTTER_ROOT\=(.*)/) 23 | return matches[1].strip if matches 24 | end 25 | raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" 26 | end 27 | 28 | require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) 29 | 30 | flutter_ios_podfile_setup 31 | 32 | target 'Runner' do 33 | flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__)) 34 | end 35 | 36 | post_install do |installer| 37 | installer.pods_project.targets.each do |target| 38 | flutter_additional_ios_build_settings(target) 39 | end 40 | end 41 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 37 | 38 | 39 | 40 | 41 | 42 | 52 | 54 | 60 | 61 | 62 | 63 | 69 | 71 | 77 | 78 | 79 | 80 | 82 | 83 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface AppDelegate : FlutterAppDelegate 5 | 6 | @end 7 | -------------------------------------------------------------------------------- /example/ios/Runner/AppDelegate.m: -------------------------------------------------------------------------------- 1 | #import "AppDelegate.h" 2 | #import "GeneratedPluginRegistrant.h" 3 | 4 | @implementation AppDelegate 5 | 6 | - (BOOL)application:(UIApplication *)application 7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 8 | [GeneratedPluginRegistrant registerWithRegistry:self]; 9 | // Override point for customization after application launch. 10 | return [super application:application didFinishLaunchingWithOptions:launchOptions]; 11 | } 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "60x60", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-60x60@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "60x60", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-60x60@3x.png", 55 | "scale" : "3x" 56 | }, 57 | { 58 | "size" : "20x20", 59 | "idiom" : "ipad", 60 | "filename" : "Icon-App-20x20@1x.png", 61 | "scale" : "1x" 62 | }, 63 | { 64 | "size" : "20x20", 65 | "idiom" : "ipad", 66 | "filename" : "Icon-App-20x20@2x.png", 67 | "scale" : "2x" 68 | }, 69 | { 70 | "size" : "29x29", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-29x29@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "29x29", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-29x29@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "40x40", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-40x40@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "40x40", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-40x40@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "76x76", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-76x76@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "76x76", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-76x76@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "83.5x83.5", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-App-83.5x83.5@2x.png", 109 | "scale" : "2x" 110 | }, 111 | { 112 | "size" : "1024x1024", 113 | "idiom" : "ios-marketing", 114 | "filename" : "Icon-App-1024x1024@1x.png", 115 | "scale" : "1x" 116 | } 117 | ], 118 | "info" : { 119 | "version" : 1, 120 | "author" : "xcode" 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /example/ios/Runner/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /example/ios/Runner/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | amap_search_fluttify_example 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | $(FLUTTER_BUILD_NAME) 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(FLUTTER_BUILD_NUMBER) 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UISupportedInterfaceOrientations 30 | 31 | UIInterfaceOrientationPortrait 32 | UIInterfaceOrientationLandscapeLeft 33 | UIInterfaceOrientationLandscapeRight 34 | 35 | UISupportedInterfaceOrientations~ipad 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationPortraitUpsideDown 39 | UIInterfaceOrientationLandscapeLeft 40 | UIInterfaceOrientationLandscapeRight 41 | 42 | UIViewControllerBasedStatusBarAppearance 43 | 44 | CADisableMinimumFrameDurationOnPhone 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /example/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /example/lib/get_map_data/get_bus_info.screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:amap_search_fluttify/amap_search_fluttify.dart'; 2 | import 'package:amap_search_fluttify_example/widgets/scrollable_text.widget.dart'; 3 | import 'package:decorated_flutter/decorated_flutter.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | /// 获取公交数据 7 | class GetBusInfoScreen extends StatefulWidget { 8 | @override 9 | _GetBusInfoScreenState createState() => _GetBusInfoScreenState(); 10 | } 11 | 12 | class _GetBusInfoScreenState extends State { 13 | final _keywordController = TextEditingController(text: '武林广场'); 14 | final _cityController = TextEditingController(text: '杭州'); 15 | 16 | String _busStation = ''; 17 | 18 | @override 19 | Widget build(BuildContext context) { 20 | return Scaffold( 21 | resizeToAvoidBottomInset: false, 22 | appBar: AppBar(title: const Text('获取公交数据')), 23 | body: DecoratedColumn( 24 | padding: const EdgeInsets.all(kSpace16), 25 | children: [ 26 | TextFormField( 27 | controller: _keywordController, 28 | decoration: const InputDecoration(hintText: '输入公交站点名称'), 29 | ), 30 | TextFormField( 31 | controller: _cityController, 32 | decoration: const InputDecoration(hintText: '输入城市'), 33 | ), 34 | RaisedButton( 35 | onPressed: () async { 36 | final busStation = await AmapSearch.instance.searchBusStation( 37 | stationName: _keywordController.text, 38 | city: _cityController.text, 39 | ); 40 | _busStation = await busStation.toFutureString(); 41 | setState(() {}); 42 | }, 43 | child: const Text('搜索'), 44 | ), 45 | Expanded(child: ScrollableText(_busStation)), 46 | ], 47 | ), 48 | ); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /example/lib/get_map_data/get_district_info.screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:amap_search_fluttify/amap_search_fluttify.dart'; 2 | import 'package:decorated_flutter/decorated_flutter.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | /// 获取行政区划数据 6 | class GetDistrictInfoScreen extends StatefulWidget { 7 | @override 8 | _GetDistrictInfoScreenState createState() => _GetDistrictInfoScreenState(); 9 | } 10 | 11 | class _GetDistrictInfoScreenState extends State { 12 | final _keywordController = TextEditingController(text: '西湖区'); 13 | 14 | String _district = ''; 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return Scaffold( 19 | resizeToAvoidBottomInset: false, 20 | appBar: AppBar(title: const Text('获取行政区划数据')), 21 | body: DecoratedColumn( 22 | padding: const EdgeInsets.all(kSpace16), 23 | children: [ 24 | TextFormField( 25 | controller: _keywordController, 26 | decoration: const InputDecoration(hintText: '输入地区'), 27 | ), 28 | RaisedButton( 29 | onPressed: () async { 30 | final district = await AmapSearch.instance.searchDistrict( 31 | _keywordController.text, 32 | showBoundary: true, 33 | showChild: true, 34 | ); 35 | _district = district.toString(); 36 | setState(() {}); 37 | }, 38 | child: const Text('搜索'), 39 | ), 40 | Expanded(child: SingleChildScrollView(child: Text(_district))), 41 | ], 42 | ), 43 | ); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /example/lib/get_map_data/get_weather_info.screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:amap_search_fluttify/amap_search_fluttify.dart'; 2 | import 'package:decorated_flutter/decorated_flutter.dart'; 3 | import 'package:flutter/material.dart'; 4 | 5 | /// 获取天气数据 6 | class GetWeatherInfoScreen extends StatefulWidget { 7 | @override 8 | _GetWeatherInfoScreenState createState() => _GetWeatherInfoScreenState(); 9 | } 10 | 11 | class _GetWeatherInfoScreenState extends State { 12 | final _keywordController = TextEditingController(text: '杭州'); 13 | 14 | String _district = ''; 15 | 16 | @override 17 | Widget build(BuildContext context) { 18 | return Scaffold( 19 | resizeToAvoidBottomInset: false, 20 | appBar: AppBar(title: const Text('获取天气数据')), 21 | body: DecoratedColumn( 22 | padding: const EdgeInsets.all(kSpace16), 23 | children: [ 24 | TextFormField( 25 | controller: _keywordController, 26 | decoration: const InputDecoration(hintText: '输入地区'), 27 | ), 28 | RaisedButton( 29 | onPressed: () async { 30 | final district = await AmapSearch.instance 31 | .searchDistrict(_keywordController.text); 32 | _district = district.toString(); 33 | setState(() {}); 34 | }, 35 | child: const Text('搜索'), 36 | ), 37 | Expanded(child: SingleChildScrollView(child: Text(_district))), 38 | ], 39 | ), 40 | ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /example/lib/route_plan/route_bus.screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:amap_search_fluttify/amap_search_fluttify.dart'; 2 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 3 | import 'package:decorated_flutter/decorated_flutter.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | /// 公交路线规划 7 | class RouteBusScreen extends StatefulWidget { 8 | @override 9 | _RouteBusScreenState createState() => _RouteBusScreenState(); 10 | } 11 | 12 | class _RouteBusScreenState extends State { 13 | final _fromLatController = TextEditingController(text: '30.219933'); 14 | final _fromLngController = TextEditingController(text: '120.023728'); 15 | 16 | final _toLatController = TextEditingController(text: '30.27065'); 17 | final _toLngController = TextEditingController(text: '120.163117'); 18 | 19 | String _routeResult = ''; 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return Scaffold( 24 | resizeToAvoidBottomInset: false, 25 | appBar: AppBar(title: const Text('公交路线规划')), 26 | body: DecoratedColumn( 27 | padding: const EdgeInsets.all(kSpace16), 28 | children: [ 29 | DecoratedRow( 30 | itemSpacing: kSpace8, 31 | children: [ 32 | const Text('起点:'), 33 | Flexible( 34 | child: TextFormField( 35 | controller: _fromLatController, 36 | keyboardType: TextInputType.number, 37 | decoration: const InputDecoration(hintText: '输入出发点纬度'), 38 | ), 39 | ), 40 | Flexible( 41 | child: TextFormField( 42 | controller: _fromLngController, 43 | keyboardType: TextInputType.number, 44 | decoration: const InputDecoration(hintText: '输入出发点经度'), 45 | ), 46 | ), 47 | ], 48 | ), 49 | DecoratedRow( 50 | itemSpacing: kSpace8, 51 | children: [ 52 | const Text('终点:'), 53 | Flexible( 54 | child: TextFormField( 55 | controller: _toLatController, 56 | keyboardType: TextInputType.number, 57 | decoration: const InputDecoration(hintText: '输入终点纬度'), 58 | ), 59 | ), 60 | Flexible( 61 | child: TextFormField( 62 | controller: _toLngController, 63 | keyboardType: TextInputType.number, 64 | decoration: const InputDecoration(hintText: '输入终点经度'), 65 | ), 66 | ), 67 | ], 68 | ), 69 | RaisedButton( 70 | onPressed: () async { 71 | final routeResult = await AmapSearch.instance.searchBusRoute( 72 | from: LatLng( 73 | double.parse(_fromLatController.text), 74 | double.parse(_fromLngController.text), 75 | ), 76 | to: LatLng( 77 | double.parse(_toLatController.text), 78 | double.parse(_toLngController.text), 79 | ), 80 | city: '杭州', 81 | ); 82 | routeResult 83 | .toFutureString() 84 | .then((it) => setState(() => _routeResult = it)); 85 | }, 86 | child: const Text('搜索'), 87 | ), 88 | Expanded( 89 | child: SingleChildScrollView( 90 | child: Text(_routeResult), 91 | ), 92 | ), 93 | ], 94 | ), 95 | ); 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /example/lib/route_plan/route_drive.screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:amap_search_fluttify/amap_search_fluttify.dart'; 2 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 3 | import 'package:decorated_flutter/decorated_flutter.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | /// 驾车路线规划 7 | class RouteDriveScreen extends StatefulWidget { 8 | @override 9 | _RouteDriveScreenState createState() => _RouteDriveScreenState(); 10 | } 11 | 12 | class _RouteDriveScreenState extends State { 13 | final _fromLatController = TextEditingController(text: '30.219933'); 14 | final _fromLngController = TextEditingController(text: '120.023728'); 15 | 16 | final _toLatController = TextEditingController(text: '30.27065'); 17 | final _toLngController = TextEditingController(text: '120.163117'); 18 | 19 | String _routeResult = ''; 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return Scaffold( 24 | resizeToAvoidBottomInset: false, 25 | appBar: AppBar(title: const Text('驾车路线规划')), 26 | body: DecoratedColumn( 27 | padding: const EdgeInsets.all(kSpace16), 28 | children: [ 29 | DecoratedRow( 30 | itemSpacing: kSpace8, 31 | children: [ 32 | const Text('起点:'), 33 | Flexible( 34 | child: TextFormField( 35 | controller: _fromLatController, 36 | keyboardType: TextInputType.number, 37 | decoration: const InputDecoration(hintText: '输入出发点纬度'), 38 | ), 39 | ), 40 | Flexible( 41 | child: TextFormField( 42 | controller: _fromLngController, 43 | keyboardType: TextInputType.number, 44 | decoration: const InputDecoration(hintText: '输入出发点经度'), 45 | ), 46 | ), 47 | ], 48 | ), 49 | DecoratedRow( 50 | itemSpacing: kSpace8, 51 | children: [ 52 | const Text('终点:'), 53 | Flexible( 54 | child: TextFormField( 55 | controller: _toLatController, 56 | keyboardType: TextInputType.number, 57 | decoration: const InputDecoration(hintText: '输入终点纬度'), 58 | ), 59 | ), 60 | Flexible( 61 | child: TextFormField( 62 | controller: _toLngController, 63 | keyboardType: TextInputType.number, 64 | decoration: const InputDecoration(hintText: '输入终点经度'), 65 | ), 66 | ), 67 | ], 68 | ), 69 | RaisedButton( 70 | onPressed: () async { 71 | try { 72 | final routeResult = await AmapSearch.instance.searchDriveRoute( 73 | from: LatLng( 74 | double.parse(_fromLatController.text), 75 | double.parse(_fromLngController.text), 76 | ), 77 | to: LatLng( 78 | double.parse(_toLatController.text), 79 | double.parse(_toLngController.text), 80 | ), 81 | ); 82 | routeResult 83 | .toFutureString() 84 | .then((it) => setState(() => _routeResult = it)); 85 | } catch (e) { 86 | setState(() => _routeResult = e.toString()); 87 | } 88 | }, 89 | child: const Text('搜索'), 90 | ), 91 | Expanded( 92 | child: SingleChildScrollView( 93 | child: Text(_routeResult), 94 | ), 95 | ), 96 | ], 97 | ), 98 | ); 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /example/lib/route_plan/route_ride.screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:amap_search_fluttify/amap_search_fluttify.dart'; 2 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 3 | import 'package:decorated_flutter/decorated_flutter.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | /// 骑行路线规划 7 | class RouteRideScreen extends StatefulWidget { 8 | @override 9 | _RouteRideScreenState createState() => _RouteRideScreenState(); 10 | } 11 | 12 | class _RouteRideScreenState extends State { 13 | final _fromLatController = TextEditingController(text: '30.219933'); 14 | final _fromLngController = TextEditingController(text: '120.023728'); 15 | 16 | final _toLatController = TextEditingController(text: '30.27065'); 17 | final _toLngController = TextEditingController(text: '120.163117'); 18 | 19 | String _routeResult = ''; 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return Scaffold( 24 | resizeToAvoidBottomInset: false, 25 | appBar: AppBar(title: const Text('骑行路线规划')), 26 | body: DecoratedColumn( 27 | padding: const EdgeInsets.all(kSpace16), 28 | children: [ 29 | DecoratedRow( 30 | itemSpacing: kSpace8, 31 | children: [ 32 | const Text('起点:'), 33 | Flexible( 34 | child: TextFormField( 35 | controller: _fromLatController, 36 | keyboardType: TextInputType.number, 37 | decoration: const InputDecoration(hintText: '输入出发点纬度'), 38 | ), 39 | ), 40 | Flexible( 41 | child: TextFormField( 42 | controller: _fromLngController, 43 | keyboardType: TextInputType.number, 44 | decoration: const InputDecoration(hintText: '输入出发点经度'), 45 | ), 46 | ), 47 | ], 48 | ), 49 | DecoratedRow( 50 | itemSpacing: kSpace8, 51 | children: [ 52 | const Text('终点:'), 53 | Flexible( 54 | child: TextFormField( 55 | controller: _toLatController, 56 | keyboardType: TextInputType.number, 57 | decoration: const InputDecoration(hintText: '输入终点纬度'), 58 | ), 59 | ), 60 | Flexible( 61 | child: TextFormField( 62 | controller: _toLngController, 63 | keyboardType: TextInputType.number, 64 | decoration: const InputDecoration(hintText: '输入终点经度'), 65 | ), 66 | ), 67 | ], 68 | ), 69 | RaisedButton( 70 | onPressed: () async { 71 | final routeResult = await AmapSearch.instance.searchRideRoute( 72 | from: LatLng( 73 | double.parse(_fromLatController.text), 74 | double.parse(_fromLngController.text), 75 | ), 76 | to: LatLng( 77 | double.parse(_toLatController.text), 78 | double.parse(_toLngController.text), 79 | ), 80 | ); 81 | routeResult 82 | .toFutureString() 83 | .then((it) => setState(() => _routeResult = it)); 84 | }, 85 | child: const Text('搜索'), 86 | ), 87 | Expanded(child: SingleChildScrollView(child: Text(_routeResult))), 88 | ], 89 | ), 90 | ); 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /example/lib/route_plan/route_walk.screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:amap_search_fluttify/amap_search_fluttify.dart'; 2 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 3 | import 'package:decorated_flutter/decorated_flutter.dart'; 4 | import 'package:flutter/material.dart'; 5 | 6 | /// 步行路线规划 7 | class RouteWalkScreen extends StatefulWidget { 8 | @override 9 | _RouteWalkScreenState createState() => _RouteWalkScreenState(); 10 | } 11 | 12 | class _RouteWalkScreenState extends State { 13 | final _fromLatController = TextEditingController(text: '30.219933'); 14 | final _fromLngController = TextEditingController(text: '120.023728'); 15 | 16 | final _toLatController = TextEditingController(text: '30.27065'); 17 | final _toLngController = TextEditingController(text: '120.163117'); 18 | 19 | String _routeResult = ''; 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return Scaffold( 24 | resizeToAvoidBottomInset: false, 25 | appBar: AppBar(title: const Text('步行路线规划')), 26 | body: DecoratedColumn( 27 | padding: const EdgeInsets.all(kSpace16), 28 | children: [ 29 | DecoratedRow( 30 | itemSpacing: kSpace8, 31 | children: [ 32 | const Text('起点:'), 33 | Flexible( 34 | child: TextFormField( 35 | controller: _fromLatController, 36 | keyboardType: TextInputType.number, 37 | decoration: const InputDecoration(hintText: '输入出发点纬度'), 38 | ), 39 | ), 40 | Flexible( 41 | child: TextFormField( 42 | controller: _fromLngController, 43 | keyboardType: TextInputType.number, 44 | decoration: const InputDecoration(hintText: '输入出发点经度'), 45 | ), 46 | ), 47 | ], 48 | ), 49 | DecoratedRow( 50 | itemSpacing: kSpace8, 51 | children: [ 52 | const Text('终点:'), 53 | Flexible( 54 | child: TextFormField( 55 | controller: _toLatController, 56 | keyboardType: TextInputType.number, 57 | decoration: const InputDecoration(hintText: '输入终点纬度'), 58 | ), 59 | ), 60 | Flexible( 61 | child: TextFormField( 62 | controller: _toLngController, 63 | keyboardType: TextInputType.number, 64 | decoration: const InputDecoration(hintText: '输入终点经度'), 65 | ), 66 | ), 67 | ], 68 | ), 69 | RaisedButton( 70 | onPressed: () async { 71 | final routeResult = await AmapSearch.instance.searchWalkRoute( 72 | from: LatLng( 73 | double.parse(_fromLatController.text), 74 | double.parse(_fromLngController.text), 75 | ), 76 | to: LatLng( 77 | double.parse(_toLatController.text), 78 | double.parse(_toLngController.text), 79 | ), 80 | ); 81 | routeResult 82 | .toFutureString() 83 | .then((it) => setState(() => _routeResult = it)); 84 | }, 85 | child: const Text('搜索'), 86 | ), 87 | Expanded( 88 | child: SingleChildScrollView( 89 | child: Text(_routeResult), 90 | ), 91 | ), 92 | ], 93 | ), 94 | ); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /example/lib/utils/misc.dart: -------------------------------------------------------------------------------- 1 | import 'package:decorated_flutter/decorated_flutter.dart'; 2 | import 'package:permission_handler/permission_handler.dart'; 3 | 4 | Future requestPermission() async { 5 | final status = await Permission.location.request(); 6 | 7 | if (status == PermissionStatus.granted) { 8 | return true; 9 | } else { 10 | toast('需要定位权限!'); 11 | return false; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /example/lib/utils/utils.export.dart: -------------------------------------------------------------------------------- 1 | export 'misc.dart'; 2 | -------------------------------------------------------------------------------- /example/lib/widgets/button.widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class Button extends StatelessWidget { 4 | const Button({ 5 | Key? key, 6 | required this.label, 7 | required this.onPressed, 8 | }) : super(key: key); 9 | 10 | final String label; 11 | final ValueChanged onPressed; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return RaisedButton( 16 | padding: const EdgeInsets.symmetric(vertical: 16), 17 | color: Colors.black, 18 | onPressed: () => onPressed(context), 19 | shape: const StadiumBorder(), 20 | child: Text( 21 | label, 22 | style: const TextStyle(color: Colors.white, fontSize: 15), 23 | ), 24 | ); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /example/lib/widgets/dimens.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | //region space 4 | const kSpaceZero = 0.0; 5 | const kSpaceTiny = 1.0; 6 | const kSpaceSmall = 4.0; 7 | const kSpace8 = 8.0; 8 | const kSpaceLittleBig = 12.0; 9 | const kSpace16 = 16.0; 10 | const kSpaceLarge = 24.0; 11 | const kSpaceHuge = 32.0; 12 | const kSpaceGiant = 64.0; 13 | 14 | const SPACE_ZERO = SizedBox.shrink(); 15 | 16 | const SPACE_TINY = SizedBox(width: kSpaceTiny, height: kSpaceTiny); 17 | const SPACE_TINY_HORIZONTAL = SizedBox(width: kSpaceTiny, height: kSpaceZero); 18 | const SPACE_TINY_VERTICAL = SizedBox(width: kSpaceZero, height: kSpaceTiny); 19 | 20 | const SPACE_SMALL = SizedBox(width: kSpaceSmall, height: kSpaceSmall); 21 | const SPACE_4_HORIZONTAL = SizedBox(width: kSpaceSmall, height: kSpaceZero); 22 | const SPACE_SMALL_VERTICAL = SizedBox(width: kSpaceZero, height: kSpaceSmall); 23 | 24 | const SPACE_NORMAL = SizedBox(width: kSpace8, height: kSpace8); 25 | const SPACE_NORMAL_HORIZONTAL = SizedBox(width: kSpace8, height: kSpaceZero); 26 | const SPACE_NORMAL_VERTICAL = SizedBox(width: kSpaceZero, height: kSpace8); 27 | 28 | const SPACE_LITTLE_BIG = 29 | SizedBox(width: kSpaceLittleBig, height: kSpaceLittleBig); 30 | const SPACE_LITTLE_BIG_HORIZONTAL = 31 | SizedBox(width: kSpaceLittleBig, height: kSpaceZero); 32 | const SPACE_LITTLE_BIG_VERTICAL = 33 | SizedBox(width: kSpaceZero, height: kSpaceLittleBig); 34 | 35 | const SPACE_BIG = SizedBox(width: kSpace16, height: kSpace16); 36 | const SPACE_BIG_HORIZONTAL = SizedBox(width: kSpace16, height: kSpaceZero); 37 | const SPACE_BIG_VERTICAL = SizedBox(width: kSpaceZero, height: kSpace16); 38 | 39 | const SPACE_LARGE = SizedBox(width: kSpaceLarge, height: kSpaceLarge); 40 | const SPACE_LARGE_HORIZONTAL = SizedBox(width: kSpaceLarge, height: kSpaceZero); 41 | const SPACE_LARGE_VERTICAL = SizedBox(width: kSpaceZero, height: kSpaceLarge); 42 | 43 | const SPACE_HUGE = SizedBox(width: kSpaceHuge, height: kSpaceHuge); 44 | const SPACE_HUGE_HORIZONTAL = SizedBox(width: kSpaceHuge, height: kSpaceZero); 45 | const SPACE_HUGE_VERTICAL = SizedBox(width: kSpaceZero, height: kSpaceHuge); 46 | 47 | const SPACE_GIANT = SizedBox(width: kSpaceGiant, height: kSpaceGiant); 48 | const SPACE_GIANT_HORIZONTAL = SizedBox(width: kSpaceGiant, height: kSpaceZero); 49 | const SPACE_GIANT_VERTICAL = SizedBox(width: kSpaceZero, height: kSpaceGiant); 50 | 51 | const kDividerTiny = Divider(height: kSpaceTiny); 52 | const kDividerSmall = Divider(height: kSpaceSmall); 53 | const kDividerNormal = Divider(); 54 | const kDividerLittleBig = Divider(height: kSpaceLittleBig); 55 | const kDividerBig = Divider(height: kSpace16); 56 | const kDividerLarge = Divider(height: kSpaceLarge); 57 | const kDividerHuge = Divider(height: kSpaceHuge); 58 | const kDividerGiant = Divider(height: kSpaceGiant); 59 | //endregion 60 | 61 | //region text 62 | const kTextNormal = 16.0; 63 | const kTextBig = 18.0; 64 | //endregion 65 | 66 | //region elevation 67 | const kElevationZero = 0.0; 68 | const kElevationTiny = 1.0; 69 | const kElevationSmall = 2.0; 70 | const kElevationNormal = 4.0; 71 | const kElevationBig = 8.0; 72 | const kElevationHuge = 16.0; 73 | const kElevationGiant = 32.0; 74 | //endregion 75 | -------------------------------------------------------------------------------- /example/lib/widgets/function_group.widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FunctionGroup extends StatelessWidget { 4 | const FunctionGroup({ 5 | Key? key, 6 | required this.headLabel, 7 | this.children = const [], 8 | }) : super(key: key); 9 | 10 | final String headLabel; 11 | final List children; 12 | 13 | @override 14 | Widget build(BuildContext context) { 15 | return Container( 16 | color: Colors.white, 17 | child: Column( 18 | crossAxisAlignment: CrossAxisAlignment.start, 19 | children: [ 20 | Column( 21 | crossAxisAlignment: CrossAxisAlignment.start, 22 | children: [ 23 | Padding( 24 | padding: 25 | const EdgeInsets.symmetric(horizontal: 16, vertical: 8), 26 | child: Text(headLabel, 27 | style: Theme.of(context).textTheme.headline6), 28 | ), 29 | const Divider(height: 1, indent: 16), 30 | ], 31 | ), ...children, 32 | ], 33 | ), 34 | ); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /example/lib/widgets/function_item.widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class FunctionItem extends StatelessWidget { 4 | const FunctionItem({ 5 | Key? key, 6 | required this.label, 7 | required this.sublabel, 8 | required this.target, 9 | }) : super(key: key); 10 | 11 | final String label; 12 | final String sublabel; 13 | final Widget target; 14 | 15 | @override 16 | Widget build(BuildContext context) { 17 | return Column( 18 | children: [ 19 | ListTile( 20 | title: Text(label), 21 | subtitle: Text(sublabel), 22 | trailing: const Icon(Icons.keyboard_arrow_right), 23 | onTap: () { 24 | Navigator.push( 25 | context, 26 | MaterialPageRoute(builder: (_) => target), 27 | ); 28 | }, 29 | ), 30 | const Divider(height: 1, indent: 16), 31 | ], 32 | ); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /example/lib/widgets/future.widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:decorated_flutter/decorated_flutter.dart'; 2 | import 'package:flutter/material.dart'; 3 | 4 | class FutureText extends StatelessWidget { 5 | const FutureText(this.data, {Key? key}) : super(key: key); 6 | 7 | final Future data; 8 | 9 | @override 10 | Widget build(BuildContext context) { 11 | return SingleSubscriber( 12 | future: data, 13 | showLoading: false, 14 | builder: (data) => Text(data), 15 | ); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /example/lib/widgets/scrollable_text.widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class ScrollableText extends StatelessWidget { 4 | final String data; 5 | 6 | const ScrollableText(this.data, {Key? key}) : super(key: key); 7 | 8 | @override 9 | Widget build(BuildContext context) { 10 | return SingleChildScrollView(child: Text(data)); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /example/lib/widgets/todo.screen.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | class TodoScreen extends StatelessWidget { 4 | @override 5 | Widget build(BuildContext context) { 6 | return Scaffold( 7 | appBar: AppBar(title: const Text('Todo')), 8 | body: const Center(child: Text('Todo')), 9 | ); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /example/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: amap_search_fluttify_example 2 | description: Demonstrates how to use the amap_search_fluttify plugin. 3 | publish_to: 'none' # Remove this line if you wish to publish to pub.dev 4 | 5 | environment: 6 | sdk: ">=2.17.1 <3.0.0" 7 | 8 | dependencies: 9 | flutter: 10 | sdk: flutter 11 | permission_handler: ^9.2.0 12 | decorated_flutter: ^0.40.0-dev.0 13 | amap_search_fluttify: 14 | path: ../ 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^2.0.0 20 | 21 | flutter: 22 | uses-material-design: true 23 | -------------------------------------------------------------------------------- /example/test/widget_test.dart: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh -------------------------------------------------------------------------------- /ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /ios/Classes/AmapSearchFluttifyPlugin.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import 6 | 7 | typedef void (^Handler)(NSObject *, id, FlutterResult); 8 | 9 | @interface AmapSearchFluttifyPlugin : NSObject 10 | 11 | - (instancetype) initWithFlutterPluginRegistrar: (NSObject *) registrar; 12 | 13 | @property(nonatomic) NSObject* registrar; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ios/Classes/AmapSearchFluttifyPlugin.m: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | #import 7 | #import "SubHandler/SubHandler0.h" 8 | #import "SubHandler/SubHandler1.h" 9 | #import "SubHandler/SubHandler2.h" 10 | #import "SubHandler/SubHandler3.h" 11 | #import "SubHandler/SubHandler4.h" 12 | #import "SubHandler/SubHandler5.h" 13 | #import "SubHandler/SubHandler6.h" 14 | #import "SubHandler/SubHandler7.h" 15 | #import "SubHandler/SubHandler8.h" 16 | #import "SubHandler/SubHandler9.h" 17 | #import "SubHandler/SubHandler10.h" 18 | #import "SubHandler/SubHandler11.h" 19 | #import "SubHandler/Custom/SubHandlerCustom.h" 20 | #import "FluttifyMessageCodec.h" 21 | #import 22 | 23 | // Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器 24 | extern NSMutableDictionary* STACK; 25 | // Dart端随机存取对象的容器 26 | extern NSMutableDictionary* HEAP; 27 | // 日志打印开关 28 | extern BOOL enableLog; 29 | 30 | @implementation AmapSearchFluttifyPlugin { 31 | NSMutableDictionary* _handlerMap; 32 | } 33 | 34 | - (instancetype) initWithFlutterPluginRegistrar: (NSObject *) registrar { 35 | self = [super init]; 36 | if (self) { 37 | _registrar = registrar; 38 | // 处理方法们 39 | _handlerMap = @{}.mutableCopy; 40 | 41 | [_handlerMap addEntriesFromDictionary: [self getSubHandler0]]; 42 | [_handlerMap addEntriesFromDictionary: [self getSubHandler1]]; 43 | [_handlerMap addEntriesFromDictionary: [self getSubHandler2]]; 44 | [_handlerMap addEntriesFromDictionary: [self getSubHandler3]]; 45 | [_handlerMap addEntriesFromDictionary: [self getSubHandler4]]; 46 | [_handlerMap addEntriesFromDictionary: [self getSubHandler5]]; 47 | [_handlerMap addEntriesFromDictionary: [self getSubHandler6]]; 48 | [_handlerMap addEntriesFromDictionary: [self getSubHandler7]]; 49 | [_handlerMap addEntriesFromDictionary: [self getSubHandler8]]; 50 | [_handlerMap addEntriesFromDictionary: [self getSubHandler9]]; 51 | [_handlerMap addEntriesFromDictionary: [self getSubHandler10]]; 52 | [_handlerMap addEntriesFromDictionary: [self getSubHandler11]]; 53 | [_handlerMap addEntriesFromDictionary: [self getSubHandlerCustom]]; 54 | } 55 | 56 | return self; 57 | } 58 | 59 | + (void)registerWithRegistrar:(NSObject *)registrar { 60 | FlutterMethodChannel *channel = [FlutterMethodChannel 61 | methodChannelWithName:@"me.yohom/amap_search_fluttify" 62 | binaryMessenger:[registrar messenger] 63 | codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]]; 64 | 65 | [registrar addMethodCallDelegate:[[AmapSearchFluttifyPlugin alloc] initWithFlutterPluginRegistrar:registrar] 66 | channel:channel]; 67 | 68 | // 注册View 69 | 70 | } 71 | 72 | // Method Handlers 73 | - (void)handleMethodCall:(FlutterMethodCall *)methodCall result:(FlutterResult)methodResult { 74 | if (_handlerMap[methodCall.method] != nil) { 75 | _handlerMap[methodCall.method](_registrar, [methodCall arguments], methodResult); 76 | } else { 77 | methodResult(FlutterMethodNotImplemented); 78 | } 79 | } 80 | 81 | @end -------------------------------------------------------------------------------- /ios/Classes/Anonymous/AMapNearbySearchManagerDelegate_Anonymous.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import 6 | #import 7 | 8 | @protocol FlutterPluginRegistrar; 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface AMapNearbySearchManagerDelegate_Anonymous : NSObject 13 | 14 | - (instancetype) initWithFlutterPluginRegistrar: (NSObject *) registrar; 15 | 16 | @property(nonatomic) NSObject* registrar; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | 22 | -------------------------------------------------------------------------------- /ios/Classes/Anonymous/AMapSearchDelegate_Anonymous.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import 6 | #import 7 | 8 | @protocol FlutterPluginRegistrar; 9 | 10 | NS_ASSUME_NONNULL_BEGIN 11 | 12 | @interface AMapSearchDelegate_Anonymous : NSObject 13 | 14 | - (instancetype) initWithFlutterPluginRegistrar: (NSObject *) registrar; 15 | 16 | @property(nonatomic) NSObject* registrar; 17 | 18 | @end 19 | 20 | NS_ASSUME_NONNULL_END 21 | 22 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/Custom/SubHandlerCustom.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandlerCustom) 10 | - (NSDictionary*) getSubHandlerCustom; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/Custom/SubHandlerCustom.m: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "SubHandlerCustom.h" 6 | #import "FluttifyMessageCodec.h" 7 | 8 | // Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器 9 | extern NSMutableDictionary* STACK; 10 | // Dart端随机存取对象的容器 11 | extern NSMutableDictionary* HEAP; 12 | // 日志打印开关 13 | extern BOOL enableLog; 14 | 15 | @implementation AmapSearchFluttifyPlugin (SubHandlerCustom) 16 | - (NSDictionary*) getSubHandlerCustom { 17 | __weak __typeof(self)weakSelf = self; 18 | return @{ 19 | 20 | }; 21 | } 22 | 23 | @end 24 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler0.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler0) 10 | - (NSDictionary*) getSubHandler0; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler1.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler1) 10 | - (NSDictionary*) getSubHandler1; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler10.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler10) 10 | - (NSDictionary*) getSubHandler10; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler11.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler11) 10 | - (NSDictionary*) getSubHandler11; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler2.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler2) 10 | - (NSDictionary*) getSubHandler2; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler3.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler3) 10 | - (NSDictionary*) getSubHandler3; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler4.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler4) 10 | - (NSDictionary*) getSubHandler4; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler5.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler5) 10 | - (NSDictionary*) getSubHandler5; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler6.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler6) 10 | - (NSDictionary*) getSubHandler6; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler7.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler7) 10 | - (NSDictionary*) getSubHandler7; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler8.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler8) 10 | - (NSDictionary*) getSubHandler8; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/Classes/SubHandler/SubHandler9.h: -------------------------------------------------------------------------------- 1 | ////////////////////////////////////////////////////////// 2 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 3 | ////////////////////////////////////////////////////////// 4 | 5 | #import "AmapSearchFluttifyPlugin.h" 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface AmapSearchFluttifyPlugin (SubHandler9) 10 | - (NSDictionary*) getSubHandler9; 11 | @end 12 | 13 | NS_ASSUME_NONNULL_END 14 | -------------------------------------------------------------------------------- /ios/amap_search_fluttify.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 3 | # 4 | Pod::Spec.new do |s| 5 | s.name = 'amap_search_fluttify' 6 | s.version = '0.0.1' 7 | s.summary = 'An `Amap Search` Map Component, Powered By `Fluttify`, A Compiler Generating Dart Bindings For Native SDK.' 8 | s.description = <<-DESC 9 | A new flutter plugin project. 10 | DESC 11 | s.homepage = 'https://github.com/fluttify-project' 12 | s.license = { :file => '../LICENSE' } 13 | s.author = { 'yohom' => 'yohombao@qq.com' } 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = ['Classes/**/*.h', 'Vendors/*.h'] # 只接收顶层的.h文件, 防止framework下面的.h文件被包含 17 | s.dependency 'Flutter' 18 | s.dependency 'foundation_fluttify' 19 | # flutter plugin dependency 20 | 21 | # sdk dependency 22 | s.dependency 'AMapSearch-NO-IDFA', '9.2.0' 23 | 24 | s.static_framework = true 25 | s.ios.deployment_target = '8.0' 26 | # include project framework 27 | s.vendored_frameworks = 'Vendors/*.framework' 28 | # include project .a 29 | s.vendored_libraries = 'Vendors/*.a' 30 | # ios system framework 31 | s.frameworks = [ 32 | 33 | ] 34 | # ios system library 35 | s.libraries = [ 36 | 37 | ] 38 | # resources 39 | s.resources = 'Vendors/**/*.bundle' 40 | # s.resource_bundles = { 41 | # 'amap_search_fluttify' => ['Vendors/*.framework/*.bundle'] 42 | # } 43 | end 44 | 45 | -------------------------------------------------------------------------------- /lib/amap_search_fluttify.dart: -------------------------------------------------------------------------------- 1 | library amap_search_fluttify; 2 | 3 | export 'src/android/android.export.g.dart'; 4 | export 'src/facade/amap_search.dart'; 5 | export 'src/ios/ios.export.g.dart'; 6 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/busline/BusLineQuery/SearchType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum com_amap_api_services_busline_BusLineQuery_SearchType { 7 | BY_LINE_ID /* null */, 8 | BY_LINE_NAME /* null */ 9 | } 10 | 11 | extension com_amap_api_services_busline_BusLineQuery_SearchTypeToX on com_amap_api_services_busline_BusLineQuery_SearchType { 12 | int toValue() { 13 | switch (this) { 14 | case com_amap_api_services_busline_BusLineQuery_SearchType.BY_LINE_ID: return com_amap_api_services_busline_BusLineQuery_SearchType.BY_LINE_ID.index + 0; 15 | case com_amap_api_services_busline_BusLineQuery_SearchType.BY_LINE_NAME: return com_amap_api_services_busline_BusLineQuery_SearchType.BY_LINE_NAME.index + 0; 16 | default: return 0; 17 | } 18 | } 19 | } 20 | 21 | extension com_amap_api_services_busline_BusLineQuery_SearchTypeFromX on int { 22 | com_amap_api_services_busline_BusLineQuery_SearchType tocom_amap_api_services_busline_BusLineQuery_SearchType() { 23 | switch (this) { 24 | 25 | default: return com_amap_api_services_busline_BusLineQuery_SearchType.values[this + 0]; 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/busline/BusLineSearch/OnBusLineSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener_SUB extends java_lang_Object with com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener {} 17 | 18 | mixin com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener subInstance() => _com_amap_api_services_busline_BusLineSearch_OnBusLineSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusLineSearch.OnBusLineSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.busline.BusLineSearch.OnBusLineSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onBusLineSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onBusLineSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onBusLineSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(com_amap_api_services_busline_BusLineResult? var1, int? var2)? onBusLineSearched; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/busline/BusStationSearch/OnBusStationSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener_SUB extends java_lang_Object with com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener {} 17 | 18 | mixin com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener subInstance() => _com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.busline.BusStationSearch.OnBusStationSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.busline.BusStationSearch.OnBusStationSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onBusStationSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onBusStationSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onBusStationSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(com_amap_api_services_busline_BusStationResult? var1, int? var2)? onBusStationSearched; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/cloud/CloudItemDetail.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class com_amap_api_services_cloud_CloudItemDetail extends com_amap_api_services_cloud_CloudItem with android_os_Parcelable { 17 | //region constants 18 | static const String name__ = 'com.amap.api.services.cloud.CloudItemDetail'; 19 | 20 | @override 21 | final String tag__ = 'amap_search_fluttify'; 22 | 23 | 24 | //endregion 25 | 26 | //region creators 27 | static Future create__String__com_amap_api_services_core_LatLonPoint__String__String(String var1, com_amap_api_services_core_LatLonPoint var2, String var3, String var4) async { 28 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 29 | 'ObjectFactory::createcom_amap_api_services_cloud_CloudItemDetail__String__com_amap_api_services_core_LatLonPoint__String__String', 30 | {"var1": var1, "var2": var2, "var3": var3, "var4": var4} 31 | ); 32 | return AmapSearchFluttifyAndroidAs(__result__)!; 33 | } 34 | 35 | static Future> create_batch__String__com_amap_api_services_core_LatLonPoint__String__String(List var1, List var2, List var3, List var4) async { 36 | assert(var1.length == var2.length && var2.length == var3.length && var3.length == var4.length); 37 | final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 38 | 'ObjectFactory::create_batchcom_amap_api_services_cloud_CloudItemDetail__String__com_amap_api_services_core_LatLonPoint__String__String', 39 | [for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__]}] 40 | ); 41 | return __result_batch__ 42 | ?.map((it) => AmapSearchFluttifyAndroidAs(it)) 43 | .where((element) => element !=null) 44 | .cast() 45 | .toList() ?? []; 46 | } 47 | 48 | //endregion 49 | 50 | //region getters 51 | 52 | //endregion 53 | 54 | //region setters 55 | 56 | //endregion 57 | 58 | //region methods 59 | 60 | //endregion 61 | 62 | @override 63 | String toString() { 64 | return 'com_amap_api_services_cloud_CloudItemDetail{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; 65 | } 66 | } 67 | 68 | extension com_amap_api_services_cloud_CloudItemDetail_Batch on List { 69 | String? get refId { 70 | if (isEmpty) return null; 71 | return first?.refId; 72 | } 73 | 74 | //region getters 75 | 76 | //endregion 77 | 78 | //region setters 79 | 80 | //endregion 81 | 82 | //region methods 83 | 84 | //endregion 85 | } -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/cloud/CloudSearch/OnCloudSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener_SUB extends java_lang_Object with com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener {} 17 | 18 | mixin com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener subInstance() => _com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.cloud.CloudSearch.OnCloudSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.cloud.CloudSearch.OnCloudSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onCloudSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onCloudSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onCloudSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | case 'onCloudItemDetailSearched_': 44 | // print log 45 | if (fluttifyLogEnabled) { 46 | debugPrint('fluttify-dart-callback: __object__.onCloudItemDetailSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 47 | } 48 | 49 | // handle the native call 50 | __object__.onCloudItemDetailSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 51 | break; 52 | default: 53 | throw MissingPluginException('方法${methodCall.method}未实现'); 54 | break; 55 | } 56 | } catch (e) { 57 | debugPrint(e.toString()); 58 | rethrow; 59 | } 60 | }); 61 | 62 | return __object__; 63 | } 64 | 65 | 66 | @override 67 | final String tag__ = 'amap_search_fluttify'; 68 | 69 | 70 | 71 | 72 | 73 | Future Function(com_amap_api_services_cloud_CloudResult? var1, int? var2)? onCloudSearched; 74 | 75 | Future Function(com_amap_api_services_cloud_CloudItemDetail? var1, int? var2)? onCloudItemDetailSearched; 76 | 77 | } 78 | 79 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/district/DistrictSearch/OnDistrictSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener_SUB extends java_lang_Object with com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener {} 17 | 18 | mixin com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener subInstance() => _com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.district.DistrictSearch.OnDistrictSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.district.DistrictSearch.OnDistrictSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onDistrictSearched': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onDistrictSearched?.call([\'var1\':${args['var1']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onDistrictSearched?.call(AmapSearchFluttifyAndroidAs(args['var1'])); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(com_amap_api_services_district_DistrictResult? var1)? onDistrictSearched; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/geocoder/GeocodeSearch/OnGeocodeSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener_SUB extends java_lang_Object with com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener {} 17 | 18 | mixin com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener subInstance() => _com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch.OnGeocodeSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.geocoder.GeocodeSearch.OnGeocodeSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onRegeocodeSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onRegeocodeSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onRegeocodeSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | case 'onGeocodeSearched_': 44 | // print log 45 | if (fluttifyLogEnabled) { 46 | debugPrint('fluttify-dart-callback: __object__.onGeocodeSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 47 | } 48 | 49 | // handle the native call 50 | __object__.onGeocodeSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 51 | break; 52 | default: 53 | throw MissingPluginException('方法${methodCall.method}未实现'); 54 | break; 55 | } 56 | } catch (e) { 57 | debugPrint(e.toString()); 58 | rethrow; 59 | } 60 | }); 61 | 62 | return __object__; 63 | } 64 | 65 | 66 | @override 67 | final String tag__ = 'amap_search_fluttify'; 68 | 69 | 70 | 71 | 72 | 73 | Future Function(com_amap_api_services_geocoder_RegeocodeResult? var1, int? var2)? onRegeocodeSearched; 74 | 75 | Future Function(com_amap_api_services_geocoder_GeocodeResult? var1, int? var2)? onGeocodeSearched; 76 | 77 | } 78 | 79 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/help/Inputtips/InputtipsListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_help_Inputtips_InputtipsListener_SUB extends java_lang_Object with com_amap_api_services_help_Inputtips_InputtipsListener {} 17 | 18 | mixin com_amap_api_services_help_Inputtips_InputtipsListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_help_Inputtips_InputtipsListener subInstance() => _com_amap_api_services_help_Inputtips_InputtipsListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.help.Inputtips.InputtipsListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.help.Inputtips.InputtipsListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onGetInputtips_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onGetInputtips?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onGetInputtips?.call((args['var1'] as List? ?? []).map((it) => AmapSearchFluttifyAndroidAs(it)).where((e) => e != null).cast().toList(), args['var2']); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(List? var1, int? var2)? onGetInputtips; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/nearby/NearbySearchFunctionType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum com_amap_api_services_nearby_NearbySearchFunctionType { 7 | DISTANCE_SEARCH /* null */, 8 | DRIVING_DISTANCE_SEARCH /* null */ 9 | } 10 | 11 | extension com_amap_api_services_nearby_NearbySearchFunctionTypeToX on com_amap_api_services_nearby_NearbySearchFunctionType { 12 | int toValue() { 13 | switch (this) { 14 | case com_amap_api_services_nearby_NearbySearchFunctionType.DISTANCE_SEARCH: return com_amap_api_services_nearby_NearbySearchFunctionType.DISTANCE_SEARCH.index + 0; 15 | case com_amap_api_services_nearby_NearbySearchFunctionType.DRIVING_DISTANCE_SEARCH: return com_amap_api_services_nearby_NearbySearchFunctionType.DRIVING_DISTANCE_SEARCH.index + 0; 16 | default: return 0; 17 | } 18 | } 19 | } 20 | 21 | extension com_amap_api_services_nearby_NearbySearchFunctionTypeFromX on int { 22 | com_amap_api_services_nearby_NearbySearchFunctionType tocom_amap_api_services_nearby_NearbySearchFunctionType() { 23 | switch (this) { 24 | 25 | default: return com_amap_api_services_nearby_NearbySearchFunctionType.values[this + 0]; 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/nearby/UploadInfoCallback.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_nearby_UploadInfoCallback_SUB extends java_lang_Object with com_amap_api_services_nearby_UploadInfoCallback {} 17 | 18 | mixin com_amap_api_services_nearby_UploadInfoCallback on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_nearby_UploadInfoCallback subInstance() => _com_amap_api_services_nearby_UploadInfoCallback_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.nearby.UploadInfoCallback::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.nearby.UploadInfoCallback::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'OnUploadInfoCallback': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.OnUploadInfoCallback?.call([])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.OnUploadInfoCallback?.call(); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function()? OnUploadInfoCallback; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/poisearch/PoiSearch/OnPoiSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener_SUB extends java_lang_Object with com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener {} 17 | 18 | mixin com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener subInstance() => _com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.poisearch.PoiSearch.OnPoiSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.poisearch.PoiSearch.OnPoiSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onPoiSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onPoiSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onPoiSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | case 'onPoiItemSearched_': 44 | // print log 45 | if (fluttifyLogEnabled) { 46 | debugPrint('fluttify-dart-callback: __object__.onPoiItemSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 47 | } 48 | 49 | // handle the native call 50 | __object__.onPoiItemSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 51 | break; 52 | default: 53 | throw MissingPluginException('方法${methodCall.method}未实现'); 54 | break; 55 | } 56 | } catch (e) { 57 | debugPrint(e.toString()); 58 | rethrow; 59 | } 60 | }); 61 | 62 | return __object__; 63 | } 64 | 65 | 66 | @override 67 | final String tag__ = 'amap_search_fluttify'; 68 | 69 | 70 | 71 | 72 | 73 | Future Function(com_amap_api_services_poisearch_PoiResult? var1, int? var2)? onPoiSearched; 74 | 75 | Future Function(com_amap_api_services_core_PoiItem? var1, int? var2)? onPoiItemSearched; 76 | 77 | } 78 | 79 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/route/DistanceSearch/OnDistanceSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener_SUB extends java_lang_Object with com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener {} 17 | 18 | mixin com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener subInstance() => _com_amap_api_services_route_DistanceSearch_OnDistanceSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.DistanceSearch.OnDistanceSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.route.DistanceSearch.OnDistanceSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onDistanceSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onDistanceSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onDistanceSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(com_amap_api_services_route_DistanceResult? var1, int? var2)? onDistanceSearched; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/route/RouteSearch/OnRoutePlanSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_route_RouteSearch_OnRoutePlanSearchListener_SUB extends java_lang_Object with com_amap_api_services_route_RouteSearch_OnRoutePlanSearchListener {} 17 | 18 | mixin com_amap_api_services_route_RouteSearch_OnRoutePlanSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_route_RouteSearch_OnRoutePlanSearchListener subInstance() => _com_amap_api_services_route_RouteSearch_OnRoutePlanSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteSearch.OnRoutePlanSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.route.RouteSearch.OnRoutePlanSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onDriveRoutePlanSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onDriveRoutePlanSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onDriveRoutePlanSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(com_amap_api_services_route_DriveRoutePlanResult? var1, int? var2)? onDriveRoutePlanSearched; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/route/RouteSearch/OnTruckRouteSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_route_RouteSearch_OnTruckRouteSearchListener_SUB extends java_lang_Object with com_amap_api_services_route_RouteSearch_OnTruckRouteSearchListener {} 17 | 18 | mixin com_amap_api_services_route_RouteSearch_OnTruckRouteSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_route_RouteSearch_OnTruckRouteSearchListener subInstance() => _com_amap_api_services_route_RouteSearch_OnTruckRouteSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteSearch.OnTruckRouteSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.route.RouteSearch.OnTruckRouteSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onTruckRouteSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onTruckRouteSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onTruckRouteSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(com_amap_api_services_route_TruckRouteRestult? var1, int? var2)? onTruckRouteSearched; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/route/RouteSearchV2/OnRoutePlanSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_route_RouteSearchV2_OnRoutePlanSearchListener_SUB extends java_lang_Object with com_amap_api_services_route_RouteSearchV2_OnRoutePlanSearchListener {} 17 | 18 | mixin com_amap_api_services_route_RouteSearchV2_OnRoutePlanSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_route_RouteSearchV2_OnRoutePlanSearchListener subInstance() => _com_amap_api_services_route_RouteSearchV2_OnRoutePlanSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteSearchV2.OnRoutePlanSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.route.RouteSearchV2.OnRoutePlanSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onDriveRoutePlanSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onDriveRoutePlanSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onDriveRoutePlanSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(com_amap_api_services_route_DriveRoutePlanResult? var1, int? var2)? onDriveRoutePlanSearched; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/route/RouteSearchV2/OnRouteSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_route_RouteSearchV2_OnRouteSearchListener_SUB extends java_lang_Object with com_amap_api_services_route_RouteSearchV2_OnRouteSearchListener {} 17 | 18 | mixin com_amap_api_services_route_RouteSearchV2_OnRouteSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_route_RouteSearchV2_OnRouteSearchListener subInstance() => _com_amap_api_services_route_RouteSearchV2_OnRouteSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteSearchV2.OnRouteSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.route.RouteSearchV2.OnRouteSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onDriveRouteSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onDriveRouteSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onDriveRouteSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(com_amap_api_services_route_DriveRouteResultV2? var1, int? var2)? onDriveRouteSearched; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/route/RouteSearchV2/OnTruckRouteSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_route_RouteSearchV2_OnTruckRouteSearchListener_SUB extends java_lang_Object with com_amap_api_services_route_RouteSearchV2_OnTruckRouteSearchListener {} 17 | 18 | mixin com_amap_api_services_route_RouteSearchV2_OnTruckRouteSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_route_RouteSearchV2_OnTruckRouteSearchListener subInstance() => _com_amap_api_services_route_RouteSearchV2_OnTruckRouteSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.route.RouteSearchV2.OnTruckRouteSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.route.RouteSearchV2.OnTruckRouteSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onTruckRouteSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onTruckRouteSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onTruckRouteSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(com_amap_api_services_route_TruckRouteRestult? var1, int? var2)? onTruckRouteSearched; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/route/RouteSearchV2/ShowFields.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class com_amap_api_services_route_RouteSearchV2_ShowFields extends java_lang_Object { 17 | //region constants 18 | static const String name__ = 'com.amap.api.services.route.RouteSearchV2.ShowFields'; 19 | 20 | @override 21 | final String tag__ = 'amap_search_fluttify'; 22 | 23 | static final int COST = 1; 24 | static final int TMCS = 2; 25 | static final int NAVI = 4; 26 | static final int CITIES = 8; 27 | static final int POLINE = 16; 28 | static final int ELEC_COSUME_INFO = 32; 29 | static final int CHARGE_STATION_INFO = 64; 30 | static final int ALL = -1; 31 | //endregion 32 | 33 | //region creators 34 | static Future create__() async { 35 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 36 | 'ObjectFactory::createcom_amap_api_services_route_RouteSearchV2_ShowFields__', 37 | 38 | ); 39 | return AmapSearchFluttifyAndroidAs(__result__)!; 40 | } 41 | 42 | static Future> create_batch__(int length) async { 43 | assert(true); 44 | final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 45 | 'ObjectFactory::create_batchcom_amap_api_services_route_RouteSearchV2_ShowFields__', 46 | {'length': length} 47 | ); 48 | return __result_batch__ 49 | ?.map((it) => AmapSearchFluttifyAndroidAs(it)) 50 | .where((element) => element !=null) 51 | .cast() 52 | .toList() ?? []; 53 | } 54 | 55 | //endregion 56 | 57 | //region getters 58 | 59 | //endregion 60 | 61 | //region setters 62 | 63 | //endregion 64 | 65 | //region methods 66 | 67 | //endregion 68 | 69 | @override 70 | String toString() { 71 | return 'com_amap_api_services_route_RouteSearchV2_ShowFields{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; 72 | } 73 | } 74 | 75 | extension com_amap_api_services_route_RouteSearchV2_ShowFields_Batch on List { 76 | String? get refId { 77 | if (isEmpty) return null; 78 | return first?.refId; 79 | } 80 | 81 | //region getters 82 | 83 | //endregion 84 | 85 | //region setters 86 | 87 | //endregion 88 | 89 | //region methods 90 | 91 | //endregion 92 | } -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/routepoisearch/RoutePOISearch/OnRoutePOISearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_routepoisearch_RoutePOISearch_OnRoutePOISearchListener_SUB extends java_lang_Object with com_amap_api_services_routepoisearch_RoutePOISearch_OnRoutePOISearchListener {} 17 | 18 | mixin com_amap_api_services_routepoisearch_RoutePOISearch_OnRoutePOISearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_routepoisearch_RoutePOISearch_OnRoutePOISearchListener subInstance() => _com_amap_api_services_routepoisearch_RoutePOISearch_OnRoutePOISearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.routepoisearch.RoutePOISearch.OnRoutePOISearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.routepoisearch.RoutePOISearch.OnRoutePOISearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onRoutePoiSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onRoutePoiSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onRoutePoiSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | default: 44 | throw MissingPluginException('方法${methodCall.method}未实现'); 45 | break; 46 | } 47 | } catch (e) { 48 | debugPrint(e.toString()); 49 | rethrow; 50 | } 51 | }); 52 | 53 | return __object__; 54 | } 55 | 56 | 57 | @override 58 | final String tag__ = 'amap_search_fluttify'; 59 | 60 | 61 | 62 | 63 | 64 | Future Function(com_amap_api_services_routepoisearch_RoutePOISearchResult? var1, int? var2)? onRoutePoiSearched; 65 | 66 | } 67 | 68 | -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/routepoisearch/RoutePOISearch/RoutePOISearchType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType { 7 | TypeGasStation /* null */, 8 | TypeMaintenanceStation /* null */, 9 | TypeATM /* null */, 10 | TypeToilet /* null */, 11 | TypeFillingStation /* null */, 12 | TypeServiceArea /* null */ 13 | } 14 | 15 | extension com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchTypeToX on com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType { 16 | int toValue() { 17 | switch (this) { 18 | case com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeGasStation: return com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeGasStation.index + 0; 19 | case com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeMaintenanceStation: return com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeMaintenanceStation.index + 0; 20 | case com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeATM: return com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeATM.index + 0; 21 | case com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeToilet: return com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeToilet.index + 0; 22 | case com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeFillingStation: return com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeFillingStation.index + 0; 23 | case com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeServiceArea: return com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.TypeServiceArea.index + 0; 24 | default: return 0; 25 | } 26 | } 27 | } 28 | 29 | extension com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchTypeFromX on int { 30 | com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType tocom_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType() { 31 | switch (this) { 32 | 33 | default: return com_amap_api_services_routepoisearch_RoutePOISearch_RoutePOISearchType.values[this + 0]; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /lib/src/android/com/amap/api/services/weather/WeatherSearch/OnWeatherSearchListener.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _com_amap_api_services_weather_WeatherSearch_OnWeatherSearchListener_SUB extends java_lang_Object with com_amap_api_services_weather_WeatherSearch_OnWeatherSearchListener {} 17 | 18 | mixin com_amap_api_services_weather_WeatherSearch_OnWeatherSearchListener on java_lang_Object { 19 | 20 | 21 | static com_amap_api_services_weather_WeatherSearch_OnWeatherSearchListener subInstance() => _com_amap_api_services_weather_WeatherSearch_OnWeatherSearchListener_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.weather.WeatherSearch.OnWeatherSearchListener::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyAndroidAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('com.amap.api.services.weather.WeatherSearch.OnWeatherSearchListener::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'onWeatherLiveSearched_': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.onWeatherLiveSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.onWeatherLiveSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 42 | break; 43 | case 'onWeatherForecastSearched_': 44 | // print log 45 | if (fluttifyLogEnabled) { 46 | debugPrint('fluttify-dart-callback: __object__.onWeatherForecastSearched?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])'); 47 | } 48 | 49 | // handle the native call 50 | __object__.onWeatherForecastSearched?.call(AmapSearchFluttifyAndroidAs(args['var1']), args['var2']); 51 | break; 52 | default: 53 | throw MissingPluginException('方法${methodCall.method}未实现'); 54 | break; 55 | } 56 | } catch (e) { 57 | debugPrint(e.toString()); 58 | rethrow; 59 | } 60 | }); 61 | 62 | return __object__; 63 | } 64 | 65 | 66 | @override 67 | final String tag__ = 'amap_search_fluttify'; 68 | 69 | 70 | 71 | 72 | 73 | Future Function(com_amap_api_services_weather_LocalWeatherLiveResult? var1, int? var2)? onWeatherLiveSearched; 74 | 75 | Future Function(com_amap_api_services_weather_LocalWeatherForecastResult? var1, int? var2)? onWeatherForecastSearched; 76 | 77 | } 78 | 79 | -------------------------------------------------------------------------------- /lib/src/android/constants.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | import 'package:flutter/services.dart'; 6 | import '../facade/shared.g.dart'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 10 | 11 | -------------------------------------------------------------------------------- /lib/src/facade/delegates.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names 2 | part of 'amap_search.dart'; 3 | 4 | /// android: 搜索监听 5 | @Deprecated('全部改成匿名内部类的形式') 6 | class _AndroidSearchListener extends java_lang_Object 7 | with 8 | com_amap_api_services_poisearch_PoiSearch_OnPoiSearchListener, 9 | com_amap_api_services_help_Inputtips_InputtipsListener, 10 | com_amap_api_services_geocoder_GeocodeSearch_OnGeocodeSearchListener, 11 | com_amap_api_services_route_RouteSearch_OnRouteSearchListener, 12 | com_amap_api_services_busline_BusStationSearch_OnBusStationSearchListener, 13 | com_amap_api_services_district_DistrictSearch_OnDistrictSearchListener, 14 | com_amap_api_services_weather_WeatherSearch_OnWeatherSearchListener, 15 | com_amap_api_services_cloud_CloudSearch_OnCloudSearchListener { 16 | _AndroidSearchListener(this._completer); 17 | 18 | final Completer _completer; 19 | } 20 | 21 | /// ios: 搜索监听 22 | @Deprecated('全部改成匿名内部类的形式') 23 | class _IOSSearchListener extends NSObject with AMapSearchDelegate { 24 | _IOSSearchListener(this._completer); 25 | 26 | final Completer _completer; 27 | } 28 | -------------------------------------------------------------------------------- /lib/src/facade/shared.g.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/services.dart'; 2 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 3 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 4 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 5 | 6 | const kAmapSearchFluttifyMessageCodec = FluttifyMessageCodec(tag: 'amap_search_fluttify'/*, androidCaster: AmapSearchFluttifyAndroidAs, iosCaster: AmapSearchFluttifyIOSAs*/); 7 | const kAmapSearchFluttifyMethodCodec = StandardMethodCodec(kAmapSearchFluttifyMessageCodec); 8 | const kAmapSearchFluttifyChannel = MethodChannel('me.yohom/amap_search_fluttify', kAmapSearchFluttifyMethodCodec); 9 | const kAmapSearchFluttifyProjectName = 'amap_search_fluttify'; 10 | 11 | Future releaseAmapSearchFluttifyPool() async { 12 | final isCurrentPlugin = (Ref it) => it.tag__ == kAmapSearchFluttifyProjectName; 13 | await gGlobalReleasePool.where(isCurrentPlugin).release_batch(); 14 | gGlobalReleasePool.removeWhere(isCurrentPlugin); 15 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapBusLineIDSearchRequest.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class AMapBusLineIDSearchRequest extends AMapBusLineBaseSearchRequest with NSCoding, NSCopying { 17 | //region constants 18 | static const String name__ = 'AMapBusLineIDSearchRequest'; 19 | 20 | @override 21 | final String tag__ = 'amap_search_fluttify'; 22 | 23 | 24 | //endregion 25 | 26 | //region creators 27 | static Future create__({ bool init = true /* ios only */ }) async { 28 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 29 | 'ObjectFactory::createAMapBusLineIDSearchRequest', 30 | {'init': init} 31 | ); 32 | return AmapSearchFluttifyIOSAs(__result__)!; 33 | } 34 | 35 | static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { 36 | assert(true); 37 | final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 38 | 'ObjectFactory::create_batchAMapBusLineIDSearchRequest', 39 | {'length': length, 'init': init} 40 | ); 41 | return __result_batch__ 42 | ?.map((it) => AmapSearchFluttifyIOSAs(it)) 43 | .where((element) => element !=null) 44 | .cast() 45 | .toList() ?? []; 46 | } 47 | 48 | //endregion 49 | 50 | //region getters 51 | Future get_uid() async { 52 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineIDSearchRequest::get_uid", {'__this__': this}); 53 | return __result__; 54 | } 55 | 56 | //endregion 57 | 58 | //region setters 59 | Future set_uid(String uid) async { 60 | await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineIDSearchRequest::set_uid', {'__this__': this, "uid": uid}); 61 | } 62 | 63 | //endregion 64 | 65 | //region methods 66 | 67 | //endregion 68 | 69 | @override 70 | String toString() { 71 | return 'AMapBusLineIDSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; 72 | } 73 | } 74 | 75 | extension AMapBusLineIDSearchRequest_Batch on List { 76 | String? get refId { 77 | if (isEmpty) return null; 78 | return first?.refId; 79 | } 80 | 81 | //region getters 82 | Future> get_uid_batch() async { 83 | final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapBusLineIDSearchRequest::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]); 84 | return (resultBatch as List).map((__result__) => __result__).cast().toList(); 85 | } 86 | 87 | //endregion 88 | 89 | //region setters 90 | Future set_uid_batch(List uid) async { 91 | await kAmapSearchFluttifyChannel.invokeMethod('AMapBusLineIDSearchRequest::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]); 92 | 93 | 94 | } 95 | 96 | //endregion 97 | 98 | //region methods 99 | 100 | //endregion 101 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapCloudPOIIDSearchRequest.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class AMapCloudPOIIDSearchRequest extends AMapCloudSearchBaseRequest with NSCoding, NSCopying { 17 | //region constants 18 | static const String name__ = 'AMapCloudPOIIDSearchRequest'; 19 | 20 | @override 21 | final String tag__ = 'amap_search_fluttify'; 22 | 23 | 24 | //endregion 25 | 26 | //region creators 27 | static Future create__({ bool init = true /* ios only */ }) async { 28 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 29 | 'ObjectFactory::createAMapCloudPOIIDSearchRequest', 30 | {'init': init} 31 | ); 32 | return AmapSearchFluttifyIOSAs(__result__)!; 33 | } 34 | 35 | static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { 36 | assert(true); 37 | final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 38 | 'ObjectFactory::create_batchAMapCloudPOIIDSearchRequest', 39 | {'length': length, 'init': init} 40 | ); 41 | return __result_batch__ 42 | ?.map((it) => AmapSearchFluttifyIOSAs(it)) 43 | .where((element) => element !=null) 44 | .cast() 45 | .toList() ?? []; 46 | } 47 | 48 | //endregion 49 | 50 | //region getters 51 | Future get_uid() async { 52 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIIDSearchRequest::get_uid", {'__this__': this}); 53 | return __result__; 54 | } 55 | 56 | //endregion 57 | 58 | //region setters 59 | Future set_uid(int uid) async { 60 | await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIIDSearchRequest::set_uid', {'__this__': this, "uid": uid}); 61 | } 62 | 63 | //endregion 64 | 65 | //region methods 66 | 67 | //endregion 68 | 69 | @override 70 | String toString() { 71 | return 'AMapCloudPOIIDSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; 72 | } 73 | } 74 | 75 | extension AMapCloudPOIIDSearchRequest_Batch on List { 76 | String? get refId { 77 | if (isEmpty) return null; 78 | return first?.refId; 79 | } 80 | 81 | //region getters 82 | Future> get_uid_batch() async { 83 | final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapCloudPOIIDSearchRequest::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]); 84 | return (resultBatch as List).map((__result__) => __result__).cast().toList(); 85 | } 86 | 87 | //endregion 88 | 89 | //region setters 90 | Future set_uid_batch(List uid) async { 91 | await kAmapSearchFluttifyChannel.invokeMethod('AMapCloudPOIIDSearchRequest::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]); 92 | 93 | 94 | } 95 | 96 | //endregion 97 | 98 | //region methods 99 | 100 | //endregion 101 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapCloudSortType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum AMapCloudSortType { 7 | AMapCloudSortTypeDESC /* 0 */, 8 | AMapCloudSortTypeASC /* 1 */ 9 | } 10 | 11 | extension AMapCloudSortTypeToX on AMapCloudSortType { 12 | int toValue() { 13 | switch (this) { 14 | case AMapCloudSortType.AMapCloudSortTypeDESC: return 0; 15 | case AMapCloudSortType.AMapCloudSortTypeASC: return 1; 16 | default: return 0; 17 | } 18 | } 19 | } 20 | 21 | extension AMapCloudSortTypeFromX on int { 22 | AMapCloudSortType toAMapCloudSortType() { 23 | switch (this) { 24 | case 0: return AMapCloudSortType.AMapCloudSortTypeDESC; 25 | case 1: return AMapCloudSortType.AMapCloudSortTypeASC; 26 | default: return AMapCloudSortType.values[this + 0]; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapDistanceSearchType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum AMapDistanceSearchType { 7 | AMapDistanceSearchTypeStraight /* 0 */, 8 | AMapDistanceSearchTypeDrive /* 1 */, 9 | AMapDistanceSearchTypeWalk /* 3 */ 10 | } 11 | 12 | extension AMapDistanceSearchTypeToX on AMapDistanceSearchType { 13 | int toValue() { 14 | switch (this) { 15 | case AMapDistanceSearchType.AMapDistanceSearchTypeStraight: return 0; 16 | case AMapDistanceSearchType.AMapDistanceSearchTypeDrive: return 1; 17 | case AMapDistanceSearchType.AMapDistanceSearchTypeWalk: return 3; 18 | default: return 0; 19 | } 20 | } 21 | } 22 | 23 | extension AMapDistanceSearchTypeFromX on int { 24 | AMapDistanceSearchType toAMapDistanceSearchType() { 25 | switch (this) { 26 | case 0: return AMapDistanceSearchType.AMapDistanceSearchTypeStraight; 27 | case 1: return AMapDistanceSearchType.AMapDistanceSearchTypeDrive; 28 | case 3: return AMapDistanceSearchType.AMapDistanceSearchTypeWalk; 29 | default: return AMapDistanceSearchType.values[this + 0]; 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapDrivingRouteExcludeType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum AMapDrivingRouteExcludeType { 7 | AMapDrivingRouteExcludeTypeNone /* 0 */, 8 | AMapDrivingRouteExcludeTypeToll /* 1 */, 9 | AMapDrivingRouteExcludeTypeMotorway /* 2 */, 10 | AMapDrivingRouteExcludeTypeFerry /* 3 */ 11 | } 12 | 13 | extension AMapDrivingRouteExcludeTypeToX on AMapDrivingRouteExcludeType { 14 | int toValue() { 15 | switch (this) { 16 | case AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeNone: return 0; 17 | case AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeToll: return 1; 18 | case AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeMotorway: return 2; 19 | case AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeFerry: return 3; 20 | default: return 0; 21 | } 22 | } 23 | } 24 | 25 | extension AMapDrivingRouteExcludeTypeFromX on int { 26 | AMapDrivingRouteExcludeType toAMapDrivingRouteExcludeType() { 27 | switch (this) { 28 | case 0: return AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeNone; 29 | case 1: return AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeToll; 30 | case 2: return AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeMotorway; 31 | case 3: return AMapDrivingRouteExcludeType.AMapDrivingRouteExcludeTypeFerry; 32 | default: return AMapDrivingRouteExcludeType.values[this + 0]; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapDrivingRouteShowFieldType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum AMapDrivingRouteShowFieldType { 7 | AMapDrivingRouteShowFieldTypeNone /* 1<<0 */, 8 | AMapDrivingRouteShowFieldTypeCost /* 1<<1 */, 9 | AMapDrivingRouteShowFieldTypeTmcs /* 1<<2 */, 10 | AMapDrivingRouteShowFieldTypeNavi /* 1<<3 */, 11 | AMapDrivingRouteShowFieldTypeCities /* 1<<4 */, 12 | AMapDrivingRouteShowFieldTypePolyline /* 1<<5 */, 13 | AMapDrivingRouteShowFieldTypeNewEnergy /* 1<<6 */, 14 | AMapDrivingRouteShowFieldTypeAll /* ~0 */ 15 | } 16 | 17 | extension AMapDrivingRouteShowFieldTypeToX on AMapDrivingRouteShowFieldType { 18 | int toValue() { 19 | switch (this) { 20 | case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNone: return 1<<0; 21 | case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCost: return 1<<1; 22 | case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeTmcs: return 1<<2; 23 | case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNavi: return 1<<3; 24 | case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCities: return 1<<4; 25 | case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypePolyline: return 1<<5; 26 | case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNewEnergy: return 1<<6; 27 | case AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeAll: return ~0; 28 | default: return 0; 29 | } 30 | } 31 | } 32 | 33 | extension AMapDrivingRouteShowFieldTypeFromX on int { 34 | AMapDrivingRouteShowFieldType toAMapDrivingRouteShowFieldType() { 35 | switch (this) { 36 | case 1<<0: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNone; 37 | case 1<<1: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCost; 38 | case 1<<2: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeTmcs; 39 | case 1<<3: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNavi; 40 | case 1<<4: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeCities; 41 | case 1<<5: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypePolyline; 42 | case 1<<6: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeNewEnergy; 43 | case ~0: return AMapDrivingRouteShowFieldType.AMapDrivingRouteShowFieldTypeAll; 44 | default: return AMapDrivingRouteShowFieldType.values[this + 1<<0]; 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapNearbySearchManagerDelegate.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class _AMapNearbySearchManagerDelegate_SUB extends NSObject with AMapNearbySearchManagerDelegate {} 17 | 18 | mixin AMapNearbySearchManagerDelegate on NSObject { 19 | 20 | 21 | static AMapNearbySearchManagerDelegate subInstance() => _AMapNearbySearchManagerDelegate_SUB(); 22 | 23 | static Future anonymous__() async { 24 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManagerDelegate::createAnonymous__'); 25 | 26 | final __object__ = AmapSearchFluttifyIOSAs(__result__)!; 27 | 28 | // handle callback 29 | MethodChannel('AMapNearbySearchManagerDelegate::Callback@${__object__.refId}', kAmapSearchFluttifyMethodCodec) 30 | .setMethodCallHandler((methodCall) async { 31 | try { 32 | final args = methodCall.arguments as Map; 33 | switch (methodCall.method) { 34 | case 'nearbyInfoForUploading': 35 | // print log 36 | if (fluttifyLogEnabled) { 37 | debugPrint('fluttify-dart-callback: __object__.nearbyInfoForUploading?.call([\'manager\':${args['manager']}])'); 38 | } 39 | 40 | // handle the native call 41 | __object__.nearbyInfoForUploading?.call(AmapSearchFluttifyIOSAs(args['manager'])); 42 | break; 43 | case 'onNearbyInfoUploadedWithError': 44 | // print log 45 | if (fluttifyLogEnabled) { 46 | debugPrint('fluttify-dart-callback: __object__.onNearbyInfoUploadedWithError?.call([\'error\':${args['error']}])'); 47 | } 48 | 49 | // handle the native call 50 | __object__.onNearbyInfoUploadedWithError?.call(AmapSearchFluttifyIOSAs(args['error'])); 51 | break; 52 | case 'onUserInfoClearedWithError': 53 | // print log 54 | if (fluttifyLogEnabled) { 55 | debugPrint('fluttify-dart-callback: __object__.onUserInfoClearedWithError?.call([\'error\':${args['error']}])'); 56 | } 57 | 58 | // handle the native call 59 | __object__.onUserInfoClearedWithError?.call(AmapSearchFluttifyIOSAs(args['error'])); 60 | break; 61 | default: 62 | throw MissingPluginException('方法${methodCall.method}未实现'); 63 | break; 64 | } 65 | } catch (e) { 66 | debugPrint(e.toString()); 67 | rethrow; 68 | } 69 | }); 70 | 71 | return __object__; 72 | } 73 | 74 | 75 | @override 76 | final String tag__ = 'amap_search_fluttify'; 77 | 78 | 79 | 80 | 81 | 82 | Future Function(AMapNearbySearchManager? manager)? nearbyInfoForUploading; 83 | 84 | Future Function(NSError? error)? onNearbyInfoUploadedWithError; 85 | 86 | Future Function(NSError? error)? onUserInfoClearedWithError; 87 | 88 | } 89 | 90 | -------------------------------------------------------------------------------- /lib/src/ios/AMapNearbySearchType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum AMapNearbySearchType { 7 | AMapNearbySearchTypeLiner /* 0 */, 8 | AMapNearbySearchTypeDriving /* 1 */ 9 | } 10 | 11 | extension AMapNearbySearchTypeToX on AMapNearbySearchType { 12 | int toValue() { 13 | switch (this) { 14 | case AMapNearbySearchType.AMapNearbySearchTypeLiner: return 0; 15 | case AMapNearbySearchType.AMapNearbySearchTypeDriving: return 1; 16 | default: return 0; 17 | } 18 | } 19 | } 20 | 21 | extension AMapNearbySearchTypeFromX on int { 22 | AMapNearbySearchType toAMapNearbySearchType() { 23 | switch (this) { 24 | case 0: return AMapNearbySearchType.AMapNearbySearchTypeLiner; 25 | case 1: return AMapNearbySearchType.AMapNearbySearchTypeDriving; 26 | default: return AMapNearbySearchType.values[this + 0]; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapPOIIDSearchRequest.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class AMapPOIIDSearchRequest extends AMapPOISearchBaseRequest with NSCoding, NSCopying { 17 | //region constants 18 | static const String name__ = 'AMapPOIIDSearchRequest'; 19 | 20 | @override 21 | final String tag__ = 'amap_search_fluttify'; 22 | 23 | 24 | //endregion 25 | 26 | //region creators 27 | static Future create__({ bool init = true /* ios only */ }) async { 28 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 29 | 'ObjectFactory::createAMapPOIIDSearchRequest', 30 | {'init': init} 31 | ); 32 | return AmapSearchFluttifyIOSAs(__result__)!; 33 | } 34 | 35 | static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { 36 | assert(true); 37 | final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 38 | 'ObjectFactory::create_batchAMapPOIIDSearchRequest', 39 | {'length': length, 'init': init} 40 | ); 41 | return __result_batch__ 42 | ?.map((it) => AmapSearchFluttifyIOSAs(it)) 43 | .where((element) => element !=null) 44 | .cast() 45 | .toList() ?? []; 46 | } 47 | 48 | //endregion 49 | 50 | //region getters 51 | Future get_uid() async { 52 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIIDSearchRequest::get_uid", {'__this__': this}); 53 | return __result__; 54 | } 55 | 56 | //endregion 57 | 58 | //region setters 59 | Future set_uid(String uid) async { 60 | await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIIDSearchRequest::set_uid', {'__this__': this, "uid": uid}); 61 | } 62 | 63 | //endregion 64 | 65 | //region methods 66 | 67 | //endregion 68 | 69 | @override 70 | String toString() { 71 | return 'AMapPOIIDSearchRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; 72 | } 73 | } 74 | 75 | extension AMapPOIIDSearchRequest_Batch on List { 76 | String? get refId { 77 | if (isEmpty) return null; 78 | return first?.refId; 79 | } 80 | 81 | //region getters 82 | Future> get_uid_batch() async { 83 | final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapPOIIDSearchRequest::get_uid_batch", [for (final __item__ in this) {'__this__': __item__}]); 84 | return (resultBatch as List).map((__result__) => __result__).cast().toList(); 85 | } 86 | 87 | //endregion 88 | 89 | //region setters 90 | Future set_uid_batch(List uid) async { 91 | await kAmapSearchFluttifyChannel.invokeMethod('AMapPOIIDSearchRequest::set_uid_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uid": uid[__i__]}]); 92 | 93 | 94 | } 95 | 96 | //endregion 97 | 98 | //region methods 99 | 100 | //endregion 101 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapRidingRouteSearchResponse.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class AMapRidingRouteSearchResponse extends AMapRouteSearchResponse with NSCoding, NSCopying { 17 | //region constants 18 | static const String name__ = 'AMapRidingRouteSearchResponse'; 19 | 20 | @override 21 | final String tag__ = 'amap_search_fluttify'; 22 | 23 | 24 | //endregion 25 | 26 | //region creators 27 | static Future create__({ bool init = true /* ios only */ }) async { 28 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 29 | 'ObjectFactory::createAMapRidingRouteSearchResponse', 30 | {'init': init} 31 | ); 32 | return AmapSearchFluttifyIOSAs(__result__)!; 33 | } 34 | 35 | static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { 36 | assert(true); 37 | final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 38 | 'ObjectFactory::create_batchAMapRidingRouteSearchResponse', 39 | {'length': length, 'init': init} 40 | ); 41 | return __result_batch__ 42 | ?.map((it) => AmapSearchFluttifyIOSAs(it)) 43 | .where((element) => element !=null) 44 | .cast() 45 | .toList() ?? []; 46 | } 47 | 48 | //endregion 49 | 50 | //region getters 51 | 52 | //endregion 53 | 54 | //region setters 55 | 56 | //endregion 57 | 58 | //region methods 59 | 60 | //endregion 61 | 62 | @override 63 | String toString() { 64 | return 'AMapRidingRouteSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; 65 | } 66 | } 67 | 68 | extension AMapRidingRouteSearchResponse_Batch on List { 69 | String? get refId { 70 | if (isEmpty) return null; 71 | return first?.refId; 72 | } 73 | 74 | //region getters 75 | 76 | //endregion 77 | 78 | //region setters 79 | 80 | //endregion 81 | 82 | //region methods 83 | 84 | //endregion 85 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapRoutePOISearchType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum AMapRoutePOISearchType { 7 | AMapRoutePOISearchTypeGasStation /* 0 */, 8 | AMapRoutePOISearchTypeMaintenanceStation /* 1 */, 9 | AMapRoutePOISearchTypeATM /* 2 */, 10 | AMapRoutePOISearchTypeToilet /* 3 */, 11 | AMapRoutePOISearchTypeGasAirStation /* 4 */, 12 | AMapRoutePOISearchTypeParkStation /* 5 */ 13 | } 14 | 15 | extension AMapRoutePOISearchTypeToX on AMapRoutePOISearchType { 16 | int toValue() { 17 | switch (this) { 18 | case AMapRoutePOISearchType.AMapRoutePOISearchTypeGasStation: return 0; 19 | case AMapRoutePOISearchType.AMapRoutePOISearchTypeMaintenanceStation: return 1; 20 | case AMapRoutePOISearchType.AMapRoutePOISearchTypeATM: return 2; 21 | case AMapRoutePOISearchType.AMapRoutePOISearchTypeToilet: return 3; 22 | case AMapRoutePOISearchType.AMapRoutePOISearchTypeGasAirStation: return 4; 23 | case AMapRoutePOISearchType.AMapRoutePOISearchTypeParkStation: return 5; 24 | default: return 0; 25 | } 26 | } 27 | } 28 | 29 | extension AMapRoutePOISearchTypeFromX on int { 30 | AMapRoutePOISearchType toAMapRoutePOISearchType() { 31 | switch (this) { 32 | case 0: return AMapRoutePOISearchType.AMapRoutePOISearchTypeGasStation; 33 | case 1: return AMapRoutePOISearchType.AMapRoutePOISearchTypeMaintenanceStation; 34 | case 2: return AMapRoutePOISearchType.AMapRoutePOISearchTypeATM; 35 | case 3: return AMapRoutePOISearchType.AMapRoutePOISearchTypeToilet; 36 | case 4: return AMapRoutePOISearchType.AMapRoutePOISearchTypeGasAirStation; 37 | case 5: return AMapRoutePOISearchType.AMapRoutePOISearchTypeParkStation; 38 | default: return AMapRoutePOISearchType.values[this + 0]; 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapSearchCoordinateType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum AMapSearchCoordinateType { 7 | AMapSearchCoordinateTypeGPS /* 1 */, 8 | AMapSearchCoordinateTypeAMap /* 2 */ 9 | } 10 | 11 | extension AMapSearchCoordinateTypeToX on AMapSearchCoordinateType { 12 | int toValue() { 13 | switch (this) { 14 | case AMapSearchCoordinateType.AMapSearchCoordinateTypeGPS: return 1; 15 | case AMapSearchCoordinateType.AMapSearchCoordinateTypeAMap: return 2; 16 | default: return 0; 17 | } 18 | } 19 | } 20 | 21 | extension AMapSearchCoordinateTypeFromX on int { 22 | AMapSearchCoordinateType toAMapSearchCoordinateType() { 23 | switch (this) { 24 | case 1: return AMapSearchCoordinateType.AMapSearchCoordinateTypeGPS; 25 | case 2: return AMapSearchCoordinateType.AMapSearchCoordinateTypeAMap; 26 | default: return AMapSearchCoordinateType.values[this + 1]; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapSearchError.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class AMapSearchError extends NSObject { 17 | //region constants 18 | static const String name__ = 'AMapSearchError'; 19 | 20 | @override 21 | final String tag__ = 'amap_search_fluttify'; 22 | 23 | 24 | //endregion 25 | 26 | //region creators 27 | static Future create__({ bool init = true /* ios only */ }) async { 28 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 29 | 'ObjectFactory::createAMapSearchError', 30 | {'init': init} 31 | ); 32 | return AmapSearchFluttifyIOSAs(__result__)!; 33 | } 34 | 35 | static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { 36 | assert(true); 37 | final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 38 | 'ObjectFactory::create_batchAMapSearchError', 39 | {'length': length, 'init': init} 40 | ); 41 | return __result_batch__ 42 | ?.map((it) => AmapSearchFluttifyIOSAs(it)) 43 | .where((element) => element !=null) 44 | .cast() 45 | .toList() ?? []; 46 | } 47 | 48 | //endregion 49 | 50 | //region getters 51 | 52 | //endregion 53 | 54 | //region setters 55 | 56 | //endregion 57 | 58 | //region methods 59 | 60 | static Future errorInfoWithCode(AMapSearchErrorCode errorCode) async { 61 | // print log 62 | if (fluttifyLogEnabled) { 63 | debugPrint('fluttify-dart: AMapSearchError::errorInfoWithCode([])'); 64 | } 65 | 66 | // invoke native method 67 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapSearchError::errorInfoWithCode', {"errorCode": errorCode.toValue()}); 68 | 69 | 70 | // handle native call 71 | 72 | 73 | return __result__; 74 | } 75 | 76 | //endregion 77 | 78 | @override 79 | String toString() { 80 | return 'AMapSearchError{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; 81 | } 82 | } 83 | 84 | extension AMapSearchError_Batch on List { 85 | String? get refId { 86 | if (isEmpty) return null; 87 | return first?.refId; 88 | } 89 | 90 | //region getters 91 | 92 | //endregion 93 | 94 | //region setters 95 | 96 | //endregion 97 | 98 | //region methods 99 | 100 | static Future> errorInfoWithCode_batch(List errorCode) async { 101 | assert(true); 102 | 103 | // invoke native method 104 | final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapSearchError::errorInfoWithCode_batch', [for (int __i__ = 0; __i__ < errorCode.length; __i__++) {"errorCode": errorCode[__i__].toValue()}]); 105 | 106 | 107 | return (resultBatch as List).map((__result__) => __result__).cast().toList(); 108 | } 109 | 110 | //endregion 111 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapSearchObject.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class AMapSearchObject extends NSObject with NSCoding, NSCopying { 17 | //region constants 18 | static const String name__ = 'AMapSearchObject'; 19 | 20 | @override 21 | final String tag__ = 'amap_search_fluttify'; 22 | 23 | 24 | //endregion 25 | 26 | //region creators 27 | static Future create__({ bool init = true /* ios only */ }) async { 28 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 29 | 'ObjectFactory::createAMapSearchObject', 30 | {'init': init} 31 | ); 32 | return AmapSearchFluttifyIOSAs(__result__)!; 33 | } 34 | 35 | static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { 36 | assert(true); 37 | final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 38 | 'ObjectFactory::create_batchAMapSearchObject', 39 | {'length': length, 'init': init} 40 | ); 41 | return __result_batch__ 42 | ?.map((it) => AmapSearchFluttifyIOSAs(it)) 43 | .where((element) => element !=null) 44 | .cast() 45 | .toList() ?? []; 46 | } 47 | 48 | //endregion 49 | 50 | //region getters 51 | 52 | //endregion 53 | 54 | //region setters 55 | 56 | //endregion 57 | 58 | //region methods 59 | 60 | Future formattedDescription() async { 61 | // print log 62 | if (fluttifyLogEnabled) { 63 | debugPrint('fluttify-dart: AMapSearchObject@$refId::formattedDescription([])'); 64 | } 65 | 66 | // invoke native method 67 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapSearchObject::formattedDescription', {"__this__": this}); 68 | 69 | 70 | // handle native call 71 | 72 | 73 | return __result__; 74 | } 75 | 76 | //endregion 77 | 78 | @override 79 | String toString() { 80 | return 'AMapSearchObject{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; 81 | } 82 | } 83 | 84 | extension AMapSearchObject_Batch on List { 85 | String? get refId { 86 | if (isEmpty) return null; 87 | return first?.refId; 88 | } 89 | 90 | //region getters 91 | 92 | //endregion 93 | 94 | //region setters 95 | 96 | //endregion 97 | 98 | //region methods 99 | 100 | Future> formattedDescription_batch() async { 101 | assert(true); 102 | 103 | // invoke native method 104 | final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapSearchObject::formattedDescription_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); 105 | 106 | 107 | return (resultBatch as List).map((__result__) => __result__).cast().toList(); 108 | } 109 | 110 | //endregion 111 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapShareSearchBaseRequest.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class AMapShareSearchBaseRequest extends AMapSearchObject with NSCoding, NSCopying { 17 | //region constants 18 | static const String name__ = 'AMapShareSearchBaseRequest'; 19 | 20 | @override 21 | final String tag__ = 'amap_search_fluttify'; 22 | 23 | 24 | //endregion 25 | 26 | //region creators 27 | static Future create__({ bool init = true /* ios only */ }) async { 28 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 29 | 'ObjectFactory::createAMapShareSearchBaseRequest', 30 | {'init': init} 31 | ); 32 | return AmapSearchFluttifyIOSAs(__result__)!; 33 | } 34 | 35 | static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { 36 | assert(true); 37 | final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 38 | 'ObjectFactory::create_batchAMapShareSearchBaseRequest', 39 | {'length': length, 'init': init} 40 | ); 41 | return __result_batch__ 42 | ?.map((it) => AmapSearchFluttifyIOSAs(it)) 43 | .where((element) => element !=null) 44 | .cast() 45 | .toList() ?? []; 46 | } 47 | 48 | //endregion 49 | 50 | //region getters 51 | 52 | //endregion 53 | 54 | //region setters 55 | 56 | //endregion 57 | 58 | //region methods 59 | 60 | //endregion 61 | 62 | @override 63 | String toString() { 64 | return 'AMapShareSearchBaseRequest{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; 65 | } 66 | } 67 | 68 | extension AMapShareSearchBaseRequest_Batch on List { 69 | String? get refId { 70 | if (isEmpty) return null; 71 | return first?.refId; 72 | } 73 | 74 | //region getters 75 | 76 | //endregion 77 | 78 | //region setters 79 | 80 | //endregion 81 | 82 | //region methods 83 | 84 | //endregion 85 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapShareSearchResponse.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:flutter/foundation.dart'; 10 | import 'package:flutter/services.dart'; 11 | 12 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 13 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 14 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 15 | 16 | class AMapShareSearchResponse extends AMapSearchObject with NSCoding, NSCopying { 17 | //region constants 18 | static const String name__ = 'AMapShareSearchResponse'; 19 | 20 | @override 21 | final String tag__ = 'amap_search_fluttify'; 22 | 23 | 24 | //endregion 25 | 26 | //region creators 27 | static Future create__({ bool init = true /* ios only */ }) async { 28 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod( 29 | 'ObjectFactory::createAMapShareSearchResponse', 30 | {'init': init} 31 | ); 32 | return AmapSearchFluttifyIOSAs(__result__)!; 33 | } 34 | 35 | static Future> create_batch__(int length, { bool init = true /* ios only */ }) async { 36 | assert(true); 37 | final __result_batch__ = await kAmapSearchFluttifyChannel.invokeListMethod( 38 | 'ObjectFactory::create_batchAMapShareSearchResponse', 39 | {'length': length, 'init': init} 40 | ); 41 | return __result_batch__ 42 | ?.map((it) => AmapSearchFluttifyIOSAs(it)) 43 | .where((element) => element !=null) 44 | .cast() 45 | .toList() ?? []; 46 | } 47 | 48 | //endregion 49 | 50 | //region getters 51 | Future get_shareURL() async { 52 | final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapShareSearchResponse::get_shareURL", {'__this__': this}); 53 | return __result__; 54 | } 55 | 56 | //endregion 57 | 58 | //region setters 59 | Future set_shareURL(String shareURL) async { 60 | await kAmapSearchFluttifyChannel.invokeMethod('AMapShareSearchResponse::set_shareURL', {'__this__': this, "shareURL": shareURL}); 61 | } 62 | 63 | //endregion 64 | 65 | //region methods 66 | 67 | //endregion 68 | 69 | @override 70 | String toString() { 71 | return 'AMapShareSearchResponse{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; 72 | } 73 | } 74 | 75 | extension AMapShareSearchResponse_Batch on List { 76 | String? get refId { 77 | if (isEmpty) return null; 78 | return first?.refId; 79 | } 80 | 81 | //region getters 82 | Future> get_shareURL_batch() async { 83 | final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapShareSearchResponse::get_shareURL_batch", [for (final __item__ in this) {'__this__': __item__}]); 84 | return (resultBatch as List).map((__result__) => __result__).cast().toList(); 85 | } 86 | 87 | //endregion 88 | 89 | //region setters 90 | Future set_shareURL_batch(List shareURL) async { 91 | await kAmapSearchFluttifyChannel.invokeMethod('AMapShareSearchResponse::set_shareURL_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "shareURL": shareURL[__i__]}]); 92 | 93 | 94 | } 95 | 96 | //endregion 97 | 98 | //region methods 99 | 100 | //endregion 101 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapTruckSizeType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum AMapTruckSizeType { 7 | AMapTruckSizeTypeMini /* 1 */, 8 | AMapTruckSizeTypeLight /* 2 */, 9 | AMapTruckSizeTypeMedium /* 3 */, 10 | AMapTruckSizeTypeHeavy /* 4 */ 11 | } 12 | 13 | extension AMapTruckSizeTypeToX on AMapTruckSizeType { 14 | int toValue() { 15 | switch (this) { 16 | case AMapTruckSizeType.AMapTruckSizeTypeMini: return 1; 17 | case AMapTruckSizeType.AMapTruckSizeTypeLight: return 2; 18 | case AMapTruckSizeType.AMapTruckSizeTypeMedium: return 3; 19 | case AMapTruckSizeType.AMapTruckSizeTypeHeavy: return 4; 20 | default: return 0; 21 | } 22 | } 23 | } 24 | 25 | extension AMapTruckSizeTypeFromX on int { 26 | AMapTruckSizeType toAMapTruckSizeType() { 27 | switch (this) { 28 | case 1: return AMapTruckSizeType.AMapTruckSizeTypeMini; 29 | case 2: return AMapTruckSizeType.AMapTruckSizeTypeLight; 30 | case 3: return AMapTruckSizeType.AMapTruckSizeTypeMedium; 31 | case 4: return AMapTruckSizeType.AMapTruckSizeTypeHeavy; 32 | default: return AMapTruckSizeType.values[this + 1]; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /lib/src/ios/AMapWeatherType.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | enum AMapWeatherType { 7 | AMapWeatherTypeLive /* 1 */, 8 | AMapWeatherTypeForecast /* null */ 9 | } 10 | 11 | extension AMapWeatherTypeToX on AMapWeatherType { 12 | int toValue() { 13 | switch (this) { 14 | case AMapWeatherType.AMapWeatherTypeLive: return 1; 15 | case AMapWeatherType.AMapWeatherTypeForecast: return AMapWeatherType.AMapWeatherTypeForecast.index + 1; 16 | default: return 0; 17 | } 18 | } 19 | } 20 | 21 | extension AMapWeatherTypeFromX on int { 22 | AMapWeatherType toAMapWeatherType() { 23 | switch (this) { 24 | case 1: return AMapWeatherType.AMapWeatherTypeLive; 25 | default: return AMapWeatherType.values[this + 1]; 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /lib/src/ios/constants.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | import 'package:flutter/services.dart'; 6 | import '../facade/shared.g.dart'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 10 | 11 | Future get AMapSearchErrorDomain async { 12 | return kAmapSearchFluttifyChannel.invokeMethod('getAMapSearchErrorDomain'); 13 | } 14 | -------------------------------------------------------------------------------- /lib/src/ios/functions.g.dart: -------------------------------------------------------------------------------- 1 | // ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast 2 | ////////////////////////////////////////////////////////// 3 | // GENERATED BY FLUTTIFY. DO NOT EDIT IT. 4 | ////////////////////////////////////////////////////////// 5 | 6 | import 'dart:typed_data'; 7 | 8 | import 'package:amap_search_fluttify/src/ios/ios.export.g.dart'; 9 | import 'package:amap_search_fluttify/src/android/android.export.g.dart'; 10 | import 'package:flutter/foundation.dart'; 11 | import 'package:flutter/services.dart'; 12 | 13 | import 'package:foundation_fluttify/foundation_fluttify.dart'; 14 | import 'package:core_location_fluttify/core_location_fluttify.dart'; 15 | import 'package:amap_core_fluttify/amap_core_fluttify.dart'; 16 | 17 | -------------------------------------------------------------------------------- /other/1557492318.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/other/1557492318.jpg -------------------------------------------------------------------------------- /other/Logo-Landscape.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/other/Logo-Landscape.png -------------------------------------------------------------------------------- /other/WechatIMG111.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yohom/amap_search_fluttify/8bee10a32e8c47770c82e249f99374e298a80072/other/WechatIMG111.jpeg -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: amap_search_fluttify 2 | description: An `Amap Search` Map Component, Powered By `Fluttify`, A Compiler Generating Dart Bindings For Native SDK. 3 | version: 0.18.0 4 | homepage: https://github.com/fluttify-project 5 | 6 | environment: 7 | sdk: ">=2.12.0 <3.0.0" 8 | flutter: ">=1.12.13" 9 | 10 | dependencies: 11 | flutter: 12 | sdk: flutter 13 | 14 | 15 | foundation_fluttify: ^0.13.0+1 16 | core_location_fluttify: ^0.7.1 17 | amap_core_fluttify: ^0.17.0 18 | 19 | dev_dependencies: 20 | flutter_test: 21 | sdk: flutter 22 | flutter_lints: any 23 | 24 | flutter: 25 | plugin: 26 | platforms: 27 | android: 28 | package: me.yohom.amap_search_fluttify 29 | pluginClass: AmapSearchFluttifyPlugin 30 | ios: 31 | pluginClass: AmapSearchFluttifyPlugin --------------------------------------------------------------------------------