0

I am trying to give a circular radius to my modal sheet using the shape parameter but it's not working.

I have tried giving the container inside radius decoration as well still no use.

This is what i did

  void modalScreen(BuildContext ctx) {
    showModalBottomSheet(
        shape: RoundedRectangleBorder(
          borderRadius: BorderRadius.vertical(top: Radius.circular(25.0)),
        ),
        backgroundColor: Colors.white,
        isScrollControlled: true,
        context: ctx,
        builder: (ctx) {
          return Container(
            height: 600,
              child: AddEntries(entriesList, entryIn),
            );
        });
  }

enter image description here

Rikigami
  • 63
  • 5
  • Checkout my answer here: https://stackoverflow.com/a/53656087/9185192 – Pedro Massango Feb 22 '20 at 12:49
  • 2
    Does this answer your question? [How to create a modal bottomsheet with circular corners in Flutter?](https://stackoverflow.com/questions/50376200/how-to-create-a-modal-bottomsheet-with-circular-corners-in-flutter) – Mahesh Jamdade Feb 22 '20 at 13:49

1 Answers1

1

it is just because of child - AddEntries(entriesList, entryIn)

remove it and Add Text("DEMO") widget instead of Add Entries, it will start working.

Child is using all size available. you need to add padding in it.

Soham Pandya
  • 386
  • 1
  • 14