Skip to content

Widget tests, a stable Dart and many fixes (1.10.1)

Latest

Choose a tag to compare

@iosephmagno iosephmagno released this 01 Dec 19:22
· 6 commits to main since this release

This release comes with Dart 3.12.2, a stable Dart, and adds widget tests
you run with dn test, more for screen readers, sweep gradients, gradient
strokes and Image builders. It also fixes the issues reported against
1.10.0.

How to update. Run dn upgrade. This release runs on a new engine, so
the upgrade also brings a new dn and takes a little longer. If your dn
is older than 1.6.0, dn upgrade prints the install command instead: run
it, then dn upgrade again. DartNative 1.10.1 comes with Dart 3.12.2.
dn downgrade takes you back to 1.10.0, and dn use <release> switches to
any release that dn releases lists.

Code push. After you update, the fixes you send reach only apps
released with 1.10.1. Make a new release of your app before you send fixes.
To send a fix to an app you released with 1.10.0, run dn use 1.10.0
first; dn tells you when you forget.

New

  • Widget tests. Build a screen, tap it, type into it and check what it
    shows with dn test, using package:dartnative/testing.dart. (#109)
  • Screen readers. Semantics takes custom actions, onIncrease,
    onDecrease and onDismiss, and reorderable lists offer move actions on
    every row. (#110)
  • Sweep gradients. SweepGradient turns colours around a point in
    decorations, on a canvas, in a ShaderMask and in text. (#112)
  • Gradient strokes. A Paint.shader on a stroked shape draws the
    outline with the gradient, so a progress ring is one drawArc. (#113)
  • Image builders. Image takes errorBuilder, loadingBuilder with
    the bytes as they arrive, and frameBuilder. (#115)
  • Text lines. TextPainter gives a text's lines, the position under a
    point and a line's boundaries.

Fixed

  • Nested navigators: a push during a pop no longer blanks a tab, a Hero
    inside a tab's stack flies, and each route keeps its own transition.
    (#102, #103, #104)
  • A PageRouteBuilder runs its own transition, a closed sheet reports
    itself dismissed once it has left the screen, and Navigator.of finds
    the right navigator while a sheet is up. (#105, #106, #107)
  • Text draws TextStyle.foreground: a colour, a gradient or an outline.
    (#108)
  • SegmentedControl labels take the style's font family and the selected
    segment's size and weight. (#114)
  • A CustomPainter draws blurs and drawShadow. (#122)
  • On iPhone, changing a blur as you drag stays smooth, and a
    BackdropFilter with a fixed blur shows it.

What you may notice in an existing app

  • maxLines: null on a TextField now means no row limit; it was a single
    line.
  • On Android, TextStyle.height now sets every line's height, a single
    line included, so such text can take a little more or less room.
  • If your app uses dartnative_intl, dartnative_social_sign_in or
    dartnative_splash 1.0.1 or 1.0.2, run dn pub upgrade <plugin> before
    you use their tools with dn run-tool.

Plugins

  • dartnative_intl, dartnative_social_sign_in, dartnative_splash
    1.0.3.
    Their tools run on Dart 3.12.2. (#111)
  • dartnative_google_maps 1.1.0. Lines, areas and circles, and markers
    with a title, a colour, your own image and an order. A map without an API
    key no longer stops the app. (#116, #119)
  • dartnative_permissions 1.0.2. On iOS every permission now asks and
    answers; before, each answered restricted. (#117)
  • dartnative_live_activities 0.1.2. A lock screen card that reuses
    the expanded island shows its leading content. (#118)
  • dartnative_notifications 1.1.0. Schedule a notification for a date
    and time, list the ones still to come, and read whether notifications are
    on. (#120)
  • dartnative_home_widget 0.2.0. Widgets people set up per copy, such
    as a stop for a bus widget. (#121)
  • dartnative_supertonic_tts 1.0.2. More words get their stress right
    in several languages.

Build: SDK d89cb469396 · engine edafe2dfe879. Install or update: curl -fsSL https://cdn.dartnative.com/install.sh | sh