i'm tryng to use a gradient on a textfield border but without sucess. is it possible?
Widget _passwordTF() {
return TextField(
obscureText: true,
decoration: InputDecoration(
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: LinearGradient(colors: [color1, color2]),
),
),
),
);
}
it says "The argument type 'LinearGradient' can't be assigned to the parameter type 'Color'"