mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Fix lint warnings
This commit is contained in:
parent
8ba6526844
commit
4e5322553f
8 changed files with 11 additions and 8 deletions
|
@ -1,4 +1,3 @@
|
|||
import 'package:copy_with/copy_with.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class M3 extends ThemeExtension<M3> {
|
||||
|
|
|
@ -1 +1,5 @@
|
|||
include: package:np_lints/np.yaml
|
||||
|
||||
linter:
|
||||
rules:
|
||||
avoid_print: false
|
||||
|
|
|
@ -4,7 +4,7 @@ import 'package:np_codegen_build/src/np_log_generator.dart';
|
|||
import 'package:source_gen/source_gen.dart';
|
||||
|
||||
Builder driftTableSortBuilder(BuilderOptions options) =>
|
||||
SharedPartBuilder([DriftTableSortGenerator()], "drift_table_sort");
|
||||
SharedPartBuilder([const DriftTableSortGenerator()], "drift_table_sort");
|
||||
|
||||
Builder npLogBuilder(BuilderOptions options) =>
|
||||
SharedPartBuilder([NpLogGenerator()], "np_log");
|
||||
SharedPartBuilder([const NpLogGenerator()], "np_log");
|
||||
|
|
|
@ -78,7 +78,7 @@ $src""";
|
|||
}
|
||||
|
||||
Future _buildTest(String src, String expected) => buildTest(
|
||||
generators: [DriftTableSortGenerator()],
|
||||
generators: [const DriftTableSortGenerator()],
|
||||
pkgName: _pkgName,
|
||||
src: src,
|
||||
expected: expected,
|
||||
|
|
|
@ -9,7 +9,7 @@ class Logger {
|
|||
|
||||
void main() {
|
||||
final tester = SourceGenTester.fromPath("test/src/np_log.dart");
|
||||
final generator = NpLogGenerator();
|
||||
const generator = NpLogGenerator();
|
||||
Future<void> expectGen(String name, Matcher matcher) async =>
|
||||
expectGenerateNamed(await tester, name, generator, matcher);
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ class MediaStore {
|
|||
|
||||
static Stream get stream => _eventStream;
|
||||
|
||||
static late final _eventStream =
|
||||
static final _eventStream =
|
||||
_eventChannel.receiveBroadcastStream().map((event) {
|
||||
if (event is Map) {
|
||||
switch (event["event"]) {
|
||||
|
|
|
@ -22,7 +22,7 @@ class NativeEvent {
|
|||
static const _eventChannel = EventChannel("${k.libId}/native_event");
|
||||
static const _methodChannel = MethodChannel("${k.libId}/native_event_method");
|
||||
|
||||
static late final _eventStream = _eventChannel
|
||||
static final _eventStream = _eventChannel
|
||||
.receiveBroadcastStream()
|
||||
.map((event) {
|
||||
if (event is Map) {
|
||||
|
|
|
@ -28,7 +28,7 @@ class Permission {
|
|||
|
||||
static Stream get stream => _eventStream;
|
||||
|
||||
static late final _eventStream =
|
||||
static final _eventStream =
|
||||
_eventChannel.receiveBroadcastStream().map((event) {
|
||||
if (event is Map) {
|
||||
switch (event["event"]) {
|
||||
|
|
Loading…
Reference in a new issue