mirror of
https://github.com/flutter/samples.git
synced 2026-04-04 18:51:05 +00:00
[linting_tool] Implement exporting profiles (#869)
This commit is contained in:
committed by
GitHub
parent
a46327ef80
commit
9986fe2f2c
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user