A collection of Flutter examples and demos
This report summarizes scanner evidence for flutter/samples, a Dart project with 19,281 GitHub stars. SynthScan examined 113,522 lines of code across 1360 source files, recording 140 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 2.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 122 finding(s).
Are imports declared and package/API names verified? 13 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 140 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 140 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …o_app/plugin/flutter_module_using_plugin/lib/main.dart | 21 | } | COMMENT |
| LOW | …flutter_module_using_plugin_android_view/lib/main.dart | 21 | } | COMMENT |
| LOW | …pp/books/ios_books/IosBooks/IosBooks-Bridging-Header.h | 1 | // | COMMENT |
| LOW | …rc/main/java/dev/flutter/example/books/MainActivity.kt | 121 | // into an idiomatic Android activity interface with intent extras as input and | COMMENT |
| LOW | …esizingTests/Pods-ios_content_resizingTests-umbrella.h | 1 | #ifdef __OBJC__ | COMMENT |
| LOW | …terPluginRegistrant/FlutterPluginRegistrant-umbrella.h | 1 | #ifdef __OBJC__ | COMMENT |
| LOW | …ontent_resizing-ios_content_resizingUITests-umbrella.h | 1 | #ifdef __OBJC__ | COMMENT |
| LOW | …_content_resizing/Pods-ios_content_resizing-umbrella.h | 1 | #ifdef __OBJC__ | COMMENT |
| LOW | …o_app/ios_content_resizing/flutter_module/pubspec.yaml | 1 | name: flutter_module | COMMENT |
| LOW | …o_app/ios_content_resizing/flutter_module/pubspec.yaml | 41 | # included with your application, so that you can use the icons in | COMMENT |
| LOW | …o_app/ios_content_resizing/flutter_module/pubspec.yaml | 61 | # example: | COMMENT |
| LOW | background_isolate_channels/lib/simple_database.dart | 1 | // Copyright 2022 The Flutter team. All rights reserved. | COMMENT |
| LOW | background_isolate_channels/lib/simple_database.dart | 21 | // isolate and the [_SimpleDatabaseServer] operates on a background isolate. | COMMENT |
| LOW | …nd_routing/linux/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | navigation_and_routing/windows/runner/utils.h | 1 | #ifndef RUNNER_UTILS_H_ | COMMENT |
| LOW | navigation_and_routing/windows/runner/win32_window.cpp | 1 | #include "win32_window.h" | COMMENT |
| LOW | navigation_and_routing/windows/runner/resource.h | 1 | //{{NO_DEPENDENCIES}} | COMMENT |
| LOW | …_routing/windows/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | …sformation/linux/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | asset_transformation/windows/runner/utils.h | 1 | #ifndef RUNNER_UTILS_H_ | COMMENT |
| LOW | asset_transformation/windows/runner/win32_window.cpp | 1 | #include "win32_window.h" | COMMENT |
| LOW | asset_transformation/windows/runner/resource.h | 1 | //{{NO_DEPENDENCIES}} | COMMENT |
| LOW | …ormation/windows/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | …ial_3_demo/linux/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | material_3_demo/windows/runner/utils.h | 1 | #ifndef RUNNER_UTILS_H_ | COMMENT |
| LOW | material_3_demo/windows/runner/win32_window.cpp | 1 | #include "win32_window.h" | COMMENT |
| LOW | material_3_demo/windows/runner/resource.h | 1 | //{{NO_DEPENDENCIES}} | COMMENT |
| LOW | …l_3_demo/windows/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | cupertino_gallery/test/widget_test.dart | 1 | // This is a basic Flutter widget test. | COMMENT |
| LOW | …no_gallery/linux/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | cupertino_gallery/windows/runner/utils.h | 1 | #ifndef RUNNER_UTILS_H_ | COMMENT |
| LOW | cupertino_gallery/windows/runner/win32_window.cpp | 1 | #include "win32_window.h" | COMMENT |
| LOW | cupertino_gallery/windows/runner/resource.h | 1 | //{{NO_DEPENDENCIES}} | COMMENT |
| LOW | …_gallery/windows/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | …ss_app/app/linux/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | compass_app/app/lib/utils/result.dart | 1 | // Copyright 2024 The Flutter team. All rights reserved. | COMMENT |
| LOW | compass_app/app/windows/runner/utils.h | 1 | #ifndef RUNNER_UTILS_H_ | COMMENT |
| LOW | compass_app/app/windows/runner/win32_window.cpp | 1 | #include "win32_window.h" | COMMENT |
| LOW | compass_app/app/windows/runner/resource.h | 1 | //{{NO_DEPENDENCIES}} | COMMENT |
| LOW | …_app/app/windows/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | compass_app/server/lib/middleware/auth.dart | 1 | // Copyright 2024 The Flutter team. All rights reserved. | COMMENT |
| LOW | compass_app/server/lib/routes/booking.dart | 1 | // Copyright 2024 The Flutter team. All rights reserved. | COMMENT |
| LOW | form_app/linux/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | form_app/windows/runner/utils.h | 1 | #ifndef RUNNER_UTILS_H_ | COMMENT |
| LOW | form_app/windows/runner/win32_window.cpp | 1 | #include "win32_window.h" | COMMENT |
| LOW | form_app/windows/runner/resource.h | 1 | //{{NO_DEPENDENCIES}} | COMMENT |
| LOW | form_app/windows/flutter/generated_plugin_registrant.h | 1 | // | COMMENT |
| LOW | platform_design/lib/main.dart | 61 | // data. Since changing platform re-parents those tabs into different | COMMENT |
| LOW | date_planner/lib/event_symbol.dart | 1 | // Copyright 2024 The Flutter Authors. All rights reserved. | COMMENT |
| LOW | date_planner/lib/event_symbol.dart | 21 | CupertinoIcons.clock_fill, | COMMENT |
| LOW | .prompts/llm.md | 201 | ## Documentation Standards | COMMENT |
| LOW | .prompts/llm.md | 241 | } | COMMENT |
| LOW | pedometer/ffigen.yaml | 21 | COMMENT | |
| LOW | pedometer/pubspec.yaml | 21 | jnigen: ^0.14.2 | COMMENT |
| LOW | pedometer/pubspec.yaml | 41 | # | COMMENT |
| LOW | pedometer/pubspec.yaml | 61 | # To add custom fonts to your plugin package, add a fonts section here, | COMMENT |
| LOW | pedometer/example/pubspec.yaml | 1 | name: pedometer_example | COMMENT |
| LOW | pedometer/example/pubspec.yaml | 61 | flutter_lints: ^6.0.0 | COMMENT |
| LOW | pedometer/example/pubspec.yaml | 81 | COMMENT | |
| LOW | pedometer/example/pubspec.yaml | 101 | # | COMMENT |
| 49 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …r/example/androidfullscreen/ExampleInstrumentedTest.kt | 30 | onView(withId(R.id.launch_button)).perform(androidx.test.espresso.action.ViewActions.click()) | CODE |
| CRITICAL⚡ | …r/example/androidfullscreen/ExampleInstrumentedTest.kt | 46 | androidx.test.espresso.assertion.ViewAssertions.matches( | CODE |
| CRITICAL⚡ | …r/example/androidfullscreen/ExampleInstrumentedTest.kt | 52 | androidx.test.espresso.matcher.ViewMatchers.withText("Current count: 1") | CODE |
| CRITICAL⚡ | …r/example/androidfullscreen/ExampleInstrumentedTest.kt | 57 | onView(withId(R.id.launch_button)).perform(androidx.test.espresso.action.ViewActions.click()) | CODE |
| CRITICAL⚡ | …r/example/androidfullscreen/ExampleInstrumentedTest.kt | 65 | androidx.test.espresso.assertion.ViewAssertions.matches( | CODE |
| CRITICAL⚡ | …r/example/androidfullscreen/ExampleInstrumentedTest.kt | 67 | androidx.test.espresso.matcher.ViewMatchers.withText("Current count: 2") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | desktop_photo_search/fluent_ui/test/unsplash_test.dart | 0 | { "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width" | STRING |
| HIGH | desktop_photo_search/fluent_ui/test/widget_test.dart | 0 | { "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width" | STRING |
| HIGH | desktop_photo_search/material/test/unsplash_test.dart | 0 | { "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width" | STRING |
| HIGH | desktop_photo_search/material/test/widget_test.dart | 0 | { "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width" | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …o_app/ios_content_resizing/flutter_module/pubspec.yaml | 41 | # included with your application, so that you can use the icons in | COMMENT |
| MEDIUM | background_isolate_channels/lib/main.dart | 67 | // just for demonstration purposes. | COMMENT |
| MEDIUM | compass_app/server/lib/routes/login.dart | 20 | /// This API only accepts a fixed email and password for demonstration purposes, | COMMENT |
| MEDIUM | compass_app/server/lib/routes/user.dart | 14 | /// This API only returns a hardcoded user for demonstration purposes. | COMMENT |
| MEDIUM | pedometer/example/pubspec.yaml | 70 | # included with your application, so that you can use the icons in | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | google_maps/web/index.html | 33 | <script src="https://maps.googleapis.com/maps/api/js?key=YOUR-API-KEY"></script> | CODE |
| HIGH | google_maps/ios/Runner/AppDelegate.swift | 12 | GMSServices.provideAPIKey("YOUR-API-KEY") | CODE |
| HIGH | google_maps/android/app/src/main/AndroidManifest.xml | 10 | android:value="YOUR-API-KEY"/> | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | material_3_demo/test/component_screen_test.dart | 115 | // Third one is off screen in the scaffold | COMMENT |
| MEDIUM | material_3_demo/test/component_screen_test.dart | 126 | // Second one is off screen in the scaffold | COMMENT |
| MEDIUM | platform_design/lib/main.dart | 44 | // Shows a different type of scaffold depending on the platform. | COMMENT |
| MEDIUM | platform_design/lib/main.dart | 70 | // actually building the scaffold around the drawer. | COMMENT |
| MEDIUM | platform_design/lib/main.dart | 76 | // a tab in the tab scaffold. The tab scaffold also positions the tab bar | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pedometer/pubspec.yaml | 29 | # The following section is specific to Flutter packages. | COMMENT |
| MEDIUM | pedometer/example/pubspec.yaml | 66 | # The following section is specific to Flutter packages. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .prompts/llm.md | 255 | /// final isValid = validateEmail('user@example.com'); // true | COMMENT |
| LOW | .prompts/llm.md | 338 | final name = 'John Doe'; | CODE |
| LOW | animations/lib/src/basics/custom_tween.dart | 116 | porro quisquam est, qui dolorem ipsum, quia dolor sit amet consectetur | CODE |
| LOW | animations/lib/src/basics/custom_tween.dart | 116 | porro quisquam est, qui dolorem ipsum, quia dolor sit amet consectetur | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tool/ci_script.dart | 116 | print('Error detecting Flutter channel: $e'); | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …dding/element_embedding_demo/web/js/demo-js-interop.js | 36 | function setJsInteropControlsEnabled(enabled) { | CODE |