how to get parent widget width size ?

241 views
Skip to first unread message

You Sour

unread,
May 20, 2021, 10:22:27 AM5/20/21
to Flutter Development (flutter-dev)
Screenshot from 2021-05-20 21-05-47.png
how can i get parent widget width ?
here my widget tree
```
row
  expanded
     flex:8
      row
        column
          container(
            width : ???? // here i want to get width size of expanded flex: 8
            Wrap(
              children: [  
     Text('item A'),
     Text('item B'),
     Text('item C'),
     Text('item D'),
                      ],
     ),)
```
thank for advance
Reply all
Reply to author
Forward
0 new messages