A collection of Flutter examples and demos
This report presents the forensic synthetic code analysis of flutter/samples, a Dart project with 19,204 GitHub stars. SynthScan v2.0 examined 113,478 lines of code across 1356 source files, recording 151 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 2.5 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 151 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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 | …sformation/grayscale_transformer/analysis_options.yaml | 1 | # This file configures the static analysis results for your project (errors, | COMMENT |
| LOW | …sformation/grayscale_transformer/analysis_options.yaml | 21 | 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/analysis_options.yaml | 1 | # This file configures the analyzer, which statically analyzes Dart code to | COMMENT |
| LOW | cupertino_gallery/analysis_options.yaml | 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file | 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/analysis_options.yaml | 1 | # This file configures the analyzer, which statically analyzes Dart code to | COMMENT |
| LOW | date_planner/analysis_options.yaml | 21 | # `// ignore_for_file: name_of_lint` syntax on the line or in the file | 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 |
| 59 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 | …sformation/grayscale_transformer/analysis_options.yaml | 9 | # If you want a smaller set of lints you can change this to specify | 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 | 14 | 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 | 110 | 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 |