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

Fix is in the second commit. The logic here went out of sync with the logic in the snippets generator from https://github.com/flutter/assets-for-api-docs, whose version was bumped as part of this change.
This commit is contained in:
Michael Goderbauer
2024-02-29 15:10:53 -08:00
committed by GitHub
parent f3ce9d2fcb
commit e41ffcb742
4 changed files with 7 additions and 7 deletions

View File

@@ -441,7 +441,7 @@ void main() {
</code>
</pre>
''');
const String queryParams = 'split=1&run=true&sample_id=widgets.Listener.123&sample_channel=master&channel=master';
const String queryParams = 'split=1&run=true&sample_id=widgets.Listener.123&channel=main';
widgetsDir.childFile('Listener-class.html').writeAsStringSync('''
<iframe class="snippet-dartpad" src="https://dartpad.dev/embed-flutter.html?$queryParams">
</iframe>