flutter / packages
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 337 files with 26,336 lines of code.
    • 1 very long files (1,761 lines of code)
    • 12 long files (8,341 lines of code)
    • 19 medium size files (5,365 lines of codeclsfd_ftr_w_mp_ins)
    • 28 small files (4,163 lines of code)
    • 277 very small files (6,706 lines of code)
6% | 31% | 20% | 15% | 25%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
dart8% | 39% | 25% | 13% | 13%
cpp0% | 0% | 0% | 55% | 44%
m0% | 0% | 0% | 22% | 77%
yaml0% | 0% | 0% | 19% | 80%
h0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
cc0% | 0% | 0% | 0% | 100%
swift0% | 0% | 0% | 0% | 100%
cmake0% | 0% | 0% | 0% | 100%
kt0% | 0% | 0% | 0% | 100%
java0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
packages/rfw22% | 20% | 16% | 11% | 28%
packages/pigeon0% | 47% | 19% | 10% | 22%
packages/flutter_markdown0% | 46% | 11% | 11% | 31%
packages/animations0% | 41% | 18% | 34% | 5%
packages/palette_generator0% | 72% | 19% | 0% | 7%
packages/web_benchmarks0% | 41% | 53% | 0% | 5%
packages/multicast_dns0% | 0% | 55% | 15% | 29%
packages/flutter_image0% | 0% | 93% | 0% | 6%
packages/metrics_center0% | 0% | 50% | 0% | 49%
packages/fuchsia_ctl0% | 0% | 0% | 50% | 49%
packages/pointer_interceptor0% | 0% | 0% | 50% | 49%
packages/css_colors0% | 0% | 0% | 93% | 6%
packages/cross_file0% | 0% | 0% | 39% | 60%
ROOT0% | 0% | 0% | 100% | 0%
packages/extension_google_sign_in_as_googleapis_auth0% | 0% | 0% | 42% | 57%
packages/xdg_directories0% | 0% | 0% | 88% | 11%
packages/imitation_game0% | 0% | 0% | 0% | 100%
packages/flutter_lints0% | 0% | 0% | 0% | 100%
packages/flutter_template_images0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
text.dart
in packages/rfw/lib/src/dart
1761 27
pigeon_lib.dart
in packages/pigeon/lib
916 42
palette_generator.dart
in packages/palette_generator/lib
896 34
runtime.dart
in packages/rfw/lib/src/flutter
815 49
argument_decoders.dart
in packages/rfw/lib/src/flutter
774 42
objc_generator.dart
in packages/pigeon/lib
764 24
builder.dart
in packages/flutter_markdown/lib/src
665 19
recorder.dart
in packages/web_benchmarks/lib/src
660 47
style_sheet.dart
in packages/flutter_markdown/lib/src
644 2
open_container.dart
in packages/animations/lib/src
603 19
java_generator.dart
in packages/pigeon/lib
563 15
dart_generator.dart
in packages/pigeon/lib
539 16
container_transition.dart
in packages/animations/example/lib
502 17
primitive.dart
in packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib
422 6
core_widgets.dart
in packages/rfw/lib/src/flutter
396 -
binary.dart
in packages/rfw/lib/src/dart
374 35
browser.dart
in packages/web_benchmarks/lib/src
365 10
widget.dart
in packages/flutter_markdown/lib/src
312 15
generator_tools.dart
in packages/pigeon/lib
295 23
packet.dart
in packages/multicast_dns/lib/src
284 6
network.dart
in packages/flutter_image/lib
273 13
shared_axis_transition.dart
in packages/animations/lib/src
268 8
client.dart
in packages/web_benchmarks/lib
267 14
skiaperf.dart
in packages/metrics_center/lib/src
263 9
resource_record.dart
in packages/multicast_dns/lib/src
261 16
material_widgets.dart
in packages/rfw/lib/src/flutter
247 -
main.dart
in packages/palette_generator/example/lib
243 15
shared_axis_transition.dart
in packages/animations/example/lib
231 9
runner.dart
in packages/web_benchmarks/lib/src
230 1
null_safe_pigeon.dart
in packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib
213 14
model.dart
in packages/rfw/lib/src/dart
212 10
all_datatypes.dart
in packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib
209 9
page_transition_switcher.dart
in packages/animations/lib/src
196 11
content.dart
in packages/rfw/lib/src/flutter
183 15
win32_window.cpp
in packages/pigeon/platform_tests/windows_unit_tests/example/windows/runner
175 12
win32_window.cpp
in packages/flutter_markdown/example/windows/runner
175 12
win32_window.cpp
in packages/rfw/example/wasm/windows/runner
175 12
win32_window.cpp
in packages/rfw/example/hello/windows/runner
175 12
win32_window.cpp
in packages/rfw/example/local/windows/runner
175 12
win32_window.cpp
in packages/rfw/example/remote/windows/runner
175 12
fade_through_transition.dart
in packages/animations/example/lib
172 6
main.dart
in packages/pointer_interceptor/example/lib
166 8
fade_through_transition.dart
in packages/animations/lib/src
154 10
non_null_fields.gen.dart
in packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib
154 10
multicast_dns.dart
in packages/multicast_dns/lib
154 4
AsyncHandlersTest.m
in packages/pigeon/platform_tests/ios_unit_tests/ios/RunnerTests
152 -
demo_screen.dart
in packages/flutter_markdown/example/lib/screens
152 9
css_colors.dart
in packages/css_colors/lib
151 -
main.dart
in packages/animations/example/lib
148 4
ast.dart
in packages/pigeon/lib
140 8
Files With Most Units (Top 20)
File# lines# units
runtime.dart
in packages/rfw/lib/src/flutter
815 49
recorder.dart
in packages/web_benchmarks/lib/src
660 47
pigeon_lib.dart
in packages/pigeon/lib
916 42
argument_decoders.dart
in packages/rfw/lib/src/flutter
774 42
binary.dart
in packages/rfw/lib/src/dart
374 35
palette_generator.dart
in packages/palette_generator/lib
896 34
text.dart
in packages/rfw/lib/src/dart
1761 27
objc_generator.dart
in packages/pigeon/lib
764 24
generator_tools.dart
in packages/pigeon/lib
295 23
open_container.dart
in packages/animations/lib/src
603 19
builder.dart
in packages/flutter_markdown/lib/src
665 19
container_transition.dart
in packages/animations/example/lib
502 17
dart_generator.dart
in packages/pigeon/lib
539 16
resource_record.dart
in packages/multicast_dns/lib/src
261 16
main.dart
in packages/palette_generator/example/lib
243 15
java_generator.dart
in packages/pigeon/lib
563 15
widget.dart
in packages/flutter_markdown/lib/src
312 15
content.dart
in packages/rfw/lib/src/flutter
183 15
null_safe_pigeon.dart
in packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib
213 14
client.dart
in packages/web_benchmarks/lib
267 14
Files With Long Lines (Top 20)

