mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Sources under `packages/flutter_tools/` aren't accessible to the average Flutter user by navigating through sources from their projects, so it doesn't need to be as explicitly verbose with types for readability purposes. The `always_specify_types` lint results in extremely verbose code within the tool which adds little value. This change disables `always_specify_types` in favor of a new set of lints that aim to reduce verbosity by removing obvious types while also maintaining readability in cases where variable types otherwise wouldn't be obvious: - `omit_obvious_local_variable_types` - `omit_obvious_property_types` - `specify_nonobvious_local_variable_types` - `specify_nonobvious_property_types`
Flutter reports data to two separate systems:
- Anonymous usage statistics are reported to Google Analytics (for statistics
such as the number of times the
fluttertool was run within a given time period). The code that manages this is in [usage.dart]. - Crash reports for the
fluttertool. These are not reports of when Flutter applications crash, but rather when the command-linefluttertool itself crashes. The code that manages this is in [crash_reporting.dart].
Opting out
Users can opt out of all reporting in a single place by running
flutter config --no-analytics.