Skip to content

How to customize the Theme of the Sliders? #280

Answered by hm21
saif-ellafi asked this question in Q&A
Discussion options

You must be logged in to vote

The design customization options within the SliderThemeData are somewhat limited, as there are a lot of configurations available for customizing a slider. Therefore, I decided it would make more sense to allow users to create their own sliders with customWidgets. Below is an example how you can replace the existing slider with your own implementation:

configs: ProImageEditorConfigs(
  customWidgets: ImageEditorCustomWidgets(
    textEditor: CustomWidgetsTextEditor(
      sliderFontSize:
          (editorState, rebuildStream, value, onChanged, onChangeEnd) {
        return ReactiveCustomWidget(
          stream: rebuildStream,
          builder: (_) => Slider(
            onChanged: onChan…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by saif-ellafi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hm21
Comment options

hm21 Dec 11, 2024
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants