请说明填充的工作原理。如果我增加填充,它会变小;如果我减少填充,它会变大?但是为什么?

问题描述 投票:0回答:2
        body:SafeArea(
        Expanded(
          child: Padding(
            padding: EdgeInsets.all(40.0),
            child: FlatButton(
              textColor: Colors.white,
              color: Colors.green,
              child: Text(
                'True',
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 20.0,
                ),
              ),
              onPressed: () {
                //The user picked true.
              },
            ),
          ),
        ),
        );
flutter flutter-layout
2个回答
2
投票

0
投票
© www.soinside.com 2019 - 2024. All rights reserved.