multiselect-dropdown icon indicating copy to clipboard operation
multiselect-dropdown copied to clipboard

No ability to specify input decoration

Open multib0t opened this issue 1 year ago • 2 comments

I would like to be able to define my InputDecoration to make it consistent witht the rest of my fields in my app. Can you please add this as an option to make it more flexisble?

multib0t avatar Sep 11 '24 05:09 multib0t

I would change multibot_dropdown.dart to return InputDecoration( enabled: widget.enabled, labelText: fieldDecoration.labelText, floatingLabelBehavior: fieldDecoration.floatingLabelBehavior, labelStyle: fieldDecoration.labelStyle, hintText: fieldDecoration.hintText, hintStyle: fieldDecoration.hintStyle, errorText: _formFieldKey.currentState?.errorText, filled: fieldDecoration.backgroundColor != null, fillColor: fieldDecoration.backgroundColor, border: fieldDecoration.border ?? border, enabledBorder: fieldDecoration.border ?? border, disabledBorder: fieldDecoration.disabledBorder, prefixIcon: prefixIcon, focusedBorder: fieldDecoration.focusedBorder ?? border, errorBorder: fieldDecoration.errorBorder, suffixIcon: _buildSuffixIcon(), contentPadding: fieldDecoration.padding, ); } and add at least floatingLabelBehavior: fieldDecoration.floatingLabelBehavior,

multib0t avatar Sep 11 '24 10:09 multib0t

Inability to provide own InputDecoration makes widget unusable after upgrade.

What was the point of inventing own class (FieldDecoration) instead of using InputDecoration that Flutter ecosystem uses?

divan avatar Sep 13 '24 17:09 divan