Update links and surrounding text for new main-api docs (#138602)

Issue reference: https://github.com/flutter/flutter/issues/133877
This commit is contained in:
Parker Lougheed
2023-11-17 16:27:53 -06:00
committed by GitHub
parent a8fbd27404
commit 096cdc39a9
7 changed files with 16 additions and 16 deletions

View File

@@ -101,7 +101,7 @@ class CreateCommand extends CreateBase {
/// The hostname for the Flutter docs for the current channel.
String get _snippetsHost => globals.flutterVersion.channel == 'stable'
? 'api.flutter.dev'
: 'master-api.flutter.dev';
: 'main-api.flutter.dev';
Future<String?> _fetchSampleFromServer(String sampleId) async {
// Sanity check the sampleId