I want the height of container

```
 Container( // how to get height of the container
    child: Text('hello,\nhow to get\nheight of the parent layout'),
 ),

```

I try this,

```
  return LayoutBuilder(
    builder:
        (BuildContext context, BoxConstraints constraints) {
      print(constraints.maxHeight);
      return Container( // how to get height of the container
        child: Text('hello,\nhow to get\nheight of the parent layout'),
      );
    },
  );

```

The height print always 0 value