1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-26 01:17:18 +00:00

[linting_tool] Prepare for release (#880)

This commit is contained in:
Abdullah Deshmukh
2021-08-23 16:26:55 -07:00
committed by GitHub
parent 0aad30fc5b
commit 410e43fbc1
22 changed files with 117 additions and 47 deletions

View File

@@ -7,6 +7,7 @@ import 'package:linting_tool/model/profile.dart';
import 'package:linting_tool/model/profiles_store.dart';
import 'package:linting_tool/model/rule.dart';
/// Used to control editing of the saved profiles on the RulesPage.
class EditingController extends ChangeNotifier {
bool _isEditing;

View File

@@ -111,6 +111,7 @@ class ProfilesStore extends ChangeNotifier {
try {
var templateFileData = await repository.getTemplateFile();
/// Fetch formatted data to create new YamlFile.
String newYamlFile =
_prepareYamlFile(profile, templateFileData, rulesStyle);

View File

@@ -11,6 +11,7 @@ import 'package:linting_tool/model/rule.dart';
import 'package:linting_tool/repository/repository.dart';
import 'package:http/http.dart' as http;
/// Manages fetching rules from the web.
class RuleStore extends ChangeNotifier {
late final Repository repository;