How can I make rounded TextField in flutter?

前端 未结 5 602
予麋鹿
予麋鹿 2021-02-02 05:35

Material Design for iOS doesn\'t look good, especially the TextField. So is there any way to create your own ? Or Is ther any way to add some styling to TextFie

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-02 05:52

    You can get desired output with the help of Container Have a look..

    new Container(
      child: new Text (
          "Text with rounded edges.",
          style: new TextStyle(
              color: Colors.blue[500],
              fontWeight: FontWeight.w900
          )
      ),
      decoration: new BoxDecoration (
          borderRadius: new BorderRadius.all(new Radius.circular(10.0)),
          color: Colors.black
      ),
      padding: new EdgeInsets.fromLTRB(16.0, 16.0, 16.0, 16.0),
    ),
    

提交回复
热议问题