Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to fully customize separator widget with a builder #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mauriziopinotti
Copy link

@mauriziopinotti mauriziopinotti commented Feb 11, 2022

I added a new parameter to ResizableWidget: separatorBuilder. This allows consumers to fully customize the separator using a builder.

Please notice this patch is built on top of #10.

This lets you fully customize the separator like this:

    return ResizableWidget(
      isHorizontalSeparator: true,
      separatorSize: 16,
      separatorBuilder: (info, controller) => DefaultSeparatorWidget(
        info: info,
        controller: controller,
      ),
      children: [
        // ...
      ],
    );

@panval
Copy link

panval commented Apr 19, 2022

hi! I'm new to Flutter - or to Coding at all.
I'd like to change the separator to a "classic" two liner

I managed to get the separatorBuilder Option however, I don't know how to use it / or how to build the class for it (DefaultSeparatorWidget)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants