How can I remove the visible border between two containers in a column?

Viewed 51

does anyone know how to solve it so that there is no border between two elements in a column in the website? Thanks for any advice

Image

Code Here

class DesktopScreen extends StatelessWidget {
  const DesktopScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Sizer(
      builder: (context, orientation, deviceType) {
        return Scaffold(
          body: Column(
            children: [
              Container(color: HexColor("#111340"), height: 5.h, child: Row(children: [],),),
              Container(color: HexColor("#111340"), height: 95.h,)
            ],
          )
        );
      }
    );
  }
}

I'm a newbie, so I apologize for any mistakes in the post

2 Answers

Use Flexible

Widget build(BuildContext context) {
return Scaffold(
  body: Column(
    children: [
      Flexible(
        child: Container(
          color: Colors.red,
        ),
      ),
      Flexible(
        flex: 4,
        child: Container(
          color: Colors.green,
        ),
      ),
    ],
  ),
);}
Related