jamesblasco / modal_bottom_sheet

Flutter | Create advanced modal bottom sheets. Material, Cupertino or your own style
https://pub.dev/packages/modal_bottom_sheet
MIT License
1.89k stars 474 forks source link

iOS Switching from Dark Mode / Light Mode #200

Open SirZesso opened 3 years ago

SirZesso commented 3 years ago

I've experienced, that the content on modal button sheets does not adapt when you turn on/off Dark mode from Control Center. This is an unexpected behavior that I'd like to report here.

I personally think, that you could adapt some behavior from the Flutter AlertDialog. HotReload behaves equally but Dark/Light mode adapts...

I've used following implementation:

void groupSettingsModalBottomSheet(context) {
    showMaterialModalBottomSheet(
        context: context,
        builder: (BuildContext bc) {
          return GroupProfileScreen();
        });
  }

Here's an example of the unexpected behavior: https://user-images.githubusercontent.com/32840988/136010040-d03ad460-9c5c-4d08-9810-5320d8bb2c6d.MOV

Here's an example where I've implemented an AlertDialog: https://user-images.githubusercontent.com/32840988/136010564-6c4ddca5-36d0-422e-a16e-e7f885724b15.MOV

ManuLpz4 commented 3 years ago

Do you want to make a PR with the fix? 👀

Myzel394 commented 1 year ago

@SirZesso did you find a solution?