Flutter widgets composability

Have you ever come across a situation where you followed Flutter syntax correctly with regard to what widgets are allowed to be composed within other widgets, however, only during runtime errors starts to show up. Are there guidelines as to what widgets should not be within other widgets, even though you don’t get a syntax warning? Or should it always work if it is composable. I ran into this situation when I use the carousel_slider pub package. I tried placing a listview() under a column() under a container() under a carouselslider(), and a series of exception errors showed up during runtime. I’m not sure if this is simply due to the package. Or is there a way to know in advance that this can happen, so i can avoid certain widget composability. VSCode Flutter extension provided no warning in advance that this was not allowed.