I try to create using stack and other container but I am getting normal line.
2
You can try to make the color of the Container transparent and make the background color of the Scaffold instead.
Scaffold
That way the line of the container will disappear.
This code is just for the demo you will need to update it as per your requirement :
Scaffold( body: Center( child: Column( children: [ SizedBox(height: 50), Container( height: 50, width: 250, decoration: BoxDecoration( color: Colors.blueGrey, borderRadius: BorderRadius.circular(30), ), ), Container( height: 100, width: double.infinity, color: Colors.blueGrey, child: Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Container( height: 100, width: Get.width * 0.43, decoration: BoxDecoration( borderRadius: BorderRadius.only( bottomRight: Radius.circular(20), topRight: Radius.circular(20), ), color: Colors.white, ), ), Icon(Icons.calendar_month), Container( height: 100, width: Get.width * 0.43, decoration: BoxDecoration( borderRadius: BorderRadius.only( bottomLeft: Radius.circular(20), topLeft: Radius.circular(20), ), color: Colors.white, ), ), ], ), ), Container( height: 50, width: 350, decoration: BoxDecoration( color: Colors.blueGrey, borderRadius: BorderRadius.circular(30), ), ), ], ), ), );
Click here to cancel reply.
2
Answers
You can try to make the color of the Container transparent and make the background color of the
Scaffold
instead.That way the line of the container will disappear.
This code is just for the demo you will need to update it as per your requirement :