mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Account for linter changes in linter_tool (#1930)
This commit is contained in:
@@ -16,7 +16,7 @@ class APIProvider {
|
||||
|
||||
Future<List<Rule>> getRulesList() async {
|
||||
final response =
|
||||
await httpClient.get(Uri.parse('$_baseURL//lints/machine/rules.json'));
|
||||
await httpClient.get(Uri.parse('$_baseURL/lints/machine/rules.json'));
|
||||
|
||||
if (response.statusCode == 200) {
|
||||
final data = json.decode(response.body) as List;
|
||||
@@ -31,7 +31,7 @@ class APIProvider {
|
||||
|
||||
Future<YamlMap> getTemplateFile() async {
|
||||
final response = await httpClient.get(Uri.parse(
|
||||
'https://raw.githubusercontent.com/flutter/flutter/master/packages/flutter_tools/templates/app_shared/analysis_options.yaml.tmpl'));
|
||||
'https://raw.githubusercontent.com/flutter/flutter/main/packages/flutter_tools/templates/app_shared/analysis_options.yaml.tmpl'));
|
||||
if (response.statusCode == 200) {
|
||||
return loadYaml(response.body) as YamlMap;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user