FlutterCSCPicker constructor
const
FlutterCSCPicker({
- Key? key,
- required ValueChanged<
String> onCountryChanged, - required ValueChanged<
String> onStateChanged, - required ValueChanged<
String> onCityChanged, - InputDecoration decoration = const InputDecoration(contentPadding: EdgeInsets.symmetric(horizontal: 10), border: OutlineInputBorder(borderSide: BorderSide(color: Color(0xFF808080), width: .3), borderRadius: BorderRadius.all(Radius.circular(5)))),
- Widget arrowIcon = const Icon(Icons.keyboard_arrow_right_outlined, color: Colors.black),
- double spacing = 10.0,
- double titleSpacing = 5.0,
- TextStyle? style,
- Color? dropdownColor,
- VoidCallback? onCountryTap,
- VoidCallback? onStateTap,
- VoidCallback? onCityTap,
- bool isCountyTitle = true,
- bool isStateTitle = true,
- bool isCityTitle = true,
- Layout layout = Layout.vertical,
- String countyTitle = 'Country*',
- String stateTitle = 'State*',
- String cityTitle = 'City*',
- TextStyle? titleStyle,
Implementation
const FlutterCSCPicker({
Key? key,
required this.onCountryChanged,
required this.onStateChanged,
required this.onCityChanged,
this.decoration = const InputDecoration(
contentPadding: EdgeInsets.symmetric(horizontal: 10),
border: OutlineInputBorder(
borderSide: BorderSide(color: Color(0xFF808080), width: .3),
borderRadius: BorderRadius.all(
Radius.circular(5),
),
),
),
this.arrowIcon = const Icon(
Icons.keyboard_arrow_right_outlined,
color: Colors.black,
),
this.spacing = 10.0,
this.titleSpacing = 5.0,
this.style,
this.dropdownColor,
this.onCountryTap,
this.onStateTap,
this.onCityTap,
this.isCountyTitle = true,
this.isStateTitle = true,
this.isCityTitle = true,
this.layout = Layout.vertical,
this.countyTitle = 'Country*',
this.stateTitle = 'State*',
this.cityTitle = 'City*',
this.titleStyle,
}) : super(key: key);