Want to make rounded TextField in flutter? You can add rounded corners to a TextField
within the decoration parameter of the TextField
.
1 2 3 4 5 6 7 8 9 10 11 12 | new TextField( decoration: new InputDecoration( border: new OutlineInputBorder( borderRadius: const BorderRadius.all( const Radius.circular(10.0), ), ), filled: true, hintStyle: new TextStyle(color: Colors.grey[800]), hintText: "Type in your text", fillColor: Colors.white70), ) |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.