)]}'
{
  "commit": "764a079e567bba1ab0d93b68e4d30bb1181fc1bf",
  "tree": "e70ea52af43175e77760564666b397681664d543",
  "parents": [
    "dd2d0ff66a4a3104541c5164a8cac3d7ed3d4cd7"
  ],
  "author": {
    "name": "Vincent Ong",
    "email": "mvincentong@gmail.com",
    "time": "Fri Jun 12 09:20:16 2026 +0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Fri Jun 12 01:20:16 2026 +0000"
  },
  "message": "Clarify RichText selection docs (#186844)\n\nFixes #174930.\n\nThis updates the RichText selection docs to call out that the context\npassed to `SelectionContainer.maybeOf` must be below the `SelectionArea`\nor `SelectableRegion` that provides the selection registrar. The sample\nnow wraps the `RichText` in a `Builder` inside the `SelectionArea`,\nmatching the working pattern from the issue discussion.\n\nIt also adjusts the `SelectableRegion` overview so it says the region\nenables selection for widgets that participate in selection, rather than\nimplying every child widget becomes selectable automatically.\n\n## Tests\n\n- `./bin/dart format --output\u003dnone --set-exit-if-changed\npackages/flutter/lib/src/widgets/basic.dart\npackages/flutter/lib/src/widgets/selectable_region.dart`\n- `./bin/flutter analyze packages/flutter/lib/src/widgets/basic.dart\npackages/flutter/lib/src/widgets/selectable_region.dart`\n- `./bin/dart --enable-asserts dev/bots/analyze_snippet_code.dart\npackages/flutter/lib/src/widgets`\n- `git diff --check`",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "545133a62562cc0a09ecb512158e30305c51f3bc",
      "old_mode": 33188,
      "old_path": "packages/flutter/lib/src/widgets/basic.dart",
      "new_id": "a706eb8e302681a60da753cb6b12be4d1721efe4",
      "new_mode": 33188,
      "new_path": "packages/flutter/lib/src/widgets/basic.dart"
    },
    {
      "type": "modify",
      "old_id": "eb3d556616d792397e33f7f76d05a909891c56a8",
      "old_mode": 33188,
      "old_path": "packages/flutter/lib/src/widgets/selectable_region.dart",
      "new_id": "36d5b0c1b4dc9c91130f9583d3d7f3f7fc1d921d",
      "new_mode": 33188,
      "new_path": "packages/flutter/lib/src/widgets/selectable_region.dart"
    }
  ]
}
