Skip to content

Commit

Permalink
📝 Chore(Flutter): Modified analysis options
Browse files Browse the repository at this point in the history
- Removed deprecated apis
- Adjust dart line length to 140
  • Loading branch information
Dynesshely committed Feb 25, 2025
1 parent 50e19a6 commit 9cd596d
Show file tree
Hide file tree
Showing 8 changed files with 243 additions and 231 deletions.
29 changes: 13 additions & 16 deletions KitX Mobile.code-workspace
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
{
"folders": [
{
"path": "."
},
{
"path": "kitx_mobile"
}
],
"settings": {
"git.autorefresh": true,
"dart.lineLength": 200,
"[dart]": {
"editor.rulers": [
200
],
}
"folders": [
{
"path": "."
},
{
"path": "kitx_mobile"
}
],
"settings": {
"git.autorefresh": true,
"[dart]": {
"editor.rulers": [140, 200]
}
}
}
4 changes: 2 additions & 2 deletions kitx_mobile/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ linter:
- directives_ordering
- curly_braces_in_flow_control_structures
- slash_for_doc_comments
- package_api_docs
- public_member_api_docs
- comment_references
- prefer_adjacent_string_concatenation
Expand All @@ -37,11 +36,12 @@ linter:
- prefer_is_not_empty
- prefer_for_elements_to_map_fromIterable
- avoid_function_literals_in_foreach_calls
# - prefer_equal_for_default_values
- avoid_init_to_null
- unnecessary_getters_setters
- unnecessary_this
- prefer_initializing_formals
- unnecessary_new
- unnecessary_await_in_return
- avoid_void_async
formatter:
page_width: 140
308 changes: 154 additions & 154 deletions kitx_mobile/lib/data/third_party_licenses_provider.dart
Original file line number Diff line number Diff line change
@@ -1,162 +1,162 @@
import 'package:kitx_mobile/models/third_party_data.dart';
import 'package:kitx_mobile/models/third_party_data.dart';

/// Third party licenses provider
var thirdPartyDataList = [
// Warn: Below contents are auto generated, don't touch.
// Begin ThirdPartyDataList
ThirdPartyData(
'badges',
'^3.1.2',
'yako-dev',
'https://pub.dev/packages/badges',
'https://github.com/yako-dev/flutter_badges',
),
ThirdPartyData(
'battery_plus',
'^5.0.3',
'fluttercommunity',
'https://pub.dev/packages/battery_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/battery_plus/battery_plus',
),
ThirdPartyData(
'community_material_icon',
'^5.9.55',
'',
'https://pub.dev/packages/community_material_icon',
'',
),
ThirdPartyData(
'concentric_transition',
'^1.0.3',
'',
'https://pub.dev/packages/concentric_transition',
'',
),
ThirdPartyData(
'connectivity_plus',
'^5.0.2',
'fluttercommunity',
'https://pub.dev/packages/connectivity_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/connectivity_plus/connectivity_plus',
),
ThirdPartyData(
'crypto',
'^3.0.3',
'dart-lang',
'https://pub.dev/packages/crypto',
'https://github.com/dart-lang/crypto',
),
ThirdPartyData(
'device_info_plus',
'^9.1.1',
'fluttercommunity',
'https://pub.dev/packages/device_info_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/device_info_plus/device_info_plus',
),
ThirdPartyData(
'f_logs',
'^2.0.1',
'',
'https://pub.dev/packages/f_logs',
'',
),
ThirdPartyData(
'flutter',
'^3.3.0',
'',
'https://pub.dev/packages/flutter',
'',
),
ThirdPartyData(
'flutter_blue_plus',
'^1.31.15',
'',
'https://pub.dev/packages/flutter_blue_plus',
'',
),
ThirdPartyData(
'flutter_chat_ui',
'^1.6.12',
'flyerhq',
'https://pub.dev/packages/flutter_chat_ui',
'https://github.com/flyerhq/flutter_chat_ui',
),
ThirdPartyData(
'get',
'^4.6.6',
'',
'https://pub.dev/packages/get',
'',
),
ThirdPartyData(
'kitx_shared_dart',
'^3.24.10+6829-patch-1',
'Crequency',
'https://pub.dev/packages/kitx_shared_dart',
'https://github.com/Crequency/KitX-Standard/KitX.Shared.Dart/',
),
ThirdPartyData(
'network_info_plus',
'^4.1.0',
'fluttercommunity',
'https://pub.dev/packages/network_info_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/network_info_plus/network_info_plus',
),
ThirdPartyData(
'package_info_plus',
'^5.0.1',
'fluttercommunity',
'https://pub.dev/packages/package_info_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus/package_info_plus',
),
ThirdPartyData(
'permission_handler',
'^11.3.0',
'baseflow',
'https://pub.dev/packages/permission_handler',
'https://github.com/baseflow/flutter-permission-handler',
),
ThirdPartyData(
'sensors_plus',
'^4.0.2',
'fluttercommunity',
'https://pub.dev/packages/sensors_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/sensors_plus/sensors_plus',
),
ThirdPartyData(
'shared_preferences',
'^2.2.2',
'flutter',
'https://pub.dev/packages/shared_preferences',
'https://github.com/flutter/packages/tree/main/packages/shared_preferences/shared_preferences',
),
ThirdPartyData(
'sliding_up_panel',
'^2.0.0+1',
'',
'https://pub.dev/packages/sliding_up_panel',
'',
),
ThirdPartyData(
'url_launcher',
'^6.2.5',
'flutter',
'https://pub.dev/packages/url_launcher',
'https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher',
),
ThirdPartyData(
'vibration',
'^1.8.4',
'',
'https://pub.dev/packages/vibration',
'',
),
ThirdPartyData(
'wakelock_plus',
'^1.1.4',
'fluttercommunity',
'https://pub.dev/packages/wakelock_plus',
'https://github.com/fluttercommunity/wakelock_plus/tree/main/wakelock_plus',
),
'badges',
'^3.1.2',
'yako-dev',
'https://pub.dev/packages/badges',
'https://github.com/yako-dev/flutter_badges',
),
ThirdPartyData(
'battery_plus',
'^5.0.3',
'fluttercommunity',
'https://pub.dev/packages/battery_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/battery_plus/battery_plus',
),
ThirdPartyData(
'community_material_icon',
'^5.9.55',
'',
'https://pub.dev/packages/community_material_icon',
'',
),
ThirdPartyData(
'concentric_transition',
'^1.0.3',
'',
'https://pub.dev/packages/concentric_transition',
'',
),
ThirdPartyData(
'connectivity_plus',
'^5.0.2',
'fluttercommunity',
'https://pub.dev/packages/connectivity_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/connectivity_plus/connectivity_plus',
),
ThirdPartyData(
'crypto',
'^3.0.3',
'dart-lang',
'https://pub.dev/packages/crypto',
'https://github.com/dart-lang/crypto',
),
ThirdPartyData(
'device_info_plus',
'^9.1.1',
'fluttercommunity',
'https://pub.dev/packages/device_info_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/device_info_plus/device_info_plus',
),
ThirdPartyData(
'f_logs',
'^2.0.1',
'',
'https://pub.dev/packages/f_logs',
'',
),
ThirdPartyData(
'flutter',
'^3.3.0',
'',
'https://pub.dev/packages/flutter',
'',
),
ThirdPartyData(
'flutter_blue_plus',
'^1.31.15',
'',
'https://pub.dev/packages/flutter_blue_plus',
'',
),
ThirdPartyData(
'flutter_chat_ui',
'^1.6.12',
'flyerhq',
'https://pub.dev/packages/flutter_chat_ui',
'https://github.com/flyerhq/flutter_chat_ui',
),
ThirdPartyData(
'get',
'^4.6.6',
'',
'https://pub.dev/packages/get',
'',
),
ThirdPartyData(
'kitx_shared_dart',
'^3.24.10+6829-patch-1',
'Crequency',
'https://pub.dev/packages/kitx_shared_dart',
'https://github.com/Crequency/KitX-Standard/KitX.Shared.Dart/',
),
ThirdPartyData(
'network_info_plus',
'^4.1.0',
'fluttercommunity',
'https://pub.dev/packages/network_info_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/network_info_plus/network_info_plus',
),
ThirdPartyData(
'package_info_plus',
'^5.0.1',
'fluttercommunity',
'https://pub.dev/packages/package_info_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/package_info_plus/package_info_plus',
),
ThirdPartyData(
'permission_handler',
'^11.3.0',
'baseflow',
'https://pub.dev/packages/permission_handler',
'https://github.com/baseflow/flutter-permission-handler',
),
ThirdPartyData(
'sensors_plus',
'^4.0.2',
'fluttercommunity',
'https://pub.dev/packages/sensors_plus',
'https://github.com/fluttercommunity/plus_plugins/tree/main/packages/sensors_plus/sensors_plus',
),
ThirdPartyData(
'shared_preferences',
'^2.2.2',
'flutter',
'https://pub.dev/packages/shared_preferences',
'https://github.com/flutter/packages/tree/main/packages/shared_preferences/shared_preferences',
),
ThirdPartyData(
'sliding_up_panel',
'^2.0.0+1',
'',
'https://pub.dev/packages/sliding_up_panel',
'',
),
ThirdPartyData(
'url_launcher',
'^6.2.5',
'flutter',
'https://pub.dev/packages/url_launcher',
'https://github.com/flutter/packages/tree/main/packages/url_launcher/url_launcher',
),
ThirdPartyData(
'vibration',
'^1.8.4',
'',
'https://pub.dev/packages/vibration',
'',
),
ThirdPartyData(
'wakelock_plus',
'^1.1.4',
'fluttercommunity',
'https://pub.dev/packages/wakelock_plus',
'https://github.com/fluttercommunity/wakelock_plus/tree/main/wakelock_plus',
),
// End ThirdPartyDataList
];
4 changes: 3 additions & 1 deletion kitx_mobile/lib/pages/about_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,9 @@ class _AboutPageState extends State<AboutPage> {
splashRadius: 20,
padding: const EdgeInsets.all(0),
iconSize: 24,
icon: repo?.contains('github.com') ?? false ? const Icon(CommunityMaterialIcons.github) : const Icon(CommunityMaterialIcons.link),
icon: repo?.contains('github.com') ?? false
? const Icon(CommunityMaterialIcons.github)
: const Icon(CommunityMaterialIcons.link),
onPressed: () => instances.urlHandler.open(thirdPartyData.ThirdPartyRepo ?? ''),
),
Container(
Expand Down
Loading

0 comments on commit 9cd596d

Please sign in to comment.