Change flutter create to use master-docs.flutter.io instead of firebase URL. (#25516)
Now that we have our DNS mapping we should refer to the master docs site that way everywhere.
This commit is contained in:
parent
b13eacc717
commit
dca8d36d62
@ -187,7 +187,7 @@ class CreateCommand extends FlutterCommand {
|
|||||||
|
|
||||||
final String host = FlutterVersion.instance.channel == 'stable'
|
final String host = FlutterVersion.instance.channel == 'stable'
|
||||||
? 'docs.flutter.io'
|
? 'docs.flutter.io'
|
||||||
: 'master-docs-flutter-io.firebaseapp.com';
|
: 'master-docs.flutter.io';
|
||||||
return utf8.decode(await fetchUrl(Uri.https(host, 'snippets/$sampleId.dart')));
|
return utf8.decode(await fetchUrl(Uri.https(host, 'snippets/$sampleId.dart')));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user