viewSpacing property
Used to define the spacedouble between multiple views when the enableMultiView is enabled. Otherwise, the viewSpacing value as not applied in SfHijriDateRangePicker.
Defaults to value 20
.
This value not applicable on SfHijriDateRangePicker when navigationMode is DateRangePickerNavigationMode.scroll.
See also:
- enableMultiView, which allows displays multiple date picker side by side in hijri date range picker.
- navigationDirection, which allows to arrange and navigate the multiview in either in DateRangePickerNavigationDirection.vertical or DateRangePickerNavigationDirection.horizontal in hijri date range picker.
- Knowledge base: How to show tow pickers vertically
- Knowledge base: How to use multiple picker
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: SfHijriDateRangePicker(
enableMultiView: true,
viewSpacing: 20,
),
),
);
}
Implementation
final double viewSpacing;