Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First time running "flutter analyze" #2

Open
MrGKanev opened this issue Mar 6, 2022 · 1 comment
Open

First time running "flutter analyze" #2

MrGKanev opened this issue Mar 6, 2022 · 1 comment

Comments

@MrGKanev
Copy link
Member

MrGKanev commented Mar 6, 2022

Run flutter analyze
Analyzing Mobile...

info • The import of 'dart:ui' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/material.dart' • lib/main.dart:2:8 • unnecessary_import
info • Use key in widget constructors • lib/main.dart:255:3 • use_key_in_widget_constructors
info • The operand can't be null, so the condition is always true • lib/main.dart:256:41 • unnecessary_null_comparison
info • Use lowercase_with_underscores for package names • pubspec.yaml:1:7 • package_names

4 issues found. (ran in 13.5s)

@MrGKanev
Copy link
Member Author

MrGKanev commented Aug 20, 2022

After the update:
info - Unused import: 'package:bimbala/view/webpage.dart' - lib\main.dart:1:8 - unused_import info - This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: MyApp.place - lib\main.dart:12:7 - must_be_immutable info - The value of the field '_favorite' isn't used - lib\main.dart:15:18 - unused_field info - The import of 'package:flutter/cupertino.dart' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/material.dart' - lib\view\drawer.dart:5:8 - unnecessary_import info - This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: DrawerG.user - lib\view\drawer.dart:8:7 - must_be_immutable info - Avoid leading underscores for local identifiers - lib\view\drawer.dart:19:20 - no_leading_underscores_for_local_identifiers info - Do not use BuildContexts across async gaps - lib\view\drawer.dart:51:9 - use_build_context_synchronously info - Do not use BuildContexts across async gaps - lib\view\drawer.dart:55:9 - use_build_context_synchronously info - Do not use BuildContexts across async gaps - lib\view\drawer.dart:63:9 - use_build_context_synchronously info - Prefer declaring const constructors on@ immutable` classes - lib\view\start_screen.dart:8:3 - prefer_const_constructors_in_immutables
info - This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: WebViewScreen.user - lib\view\webpage.dart:10:7 - must_be_immutable

11 issues found. (ran in 3.6s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant