Skip to content

Waft 0.6.0

Choose a tag to compare

@xtyxtyx xtyxtyx released this 18 Nov 00:48
· 418 commits to main since this release
a99bfed

The first release published by CI from its tag. Waft now lives at github.com/waos-dev/waft.

Upgrading from 0.5

  • Arena objects are owned by counted references (#31). app.create answers a Retained<Handle<T>> that keeps the object alive; drop it to release it, where 0.5 asked for a manual destroy. Widgets that take a controller or focus node take the retained one (Retained::keep(app, controller)), and listenables are implemented for Retained<H>.
  • Erased routes and objects: a typed route becomes the one a navigator takes with route.into_erased() (was PageRoute::as_page_route(route)), and Dart's Object == is one erased type, AnyEq (#83).
  • show_* functions are builders (#71): ShowDatePicker::new(..).show(app, context) and the like, each option a method.
  • SelectorBarItem with a child has its own constructor, SelectorBarItem::with_child (#64).
  • Valo 0.26 (#94): ParagraphStyle carries a strut.

New

  • Material, ported far further (#22–#27, #38, #46, #67, #76): dropdowns, chips, segmented and toggle buttons, range slider, date and time pickers, autocomplete, reorderable lists, search, data tables, carousel, stepper, refresh indicator, expansion panels and more, with a gallery of every family.
  • Material adaptive layout from Compose (#77, #86): window size classes, the three-pane scaffold and navigation suite, with a gallery that adapts and Google's Reply sample. Expressive split button and button group (#90).
  • Text: StrutStyle through Text, EditableText, TextField, SelectableText and CupertinoTextField (#94); the base of Flutter's text selection (#89); 104 more text field cases (#73, #82).
  • WinUI: TableView (#44, #45, #50, #93), CommandBar (#49), AutoSuggestBox (#59), more Fluent symbols (#48, #61), centred InfoBadge numbers (#72).
  • Gestures: the double-tap recognizer and GestureDetector's callbacks (#85).
  • iOS gets a host of its own over UIKit's scenes, with text input (#29, #30, #34); Android reports its lifecycle and touch slop as Flutter's embedding does (#37, #51) and has shortcuts (#26, #28).
  • Platform: local time for DateTime (#47), how an image's pictures go (#54), and a macOS user activity against App Nap (#66).
  • Testing: one WidgetTester with flutter_test's defaults, the test fonts, a paints matcher and frames pumped as the shell runs them (#40, #52, #55, #65, #70).

Fixed

  • A table rebuilt over the same source keeps its selected row, and its selection follows its items while no table shows it (#93).
  • Two upstream Flutter fixes the port had copied: an autocomplete's leftover focus listener, and a reorderable list's gap (#87).
  • Shadows drop as Flutter's do (#88); a fling from past an edge carries on into the content (#42).