Skip to content

fix: rewrite playground JSON editor and update project config#8

Merged
Ryanditko merged 2 commits intomainfrom
feat/responsive-animations-components-showcase
Mar 31, 2026
Merged

fix: rewrite playground JSON editor and update project config#8
Ryanditko merged 2 commits intomainfrom
feat/responsive-animations-components-showcase

Conversation

@Ryanditko
Copy link
Copy Markdown
Owner

Summary

  • Fix playground editor: the overlay approach (transparent TextField + colored RichText) caused broken scroll and interactivity, especially on web. Rewrote using a custom TextEditingController that overrides buildTextSpan() to return syntax-highlighted spans directly — native cursor, selection and scrolling work out of the box.
  • Update project config: add iOS CocoaPods setup (Podfile + xcconfig includes), documentation cover image, clean up outdated README section, and add .cursor/ to .gitignore.

Test plan

  • flutter analyze lib/ — zero issues
  • flutter test — 111 tests passing
  • Manual: open playground, type/edit JSON and confirm cursor, selection and scroll work correctly
  • Manual: confirm syntax highlighting colors render (keys blue, strings orange, numbers green)

…r syntax highlighting

The overlay approach (transparent TextField + colored RichText behind)
caused scroll conflicts and broken interactivity, especially on web.
Now uses a custom controller that overrides buildTextSpan() to return
highlighted spans directly — native cursor, selection and scroll work
out of the box.

Made-with: Cursor
…nore

- Remove outdated project structure section from README
- Add CocoaPods includes to iOS xcconfig files
- Add Podfile for iOS dependency management
- Add docs/assets/cover.png for documentation
- Exclude .cursor/ from version control

Made-with: Cursor
@Ryanditko Ryanditko added bug Something isn't working documentation Improvements or additions to documentation labels Mar 31, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flutter-backend-driven-ui Ready Ready Preview, Comment Mar 31, 2026 8:03pm

@Ryanditko Ryanditko merged commit 34e06d9 into main Mar 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant