rounded_background_text 0.6.0
rounded_background_text: ^0.6.0 copied to clipboard
Text, TextField and TextSpan highlighted with rounded corners
0.6.0 #
-
feat: Add
RoundedBackgroundTextField.stylusHandwritingEnabled
-
BREAKING fix: Do not use material's
SelectableText
inRoundedBackgroundText.selectable
(#21)RoundedBackgroundTextField
is used under the hood instead. It contains all the logic to make the text scrollable, adapts to the style and more.RoundedBackgroundText.selectableRich
has been removed. UseRoundedBackgroundTextField
with custom text controller instead. -
feat: Enhance
RoundedBackgroundText
hit testing to accurately detect taps within the rounded background, including inner and outer curves. (#22)
0.5.0 #
- fix: Update vertical alignment (#19)
- breaking: Remove
textScaleFactor
. UsetextScaler
instead (83f0348e) - feat: Add missing fields to
RoundedBackgroundTextField
(8e7ce4a)- Added
textHeightBehavior
- Added
textWidthBasis
- Added
selectionHeightStyle
- Added
selectionWidthStyle
- Added
strutStyle
- Added
dragStartBehavior
- Added
contentInsertionConfiguration
- Added
contextMenuBuilder
- Added
spellCheckConfiguration
- Added
magnifierConfiguration
- Added
undoController
- Added
scribbleEnabled
- Added
locale
- Added
onChanged
- Added
onEditingComplete
- Added
onSubmitted
- Added
onAppPrivateCommand
- Added
onSelectionHandleTapped
- Added
onTapOutside
- Added
0.4.3 #
- fix:
RoundedBackgroundTextField.textAlign
is respected (#17) - fix:
RoundedBackgroundTextField
automatic line break is respected - fix:
RoundedBackgroundText.selectable
text is no longer duplicated - fix: outerRadius is correctly calculated when normalizing the lines
- fix: update painting cases on the right side
0.4.2 #
- fix: TextField's text is no longer transparent
0.4.1 #
- fix: update how the line heights are calculated based on the baseline and its accent
0.4.0 #
- fix: hint is aligned with the text field (#7)
- feat:
RoundedBackgroundText.selectable
now usesSelectableText
under the hood instead ofEditableText
(4ba757) - fix: the width normalizer now works reversely. This means there will not be any inconsistencies when breaking lines (9ac0b6)
- fix: the background painter now updates correctly when property changes (076dd05)
fix: Highlighted text now works properly on
RoundedBackgroundTextField
0.3.0 #
- feat:
RoundedBackgroundTextField
is now scrollable. The background will follow the scroll of the text field - feat: Added
.scrollController
,.scrollPhysics
,.scrollBehavior
and.scrollPadding
toRoundedBackgroundTextField
- feat:
RoundedBackgroundTextField.controller
is no longer required. If omitted, a local controller is created instead - fix: Dynamically calculate padding and factors for
RoundedBackgroundText
(#6)
0.2.1 #
- fix:
RoundedBackgroundTextField
now shows the background properly as the user types
0.2.0 #
- fix:
RoundedBackgroundTextField.hint
is no longer hidden. - feat: Added
RoundedBackgroundTextField.hintStyle
, which is the text style applied to.hint
- fix: Correctly apply padding to inner corners
- fix: Correctly apply size to background painter
- fix: Correctly inherit any
DefaultTextStyle
above - feat: Added
RoundedBackgroundText.selectable
, a backgrounded version ofSelectableText
0.1.3 #
- Do not center the whole stack. It was causing clipping on the text field
0.1.2 #
RoundedBackgroundTextField
now scales down to fit the textRoundedBackgroundTextField
now can't be scrollableRoundedBackgroundTextField
now usesEditableText
instead ofTextField
in order to get the best positioning- Expose more text field properties
- Update example app
0.1.1 #
- Customizable radius
0.1.0 #
- Implement
RoundedBackgroundText
- Implemnet
RoundedBackgroundTextField
- Implemnet
RoundedBackgroundTextSpan