Skip to content

Waft 0.7.0

Choose a tag to compare

@xtyxtyx xtyxtyx released this 18 Nov 10:51
· 347 commits to main since this release
627f5b6

Upgrading from 0.6

  • Picked files are read by their owner (#99, #102, #105): PickedFile::read_all is gone. A picked path is read with app.platform().files() (files.read(&path)); a picked handle or stream reads itself (handle.read_all()).
  • ColorScheme colours are methods (#106): scheme.primary(), with Flutter's fallbacks inside.
  • A bare WidgetsApp with home or routes needs a page route builder, as Flutter's does (#110); FluentApp, MaterialApp and CupertinoApp bring their own.
  • Padding and margins take EdgeInsets directly (#106); GridView constructors take padding.

New

  • File and HTTP IO as platform services (#99, #102, #105): Platform::files() and Platform::http() (the http crate's request and response, streaming bodies, WASI 0.3's three timeouts and error list), Apple's over NSURLSession, the web's over fetch; NetworkImage and FileImage with progress.
  • FluentApp and FluentPageRoute (#110, #111): Fluent's theme, light, dark or the system's, the icon font, WinUI's page entrance and the covered page's fade, and Fluent's text, selection and scroll defaults.
  • The selection areas (#100): SelectableRegion, Material's SelectionArea, selection across text, lists and cards.
  • Timer::periodic and delayed, catching up after a stall as Dart's VM does (#106, #110).
  • File dialogs close when their future is dropped (#101).
  • use waft::* reaches the types widgets take (#106, #109); LayoutBuilder goes wherever a widget goes; Ref and Entity say what each is for.
  • CI on Windows and Linux (#103).

Fixed

  • A crash with more than about 20 selectable items in one container: sorting now uses a port of Flutter's mergeSort (#100).