1. 15 Jul, 2019 2 commits
  2. 13 Jul, 2019 5 commits
  3. 12 Jul, 2019 16 commits
  4. 11 Jul, 2019 15 commits
  5. 10 Jul, 2019 2 commits
    • Greg Spencer's avatar
      Change focus example to be more canonical (and correct), listening to the... · 3b945da0
      Greg Spencer authored
      Change focus example to be more canonical (and correct), listening to the focus node for changes. (#35913)
      
      This changes the example for FocusNode to be more correct, listening to the focus node for changes, instead of assuming that it is the only one doing the changing.
      3b945da0
    • Greg Spencer's avatar
      Add anchors to samples (#35906) · 67ee3e19
      Greg Spencer authored
      This adds an "anchor button" to each of the samples so that the user can link to individual samples instead of having to link to just the page. Clicking on the anchor button jumps to the anchor, as well as copying the anchor URL to the clipboard.
      
      There is some oddness in the implementation: because dartdoc uses a <base> tag, the href for the link can't just be "#id", it has to calculate the URL from the current window href. I do that in the onmouseenter and onclick because onload doesn't get triggered for <a> tags (and onmouseenter doesn't get triggered for mobile platforms), but I still want the href to be updated before someone right-clicks it to copy the URL.
      67ee3e19