Skip to content

Commit cb57ae5

Browse files
committed
fix: ignore false positive lints
Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
1 parent 8e81191 commit cb57ae5

File tree

12 files changed

+12
-3
lines changed

12 files changed

+12
-3
lines changed

melos.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ scripts:
3535
format: dart format --fix --line-length 120 .
3636
format:check: dart format --output=none --set-exit-if-changed --line-length 120 .
3737
analyze: >
38-
dart analyze --fatal-infos . #&&
38+
melos analyze --fatal-infos . #&&
3939
#dart run custom_lint --fatal-infos .
4040
test: >
4141
melos run test:dart &&

packages/neon_framework/packages/files_app/lib/src/pages/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class _FilesMainPageState extends State<FilesMainPage> {
2828
bloc = NeonProvider.of<FilesBloc>(context);
2929

3030
errorsSubscription = bloc.errors.listen((error) {
31+
// ignore: use_build_context_synchronously
3132
NeonError.showSnackbar(context, error);
3233
});
3334
}

packages/neon_framework/packages/files_app/lib/src/widgets/browser_view.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class _FilesBrowserViewState extends State<FilesBrowserView> {
3838
@override
3939
void initState() {
4040
errorsSubscription = widget.bloc.errors.listen((error) {
41+
// ignore: use_build_context_synchronously
4142
NeonError.showSnackbar(context, error);
4243
});
4344

packages/neon_framework/packages/news_app/lib/src/pages/article.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class _NewsArticlePageState extends State<NewsArticlePage> {
4747
super.initState();
4848

4949
errorsSubscription = widget.bloc.errors.listen((error) {
50+
// ignore: use_build_context_synchronously
5051
NeonError.showSnackbar(context, error);
5152
});
5253

packages/neon_framework/packages/news_app/lib/src/pages/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class _NewsMainPageState extends State<NewsMainPage> {
3434
index = NeonProvider.of<NewsOptions>(context).defaultCategoryOption.value.index;
3535

3636
errorsSubscription = bloc.errors.listen((error) {
37+
// ignore: use_build_context_synchronously
3738
NeonError.showSnackbar(context, error);
3839
});
3940
}

packages/neon_framework/packages/news_app/lib/src/widgets/articles_view.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class _NewsArticlesViewState extends State<NewsArticlesView> {
4949
super.initState();
5050

5151
errorsSubscription = widget.bloc.errors.listen((error) {
52+
// ignore: use_build_context_synchronously
5253
NeonError.showSnackbar(context, error);
5354
});
5455

packages/neon_framework/packages/notes_app/lib/src/pages/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class _NotesMainPageState extends State<NotesMainPage> {
3434
index = NeonProvider.of<NotesOptions>(context).defaultCategoryOption.value.index;
3535

3636
errorsSubscription = bloc.errors.listen((error) {
37+
// ignore: use_build_context_synchronously
3738
handleNotesException(context, error);
3839
});
3940
}

packages/neon_framework/packages/notes_app/lib/src/pages/note.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class _NotesNotePageState extends State<NotesNotePage> {
4949
super.initState();
5050

5151
errorsSubscription = widget.bloc.errors.listen((error) {
52+
// ignore: use_build_context_synchronously
5253
handleNotesException(context, error);
5354
});
5455

packages/neon_framework/packages/notifications_app/lib/src/pages/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class _NotificationsMainPageState extends State<NotificationsMainPage> {
3030
bloc = NeonProvider.of<NotificationsBlocInterface>(context) as NotificationsBloc;
3131

3232
errorsSubscription = bloc.errors.listen((error) {
33+
// ignore: use_build_context_synchronously
3334
NeonError.showSnackbar(context, error);
3435
});
3536
}

packages/neon_framework/packages/talk_app/lib/src/pages/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class _TalkMainPageState extends State<TalkMainPage> {
4040

4141
bloc = NeonProvider.of<TalkBloc>(context);
4242
errorsSubscription = bloc.errors.listen((error) {
43+
// ignore: use_build_context_synchronously
4344
NeonError.showSnackbar(context, error);
4445
});
4546
}

packages/neon_framework/packages/talk_app/lib/src/pages/room.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class _TalkRoomPageState extends State<TalkRoomPage> {
3838
bloc = NeonProvider.of<TalkRoomBloc>(context);
3939

4040
errorsSubscription = bloc.errors.listen((error) {
41+
// ignore: use_build_context_synchronously
4142
NeonError.showSnackbar(context, error);
4243
});
4344
}

packages/neon_framework/packages/talk_app/lib/src/widgets/message.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ TextSpan buildChatMessage({
123123
}
124124
for (final reference in references) {
125125
if (reference == part) {
126-
final gestureRecognizer = TapGestureRecognizer();
127-
gestureRecognizer.onTap = () => onReferenceClicked(reference);
126+
final gestureRecognizer = TapGestureRecognizer()..onTap = () => onReferenceClicked(reference);
128127

129128
children.add(
130129
TextSpan(

0 commit comments

Comments
 (0)