I have the following code:
return Scaffold(
        body: SafeArea(
        child: ListView(children: [
          Container(
            child: Center(
              child: Row(children: [
                Flexible(
                child: Container(
                  margin: const EdgeInsets.fromLTRB(10, 15, 5, 15),
                  decoration: BoxDecoration(color: Colors.white),
                  child: Row(children: [
                    Container(
                      height: 20,
                      width: 20,
                      decoration: BoxDecoration(color: Colors.black38),
                    ),
                    Expanded(   // <- does nothing. container still 0x0px
                      child: Container(
                        decoration: BoxDecoration(color: Colors.black38),
                    )),
                ]),
              ))
        ])))
      ]),
    ));
I am trying to expand the third container to the remaining size of the Row it's in, but somehow it always stays 0x0 pixel in size, until I define a manual size by using height: or/and width:.
Thanks for any help!