My Flutter app has theming that adds a border around TextFields:
ThemeData(
...
inputDecorationTheme: InputDecorationTheme(
focusedBorder: OutlineInputBorder(
borderSide: BorderSide(width: 1.0),
),
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(width: 1.0),
),
)
However, I do have one TextField that I don't want border, so I tried to override the border in the TextField:
TextField(
decoration: InputDecoration.collapsed(
hintText: _hintText,
border: InputBorder.none,
),
controller: _textController,
),
But I'm still getting the border? Below is a partial image. The "Enter please!" fields use the theme defaults and the "Question" fields are the one I'm trying to override.
