Alert Dialog with Rounded corners in flutter

前端 未结 8 1791
渐次进展
渐次进展 2020-12-23 13:30

I am trying to create an alert dialog with rounded corners in Flutter same as below screenshot. also add my code here, but my output is exactly different from the expected o

相关标签:
8条回答
  • 2020-12-23 13:53

    add

    showDialog(
            context: context,
            builder: (BuildContext context) {
              return AlertDialog(
                shape: RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular(10.0))),
                title: Text("Loading..."),
                content: CircularProgressIndicator(),
              );
            },
          );
    
    0 讨论(0)
  • 2020-12-23 13:54

    Try this code :

    AlertDialog(
       shape: RoundedRectangleBorder(borderRadius: 
        BorderRadius.all(Radius.circular(15))),
        title: Text('Your title!'),
        content: Container(),
    );
    
    0 讨论(0)
提交回复
热议问题