Skip to content

showModalActionSheet shares styling with bottomSheet #137

@davidsturm96

Description

@davidsturm96

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions