-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InputDecoration field #87
Comments
Came across the same issue I tried to apply them with MultiSelectDropDown<T>(
hintStyle: Theme.of(context).inputDecorationTheme.hintStyle,
inputDecoration: BoxDecoration(
color: Theme.of(context).inputDecorationTheme.fillColor,
border: Theme.of(context).inputDecorationTheme.border != null
? Border.fromBorderSide(Theme.of(context).inputDecorationTheme.border!.borderSide)
: Border(bottom: BorderSide(color: Theme.of(context).inputDecorationTheme.outlineBorder?.color ?? Colors.black45)),
),
...
) However, it's pretty hard to get borders to work correctly. On top of that, there's a constraint put in the widget that forces a min height of 52 which can be problematic in most forms |
Try out Dev version |
Check Beta version. |
v3.0.0 now supports this. Please migrate to the latest version. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
thanks for the wonderful plugin. Is it possible to use custom InputDecoration with this select?
I believe many people use it in forms, and use either custom
InputDecoration
orInputDecorationTheme
to style form. With this select it seems to be impossible at the moment. To add to the confusion, theinputDecoration
field has typeDecoration
, which is for styling Container, not the inputs.One option is to use this Decoration property to mimic other inputs' style in the form. However, it doesn't solve the problem with stuff like
errorText
orhelper
text. Wrapping it up withInputDecorator
class kind of helps, but still looks bad (hovering over the field with a rounded corner produces a highlighted box behind the field, etc), plus looks like a hack.Is there a discussion of allowing users to provide custom InputDecoration for the field?
The text was updated successfully, but these errors were encountered: