1
0
mirror of https://github.com/flutter/samples.git synced 2026-04-05 11:11:23 +00:00

[linting_tool] Implement exporting profiles (#869)

This commit is contained in:
Abdullah Deshmukh
2021-08-10 09:05:59 +05:30
committed by GitHub
parent a46327ef80
commit 9986fe2f2c
16 changed files with 224 additions and 10 deletions

View File

@@ -11,6 +11,8 @@ import 'package:linting_tool/routes.dart' as routes;
import 'package:provider/provider.dart';
import 'package:http/http.dart' as http;
final client = http.Client();
class LintingTool extends StatefulWidget {
const LintingTool({Key? key}) : super(key: key);
@@ -26,10 +28,10 @@ class _LintingToolState extends State<LintingTool> {
return MultiProvider(
providers: [
ChangeNotifierProvider<RuleStore>(
create: (context) => RuleStore(http.Client()),
create: (context) => RuleStore(client),
),
ChangeNotifierProvider<ProfilesStore>(
create: (context) => ProfilesStore(),
create: (context) => ProfilesStore(client),
),
],
child: MaterialApp(