Home > database >  how do i put word on top of new container on flutter
how do i put word on top of new container on flutter

Time:09-24

Hello i have some problem with my flutter design
i want to make a box with rounded border using container
and on the top of this box i want to make a text and text looks like enter image description here

CodePudding user response:

Try this:

 new Container(
      alignment: Alignment.topCenter,
      decoration: new BoxDecoration(
      color: Colors.blue,
      borderRadius: new BorderRadius.only(
        topLeft: const Radius.circular(40.0),
        topRight: const Radius.circular(40.0),
      ),
    ),
  • Related