一个圆形按钮,并且调整大小-flutter

 Widget btnCircle(){
    
    
    return
      SizedBox(
        height: 50,
        width: 50,
        child:RaisedButton(
      child: Text('圆形按钮' ),
      onPressed: () {
    
    
        print('我很圆');
        Text('我很圆');
      },
      shape: CircleBorder(),

    ));
  }

猜你喜欢

转载自blog.csdn.net/jonathan_joestar/article/details/107237039
今日推荐