codelessly_sdk 22.0.0
codelessly_sdk: ^22.0.0 copied to clipboard
Server-driven UI for Flutter. Design screens in the Codelessly Editor, publish, and render them natively in your app, with live updates, data, actions and navigation.
22.0.0 #
Breaking changes
- Requires
codelessly_api22.0.0, whereBehavioursis nowBehaviors,BehaviourFieldsis nowBehaviorFieldsandNode.behavioursis nowNode.behaviors. ActionsCancelledis nowActionsCanceled.ActionCancellation.isCancelledis nowActionCancellation.isCanceled.ActionRun.isCancelledis nowActionRun.isCanceled.PaywallOutcome.cancelledis nowPaywallOutcome.canceled.
21.0.0 #
Breaking changes
- Requires the current Firebase majors:
firebase_core5,firebase_auth7,cloud_firestore7,cloud_functions7 andfirebase_storage14. If your app depends on any of these directly, move it to the same major. - Apps that use
package:codelessly_sdk/firebase.dartneed AndroidminSdk24, iOS 15 and macOS 11, the minimums of those Firebase plugins. - Requires
codelessly_api21.0.0, Dart 3.12 and Flutter 3.35 or newer.
New
codelesslyWithToken(package:codelessly_sdk/firebase.dart) creates aCodelesslyfrom a project token alone. It opens Codelessly's Firebase project as a secondary app (codelesslyFirebaseApp,CodelesslyFirebaseOptions), so your app needs no Firebase setup of its own. PasscloudServices: trueto also enable the project's cloud data, accounts and files (codelesslyCloudServices).firebase.dartnow exports the Firebase types its functions take (Firebase,FirebaseApp,FirebaseOptions,FirebaseFirestore,FirebaseAuth,FirebaseStorage), so you don't need extra imports to call them.- Anchored modals:
openModalhonorsanchor,placement,anchorGapandanchorOffset. A modal anchored to its trigger or the pointer opens beside it as a popover, flips side when it doesn't fit and stays on screen.
Fixes
- Actions can read a trigger's value as
${value}as well as${result}, so a search field's changed action gets the typed text. - A link to the app's root with a query (
/?state=empty) opens the entry screen with those params. - A list whose scroll axis is flexible hugs its items within the space it is given and scrolls beyond that.
- Google Fonts load the font's Latin subset, so Latin text no longer falls back to the platform font.
20.0.3 #
Fixes
CodelesslyWidget.data: a screen variable with the same name as a data key starts at that value and follows it when the data changes, unless the user has changed it since. The data stays readable asdata.<key>.
20.0.2 #
Fixes
storage.<key>in expressions reads what the app keeps on the device (setStorage), and updates live.- Lists whose item updates rebuild nested lists no longer throw a concurrent modification error.
20.0.1 #
Fixes
- App variables (the publish model's variables) are shared by every screen. Previously a screen reading one got null.
20.0.0 #
Breaking changes
- A new SDK that renders published screens natively, straight into Flutter render objects, and reads the
codelessly_api20 format ("schema": 2). - Create the instance with
Codelessly(config: CodelesslyConfig(...)), optionally with aloader, and show a screen withCodelesslyWidget(codelessly: ..., layoutId: ...).