There are 21 files with lines longer than 120 characters. In total, there are 124 long lines.

File# lines# units# long lines
runtime.dart
in packages/rfw/lib/src/flutter
815 49 34
core_widgets.dart
in packages/rfw/lib/src/flutter
396 - 26
argument_decoders.dart
in packages/rfw/lib/src/flutter
774 42 13
main.dart
in packages/rfw/example/remote/lib
95 6 7
material_widgets.dart
in packages/rfw/lib/src/flutter
247 - 6
dart_generator.dart
in packages/pigeon/lib
539 16 5
binary.dart
in packages/rfw/lib/src/dart
374 35 5
text.dart
in packages/rfw/lib/src/dart
1761 27 5
objc_generator.dart
in packages/pigeon/lib
764 24 4
pigeon_lib.dart
in packages/pigeon/lib
916 42 4
java_generator.dart
in packages/pigeon/lib
563 15 3
primitive.dart
in packages/pigeon/platform_tests/flutter_null_safe_unit_tests/lib
422 6 2
pubspec.yaml
in packages/extension_google_sign_in_as_googleapis_auth
21 - 2
pubspec.yaml
in packages/flutter_template_images
7 - 1
ast.dart
in packages/pigeon/lib
140 8 1
generator_tools.dart
in packages/pigeon/lib
295 23 1
emulator.dart
in packages/fuchsia_ctl/lib/src
113 4 1
resource_record.dart
in packages/multicast_dns/lib/src
261 16 1
content.dart
in packages/rfw/lib/src/flutter
183 15 1
remote_widget.dart
in packages/rfw/lib/src/flutter
46 7 1