Skip to content

Commit b5fcb4f

Browse files
chore: upgrade to flutter and very_good_analysis 3.0.0 (#32)
* ci: upgrade flutter version to 3.0.0 * deps(cli): upgrade to flutter 3.0.0 and very_good_analysis 3.0.0 * deps(form_flow): upgrade to flutter 3.0.0 and very_good_analysis 3.0.0 * deps(launch_analytics): upgrade to flutter 3.0.0 and very_good_analysis 3.0.0 * deps(form_flow): upgrade missing packages * deps(preference_navigation): upgrade to flutter 3.0.0 and very_good_analysis 3.0.0 * deps(profile_accounts): upgrade to flutter 3.0.0 and very_good_analysis 3.0.0 * deps(form_flow): upgrade flow_builder to 0.0.8
1 parent b46a895 commit b5fcb4f

69 files changed

Lines changed: 124 additions & 128 deletions

File tree

Some content is hidden

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

.github/workflows/examples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/checkout@v3
1010
- uses: subosito/flutter-action@v2
1111
with:
12-
flutter-version: '2.10.5'
12+
flutter-version: '3.0.0'
1313
channel: 'stable'
1414

1515
- name: Install Tools

cli/analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:very_good_analysis/analysis_options.2.3.0.yaml
1+
include: package:very_good_analysis/analysis_options.3.0.0.yaml
22

33
linter:
44
rules:

cli/lib/commands/rm/command.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Future<void> run(List<String> args) async {
2020
case FileSystemEntityType.notFound:
2121
print('The element <$elementPath> does not exist');
2222
break;
23-
default:
23+
case FileSystemEntityType.link:
2424
throw UnsupportedError('Unsupported element type');
2525
}
2626
} catch (e) {

cli/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ description: A set of utility commands.
33
version: 0.1.0+1
44

55
environment:
6-
sdk: ">=2.16.2 <3.0.0"
6+
sdk: ">=2.17.0 <3.0.0"
77

88
dependencies:
99
path: ^1.8.0
1010

1111
dev_dependencies:
1212
test: ^1.17.12
13-
very_good_analysis: ^2.4.0
13+
very_good_analysis: ^3.0.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:very_good_analysis/analysis_options.2.4.0.yaml
1+
include: package:very_good_analysis/analysis_options.3.0.0.yaml
22
linter:
33
rules:
44
public_member_api_docs: false

examples/form_flow/lib/app/view/app.dart

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'package:form_flow/app/app.dart';
1313
import 'package:form_flow/l10n/l10n.dart';
1414

1515
class App extends StatelessWidget {
16-
const App({Key? key}) : super(key: key);
16+
const App({super.key});
1717

1818
@override
1919
Widget build(BuildContext context) {
@@ -25,15 +25,19 @@ class App extends StatelessWidget {
2525
}
2626

2727
class AppView extends StatelessWidget {
28-
const AppView({Key? key}) : super(key: key);
28+
const AppView({super.key});
2929

3030
@override
3131
Widget build(BuildContext context) {
3232
return MaterialApp(
3333
debugShowCheckedModeBanner: false,
3434
theme: ThemeData(
35-
appBarTheme: const AppBarTheme(color: Color(0xFF13B9FF)),
36-
colorScheme: const ColorScheme.light(secondary: Color(0xFF13B9FF)),
35+
appBarTheme: const AppBarTheme(
36+
color: Color(0xFF13B9FF),
37+
),
38+
colorScheme: const ColorScheme.light(
39+
secondary: Color(0xFF13B9FF),
40+
),
3741
),
3842
localizationsDelegates: const [
3943
AppLocalizations.delegate,

examples/form_flow/lib/profile/view/profile_page.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import 'package:profile/profile.dart';
55

66
class ProfilePage extends StatelessWidget {
77
const ProfilePage({
8-
Key? key,
8+
super.key,
99
required this.user,
10-
}) : super(key: key);
10+
});
1111

1212
static Page page(User user) {
1313
return MaterialPage<void>(
@@ -36,7 +36,10 @@ class ProfilePage extends StatelessWidget {
3636
mainAxisSize: MainAxisSize.min,
3737
mainAxisAlignment: MainAxisAlignment.center,
3838
children: [
39-
Text(user.email),
39+
Text(
40+
user.email,
41+
style: const TextStyle(fontSize: 10),
42+
),
4043
Text(user.biography),
4144
],
4245
),

examples/form_flow/lib/signup/biography/view/biography_page.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:form_flow/signup/signup.dart';
55
import 'package:formz_inputs/formz_inputs.dart';
66

77
class BiographyPage extends StatelessWidget {
8-
const BiographyPage({Key? key}) : super(key: key);
8+
const BiographyPage({super.key});
99

1010
static Page page() => const MaterialPage<void>(child: BiographyPage());
1111

@@ -19,7 +19,7 @@ class BiographyPage extends StatelessWidget {
1919
}
2020

2121
class BiographyView extends StatelessWidget {
22-
const BiographyView({Key? key}) : super(key: key);
22+
const BiographyView({super.key});
2323

2424
@override
2525
Widget build(BuildContext context) {
@@ -36,7 +36,7 @@ class BiographyView extends StatelessWidget {
3636
}
3737

3838
class _BiographyInput extends StatelessWidget {
39-
const _BiographyInput({Key? key}) : super(key: key);
39+
const _BiographyInput();
4040

4141
@override
4242
Widget build(BuildContext context) {
@@ -70,7 +70,7 @@ class _BiographyInput extends StatelessWidget {
7070
}
7171

7272
class _SubmitButton extends StatelessWidget {
73-
const _SubmitButton({Key? key}) : super(key: key);
73+
const _SubmitButton();
7474

7575
@override
7676
Widget build(BuildContext context) {

examples/form_flow/lib/signup/credentials/view/credentials_form.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:form_flow/signup/signup.dart';
55
import 'package:formz_inputs/formz_inputs.dart';
66

77
class CredentialsForm extends StatelessWidget {
8-
const CredentialsForm({Key? key}) : super(key: key);
8+
const CredentialsForm({super.key});
99

1010
@override
1111
Widget build(BuildContext context) {
@@ -20,7 +20,7 @@ class CredentialsForm extends StatelessWidget {
2020
}
2121

2222
class _EmailInput extends StatelessWidget {
23-
const _EmailInput({Key? key}) : super(key: key);
23+
const _EmailInput();
2424

2525
@override
2626
Widget build(BuildContext context) {
@@ -45,7 +45,7 @@ class _EmailInput extends StatelessWidget {
4545
}
4646

4747
class _NameInput extends StatelessWidget {
48-
const _NameInput({Key? key}) : super(key: key);
48+
const _NameInput();
4949

5050
@override
5151
Widget build(BuildContext context) {

examples/form_flow/lib/signup/credentials/view/credentials_page.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:form_flow/signup/signup.dart';
55
import 'package:formz_inputs/formz_inputs.dart';
66

77
class CredentialsPage extends StatelessWidget {
8-
const CredentialsPage({Key? key}) : super(key: key);
8+
const CredentialsPage({super.key});
99

1010
static Page page() => const MaterialPage<void>(child: CredentialsPage());
1111

@@ -19,7 +19,7 @@ class CredentialsPage extends StatelessWidget {
1919
}
2020

2121
class CredentialsView extends StatelessWidget {
22-
const CredentialsView({Key? key}) : super(key: key);
22+
const CredentialsView({super.key});
2323

2424
@override
2525
Widget build(BuildContext context) {
@@ -36,7 +36,7 @@ class CredentialsView extends StatelessWidget {
3636
}
3737

3838
class _SubmitButton extends StatelessWidget {
39-
const _SubmitButton({Key? key}) : super(key: key);
39+
const _SubmitButton();
4040

4141
@override
4242
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)