Use dartpad's main channel for master/main docs (#144329)

Dartpad doesn't have a "master" channel anymore, it got renamed to "main". Sadly, specifying "master" is now falling back to "stable" which breaks some of our examples in the docs that require a more current Flutter version, e.g. https://main-api.flutter.dev/flutter/material/TextButton-class.html
This commit is contained in:
Michael Goderbauer
2024-02-29 11:08:25 -08:00
committed by GitHub
parent bcb0f90110
commit 41eeb2bb8c
4 changed files with 5 additions and 6 deletions

View File

@@ -116,7 +116,7 @@ function generate_docs() {
# Install and activate the snippets tool, which resides in the
# assets-for-api-docs repo:
# https://github.com/flutter/assets-for-api-docs/tree/master/packages/snippets
"$DART" pub global activate snippets 0.4.0
"$DART" pub global activate snippets 0.4.2
# This script generates a unified doc set, and creates
# a custom index.html, placing everything into DOC_DIR.