Skip to content

Conversation

@NearTox
Copy link
Contributor

@NearTox NearTox commented Feb 20, 2025

Add initial json support for use in go_router_builder
Adds annotation that enable custom string encoder/decoder, its enable conversion for base64

This allow custom type conversion for parameters, like mentionated in #117261 and #110781

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@hannah-hyj
Copy link
Member

you also need to bump versions in packages/go_router_builder/CHANGELOG.md and packages/go_router_builder/pubspec.yaml

@hannah-hyj
Copy link
Member

thank you for contributing the PR! This looks good to me over all with some comments

@NearTox NearTox changed the title [go_router_builder] Proposal: add json support [go_router_builder] Proposal: add json support, custom string encoder/decoder Feb 26, 2025
@chunhtai chunhtai requested a review from hannah-hyj March 13, 2025 22:08
@hannah-hyj
Copy link
Member

PR looks good to me over all, just left some nit comments :)

@NearTox
Copy link
Contributor Author

NearTox commented Mar 19, 2025

I made a rebase in order to take in account latest changes from main branch

@chunhtai
Copy link
Contributor

looks like the ci is not happy

@NearTox
Copy link
Contributor Author

NearTox commented Mar 21, 2025

I think it’s because the annotations requires the changes that I made in go_router_builder.
When I tested locally was overriding the dependency.
I should add it?

@chunhtai
Copy link
Contributor

they will have to be separate into two prs. I think we try to avoid having one pr that bump the two package at once

@hannah-hyj hannah-hyj self-requested a review March 24, 2025 22:48
@hannah-hyj
Copy link
Member

Hi @NearTox , is this PR still on your radar? this pr has to be separated into 2 PRs for go_router and go_router_builder

separate json_example to independent file

add missing examples
@NearTox
Copy link
Contributor Author

NearTox commented Aug 19, 2025

@chunhtai done

## 16.1.0

- Adds annotation for go_router_builder that enable custom string encoder/decoder [#110781](https://github.com/flutter/flutter/issues/110781). **Requires go_router_builder >= 3.1.0**.
- Adds annotation for go_router_builder that enable custom string encoder/decoder [#110781](https://github.com/flutter/flutter/issues/110781). **Requires go_router_builder >= 3.4.0**.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unfortunate, can you have a separate pr to update this once this lands?

Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, can you separate out the changlog update from go_router?

@NearTox
Copy link
Contributor Author

NearTox commented Aug 19, 2025

@chunhtai the changelog for go_router is only for fix the notice, I don't intent to make a new release.
If you think that the update in the notice (for a old release) not matters. I can remove it

@muhammadkamel
Copy link

@chunhtai

Could you please assign another reviewer? Hannah might be on vacation, and this feature is important for us.

Copy link
Member

@hannah-hyj hannah-hyj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chunhtai chunhtai added autosubmit Merge PR when tree becomes green via auto submit App and removed autosubmit Merge PR when tree becomes green via auto submit App labels Aug 26, 2025
@muhammadkamel
Copy link

Hi @chunhtai,
I hope we can merge this PR as soon as possible.

@muhammadkamel
Copy link

@NearTox
Could you please resolve the conflicts so we can proceed with merging this PR?

@justinmc justinmc added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 16, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 16, 2025
@auto-submit
Copy link
Contributor

auto-submit bot commented Sep 16, 2025

autosubmit label was removed for flutter/packages/8665, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR.

@NearTox NearTox force-pushed the main branch 2 times, most recently from ce1ecb6 to 1dea932 Compare September 22, 2025 22:24
@justinmc justinmc added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 23, 2025
@auto-submit auto-submit bot merged commit 51df718 into flutter:main Sep 23, 2025
80 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 24, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 24, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Sep 24, 2025
flutter/packages@3413b65...117bf63

2025-09-24 magder@google.com [ci] Add update-release-info command
suggestion when version check fails (flutter/packages#9834)
2025-09-24 engine-flutter-autoroll@skia.org Manual roll Flutter from
9ff2767 to 4a04204 (28 revisions) (flutter/packages#10067)
2025-09-24 stuartmorgan@google.com Remove "All right reserved" from all
files (flutter/packages#10066)
2025-09-24 stuartmorgan@google.com [google_sign_in] Implement
`disconnect` for Android (flutter/packages#9991)
2025-09-24 43054281+camsim99@users.noreply.github.com [camera_android]
Remove references to third party `googlesamples/mlkit` code
(flutter/packages#10056)
2025-09-23 52160996+FMorschel@users.noreply.github.com
[go_router_builder] [in_app_purchase_storekit] Removes redundant
arguments from annotations (flutter/packages#9964)
2025-09-23 121233810+nozomemein@users.noreply.github.com [go_router] Fix
Android Cold Start deep link with empty path losing scheme and
authority. (flutter/packages#9868)
2025-09-23 NearTox@outlook.com [go_router_builder] Proposal: add json
support, custom string encoder/decoder (flutter/packages#8665)
2025-09-23 lukas.mirbt@appshack.se [go_router] Fix ShellRoutes break iOS
swipe back navigation (flutter/packages#9968)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Jaineel-Mamtora pushed a commit to Jaineel-Mamtora/flutter_forked that referenced this pull request Sep 24, 2025
…r#175935)

flutter/packages@3413b65...117bf63

2025-09-24 magder@google.com [ci] Add update-release-info command
suggestion when version check fails (flutter/packages#9834)
2025-09-24 engine-flutter-autoroll@skia.org Manual roll Flutter from
9ff2767 to 4a04204 (28 revisions) (flutter/packages#10067)
2025-09-24 stuartmorgan@google.com Remove "All right reserved" from all
files (flutter/packages#10066)
2025-09-24 stuartmorgan@google.com [google_sign_in] Implement
`disconnect` for Android (flutter/packages#9991)
2025-09-24 43054281+camsim99@users.noreply.github.com [camera_android]
Remove references to third party `googlesamples/mlkit` code
(flutter/packages#10056)
2025-09-23 52160996+FMorschel@users.noreply.github.com
[go_router_builder] [in_app_purchase_storekit] Removes redundant
arguments from annotations (flutter/packages#9964)
2025-09-23 121233810+nozomemein@users.noreply.github.com [go_router] Fix
Android Cold Start deep link with empty path losing scheme and
authority. (flutter/packages#9868)
2025-09-23 NearTox@outlook.com [go_router_builder] Proposal: add json
support, custom string encoder/decoder (flutter/packages#8665)
2025-09-23 lukas.mirbt@appshack.se [go_router] Fix ShellRoutes break iOS
swipe back navigation (flutter/packages#9968)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: go_router_builder

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants