3
I would like to change the color of the Textformfield border on the login screen to white, because the background is gradient and it would be easier to view 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 decoration
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?