CityPickers class
ios city pickers provide config height, initLocation and so on
Sample:flutter format
await CityPicker.showPicker(
location: String,
height: double
);
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
metaCities
↔ Map<
String, dynamic> -
static original city data for this plugin
getter/setter pair
-
metaProvinces
↔ Map<
String, String> -
static original province data for this plugin
getter/setter pair
Static Methods
-
showCitiesSelector(
{required BuildContext context, ThemeData? theme, String? locationCode, String title = '城市选择器', Map< String, dynamic> citiesData = meta.citiesData, Map<String, String> provincesData = meta.provincesData, AppBarBuilder? appBarBuilder, List<HotCity> ? hotCities, BaseStyle? sideBarStyle, BaseStyle? cityItemStyle, BaseStyle? topStickStyle, Color? scaffoldBackgroundColor, bool useSearchAppBar = false, EdgeInsetsGeometry tagBarTextPadding = const EdgeInsets.symmetric(horizontal: 4.0)}) → Future<Result?> -
showCityPicker(
{required BuildContext context, dynamic showType = ShowType.pca, double height = 400.0, String locationCode = '110000', ThemeData? theme, Map< String, dynamic> ? citiesData, Map<String, String> ? provincesData, bool barrierDismissible = true, double barrierOpacity = 0.5, ItemWidgetBuilder? itemBuilder, double? itemExtent, Widget? cancelWidget, Widget? confirmWidget, double borderRadius = 0, bool isSort = false}) → Future<Result?> - use @param context BuildContext for navigator @param locationCode initial select, one of province area or city id if given id is provinceId, the city and area id will be this province's first city and first area in metadata @param height Container's height
-
showFullPageCityPicker(
{required BuildContext context, ThemeData? theme, ShowType showType = ShowType.pca, String locationCode = '110000', Map< String, dynamic> ? citiesData, Map<String, String> ? provincesData}) → Future<Result?> - @theme Theme used it's primaryColor
-
utils(
{Map< String, String> ? provinceData, Map<String, dynamic> ? citiesData}) → dynamic