1
0
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:
Parker Lougheed
2023-07-01 00:41:32 -05:00
committed by GitHub
parent 3df2a9767b
commit f9e1a99d1a
8 changed files with 242 additions and 87 deletions

View File

@@ -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 {