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:
committed by
GitHub
parent
bcb0f90110
commit
41eeb2bb8c
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user