File tree Expand file tree Collapse file tree 12 files changed +12
-3
lines changed
packages/neon_framework/packages
notifications_app/lib/src/pages Expand file tree Collapse file tree 12 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ scripts:
35
35
format : dart format --fix --line-length 120 .
36
36
format:check : dart format --output=none --set-exit-if-changed --line-length 120 .
37
37
analyze : >
38
- dart analyze --fatal-infos . #&&
38
+ melos analyze --fatal-infos . #&&
39
39
#dart run custom_lint --fatal-infos .
40
40
test : >
41
41
melos run test:dart &&
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ class _FilesMainPageState extends State<FilesMainPage> {
28
28
bloc = NeonProvider .of <FilesBloc >(context);
29
29
30
30
errorsSubscription = bloc.errors.listen ((error) {
31
+ // ignore: use_build_context_synchronously
31
32
NeonError .showSnackbar (context, error);
32
33
});
33
34
}
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ class _FilesBrowserViewState extends State<FilesBrowserView> {
38
38
@override
39
39
void initState () {
40
40
errorsSubscription = widget.bloc.errors.listen ((error) {
41
+ // ignore: use_build_context_synchronously
41
42
NeonError .showSnackbar (context, error);
42
43
});
43
44
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ class _NewsArticlePageState extends State<NewsArticlePage> {
47
47
super .initState ();
48
48
49
49
errorsSubscription = widget.bloc.errors.listen ((error) {
50
+ // ignore: use_build_context_synchronously
50
51
NeonError .showSnackbar (context, error);
51
52
});
52
53
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class _NewsMainPageState extends State<NewsMainPage> {
34
34
index = NeonProvider .of <NewsOptions >(context).defaultCategoryOption.value.index;
35
35
36
36
errorsSubscription = bloc.errors.listen ((error) {
37
+ // ignore: use_build_context_synchronously
37
38
NeonError .showSnackbar (context, error);
38
39
});
39
40
}
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ class _NewsArticlesViewState extends State<NewsArticlesView> {
49
49
super .initState ();
50
50
51
51
errorsSubscription = widget.bloc.errors.listen ((error) {
52
+ // ignore: use_build_context_synchronously
52
53
NeonError .showSnackbar (context, error);
53
54
});
54
55
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class _NotesMainPageState extends State<NotesMainPage> {
34
34
index = NeonProvider .of <NotesOptions >(context).defaultCategoryOption.value.index;
35
35
36
36
errorsSubscription = bloc.errors.listen ((error) {
37
+ // ignore: use_build_context_synchronously
37
38
handleNotesException (context, error);
38
39
});
39
40
}
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ class _NotesNotePageState extends State<NotesNotePage> {
49
49
super .initState ();
50
50
51
51
errorsSubscription = widget.bloc.errors.listen ((error) {
52
+ // ignore: use_build_context_synchronously
52
53
handleNotesException (context, error);
53
54
});
54
55
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class _NotificationsMainPageState extends State<NotificationsMainPage> {
30
30
bloc = NeonProvider .of <NotificationsBlocInterface >(context) as NotificationsBloc ;
31
31
32
32
errorsSubscription = bloc.errors.listen ((error) {
33
+ // ignore: use_build_context_synchronously
33
34
NeonError .showSnackbar (context, error);
34
35
});
35
36
}
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ class _TalkMainPageState extends State<TalkMainPage> {
40
40
41
41
bloc = NeonProvider .of <TalkBloc >(context);
42
42
errorsSubscription = bloc.errors.listen ((error) {
43
+ // ignore: use_build_context_synchronously
43
44
NeonError .showSnackbar (context, error);
44
45
});
45
46
}
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ class _TalkRoomPageState extends State<TalkRoomPage> {
38
38
bloc = NeonProvider .of <TalkRoomBloc >(context);
39
39
40
40
errorsSubscription = bloc.errors.listen ((error) {
41
+ // ignore: use_build_context_synchronously
41
42
NeonError .showSnackbar (context, error);
42
43
});
43
44
}
Original file line number Diff line number Diff line change @@ -123,8 +123,7 @@ TextSpan buildChatMessage({
123
123
}
124
124
for (final reference in references) {
125
125
if (reference == part) {
126
- final gestureRecognizer = TapGestureRecognizer ();
127
- gestureRecognizer.onTap = () => onReferenceClicked (reference);
126
+ final gestureRecognizer = TapGestureRecognizer ()..onTap = () => onReferenceClicked (reference);
128
127
129
128
children.add (
130
129
TextSpan (
You can’t perform that action at this time.
0 commit comments