text
stringlengths 1
372
|
|---|
<topic_start>
|
diff tab
|
the diff tab allows you to compare two snapshots of
|
size information. the two size information files
|
you are comparing should be generated from two different
|
versions of the same app; for example,
|
the size file generated before and after
|
changes to your code. you can visualize the
|
difference between the two data sets
|
using the treemap and table.
|
<topic_end>
|
<topic_start>
|
loading size files
|
when you open the diff tab,
|
you’ll see instructions to load “old” and “new” size
|
files. again, these files need to be generated from
|
the same application. drag and drop these files into
|
their respective dialogs, and click analyze diff.
|
see generating size files below for information
|
on generating these files.
|
<topic_end>
|
<topic_start>
|
treemap and table
|
in the diff view, the treemap and tree table show
|
only data that differs between the two imported size files.
|
for questions about using the treemap, see using the treemap above.
|
<topic_end>
|
<topic_start>
|
generating size files
|
to use the app size tool, you’ll need to generate a
|
flutter size analysis file. this file contains size
|
information for your entire application (native code,
|
dart code, assets, fonts, etc.), and you can generate it using the
|
--analyze-size flag:
|
this builds your application, prints a size summary
|
to the command line, and prints a line
|
telling you where to find the size analysis file.
|
in this example, import the build/apk-code-size-analysis_01.json
|
file into the app size tool to analyze further.
|
for more information, see app size documentation.
|
<topic_end>
|
<topic_start>
|
other resources
|
to learn how to perform a step-by-step size analysis of
|
the wonderous app using DevTools, check out the
|
app size tool tutorial. various strategies
|
to reduce an app’s size are also discussed.
|
<topic_end>
|
<topic_start>
|
DevTools extensions
|
<topic_end>
|
<topic_start>
|
what are DevTools extensions?
|
DevTools extensions are developer
|
tools provided by third-party packages that are tightly integrated into the
|
DevTools tooling suite. extensions are distributed as part of a pub package,
|
and they are dynamically loaded into DevTools when a user is debugging their app.
|
<topic_end>
|
<topic_start>
|
use a DevTools extension
|
if your app depends on a package that provides a DevTools extension, the
|
extension automatically shows up in a new tab when you open DevTools.
|
<topic_end>
|
<topic_start>
|
configure extension enablement states
|
you need to manually enable the extension before it loads for the first time.
|
make sure the extension is provided by a source you trust before enabling it.
|
extension enablement states are stored in a devtools_options.yaml file in the
|
root of the user’s project (similar to analysis_options.yaml). this file
|
stores per-project (or optionally, per user) settings for DevTools.
|
if this file is checked into source control, the specified options are
|
configured for the project. this means that anyone who pulls a project’s
|
source code and works on the project uses the same settings.
|
if this file is omitted from source control, for example by adding
|
devtools_options.yaml as an entry in the .gitignore file, then the specified
|
options are configured separately for each user. since each user or
|
contributor to the project uses a local copy of the devtools_options.yaml
|
file in this case, the specified options might differ between project contributors.
|
<topic_end>
|
<topic_start>
|
build a DevTools extension
|
for an in-depth guide on how to build a DevTools extension, check out
|
dart and flutter DevTools extensions, a free article on medium.
|
<topic_end>
|
<topic_start>
|
DevTools release notes
|
this page summarizes the changes in official stable releases of DevTools.
|
to view a complete list of changes, check out the
|
DevTools git log.
|
the dart and flutter SDKs include DevTools.
|
to check your current version of DevTools,
|
run the following on your command line:
|
<topic_end>
|
<topic_start>
|
release notes
|
<topic_end>
|
<topic_start>
|
flutter SDK overview
|
the flutter SDK has the packages and command-line tools that you need to develop
|
flutter apps across platforms. to get the flutter SDK, see install.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.