Repository navigation
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 withdn test, usingpackage:dartnative/testing.dart. (#109) - Screen readers.
Semanticstakes custom actions,onIncrease,
onDecreaseandonDismiss, and reorderable lists offer move actions on
every row. (#110) - Sweep gradients.
SweepGradientturns colours around a point in
decorations, on a canvas, in aShaderMaskand in text. (#112) - Gradient strokes. A
Paint.shaderon a stroked shape draws the
outline with the gradient, so a progress ring is onedrawArc. (#113) - Image builders.
ImagetakeserrorBuilder,loadingBuilderwith
the bytes as they arrive, andframeBuilder. (#115) - Text lines.
TextPaintergives 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
PageRouteBuilderruns its own transition, a closed sheet reports
itself dismissed once it has left the screen, andNavigator.offinds
the right navigator while a sheet is up. (#105, #106, #107) TextdrawsTextStyle.foreground: a colour, a gradient or an outline.
(#108)SegmentedControllabels take the style's font family and the selected
segment's size and weight. (#114)- A
CustomPainterdraws blurs anddrawShadow. (#122) - On iPhone, changing a blur as you drag stays smooth, and a
BackdropFilterwith a fixed blur shows it.
What you may notice in an existing app
maxLines: nullon aTextFieldnow means no row limit; it was a single
line.- On Android,
TextStyle.heightnow 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_inor
dartnative_splash1.0.1 or 1.0.2, rundn pub upgrade <plugin>before
you use their tools withdn 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_maps1.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_permissions1.0.2. On iOS every permission now asks and
answers; before, each answeredrestricted. (#117)dartnative_live_activities0.1.2. A lock screen card that reuses
the expanded island shows its leading content. (#118)dartnative_notifications1.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_widget0.2.0. Widgets people set up per copy, such
as a stop for a bus widget. (#121)dartnative_supertonic_tts1.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