Skip to content

Commit

Permalink
Upgrade flutter version to 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Aug 17, 2023
1 parent 49fb53f commit 672f987
Show file tree
Hide file tree
Showing 23 changed files with 164 additions and 111 deletions.
8 changes: 3 additions & 5 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ analyzer:
- test/.test_coverage.dart
- lib/localization.dart
- lib/l10n/*
- '**/*.freezed.dart'
- '**/*.g.dart'
- "**/*.freezed.dart"
- "**/*.g.dart"

language:
strict-casts: true
Expand Down Expand Up @@ -76,6 +76,7 @@ linter:
- cancel_subscriptions
- cascade_invocations
- cast_nullable_to_non_nullable
- collection_methods_unrelated_type
- comment_references
- conditional_uri_does_not_exist
- constant_identifier_names
Expand All @@ -92,14 +93,12 @@ linter:
- flutter_style_todos
- hash_and_equals
- implementation_imports
- iterable_contains_unrelated_type
- join_return_with_assignment
- leading_newlines_in_multiline_strings
- library_names
- library_prefixes
- library_private_types_in_public_api
# - lines_longer_than_80_chars
- list_remove_unrelated_type
- literal_only_boolean_expressions
- missing_whitespace_between_adjacent_strings
- no_adjacent_strings_in_list
Expand Down Expand Up @@ -207,6 +206,5 @@ linter:
- use_to_and_as_if_applicable
- valid_regexps
- void_checks

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
7 changes: 3 additions & 4 deletions lib/application/websites.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ class WebsitesRepository {

var genesisAddress = '';
// Get genesis address
final response = await sl
.get<ArchethicDAppClient>()
.keychainDeriveAddress({
final response =
await sl.get<ArchethicDAppClient>().keychainDeriveAddress({
'serviceName': 'aeweb-$name',
'index': 0,
'pathSuffix': ''
'pathSuffix': '',
});
response.when(
failure: (failure) {},
Expand Down
2 changes: 1 addition & 1 deletion lib/domain/usecases/website/add_website.dart
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class AddWebsiteUseCases
<Transaction>[
transactionTransfer,
...transactionsList,
transactionReference
transactionReference,
],
);

Expand Down
2 changes: 1 addition & 1 deletion lib/domain/usecases/website/update_website_sync.dart
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class UpdateWebsiteSyncUseCases with FileMixin, TransactionAEWebMixin {
<Transaction>[
transactionTransfer,
...transactionsList,
transactionReference
transactionReference,
],
);

Expand Down
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class MyApp extends ConsumerWidget {
AppLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate
GlobalWidgetsLocalizations.delegate,
],
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/navigation_drawer_section.dart
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ class _NavigationDrawerSectionState
const Padding(
padding: EdgeInsets.all(10),
child: ConnectionToWalletStatus(),
)
),
],
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class AddWebsiteSteps extends ConsumerWidget {
icon,
color: Colors.green,
size: 14,
)
),
],
),
);
Expand Down Expand Up @@ -286,7 +286,7 @@ class AddWebsiteSteps extends ConsumerWidget {
icon,
color: Colors.red,
size: 14,
)
),
],
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/views/display_website/explorer_files.dart
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class ExplorerFilesScreenState extends ConsumerState<ExplorerFilesScreen> {
node,
),
),
)
),
],
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/views/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class MainScreenState extends ConsumerState<MainScreen> {
if (session.isConnected)
ref.watch(
MainScreenThirdPartProviders.mainScreenThirdPartProvider,
)
),
],
),
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class UnpublishWebsiteBottomBar extends ConsumerWidget {
);
}
},
)
),
],
),
),
Expand All @@ -156,7 +156,7 @@ class UnpublishWebsiteBottomBar extends ConsumerWidget {
},
);
},
)
),
],
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ class UnpublishWebsiteSteps extends ConsumerWidget {
icon,
color: Colors.green,
size: 14,
)
),
],
),
);
Expand Down Expand Up @@ -258,7 +258,7 @@ class UnpublishWebsiteSteps extends ConsumerWidget {
icon,
color: Colors.red,
size: 14,
)
),
],
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class UpdateCertificateSteps extends ConsumerWidget {
icon,
color: Colors.green,
size: 14,
)
),
],
),
);
Expand Down Expand Up @@ -261,7 +261,7 @@ class UpdateCertificateSteps extends ConsumerWidget {
icon,
color: Colors.red,
size: 14,
)
),
],
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class UpdateWebsiteSyncBottomBar extends ConsumerWidget {
);
await updateWebsiteSyncNotifier.update(context, ref);
},
)
),
],
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class UpdateWebsiteSyncSteps extends ConsumerWidget {
icon,
color: Colors.green,
size: 14,
)
),
],
),
);
Expand Down Expand Up @@ -288,7 +288,7 @@ class UpdateWebsiteSyncSteps extends ConsumerWidget {
icon,
color: Colors.red,
size: 14,
)
),
],
),
);
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/views/util/choose_path_sync_popup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class PathSyncPopup with FileMixin {
allowedExtensions: [
'zip',
'7z',
'rar'
'rar',
],
);
if (result != null) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/views/util/components/app_text_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class _AppTextFieldState extends ConsumerState<AppTextField> {
: CrossFadeState.showSecond,
)
else
widget.suffixButton ?? const SizedBox()
widget.suffixButton ?? const SizedBox(),
],
),
],
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/views/util/components/upload_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class UploadFile extends ConsumerWidget {
extensionsLabel!,
style: textTheme.labelSmall!
.copyWith(fontWeight: FontWeight.w300),
)
),
],
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/views/util/header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Header extends StatelessWidget {
height: 60,
child: ConnectionToWalletStatus(),
),
)
),
],
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/util/external/ignore.dart
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class Ignore {
// Do a depth first tree-search starting at [beneath].
// toVisit is a stack containing all items that are waiting to be processed.
final toVisit = [
[beneath]
[beneath],
];
while (toVisit.isNotEmpty) {
final topOfStack = toVisit.last;
Expand Down
2 changes: 1 addition & 1 deletion macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0920;
LastUpgradeCheck = 1300;
LastUpgradeCheck = 1430;
ORGANIZATIONNAME = "";
TargetAttributes = {
33CC10EC2044A3C60003C045 = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Loading

0 comments on commit 672f987

Please sign in to comment.