Skip to content

Commit

Permalink
fix: ignore false positive lints
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
  • Loading branch information
Leptopoda committed Aug 14, 2024
1 parent 050ae5d commit 42823d4
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ scripts:
format: dart format --fix --line-length 120 .
format:check: dart format --output=none --set-exit-if-changed --line-length 120 .
analyze: >
dart analyze --fatal-infos . #&&
melos analyze --fatal-infos . #&&
#dart run custom_lint --fatal-infos .
test: >
melos run test:dart &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class _FilesMainPageState extends State<FilesMainPage> {
bloc = NeonProvider.of<FilesBloc>(context);

errorsSubscription = bloc.errors.listen((error) {
// ignore: use_build_context_synchronously
NeonError.showSnackbar(context, error);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class _FilesBrowserViewState extends State<FilesBrowserView> {
@override
void initState() {
errorsSubscription = widget.bloc.errors.listen((error) {
// ignore: use_build_context_synchronously
NeonError.showSnackbar(context, error);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class _NewsArticlePageState extends State<NewsArticlePage> {
super.initState();

errorsSubscription = widget.bloc.errors.listen((error) {
// ignore: use_build_context_synchronously
NeonError.showSnackbar(context, error);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class _NewsMainPageState extends State<NewsMainPage> {
index = NeonProvider.of<NewsOptions>(context).defaultCategoryOption.value.index;

errorsSubscription = bloc.errors.listen((error) {
// ignore: use_build_context_synchronously
NeonError.showSnackbar(context, error);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class _NewsArticlesViewState extends State<NewsArticlesView> {
super.initState();

errorsSubscription = widget.bloc.errors.listen((error) {
// ignore: use_build_context_synchronously
NeonError.showSnackbar(context, error);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class _NotesMainPageState extends State<NotesMainPage> {
index = NeonProvider.of<NotesOptions>(context).defaultCategoryOption.value.index;

errorsSubscription = bloc.errors.listen((error) {
// ignore: use_build_context_synchronously
handleNotesException(context, error);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class _NotesNotePageState extends State<NotesNotePage> {
super.initState();

errorsSubscription = widget.bloc.errors.listen((error) {
// ignore: use_build_context_synchronously
handleNotesException(context, error);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class _NotificationsMainPageState extends State<NotificationsMainPage> {
bloc = NeonProvider.of<NotificationsBlocInterface>(context) as NotificationsBloc;

errorsSubscription = bloc.errors.listen((error) {
// ignore: use_build_context_synchronously
NeonError.showSnackbar(context, error);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class _TalkMainPageState extends State<TalkMainPage> {

bloc = NeonProvider.of<TalkBloc>(context);
errorsSubscription = bloc.errors.listen((error) {
// ignore: use_build_context_synchronously
NeonError.showSnackbar(context, error);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class _TalkRoomPageState extends State<TalkRoomPage> {
bloc = NeonProvider.of<TalkRoomBloc>(context);

errorsSubscription = bloc.errors.listen((error) {
// ignore: use_build_context_synchronously
NeonError.showSnackbar(context, error);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ TextSpan buildChatMessage({
}
for (final reference in references) {
if (reference == part) {
final gestureRecognizer = TapGestureRecognizer();
gestureRecognizer.onTap = () => onReferenceClicked(reference);
final gestureRecognizer = TapGestureRecognizer()..onTap = () => onReferenceClicked(reference);

children.add(
TextSpan(
Expand Down

0 comments on commit 42823d4

Please sign in to comment.