mirror of
https://github.com/flutter/samples.git
synced 2026-04-25 17:06:44 +00:00
[linting_tool] Prepare for release (#880)
This commit is contained in:
committed by
GitHub
parent
0aad30fc5b
commit
410e43fbc1
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user