EdgeInsets.symmetric()

与两侧的距离(对称位置)

Scaffold(
        body: Center(
          child: Container(
            color: Colors.black12,
            padding: const EdgeInsets.symmetric(horizontal: 20,vertical: 40),
            child: const Text('TEST'),
          ),
        ),
      )

EdgeInsets.symmetric()_第1张图片

你可能感兴趣的:(Flutter,flutter)