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>
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
Leptopoda committed Aug 15, 2024
1 parent 1eb2d66 commit eb4be19
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 2 deletions.
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 eb4be19

Please sign in to comment.