Skip to content

Commit 2e59a69

Browse files
committed
chore(): Updated Linter Versions
1 parent ba95c32 commit 2e59a69

File tree

17 files changed

+31
-43
lines changed

17 files changed

+31
-43
lines changed

canaries/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717
sdk: flutter
1818

1919
dev_dependencies:
20-
amplify_lints: ^2.0.3
20+
amplify_lints: ^3.1.0
2121
flutter_test:
2222
sdk: flutter
2323
integration_test:

packages/aft/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ dependency_overrides:
6464
path: ../smithy/smithy_codegen
6565

6666
dev_dependencies:
67-
amplify_lints: ">=2.0.2 <2.1.0"
67+
amplify_lints: ^3.1.0
6868
build_runner: ^2.4.9
6969
built_value_generator: 8.9.3
7070
checks: ^0.3.0

packages/amplify/amplify_flutter/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies:
2828
meta: ^1.16.0
2929

3030
dev_dependencies:
31-
amplify_lints: ">=3.1.0 <3.2.0"
31+
amplify_lints: ^3.1.0
3232
amplify_test:
3333
path: ../../test/amplify_test
3434
build_runner: ^2.4.9

packages/amplify_core/doc/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies:
2121
sdk: flutter
2222

2323
dev_dependencies:
24-
amplify_lints: ^2.0.0
24+
amplify_lints: ^3.1.0
2525
build_runner: ^2.4.9
2626
code_excerpter:
2727
git:

packages/amplify_lints/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ environment:
99
sdk: ^3.7.0
1010

1111
dependencies:
12-
flutter_lints: ^3.0.0
13-
lints: ^3.0.0
12+
flutter_lints: ^5.0.0
13+
lints: ^5.1.1

packages/amplify_native_legacy_wrapper/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
sdk: flutter
1313

1414
dev_dependencies:
15-
amplify_lints: ">=2.0.2 <2.1.0"
15+
amplify_lints: ">=3.1.0 <3.2.0"
1616
flutter_test:
1717
sdk: flutter
1818
pigeon: ^22.6.2

packages/common/amplify_db_common/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies:
1818
# powersync: 1.4.2
1919

2020
dev_dependencies:
21-
amplify_lints: ^2.0.0
21+
amplify_lints: ^3.1.0
2222
drift_dev: ^2.25.1
2323
build_runner: ^2.4.9
2424
flutter_test:

packages/notifications/push/amplify_push_notifications/example/lib/main.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ class MainApp extends StatelessWidget {
1010
@override
1111
Widget build(BuildContext context) {
1212
return const MaterialApp(
13-
home: Scaffold(
14-
body: Center(
15-
child: Text('Hello World!'),
16-
),
17-
),
13+
home: Scaffold(body: Center(child: Text('Hello World!'))),
1814
);
1915
}
2016
}

packages/notifications/push/amplify_push_notifications/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dependencies:
1414
sdk: flutter
1515

1616
dev_dependencies:
17-
amplify_lints: ^3.0.0
17+
amplify_lints: ^3.1.0
1818
flutter_test:
1919
sdk: flutter
2020

packages/notifications/push/amplify_push_notifications_pinpoint/example/lib/main.dart

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ void main() async {
3737
});
3838

3939
// Required to call this after Amplify.configure.
40-
Amplify.Notifications.Push.onNotificationReceivedInForeground
41-
.listen((event) {
40+
Amplify.Notifications.Push.onNotificationReceivedInForeground.listen((
41+
event,
42+
) {
4243
print('🚀 onNotificationReceivedInForeground $event');
4344
});
4445

@@ -84,17 +85,14 @@ class _MyAppState extends State<MyApp> {
8485
}
8586

8687
Widget headerText(String title) => Padding(
87-
padding: const EdgeInsets.only(top: 16),
88-
child: Center(
89-
child: Text(
90-
title,
91-
style: const TextStyle(
92-
fontSize: 18,
93-
fontWeight: FontWeight.bold,
94-
),
95-
),
96-
),
97-
);
88+
padding: const EdgeInsets.only(top: 16),
89+
child: Center(
90+
child: Text(
91+
title,
92+
style: const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
93+
),
94+
),
95+
);
9896

9997
@override
10098
Widget build(BuildContext context) {
@@ -130,12 +128,8 @@ class _MyAppState extends State<MyApp> {
130128
child: const Text('requestPermissions'),
131129
),
132130
if (requestPermissionsResult != null)
133-
Text(
134-
'Requesting permission result: $requestPermissionsResult',
135-
),
136-
const Divider(
137-
height: 20,
138-
),
131+
Text('Requesting permission result: $requestPermissionsResult'),
132+
const Divider(height: 20),
139133
headerText('Analytics APIs'),
140134
ElevatedButton(
141135
onPressed: () async {
@@ -146,9 +140,7 @@ class _MyAppState extends State<MyApp> {
146140
},
147141
child: const Text('identifyUser'),
148142
),
149-
const Divider(
150-
height: 20,
151-
),
143+
const Divider(height: 20),
152144
headerText('Notification Handling APIs'),
153145
ElevatedButton(
154146
onPressed: getLaunchNotification,

0 commit comments

Comments
 (0)