kherel / animated_theme_switcher

Flutter animated theme switcher
https://pub.dev/packages/animated_theme_switcher
MIT License
278 stars 28 forks source link

Bug once theme switcher is actived and showModalBottomSheet is used #46

Closed chitgoks closed 2 years ago

chitgoks commented 2 years ago

I have a listview, and a theme switcher in the appbar.

when the switch is done, changing the theme, and i call showModalBottomSheet(), it also somehow includes the first item of the listview

see image.

not sure if it's the prob of this lib or flutter. it worked before.

my content is also a stack widget.

showModalBottomSheet(
                  context: context,
                  clipBehavior: Clip.antiAliasWithSaveLayer,
                  shape: RoundedRectangleBorder(borderRadius: BorderRadius.vertical(top: Radius.circular(10.0))),
                  builder: (context) => Wrap(
                    children: [
                      _getRemoveAdsBox(),
                    ],
                  );

ss

kherel commented 2 years ago

HI @chitgoks, add a minimal code example, I'll try to help you.

chitgoks commented 2 years ago

hi ill close this. i removed ThemeSwitchingArea for the widget in bottomsheet. and did an if else for text color