DanKyungu / OverSheet

OverSheet is a beautiful and fluent native platforms bottom sheet with a straigthforward implementation
MIT License
10 stars 1 forks source link

Exception thrown when trying to open the bottom sheet #1

Closed Eel2000 closed 2 years ago

Eel2000 commented 2 years ago

Hello @DanKyungu . I encountered an exception when I was working with the library. I've installed the lib and I create a simple button that had a click event. the click event calls the Application.Current.MainPage.ShowBottomSheet(new DetailsPage(),cornerRadius:10,false); the DetailsPages is a simple MauiContentPage with a label. but its throws this exception Java.Lang.IllegalArgumentException: 'The view is not a child of CoordinatorLayout. How can I solve this issue

DanKyungu commented 2 years ago

Your DetailsPage is a ContentPage or a ContentView ?

Eel2000 commented 2 years ago

It's a contentPage But i think that i get what's going on I didn't use ContentView I used ContentPage instead

Eel2000 commented 2 years ago

Maybe it will be good to specify it in the readme

Eel2000 commented 2 years ago

I don't know why but i still get the same exception even with the ContentView My call image

the contenView image

DanKyungu commented 2 years ago

Can you share your sample project? Normally on Android the Standard BottomSheetDialog need to be contained in a ConstraintLayout contrary to the Modal BottomSheet

Eel2000 commented 2 years ago

how to proceed??

Eel2000 commented 2 years ago

Here is the sample https://github.com/Eel2000/MauiAppBottomSheet

Eel2000 commented 2 years ago

Should I update the library??