Answers for "flutter modal bottom sheet rounded corners"

2

flutter rounded bottom sheet

void startAddNewMoodCheckin(BuildContext ctx) {
    showModalBottomSheet(
        shape: RoundedRectangleBorder(		//the rounded corner is created here
          borderRadius: BorderRadius.circular(10.0),
        ),
        context: ctx,
        builder: (_) {
          return Container(
            child: Text("This is a modal sheet"),
          );
        });
  }
Posted by: Guest on February-28-2021
1

flutter showmodalbottomsheet circular radius top

shape: const RoundedRectangleBorder(borderRadius: BorderRadius.vertical(top: Radius.circular(20.0))),
shape: const RoundedRectangleBorder(borderRadius: BorderRadius.only(topLeft: Radius.circular(20.0),topRight: Radius.circular(20.0))),
Posted by: Guest on August-23-2021

Code answers related to "flutter modal bottom sheet rounded corners"

Browse Popular Code Answers by Language