Skip to content

1.10.0

Choose a tag to compare

@github-actions github-actions released this 27 Oct 00:24
· 2 commits to master since this release
ee1ef39

Added

  • WImage supports Tailwind's object-position classes, so object-cover object-top keeps the upper part of a backdrop in a short, wide banner. object-cover always centred the crop, so faces and skylines in the top of a TV or film backdrop were cut off in a w-full h-full hero, and there was no alignment prop to reach for. object-bottom, object-center, object-left, object-left-bottom, object-left-top, object-right, object-right-bottom, object-right-top and object-top now map to the matching Alignment on the rendered Image (Alignment.center stays the default), with every fit. They follow the object-fit design rather than a new one: read straight off the className in WImage, never in WindStyle, first match wins, and a prefixed form such as md:object-top is not applied (as md:object-cover is not today). The nine tokens join the parser's known-unparsed set, so they no longer log the one-time unknown-className hint. (#257) (lib/src/widgets/w_image.dart, lib/src/parser/wind_parser.dart, test/widgets/w_image_test.dart, test/parser/wind_parser_test.dart, doc/widgets/w-image.md`)
  • A number WInput or WFormInput accepts the decimal mark the user's locale writes. The default InputType.number filter allowed only ., and swallowed any other keystroke, so a Turkish user typing 2,5 got 25, a silent 10x amount, and every app writing a comma locale had to replace the filter with a formatter of its own. A new decimalSeparator (default '.', one character other than a digit, + or -, asserted) names the one mark the filter accepts; , keeps 2,5 and refuses a ., and the default keeps today's behaviour. The field keeps the text as typed, so converting to the . a wire format expects stays with the caller. Accepting both marks at once was rejected: in English 1,000 is a thousand, and reading it as 1.000 would turn a grouping comma into a decimal one. Caller inputFormatters still replace the filter entirely. (#253) (lib/src/widgets/w_input.dart, lib/src/widgets/w_form_input.dart, test/widgets/w_input_test.dart, test/widgets/w_form_input_test.dart, doc/widgets/w-input.md, doc/widgets/w-form-input.md, skills/wind-ui/SKILL.md)