Skip to content

docs: primary constructor tip and correct minimum SDK - #100

Merged
Mastersam07 merged 4 commits into
devfrom
docs/primary-constructors-tip
Nov 10, 2026
Merged

Mastersam07 merged 4 commits into
devfrom
docs/primary-constructors-tip

Conversation

@Mastersam07

@Mastersam07 Mastersam07 commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Docs only. Primary constructor guidance, plus a corrected minimum SDK.

Getting started. Adds a tip after the first route example showing the same routes written with Dart 3.13 primary constructors. The classic form stays the main example because kaisel's floor is Dart 3.10.

Concepts. A short tip in "A route is a value" pointing to the Getting started form.

kaisel skill. A new rule in "Defining routes": read the environment: sdk: lower bound in the user's pubspec, use primary constructors at ^3.13.0 or higher and the classic form below it, never mix the two in one file, and never raise the user's SDK just for this. props is still required for equality.

Minimum versions. The page said "Flutter 3.24+ and requires Dart 3", but the packages declare sdk: ^3.10.0, so the real floor is Dart 3.10 (Flutter 3.38).

All snippets were checked in a scratch package on sdk: ^3.13.0 against kaisel_core: positional, named optional and no-field variants analyze clean, equality via props holds, and an exhaustive switch matches them.

@github-actions

Copy link
Copy Markdown
Contributor

📖 Docs preview: https://kaisel.dev/pr-100/ (updates on every push; removed when this PR closes)

github-actions Bot pushed a commit that referenced this pull request Nov 10, 2026
github-actions Bot pushed a commit that referenced this pull request Nov 10, 2026
@Mastersam07
Mastersam07 merged commit 92cdf53 into dev Nov 10, 2026
4 checks passed
github-actions Bot pushed a commit that referenced this pull request Nov 10, 2026
github-actions Bot added a commit that referenced this pull request Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant