flutter rounded textfield code example

Example 1: flutter textformfield border radius

decoration: const InputDecoration(
	border: const OutlineInputBorder(
		borderRadius: const BorderRadius.all(
		const Radius.circular(10.0),
	),
),

Example 2: textfield border radius flutter

TextFormField(
  decoration: InputDecoration(
    border: OutlineInputBorder(
      borderRadius: BorderRadius.circular(8),
    ),
  ),
),

Example 3: make text filed round flutter

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),
)

Tags:

Misc Example