fluent_2 0.0.2
fluent_2: ^0.0.2 copied to clipboard
Microsoft Fluent 2 components for Flutter web and desktop: 90+ widgets, 20 chart types, tokens, theming, a11y and 135 locales. No Material.
0.0.2 #
Added #
- ColorPicker.
FluentColorPicker,FluentColorArea,FluentColorSliderandFluentAlphaSlider, ported from@fluentui/react-color-picker-preview, withFluentColorPickerStyle,FluentColorAreaStyleandFluentColorSliderStyle, the three matching*Themewidgets and the usualresolve*State/resolve*Style/build*trio per component. The colour is Flutter's ownHSVColor— no new colour type reaches the API — and a picker publishes it to its children throughFluentColorPickerScope, so all four controls always agree. Controlled only: there is nodefaultColor, because upstream's uncontrolled mode gives each child its own copy of the value and they drift apart on the first drag. A new showroom page covers all eight upstream stories.
Fixed #
FluentSliderno longer loses a touch drag to a scrolling ancestor. It used aGestureDetectorwithonTapDown+onHorizontalDrag*, which does not claim the pointer until the drag slop is exceeded — long enough for a horizontally scrolling parent to win the arena. It now claims at pointer-down through the sameEagerGestureRecognizerpath the colour controls use. Mouse input was never affected, because Flutter leaves mouse out ofScrollBehavior.dragDevices, which is why no test caught it.
Breaking #
- Removed
FluentSpinButtonUnderlinePainter. The spin button's two bottom rules now come from the sharedFluentInputUnderline/FluentInputFocusUnderlinepair, like every other input. The painter drew both withcanvas.drawRect, so they were square and overhung the field's rounded corners; upstream'suseSpinButtonStylesrounds them viaheight: max(2px, borderRadiusMedium)plusclipPath: inset(calc(100% - 2px) 0 0 0).FluentSpinButtonChevronPainteris unaffected. Anyone who subclassed or instantiated the removed painter should use the two widgets instead.
Publishing #
- Use the Fluent 2 project logo as the first pub.dev screenshot and thumbnail.
- Require
fluent_2_coreandfluent_2_fonts_web0.0.2.
0.0.1 #
- Initial release.