mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
[linting_tool] Implement saving rules to DB (#860)
This commit is contained in:
committed by
GitHub
parent
1818925286
commit
bbb8e342f1
@@ -3,8 +3,15 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hive_flutter/hive_flutter.dart';
|
||||
import 'package:linting_tool/app.dart';
|
||||
import 'package:linting_tool/model/profile.dart';
|
||||
import 'package:linting_tool/model/rule.dart';
|
||||
|
||||
void main() {
|
||||
Future<void> main() async {
|
||||
await Hive.initFlutter();
|
||||
Hive.registerAdapter(RuleAdapter());
|
||||
Hive.registerAdapter(RulesProfileAdapter());
|
||||
await Hive.openLazyBox<RulesProfile>('rules_profile');
|
||||
runApp(const LintingTool());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user