SliderBottomSheet<T> constructor

const SliderBottomSheet<T>({
  1. Key? key,
  2. required String title,
  3. required TextStyle? headerTextStyle,
  4. required double min,
  5. required double max,
  6. required int? divisions,
  7. required Widget closeButton(
    1. T,
    2. dynamic ()
    )?,
  8. required ReactiveWidget<Widget> customSlider(
    1. T,
    2. Stream<void>,
    3. double,
    4. dynamic (
      1. double
      ),
    5. dynamic (
      1. double
      ),
    )?,
  9. required T state,
  10. required double value,
  11. required ImageEditorDesignMode designMode,
  12. required ThemeData theme,
  13. required StreamController<void> rebuildController,
  14. required dynamic onValueChanged(
    1. double value
    ),
  15. IconData? resetIcon,
  16. bool showFactorInTitle = false,
})

Creates a SliderBottomSheet with the provided parameters for customization and user interaction.

  • title: The title displayed at the top of the bottom sheet.
  • headerTextStyle: The text style for the title.
  • resetIcon: An optional icon for resetting the slider's value.
  • closeButton: A builder function for a custom close button.
  • customSlider: A builder function for a custom slider.
  • showFactorInTitle: Whether to show the factor value in the title.
  • min: The minimum value for the slider.
  • max: The maximum value for the slider.
  • divisions: The number of discrete divisions on the slider.
  • rebuildController: A stream controller for triggering UI updates.
  • state: The state object associated with the bottom sheet.
  • designMode: The design mode of the editor.
  • theme: Theme data for styling the bottom sheet.
  • value: The current value of the slider.
  • onValueChanged: Callback triggered when the slider value changes.

Implementation

const SliderBottomSheet({
  super.key,
  required this.title,
  required this.headerTextStyle,
  required this.min,
  required this.max,
  required this.divisions,
  required this.closeButton,
  required this.customSlider,
  required this.state,
  required this.value,
  required this.designMode,
  required this.theme,
  required this.rebuildController,
  required this.onValueChanged,
  this.resetIcon,
  this.showFactorInTitle = false,
});