Issues found when analyzed the project's dart code
- 10 issues found when we analyze the project's dart code using
flutter analyze - Basically
flutter analyze, Analyzes the project's Dart code.
Issues Found
info • 'toggleableActiveColor' is deprecated and shouldn't be used. No longer used by the framework,
please remove any reference to it. For more information, consult the migration guide at
https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide.
This feature was deprecated after v3.4.0-19.0.pre • lib/theme/app_theme.dart:13:5 •
deprecated_member_use
info • 'toggleableActiveColor' is deprecated and shouldn't be used. No longer used by the framework,
please remove any reference to it. For more information, consult the migration guide at
https://flutter.dev/docs/release/breaking-changes/toggleable-active-color#migration-guide.
This feature was deprecated after v3.4.0-19.0.pre • lib/theme/app_theme.dart:26:5 •
deprecated_member_use
info • 'primary' is deprecated and shouldn't be used. Use backgroundColor instead. This feature was
deprecated after v3.1.0 • lib/ui/views/login/login_view.dart:159:31 • deprecated_member_use
info • 'subtitle1' is deprecated and shouldn't be used. Use titleMedium instead. This feature was
deprecated after v3.1.0-0.0.pre • lib/ui/widgets/dumb_widgets/document_type_card.dart:20:49 •
deprecated_member_use
info • 'primary' is deprecated and shouldn't be used. Use backgroundColor instead. This feature was
deprecated after v3.1.0 • lib/ui/widgets/dumb_widgets/password_change_dialog_widget.dart:49:27
• deprecated_member_use
info • 'primary' is deprecated and shouldn't be used. Use backgroundColor instead. This feature was
deprecated after v3.1.0 • lib/ui/widgets/dumb_widgets/torrent_label_dialog.dart:77:11 •
deprecated_member_use
error • The method 'FlatButton' isn't defined for the type '_FloatingBoxBottomSheet' •
lib/ui/widgets/smart_widgets/bottom_sheets/bottom_sheet_setup.dart:88:19 • undefined_method
error • The method 'FlatButton' isn't defined for the type 'ConfirmBottomSheetView' •
lib/ui/widgets/smart_widgets/bottom_sheets/confirm_bottom_sheet/confirm_bottom_sheet_view.dart:
53:15 • undefined_method
info • 'primary' is deprecated and shouldn't be used. Use backgroundColor instead. This feature was
deprecated after v3.1.0 •
lib/ui/widgets/smart_widgets/url_bottom_sheet/url_bottomsheet_view.dart:77:19 •
deprecated_member_use
info • 'primary' is deprecated and shouldn't be used. Use backgroundColor instead. This feature was
deprecated after v3.1.0 •
lib/ui/widgets/smart_widgets/url_bottom_sheet/url_bottomsheet_view.dart:110:25 •
deprecated_member_use
10 issues found. (ran in 2.2s)
-
Remove references to the deprecated member
toggleableActiveColorand use the recommended replacement as per the migration guide. -
Replace references to the deprecated member primary with
backgroundColor. -
Replace references to the deprecated member subtitle1 with
titleMedium. -
Import the
FlatButtonmethod in the relevant files.
Remove references to the deprecated member
toggleableActiveColorand use the recommended replacement as per the migration guide.Replace references to the deprecated member primary with
backgroundColor.Replace references to the deprecated member subtitle1 with
titleMedium.Import the
FlatButtonmethod in the relevant files.
I had resolved those issues and also made a pr to the develop branch, btw thanks for your suggestions
I have already solved this issue in PR #188
I have already solved this issue in PR #188
@virajbhartiya A pr is already made resolving this issue, and if you had gone through the conversations in this issue you could have seen the open pr's which have been referenced to this issue.
About time the issue is closed
What Flutter SDK version did you guys use to build & run the project?
Replace primary with background In flat button I think you used that somehere else and did not provide all the required things