Skip to content

怎么设置按钮适应父控件大小

groovy
ElevatedButton(
  child: Text("登录"),
  style: ElevatedButton.styleFrom(
    minimumSize: Size.fromHeight(40),
  ),
  onPressed: () {},
),