codegrue / card_settings

A flutter package for building card based forms.
https://pub.dartlang.org/packages/card_settings
MIT License
555 stars 103 forks source link

new feature: fill InputDecoration with background color #175

Closed robertoltrocha closed 3 years ago

robertoltrocha commented 3 years ago

Hi, Could you add this options isFilled to fill background-color TextField?

I would like to change background-color of field edit area.

thanks

"CardSettingsField"

 content: TextField(
        controller: _controller,
        focusNode: widget.focusNode,
        keyboardType: widget.keyboardType,
        textInputAction: widget.inputAction,
        textCapitalization: widget.textCapitalization,
        enabled: widget.enabled,
        readOnly: !widget.enabled,
        style: contentStyle(context, value, widget.enabled),
        decoration: InputDecoration(
_**//add this line**_
filled: widget.isFilled,

          contentPadding: widget.contentPadding,
          border: InputBorder.none,
          errorText: errorText,
          prefixText: widget.prefixText,
          hintText: widget.hintText,
          isDense: true,
        ),
robertoltrocha commented 3 years ago

I changed theme and works,