Skip to content

Commit ced18b1

Browse files
committed
Apply formatting and linting fixes
1 parent c93ef0d commit ced18b1

File tree

84 files changed

+2147
-2066
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+2147
-2066
lines changed

analysis_options.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:very_good_analysis/analysis_options.6.0.0.yaml
1+
include: package:very_good_analysis/analysis_options.7.0.0.yaml
22

33
analyzer:
44
exclude:
@@ -11,3 +11,7 @@ analyzer:
1111
linter:
1212
rules:
1313
public_member_api_docs: false
14+
# Remove these gradually
15+
avoid_catches_without_on_clauses: false
16+
document_ignores: false
17+
lines_longer_than_80_chars: false

lib/bootstrap.dart

Lines changed: 62 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -66,93 +66,96 @@ Future<void> bootstrap(FutureOr<Widget> Function() builder) async {
6666
// Register all the BLoCs here
6767
providers: [
6868
BlocProvider<GoogleSignInCubit>(
69-
create: (_) => GoogleSignInCubit(
70-
authRepository: getIt(),
71-
),
69+
create: (_) => GoogleSignInCubit(authRepository: getIt()),
7270
),
7371
BlocProvider(
74-
create: (_) => FetchOrganisersCubit(
75-
apiRepository: getIt(),
76-
dBRepository: getIt(),
77-
),
72+
create:
73+
(_) => FetchOrganisersCubit(
74+
apiRepository: getIt(),
75+
dBRepository: getIt(),
76+
),
7877
),
7978
BlocProvider<SocialAuthSignInCubit>(
80-
create: (_) => SocialAuthSignInCubit(
81-
authRepository: getIt(),
82-
hiveRepository: getIt(),
83-
),
79+
create:
80+
(_) => SocialAuthSignInCubit(
81+
authRepository: getIt(),
82+
hiveRepository: getIt(),
83+
),
8484
),
8585
BlocProvider<LogOutCubit>(
86-
create: (_) => LogOutCubit(
87-
authRepository: getIt(),
88-
hiveRepository: getIt(),
89-
dbRepository: getIt(),
90-
),
86+
create:
87+
(_) => LogOutCubit(
88+
authRepository: getIt(),
89+
hiveRepository: getIt(),
90+
dbRepository: getIt(),
91+
),
9192
),
9293
BlocProvider<FetchFeedCubit>(
93-
create: (_) => FetchFeedCubit(
94-
apiRepository: getIt(),
95-
dBRepository: getIt(),
96-
),
94+
create:
95+
(_) => FetchFeedCubit(
96+
apiRepository: getIt(),
97+
dBRepository: getIt(),
98+
),
9799
),
98100
BlocProvider<FetchSponsorsCubit>(
99-
create: (context) => FetchSponsorsCubit(
100-
apiRepository: getIt(),
101-
dBRepository: getIt(),
102-
),
101+
create:
102+
(context) => FetchSponsorsCubit(
103+
apiRepository: getIt(),
104+
dBRepository: getIt(),
105+
),
103106
),
104107
BlocProvider<FetchSessionsCubit>(
105-
create: (context) => FetchSessionsCubit(
106-
apiRepository: getIt(),
107-
dBRepository: getIt(),
108-
),
108+
create:
109+
(context) => FetchSessionsCubit(
110+
apiRepository: getIt(),
111+
dBRepository: getIt(),
112+
),
109113
),
110114
BlocProvider<FetchGroupedSessionsCubit>(
111-
create: (context) => FetchGroupedSessionsCubit(
112-
apiRepository: getIt(),
113-
dBRepository: getIt(),
114-
),
115+
create:
116+
(context) => FetchGroupedSessionsCubit(
117+
apiRepository: getIt(),
118+
dBRepository: getIt(),
119+
),
115120
),
116121
BlocProvider<FetchSpeakersCubit>(
117-
create: (context) => FetchSpeakersCubit(
118-
apiRepository: getIt(),
119-
dBRepository: getIt(),
120-
),
122+
create:
123+
(context) => FetchSpeakersCubit(
124+
apiRepository: getIt(),
125+
dBRepository: getIt(),
126+
),
121127
),
122128
BlocProvider<FetchIndividualOrganisersCubit>(
123-
create: (context) => FetchIndividualOrganisersCubit(
124-
apiRepository: getIt(),
125-
dBRepository: getIt(),
126-
),
129+
create:
130+
(context) => FetchIndividualOrganisersCubit(
131+
apiRepository: getIt(),
132+
dBRepository: getIt(),
133+
),
127134
),
128135
BlocProvider<BookmarkSessionCubit>(
129-
create: (context) => BookmarkSessionCubit(
130-
apiRepository: getIt(),
131-
dBRepository: getIt(),
132-
notificationService: getIt(),
133-
hiveRepository: getIt(),
134-
),
136+
create:
137+
(context) => BookmarkSessionCubit(
138+
apiRepository: getIt(),
139+
dBRepository: getIt(),
140+
notificationService: getIt(),
141+
hiveRepository: getIt(),
142+
),
135143
),
136144
BlocProvider<ShareFeedPostCubit>(
137-
create: (context) => ShareFeedPostCubit(
138-
shareRepository: getIt(),
139-
),
145+
create: (context) => ShareFeedPostCubit(shareRepository: getIt()),
140146
),
141147
BlocProvider<SendFeedbackCubit>(
142-
create: (context) => SendFeedbackCubit(
143-
apiRepository: getIt(),
144-
),
148+
create: (context) => SendFeedbackCubit(apiRepository: getIt()),
145149
),
146150
BlocProvider<GhostSignInCubit>(
147-
create: (context) => GhostSignInCubit(
148-
authRepository: getIt(),
149-
hiveRepository: getIt(),
150-
),
151+
create:
152+
(context) => GhostSignInCubit(
153+
authRepository: getIt(),
154+
hiveRepository: getIt(),
155+
),
151156
),
152157
BlocProvider<SearchCubit>(
153-
create: (context) => SearchCubit(
154-
dbRepository: getIt(),
155-
),
158+
create: (context) => SearchCubit(dbRepository: getIt()),
156159
),
157160
],
158161
child: await builder(),

lib/common/data/enums/organiser_type.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ enum OrganiserType {
44
@JsonValue('individual')
55
individual,
66
@JsonValue('company')
7-
company;
7+
company,
88
}
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
enum SocialPlatform {
2-
whatsapp,
3-
twitter,
4-
telegram,
5-
}
1+
enum SocialPlatform { whatsapp, twitter, telegram }

lib/common/data/enums/sponsor_type.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ enum SponsorType {
1212
@JsonValue('bronze')
1313
bronze,
1414
@JsonValue('gold')
15-
gold;
15+
gold,
1616
}

lib/common/data/models/failure.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
class Failure implements Exception {
2-
Failure({
3-
required this.message,
4-
this.statusCode,
5-
});
2+
Failure({required this.message, this.statusCode});
63

74
final String message;
85
final int? statusCode;

lib/common/data/models/feed.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ class Feed with _$Feed {
1919

2020
@freezed
2121
class FeedResponse with _$FeedResponse {
22-
const factory FeedResponse({
23-
required List<Feed> data,
24-
}) = _FeedResponse;
22+
const factory FeedResponse({required List<Feed> data}) = _FeedResponse;
2523

2624
factory FeedResponse.fromJson(Map<String, Object?> json) =>
2725
_$FeedResponseFromJson(json);

lib/common/data/models/local/local_session.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ class EmbeddedSpeaker {
7373

7474
@embedded
7575
class LocalRoom {
76-
LocalRoom({
77-
this.title,
78-
this.id,
79-
});
76+
LocalRoom({this.title, this.id});
8077

8178
int? id;
8279
String? title;

lib/common/data/models/meta.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ class Paginator with _$Paginator {
2121

2222
@freezed
2323
class Meta with _$Meta {
24-
factory Meta({
25-
required Paginator paginator,
26-
}) = _Meta;
24+
factory Meta({required Paginator paginator}) = _Meta;
2725

2826
factory Meta.fromJson(Map<String, dynamic> json) => _$MetaFromJson(json);
2927
}

lib/common/data/models/organisers.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ class Organiser with _$Organiser {
2020

2121
@freezed
2222
class OrganiserResponse with _$OrganiserResponse {
23-
const factory OrganiserResponse({
24-
required List<Organiser> data,
25-
}) = _OrganiserResponse;
23+
const factory OrganiserResponse({required List<Organiser> data}) =
24+
_OrganiserResponse;
2625

2726
factory OrganiserResponse.fromJson(Map<String, Object?> json) =>
2827
_$OrganiserResponseFromJson(json);

0 commit comments

Comments
 (0)