I can't seem to figure out how to style my TextFormFields inside my theme file. Research led me to the inputDecorationTheme class to achieve this but I can't figure out how to implement this in my theme file.
The code of my theme file I am working with is as follows (Notice the inputDecorationTheme:):
final ThemeData base = ThemeData.light();
return base.copyWith(
inputDecorationTheme: InputDecorationTheme(border: ***InputBorder.borderSide***()),
textTheme: _mainTextTheme(base.textTheme),
primaryColor: Color(0xff666666),
appBarTheme: _avoAppBar(base.appBarTheme),
iconTheme: IconThemeData(color: Colors.black, size: 16.0),
primaryIconTheme:
const IconThemeData.fallback().copyWith(color: fontColor),
elevatedButtonTheme: ElevatedButtonThemeData(
style: ButtonStyle(
backgroundColor: MaterialStateProperty.all(buttonColor),
foregroundColor: MaterialStateProperty.all(Colors.white),
minimumSize: MaterialStateProperty.all(Size(300, 50)),
))
);