How to automatically size Icons in Flutter to be as big as possible

前端 未结 3 514
别跟我提以往
别跟我提以往 2021-02-07 00:47

At the moment, I am using the following bit of code :

   body: new Container(
            child: new Column(
                crossAxisAlignment: CrossAxisAlignm         


        
3条回答
  •  离开以前
    2021-02-07 01:24

    As for the text sizing, I couldn't find a better way than using some kind of ratio based on the available biggest height.

    I don't have the rights to comment yet, so I'll post it here : You can use the minimum between the biggest height and the biggest width.

    It will do something similar to BoxFit.contain

提交回复
热议问题