I would like to change the border color of the TextFormField on login screen to white because the background is gradient and would make it easier to visualize the text. Today I'm using the pattern I created for the theme:
ThemeData buildTheme() {
final ThemeData base = ThemeData();
return base.copyWith(
primaryColor: Colors.lightBlue,
inputDecorationTheme: InputDecorationTheme(
border: OutlineInputBorder(),
),
);
}
And I tried to create a decoratoration
in the field:
final password = TextFormField(
autofocus: false,
obscureText: true,
decoration: InputDecoration(
labelText: 'Senha',
border: OutlineInputBorder(
borderSide: BorderSide(
color: Colors.white,
),
)
),
);
But I did not succeed. How can I do this only for the fields on this screen?