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

showModalActionSheet shares styling with bottomSheet #137

Open
davidsturm96 opened this issue Sep 26, 2024 · 1 comment
Open

showModalActionSheet shares styling with bottomSheet #137

davidsturm96 opened this issue Sep 26, 2024 · 1 comment

Comments

@davidsturm96
Copy link

davidsturm96 commented Sep 26, 2024

I am using showModalActionSheet() from this package to display some information.

On the same page, I am setting the styling of the bottom sheet like this:

Theme(
    data: Theme.of(context).copyWith(
      bottomSheetTheme: Theme.of(context).bottomSheetTheme.copyWith(
            backgroundColor: Colors.transparent,
          ),
    ),
    ...

This also causes the background of the showModalActionSheet() to be transparent.

Is there a workaround to style those two parts seperately?

I tried it with

builder: (context, child) {
  return Theme(
    data: Theme.of(context).copyWith(
      bottomSheetTheme:
          Theme.of(context).bottomSheetTheme.copyWith(
                backgroundColor: Colors.red,
              ),
    ),
    child: child,
  );
},

but this does not seem to have any effect

@mono0926
Copy link
Owner

@davidsturm96
Please write reproducible main.dart and attach a screenshot.

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

No branches or pull requests

2 participants