diff --git a/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/README.md b/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1f8a64cafb98302a69570db869d7e22d23b1ab21 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/README.md @@ -0,0 +1,3 @@ +# a11y_assessments + +An application to conduct accessibility assessments. diff --git a/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/analysis_options.yaml b/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/analysis_options.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f04c6cf0f30d4f8306eabe5dfd00f2a4c902b838 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/analysis_options.yaml @@ -0,0 +1 @@ +include: ../../analysis_options.yaml diff --git a/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..adfa928383397688dff2ea38ae7ed2b7e933d353 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/pubspec.lock @@ -0,0 +1,188 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: "direct dev" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct dev" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + path: + dependency: "direct dev" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: "direct dev" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct dev" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct dev" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" +sdks: + dart: ">=3.2.0-22.0.dev <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..5c89dc332d596a056e5f3947c8b3124a1c3591a6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/a11y_assessments/pubspec.yaml @@ -0,0 +1,41 @@ +name: a11y_assessments +description: A new Flutter project + +environment: + sdk: '>=3.2.0-22.0.dev <4.0.0' + +dependencies: + flutter: + sdk: flutter + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + uses-material-design: true + +# PUBSPEC CHECKSUM: 8023 diff --git a/novelforge-project/agent-workspace/flutter/dev/automated_tests/README.md b/novelforge-project/agent-workspace/flutter/dev/automated_tests/README.md new file mode 100644 index 0000000000000000000000000000000000000000..920beab9b50c7e3beb7c6b7ec32f7f384b70de86 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/automated_tests/README.md @@ -0,0 +1,2 @@ +This is a fake package for use by automated testing. +For example, the `flutter_tools` package uses this to test `flutter test`. diff --git a/novelforge-project/agent-workspace/flutter/dev/automated_tests/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/automated_tests/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..04eea3d4d3aad511dbdd4a74f468119e82110a9a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/automated_tests/pubspec.lock @@ -0,0 +1,504 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct main" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct main" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct main" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct main" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct main" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct main" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + fake_async: + dependency: "direct main" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_driver: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + flutter_goldens: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + frontend_server_client: + dependency: "direct main" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + fuchsia_remote_debug_protocol: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + glob: + dependency: "direct main" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + http_multi_server: + dependency: "direct main" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct main" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + integration_test: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + io: + dependency: "direct main" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct main" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + leak_tracker: + dependency: "direct main" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct main" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct main" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + logging: + dependency: "direct main" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct main" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mime: + dependency: "direct main" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct main" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct main" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: "direct main" + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + pool: + dependency: "direct main" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: "direct main" + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + pub_semver: + dependency: "direct main" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + shelf: + dependency: "direct main" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct main" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct main" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct main" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_map_stack_trace: + dependency: "direct main" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct main" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct main" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct main" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + sync_http: + dependency: transitive + description: + name: sync_http + sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct main" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct main" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct main" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct main" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct main" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct main" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct main" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct main" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webdriver: + dependency: transitive + description: + name: webdriver + sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + webkit_inspection_protocol: + dependency: "direct main" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + yaml: + dependency: "direct main" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/automated_tests/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/automated_tests/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c935b44f72ce0f0667da1542e1a34973d93d91d6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/automated_tests/pubspec.yaml @@ -0,0 +1,78 @@ +name: flutter_automated_tests + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + flutter_test: + sdk: flutter + flutter_goldens: + sdk: flutter + integration_test: + sdk: flutter + platform: 3.1.4 + test: 1.24.9 + + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + process: 5.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + uses-material-design: true + assets: + - icon/test.png + +# PUBSPEC CHECKSUM: 9de1 diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/README.md b/novelforge-project/agent-workspace/flutter/dev/bots/README.md new file mode 100644 index 0000000000000000000000000000000000000000..491a614e2e546e37185acc3f34460d435cf804ed --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/README.md @@ -0,0 +1,188 @@ +# Flutter's Build Infrastructure + +This directory exists to support building Flutter on our build infrastructure. + +Flutter build results are available at: +* https://flutter-dashboard.appspot.com/#/build + - Aggregate dashboard of the separate CI systems used by Flutter. +* https://cirrus-ci.com/github/flutter/flutter/master + - Testing is done on PRs and submitted changes on GitHub. + +Flutter infra requires special permissions to retrigger builds on the +[build dashboard](https://flutter-dashboard.appspot.com/#/build). File an +[infra ticket](https://github.com/flutter/flutter/wiki/Infra-Ticket-Queue) to +request permission. + +The [Cirrus](https://cirrus-ci.org)-based bots run the [`test.dart`](test.dart) +script for each PR and submission. This does testing for the tools, for the +framework, and (for submitted changes only) rebuilds and updates the main +branch API docs [staging site](https://main-api.flutter.dev/). +For tagged dev and beta builds, it also builds and deploys the gallery app to +the app stores. It is configured by the [.cirrus.yml](/.cirrus.yml). + +The build dashboard includes post-commit testing run on physical devices. See +[//dev/devicelab](../devicelab/README.md) for more information. + +## LUCI (Layered Universal Continuous Integration) + +A [set of infra scripts](https://flutter.googlesource.com/recipes/) +run on Windows, Linux, and Mac machines. The configuration for how many +machines and what kind are managed internally by Google. File an +[infra ticket](https://github.com/flutter/flutter/wiki/Infra-Ticket-Queue) +to request new machine types to be added. Both of these technologies are highly +specific to the [LUCI](https://github.com/luci) project, which is the successor +to Chromium's infra and the foundation to Flutter's infrastructure. + +### Prerequisites + +To work on this infrastructure you will need: + +- [depot_tools](https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up) +- Python package installer: `sudo apt-get install python-pip` +- Python coverage package (only needed for `training_simulation`): `sudo pip install coverage` + +To run `prepare_package.dart` locally: + +- Make sure the `depot_tools` is in your `PATH`. If you're on Windows, you also need + an environment variable called `DEPOT_TOOLS` with the path to `depot_tools` as value. +- Run `gsutil.py config` (or `python3 %DEPOT_TOOLS%\gsutil.py` on Windows) to + authenticate with your auth token. +- Create a local temp directory. `cd` into it. +- Run `dart [path to your normal Flutter repo]/dev/bots/prepare_package.dart + --temp_dir=. --revision=[revision to package] --branch=[branch to deploy to] + --publish`. +- If you're running into `gsutil` permission issues, check with @Hixie to make sure + you have the right push permissions. + +### Editing a recipe + +Flutter has several recipes depending on the test. The recipes share common +actions through `recipe_modules`. Searching the builder config in [infra](https://flutter.googlesource.com/infra/+/refs/heads/main) +will indicate the recipe used for a test. + +Recipes are just Python with some limitations on what can be imported. They are +[documented](https://github.com/luci/recipes-py/blob/master/doc/user_guide.md) +by the [luci/recipes-py GitHub project](https://github.com/luci/recipes-py). + +The typical cycle for editing a recipe is: + +1. Check out the recipes project using `git clone https://flutter.googlesource.com/recipes`. +2. Make your edits (probably to files in + `//recipes/recipes`). +3. Update the tests. Run `recipes.py test train` to update + the existing expected output to match the new output. Verify completely new test + cases by altering the `GenTests` method of the recipe. The recipe is required + to have 100% test coverage. +4. Run `led get-builder 'luci.flutter.staging:BUILDER_NAME' | led edit -pa git_ref='refs/pull//head' | led edit -pa git_url='https://github.com/flutter/' | led edit-recipe-bundle | led launch`, where `BUILDER_NAME` is the builder name (e.g. `Linux Engine`), and + `git_ref`/`git_url` is the ref/url of the intended changes to build. + * If `led` fails, ensure that your `depot_tools` checkout is up to date. +5. To submit a CL, you need a local branch first (`git checkout -b [some branch name]`). +6. Upload the patch (`git commit`, `git cl upload`), and open the outputted URL to the CL. +7. Use "Find owners" to get reviewers for the CL + +### Android Tools + +The Android SDK and NDK used by Flutter's Chrome infra bots are stored in Google +Cloud. During the build, a bot runs the `download_android_tools.py` script that +downloads the required version of the Android SDK into `dev/bots/android_tools`. + +To check which components are currently installed, download the current SDK +stored in Google Cloud using the `download_android_tools.py` script, then +`dev/bots/android_tools/sdk/tools/bin/sdkmanager --list`. If you find that some +components need to be updated or installed, follow the steps below: + +#### How to update Android SDK on Google Cloud Storage + +1. Run Android SDK Manager and update packages + `$ dev/bots/android_tools/sdk/tools/android update sdk` + Use `android.bat` on Windows. + +2. Use the UI to choose the packages you want to install and/or update. + +3. Run `dev/bots/android_tools/sdk/tools/bin/sdkmanager --update`. On Windows, + run `sdkmanager.bat` instead. If the process fails with an error saying that + it is unable to move files (Windows makes files and directories read-only + when another process is holding them open), make a copy of the + `dev/bots/android_tools/sdk/tools` directory, run the `sdkmanager.bat` from + the copy, and use the `--sdk_root` option pointing at + `dev/bots/android_tools/sdk`. + +4. Run `dev/bots/android_tools/sdk/tools/bin/sdkmanager --licenses` and accept + the licenses for the newly installed components. It also helps to run this + command a second time and make sure that it prints "All SDK package licenses + accepted". + +5. Run upload_android_tools.py -t sdk + `$ dev/bots/upload_android_tools.py -t sdk` + +#### How to update Android NDK on Google Cloud Storage + +1. Download a new NDK binary (e.g. android-ndk-r10e-linux-x86_64.bin) +2. cd dev/bots/android_tools + `$ cd dev/bots/android_tools` + +3. Remove the old ndk directory + `$ rm -rf ndk` + +4. Run the new NDK binary file + `$ ./android-ndk-r10e-linux-x86_64.bin` + +5. Rename the extracted directory to ndk + `$ mv android-ndk-r10e ndk` + +6. Run upload_android_tools.py -t ndk + `$ cd ../..` + `$ dev/bots/upload_android_tools.py -t ndk` + + +## Flutter codelabs build test + +The Flutter codelabs exercise Material Components in the form of a +demo application. The code for the codelabs is similar to, but +distinct from, the code for the Shrine demo app in Flutter Gallery. + +The Flutter codelabs build test ensures that the final version of the +[Material Components for Flutter +Codelabs](https://github.com/material-components/material-components-flutter-codelabs) +can be built. This test serves as a smoke test for the Flutter +framework and should not fail. If it does, please address any issues +in your PR and rerun the test. If you feel that the test failing is +not a direct result of changes made in your PR or that breaking this +test is absolutely necessary, escalate this issue by [submitting an +issue](https://github.com/material-components/material-components-flutter-codelabs/issues/new?title=%5BURGENT%5D%20Flutter%20Framework%20breaking%20PR) +to the MDC-Flutter Team. + +## Unpublishing published archives + +Flutter downloadable archives are built for each release by our continuous +integration systems using the [`prepare_package.dart`](prepare_package.dart) +script, but if something goes very wrong, and a release is published that wasn't +intended to be published, the [`unpublish_package.dart`](unpublish_package.dart) +script may be used to remove the package or packages from the channels in which +they were published. + +For example To remove a published package corresponding to the git hash +`d444a455de87a2e40b7f576dc12ffd9ab82fd491`, first do a dry run of the script to +see what it will do: + +``` +$ dart ./unpublish_package.dart --temp_dir=/tmp/foo --revision d444a455de87a2e40b7f576dc12ffd9ab82fd491 +``` + +And once you've verified the output of the dry run to be sure it is what you +want to do, run: + +``` +$ dart ./unpublish_package.dart --confirm --temp_dir=/tmp/foo --revision d444a455de87a2e40b7f576dc12ffd9ab82fd491 +``` + +and it will perform the actions. You will of course need to have access +to the cloud storage server and have `gsutil` installed to perform this +operation. Only runs on Linux or macOS systems. + +See `dart ./unpublish_package.dart --help` for more details. + +Once the package is unpublished, it will not be available from the website for +download, and will not be rebuilt (even though there is a tagged revision in the +repo still) unless someone forces the packaging build to run again at that +revision to rebuild the package. diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/accept_android_sdk_licenses.sh b/novelforge-project/agent-workspace/flutter/dev/bots/accept_android_sdk_licenses.sh new file mode 100644 index 0000000000000000000000000000000000000000..92161b81686762b715028b5f4f1ae1dc403482b4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/accept_android_sdk_licenses.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +# Copyright 2014 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +set -e + +# This script is only meant to be run by the Cirrus CI system, not locally. +# It must be run from the root of the Flutter repo. + +function error() { + echo "$@" 1>&2 +} + +function accept_android_licenses() { + yes "y" | flutter doctor --android-licenses +} + +echo "Flutter SDK directory is: $PWD" + +# Accept licenses. +echo "Accepting Android licenses." +accept_android_licenses || (error "Accepting Android licenses failed." && false) diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/allowlist.dart b/novelforge-project/agent-workspace/flutter/dev/bots/allowlist.dart new file mode 100644 index 0000000000000000000000000000000000000000..91f5da871f202f7e929a3989b9ce3f94ff22f673 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/allowlist.dart @@ -0,0 +1,54 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/// The SDK package allowlist for the flutter, flutter_test, flutter_driver, flutter_localizations, +/// and integration_test packages. +/// +/// The goal of the allowlist is to make it more difficult to accidentally add new dependencies +/// to the core SDK packages that users depend on. Any dependencies added to this set can have a +/// large impact on the allowed version solving of a given flutter application because of how +/// the SDK pins to an exact version. +/// +/// Before adding a new Dart Team owned dependency to this set, please clear with natebosch@ +/// or jakemac53@. For other packages please contact hixie@ or zanderso@. +/// +/// You may remove entries from this list at any time, but once removed they must stay removed +/// unless the additions are cleared as described above. +const Set kCorePackageAllowList = { + // Please keep this list in alphabetical order. + 'async', + 'boolean_selector', + 'characters', + 'clock', + 'collection', + 'fake_async', + 'file', + 'flutter', + 'flutter_driver', + 'flutter_localizations', + 'flutter_test', + 'fuchsia_remote_debug_protocol', + 'integration_test', + 'intl', + 'leak_tracker', + 'leak_tracker_flutter_testing', + 'leak_tracker_testing', + 'matcher', + 'material_color_utilities', + 'meta', + 'path', + 'platform', + 'process', + 'sky_engine', + 'source_span', + 'stack_trace', + 'stream_channel', + 'string_scanner', + 'sync_http', + 'term_glyph', + 'test_api', + 'vector_math', + 'vm_service', + 'webdriver', +}; diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/analysis_options.yaml b/novelforge-project/agent-workspace/flutter/dev/bots/analysis_options.yaml new file mode 100644 index 0000000000000000000000000000000000000000..979daa509cec3f02d7e676572998517a44952d1e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/analysis_options.yaml @@ -0,0 +1,5 @@ +include: ../analysis_options.yaml + +linter: + rules: + avoid_js_rounded_ints: false # CLI code doesn't need to worry about JS issues diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/analyze.dart b/novelforge-project/agent-workspace/flutter/dev/bots/analyze.dart new file mode 100644 index 0000000000000000000000000000000000000000..0527d9b563aac4e38d2146b51c0b3c0218ec9ce4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/analyze.dart @@ -0,0 +1,2189 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:core' hide print; +import 'dart:io' hide exit; +import 'dart:typed_data'; + +import 'package:analyzer/dart/analysis/features.dart'; +import 'package:analyzer/dart/analysis/results.dart'; +import 'package:analyzer/dart/analysis/utilities.dart'; +import 'package:analyzer/dart/ast/ast.dart'; +import 'package:analyzer/dart/ast/visitor.dart'; +import 'package:crypto/crypto.dart'; +import 'package:meta/meta.dart'; +import 'package:path/path.dart' as path; + +import 'allowlist.dart'; +import 'custom_rules/analyze.dart'; +import 'custom_rules/no_double_clamp.dart'; +import 'custom_rules/no_stop_watches.dart'; +import 'run_command.dart'; +import 'utils.dart'; + +final String flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(Platform.script)))); +final String flutter = path.join(flutterRoot, 'bin', Platform.isWindows ? 'flutter.bat' : 'flutter'); +final String flutterPackages = path.join(flutterRoot, 'packages'); +final String flutterExamples = path.join(flutterRoot, 'examples'); + +/// The path to the `dart` executable; set at the top of `main` +late final String dart; + +/// The path to the `pub` executable; set at the top of `main` +late final String pub; + +/// When you call this, you can pass additional arguments to pass custom +/// arguments to flutter analyze. For example, you might want to call this +/// script with the parameter --dart-sdk to use custom dart sdk. +/// +/// For example: +/// bin/cache/dart-sdk/bin/dart dev/bots/analyze.dart --dart-sdk=/tmp/dart-sdk +Future main(List arguments) async { + final String dartSdk = path.join( + Directory.current.absolute.path, + _getDartSdkFromArguments(arguments) ?? path.join(flutterRoot, 'bin', 'cache', 'dart-sdk'), + ); + dart = path.join(dartSdk, 'bin', Platform.isWindows ? 'dart.exe' : 'dart'); + pub = path.join(dartSdk, 'bin', Platform.isWindows ? 'pub.bat' : 'pub'); + printProgress('STARTING ANALYSIS'); + await run(arguments); + if (hasError) { + reportErrorsAndExit('${bold}Analysis failed.$reset'); + } + reportSuccessAndExit('${bold}Analysis successful.$reset'); +} + +/// Scans [arguments] for an argument of the form `--dart-sdk` or +/// `--dart-sdk=...` and returns the configured SDK, if any. +String? _getDartSdkFromArguments(List arguments) { + String? result; + for (int i = 0; i < arguments.length; i += 1) { + if (arguments[i] == '--dart-sdk') { + if (result != null) { + foundError(['The --dart-sdk argument must not be used more than once.']); + return null; + } + if (i + 1 < arguments.length) { + result = arguments[i + 1]; + } else { + foundError(['--dart-sdk must be followed by a path.']); + return null; + } + } + if (arguments[i].startsWith('--dart-sdk=')) { + if (result != null) { + foundError(['The --dart-sdk argument must not be used more than once.']); + return null; + } + result = arguments[i].substring('--dart-sdk='.length); + } + } + return result; +} + +Future run(List arguments) async { + bool assertsEnabled = false; + assert(() { assertsEnabled = true; return true; }()); + if (!assertsEnabled) { + foundError(['The analyze.dart script must be run with --enable-asserts.']); + } + + printProgress('TargetPlatform tool/framework consistency'); + await verifyTargetPlatform(flutterRoot); + + printProgress('All tool test files end in _test.dart...'); + await verifyToolTestsEndInTestDart(flutterRoot); + + printProgress('No sync*/async*'); + await verifyNoSyncAsyncStar(flutterPackages); + await verifyNoSyncAsyncStar(flutterExamples, minimumMatches: 200); + + printProgress('No runtimeType in toString...'); + await verifyNoRuntimeTypeInToString(flutterRoot); + + printProgress('Debug mode instead of checked mode...'); + await verifyNoCheckedMode(flutterRoot); + + printProgress('Links for creating GitHub issues'); + await verifyIssueLinks(flutterRoot); + + printProgress('Unexpected binaries...'); + await verifyNoBinaries(flutterRoot); + + printProgress('Trailing spaces...'); + await verifyNoTrailingSpaces(flutterRoot); // assumes no unexpected binaries, so should be after verifyNoBinaries + + printProgress('Spaces after flow control statements...'); + await verifySpacesAfterFlowControlStatements(flutterRoot); + + printProgress('Deprecations...'); + await verifyDeprecations(flutterRoot); + + printProgress('Goldens...'); + await verifyGoldenTags(flutterPackages); + + printProgress('Skip test comments...'); + await verifySkipTestComments(flutterRoot); + + printProgress('Licenses...'); + await verifyNoMissingLicense(flutterRoot); + + printProgress('Test imports...'); + await verifyNoTestImports(flutterRoot); + + printProgress('Bad imports (framework)...'); + await verifyNoBadImportsInFlutter(flutterRoot); + + printProgress('Bad imports (tools)...'); + await verifyNoBadImportsInFlutterTools(flutterRoot); + + printProgress('Internationalization...'); + await verifyInternationalizations(flutterRoot, dart); + + printProgress('Integration test timeouts...'); + await verifyIntegrationTestTimeouts(flutterRoot); + + printProgress('null initialized debug fields...'); + await verifyNullInitializedDebugExpensiveFields(flutterRoot); + + printProgress('Taboo words...'); + await verifyTabooDocumentation(flutterRoot); + + // Ensure that all package dependencies are in sync. + printProgress('Package dependencies...'); + await runCommand(flutter, ['update-packages', '--verify-only'], + workingDirectory: flutterRoot, + ); + + /// Ensure that no new dependencies have been accidentally + /// added to core packages. + printProgress('Package Allowlist...'); + await _checkConsumerDependencies(); + + // Analyze all the Dart code in the repo. + printProgress('Dart analysis...'); + final CommandResult dartAnalyzeResult = await _runFlutterAnalyze(flutterRoot, options: [ + '--flutter-repo', + ...arguments, + ]); + + if (dartAnalyzeResult.exitCode == 0) { + // Only run the private lints when the code is free of type errors. The + // lints are easier to write when they can assume, for example, there is no + // inheritance cycles. + final List rules = [noDoubleClamp, noStopwatches]; + final String ruleNames = rules.map((AnalyzeRule rule) => '\n * $rule').join(); + printProgress('Analyzing code in the framework with the following rules:$ruleNames'); + await analyzeWithRules(flutterRoot, rules, + includePaths: ['packages/flutter/lib'], + excludePaths: ['packages/flutter/lib/fix_data'], + ); + final List testRules = [noStopwatches]; + final String testRuleNames = testRules.map((AnalyzeRule rule) => '\n * $rule').join(); + printProgress('Analyzing code in the test folder with the following rules:$testRuleNames'); + await analyzeWithRules(flutterRoot, testRules, + includePaths: ['packages/flutter/test'], + ); + } else { + printProgress('Skipped performing further analysis in the framework because "flutter analyze" finished with a non-zero exit code.'); + } + + printProgress('Executable allowlist...'); + await _checkForNewExecutables(); + + // Try with the --watch analyzer, to make sure it returns success also. + // The --benchmark argument exits after one run. + // We specify a failureMessage so that the actual output is muted in the case where _runFlutterAnalyze above already failed. + printProgress('Dart analysis (with --watch)...'); + await _runFlutterAnalyze(flutterRoot, failureMessage: 'Dart analyzer failed when --watch was used.', options: [ + '--flutter-repo', + '--watch', + '--benchmark', + ...arguments, + ]); + + // Analyze the code in `{@tool snippet}` sections in the repo. + printProgress('Snippet code...'); + await runCommand(dart, + ['--enable-asserts', path.join(flutterRoot, 'dev', 'bots', 'analyze_snippet_code.dart'), '--verbose'], + workingDirectory: flutterRoot, + ); + + // Make sure that all of the existing samples are linked from at least one API doc comment. + printProgress('Code sample link validation...'); + await runCommand(dart, + ['--enable-asserts', path.join(flutterRoot, 'dev', 'bots', 'check_code_samples.dart')], + workingDirectory: flutterRoot, + ); + + // Try analysis against a big version of the gallery; generate into a temporary directory. + printProgress('Dart analysis (mega gallery)...'); + final Directory outDir = Directory.systemTemp.createTempSync('flutter_mega_gallery.'); + try { + await runCommand(dart, + [ + path.join(flutterRoot, 'dev', 'tools', 'mega_gallery.dart'), + '--out', + outDir.path, + ], + workingDirectory: flutterRoot, + ); + await _runFlutterAnalyze(outDir.path, failureMessage: 'Dart analyzer failed on mega_gallery benchmark.', options: [ + '--watch', + '--benchmark', + ...arguments, + ]); + } finally { + outDir.deleteSync(recursive: true); + } + + // Ensure gen_default links the correct files + printProgress('Correct file names in gen_defaults.dart...'); + await verifyTokenTemplatesUpdateCorrectFiles(flutterRoot); + + // Ensure integration test files are up-to-date with the app template. + printProgress('Up to date integration test template files...'); + await verifyIntegrationTestTemplateFiles(flutterRoot); +} + + +// TESTS + +FeatureSet _parsingFeatureSet() => FeatureSet.latestLanguageVersion(); + +_Line _getLine(ParseStringResult parseResult, int offset) { + final int lineNumber = parseResult.lineInfo.getLocation(offset).lineNumber; + final String content = parseResult.content.substring( + parseResult.lineInfo.getOffsetOfLine(lineNumber - 1), + parseResult.lineInfo.getOffsetOfLine(lineNumber) - 1, + ); + return _Line(lineNumber, content); +} + +Future verifyTargetPlatform(String workingDirectory) async { + final File framework = File('$workingDirectory/packages/flutter/lib/src/foundation/platform.dart'); + final Set frameworkPlatforms = {}; + List lines = framework.readAsLinesSync(); + int index = 0; + while (true) { + if (index >= lines.length) { + foundError(['${framework.path}: Can no longer find TargetPlatform enum.']); + return; + } + if (lines[index].startsWith('enum TargetPlatform {')) { + index += 1; + break; + } + index += 1; + } + while (true) { + if (index >= lines.length) { + foundError(['${framework.path}: Could not find end of TargetPlatform enum.']); + return; + } + String line = lines[index].trim(); + final int comment = line.indexOf('//'); + if (comment >= 0) { + line = line.substring(0, comment); + } + if (line == '}') { + break; + } + if (line.isNotEmpty) { + if (line.endsWith(',')) { + frameworkPlatforms.add(line.substring(0, line.length - 1)); + } else { + foundError(['${framework.path}:$index: unparseable line when looking for TargetPlatform values']); + } + } + index += 1; + } + final File tool = File('$workingDirectory/packages/flutter_tools/lib/src/resident_runner.dart'); + final Set toolPlatforms = {}; + lines = tool.readAsLinesSync(); + index = 0; + while (true) { + if (index >= lines.length) { + foundError(['${tool.path}: Can no longer find nextPlatform logic.']); + return; + } + if (lines[index].trim().startsWith('const List platforms = [')) { + index += 1; + break; + } + index += 1; + } + while (true) { + if (index >= lines.length) { + foundError(['${tool.path}: Could not find end of nextPlatform logic.']); + return; + } + final String line = lines[index].trim(); + if (line.startsWith("'") && line.endsWith("',")) { + toolPlatforms.add(line.substring(1, line.length - 2)); + } else if (line == '];') { + break; + } else { + foundError(['${tool.path}:$index: unparseable line when looking for nextPlatform values']); + } + index += 1; + } + final Set frameworkExtra = frameworkPlatforms.difference(toolPlatforms); + if (frameworkExtra.isNotEmpty) { + foundError(['TargetPlatform has some extra values not found in the tool: ${frameworkExtra.join(", ")}']); + } + final Set toolExtra = toolPlatforms.difference(frameworkPlatforms); + if (toolExtra.isNotEmpty) { + foundError(['The nextPlatform logic in the tool has some extra values not found in TargetPlatform: ${toolExtra.join(", ")}']); + } +} + +/// Verify Token Templates are mapped to correct file names while generating +/// M3 defaults in /dev/tools/gen_defaults/bin/gen_defaults.dart. +Future verifyTokenTemplatesUpdateCorrectFiles(String workingDirectory) async { + final List errors = []; + + String getMaterialDirPath(List lines) { + final String line = lines.firstWhere((String line) => line.contains('String materialLib')); + final String relativePath = line.substring(line.indexOf("'") + 1, line.lastIndexOf("'")); + return path.join(workingDirectory, relativePath); + } + + String getFileName(String line) { + const String materialLibString = r"'$materialLib/"; + final String leftClamp = line.substring(line.indexOf(materialLibString) + materialLibString.length); + return leftClamp.substring(0, leftClamp.indexOf("'")); + } + + final String genDefaultsBinDir = '$workingDirectory/dev/tools/gen_defaults/bin'; + final File file = File(path.join(genDefaultsBinDir, 'gen_defaults.dart')); + final List lines = file.readAsLinesSync(); + final String materialDirPath = getMaterialDirPath(lines); + bool atLeastOneTargetLineExists = false; + + for (final String line in lines) { + if (line.contains('updateFile();')) { + atLeastOneTargetLineExists = true; + final String fileName = getFileName(line); + final String filePath = path.join(materialDirPath, fileName); + final File file = File(filePath); + + if (!file.existsSync()) { + errors.add('file $filePath does not exist.'); + } + } + } + + assert(atLeastOneTargetLineExists, 'No lines exist that this test expects to ' + 'verify. Check if the target file is correct or remove this test'); + + // Fail if any errors + if (errors.isNotEmpty) { + final String s = errors.length > 1 ? 's' : ''; + final String itThem = errors.length > 1 ? 'them' : 'it'; + foundError([ + ...errors, + '${bold}Please correct the file name$s or remove $itThem from /dev/tools/gen_defaults/bin/gen_defaults.dart$reset', + ]); + } +} + +/// Verify tool test files end in `_test.dart`. +/// +/// The test runner will only recognize files ending in `_test.dart` as tests to +/// be run: https://github.com/dart-lang/test/tree/master/pkgs/test#running-tests +Future verifyToolTestsEndInTestDart(String workingDirectory) async { + final String toolsTestPath = path.join( + workingDirectory, + 'packages', + 'flutter_tools', + 'test', + ); + final List violations = []; + + // detect files that contains calls to test(), testUsingContext(), and testWithoutContext() + final RegExp callsTestFunctionPattern = RegExp(r'(test\(.*\)|testUsingContext\(.*\)|testWithoutContext\(.*\))'); + + await for (final File file in _allFiles(toolsTestPath, 'dart', minimumMatches: 300)) { + final bool isValidTestFile = file.path.endsWith('_test.dart'); + if (isValidTestFile) { + continue; + } + + final bool isTestData = file.path.contains(r'test_data'); + if (isTestData) { + continue; + } + + final bool isInTestShard = file.path.contains(r'.shard/'); + if (!isInTestShard) { + continue; + } + + final bool callsTestFunction = file.readAsStringSync().contains(callsTestFunctionPattern); + if (!callsTestFunction) { + continue; + } + + violations.add(file.path); + } + if (violations.isNotEmpty) { + foundError([ + '${bold}Found flutter_tools tests that do not end in `_test.dart`; these will not be run by the test runner$reset', + ...violations, + ]); + } +} + +Future verifyNoSyncAsyncStar(String workingDirectory, {int minimumMatches = 2000 }) async { + final RegExp syncPattern = RegExp(r'\s*?a?sync\*\s*?{'); + final RegExp ignorePattern = RegExp(r'^\s*?// The following uses a?sync\* because:? '); + final RegExp commentPattern = RegExp(r'^\s*?//'); + final List errors = []; + await for (final File file in _allFiles(workingDirectory, 'dart', minimumMatches: minimumMatches)) { + if (file.path.contains('test')) { + continue; + } + final List lines = file.readAsLinesSync(); + for (int index = 0; index < lines.length; index += 1) { + final String line = lines[index]; + if (line.startsWith(commentPattern)) { + continue; + } + if (line.contains(syncPattern)) { + int lookBehindIndex = index - 1; + bool hasExplanation = false; + while (lookBehindIndex >= 0 && lines[lookBehindIndex].startsWith(commentPattern)) { + if (lines[lookBehindIndex].startsWith(ignorePattern)) { + hasExplanation = true; + break; + } + lookBehindIndex -= 1; + } + if (!hasExplanation) { + errors.add('${file.path}:$index: sync*/async* without an explanation.'); + } + } + } + } + if (errors.isNotEmpty) { + foundError([ + '${bold}Do not use sync*/async* methods. See https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#avoid-syncasync for details.$reset', + ...errors, + ]); + } +} + +final RegExp _findGoldenTestPattern = RegExp(r'matchesGoldenFile\('); +final RegExp _findGoldenDefinitionPattern = RegExp(r'matchesGoldenFile\(Object'); +final RegExp _leadingComment = RegExp(r'//'); +final RegExp _goldenTagPattern1 = RegExp(r'@Tags\('); +final RegExp _goldenTagPattern2 = RegExp(r"'reduced-test-set'"); + +/// Only golden file tests in the flutter package are subject to reduced testing, +/// for example, invocations in flutter_test to validate comparator +/// functionality do not require tagging. +const String _ignoreGoldenTag = '// flutter_ignore: golden_tag (see analyze.dart)'; +const String _ignoreGoldenTagForFile = '// flutter_ignore_for_file: golden_tag (see analyze.dart)'; + +Future verifyGoldenTags(String workingDirectory, { int minimumMatches = 2000 }) async { + final List errors = []; + await for (final File file in _allFiles(workingDirectory, 'dart', minimumMatches: minimumMatches)) { + bool needsTag = false; + bool hasTagNotation = false; + bool hasReducedTag = false; + bool ignoreForFile = false; + final List lines = file.readAsLinesSync(); + for (final String line in lines) { + if (line.contains(_goldenTagPattern1)) { + hasTagNotation = true; + } + if (line.contains(_goldenTagPattern2)) { + hasReducedTag = true; + } + if (line.contains(_findGoldenTestPattern) + && !line.contains(_findGoldenDefinitionPattern) + && !line.contains(_leadingComment) + && !line.contains(_ignoreGoldenTag)) { + needsTag = true; + } + if (line.contains(_ignoreGoldenTagForFile)) { + ignoreForFile = true; + } + // If the file is being ignored or a reduced test tag is already accounted + // for, skip parsing the rest of the lines for golden file tests. + if (ignoreForFile || (hasTagNotation && hasReducedTag)) { + break; + } + } + // If a reduced test tag is already accounted for, move on to the next file. + if (ignoreForFile || (hasTagNotation && hasReducedTag)) { + continue; + } + // If there are golden file tests, ensure they are tagged for all reduced + // test environments. + if (needsTag) { + if (!hasTagNotation) { + errors.add('${file.path}: Files containing golden tests must be tagged using ' + "@Tags(['reduced-test-set']) at the top of the file before import statements."); + } else if (!hasReducedTag) { + errors.add('${file.path}: Files containing golden tests must be tagged with ' + "'reduced-test-set'."); + } + } + } + if (errors.isNotEmpty) { + foundError([ + ...errors, + '${bold}See: https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package:flutter$reset', + ]); + } +} + +final RegExp _findDeprecationPattern = RegExp(r'@[Dd]eprecated'); +final RegExp _deprecationStartPattern = RegExp(r'^(? *)@Deprecated\($'); // flutter_ignore: deprecation_syntax (see analyze.dart) +final RegExp _deprecationMessagePattern = RegExp(r"^ *'(?.+) '$"); +final RegExp _deprecationVersionPattern = RegExp(r"^ *'This feature was deprecated after v(?\d+)\.(?\d+)\.(?\d+)(?-\d+\.\d+\.pre)?\.',?$"); +final RegExp _deprecationEndPattern = RegExp(r'^ *\)$'); + +/// Some deprecation notices are special, for example they're used to annotate members that +/// will never go away and were never allowed but which we are trying to show messages for. +/// (One example would be a library that intentionally conflicts with a member in another +/// library to indicate that it is incompatible with that other library. Another would be +/// the regexp just above...) +const String _ignoreDeprecation = ' // flutter_ignore: deprecation_syntax (see analyze.dart)'; + +/// Some deprecation notices are exempt for historical reasons. They must have an issue listed. +final RegExp _legacyDeprecation = RegExp(r' // flutter_ignore: deprecation_syntax, https://github.com/flutter/flutter/issues/\d+$'); + +Future verifyDeprecations(String workingDirectory, { int minimumMatches = 2000 }) async { + final List errors = []; + await for (final File file in _allFiles(workingDirectory, 'dart', minimumMatches: minimumMatches)) { + int lineNumber = 0; + final List lines = file.readAsLinesSync(); + final List linesWithDeprecations = []; + for (final String line in lines) { + if (line.contains(_findDeprecationPattern) && + !line.endsWith(_ignoreDeprecation) && + !line.contains(_legacyDeprecation)) { + linesWithDeprecations.add(lineNumber); + } + lineNumber += 1; + } + for (int lineNumber in linesWithDeprecations) { + try { + final RegExpMatch? startMatch = _deprecationStartPattern.firstMatch(lines[lineNumber]); + if (startMatch == null) { + throw 'Deprecation notice does not match required pattern.'; + } + final String indent = startMatch.namedGroup('indent')!; + lineNumber += 1; + if (lineNumber >= lines.length) { + throw 'Incomplete deprecation notice.'; + } + RegExpMatch? versionMatch; + String? message; + do { + final RegExpMatch? messageMatch = _deprecationMessagePattern.firstMatch(lines[lineNumber]); + if (messageMatch == null) { + String possibleReason = ''; + if (lines[lineNumber].trimLeft().startsWith('"')) { + possibleReason = ' You might have used double quotes (") for the string instead of single quotes (\').'; + } else if (!lines[lineNumber].contains("'")) { + possibleReason = ' It might be missing the line saying "This feature was deprecated after...".'; + } else if (!lines[lineNumber].trimRight().endsWith(" '")) { + if (lines[lineNumber].contains('This feature was deprecated')) { + possibleReason = ' There might not be an explanatory message.'; + } else { + possibleReason = ' There might be a missing space character at the end of the line.'; + } + } + throw 'Deprecation notice does not match required pattern.$possibleReason'; + } + if (!lines[lineNumber].startsWith("$indent '")) { + throw 'Unexpected deprecation notice indent.'; + } + if (message == null) { + message = messageMatch.namedGroup('message'); + final String firstChar = String.fromCharCode(message!.runes.first); + if (firstChar.toUpperCase() != firstChar) { + throw 'Deprecation notice should be a grammatically correct sentence and start with a capital letter; see style guide: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo'; + } + } else { + message += messageMatch.namedGroup('message')!; + } + lineNumber += 1; + if (lineNumber >= lines.length) { + throw 'Incomplete deprecation notice.'; + } + versionMatch = _deprecationVersionPattern.firstMatch(lines[lineNumber]); + } while (versionMatch == null); + final int major = int.parse(versionMatch.namedGroup('major')!); + final int minor = int.parse(versionMatch.namedGroup('minor')!); + final int patch = int.parse(versionMatch.namedGroup('patch')!); + final bool hasBuild = versionMatch.namedGroup('build') != null; + // There was a beta release that was mistakenly labeled 3.1.0 without a build. + final bool specialBeta = major == 3 && minor == 1 && patch == 0; + if (!specialBeta && (major > 1 || (major == 1 && minor >= 20))) { + if (!hasBuild) { + throw 'Deprecation notice does not accurately indicate a beta branch version number; please see https://flutter.dev/docs/development/tools/sdk/releases to find the latest beta build version number.'; + } + } + if (!message.endsWith('.') && !message.endsWith('!') && !message.endsWith('?')) { + throw 'Deprecation notice should be a grammatically correct sentence and end with a period; notice appears to be "$message".'; + } + if (!lines[lineNumber].startsWith("$indent '")) { + throw 'Unexpected deprecation notice indent.'; + } + lineNumber += 1; + if (lineNumber >= lines.length) { + throw 'Incomplete deprecation notice.'; + } + if (!lines[lineNumber].contains(_deprecationEndPattern)) { + throw 'End of deprecation notice does not match required pattern.'; + } + if (!lines[lineNumber].startsWith('$indent)')) { + throw 'Unexpected deprecation notice indent.'; + } + } catch (error) { + errors.add('${file.path}:${lineNumber + 1}: $error'); + } + } + } + // Fail if any errors + if (errors.isNotEmpty) { + foundError([ + ...errors, + '${bold}See: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes$reset', + ]); + } +} + +String _generateLicense(String prefix) { + return '${prefix}Copyright 2014 The Flutter Authors. All rights reserved.\n' + '${prefix}Use of this source code is governed by a BSD-style license that can be\n' + '${prefix}found in the LICENSE file.'; +} + +Future verifyNoMissingLicense(String workingDirectory, { bool checkMinimums = true }) async { + final int? overrideMinimumMatches = checkMinimums ? null : 0; + await _verifyNoMissingLicenseForExtension(workingDirectory, 'dart', overrideMinimumMatches ?? 2000, _generateLicense('// ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'java', overrideMinimumMatches ?? 39, _generateLicense('// ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'h', overrideMinimumMatches ?? 30, _generateLicense('// ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'm', overrideMinimumMatches ?? 30, _generateLicense('// ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'cc', overrideMinimumMatches ?? 10, _generateLicense('// ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'cpp', overrideMinimumMatches ?? 0, _generateLicense('// ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'swift', overrideMinimumMatches ?? 10, _generateLicense('// ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'gradle', overrideMinimumMatches ?? 80, _generateLicense('// ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'gn', overrideMinimumMatches ?? 0, _generateLicense('# ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'sh', overrideMinimumMatches ?? 1, _generateLicense('# '), header: r'#!/usr/bin/env bash\n',); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'bat', overrideMinimumMatches ?? 1, _generateLicense('REM '), header: r'@ECHO off\n'); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'ps1', overrideMinimumMatches ?? 1, _generateLicense('# ')); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'html', overrideMinimumMatches ?? 1, '', trailingBlank: false, header: r'\n'); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'xml', overrideMinimumMatches ?? 1, '', header: r'(<\?xml version="1.0" encoding="utf-8"\?>\n)?'); + await _verifyNoMissingLicenseForExtension(workingDirectory, 'frag', overrideMinimumMatches ?? 1, _generateLicense('// '), header: r'#version 320 es(\n)+'); +} + +Future _verifyNoMissingLicenseForExtension( + String workingDirectory, + String extension, + int minimumMatches, + String license, { + bool trailingBlank = true, + // The "header" is a regular expression matching the header that comes before + // the license in some files. + String header = '', +}) async { + assert(!license.endsWith('\n')); + final String licensePattern = RegExp.escape('$license\n${trailingBlank ? '\n' : ''}'); + final List errors = []; + await for (final File file in _allFiles(workingDirectory, extension, minimumMatches: minimumMatches)) { + final String contents = file.readAsStringSync().replaceAll('\r\n', '\n'); + if (contents.isEmpty) { + continue; // let's not go down the /bin/true rabbit hole + } + if (!contents.startsWith(RegExp(header + licensePattern))) { + errors.add(file.path); + } + } + // Fail if any errors + if (errors.isNotEmpty) { + final String fileDoes = errors.length == 1 ? 'file does' : '${errors.length} files do'; + foundError([ + '${bold}The following $fileDoes not have the right license header for $extension files:$reset', + ...errors.map((String error) => ' $error'), + 'The expected license header is:', + if (header.isNotEmpty) 'A header matching the regular expression "$header",', + if (header.isNotEmpty) 'followed by the following license text:', + license, + if (trailingBlank) '...followed by a blank line.', + ]); + } +} + +class _Line { + _Line(this.line, this.content); + + final int line; + final String content; +} + +Iterable<_Line> _getTestSkips(File file) { + final ParseStringResult parseResult = parseFile( + featureSet: _parsingFeatureSet(), + path: file.absolute.path, + ); + final _TestSkipLinesVisitor visitor = _TestSkipLinesVisitor(parseResult); + visitor.visitCompilationUnit(parseResult.unit); + return visitor.skips; +} + +class _TestSkipLinesVisitor extends RecursiveAstVisitor { + _TestSkipLinesVisitor(this.parseResult) : skips = <_Line>{}; + + final ParseStringResult parseResult; + final Set<_Line> skips; + + static bool isTestMethod(String name) { + return name.startsWith('test') || name == 'group' || name == 'expect'; + } + + @override + T? visitMethodInvocation(MethodInvocation node) { + if (isTestMethod(node.methodName.toString())) { + for (final Expression argument in node.argumentList.arguments) { + if (argument is NamedExpression && argument.name.label.name == 'skip') { + skips.add(_getLine(parseResult, argument.beginToken.charOffset)); + } + } + } + return super.visitMethodInvocation(node); + } +} + +final RegExp _skipTestCommentPattern = RegExp(r'//(.*)$'); +const Pattern _skipTestIntentionalPattern = '[intended]'; +final Pattern _skipTestTrackingBugPattern = RegExp(r'https+?://github.com/.*/issues/\d+'); + +Future verifySkipTestComments(String workingDirectory) async { + final List errors = []; + final Stream testFiles =_allFiles(workingDirectory, 'dart', minimumMatches: 1500) + .where((File f) => f.path.endsWith('_test.dart')); + + await for (final File file in testFiles) { + for (final _Line skip in _getTestSkips(file)) { + final Match? match = _skipTestCommentPattern.firstMatch(skip.content); + final String? skipComment = match?.group(1); + if (skipComment == null || + !(skipComment.contains(_skipTestIntentionalPattern) || + skipComment.contains(_skipTestTrackingBugPattern))) { + errors.add('${file.path}:${skip.line}: skip test without a justification comment.'); + } + } + } + + // Fail if any errors + if (errors.isNotEmpty) { + foundError([ + ...errors, + '\n${bold}See: https://github.com/flutter/flutter/wiki/Tree-hygiene#skipped-tests$reset', + ]); + } +} + +final RegExp _testImportPattern = RegExp(r'''import (['"])([^'"]+_test\.dart)\1'''); +const Set _exemptTestImports = { + 'package:flutter_test/flutter_test.dart', + 'hit_test.dart', + 'package:test_api/src/backend/live_test.dart', + 'package:integration_test/integration_test.dart', +}; + +Future verifyNoTestImports(String workingDirectory) async { + final List errors = []; + assert("// foo\nimport 'binding_test.dart' as binding;\n'".contains(_testImportPattern)); + final List dartFiles = await _allFiles(path.join(workingDirectory, 'packages'), 'dart', minimumMatches: 1500).toList(); + for (final File file in dartFiles) { + for (final String line in file.readAsLinesSync()) { + final Match? match = _testImportPattern.firstMatch(line); + if (match != null && !_exemptTestImports.contains(match.group(2))) { + errors.add(file.path); + } + } + } + // Fail if any errors + if (errors.isNotEmpty) { + final String s = errors.length == 1 ? '' : 's'; + foundError([ + '${bold}The following file$s import a test directly. Test utilities should be in their own file.$reset', + ...errors, + ]); + } +} + +Future verifyNoBadImportsInFlutter(String workingDirectory) async { + final List errors = []; + final String libPath = path.join(workingDirectory, 'packages', 'flutter', 'lib'); + final String srcPath = path.join(workingDirectory, 'packages', 'flutter', 'lib', 'src'); + // Verify there's one libPath/*.dart for each srcPath/*/. + final List packages = Directory(libPath).listSync() + .where((FileSystemEntity entity) => entity is File && path.extension(entity.path) == '.dart') + .map((FileSystemEntity entity) => path.basenameWithoutExtension(entity.path)) + .toList()..sort(); + final List directories = Directory(srcPath).listSync() + .whereType() + .map((Directory entity) => path.basename(entity.path)) + .toList()..sort(); + if (!_listEquals(packages, directories)) { + errors.add([ + 'flutter/lib/*.dart does not match flutter/lib/src/*/:', + 'These are the exported packages:', + ...packages.map((String path) => ' lib/$path.dart'), + 'These are the directories:', + ...directories.map((String path) => ' lib/src/$path/'), + ].join('\n')); + } + // Verify that the imports are well-ordered. + final Map> dependencyMap = >{}; + for (final String directory in directories) { + dependencyMap[directory] = await _findFlutterDependencies(path.join(srcPath, directory), errors, checkForMeta: directory != 'foundation'); + } + assert(dependencyMap['material']!.contains('widgets') && + dependencyMap['widgets']!.contains('rendering') && + dependencyMap['rendering']!.contains('painting')); // to make sure we're convinced _findFlutterDependencies is finding some + for (final String package in dependencyMap.keys) { + if (dependencyMap[package]!.contains(package)) { + errors.add( + 'One of the files in the $yellow$package$reset package imports that package recursively.' + ); + } + } + + for (final String key in dependencyMap.keys) { + for (final String dependency in dependencyMap[key]!) { + if (dependencyMap[dependency] != null) { + continue; + } + // Sanity check before performing _deepSearch, to ensure there's no rogue + // dependencies. + final String validFilenames = dependencyMap.keys.map((String name) => '$name.dart').join(', '); + errors.add( + '$key imported package:flutter/$dependency.dart ' + 'which is not one of the valid exports { $validFilenames }.\n' + 'Consider changing $dependency.dart to one of them.' + ); + } + } + + for (final String package in dependencyMap.keys) { + final List? loop = _deepSearch(dependencyMap, package); + if (loop != null) { + errors.add('${yellow}Dependency loop:$reset ${loop.join(' depends on ')}'); + } + } + // Fail if any errors + if (errors.isNotEmpty) { + foundError([ + if (errors.length == 1) + '${bold}An error was detected when looking at import dependencies within the Flutter package:$reset' + else + '${bold}Multiple errors were detected when looking at import dependencies within the Flutter package:$reset', + ...errors, + ]); + } +} + +Future verifyNoBadImportsInFlutterTools(String workingDirectory) async { + final List errors = []; + final List files = await _allFiles(path.join(workingDirectory, 'packages', 'flutter_tools', 'lib'), 'dart', minimumMatches: 200).toList(); + for (final File file in files) { + if (file.readAsStringSync().contains('package:flutter_tools/')) { + errors.add('$yellow${file.path}$reset imports flutter_tools.'); + } + } + // Fail if any errors + if (errors.isNotEmpty) { + foundError([ + if (errors.length == 1) + '${bold}An error was detected when looking at import dependencies within the flutter_tools package:$reset' + else + '${bold}Multiple errors were detected when looking at import dependencies within the flutter_tools package:$reset', + ...errors.map((String paragraph) => '$paragraph\n'), + ]); + } +} + +Future verifyIntegrationTestTimeouts(String workingDirectory) async { + final List errors = []; + final String dev = path.join(workingDirectory, 'dev'); + final List files = await _allFiles(dev, 'dart', minimumMatches: 1) + .where((File file) => file.path.contains('test_driver') && (file.path.endsWith('_test.dart') || file.path.endsWith('util.dart'))) + .toList(); + for (final File file in files) { + final String contents = file.readAsStringSync(); + final int testCount = ' test('.allMatches(contents).length; + final int timeoutNoneCount = 'timeout: Timeout.none'.allMatches(contents).length; + if (testCount != timeoutNoneCount) { + errors.add('$yellow${file.path}$reset has at least $testCount test(s) but only $timeoutNoneCount `Timeout.none`(s).'); + } + } + if (errors.isNotEmpty) { + foundError([ + if (errors.length == 1) + '${bold}An error was detected when looking at integration test timeouts:$reset' + else + '${bold}Multiple errors were detected when looking at integration test timeouts:$reset', + ...errors.map((String paragraph) => '$paragraph\n'), + ]); + } +} + +Future verifyInternationalizations(String workingDirectory, String dartExecutable) async { + final EvalResult materialGenResult = await _evalCommand( + dartExecutable, + [ + path.join('dev', 'tools', 'localization', 'bin', 'gen_localizations.dart'), + '--material', + '--remove-undefined', + ], + workingDirectory: workingDirectory, + ); + final EvalResult cupertinoGenResult = await _evalCommand( + dartExecutable, + [ + path.join('dev', 'tools', 'localization', 'bin', 'gen_localizations.dart'), + '--cupertino', + '--remove-undefined', + ], + workingDirectory: workingDirectory, + ); + + final String materialLocalizationsFile = path.join(workingDirectory, 'packages', 'flutter_localizations', 'lib', 'src', 'l10n', 'generated_material_localizations.dart'); + final String cupertinoLocalizationsFile = path.join(workingDirectory, 'packages', 'flutter_localizations', 'lib', 'src', 'l10n', 'generated_cupertino_localizations.dart'); + final String expectedMaterialResult = await File(materialLocalizationsFile).readAsString(); + final String expectedCupertinoResult = await File(cupertinoLocalizationsFile).readAsString(); + + if (materialGenResult.stdout.trim() != expectedMaterialResult.trim()) { + foundError([ + '<<<<<<< $materialLocalizationsFile', + expectedMaterialResult.trim(), + '=======', + materialGenResult.stdout.trim(), + '>>>>>>> gen_localizations', + 'The contents of $materialLocalizationsFile are different from that produced by gen_localizations.', + '', + 'Did you forget to run gen_localizations.dart after updating a .arb file?', + ]); + } + if (cupertinoGenResult.stdout.trim() != expectedCupertinoResult.trim()) { + foundError([ + '<<<<<<< $cupertinoLocalizationsFile', + expectedCupertinoResult.trim(), + '=======', + cupertinoGenResult.stdout.trim(), + '>>>>>>> gen_localizations', + 'The contents of $cupertinoLocalizationsFile are different from that produced by gen_localizations.', + '', + 'Did you forget to run gen_localizations.dart after updating a .arb file?', + ]); + } +} + + +/// Verifies that all instances of "checked mode" have been migrated to "debug mode". +Future verifyNoCheckedMode(String workingDirectory) async { + final String flutterPackages = path.join(workingDirectory, 'packages'); + final List files = await _allFiles(flutterPackages, 'dart', minimumMatches: 400) + .where((File file) => path.extension(file.path) == '.dart') + .toList(); + final List problems = []; + for (final File file in files) { + int lineCount = 0; + for (final String line in file.readAsLinesSync()) { + if (line.toLowerCase().contains('checked mode')) { + problems.add('${file.path}:$lineCount uses deprecated "checked mode" instead of "debug mode".'); + } + lineCount += 1; + } + } + if (problems.isNotEmpty) { + foundError(problems); + } +} + + +Future verifyNoRuntimeTypeInToString(String workingDirectory) async { + final String flutterLib = path.join(workingDirectory, 'packages', 'flutter', 'lib'); + final Set excludedFiles = { + path.join(flutterLib, 'src', 'foundation', 'object.dart'), // Calls this from within an assert. + }; + final List files = await _allFiles(flutterLib, 'dart', minimumMatches: 400) + .where((File file) => !excludedFiles.contains(file.path)) + .toList(); + final RegExp toStringRegExp = RegExp(r'^\s+String\s+to(.+?)?String(.+?)?\(\)\s+(\{|=>)'); + final List problems = []; + for (final File file in files) { + final List lines = file.readAsLinesSync(); + for (int index = 0; index < lines.length; index++) { + if (toStringRegExp.hasMatch(lines[index])) { + final int sourceLine = index + 1; + bool checkForRuntimeType(String line) { + if (line.contains(r'$runtimeType') || line.contains('runtimeType.toString()')) { + problems.add('${file.path}:$sourceLine}: toString calls runtimeType.toString'); + return true; + } + return false; + } + if (checkForRuntimeType(lines[index])) { + continue; + } + if (lines[index].contains('=>')) { + while (!lines[index].contains(';')) { + index++; + assert(index < lines.length, 'Source file $file has unterminated toString method.'); + if (checkForRuntimeType(lines[index])) { + break; + } + } + } else { + int openBraceCount = '{'.allMatches(lines[index]).length - '}'.allMatches(lines[index]).length; + while (!lines[index].contains('}') && openBraceCount > 0) { + index++; + assert(index < lines.length, 'Source file $file has unbalanced braces in a toString method.'); + if (checkForRuntimeType(lines[index])) { + break; + } + openBraceCount += '{'.allMatches(lines[index]).length; + openBraceCount -= '}'.allMatches(lines[index]).length; + } + } + } + } + } + if (problems.isNotEmpty) { + foundError(problems); + } +} + +Future verifyNoTrailingSpaces(String workingDirectory, { int minimumMatches = 4000 }) async { + final List files = await _allFiles(workingDirectory, null, minimumMatches: minimumMatches) + .where((File file) => path.basename(file.path) != 'serviceaccount.enc') + .where((File file) => path.basename(file.path) != 'Ahem.ttf') + .where((File file) => path.extension(file.path) != '.snapshot') + .where((File file) => path.extension(file.path) != '.png') + .where((File file) => path.extension(file.path) != '.jpg') + .where((File file) => path.extension(file.path) != '.ico') + .where((File file) => path.extension(file.path) != '.jar') + .where((File file) => path.extension(file.path) != '.swp') + .toList(); + final List problems = []; + for (final File file in files) { + final List lines = file.readAsLinesSync(); + for (int index = 0; index < lines.length; index += 1) { + if (lines[index].endsWith(' ')) { + problems.add('${file.path}:${index + 1}: trailing U+0020 space character'); + } else if (lines[index].endsWith('\t')) { + problems.add('${file.path}:${index + 1}: trailing U+0009 tab character'); + } + } + if (lines.isNotEmpty && lines.last == '') { + problems.add('${file.path}:${lines.length}: trailing blank line'); + } + } + if (problems.isNotEmpty) { + foundError(problems); + } +} + +final RegExp _flowControlStatementWithoutSpace = RegExp(r'(^|[ \t])(if|switch|for|do|while|catch)\(', multiLine: true); + +Future verifySpacesAfterFlowControlStatements(String workingDirectory, { int minimumMatches = 4000 }) async { + const Set extensions = { + '.dart', + '.java', + '.js', + '.kt', + '.swift', + '.c', + '.cc', + '.cpp', + '.h', + '.m', + }; + final List files = await _allFiles(workingDirectory, null, minimumMatches: minimumMatches) + .where((File file) => extensions.contains(path.extension(file.path))) + .toList(); + final List problems = []; + for (final File file in files) { + final List lines = file.readAsLinesSync(); + for (int index = 0; index < lines.length; index += 1) { + if (lines[index].contains(_flowControlStatementWithoutSpace)) { + problems.add('${file.path}:${index + 1}: no space after flow control statement'); + } + } + } + if (problems.isNotEmpty) { + foundError(problems); + } +} + +String _bullets(String value) => ' * $value'; + +Future verifyIssueLinks(String workingDirectory) async { + const String issueLinkPrefix = 'https://github.com/flutter/flutter/issues/new'; + const Set stops = { '\n', ' ', "'", '"', r'\', ')', '>' }; + assert(!stops.contains('.')); // instead of "visit https://foo." say "visit: https://", it copy-pastes better + const String kGiveTemplates = + 'Prefer to provide a link either to $issueLinkPrefix/choose (the list of issue ' + 'templates) or to a specific template directly ($issueLinkPrefix?template=...).\n'; + final Set templateNames = + Directory(path.join(workingDirectory, '.github', 'ISSUE_TEMPLATE')) + .listSync() + .whereType() + .where((File file) => path.extension(file.path) == '.md' || path.extension(file.path) == '.yml') + .map((File file) => path.basename(file.path)) + .toSet(); + final String kTemplates = 'The available templates are:\n${templateNames.map(_bullets).join("\n")}'; + final List problems = []; + final Set suggestions = {}; + final List files = await _gitFiles(workingDirectory); + for (final File file in files) { + if (path.basename(file.path).endsWith('_test.dart') || path.basename(file.path) == 'analyze.dart') { + continue; // Skip tests, they're not public-facing. + } + final Uint8List bytes = file.readAsBytesSync(); + // We allow invalid UTF-8 here so that binaries don't trip us up. + // There's a separate test in this file that verifies that all text + // files are actually valid UTF-8 (see verifyNoBinaries below). + final String contents = utf8.decode(bytes, allowMalformed: true); + int start = 0; + while ((start = contents.indexOf(issueLinkPrefix, start)) >= 0) { + int end = start + issueLinkPrefix.length; + while (end < contents.length && !stops.contains(contents[end])) { + end += 1; + } + final String url = contents.substring(start, end); + if (url == issueLinkPrefix) { + if (file.path != path.join(workingDirectory, 'dev', 'bots', 'analyze.dart')) { + problems.add('${file.path} contains a direct link to $issueLinkPrefix.'); + suggestions.add(kGiveTemplates); + suggestions.add(kTemplates); + } + } else if (url.startsWith('$issueLinkPrefix?')) { + final Uri parsedUrl = Uri.parse(url); + final List? templates = parsedUrl.queryParametersAll['template']; + if (templates == null) { + problems.add('${file.path} contains $url, which has no "template" argument specified.'); + suggestions.add(kGiveTemplates); + suggestions.add(kTemplates); + } else if (templates.length != 1) { + problems.add('${file.path} contains $url, which has ${templates.length} templates specified.'); + suggestions.add(kGiveTemplates); + suggestions.add(kTemplates); + } else if (!templateNames.contains(templates.single)) { + problems.add('${file.path} contains $url, which specifies a non-existent template ("${templates.single}").'); + suggestions.add(kTemplates); + } else if (parsedUrl.queryParametersAll.keys.length > 1) { + problems.add('${file.path} contains $url, which the analyze.dart script is not sure how to handle.'); + suggestions.add('Update analyze.dart to handle the URLs above, or change them to the expected pattern.'); + } + } else if (url != '$issueLinkPrefix/choose') { + problems.add('${file.path} contains $url, which the analyze.dart script is not sure how to handle.'); + suggestions.add('Update analyze.dart to handle the URLs above, or change them to the expected pattern.'); + } + start = end; + } + } + assert(problems.isEmpty == suggestions.isEmpty); + if (problems.isNotEmpty) { + foundError([ + ...problems, + ...suggestions, + ]); + } +} + +@immutable +class Hash256 { + const Hash256(this.a, this.b, this.c, this.d); + + factory Hash256.fromDigest(Digest digest) { + assert(digest.bytes.length == 32); + return Hash256( + digest.bytes[ 0] << 56 | + digest.bytes[ 1] << 48 | + digest.bytes[ 2] << 40 | + digest.bytes[ 3] << 32 | + digest.bytes[ 4] << 24 | + digest.bytes[ 5] << 16 | + digest.bytes[ 6] << 8 | + digest.bytes[ 7] << 0, + digest.bytes[ 8] << 56 | + digest.bytes[ 9] << 48 | + digest.bytes[10] << 40 | + digest.bytes[11] << 32 | + digest.bytes[12] << 24 | + digest.bytes[13] << 16 | + digest.bytes[14] << 8 | + digest.bytes[15] << 0, + digest.bytes[16] << 56 | + digest.bytes[17] << 48 | + digest.bytes[18] << 40 | + digest.bytes[19] << 32 | + digest.bytes[20] << 24 | + digest.bytes[21] << 16 | + digest.bytes[22] << 8 | + digest.bytes[23] << 0, + digest.bytes[24] << 56 | + digest.bytes[25] << 48 | + digest.bytes[26] << 40 | + digest.bytes[27] << 32 | + digest.bytes[28] << 24 | + digest.bytes[29] << 16 | + digest.bytes[30] << 8 | + digest.bytes[31] << 0, + ); + } + + final int a; + final int b; + final int c; + final int d; + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is Hash256 + && other.a == a + && other.b == b + && other.c == c + && other.d == d; + } + + @override + int get hashCode => Object.hash(a, b, c, d); +} + +// DO NOT ADD ANY ENTRIES TO THIS LIST. +// We have a policy of not checking in binaries into this repository. +// If you are adding/changing template images, use the flutter_template_images +// package and a .img.tmpl placeholder instead. +// If you have other binaries to add, please consult Hixie for advice. +final Set _legacyBinaries = { + // DEFAULT ICON IMAGES + + // packages/flutter_tools/templates/app/android.tmpl/app/src/main/res/mipmap-hdpi/ic_launcher.png + // packages/flutter_tools/templates/module/android/host_app_common/app.tmpl/src/main/res/mipmap-hdpi/ic_launcher.png + // (also used by many examples) + const Hash256(0x6A7C8F0D703E3682, 0x108F9662F8133022, 0x36240D3F8F638BB3, 0x91E32BFB96055FEF), + + // packages/flutter_tools/templates/app/android.tmpl/app/src/main/res/mipmap-mdpi/ic_launcher.png + // (also used by many examples) + const Hash256(0xC7C0C0189145E4E3, 0x2A401C61C9BDC615, 0x754B0264E7AFAE24, 0xE834BB81049EAF81), + + // packages/flutter_tools/templates/app/android.tmpl/app/src/main/res/mipmap-xhdpi/ic_launcher.png + // (also used by many examples) + const Hash256(0xE14AA40904929BF3, 0x13FDED22CF7E7FFC, 0xBF1D1AAC4263B5EF, 0x1BE8BFCE650397AA), + + // packages/flutter_tools/templates/app/android.tmpl/app/src/main/res/mipmap-xxhdpi/ic_launcher.png + // (also used by many examples) + const Hash256(0x4D470BF22D5C17D8, 0x4EDC5F82516D1BA8, 0xA1C09559CD761CEF, 0xB792F86D9F52B540), + + // packages/flutter_tools/templates/app/android.tmpl/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png + // (also used by many examples) + const Hash256(0x3C34E1F298D0C9EA, 0x3455D46DB6B7759C, 0x8211A49E9EC6E44B, 0x635FC5C87DFB4180), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png + // (also used by a few examples) + const Hash256(0x7770183009E91411, 0x2DE7D8EF1D235A6A, 0x30C5834424858E0D, 0x2F8253F6B8D31926), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png + // (also used by many examples) + const Hash256(0x5925DAB509451F9E, 0xCBB12CE8A625F9D4, 0xC104718EE20CAFF8, 0xB1B51032D1CD8946), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png + // (also used by many examples) + const Hash256(0xC4D9A284C12301D0, 0xF50E248EC53ED51A, 0x19A10147B774B233, 0x08399250B0D44C55), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png + // (also used by many examples) + const Hash256(0xBF97F9D3233F33E1, 0x389B09F7B8ADD537, 0x41300CB834D6C7A5, 0xCA32CBED363A4FB2), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png + // (also used by many examples) + const Hash256(0x285442F69A06B45D, 0x9D79DF80321815B5, 0x46473548A37B7881, 0x9B68959C7B8ED237), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png + // (also used by many examples) + const Hash256(0x2AB64AF8AC727EA9, 0x9C6AB9EAFF847F46, 0xFBF2A9A0A78A0ABC, 0xBF3180F3851645B4), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png + // (also used by many examples) + const Hash256(0x9DCA09F4E5ED5684, 0xD3C4DFF41F4E8B7C, 0xB864B438172D72BE, 0x069315FA362930F9), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png + // (also used by many examples) + const Hash256(0xD5AD04DE321EF37C, 0xACC5A7B960AFCCE7, 0x1BDCB96FA020C482, 0x49C1545DD1A0F497), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png + // (also used by many examples) + const Hash256(0x809ABFE75C440770, 0xC13C4E2E46D09603, 0xC22053E9D4E0E227, 0x5DCB9C1DCFBB2C75), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png + // (also used by many examples) + const Hash256(0x3DB08CB79E7B01B9, 0xE81F956E3A0AE101, 0x48D0FAFDE3EA7AA7, 0x0048DF905AA52CFD), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png + // (also used by many examples) + const Hash256(0x23C13D463F5DCA5C, 0x1F14A14934003601, 0xC29F1218FD461016, 0xD8A22CEF579A665F), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png + // (also used by many examples) + const Hash256(0x6DB7726530D71D3F, 0x52CB59793EB69131, 0x3BAA04796E129E1E, 0x043C0A58A1BFFD2F), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png + // (also used by many examples) + const Hash256(0xCEE565F5E6211656, 0x9B64980B209FD5CA, 0x4B3D3739011F5343, 0x250B33A1A2C6EB65), + + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png + // packages/flutter_tools/templates/app/ios.tmpl/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/LaunchImage.imageset/LaunchImage.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png + // packages/flutter_tools/templates/module/ios/host_app_ephemeral/Runner.tmpl/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png + // (also used by many examples) + const Hash256(0x93AE7D494FAD0FB3, 0x0CBF3AE746A39C4B, 0xC7A0F8BBF87FBB58, 0x7A3F3C01F3C5CE20), + + // packages/flutter_tools/templates/app/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_1024.png + // (also used by a few examples) + const Hash256(0xB18BEBAAD1AD6724, 0xE48BCDF699BA3927, 0xDF3F258FEBE646A3, 0xAB5C62767C6BAB40), + + // packages/flutter_tools/templates/app/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_128.png + // (also used by a few examples) + const Hash256(0xF90D839A289ECADB, 0xF2B0B3400DA43EB8, 0x08B84908335AE4A0, 0x07457C4D5A56A57C), + + // packages/flutter_tools/templates/app/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_16.png + // (also used by a few examples) + const Hash256(0x592C2ABF84ADB2D3, 0x91AED8B634D3233E, 0x2C65369F06018DCD, 0x8A4B27BA755EDCBE), + + // packages/flutter_tools/templates/app/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_256.png + // (also used by a few examples) + const Hash256(0x75D9A0C034113CA8, 0xA1EC11C24B81F208, 0x6630A5A5C65C7D26, 0xA5DC03A1C0A4478C), + + // packages/flutter_tools/templates/app/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_32.png + // (also used by a few examples) + const Hash256(0xA896E65745557732, 0xC72BD4EE3A10782F, 0xE2AA95590B5AF659, 0x869E5808DB9C01C1), + + // packages/flutter_tools/templates/app/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_512.png + // (also used by a few examples) + const Hash256(0x3A69A8A1AAC5D9A8, 0x374492AF4B6D07A4, 0xCE637659EB24A784, 0x9C4DFB261D75C6A3), + + // packages/flutter_tools/templates/app/macos.tmpl/Runner/Assets.xcassets/AppIcon.appiconset/app_icon_64.png + // (also used by a few examples) + const Hash256(0xD29D4E0AF9256DC9, 0x2D0A8F8810608A5E, 0x64A132AD8B397CA2, 0xC4DDC0B1C26A68C3), + + // packages/flutter_tools/templates/app/web/icons/Icon-192.png.copy.tmpl + // dev/integration_tests/flutter_gallery/web/icons/Icon-192.png + const Hash256(0x3DCE99077602F704, 0x21C1C6B2A240BC9B, 0x83D64D86681D45F2, 0x154143310C980BE3), + + // packages/flutter_tools/templates/app/web/icons/Icon-512.png.copy.tmpl + // dev/integration_tests/flutter_gallery/web/icons/Icon-512.png + const Hash256(0xBACCB205AE45f0B4, 0x21BE1657259B4943, 0xAC40C95094AB877F, 0x3BCBE12CD544DCBE), + + // packages/flutter_tools/templates/app/web/favicon.png.copy.tmpl + // dev/integration_tests/flutter_gallery/web/favicon.png + const Hash256(0x7AB2525F4B86B65D, 0x3E4C70358A17E5A1, 0xAAF6F437f99CBCC0, 0x46DAD73d59BB9015), + + // GALLERY ICONS + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-hdpi/ic_background.png + const Hash256(0x03CFDE53C249475C, 0x277E8B8E90AC8A13, 0xE5FC13C358A94CCB, 0x67CA866C9862A0DD), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-hdpi/ic_foreground.png + const Hash256(0x86A83E23A505EFCC, 0x39C358B699EDE12F, 0xC088EE516A1D0C73, 0xF3B5D74DDAD164B1), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-hdpi/ic_launcher.png + const Hash256(0xD813B1A77320355E, 0xB68C485CD47D0F0F, 0x3C7E1910DCD46F08, 0x60A6401B8DC13647), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-xhdpi/ic_background.png + const Hash256(0x35AFA76BD5D6053F, 0xEE927436C78A8794, 0xA8BA5F5D9FC9653B, 0xE5B96567BB7215ED), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-xhdpi/ic_foreground.png + const Hash256(0x263CE9B4F1F69B43, 0xEBB08AE9FE8F80E7, 0x95647A59EF2C040B, 0xA8AEB246861A7DFF), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png + const Hash256(0x5E1A93C3653BAAFF, 0x1AAC6BCEB8DCBC2F, 0x2AE7D68ECB07E507, 0xCB1FA8354B28313A), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-xxhdpi/ic_background.png + const Hash256(0xA5C77499151DDEC6, 0xDB40D0AC7321FD74, 0x0646C0C0F786743F, 0x8F3C3C408CAC5E8C), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-xxhdpi/ic_foreground.png + const Hash256(0x33DE450980A2A16B, 0x1982AC7CDC1E7B01, 0x919E07E0289C2139, 0x65F85BCED8895FEF), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png + const Hash256(0xC3B8577F4A89BA03, 0x830944FB06C3566B, 0x4C99140A2CA52958, 0x089BFDC3079C59B7), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_background.png + const Hash256(0xDEBC241D6F9C5767, 0x8980FDD46FA7ED0C, 0x5B8ACD26BCC5E1BC, 0x473C89B432D467AD), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_foreground.png + const Hash256(0xBEFE5F7E82BF8B64, 0x148D869E3742004B, 0xF821A9F5A1BCDC00, 0x357D246DCC659DC2), + + // dev/integration_tests/flutter_gallery/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png + const Hash256(0xC385404341FF9EDD, 0x30FBE76F0EC99155, 0x8EA4F4AFE8CC0C60, 0x1CA3EDEF177E1DA8), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-1024.png + const Hash256(0x6BE5751A29F57A80, 0x36A4B31CC542C749, 0x984E49B22BD65CAA, 0x75AE8B2440848719), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-120.png + const Hash256(0x9972A2264BFA8F8D, 0x964AFE799EADC1FA, 0x2247FB31097F994A, 0x1495DC32DF071793), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-152.png + const Hash256(0x4C7CC9B09BEEDA24, 0x45F57D6967753910, 0x57D68E1A6B883D2C, 0x8C52701A74F1400F), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-167.png + const Hash256(0x66DACAC1CFE4D349, 0xDBE994CB9125FFD7, 0x2D795CFC9CF9F739, 0xEDBB06CE25082E9C), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-180.png + const Hash256(0x5188621015EBC327, 0xC9EF63AD76E60ECE, 0xE82BDC3E4ABF09E2, 0xEE0139FA7C0A2BE5), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-20.png + const Hash256(0x27D2752D04EE9A6B, 0x78410E208F74A6CD, 0xC90D9E03B73B8C60, 0xD05F7D623E790487), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-29.png + const Hash256(0xBB20556B2826CF85, 0xD5BAC73AA69C2AC3, 0x8E71DAD64F15B855, 0xB30CB73E0AF89307), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-40.png + const Hash256(0x623820FA45CDB0AC, 0x808403E34AD6A53E, 0xA3E9FDAE83EE0931, 0xB020A3A4EF2CDDE7), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-58.png + const Hash256(0xC6D631D1E107215E, 0xD4A58FEC5F3AA4B5, 0x0AE9724E07114C0C, 0x453E5D87C2CAD3B3), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-60.png + const Hash256(0x4B6F58D1EB8723C6, 0xE717A0D09FEC8806, 0x90C6D1EF4F71836E, 0x618672827979B1A2), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-76.png + const Hash256(0x0A1744CC7634D508, 0xE85DD793331F0C8A, 0x0B7C6DDFE0975D8F, 0x29E91C905BBB1BED), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-80.png + const Hash256(0x24032FBD1E6519D6, 0x0BA93C0D5C189554, 0xF50EAE23756518A2, 0x3FABACF4BD5DAF08), + + // dev/integration_tests/flutter_gallery/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-87.png + const Hash256(0xC17BAE6DF6BB234A, 0xE0AF4BEB0B805F12, 0x14E74EB7AA9A30F1, 0x5763689165DA7DDF), + + + // STOCKS ICONS + + // dev/benchmarks/test_apps/stocks/android/app/src/main/res/mipmap-hdpi/ic_launcher.png + const Hash256(0x74052AB5241D4418, 0x7085180608BC3114, 0xD12493C50CD8BBC7, 0x56DED186C37ACE84), + + // dev/benchmarks/test_apps/stocks/android/app/src/main/res/mipmap-mdpi/ic_launcher.png + const Hash256(0xE37947332E3491CB, 0x82920EE86A086FEA, 0xE1E0A70B3700A7DA, 0xDCAFBDD8F40E2E19), + + // dev/benchmarks/test_apps/stocks/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png + const Hash256(0xE608CDFC0C8579FB, 0xE38873BAAF7BC944, 0x9C9D2EE3685A4FAE, 0x671EF0C8BC41D17C), + + // dev/benchmarks/test_apps/stocks/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png + const Hash256(0xBD53D86977DF9C54, 0xF605743C5ABA114C, 0x9D51D1A8BB917E1A, 0x14CAA26C335CAEBD), + + // dev/benchmarks/test_apps/stocks/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png + const Hash256(0x64E4D02262C4F3D0, 0xBB4FDC21CD0A816C, 0x4CD2A0194E00FB0F, 0x1C3AE4142FAC0D15), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png + const Hash256(0x5BA3283A76918FC0, 0xEE127D0F22D7A0B6, 0xDF03DAED61669427, 0x93D89DDD87A08117), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png + const Hash256(0xCD7F26ED31DEA42A, 0x535D155EC6261499, 0x34E6738255FDB2C4, 0xBD8D4BDDE9A99B05), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-76.png + const Hash256(0x3FA1225FC9A96A7E, 0xCD071BC42881AB0E, 0x7747EB72FFB72459, 0xA37971BBAD27EE24), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png + const Hash256(0xCD867001ACD7BBDB, 0x25CDFD452AE89FA2, 0x8C2DC980CAF55F48, 0x0B16C246CFB389BC), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png + const Hash256(0x848E9736E5C4915A, 0x7945BCF6B32FD56B, 0x1F1E7CDDD914352E, 0xC9681D38EF2A70DA), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Notification.png + const Hash256(0x654BA7D6C4E05CA0, 0x7799878884EF8F11, 0xA383E1F24CEF5568, 0x3C47604A966983C8), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40.png + const Hash256(0x743056FE7D83FE42, 0xA2990825B6AD0415, 0x1AF73D0D43B227AA, 0x07EBEA9B767381D9), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png + const Hash256(0xA7E1570812D119CF, 0xEF4B602EF28DD0A4, 0x100D066E66F5B9B9, 0x881765DC9303343B), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png + const Hash256(0xB4102839A1E41671, 0x62DACBDEFA471953, 0xB1EE89A0AB7594BE, 0x1D9AC1E67DC2B2CE), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small.png + const Hash256(0x70AC6571B593A967, 0xF1CBAEC9BC02D02D, 0x93AD766D8290ADE6, 0x840139BF9F219019), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png + const Hash256(0x5D87A78386DA2C43, 0xDDA8FEF2CA51438C, 0xE5A276FE28C6CF0A, 0xEBE89085B56665B6), + + // dev/benchmarks/test_apps/stocks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png + const Hash256(0x4D9F5E81F668DA44, 0xB20A77F8BF7BA2E1, 0xF384533B5AD58F07, 0xB3A2F93F8635CD96), + + + // LEGACY ICONS + + // dev/benchmarks/complex_layout/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png + // dev/benchmarks/microbenchmarks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png + // examples/flutter_view/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png + // (not really sure where this came from, or why neither the template nor most examples use them) + const Hash256(0x6E645DC9ED913AAD, 0xB50ED29EEB16830D, 0xB32CA12F39121DB9, 0xB7BC1449DDDBF8B8), + + // dev/benchmarks/macrobenchmarks/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png + // dev/integration_tests/codegen/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png + // dev/integration_tests/ios_add2app/ios_add2app/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png + // dev/integration_tests/release_smoke_test/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png + const Hash256(0xDEFAC77E08EC71EC, 0xA04CCA3C95D1FC33, 0xB9F26E1CB15CB051, 0x47DEFC79CDD7C158), + + // examples/flutter_view/ios/Runner/ic_add.png + // examples/platform_view/ios/Runner/ic_add.png + const Hash256(0x3CCE7450334675E2, 0xE3AABCA20B028993, 0x127BE82FE0EB3DFF, 0x8B027B3BAF052F2F), + + // examples/image_list/images/coast.jpg + const Hash256(0xDA957FD30C51B8D2, 0x7D74C2C918692DC4, 0xD3C5C99BB00F0D6B, 0x5EBB30395A6EDE82), + + // examples/image_list/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png + const Hash256(0xB5792CA06F48A431, 0xD4379ABA2160BD5D, 0xE92339FC64C6A0D3, 0x417AA359634CD905), + + + // TEST ASSETS + + // dev/benchmarks/macrobenchmarks/assets/999x1000.png + const Hash256(0x553E9C36DFF3E610, 0x6A608BDE822A0019, 0xDE4F1769B6FBDB97, 0xBC3C20E26B839F59), + + // dev/bots/test/analyze-test-input/root/packages/foo/serviceaccount.enc + const Hash256(0xA8100AE6AA1940D0, 0xB663BB31CD466142, 0xEBBDBD5187131B92, 0xD93818987832EB89), + + // dev/automated_tests/icon/test.png + const Hash256(0xE214B4A0FEEEC6FA, 0x8E7AA8CC9BFBEC40, 0xBCDAC2F2DEBC950F, 0x75AF8EBF02BCE459), + + // dev/integration_tests/android_splash_screens/splash_screen_kitchen_sink/android/app/src/main/res/drawable-land-xxhdpi/flutter_splash_screen.png + // dev/integration_tests/android_splash_screens/splash_screen_kitchen_sink/android/app/src/main/res/mipmap-land-xxhdpi/flutter_splash_screen.png + const Hash256(0x2D4F8D7A3DFEF9D3, 0xA0C66938E169AB58, 0x8C6BBBBD1973E34E, 0x03C428416D010182), + + // dev/integration_tests/android_splash_screens/splash_screen_kitchen_sink/android/app/src/main/res/drawable-xxhdpi/flutter_splash_screen.png + // dev/integration_tests/android_splash_screens/splash_screen_kitchen_sink/android/app/src/main/res/mipmap-xxhdpi/flutter_splash_screen.png + const Hash256(0xCD46C01BAFA3B243, 0xA6AA1645EEDDE481, 0x143AC8ABAB1A0996, 0x22CAA9D41F74649A), + + // dev/integration_tests/flutter_driver_screenshot_test/assets/red_square.png + const Hash256(0x40054377E1E084F4, 0x4F4410CE8F44C210, 0xABA945DFC55ED0EF, 0x23BDF9469E32F8D3), + + // dev/integration_tests/flutter_driver_screenshot_test/test_driver/goldens/red_square_image/iPhone7,2.png + const Hash256(0x7F9D27C7BC418284, 0x01214E21CA886B2F, 0x40D9DA2B31AE7754, 0x71D68375F9C8A824), + + // examples/flutter_view/assets/flutter-mark-square-64.png + // examples/platform_view/assets/flutter-mark-square-64.png + const Hash256(0xF416B0D8AC552EC8, 0x819D1F492D1AB5E6, 0xD4F20CF45DB47C22, 0x7BB431FEFB5B67B2), + + // packages/flutter_tools/test/data/intellij/plugins/Dart/lib/Dart.jar + const Hash256(0x576E489D788A13DB, 0xBF40E4A39A3DAB37, 0x15CCF0002032E79C, 0xD260C69B29E06646), + + // packages/flutter_tools/test/data/intellij/plugins/flutter-intellij.jar + const Hash256(0x4C67221E25626CB2, 0x3F94E1F49D34E4CF, 0x3A9787A514924FC5, 0x9EF1E143E5BC5690), + + + // MISCELLANEOUS + + // dev/bots/serviceaccount.enc + const Hash256(0x1F19ADB4D80AFE8C, 0xE61899BA776B1A8D, 0xCA398C75F5F7050D, 0xFB0E72D7FBBBA69B), + + // dev/docs/favicon.ico + const Hash256(0x67368CA1733E933A, 0xCA3BC56EF0695012, 0xE862C371AD4412F0, 0x3EC396039C609965), + + // dev/snippets/assets/code_sample.png + const Hash256(0xAB2211A47BDA001D, 0x173A52FD9C75EBC7, 0xE158942FFA8243AD, 0x2A148871990D4297), + + // dev/snippets/assets/code_snippet.png + const Hash256(0xDEC70574DA46DFBB, 0xFA657A771F3E1FBD, 0xB265CFC6B2AA5FE3, 0x93BA4F325D1520BA), + + // packages/flutter_tools/static/Ahem.ttf + const Hash256(0x63D2ABD0041C3E3B, 0x4B52AD8D382353B5, 0x3C51C6785E76CE56, 0xED9DACAD2D2E31C4), +}; + +Future verifyNoBinaries(String workingDirectory, { Set? legacyBinaries }) async { + // Please do not add anything to the _legacyBinaries set above. + // We have a policy of not checking in binaries into this repository. + // If you are adding/changing template images, use the flutter_template_images + // package and a .img.tmpl placeholder instead. + // If you have other binaries to add, please consult Hixie for advice. + assert( + _legacyBinaries + .expand((Hash256 hash) => [hash.a, hash.b, hash.c, hash.d]) + .reduce((int value, int element) => value ^ element) == 0x606B51C908B40BFA // Please do not modify this line. + ); + legacyBinaries ??= _legacyBinaries; + if (!Platform.isWindows) { // TODO(ianh): Port this to Windows + final List files = await _gitFiles(workingDirectory); + final List problems = []; + for (final File file in files) { + final Uint8List bytes = file.readAsBytesSync(); + try { + utf8.decode(bytes); + } on FormatException catch (error) { + final Digest digest = sha256.convert(bytes); + if (!legacyBinaries.contains(Hash256.fromDigest(digest))) { + problems.add('${file.path}:${error.offset}: file is not valid UTF-8'); + } + } + } + if (problems.isNotEmpty) { + foundError([ + ...problems, + 'All files in this repository must be UTF-8. In particular, images and other binaries', + 'must not be checked into this repository. This is because we are very sensitive to the', + 'size of the repository as it is distributed to all our developers. If you have a binary', + 'to which you need access, you should consider how to fetch it from another repository;', + 'for example, the "assets-for-api-docs" repository is used for images in API docs.', + 'To add assets to flutter_tools templates, see the instructions in the wiki:', + 'https://github.com/flutter/flutter/wiki/Managing-template-image-assets', + ]); + } + } +} + + +// UTILITY FUNCTIONS + +bool _listEquals(List a, List b) { + if (a.length != b.length) { + return false; + } + for (int index = 0; index < a.length; index += 1) { + if (a[index] != b[index]) { + return false; + } + } + return true; +} + +Future> _gitFiles(String workingDirectory, {bool runSilently = true}) async { + final EvalResult evalResult = await _evalCommand( + 'git', ['ls-files', '-z'], + workingDirectory: workingDirectory, + runSilently: runSilently, + ); + if (evalResult.exitCode != 0) { + foundError([ + 'git ls-files failed with exit code ${evalResult.exitCode}', + '${bold}stdout:$reset', + evalResult.stdout, + '${bold}stderr:$reset', + evalResult.stderr, + ]); + } + final List filenames = evalResult + .stdout + .split('\x00'); + assert(filenames.last.isEmpty); // git ls-files gives a trailing blank 0x00 + filenames.removeLast(); + return filenames + .map((String filename) => File(path.join(workingDirectory, filename))) + .toList(); +} + +Stream _allFiles(String workingDirectory, String? extension, { required int minimumMatches }) async* { + final Set gitFileNamesSet = {}; + gitFileNamesSet.addAll((await _gitFiles(workingDirectory)).map((File f) => path.canonicalize(f.absolute.path))); + + assert(extension == null || !extension.startsWith('.'), 'Extension argument should not start with a period.'); + final Set pending = { Directory(workingDirectory) }; + int matches = 0; + while (pending.isNotEmpty) { + final FileSystemEntity entity = pending.first; + pending.remove(entity); + if (path.extension(entity.path) == '.tmpl') { + continue; + } + if (entity is File) { + if (!gitFileNamesSet.contains(path.canonicalize(entity.absolute.path))) { + continue; + } + if (_isGeneratedPluginRegistrant(entity)) { + continue; + } + if (path.basename(entity.path) == 'flutter_export_environment.sh') { + continue; + } + if (path.basename(entity.path) == 'gradlew.bat') { + continue; + } + if (path.basename(entity.path) == '.DS_Store') { + continue; + } + if (extension == null || path.extension(entity.path) == '.$extension') { + matches += 1; + yield entity; + } + } else if (entity is Directory) { + if (File(path.join(entity.path, '.dartignore')).existsSync()) { + continue; + } + if (path.basename(entity.path) == '.git') { + continue; + } + if (path.basename(entity.path) == '.idea') { + continue; + } + if (path.basename(entity.path) == '.gradle') { + continue; + } + if (path.basename(entity.path) == '.dart_tool') { + continue; + } + if (path.basename(entity.path) == '.idea') { + continue; + } + if (path.basename(entity.path) == 'build') { + continue; + } + pending.addAll(entity.listSync()); + } + } + assert(matches >= minimumMatches, 'Expected to find at least $minimumMatches files with extension ".$extension" in "$workingDirectory", but only found $matches.'); +} + +class EvalResult { + EvalResult({ + required this.stdout, + required this.stderr, + this.exitCode = 0, + }); + + final String stdout; + final String stderr; + final int exitCode; +} + +// TODO(ianh): Refactor this to reuse the code in run_command.dart +Future _evalCommand(String executable, List arguments, { + required String workingDirectory, + Map? environment, + bool allowNonZeroExit = false, + bool runSilently = false, +}) async { + final String commandDescription = '${path.relative(executable, from: workingDirectory)} ${arguments.join(' ')}'; + final String relativeWorkingDir = path.relative(workingDirectory); + + if (!runSilently) { + print('RUNNING: cd $cyan$relativeWorkingDir$reset; $green$commandDescription$reset'); + } + + final Stopwatch time = Stopwatch()..start(); + final Process process = await Process.start(executable, arguments, + workingDirectory: workingDirectory, + environment: environment, + ); + + final Future>> savedStdout = process.stdout.toList(); + final Future>> savedStderr = process.stderr.toList(); + final int exitCode = await process.exitCode; + final EvalResult result = EvalResult( + stdout: utf8.decode((await savedStdout).expand((List ints) => ints).toList()), + stderr: utf8.decode((await savedStderr).expand((List ints) => ints).toList()), + exitCode: exitCode, + ); + + if (!runSilently) { + print('ELAPSED TIME: $bold${prettyPrintDuration(time.elapsed)}$reset for $commandDescription in $relativeWorkingDir'); + } + + if (exitCode != 0 && !allowNonZeroExit) { + foundError([ + result.stderr, + '${bold}ERROR:$red Last command exited with $exitCode.$reset', + '${bold}Command:$red $commandDescription$reset', + '${bold}Relative working directory:$red $relativeWorkingDir$reset', + ]); + } + + return result; +} + +Future _checkConsumerDependencies() async { + const List kCorePackages = [ + 'flutter', + 'flutter_test', + 'flutter_driver', + 'flutter_localizations', + 'integration_test', + 'fuchsia_remote_debug_protocol', + ]; + final Set dependencies = {}; + + // Parse the output of pub deps --json to determine all of the + // current packages used by the core set of flutter packages. + for (final String package in kCorePackages) { + final ProcessResult result = await Process.run(flutter, [ + 'pub', + 'deps', + '--json', + '--directory=${path.join(flutterRoot, 'packages', package)}', + ]); + if (result.exitCode != 0) { + foundError([ + result.stdout.toString(), + result.stderr.toString(), + ]); + return; + } + final Map rawJson = json.decode(result.stdout as String) as Map; + final Map> dependencyTree = >{ + for (final Map package in (rawJson['packages']! as List).cast>()) + package['name']! as String : package, + }; + final List> workset = >[]; + workset.add(dependencyTree[package]!); + + while (workset.isNotEmpty) { + final Map currentPackage = workset.removeLast(); + if (currentPackage['kind'] == 'dev') { + continue; + } + dependencies.add(currentPackage['name']! as String); + + final List currentDependencies = (currentPackage['dependencies']! as List).cast(); + for (final String dependency in currentDependencies) { + // Don't add dependencies we've already seen or we will get stuck + // forever if there are any circular references. + // TODO(dantup): Consider failing gracefully with the names of the + // packages once the cycle between test_api and matcher is resolved. + // https://github.com/dart-lang/test/issues/1979 + if (!dependencies.contains(dependency)) { + workset.add(dependencyTree[dependency]!); + } + } + } + } + + final Set removed = kCorePackageAllowList.difference(dependencies); + final Set added = dependencies.difference(kCorePackageAllowList); + + String plural(int n, String s, String p) => n == 1 ? s : p; + + if (added.isNotEmpty) { + foundError([ + 'The transitive closure of package dependencies contains ${plural(added.length, "a non-allowlisted package", "non-allowlisted packages")}:', + ' ${added.join(', ')}', + 'We strongly desire to keep the number of dependencies to a minimum and', + 'therefore would much prefer not to add new dependencies.', + 'See dev/bots/allowlist.dart for instructions on how to update the package', + 'allowlist if you nonetheless believe this is a necessary addition.', + ]); + } + + if (removed.isNotEmpty) { + foundError([ + 'Excellent news! ${plural(removed.length, "A package dependency has been removed!", "Multiple package dependencies have been removed!")}', + ' ${removed.join(', ')}', + 'To make sure we do not accidentally add ${plural(removed.length, "this dependency", "these dependencies")} back in the future,', + 'please remove ${plural(removed.length, "this", "these")} packages from the allow-list in dev/bots/allowlist.dart.', + 'Thanks!', + ]); + } +} + +const String _kDebugOnlyAnnotation = '@_debugOnly'; +final RegExp _nullInitializedField = RegExp(r'kDebugMode \? [\w<> ,{}()]+ : null;'); + +Future verifyNullInitializedDebugExpensiveFields(String workingDirectory, {int minimumMatches = 400}) async { + final String flutterLib = path.join(workingDirectory, 'packages', 'flutter', 'lib'); + final List files = await _allFiles(flutterLib, 'dart', minimumMatches: minimumMatches) + .toList(); + final List errors = []; + for (final File file in files) { + final List lines = file.readAsLinesSync(); + for (int index = 0; index < lines.length; index += 1) { + final String line = lines[index]; + if (!line.contains(_kDebugOnlyAnnotation)) { + continue; + } + final String nextLine = lines[index + 1]; + if (_nullInitializedField.firstMatch(nextLine) == null) { + errors.add('${file.path}:$index'); + } + } + } + if (errors.isNotEmpty) { + foundError([ + '${bold}ERROR: ${red}fields annotated with @_debugOnly must null initialize.$reset', + 'to ensure both the field and initializer are removed from profile/release mode.', + 'These fields should be written as:\n', + 'field = kDebugMode ? : null;\n', + 'Errors were found in the following files:', + ...errors, + ]); + } +} + +final RegExp tabooPattern = RegExp(r'^ *///.*\b(simply|note:|note that)\b', caseSensitive: false); + +Future verifyTabooDocumentation(String workingDirectory, { int minimumMatches = 100 }) async { + final List errors = []; + await for (final File file in _allFiles(workingDirectory, 'dart', minimumMatches: minimumMatches)) { + final List lines = file.readAsLinesSync(); + for (int index = 0; index < lines.length; index += 1) { + final String line = lines[index]; + final Match? match = tabooPattern.firstMatch(line); + if (match != null) { + errors.add('${file.path}:${index + 1}: Found use of the taboo word "${match.group(1)}" in documentation string.'); + } + } + } + if (errors.isNotEmpty) { + foundError([ + '${bold}Avoid the word "simply" in documentation. See https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#use-the-passive-voice-recommend-do-not-require-never-say-things-are-simple for details.$reset', + '${bold}In many cases these words can be omitted without loss of generality; in other cases it may require a bit of rewording to avoid implying that the task is simple.$reset', + '${bold}Similarly, avoid using "note:" or the phrase "note that". See https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#avoid-empty-prose for details.$reset', + ...errors, + ]); + } +} + +const List _kIgnoreList = [ + 'Runner.rc.tmpl', + 'flutter_window.cpp', +]; +final String _kIntegrationTestsRelativePath = path.join('dev', 'integration_tests'); +final String _kTemplateRelativePath = path.join('packages', 'flutter_tools', 'templates', 'app_shared', 'windows.tmpl', 'runner'); +final String _kWindowsRunnerSubPath = path.join('windows', 'runner'); +const String _kProjectNameKey = '{{projectName}}'; +const String _kTmplExt = '.tmpl'; +final String _kLicensePath = path.join('dev', 'conductor', 'core', 'lib', 'src', 'proto', 'license_header.txt'); + +String _getFlutterLicense(String flutterRoot) { + return '${File(path.join(flutterRoot, _kLicensePath)).readAsLinesSync().join("\n")}\n\n'; +} + +String _removeLicenseIfPresent(String fileContents, String license) { + if (fileContents.startsWith(license)) { + return fileContents.substring(license.length); + } + return fileContents; +} + +Future verifyIntegrationTestTemplateFiles(String flutterRoot) async { + final List errors = []; + final String license = _getFlutterLicense(flutterRoot); + final String integrationTestsPath = path.join(flutterRoot, _kIntegrationTestsRelativePath); + final String templatePath = path.join(flutterRoot, _kTemplateRelativePath); + final IterablesubDirs = Directory(integrationTestsPath).listSync().toList().whereType(); + for (final Directory testPath in subDirs) { + final String projectName = path.basename(testPath.path); + final String runnerPath = path.join(testPath.path, _kWindowsRunnerSubPath); + final Directory runner = Directory(runnerPath); + if (!runner.existsSync()) { + continue; + } + final Iterable files = Directory(templatePath).listSync().toList().whereType(); + for (final File templateFile in files) { + final String fileName = path.basename(templateFile.path); + if (_kIgnoreList.contains(fileName)) { + continue; + } + String templateFileContents = templateFile.readAsLinesSync().join('\n'); + String appFilePath = path.join(runnerPath, fileName); + if (fileName.endsWith(_kTmplExt)) { + appFilePath = appFilePath.substring(0, appFilePath.length - _kTmplExt.length); // Remove '.tmpl' from app file path + templateFileContents = templateFileContents.replaceAll(_kProjectNameKey, projectName); // Substitute template project name + } + String appFileContents = File(appFilePath).readAsLinesSync().join('\n'); + appFileContents = _removeLicenseIfPresent(appFileContents, license); + if (appFileContents != templateFileContents) { + int indexOfDifference; + for (indexOfDifference = 0; indexOfDifference < appFileContents.length; indexOfDifference++) { + if (indexOfDifference >= templateFileContents.length || templateFileContents.codeUnitAt(indexOfDifference) != appFileContents.codeUnitAt(indexOfDifference)) { + break; + } + } + final String error = ''' +Error: file $fileName mismatched for integration test $testPath +Verify the integration test has been migrated to the latest app template. +=====$appFilePath====== +$appFileContents +=====${templateFile.path}====== +$templateFileContents +========== +Diff at character #$indexOfDifference + '''; + errors.add(error); + } + } + } + if (errors.isNotEmpty) { + foundError(errors); + } +} + +Future _runFlutterAnalyze(String workingDirectory, { + List options = const [], + String? failureMessage, +}) async { + return runCommand( + flutter, + ['analyze', ...options], + workingDirectory: workingDirectory, + failureMessage: failureMessage, + ); +} + +// These files legitimately require executable permissions +const Set kExecutableAllowlist = { + 'bin/dart', + 'bin/flutter', + 'bin/internal/update_dart_sdk.sh', + + 'dev/bots/accept_android_sdk_licenses.sh', + 'dev/bots/codelabs_build_test.sh', + 'dev/bots/docs.sh', + + 'dev/conductor/bin/conductor', + 'dev/conductor/bin/packages_autoroller', + 'dev/conductor/core/lib/src/proto/compile_proto.sh', + + 'dev/customer_testing/ci.sh', + + 'dev/integration_tests/flutter_gallery/tool/run_instrumentation_test.sh', + + 'dev/integration_tests/ios_add2app_life_cycle/build_and_test.sh', + + 'dev/integration_tests/deferred_components_test/download_assets.sh', + 'dev/integration_tests/deferred_components_test/run_release_test.sh', + + 'dev/tools/gen_keycodes/bin/gen_keycodes', + 'dev/tools/repackage_gradle_wrapper.sh', + + 'packages/flutter_tools/bin/macos_assemble.sh', + 'packages/flutter_tools/bin/tool_backend.sh', + 'packages/flutter_tools/bin/xcode_backend.sh', +}; + +Future _checkForNewExecutables() async { + // 0b001001001 + const int executableBitMask = 0x49; + final List files = await _gitFiles(flutterRoot); + final List errors = []; + for (final File file in files) { + final String relativePath = path.relative( + file.path, + from: flutterRoot, + ); + final FileStat stat = file.statSync(); + final bool isExecutable = stat.mode & executableBitMask != 0x0; + if (isExecutable && !kExecutableAllowlist.contains(relativePath)) { + errors.add('$relativePath is executable: ${(stat.mode & 0x1FF).toRadixString(2)}'); + } + } + if (errors.isNotEmpty) { + throw Exception( + '${errors.join('\n')}\n' + 'found ${errors.length} unexpected executable file' + '${errors.length == 1 ? '' : 's'}! If this was intended, you ' + 'must add this file to kExecutableAllowlist in dev/bots/analyze.dart', + ); + } +} + +final RegExp _importPattern = RegExp(r'''^\s*import (['"])package:flutter/([^.]+)\.dart\1'''); +final RegExp _importMetaPattern = RegExp(r'''^\s*import (['"])package:meta/meta\.dart\1'''); + +Future> _findFlutterDependencies(String srcPath, List errors, { bool checkForMeta = false }) async { + return _allFiles(srcPath, 'dart', minimumMatches: 1) + .map>((File file) { + final Set result = {}; + for (final String line in file.readAsLinesSync()) { + Match? match = _importPattern.firstMatch(line); + if (match != null) { + result.add(match.group(2)!); + } + if (checkForMeta) { + match = _importMetaPattern.firstMatch(line); + if (match != null) { + errors.add( + '${file.path}\nThis package imports the ${yellow}meta$reset package.\n' + 'You should instead import the "foundation.dart" library.' + ); + } + } + } + return result; + }) + .reduce((Set? value, Set element) { + value ??= {}; + value.addAll(element); + return value; + }); +} + +List? _deepSearch(Map> map, T start, [ Set? seen ]) { + if (map[start] == null) { + return null; // We catch these separately. + } + + for (final T key in map[start]!) { + if (key == start) { + continue; // we catch these separately + } + if (seen != null && seen.contains(key)) { + return [start, key]; + } + final List? result = _deepSearch( + map, + key, + { + if (seen == null) start else ...seen, + key, + }, + ); + if (result != null) { + result.insert(0, start); + // Only report the shortest chains. + // For example a->b->a, rather than c->a->b->a. + // Since we visit every node, we know the shortest chains are those + // that start and end on the loop. + if (result.first == result.last) { + return result; + } + } + } + return null; +} + +bool _isGeneratedPluginRegistrant(File file) { + final String filename = path.basename(file.path); + return !file.path.contains('.pub-cache') + && (filename == 'GeneratedPluginRegistrant.java' || + filename == 'GeneratedPluginRegistrant.swift' || + filename == 'GeneratedPluginRegistrant.h' || + filename == 'GeneratedPluginRegistrant.m' || + filename == 'generated_plugin_registrant.dart' || + filename == 'generated_plugin_registrant.h' || + filename == 'generated_plugin_registrant.cc'); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/analyze_snippet_code.dart b/novelforge-project/agent-workspace/flutter/dev/bots/analyze_snippet_code.dart new file mode 100644 index 0000000000000000000000000000000000000000..924ae2a03efb5556998a02ec550bd6cbbd083a3d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/analyze_snippet_code.dart @@ -0,0 +1,1199 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// To run this, from the root of the Flutter repository: +// bin/cache/dart-sdk/bin/dart --enable-asserts dev/bots/analyze_snippet_code.dart + +// In general, please prefer using full linked examples in API docs. +// +// For documentation on creating sample code, see ../../examples/api/README.md +// See also our style guide's discussion on documentation and sample code: +// https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#documentation-dartdocs-javadocs-etc +// +// This tool is used to analyze smaller snippets of code in the API docs. +// Such snippets are wrapped in ```dart ... ``` blocks, which may themselves +// be wrapped in {@tool snippet} ... {@end-tool} blocks to set them apart +// in the rendered output. +// +// Such snippets: +// +// * If they start with `import` are treated as full application samples; avoid +// doing this in general, it's better to use samples as described above. (One +// exception might be in dart:ui where the sample code would end up in a +// different repository which would be awkward.) +// +// * If they start with a comment that says `// continuing from previous example...`, +// they automatically import the previous test's file. +// +// * If they start with a comment that says `// (e.g. in a stateful widget)`, +// are analyzed after being inserted into a class that inherits from State. +// +// * If they start with what looks like a getter, function declaration, or +// other top-level keyword (`class`, `typedef`, etc), or if they start with +// the keyword `final`, they are analyzed directly. +// +// * If they end with a trailing semicolon or have a line starting with a +// statement keyword like `while` or `try`, are analyzed after being inserted +// into a function body. +// +// * If they start with the word `static`, are placed in a class body before +// analysis. +// +// * Otherwise, are used as an initializer for a global variable for the +// purposes of analysis; in this case, any leading label (`foo:`) +// and any trailing comma are removed. +// +// In particular, these rules imply that starting an example with `const` means +// it is an _expression_, not a top-level declaration. This is because mostly +// `const` indicates a Widget. +// +// A line that contains just a comment with an ellipsis (`// ...`) adds an ignore +// for the `non_abstract_class_inherits_abstract_member` error for the snippet. +// This is useful when you're writing an example that extends an abstract class +// with lots of members, but you only care to show one. +// +// At the top of a file you can say `// Examples can assume:` and then list some +// commented-out declarations that will be included in the analysis for snippets +// in that file. This section may also contain explicit import statements. +// +// For files without an `// Examples can assume:` section or if that section +// contains no explicit imports, the snippets will implicitly import all the +// main Flutter packages (including material and flutter_test), as well as most +// core Dart packages with the usual prefixes. +// +// When invoked without an additional path argument, the script will analyze +// the code snippets for all packages in the "packages" subdirectory that do +// not specify "nodoc: true" in their pubspec.yaml (i.e. all packages for which +// we publish docs will have their doc code snippets analyzed). + +import 'dart:async'; +import 'dart:convert'; +import 'dart:io'; + +import 'package:args/args.dart'; +import 'package:meta/meta.dart'; +import 'package:path/path.dart' as path; +import 'package:watcher/watcher.dart'; + +final String _flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(Platform.script)))); +final String _packageFlutter = path.join(_flutterRoot, 'packages', 'flutter', 'lib'); +final String _defaultDartUiLocation = path.join(_flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib', 'ui'); +final String _flutter = path.join(_flutterRoot, 'bin', Platform.isWindows ? 'flutter.bat' : 'flutter'); + +Future main(List arguments) async { + bool asserts = false; + assert(() { asserts = true; return true; }()); + if (!asserts) { + print('You must run this script with asserts enabled.'); + exit(1); + } + int width; + try { + width = stdout.terminalColumns; + } on StdoutException { + width = 80; + } + final ArgParser argParser = ArgParser(usageLineLength: width); + argParser.addOption( + 'temp', + valueHelp: 'path', + help: 'A location where temporary files may be written. Defaults to a ' + 'directory in the system temp folder. If specified, will not be ' + 'automatically removed at the end of execution.', + ); + argParser.addFlag( + 'verbose', + negatable: false, + help: 'Print verbose output for the analysis process.', + ); + argParser.addOption( + 'dart-ui-location', + defaultsTo: _defaultDartUiLocation, + valueHelp: 'path', + help: 'A location where the dart:ui dart files are to be found. Defaults to ' + 'the sky_engine directory installed in this flutter repo. This ' + 'is typically the engine/src/flutter/lib/ui directory in an engine dev setup. ' + 'Implies --include-dart-ui.', + ); + argParser.addFlag( + 'include-dart-ui', + defaultsTo: true, + help: 'Includes the dart:ui code supplied by the engine in the analysis.', + ); + argParser.addFlag( + 'help', + negatable: false, + help: 'Print help for this command.', + ); + argParser.addOption( + 'interactive', + abbr: 'i', + valueHelp: 'file', + help: 'Analyzes the snippet code in a specified file interactively.', + ); + + final ArgResults parsedArguments; + try { + parsedArguments = argParser.parse(arguments); + } on FormatException catch (e) { + print(e.message); + print('dart --enable-asserts analyze_snippet_code.dart [options]'); + print(argParser.usage); + exit(1); + } + + if (parsedArguments['help'] as bool) { + print('dart --enable-asserts analyze_snippet_code.dart [options]'); + print(argParser.usage); + exit(0); + } + + final List flutterPackages; + if (parsedArguments.rest.length == 1) { + // Used for testing. + flutterPackages = [Directory(parsedArguments.rest.single)]; + } else { + // By default analyze snippets in all packages in the packages subdirectory + // that do not specify "nodoc: true" in their pubspec.yaml. + flutterPackages = []; + final String packagesRoot = path.join(_flutterRoot, 'packages'); + for (final FileSystemEntity entity in Directory(packagesRoot).listSync()) { + if (entity is! Directory) { + continue; + } + final File pubspec = File(path.join(entity.path, 'pubspec.yaml')); + if (!pubspec.existsSync()) { + throw StateError("Unexpected package '${entity.path}' found in packages directory"); + } + if (!pubspec.readAsStringSync().contains('nodoc: true')) { + flutterPackages.add(Directory(path.join(entity.path, 'lib'))); + } + } + assert(flutterPackages.length >= 4); + } + + final bool includeDartUi = parsedArguments.wasParsed('dart-ui-location') || parsedArguments['include-dart-ui'] as bool; + late Directory dartUiLocation; + if (((parsedArguments['dart-ui-location'] ?? '') as String).isNotEmpty) { + dartUiLocation = Directory( + path.absolute(parsedArguments['dart-ui-location'] as String)); + } else { + dartUiLocation = Directory(_defaultDartUiLocation); + } + if (!dartUiLocation.existsSync()) { + stderr.writeln('Unable to find dart:ui directory ${dartUiLocation.path}'); + exit(1); + } + + if (parsedArguments['interactive'] != null) { + await _runInteractive( + flutterPackages: flutterPackages, + tempDirectory: parsedArguments['temp'] as String?, + filePath: parsedArguments['interactive'] as String, + dartUiLocation: includeDartUi ? dartUiLocation : null, + ); + } else { + if (await _SnippetChecker( + flutterPackages, + tempDirectory: parsedArguments['temp'] as String?, + verbose: parsedArguments['verbose'] as bool, + dartUiLocation: includeDartUi ? dartUiLocation : null, + ).checkSnippets()) { + stderr.writeln('See the documentation at the top of dev/bots/analyze_snippet_code.dart for details.'); + exit(1); + } + } +} + +/// A class to represent a line of input code. +@immutable +class _Line { + const _Line({this.code = '', this.line = -1, this.indent = 0}) + : generated = false; + const _Line.generated({this.code = ''}) + : line = -1, + indent = 0, + generated = true; + + final int line; + final int indent; + final String code; + final bool generated; + + String asLocation(String filename, int column) { + return '$filename:$line:${column + indent}'; + } + + @override + String toString() => code; + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is _Line + && other.line == line + && other.indent == indent + && other.code == code + && other.generated == generated; + } + + @override + int get hashCode => Object.hash(line, indent, code, generated); +} + +@immutable +class _ErrorBase implements Comparable { + const _ErrorBase({this.file, this.line, this.column}); + final String? file; + final int? line; + final int? column; + + @override + int compareTo(Object other) { + if (other is _ErrorBase) { + if (other.file != file) { + if (other.file == null) { + return -1; + } + if (file == null) { + return 1; + } + return file!.compareTo(other.file!); + } + if (other.line != line) { + if (other.line == null) { + return -1; + } + if (line == null) { + return 1; + } + return line!.compareTo(other.line!); + } + if (other.column != column) { + if (other.column == null) { + return -1; + } + if (column == null) { + return 1; + } + return column!.compareTo(other.column!); + } + } + return toString().compareTo(other.toString()); + } +} + +@immutable +class _SnippetCheckerException extends _ErrorBase implements Exception { + const _SnippetCheckerException(this.message, {super.file, super.line}); + final String message; + + @override + String toString() { + if (file != null || line != null) { + final String fileStr = file == null ? '' : '$file:'; + final String lineStr = line == null ? '' : '$line:'; + return '$fileStr$lineStr $message'; + } else { + return message; + } + } + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is _SnippetCheckerException + && other.message == message + && other.file == file + && other.line == line; + } + + @override + int get hashCode => Object.hash(message, file, line); +} + +/// A class representing an analysis error along with the context of the error. +/// +/// Changes how it converts to a string based on the source of the error. +@immutable +class _AnalysisError extends _ErrorBase { + const _AnalysisError( + String file, + int line, + int column, + this.message, + this.errorCode, + this.source, + ) : super(file: file, line: line, column: column); + + final String message; + final String errorCode; + final _Line source; + + @override + String toString() { + return '${source.asLocation(file!, column!)}: $message ($errorCode)'; + } + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is _AnalysisError + && other.file == file + && other.line == line + && other.column == column + && other.message == message + && other.errorCode == errorCode + && other.source == source; + } + + @override + int get hashCode => Object.hash(file, line, column, message, errorCode, source); +} + +/// Checks code snippets for analysis errors. +/// +/// Extracts dartdoc content from flutter package source code, identifies code +/// sections, and writes them to a temporary directory, where 'flutter analyze' +/// is used to analyze the sources for problems. If problems are found, the +/// error output from the analyzer is parsed for details, and the problem +/// locations are translated back to the source location. +class _SnippetChecker { + /// Creates a [_SnippetChecker]. + /// + /// The positional argument is the path to the package directory for the + /// flutter package within the Flutter root dir. + /// + /// The optional `tempDirectory` argument supplies the location for the + /// temporary files to be written and analyzed. If not supplied, it defaults + /// to a system generated temp directory. + /// + /// The optional `verbose` argument indicates whether or not status output + /// should be emitted while doing the check. + /// + /// The optional `dartUiLocation` argument indicates the location of the + /// `dart:ui` code to be analyzed along with the framework code. If not + /// supplied, the default location of the `dart:ui` code in the Flutter + /// repository is used (i.e. "/bin/cache/pkg/sky_engine/lib/ui"). + _SnippetChecker( + this._flutterPackages, { + String? tempDirectory, + this.verbose = false, + Directory? dartUiLocation, + }) : _tempDirectory = _createTempDirectory(tempDirectory), + _keepTmp = tempDirectory != null, + _dartUiLocation = dartUiLocation; + + /// The prefix of each comment line + static const String _dartDocPrefix = '///'; + + /// The prefix of each comment line with a space appended. + static const String _dartDocPrefixWithSpace = '$_dartDocPrefix '; + + /// A RegExp that matches the beginning of a dartdoc snippet. + static final RegExp _dartDocSnippetBeginRegex = RegExp(r'{@tool ([^ }]+)(?:| ([^}]*))}'); + + /// A RegExp that matches the end of a dartdoc snippet. + static final RegExp _dartDocSnippetEndRegex = RegExp(r'{@end-tool}'); + + /// A RegExp that matches the start of a code block within dartdoc. + static final RegExp _codeBlockStartRegex = RegExp(r'^ */// *```dart$'); + + /// A RegExp that matches the start of a code block within a regular comment. + /// Such blocks are not analyzed. They can be used to give sample code for + /// internal (private) APIs where visibility would make analyzing the sample + /// code problematic. + static final RegExp _uncheckedCodeBlockStartRegex = RegExp(r'^ *// *```dart$'); + + /// A RegExp that matches the end of a code block within dartdoc. + static final RegExp _codeBlockEndRegex = RegExp(r'^ */// *``` *$'); + + /// A RegExp that matches a line starting with a comment or annotation + static final RegExp _nonCodeRegExp = RegExp(r'^ *(//|@)'); + + /// A RegExp that matches things that look like a function declaration. + static final RegExp _maybeFunctionDeclarationRegExp = RegExp(r'^([A-Z][A-Za-z0-9_<>, ?]*|int|double|num|bool|void)\?? (_?[a-z][A-Za-z0-9_<>]*)\(.*'); + + /// A RegExp that matches things that look like a getter. + static final RegExp _maybeGetterDeclarationRegExp = RegExp(r'^([A-Z][A-Za-z0-9_<>?]*|int|double|num|bool)\?? get (_?[a-z][A-Za-z0-9_<>]*) (?:=>|{).*'); + + /// A RegExp that matches an identifier followed by a colon, potentially with two spaces of indent. + static final RegExp _namedArgumentRegExp = RegExp(r'^(?: )?([a-zA-Z0-9_]+): '); + + /// A RegExp that matches things that look unambiguously like top-level declarations. + static final RegExp _topLevelDeclarationRegExp = RegExp(r'^(abstract|class|mixin|enum|typedef|final|extension) '); + + /// A RegExp that matches things that look unambiguously like statements. + static final RegExp _statementRegExp = RegExp(r'^(if|while|for|try) '); + + /// A RegExp that matches things that look unambiguously like declarations that must be in a class. + static final RegExp _classDeclarationRegExp = RegExp(r'^(static) '); + + /// A RegExp that matches a line that ends with a comma (and maybe a comment) + static final RegExp _trailingCommaRegExp = RegExp(r'^(.*),(| *//.*)$'); + + /// A RegExp that matches a line that ends with a semicolon (and maybe a comment) + static final RegExp _trailingSemicolonRegExp = RegExp(r'^(.*);(| *//.*)$'); + + /// A RegExp that matches a line that ends with a closing brace (and maybe a comment) + static final RegExp _trailingCloseBraceRegExp = RegExp(r'^(.*)}(| *//.*)$'); + + /// A RegExp that matches a line that only contains a commented-out ellipsis + /// (and maybe whitespace). Has three groups: before, ellipsis, after. + static final RegExp _ellipsisRegExp = RegExp(r'^( *)(// \.\.\.)( *)$'); + + /// Whether or not to print verbose output. + final bool verbose; + + /// Whether or not to keep the temp directory around after running. + /// + /// Defaults to false. + final bool _keepTmp; + + /// The temporary directory where all output is written. This will be deleted + /// automatically if there are no errors unless _keepTmp is true. + final Directory _tempDirectory; + + /// The package directories within the flutter root dir that will be checked. + final List _flutterPackages; + + /// The directory for the dart:ui code to be analyzed with the flutter code. + /// + /// If this is null, then no dart:ui code is included in the analysis. It + /// defaults to the location inside of the flutter bin/cache directory that + /// contains the dart:ui code supplied by the engine. + final Directory? _dartUiLocation; + + static List _listDartFiles(Directory directory, {bool recursive = false}) { + return directory.listSync(recursive: recursive, followLinks: false).whereType().where((File file) => path.extension(file.path) == '.dart').toList(); + } + + static const List ignoresDirectives = [ + '// ignore_for_file: directives_ordering', + '// ignore_for_file: duplicate_ignore', + '// ignore_for_file: no_leading_underscores_for_local_identifiers', + '// ignore_for_file: prefer_final_locals', + '// ignore_for_file: unnecessary_import', + '// ignore_for_file: unreachable_from_main', + '// ignore_for_file: unused_element', + '// ignore_for_file: unused_element_parameter', + '// ignore_for_file: unused_local_variable', + ]; + + /// Computes the headers needed for each snippet file. + List<_Line> get headersWithoutImports { + return _headersWithoutImports ??= ignoresDirectives.map<_Line>((String code) => _Line.generated(code: code)).toList(); + } + List<_Line>? _headersWithoutImports; + + /// Computes the headers needed for each snippet file. + List<_Line> get headersWithImports { + return _headersWithImports ??= [ + ...ignoresDirectives, + '// ignore_for_file: unused_import', + "import 'dart:async';", + "import 'dart:convert';", + "import 'dart:io';", + "import 'dart:math' as math;", + "import 'dart:typed_data';", + "import 'dart:ui' as ui;", + "import 'package:flutter_test/flutter_test.dart';", + for (final File file in _listDartFiles(Directory(_packageFlutter))) + "import 'package:flutter/${path.basename(file.path)}';", + ].map<_Line>((String code) => _Line.generated(code: code)).toList(); + } + List<_Line>? _headersWithImports; + + /// Checks all the snippets in the Dart files in [_flutterPackage] for errors. + /// Returns true if any errors are found, false otherwise. + Future checkSnippets() async { + final Map snippets = {}; + if (_dartUiLocation != null && !_dartUiLocation.existsSync()) { + stderr.writeln('Unable to analyze engine dart snippets at ${_dartUiLocation.path}.'); + } + final List filesToAnalyze = [ + for (final Directory flutterPackage in _flutterPackages) + ..._listDartFiles(flutterPackage, recursive: true), + if (_dartUiLocation != null && _dartUiLocation.existsSync()) + ..._listDartFiles(_dartUiLocation, recursive: true), + ]; + final Set errors = {}; + errors.addAll(await _extractSnippets(filesToAnalyze, snippetMap: snippets)); + errors.addAll(_analyze(snippets)); + (errors.toList()..sort()).map(_stringify).forEach(stderr.writeln); + stderr.writeln('Found ${errors.length} snippet code errors.'); + cleanupTempDirectory(); + return errors.isNotEmpty; + } + + static Directory _createTempDirectory(String? tempArg) { + if (tempArg != null) { + final Directory tempDirectory = Directory(path.join(Directory.systemTemp.absolute.path, path.basename(tempArg))); + if (path.basename(tempArg) != tempArg) { + stderr.writeln('Supplied temporary directory name should be a name, not a path. Using ${tempDirectory.absolute.path} instead.'); + } + print('Leaving temporary output in ${tempDirectory.absolute.path}.'); + // Make sure that any directory left around from a previous run is cleared out. + if (tempDirectory.existsSync()) { + tempDirectory.deleteSync(recursive: true); + } + tempDirectory.createSync(); + return tempDirectory; + } + return Directory.systemTemp.createTempSync('flutter_analyze_snippet_code.'); + } + + void recreateTempDirectory() { + _tempDirectory.deleteSync(recursive: true); + _tempDirectory.createSync(); + } + + void cleanupTempDirectory() { + if (_keepTmp) { + print('Leaving temporary directory ${_tempDirectory.path} around for your perusal.'); + } else { + try { + _tempDirectory.deleteSync(recursive: true); + } on FileSystemException catch (e) { + stderr.writeln('Failed to delete ${_tempDirectory.path}: $e'); + } + } + } + + /// Creates a name for the snippets tool to use for the snippet ID from a + /// filename and starting line number. + String _createNameFromSource(String prefix, String filename, int start) { + String snippetId = path.split(filename).join('.'); + snippetId = path.basenameWithoutExtension(snippetId); + snippetId = '$prefix.$snippetId.$start'; + return snippetId; + } + + /// Extracts the snippets from the Dart files in [files], writes them + /// to disk, and adds them to the [snippetMap]. + Future> _extractSnippets( + List files, { + required Map snippetMap, + }) async { + final List errors = []; + _SnippetFile? lastExample; + for (final File file in files) { + try { + final String relativeFilePath = path.relative(file.path, from: _flutterRoot); + final List fileLines = file.readAsLinesSync(); + final List<_Line> ignorePreambleLinesOnly = <_Line>[]; + final List<_Line> preambleLines = <_Line>[]; + final List<_Line> customImports = <_Line>[]; + bool inExamplesCanAssumePreamble = false; // Whether or not we're in the file-wide preamble section ("Examples can assume"). + bool inToolSection = false; // Whether or not we're in a code snippet + bool inDartSection = false; // Whether or not we're in a '```dart' segment. + bool inOtherBlock = false; // Whether we're in some other '```' segment. + int lineNumber = 0; + final List block = []; + late _Line startLine; + for (final String line in fileLines) { + lineNumber += 1; + final String trimmedLine = line.trim(); + if (inExamplesCanAssumePreamble) { + if (line.isEmpty) { + // end of preamble + inExamplesCanAssumePreamble = false; + } else if (!line.startsWith('// ')) { + throw _SnippetCheckerException('Unexpected content in snippet code preamble.', file: relativeFilePath, line: lineNumber); + } else { + final _Line newLine = _Line(line: lineNumber, indent: 3, code: line.substring(3)); + if (newLine.code.startsWith('import ')) { + customImports.add(newLine); + } else { + preambleLines.add(newLine); + } + if (line.startsWith('// // ignore_for_file: ')) { + ignorePreambleLinesOnly.add(newLine); + } + } + } else if (trimmedLine.startsWith(_dartDocSnippetEndRegex)) { + if (!inToolSection) { + throw _SnippetCheckerException('{@tool-end} marker detected without matching {@tool}.', file: relativeFilePath, line: lineNumber); + } + if (inDartSection) { + throw _SnippetCheckerException("Dart section didn't terminate before end of snippet", file: relativeFilePath, line: lineNumber); + } + inToolSection = false; + } else if (inDartSection) { + final RegExpMatch? snippetMatch = _dartDocSnippetBeginRegex.firstMatch(trimmedLine); + if (snippetMatch != null) { + throw _SnippetCheckerException('{@tool} found inside Dart section', file: relativeFilePath, line: lineNumber); + } + if (trimmedLine.startsWith(_codeBlockEndRegex)) { + inDartSection = false; + final _SnippetFile snippet = _processBlock(startLine, block, preambleLines, ignorePreambleLinesOnly, relativeFilePath, lastExample, customImports); + final String path = _writeSnippetFile(snippet).path; + assert(!snippetMap.containsKey(path)); + snippetMap[path] = snippet; + block.clear(); + lastExample = snippet; + } else if (trimmedLine == _dartDocPrefix) { + block.add(''); + } else { + final int index = line.indexOf(_dartDocPrefixWithSpace); + if (index < 0) { + throw _SnippetCheckerException( + 'Dart section inexplicably did not contain "$_dartDocPrefixWithSpace" prefix.', + file: relativeFilePath, + line: lineNumber, + ); + } + block.add(line.substring(index + 4)); + } + } else if (trimmedLine.startsWith(_codeBlockStartRegex)) { + if (inOtherBlock) { + throw _SnippetCheckerException( + 'Found "```dart" section in another "```" section.', + file: relativeFilePath, + line: lineNumber, + ); + } + assert(block.isEmpty); + startLine = _Line( + line: lineNumber + 1, + indent: line.indexOf(_dartDocPrefixWithSpace) + _dartDocPrefixWithSpace.length, + ); + inDartSection = true; + } else if (line.contains('```')) { + if (inOtherBlock) { + inOtherBlock = false; + } else if (line.contains('```yaml') || + line.contains('```ascii') || + line.contains('```java') || + line.contains('```objectivec') || + line.contains('```kotlin') || + line.contains('```swift') || + line.contains('```glsl') || + line.contains('```json') || + line.contains('```csv')) { + inOtherBlock = true; + } else if (line.startsWith(_uncheckedCodeBlockStartRegex)) { + // this is an intentionally-unchecked block that doesn't appear in the API docs. + inOtherBlock = true; + } else { + throw _SnippetCheckerException( + 'Found "```" in code but it did not match $_codeBlockStartRegex so something is wrong. Line was: "$line"', + file: relativeFilePath, + line: lineNumber, + ); + } + } else if (!inToolSection) { + final RegExpMatch? snippetMatch = _dartDocSnippetBeginRegex.firstMatch(trimmedLine); + if (snippetMatch != null) { + inToolSection = true; + } else if (line == '// Examples can assume:') { + if (inToolSection || inDartSection) { + throw _SnippetCheckerException( + '"// Examples can assume:" sections must come before all sample code.', + file: relativeFilePath, + line: lineNumber, + ); + } + inExamplesCanAssumePreamble = true; + } + } + } + } on _SnippetCheckerException catch (e) { + errors.add(e); + } + } + return errors; + } + + /// Process one block of snippet code (the part inside of "```" markers). Uses + /// a primitive heuristic to make snippet blocks into valid Dart code. + /// + /// `block` argument will get mutated, but is copied before this function returns. + _SnippetFile _processBlock(_Line startingLine, List block, List<_Line> assumptions, List<_Line> ignoreAssumptionsOnly, String filename, _SnippetFile? lastExample, List<_Line> customImports) { + if (block.isEmpty) { + throw _SnippetCheckerException('${startingLine.asLocation(filename, 0)}: Empty ```dart block in snippet code.'); + } + bool hasEllipsis = false; + for (int index = 0; index < block.length; index += 1) { + final Match? match = _ellipsisRegExp.matchAsPrefix(block[index]); + if (match != null) { + hasEllipsis = true; // in case the "..." is implying some overridden members, add an ignore to silence relevant warnings + break; + } + } + bool hasStatefulWidgetComment = false; + bool importPreviousExample = false; + int index = startingLine.line; + for (final String line in block) { + if (line == '// (e.g. in a stateful widget)') { + if (hasStatefulWidgetComment) { + throw _SnippetCheckerException('Example says it is in a stateful widget twice.', file: filename, line: index); + } + hasStatefulWidgetComment = true; + } else if (line == '// continuing from previous example...') { + if (importPreviousExample) { + throw _SnippetCheckerException('Example says it continues from the previous example twice.', file: filename, line: index); + } + if (lastExample == null) { + throw _SnippetCheckerException('Example says it continues from the previous example but it is the first example in the file.', file: filename, line: index); + } + importPreviousExample = true; + } else { + break; + } + index += 1; + } + final List<_Line> preamble; + if (importPreviousExample) { + preamble = <_Line>[ + ...lastExample!.code, // includes assumptions + if (hasEllipsis || hasStatefulWidgetComment) + const _Line.generated(code: '// ignore_for_file: non_abstract_class_inherits_abstract_member'), + ]; + } else { + preamble = <_Line>[ + if (hasEllipsis || hasStatefulWidgetComment) + const _Line.generated(code: '// ignore_for_file: non_abstract_class_inherits_abstract_member'), + ...assumptions, + ]; + } + final String firstCodeLine = block.firstWhere((String line) => !line.startsWith(_nonCodeRegExp)).trim(); + final String lastCodeLine = block.lastWhere((String line) => !line.startsWith(_nonCodeRegExp)).trim(); + if (firstCodeLine.startsWith('import ')) { + // probably an entire program + if (importPreviousExample) { + throw _SnippetCheckerException('An example cannot both be self-contained (with its own imports) and say it wants to import the previous example.', file: filename, line: startingLine.line); + } + if (hasStatefulWidgetComment) { + throw _SnippetCheckerException('An example cannot both be self-contained (with its own imports) and say it is in a stateful widget.', file: filename, line: startingLine.line); + } + return _SnippetFile.fromStrings( + startingLine, + block.toList(), + headersWithoutImports, + <_Line>[ + ...ignoreAssumptionsOnly, + if (hasEllipsis) + const _Line.generated(code: '// ignore_for_file: non_abstract_class_inherits_abstract_member'), + ], + 'self-contained program', + filename, + ); + } + + final List<_Line> headers = switch ((importPreviousExample, customImports.length)) { + (true, _) => <_Line>[], + (false, 0) => headersWithImports, + (false, _) => <_Line>[ + ...headersWithoutImports, + const _Line.generated(code: '// ignore_for_file: unused_import'), + ...customImports, + ] + }; + if (hasStatefulWidgetComment) { + return _SnippetFile.fromStrings( + startingLine, + prefix: 'class _State extends State {', + block.toList(), + postfix: '}', + headers, + preamble, + 'stateful widget', + filename, + ); + } else if (firstCodeLine.startsWith(_maybeGetterDeclarationRegExp) || + (firstCodeLine.startsWith(_maybeFunctionDeclarationRegExp) && lastCodeLine.startsWith(_trailingCloseBraceRegExp)) || + block.any((String line) => line.startsWith(_topLevelDeclarationRegExp))) { + // probably a top-level declaration + return _SnippetFile.fromStrings( + startingLine, + block.toList(), + headers, + preamble, + 'top-level declaration', + filename, + ); + } else if (lastCodeLine.startsWith(_trailingSemicolonRegExp) || + block.any((String line) => line.startsWith(_statementRegExp))) { + // probably a statement + return _SnippetFile.fromStrings( + startingLine, + prefix: 'Future function() async {', + block.toList(), + postfix: '}', + headers, + preamble, + 'statement', + filename, + ); + } else if (firstCodeLine.startsWith(_classDeclarationRegExp)) { + // probably a static method + return _SnippetFile.fromStrings( + startingLine, + prefix: 'class Class {', + block.toList(), + postfix: '}', + headers, + <_Line>[ + ...preamble, + const _Line.generated(code: '// ignore_for_file: avoid_classes_with_only_static_members'), + ], + 'class declaration', + filename, + ); + } else { + // probably an expression + if (firstCodeLine.startsWith(_namedArgumentRegExp)) { + // This is for snippets like: + // + // ```dart + // // bla bla + // foo: 2, + // ``` + // + // This section removes the label. + for (int index = 0; index < block.length; index += 1) { + final Match? prefix = _namedArgumentRegExp.matchAsPrefix(block[index]); + if (prefix != null) { + block[index] = block[index].substring(prefix.group(0)!.length); + break; + } + } + } + // strip trailing comma, if any + for (int index = block.length - 1; index >= 0; index -= 1) { + if (!block[index].startsWith(_nonCodeRegExp)) { + final Match? lastLine = _trailingCommaRegExp.matchAsPrefix(block[index]); + if (lastLine != null) { + block[index] = lastLine.group(1)! + lastLine.group(2)!; + } + break; + } + } + return _SnippetFile.fromStrings( + startingLine, + prefix: 'dynamic expression = ', + block.toList(), + postfix: ';', + headers, + preamble, + 'expression', + filename, + ); + } + } + + /// Creates the configuration files necessary for the analyzer to consider + /// the temporary directory a package, and sets which lint rules to enforce. + void _createConfigurationFiles() { + final File targetPubSpec = File(path.join(_tempDirectory.path, 'pubspec.yaml')); + if (!targetPubSpec.existsSync()) { + // Copying pubspec.yaml from examples/api into temp directory. + final File sourcePubSpec = File(path.join(_flutterRoot, 'examples', 'api', 'pubspec.yaml')); + if (!sourcePubSpec.existsSync()) { + throw 'Cannot find pubspec.yaml at ${sourcePubSpec.path}, which is also used to analyze code snippets.'; + } + sourcePubSpec.copySync(targetPubSpec.path); + } + final File targetAnalysisOptions = File(path.join(_tempDirectory.path, 'analysis_options.yaml')); + if (!targetAnalysisOptions.existsSync()) { + // Use the same analysis_options.yaml configuration that's used for examples/api. + final File sourceAnalysisOptions = File(path.join(_flutterRoot, 'examples', 'api', 'analysis_options.yaml')); + if (!sourceAnalysisOptions.existsSync()) { + throw 'Cannot find analysis_options.yaml at ${sourceAnalysisOptions.path}, which is also used to analyze code snippets.'; + } + targetAnalysisOptions + ..createSync(recursive: true) + ..writeAsStringSync('include: ${sourceAnalysisOptions.absolute.path}'); + } + } + + /// Writes out a snippet section to the disk and returns the file. + File _writeSnippetFile(_SnippetFile snippetFile) { + final String snippetFileId = _createNameFromSource('snippet', snippetFile.filename, snippetFile.indexLine); + final File outputFile = File(path.join(_tempDirectory.path, '$snippetFileId.dart'))..createSync(recursive: true); + final String contents = snippetFile.code.map((_Line line) => line.code).join('\n').trimRight(); + outputFile.writeAsStringSync('$contents\n'); + return outputFile; + } + + /// Starts the analysis phase of checking the snippets by invoking the analyzer + /// and parsing its output. Returns the errors, if any. + List _analyze(Map snippets) { + final List analyzerOutput = _runAnalyzer(); + final List errors = []; + final String kBullet = Platform.isWindows ? ' - ' : ' • '; + // RegExp to match an error output line of the analyzer. + final RegExp errorPattern = RegExp( + '^ *(?[a-z]+)' + '$kBullet(?.+)' + '$kBullet(?.+):(?[0-9]+):(?[0-9]+)' + '$kBullet(?[-a-z_]+)\$', + caseSensitive: false, + ); + + for (final String error in analyzerOutput) { + final RegExpMatch? match = errorPattern.firstMatch(error); + if (match == null) { + errors.add(_SnippetCheckerException('Could not parse analyzer output: $error')); + continue; + } + final String message = match.namedGroup('description')!; + final File file = File(path.join(_tempDirectory.path, match.namedGroup('file'))); + final List fileContents = file.readAsLinesSync(); + final String lineString = match.namedGroup('line')!; + final String columnString = match.namedGroup('column')!; + final String errorCode = match.namedGroup('code')!; + final int lineNumber = int.parse(lineString, radix: 10); + final int columnNumber = int.parse(columnString, radix: 10); + + if (lineNumber < 1 || lineNumber > fileContents.length + 1) { + errors.add(_AnalysisError( + file.path, + lineNumber, + columnNumber, + message, + errorCode, + _Line(line: lineNumber), + )); + errors.add(_SnippetCheckerException('Error message points to non-existent line number: $error', file: file.path, line: lineNumber)); + continue; + } + + final _SnippetFile? snippet = snippets[file.path]; + if (snippet == null) { + errors.add(_SnippetCheckerException( + "Unknown section for ${file.path}. Maybe the temporary directory wasn't empty?", + file: file.path, + line: lineNumber, + )); + continue; + } + if (fileContents.length != snippet.code.length) { + errors.add(_SnippetCheckerException( + 'Unexpected file contents for ${file.path}. File has ${fileContents.length} lines but we generated ${snippet.code.length} lines:\n${snippet.code.join("\n")}', + file: file.path, + line: lineNumber, + )); + continue; + } + + late final _Line actualSource; + late final int actualLine; + late final int actualColumn; + late final String actualMessage; + int delta = 0; + while (true) { + // find the nearest non-generated line to the error + if ((lineNumber - delta > 0) && (lineNumber - delta <= snippet.code.length) && !snippet.code[lineNumber - delta - 1].generated) { + actualSource = snippet.code[lineNumber - delta - 1]; + actualLine = actualSource.line; + actualColumn = delta == 0 ? columnNumber : actualSource.code.length + 1; + actualMessage = delta == 0 ? message : '$message -- in later generated code'; + break; + } + if ((lineNumber + delta < snippet.code.length) && (lineNumber + delta >= 0) && !snippet.code[lineNumber + delta].generated) { + actualSource = snippet.code[lineNumber + delta]; + actualLine = actualSource.line; + actualColumn = 1; + actualMessage = '$message -- in earlier generated code'; + break; + } + delta += 1; + assert((lineNumber - delta > 0) || (lineNumber + delta < snippet.code.length)); + } + errors.add(_AnalysisError( + snippet.filename, + actualLine, + actualColumn, + '$actualMessage (${snippet.generatorComment})', + errorCode, + actualSource, + )); + } + return errors; + } + + /// Invokes the analyzer on the given [directory] and returns the stdout (with some lines filtered). + List _runAnalyzer() { + _createConfigurationFiles(); + // Run pub get to avoid output from getting dependencies in the analyzer + // output. + Process.runSync( + _flutter, + ['pub', 'get'], + workingDirectory: _tempDirectory.absolute.path, + ); + final ProcessResult result = Process.runSync( + _flutter, + ['--no-wrap', 'analyze', '--no-preamble', '--no-congratulate', '.'], + workingDirectory: _tempDirectory.absolute.path, + ); + final List stderr = result.stderr.toString().trim().split('\n'); + final List stdout = result.stdout.toString().trim().split('\n'); + // Remove output from building the flutter tool. + stderr.removeWhere((String line) { + return line.startsWith('Building flutter tool...') + || line.startsWith('Waiting for another flutter command to release the startup lock...') + || line.startsWith('Flutter assets will be downloaded from '); + }); + // Check out the stderr to see if the analyzer had it's own issues. + if (stderr.isNotEmpty && stderr.first.contains(RegExp(r' issues? found\. \(ran in '))) { + stderr.removeAt(0); + if (stderr.isNotEmpty && stderr.last.isEmpty) { + stderr.removeLast(); + } + } + if (stderr.isNotEmpty && stderr.any((String line) => line.isNotEmpty)) { + throw _SnippetCheckerException('Cannot analyze dartdocs; unexpected error output:\n$stderr'); + } + if (stdout.isNotEmpty && stdout.first == 'Building flutter tool...') { + stdout.removeAt(0); + } + if (stdout.isNotEmpty && stdout.first.isEmpty) { + stdout.removeAt(0); + } + return stdout; + } +} + +/// A class to represent a section of snippet code, marked by "```dart ... ```", that ends up +/// in a file we then analyze (each snippet is in its own file). +class _SnippetFile { + const _SnippetFile(this.code, this.generatorComment, this.filename, this.indexLine); + + factory _SnippetFile.fromLines( + List<_Line> code, + List<_Line> headers, + List<_Line> preamble, + String generatorComment, + String filename, + ) { + while (code.isNotEmpty && code.last.code.isEmpty) { + code.removeLast(); + } + assert(code.isNotEmpty); + final _Line firstLine = code.firstWhere((_Line line) => !line.generated); + return _SnippetFile( + <_Line>[ + ...headers, + const _Line.generated(), // blank line + if (preamble.isNotEmpty) + ...preamble, + if (preamble.isNotEmpty) + const _Line.generated(), // blank line + _Line.generated(code: '// From: $filename:${firstLine.line}'), + ...code, + ], + generatorComment, + filename, + firstLine.line, + ); + } + + factory _SnippetFile.fromStrings( + _Line firstLine, + List code, + List<_Line> headers, + List<_Line> preamble, + String generatorComment, + String filename, { + String? prefix, String? postfix, + }) { + final List<_Line> codeLines = <_Line>[ + if (prefix != null) + _Line.generated(code: prefix), + for (int i = 0; i < code.length; i += 1) + _Line(code: code[i], line: firstLine.line + i, indent: firstLine.indent), + if (postfix != null) + _Line.generated(code: postfix), + ]; + return _SnippetFile.fromLines(codeLines, headers, preamble, generatorComment, filename); + } + + final List<_Line> code; + final String generatorComment; + final String filename; + final int indexLine; +} + +Future _runInteractive({ + required String? tempDirectory, + required List flutterPackages, + required String filePath, + required Directory? dartUiLocation, +}) async { + filePath = path.isAbsolute(filePath) ? filePath : path.join(path.current, filePath); + final File file = File(filePath); + if (!file.existsSync()) { + stderr.writeln('Specified file ${file.absolute.path} does not exist or is not a file.'); + exit(1); + } + if (!path.isWithin(_flutterRoot, file.absolute.path) && + (dartUiLocation == null || !path.isWithin(dartUiLocation.path, file.absolute.path))) { + stderr.writeln( + 'Specified file ${file.absolute.path} is not within the flutter root: ' + "$_flutterRoot${dartUiLocation != null ? ' or the dart:ui location: $dartUiLocation' : ''}" + ); + exit(1); + } + + print('Starting up in interactive mode on ${path.relative(filePath, from: _flutterRoot)} ...'); + print('Type "q" to quit, or "r" to force a reload.'); + + final _SnippetChecker checker = _SnippetChecker(flutterPackages, tempDirectory: tempDirectory) + .._createConfigurationFiles(); + + ProcessSignal.sigint.watch().listen((_) { + checker.cleanupTempDirectory(); + exit(0); + }); + + bool busy = false; + Future rerun() async { + assert(!busy); + try { + busy = true; + print('\nAnalyzing...'); + checker.recreateTempDirectory(); + final Map snippets = {}; + final Set errors = {}; + errors.addAll(await checker._extractSnippets([file], snippetMap: snippets)); + errors.addAll(checker._analyze(snippets)); + stderr.writeln('\u001B[2J\u001B[H'); // Clears the old results from the terminal. + if (errors.isNotEmpty) { + (errors.toList()..sort()).map(_stringify).forEach(stderr.writeln); + stderr.writeln('Found ${errors.length} errors.'); + } else { + stderr.writeln('No issues found.'); + } + } finally { + busy = false; + } + } + await rerun(); + + stdin.lineMode = false; + stdin.echoMode = false; + stdin.transform(utf8.decoder).listen((String input) async { + switch (input.trim()) { + case 'q': + checker.cleanupTempDirectory(); + exit(0); + case 'r': + if (!busy) { + rerun(); + } + } + }); + Watcher(file.absolute.path).events.listen((_) => rerun()); +} + +String _stringify(Object object) => object.toString(); diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/bots.iml b/novelforge-project/agent-workspace/flutter/dev/bots/bots.iml new file mode 100644 index 0000000000000000000000000000000000000000..b1df2810682090e7d4604cad4a47901a1a09cda6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/bots.iml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/browser.dart b/novelforge-project/agent-workspace/flutter/dev/bots/browser.dart new file mode 100644 index 0000000000000000000000000000000000000000..b650d8153c5d76e5e3850a30a71def1114a6a207 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/browser.dart @@ -0,0 +1,109 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:io' as io; + +import 'package:flutter_devicelab/framework/browser.dart'; +import 'package:shelf/shelf.dart'; +import 'package:shelf/shelf_io.dart' as shelf_io; +import 'package:shelf_static/shelf_static.dart'; + +/// Runs Chrome, opens the given `appUrl`, and returns the result reported by the +/// app. +/// +/// The app is served from the `appDirectory`. Typically, the app is built +/// using `flutter build web` and served from `build/web`. +/// +/// The launched app is expected to report the result by sending an HTTP POST +/// request to "/test-result" containing result data as plain text body of the +/// request. This function has no opinion about what that string contains. +Future evalTestAppInChrome({ + required String appUrl, + required String appDirectory, + int serverPort = 8080, + int browserDebugPort = 8081, +}) async { + io.HttpServer? server; + Chrome? chrome; + try { + final Completer resultCompleter = Completer(); + server = await io.HttpServer.bind('localhost', serverPort); + final Cascade cascade = Cascade() + .add((Request request) async { + if (request.requestedUri.path.endsWith('/test-result')) { + resultCompleter.complete(await request.readAsString()); + return Response.ok('Test results received'); + } + return Response.notFound(''); + }) + .add(createStaticHandler(appDirectory)); + shelf_io.serveRequests(server, cascade.handler); + final io.Directory userDataDirectory = io.Directory.systemTemp.createTempSync('flutter_chrome_user_data.'); + chrome = await Chrome.launch(ChromeOptions( + headless: true, + debugPort: browserDebugPort, + url: appUrl, + userDataDirectory: userDataDirectory.path, + windowHeight: 500, + windowWidth: 500, + ), onError: resultCompleter.completeError); + return await resultCompleter.future; + } finally { + chrome?.stop(); + await server?.close(); + } +} + +typedef ServerRequestListener = void Function(Request); + +class AppServer { + AppServer._(this._server, this.chrome, this.onChromeError); + + static Future start({ + required String appUrl, + required String appDirectory, + required String cacheControl, + int serverPort = 8080, + int browserDebugPort = 8081, + bool headless = true, + List? additionalRequestHandlers, + }) async { + io.HttpServer server; + Chrome chrome; + server = await io.HttpServer.bind('localhost', serverPort); + final Handler staticHandler = createStaticHandler(appDirectory, defaultDocument: 'index.html'); + Cascade cascade = Cascade(); + if (additionalRequestHandlers != null) { + for (final Handler handler in additionalRequestHandlers) { + cascade = cascade.add(handler); + } + } + cascade = cascade.add((Request request) async { + final Response response = await staticHandler(request); + return response.change(headers: { + 'cache-control': cacheControl, + }); + }); + shelf_io.serveRequests(server, cascade.handler); + final io.Directory userDataDirectory = io.Directory.systemTemp.createTempSync('flutter_chrome_user_data.'); + final Completer chromeErrorCompleter = Completer(); + chrome = await Chrome.launch(ChromeOptions( + headless: headless, + debugPort: browserDebugPort, + url: appUrl, + userDataDirectory: userDataDirectory.path, + ), onError: chromeErrorCompleter.complete); + return AppServer._(server, chrome, chromeErrorCompleter.future); + } + + final Future onChromeError; + final io.HttpServer _server; + final Chrome chrome; + + Future stop() async { + chrome.stop(); + await _server.close(); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/check_code_samples.dart b/novelforge-project/agent-workspace/flutter/dev/bots/check_code_samples.dart new file mode 100644 index 0000000000000000000000000000000000000000..266ba631a13b68c70a8e535b0e42e12e0656f27b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/check_code_samples.dart @@ -0,0 +1,494 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// To run this, from the root of the Flutter repository: +// bin/cache/dart-sdk/bin/dart --enable-asserts dev/bots/check_code_sample_links.dart + +import 'dart:io'; + +import 'package:args/args.dart'; +import 'package:file/file.dart'; +import 'package:file/local.dart'; +import 'package:path/path.dart' as path; + +import 'utils.dart'; + +final String _scriptLocation = path.fromUri(Platform.script); +final String _flutterRoot = path.dirname(path.dirname(path.dirname(_scriptLocation))); +final String _exampleDirectoryPath = path.join(_flutterRoot, 'examples', 'api'); +final String _packageDirectoryPath = path.join(_flutterRoot, 'packages'); +final String _dartUIDirectoryPath = path.join(_flutterRoot, 'bin', 'cache', 'pkg', 'sky_engine', 'lib'); + +final List _knownUnlinkedExamples = [ + // These are template files that aren't expected to be linked. + 'examples/api/lib/sample_templates/cupertino.0.dart', + 'examples/api/lib/sample_templates/widgets.0.dart', + 'examples/api/lib/sample_templates/material.0.dart', +]; + +void main(List args) { + final ArgParser argParser = ArgParser(); + argParser.addFlag( + 'help', + negatable: false, + help: 'Print help for this command.', + ); + argParser.addOption( + 'examples', + valueHelp: 'path', + defaultsTo: _exampleDirectoryPath, + help: 'A location where the API doc examples are found.', + ); + argParser.addOption( + 'packages', + valueHelp: 'path', + defaultsTo: _packageDirectoryPath, + help: 'A location where the source code that should link the API doc examples is found.', + ); + argParser.addOption( + 'dart-ui', + valueHelp: 'path', + defaultsTo: _dartUIDirectoryPath, + help: 'A location where the source code that should link the API doc examples is found.', + ); + argParser.addOption( + 'flutter-root', + valueHelp: 'path', + defaultsTo: _flutterRoot, + help: 'The path to the root of the Flutter repo.', + ); + final ArgResults parsedArgs; + + void usage() { + print('dart --enable-asserts ${path.basename(_scriptLocation)} [options]'); + print(argParser.usage); + } + + try { + parsedArgs = argParser.parse(args); + } on FormatException catch (e) { + print(e.message); + usage(); + exit(1); + } + + if (parsedArgs['help'] as bool) { + usage(); + exit(0); + } + + const FileSystem filesystem = LocalFileSystem(); + final Directory examples = filesystem.directory(parsedArgs['examples']! as String); + final Directory packages = filesystem.directory(parsedArgs['packages']! as String); + final Directory dartUIPath = filesystem.directory(parsedArgs['dart-ui']! as String); + final Directory flutterRoot = filesystem.directory(parsedArgs['flutter-root']! as String); + + final SampleChecker checker = SampleChecker( + examples: examples, + packages: packages, + dartUIPath: dartUIPath, + flutterRoot: flutterRoot, + ); + + if (!checker.checkCodeSamples()) { + reportErrorsAndExit('Some errors were found in the API docs code samples.'); + } + reportSuccessAndExit('All examples are linked and have tests.'); +} + +class LinkInfo { + const LinkInfo(this.link, this.file, this.line); + + final String link; + final File file; + final int line; + + @override + String toString() { + return '${file.path}:$line: $link'; + } +} + +class SampleChecker { + SampleChecker({ + required this.examples, + required this.packages, + required this.dartUIPath, + required this.flutterRoot, + this.filesystem = const LocalFileSystem(), + }); + + final Directory examples; + final Directory packages; + final Directory dartUIPath; + final Directory flutterRoot; + final FileSystem filesystem; + + bool checkCodeSamples() { + filesystem.currentDirectory = flutterRoot; + + // Get a list of all the filenames in the source directory that end in "[0-9]+.dart". + final List exampleFilenames = getExampleFilenames(examples); + + // Get a list of all the example link paths that appear in the source files. + final (Set exampleLinks, Set malformedLinks) = getExampleLinks(packages); + // Also add in any that might be found in the dart:ui directory. + final (Set uiExampleLinks, Set uiMalformedLinks) = getExampleLinks(dartUIPath); + + exampleLinks.addAll(uiExampleLinks); + malformedLinks.addAll(uiMalformedLinks); + + // Get a list of the filenames that were not found in the source files. + final List missingFilenames = checkForMissingLinks(exampleFilenames, exampleLinks); + + // Get a list of any tests that are missing, as well as any that used to be + // missing, but have been implemented. + final (List missingTests, List noLongerMissing) = checkForMissingTests(exampleFilenames); + + // Remove any that we know are exceptions (examples that aren't expected to be + // linked into any source files). These are typically template files used to + // generate new examples. + missingFilenames.removeWhere((String file) => _knownUnlinkedExamples.contains(file)); + + if (missingFilenames.isEmpty && missingTests.isEmpty && noLongerMissing.isEmpty && malformedLinks.isEmpty) { + return true; + } + + if (noLongerMissing.isNotEmpty) { + final StringBuffer buffer = StringBuffer('The following tests have been implemented! Huzzah!:\n'); + for (final File name in noLongerMissing) { + buffer.writeln(' ${getRelativePath(name)}'); + } + buffer.writeln('However, they now need to be removed from the _knownMissingTests'); + buffer.write('list in the script $_scriptLocation.'); + foundError(buffer.toString().split('\n')); + } + + if (missingTests.isNotEmpty) { + final StringBuffer buffer = StringBuffer('The following example test files are missing:\n'); + for (final File name in missingTests) { + buffer.writeln(' ${getRelativePath(name)}'); + } + foundError(buffer.toString().trimRight().split('\n')); + } + + if (missingFilenames.isNotEmpty) { + final StringBuffer buffer = + StringBuffer('The following examples are not linked from any source file API doc comments:\n'); + for (final String name in missingFilenames) { + buffer.writeln(' $name'); + } + buffer.write('Either link them to a source file API doc comment, or remove them.'); + foundError(buffer.toString().split('\n')); + } + + if (malformedLinks.isNotEmpty) { + final StringBuffer buffer = + StringBuffer('The following malformed links were found in API doc comments:\n'); + for (final LinkInfo link in malformedLinks) { + buffer.writeln(' $link'); + } + buffer.write( + 'Correct the formatting of these links so that they match the exact pattern:\n' + r" r'\*\* See code in (?.+) \*\*'" + ); + foundError(buffer.toString().split('\n')); + } + return false; + } + + String getRelativePath(File file, [Directory? root]) { + root ??= flutterRoot; + return path.relative(file.absolute.path, from: root.absolute.path); + } + + List getFiles(Directory directory, [Pattern? filenamePattern]) { + final List filenames = directory + .listSync(recursive: true) + .map((FileSystemEntity entity) { + if (entity is File) { + return entity; + } else { + return null; + } + }) + .where((File? filename) => + filename != null && (filenamePattern == null || filename.absolute.path.contains(filenamePattern))) + .map((File? s) => s!) + .toList(); + return filenames; + } + + List getExampleFilenames(Directory directory) { + return getFiles( + directory.childDirectory('lib'), + RegExp(r'\d+\.dart$'), + ); + } + + (Set, Set) getExampleLinks(Directory searchDirectory) { + final List files = getFiles(searchDirectory, RegExp(r'\.dart$')); + final Set searchStrings = {}; + final Set malformedStrings = {}; + final RegExp validExampleRe = RegExp(r'\*\* See code in (?.+) \*\*'); + // Looks for some common broken versions of example links. This looks for + // something that is at minimum "///*seecode*" to indicate that it + // looks like an example link. It should be narrowed if we start gettting false + // positives. + final RegExp malformedLinkRe = RegExp(r'^(?\s*///\s*\*\*?\s*[sS][eE][eE]\s*[Cc][Oo][Dd][Ee].+\*\*?)'); + for (final File file in files) { + final String contents = file.readAsStringSync(); + final List lines = contents.split('\n'); + int count = 0; + for (final String line in lines) { + count += 1; + final RegExpMatch? validMatch = validExampleRe.firstMatch(line); + if (validMatch != null) { + searchStrings.add(validMatch.namedGroup('path')!); + } + final RegExpMatch? malformedMatch = malformedLinkRe.firstMatch(line); + // It's only malformed if it doesn't match the valid RegExp. + if (malformedMatch != null && validMatch == null) { + malformedStrings.add(LinkInfo(malformedMatch.namedGroup('malformed')!, file, count)); + } + } + } + return (searchStrings, malformedStrings); + } + + List checkForMissingLinks(List exampleFilenames, Set searchStrings) { + final List missingFilenames = []; + for (final File example in exampleFilenames) { + final String relativePath = getRelativePath(example); + if (!searchStrings.contains(relativePath)) { + missingFilenames.add(relativePath); + } + } + return missingFilenames; + } + + String getTestNameForExample(File example, Directory examples) { + final String testPath = path.dirname( + path.join( + examples.absolute.path, + 'test', + getRelativePath(example, examples.childDirectory('lib')), + ), + ); + return '${path.join(testPath, path.basenameWithoutExtension(example.path))}_test.dart'; + } + + (List, List) checkForMissingTests(List exampleFilenames) { + final List missingTests = []; + final List noLongerMissingTests = []; + for (final File example in exampleFilenames) { + final File testFile = filesystem.file(getTestNameForExample(example, examples)); + final String name = path.relative(testFile.absolute.path, from: flutterRoot.absolute.path); + if (!testFile.existsSync()) { + missingTests.add(testFile); + } else if (_knownMissingTests.contains(name.replaceAll(r'\', '/'))) { + noLongerMissingTests.add(testFile); + } + } + // Skip any that we know are missing. + missingTests.removeWhere( + (File test) { + final String name = path.relative(test.absolute.path, from: flutterRoot.absolute.path).replaceAll(r'\', '/'); + return _knownMissingTests.contains(name); + }, + ); + return (missingTests, noLongerMissingTests); + } +} + +// These tests are known to be missing. They should all eventually be +// implemented, but until they are we allow them, so that we can catch any new +// examples that are added without tests. +// +// TODO(gspencergoog): implement the missing tests. +// See https://github.com/flutter/flutter/issues/130459 +final Set _knownMissingTests = { + 'examples/api/test/material/bottom_app_bar/bottom_app_bar.2_test.dart', + 'examples/api/test/material/bottom_app_bar/bottom_app_bar.1_test.dart', + 'examples/api/test/material/theme/theme_extension.1_test.dart', + 'examples/api/test/material/material_state/material_state_border_side.0_test.dart', + 'examples/api/test/material/material_state/material_state_mouse_cursor.0_test.dart', + 'examples/api/test/material/material_state/material_state_outlined_border.0_test.dart', + 'examples/api/test/material/material_state/material_state_property.0_test.dart', + 'examples/api/test/material/selectable_region/selectable_region.0_test.dart', + 'examples/api/test/material/text_field/text_field.2_test.dart', + 'examples/api/test/material/text_field/text_field.1_test.dart', + 'examples/api/test/material/button_style/button_style.0_test.dart', + 'examples/api/test/material/range_slider/range_slider.0_test.dart', + 'examples/api/test/material/selection_container/selection_container_disabled.0_test.dart', + 'examples/api/test/material/selection_container/selection_container.0_test.dart', + 'examples/api/test/material/color_scheme/dynamic_content_color.0_test.dart', + 'examples/api/test/material/platform_menu_bar/platform_menu_bar.0_test.dart', + 'examples/api/test/material/menu_anchor/menu_anchor.2_test.dart', + 'examples/api/test/material/stepper/stepper.controls_builder.0_test.dart', + 'examples/api/test/material/flexible_space_bar/flexible_space_bar.0_test.dart', + 'examples/api/test/material/floating_action_button_location/standard_fab_location.0_test.dart', + 'examples/api/test/material/chip/deletable_chip_attributes.on_deleted.0_test.dart', + 'examples/api/test/material/snack_bar/snack_bar.2_test.dart', + 'examples/api/test/material/snack_bar/snack_bar.1_test.dart', + 'examples/api/test/material/icon_button/icon_button.3_test.dart', + 'examples/api/test/material/expansion_panel/expansion_panel_list.expansion_panel_list_radio.0_test.dart', + 'examples/api/test/material/input_decorator/input_decoration.1_test.dart', + 'examples/api/test/material/input_decorator/input_decoration.prefix_icon_constraints.0_test.dart', + 'examples/api/test/material/input_decorator/input_decoration.material_state.0_test.dart', + 'examples/api/test/material/input_decorator/input_decoration.2_test.dart', + 'examples/api/test/material/input_decorator/input_decoration.0_test.dart', + 'examples/api/test/material/input_decorator/input_decoration.label.0_test.dart', + 'examples/api/test/material/input_decorator/input_decoration.suffix_icon_constraints.0_test.dart', + 'examples/api/test/material/input_decorator/input_decoration.3_test.dart', + 'examples/api/test/material/input_decorator/input_decoration.material_state.1_test.dart', + 'examples/api/test/material/text_form_field/text_form_field.1_test.dart', + 'examples/api/test/material/scrollbar/scrollbar.1_test.dart', + 'examples/api/test/material/dropdown_menu/dropdown_menu.1_test.dart', + 'examples/api/test/material/radio/radio.toggleable.0_test.dart', + 'examples/api/test/material/search_anchor/search_anchor.0_test.dart', + 'examples/api/test/material/search_anchor/search_anchor.1_test.dart', + 'examples/api/test/material/search_anchor/search_anchor.2_test.dart', + 'examples/api/test/material/about/about_list_tile.0_test.dart', + 'examples/api/test/material/tab_controller/tab_controller.1_test.dart', + 'examples/api/test/material/selection_area/selection_area.0_test.dart', + 'examples/api/test/material/scaffold/scaffold.end_drawer.0_test.dart', + 'examples/api/test/material/scaffold/scaffold.drawer.0_test.dart', + 'examples/api/test/material/scaffold/scaffold.1_test.dart', + 'examples/api/test/material/scaffold/scaffold.of.0_test.dart', + 'examples/api/test/material/scaffold/scaffold_messenger.of.0_test.dart', + 'examples/api/test/material/scaffold/scaffold_messenger.0_test.dart', + 'examples/api/test/material/scaffold/scaffold.0_test.dart', + 'examples/api/test/material/scaffold/scaffold_state.show_bottom_sheet.0_test.dart', + 'examples/api/test/material/scaffold/scaffold.2_test.dart', + 'examples/api/test/material/scaffold/scaffold_messenger_state.show_material_banner.0_test.dart', + 'examples/api/test/material/scaffold/scaffold.of.1_test.dart', + 'examples/api/test/material/scaffold/scaffold_messenger.of.1_test.dart', + 'examples/api/test/material/scaffold/scaffold_messenger_state.show_snack_bar.0_test.dart', + 'examples/api/test/material/segmented_button/segmented_button.0_test.dart', + 'examples/api/test/material/app_bar/sliver_app_bar.2_test.dart', + 'examples/api/test/material/app_bar/sliver_app_bar.3_test.dart', + 'examples/api/test/material/banner/material_banner.1_test.dart', + 'examples/api/test/material/banner/material_banner.0_test.dart', + 'examples/api/test/material/checkbox/checkbox.1_test.dart', + 'examples/api/test/material/checkbox/checkbox.0_test.dart', + 'examples/api/test/material/navigation_rail/navigation_rail.extended_animation.0_test.dart', + 'examples/api/test/material/text_button/text_button.0_test.dart', + 'examples/api/test/rendering/growth_direction/growth_direction.0_test.dart', + 'examples/api/test/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.0_test.dart', + 'examples/api/test/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.1_test.dart', + 'examples/api/test/rendering/scroll_direction/scroll_direction.0_test.dart', + 'examples/api/test/painting/axis_direction/axis_direction.0_test.dart', + 'examples/api/test/painting/linear_border/linear_border.0_test.dart', + 'examples/api/test/painting/gradient/linear_gradient.0_test.dart', + 'examples/api/test/painting/star_border/star_border.0_test.dart', + 'examples/api/test/painting/borders/border_side.stroke_align.0_test.dart', + 'examples/api/test/widgets/autocomplete/raw_autocomplete.focus_node.0_test.dart', + 'examples/api/test/widgets/autocomplete/raw_autocomplete.2_test.dart', + 'examples/api/test/widgets/autocomplete/raw_autocomplete.1_test.dart', + 'examples/api/test/widgets/autocomplete/raw_autocomplete.0_test.dart', + 'examples/api/test/widgets/navigator/navigator.restorable_push_and_remove_until.0_test.dart', + 'examples/api/test/widgets/navigator/navigator.0_test.dart', + 'examples/api/test/widgets/navigator/navigator.restorable_push.0_test.dart', + 'examples/api/test/widgets/navigator/navigator_state.restorable_push_replacement.0_test.dart', + 'examples/api/test/widgets/navigator/navigator_state.restorable_push_and_remove_until.0_test.dart', + 'examples/api/test/widgets/navigator/navigator.restorable_push_replacement.0_test.dart', + 'examples/api/test/widgets/navigator/restorable_route_future.0_test.dart', + 'examples/api/test/widgets/navigator/navigator_state.restorable_push.0_test.dart', + 'examples/api/test/widgets/focus_manager/focus_node.unfocus.0_test.dart', + 'examples/api/test/widgets/focus_manager/focus_node.0_test.dart', + 'examples/api/test/widgets/framework/build_owner.0_test.dart', + 'examples/api/test/widgets/framework/error_widget.0_test.dart', + 'examples/api/test/widgets/inherited_theme/inherited_theme.0_test.dart', + 'examples/api/test/widgets/sliver/decorated_sliver.0_test.dart', + 'examples/api/test/widgets/autofill/autofill_group.0_test.dart', + 'examples/api/test/widgets/drag_target/draggable.0_test.dart', + 'examples/api/test/widgets/shared_app_data/shared_app_data.1_test.dart', + 'examples/api/test/widgets/shared_app_data/shared_app_data.0_test.dart', + 'examples/api/test/widgets/form/form.0_test.dart', + 'examples/api/test/widgets/nested_scroll_view/nested_scroll_view_state.0_test.dart', + 'examples/api/test/widgets/nested_scroll_view/nested_scroll_view.2_test.dart', + 'examples/api/test/widgets/nested_scroll_view/nested_scroll_view.1_test.dart', + 'examples/api/test/widgets/nested_scroll_view/nested_scroll_view.0_test.dart', + 'examples/api/test/widgets/scroll_position/scroll_metrics_notification.0_test.dart', + 'examples/api/test/widgets/media_query/media_query_data.system_gesture_insets.0_test.dart', + 'examples/api/test/widgets/async/stream_builder.0_test.dart', + 'examples/api/test/widgets/async/future_builder.0_test.dart', + 'examples/api/test/widgets/restoration_properties/restorable_value.0_test.dart', + 'examples/api/test/widgets/animated_size/animated_size.0_test.dart', + 'examples/api/test/widgets/table/table.0_test.dart', + 'examples/api/test/widgets/animated_switcher/animated_switcher.0_test.dart', + 'examples/api/test/widgets/transitions/relative_positioned_transition.0_test.dart', + 'examples/api/test/widgets/transitions/positioned_transition.0_test.dart', + 'examples/api/test/widgets/transitions/sliver_fade_transition.0_test.dart', + 'examples/api/test/widgets/transitions/align_transition.0_test.dart', + 'examples/api/test/widgets/transitions/fade_transition.0_test.dart', + 'examples/api/test/widgets/transitions/animated_builder.0_test.dart', + 'examples/api/test/widgets/transitions/rotation_transition.0_test.dart', + 'examples/api/test/widgets/transitions/animated_widget.0_test.dart', + 'examples/api/test/widgets/transitions/slide_transition.0_test.dart', + 'examples/api/test/widgets/transitions/listenable_builder.2_test.dart', + 'examples/api/test/widgets/transitions/scale_transition.0_test.dart', + 'examples/api/test/widgets/transitions/default_text_style_transition.0_test.dart', + 'examples/api/test/widgets/transitions/decorated_box_transition.0_test.dart', + 'examples/api/test/widgets/transitions/size_transition.0_test.dart', + 'examples/api/test/widgets/animated_list/animated_list.0_test.dart', + 'examples/api/test/widgets/focus_traversal/focus_traversal_group.0_test.dart', + 'examples/api/test/widgets/focus_traversal/ordered_traversal_policy.0_test.dart', + 'examples/api/test/widgets/image/image.error_builder.0_test.dart', + 'examples/api/test/widgets/image/image.frame_builder.0_test.dart', + 'examples/api/test/widgets/image/image.loading_builder.0_test.dart', + 'examples/api/test/widgets/shortcuts/logical_key_set.0_test.dart', + 'examples/api/test/widgets/shortcuts/shortcuts.0_test.dart', + 'examples/api/test/widgets/shortcuts/single_activator.single_activator.0_test.dart', + 'examples/api/test/widgets/shortcuts/shortcuts.1_test.dart', + 'examples/api/test/widgets/shortcuts/character_activator.0_test.dart', + 'examples/api/test/widgets/shortcuts/callback_shortcuts.0_test.dart', + 'examples/api/test/widgets/page_storage/page_storage.0_test.dart', + 'examples/api/test/widgets/scrollbar/raw_scrollbar.1_test.dart', + 'examples/api/test/widgets/scrollbar/raw_scrollbar.2_test.dart', + 'examples/api/test/widgets/scrollbar/raw_scrollbar.desktop.0_test.dart', + 'examples/api/test/widgets/scrollbar/raw_scrollbar.shape.0_test.dart', + 'examples/api/test/widgets/scrollbar/raw_scrollbar.0_test.dart', + 'examples/api/test/widgets/sliver_fill/sliver_fill_remaining.2_test.dart', + 'examples/api/test/widgets/sliver_fill/sliver_fill_remaining.1_test.dart', + 'examples/api/test/widgets/sliver_fill/sliver_fill_remaining.3_test.dart', + 'examples/api/test/widgets/sliver_fill/sliver_fill_remaining.0_test.dart', + 'examples/api/test/widgets/interactive_viewer/interactive_viewer.constrained.0_test.dart', + 'examples/api/test/widgets/interactive_viewer/interactive_viewer.transformation_controller.0_test.dart', + 'examples/api/test/widgets/interactive_viewer/interactive_viewer.0_test.dart', + 'examples/api/test/widgets/notification_listener/notification.0_test.dart', + 'examples/api/test/widgets/gesture_detector/gesture_detector.1_test.dart', + 'examples/api/test/widgets/gesture_detector/gesture_detector.0_test.dart', + 'examples/api/test/widgets/editable_text/text_editing_controller.0_test.dart', + 'examples/api/test/widgets/editable_text/editable_text.on_changed.0_test.dart', + 'examples/api/test/widgets/undo_history/undo_history_controller.0_test.dart', + 'examples/api/test/widgets/overscroll_indicator/glowing_overscroll_indicator.1_test.dart', + 'examples/api/test/widgets/overscroll_indicator/glowing_overscroll_indicator.0_test.dart', + 'examples/api/test/widgets/tween_animation_builder/tween_animation_builder.0_test.dart', + 'examples/api/test/widgets/single_child_scroll_view/single_child_scroll_view.1_test.dart', + 'examples/api/test/widgets/single_child_scroll_view/single_child_scroll_view.0_test.dart', + 'examples/api/test/widgets/overflow_bar/overflow_bar.0_test.dart', + 'examples/api/test/widgets/restoration/restoration_mixin.0_test.dart', + 'examples/api/test/widgets/actions/actions.0_test.dart', + 'examples/api/test/widgets/actions/action_listener.0_test.dart', + 'examples/api/test/widgets/actions/focusable_action_detector.0_test.dart', + 'examples/api/test/widgets/color_filter/color_filtered.0_test.dart', + 'examples/api/test/widgets/focus_scope/focus.2_test.dart', + 'examples/api/test/widgets/focus_scope/focus.0_test.dart', + 'examples/api/test/widgets/focus_scope/focus.1_test.dart', + 'examples/api/test/widgets/focus_scope/focus_scope.0_test.dart', + 'examples/api/test/widgets/implicit_animations/animated_fractionally_sized_box.0_test.dart', + 'examples/api/test/widgets/implicit_animations/animated_align.0_test.dart', + 'examples/api/test/widgets/implicit_animations/animated_positioned.0_test.dart', + 'examples/api/test/widgets/implicit_animations/animated_padding.0_test.dart', + 'examples/api/test/widgets/implicit_animations/sliver_animated_opacity.0_test.dart', + 'examples/api/test/widgets/implicit_animations/animated_container.0_test.dart', + 'examples/api/test/widgets/dismissible/dismissible.0_test.dart', + 'examples/api/test/widgets/scroll_view/custom_scroll_view.1_test.dart', + 'examples/api/test/widgets/preferred_size/preferred_size.0_test.dart', + 'examples/api/test/widgets/inherited_notifier/inherited_notifier.0_test.dart', + 'examples/api/test/animation/curves/curve2_d.0_test.dart', + 'examples/api/test/gestures/pointer_signal_resolver/pointer_signal_resolver.0_test.dart', +}; diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/codelabs_build_test.sh b/novelforge-project/agent-workspace/flutter/dev/bots/codelabs_build_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef594a9d728407b230903e8fa089c9dc48fb96c2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/codelabs_build_test.sh @@ -0,0 +1,44 @@ +#!/usr/bin/env bash +# Copyright 2014 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +set -ex + +readonly SCRIPTS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +readonly ROOT_DIR="$SCRIPTS_DIR/.." + +function is_expected_failure() { + # A test target was specified with the 'build' command. + grep --quiet "is not configured for Running" "$1" +} + +log_file="build_log_for_104_complete.txt" +build_command="flutter build bundle" + +# Attempt to build 104-complete Shrine app from the Flutter codelabs +git clone https://github.com/material-components/material-components-flutter-codelabs.git +cd material-components-flutter-codelabs/mdc_100_series/ +git checkout 104-complete + +all_builds_ok=1 +echo "$build_command" +$build_command 2>&1 | tee "$log_file" + +if [ ${PIPESTATUS[0]} -eq 0 ] || is_expected_failure "$log_file"; then + rm "$log_file" +else + all_builds_ok=0 + echo "View https://github.com/flutter/flutter/blob/master/dev/bots/README.md for steps to resolve this failed build test." >> ${log_file} + echo + echo "Log left in $log_file." + echo +fi + +# If any build failed, exit with a failure exit status so continuous integration +# tools can react appropriately. +if [ "$all_builds_ok" -eq 1 ]; then + exit 0 +else + exit 1 +fi diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/docs.sh b/novelforge-project/agent-workspace/flutter/dev/bots/docs.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6837fd361bc5aa438c8d6395e760f5575ea1699 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/docs.sh @@ -0,0 +1,154 @@ +#!/usr/bin/env bash +# Copyright 2014 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +set -e + +function script_location() { + local script_location="${BASH_SOURCE[0]}" + # Resolve symlinks + while [[ -h "$script_location" ]]; do + DIR="$(cd -P "$( dirname "$script_location")" >/dev/null && pwd)" + script_location="$(readlink "$script_location")" + [[ "$script_location" != /* ]] && script_location="$DIR/$script_location" + done + cd -P "$(dirname "$script_location")" >/dev/null && pwd +} + +# So that users can run this script from anywhere and it will work as expected. +SCRIPT_LOCATION="$(script_location)" +# Sets the Flutter root to be "$(script_location)/../..": This script assumes +# that it resides two directory levels down from the root, so if that changes, +# then this line will need to as well. +FLUTTER_ROOT="$(dirname "$(dirname "$SCRIPT_LOCATION")")" +export FLUTTER_ROOT + +echo "$(date): Running docs.sh" + +if [[ ! -d "$FLUTTER_ROOT" || ! -f "$FLUTTER_ROOT/bin/flutter" ]]; then + >&2 echo "Unable to locate the Flutter installation (using FLUTTER_ROOT: $FLUTTER_ROOT)" + exit 1 +fi + +FLUTTER_BIN="$FLUTTER_ROOT/bin" +DART_BIN="$FLUTTER_ROOT/bin/cache/dart-sdk/bin" +FLUTTER="$FLUTTER_BIN/flutter" +DART="$DART_BIN/dart" +PATH="$FLUTTER_BIN:$DART_BIN:$PATH" + +# Make sure dart is installed by invoking Flutter to download it if it is missing. +# Also make sure the flutter command is ready to run before capturing output from +# it: if it has to rebuild itself or something, it'll spoil our JSON output. +"$FLUTTER" > /dev/null 2>&1 +FLUTTER_VERSION="$("$FLUTTER" --version --machine)" +export FLUTTER_VERSION + +# If the pub cache directory exists in the root, then use that. +FLUTTER_PUB_CACHE="$FLUTTER_ROOT/.pub-cache" +if [[ -d "$FLUTTER_PUB_CACHE" ]]; then + # This has to be exported, because pub interprets setting it to the empty + # string in the same way as setting it to ".". + PUB_CACHE="${PUB_CACHE:-"$FLUTTER_PUB_CACHE"}" + export PUB_CACHE +fi + +function usage() { + echo "Usage: $(basename "${BASH_SOURCE[0]}") [--keep-temp] [--output ]" + echo "" + echo " --keep-staging Do not delete the staging directory created while generating" + echo " docs. Normally the script deletes the staging directory after" + echo " generating the output ZIP file." + echo " --output specifies where the output ZIP file containing the documentation" + echo " data will be written." + echo " --staging-dir specifies where the temporary output files will be written while" + echo " generating docs. This directory will be deleted after generation" + echo " unless --keep-staging is also specified." + echo "" +} + +function parse_args() { + local arg + local args=() + STAGING_DIR= + KEEP_STAGING=0 + DESTINATION="$FLUTTER_ROOT/dev/docs/api_docs.zip" + while (( "$#" )); do + case "$1" in + --help) + usage + exit 0 + ;; + --staging-dir) + STAGING_DIR="$2" + shift + ;; + --keep-staging) + KEEP_STAGING=1 + ;; + --output) + DESTINATION="$2" + shift + ;; + *) + args=("${args[@]}" "$1") + ;; + esac + shift + done + if [[ -z $STAGING_DIR ]]; then + STAGING_DIR=$(mktemp -d /tmp/dartdoc.XXXXX) + fi + DOC_DIR="$STAGING_DIR/doc" + if [[ ${#args[@]} != 0 ]]; then + >&2 echo "ERROR: Unknown arguments: ${args[@]}" + usage + exit 1 + fi +} + +function generate_docs() { + # Install and activate dartdoc. + # When updating to a new dartdoc version, please also update + # `dartdoc_options.yaml` to include newly introduced error and warning types. + "$DART" pub global activate dartdoc 8.0.2 + + # Install and activate the snippets tool, which resides in the + # assets-for-api-docs repo: + # https://github.com/flutter/assets-for-api-docs/tree/master/packages/snippets + "$DART" pub global activate snippets 0.4.0 + + # This script generates a unified doc set, and creates + # a custom index.html, placing everything into DOC_DIR. + + # Make sure that create_api_docs.dart has all the dependencies it needs. + (cd "$FLUTTER_ROOT/dev/tools" && "$FLUTTER" pub get) + (cd "$FLUTTER_ROOT" && "$DART" --disable-dart-dev --enable-asserts "$FLUTTER_ROOT/dev/tools/create_api_docs.dart" --output-dir="$DOC_DIR") +} + +function main() { + echo "Writing docs build temporary output to $DOC_DIR" + mkdir -p "$DOC_DIR" + generate_docs + # If the destination isn't an absolute path, make it into one. + if ! [[ "$DESTINATION" =~ ^/ ]]; then + DESTINATION="$PWD/$DESTINATION" + fi + + # Make sure the destination has .zip as an extension, because zip will add it + # anyhow, and we want to print the correct output location. + DESTINATION=${DESTINATION%.zip}.zip + + # Zip up doc directory and write the output to the destination. + (cd "$STAGING_DIR"; zip -r -9 -q "$DESTINATION" ./doc) + if [[ $KEEP_STAGING -eq 1 ]]; then + echo "Staging documentation output left in $STAGING_DIR" + else + echo "Removing staging documentation output from $STAGING_DIR" + rm -rf "$STAGING_DIR" + fi + echo "Wrote docs ZIP file to $DESTINATION" +} + +parse_args "$@" +main diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/post_process_docs.dart b/novelforge-project/agent-workspace/flutter/dev/bots/post_process_docs.dart new file mode 100644 index 0000000000000000000000000000000000000000..91bdb7086a5ac12b530554bf275e9f9da7555581 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/post_process_docs.dart @@ -0,0 +1,157 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:io'; +import 'package:intl/intl.dart'; +import 'package:meta/meta.dart'; + +import 'package:path/path.dart' as path; +import 'package:platform/platform.dart' as platform; + +import 'package:process/process.dart'; + +class CommandException implements Exception {} + +Future main() async { + await postProcess(); +} + +/// Post-processes an APIs documentation zip file to modify the footer and version +/// strings for commits promoted to either beta or stable channels. +Future postProcess() async { + final String revision = await gitRevision(fullLength: true); + print('Docs revision being processed: $revision'); + final Directory tmpFolder = Directory.systemTemp.createTempSync(); + final String zipDestination = path.join(tmpFolder.path, 'api_docs.zip'); + + if (!Platform.environment.containsKey('SDK_CHECKOUT_PATH')) { + print('SDK_CHECKOUT_PATH env variable is required for this script'); + exit(1); + } + final String checkoutPath = Platform.environment['SDK_CHECKOUT_PATH']!; + final String docsPath = path.join(checkoutPath, 'dev', 'docs'); + await runProcessWithValidations( + [ + 'curl', + '-L', + 'https://storage.googleapis.com/flutter_infra_release/flutter/$revision/api_docs.zip', + '--output', + zipDestination, + '--fail', + ], + docsPath, + ); + + // Unzip to docs folder. + await runProcessWithValidations( + [ + 'unzip', + '-o', + zipDestination, + ], + docsPath, + ); + + // Generate versions file. + await runProcessWithValidations( + ['flutter', '--version'], + docsPath, + ); + final File versionFile = File('version'); + final String version = versionFile.readAsStringSync(); + // Recreate footer + final String publishPath = path.join(docsPath, '..', 'docs', 'doc', 'flutter', 'footer.js'); + final File footerFile = File(publishPath)..createSync(recursive: true); + createFooter(footerFile, version); +} + +/// Gets the git revision of the current checkout. [fullLength] if true will return +/// the full commit hash, if false it will return the first 10 characters only. +Future gitRevision({ + bool fullLength = false, + @visibleForTesting platform.Platform platform = const platform.LocalPlatform(), + @visibleForTesting ProcessManager processManager = const LocalProcessManager(), +}) async { + const int kGitRevisionLength = 10; + + final ProcessResult gitResult = processManager.runSync(['git', 'rev-parse', 'HEAD']); + if (gitResult.exitCode != 0) { + throw 'git rev-parse exit with non-zero exit code: ${gitResult.exitCode}'; + } + final String gitRevision = (gitResult.stdout as String).trim(); + if (fullLength) { + return gitRevision; + } + return gitRevision.length > kGitRevisionLength ? gitRevision.substring(0, kGitRevisionLength) : gitRevision; +} + +/// Wrapper function to run a subprocess checking exit code and printing stderr and stdout. +/// [executable] is a string with the script/binary to execute, [args] is the list of flags/arguments +/// and [workingDirectory] is as string to the working directory where the subprocess will be run. +Future runProcessWithValidations( + List command, + String workingDirectory, { + @visibleForTesting ProcessManager processManager = const LocalProcessManager(), + bool verbose = true, +}) async { + final ProcessResult result = + processManager.runSync(command, stdoutEncoding: utf8, workingDirectory: workingDirectory); + if (result.exitCode == 0) { + if (verbose) { + print('stdout: ${result.stdout}'); + } + } else { + if (verbose) { + print('stderr: ${result.stderr}'); + } + throw CommandException(); + } +} + +/// Get the name of the release branch. +/// +/// On LUCI builds, the git HEAD is detached, so first check for the env +/// variable "LUCI_BRANCH"; if it is not set, fall back to calling git. +Future getBranchName({ + @visibleForTesting platform.Platform platform = const platform.LocalPlatform(), + @visibleForTesting ProcessManager processManager = const LocalProcessManager(), +}) async { + final RegExp gitBranchRegexp = RegExp(r'^## (.*)'); + final String? luciBranch = platform.environment['LUCI_BRANCH']; + if (luciBranch != null && luciBranch.trim().isNotEmpty) { + return luciBranch.trim(); + } + final ProcessResult gitResult = processManager.runSync(['git', 'status', '-b', '--porcelain']); + if (gitResult.exitCode != 0) { + throw 'git status exit with non-zero exit code: ${gitResult.exitCode}'; + } + final RegExpMatch? gitBranchMatch = gitBranchRegexp.firstMatch((gitResult.stdout as String).trim().split('\n').first); + return gitBranchMatch == null ? '' : gitBranchMatch.group(1)!.split('...').first; +} + +/// Updates the footer of the api documentation with the correct branch and versions. +/// [footerPath] is the path to the location of the footer js file and [version] is a +/// string with the version calculated by the flutter tool. +Future createFooter(File footerFile, String version, + {@visibleForTesting String? timestampParam, + @visibleForTesting String? branchParam, + @visibleForTesting String? revisionParam}) async { + final String timestamp = timestampParam ?? DateFormat('yyyy-MM-dd HH:mm').format(DateTime.now()); + final String gitBranch = branchParam ?? await getBranchName(); + final String revision = revisionParam ?? await gitRevision(); + final String gitBranchOut = gitBranch.isEmpty ? '' : '• $gitBranch'; + footerFile.writeAsStringSync(''' +(function() { + var span = document.querySelector('footer>span'); + if (span) { + span.innerText = 'Flutter $version • $timestamp • $revision $gitBranchOut'; + } + var sourceLink = document.querySelector('a.source-link'); + if (sourceLink) { + sourceLink.href = sourceLink.href.replace('/master/', '/$revision/'); + } +})(); +'''); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/prepare_package.dart b/novelforge-project/agent-workspace/flutter/dev/bots/prepare_package.dart new file mode 100644 index 0000000000000000000000000000000000000000..3bd37b3d65d1ad596dc7e10fcedc792150ad6bbb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/prepare_package.dart @@ -0,0 +1,164 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:io' show exit, stderr; + +import 'package:args/args.dart'; +import 'package:file/file.dart'; +import 'package:file/local.dart'; + +import 'prepare_package/archive_creator.dart'; +import 'prepare_package/archive_publisher.dart'; +import 'prepare_package/common.dart'; + +const FileSystem fs = LocalFileSystem(); + +/// Prepares a flutter git repo to be packaged up for distribution. It mainly +/// serves to populate the .pub-preload-cache with any appropriate Dart +/// packages, and the flutter cache in bin/cache with the appropriate +/// dependencies and snapshots. +/// +/// Archives contain the executables and customizations for the platform that +/// they are created on. +Future main(List rawArguments) async { + final ArgParser argParser = ArgParser(); + argParser.addOption( + 'temp_dir', + help: 'A location where temporary files may be written. Defaults to a ' + 'directory in the system temp folder. Will write a few GiB of data, ' + 'so it should have sufficient free space. If a temp_dir is not ' + 'specified, then the default temp_dir will be created, used, and ' + 'removed automatically.', + ); + argParser.addOption('revision', + help: 'The Flutter git repo revision to build the ' + 'archive with. Must be the full 40-character hash. Required.'); + argParser.addOption( + 'branch', + allowed: Branch.values.map((Branch branch) => branch.name), + help: 'The Flutter branch to build the archive with. Required.', + ); + argParser.addOption( + 'output', + help: 'The path to the directory where the output archive should be ' + 'written. If --output is not specified, the archive will be written to ' + "the current directory. If the output directory doesn't exist, it, and " + 'the path to it, will be created.', + ); + argParser.addFlag( + 'publish', + help: 'If set, will publish the archive to Google Cloud Storage upon ' + 'successful creation of the archive. Will publish under this ' + 'directory: $baseUrl$releaseFolder', + ); + argParser.addFlag( + 'force', + abbr: 'f', + help: 'Overwrite a previously uploaded package.', + ); + argParser.addFlag( + 'dry_run', + negatable: false, + help: 'Prints gsutil commands instead of executing them.', + ); + argParser.addFlag( + 'help', + negatable: false, + help: 'Print help for this command.', + ); + + final ArgResults parsedArguments = argParser.parse(rawArguments); + + if (parsedArguments['help'] as bool) { + print(argParser.usage); + exit(0); + } + + void errorExit(String message, {int exitCode = -1}) { + stderr.write('Error: $message\n\n'); + stderr.write('${argParser.usage}\n'); + exit(exitCode); + } + + if (!parsedArguments.wasParsed('revision')) { + errorExit('Invalid argument: --revision must be specified.'); + } + final String revision = parsedArguments['revision'] as String; + if (revision.length != 40) { + errorExit('Invalid argument: --revision must be the entire hash, not just a prefix.'); + } + + if (!parsedArguments.wasParsed('branch')) { + errorExit('Invalid argument: --branch must be specified.'); + } + + final String? tempDirArg = parsedArguments['temp_dir'] as String?; + final Directory tempDir; + bool removeTempDir = false; + if (tempDirArg == null || tempDirArg.isEmpty) { + tempDir = fs.systemTempDirectory.createTempSync('flutter_package.'); + removeTempDir = true; + } else { + tempDir = fs.directory(tempDirArg); + if (!tempDir.existsSync()) { + errorExit("Temporary directory $tempDirArg doesn't exist."); + } + } + + final Directory outputDir; + if (parsedArguments['output'] == null) { + outputDir = tempDir; + } else { + outputDir = fs.directory(parsedArguments['output'] as String); + if (!outputDir.existsSync()) { + outputDir.createSync(recursive: true); + } + } + + final bool publish = parsedArguments['publish'] as bool; + final bool dryRun = parsedArguments['dry_run'] as bool; + final Branch branch = Branch.values.byName(parsedArguments['branch'] as String); + final ArchiveCreator creator = ArchiveCreator( + tempDir, + outputDir, + revision, + branch, + fs: fs, + strict: publish && !dryRun, + ); + int exitCode = 0; + late String message; + try { + final Map version = await creator.initializeRepo(); + final File outputFile = await creator.createArchive(); + final ArchivePublisher publisher = ArchivePublisher( + tempDir, + revision, + branch, + version, + outputFile, + dryRun, + fs: fs, + ); + await publisher.generateLocalMetadata(); + if (parsedArguments['publish'] as bool) { + await publisher.publishArchive(parsedArguments['force'] as bool); + } + } on PreparePackageException catch (e) { + exitCode = e.exitCode; + message = e.message; + } catch (e) { + exitCode = -1; + message = e.toString(); + } finally { + if (removeTempDir) { + tempDir.deleteSync(recursive: true); + } + if (exitCode != 0) { + errorExit(message, exitCode: exitCode); + } + exit(0); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/bots/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..a29a2d419bfc518db81fc4a0395e99ea70bb7406 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/pubspec.lock @@ -0,0 +1,524 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _discoveryapis_commons: + dependency: "direct main" + description: + name: _discoveryapis_commons + sha256: f8bb1fdbd77f3d5c1d62b5b0eca75fbf1e41bf4f6c62628f880582e2182ae45d + url: "https://pub.dev" + source: hosted + version: "1.0.6" + _fe_analyzer_shared: + dependency: "direct main" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct main" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + archive: + dependency: "direct main" + description: + name: archive + sha256: "80e5141fafcb3361653ce308776cfd7d45e6e9fbb429e14eec571382c0c5fecb" + url: "https://pub.dev" + source: hosted + version: "3.3.2" + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct main" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + checked_yaml: + dependency: "direct main" + description: + name: checked_yaml + sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff + url: "https://pub.dev" + source: hosted + version: "2.0.3" + clock: + dependency: "direct main" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct main" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct main" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter_devicelab: + dependency: "direct main" + description: + path: "../devicelab" + relative: true + source: path + version: "0.0.0" + frontend_server_client: + dependency: "direct main" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + gcloud: + dependency: "direct main" + description: + name: gcloud + sha256: "94cc7901dba3bcc9cd1c0530caf2d87e733392ce8f93734ccb23d82ef9f2a3e2" + url: "https://pub.dev" + source: hosted + version: "0.8.11" + glob: + dependency: "direct main" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + googleapis: + dependency: "direct main" + description: + name: googleapis + sha256: d738182a9fb1143910abc2301c2041c7c4e294e4701db69a65a2ecf044ec57e1 + url: "https://pub.dev" + source: hosted + version: "3.0.0" + googleapis_auth: + dependency: "direct main" + description: + name: googleapis_auth + sha256: af7c3a3edf9d0de2e1e0a77e994fae0a581c525fa7012af4fa0d4a52ed9484da + url: "https://pub.dev" + source: hosted + version: "1.4.1" + http: + dependency: "direct main" + description: + name: http + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + url: "https://pub.dev" + source: hosted + version: "0.13.6" + http_multi_server: + dependency: "direct main" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct main" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + intl: + dependency: "direct main" + description: + name: intl + sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" + url: "https://pub.dev" + source: hosted + version: "0.18.1" + io: + dependency: "direct main" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct main" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + json_annotation: + dependency: "direct main" + description: + name: json_annotation + sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 + url: "https://pub.dev" + source: hosted + version: "4.8.1" + logging: + dependency: "direct main" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct main" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + metrics_center: + dependency: "direct main" + description: + name: metrics_center + sha256: b72e1ce6f5bc7f9cedde6d8ddca842220977254dcc767eebf07a27ffad70883f + url: "https://pub.dev" + source: hosted + version: "1.0.12" + mime: + dependency: "direct main" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct main" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct main" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + petitparser: + dependency: "direct main" + description: + name: petitparser + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 + url: "https://pub.dev" + source: hosted + version: "6.0.2" + platform: + dependency: "direct main" + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + pool: + dependency: "direct main" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: "direct main" + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + pub_semver: + dependency: "direct main" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + pubspec_parse: + dependency: "direct main" + description: + name: pubspec_parse + sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 + url: "https://pub.dev" + source: hosted + version: "1.2.3" + retry: + dependency: "direct main" + description: + name: retry + sha256: "822e118d5b3aafed083109c72d5f484c6dc66707885e07c0fbcb8b986bba7efc" + url: "https://pub.dev" + source: hosted + version: "3.1.2" + shelf: + dependency: "direct main" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct main" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct main" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct main" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + source_map_stack_trace: + dependency: "direct main" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct main" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct main" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + standard_message_codec: + dependency: "direct main" + description: + name: standard_message_codec + sha256: fc7dd712d191b7e33196a0ecf354c4573492bb95995e7166cb6f73b047f9cae0 + url: "https://pub.dev" + source: hosted + version: "0.0.1+4" + stream_channel: + dependency: "direct main" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct main" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct main" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct main" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vm_service: + dependency: "direct main" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct main" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct main" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct main" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webkit_inspection_protocol: + dependency: "direct main" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + xml: + dependency: "direct main" + description: + name: xml + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 + url: "https://pub.dev" + source: hosted + version: "6.5.0" + yaml: + dependency: "direct main" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/bots/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1587f9114d8aa437b32f893530ceedc110192f48 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/pubspec.yaml @@ -0,0 +1,78 @@ +name: tests_on_bots +description: Scripts which run on bots. + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + analyzer: 6.3.0 + args: 2.4.2 + crypto: 3.0.3 + intl: 0.18.1 + file: 7.0.0 + flutter_devicelab: + path: ../devicelab + http_parser: 4.0.2 + meta: 1.11.0 + path: 1.9.0 + platform: 3.1.4 + process: 5.0.2 + test: 1.24.9 + + _discoveryapis_commons: 1.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + archive: 3.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + checked_yaml: 2.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + gcloud: 0.8.11 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + googleapis: 3.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + googleapis_auth: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http: 0.13.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + json_annotation: 4.8.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + metrics_center: 1.0.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + petitparser: 6.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pubspec_parse: 1.2.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + retry: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + standard_message_codec: 0.0.1+4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + xml: 6.5.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + test_api: 0.6.1 + +# PUBSPEC CHECKSUM: 65d5 diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/run_command.dart b/novelforge-project/agent-workspace/flutter/dev/bots/run_command.dart new file mode 100644 index 0000000000000000000000000000000000000000..f39d89650b0e448f9e9b3f75328900b8ea8041fa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/run_command.dart @@ -0,0 +1,224 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:convert'; +import 'dart:core' hide print; +import 'dart:io' as io; + +import 'package:path/path.dart' as path; + +import 'utils.dart'; + +/// Runs the `executable` and returns standard output as a stream of lines. +/// +/// The returned stream reaches its end immediately after the command exits. +/// +/// If `expectNonZeroExit` is false and the process exits with a non-zero exit +/// code fails the test immediately by exiting the test process with exit code +/// 1. +Stream runAndGetStdout(String executable, List arguments, { + String? workingDirectory, + Map? environment, + bool expectNonZeroExit = false, +}) async* { + final StreamController output = StreamController(); + final Future command = runCommand( + executable, + arguments, + workingDirectory: workingDirectory, + environment: environment, + expectNonZeroExit: expectNonZeroExit, + // Capture the output so it's not printed to the console by default. + outputMode: OutputMode.capture, + outputListener: (String line, io.Process process) { + output.add(line); + }, + ); + + // Close the stream controller after the command is complete. Otherwise, + // the yield* will never finish. + command.whenComplete(output.close); + + yield* output.stream; +} + +/// Represents a running process launched using [startCommand]. +class Command { + Command._(this.process, this._time, this._savedStdout, this._savedStderr); + + /// The raw process that was launched for this command. + final io.Process process; + final Stopwatch _time; + final Future _savedStdout; + final Future _savedStderr; +} + +/// The result of running a command using [startCommand] and [runCommand]; +class CommandResult { + CommandResult._(this.exitCode, this.elapsedTime, this.flattenedStdout, this.flattenedStderr); + + /// The exit code of the process. + final int exitCode; + + /// The amount of time it took the process to complete. + final Duration elapsedTime; + + /// Standard output decoded as a string using UTF8 decoder. + final String? flattenedStdout; + + /// Standard error output decoded as a string using UTF8 decoder. + final String? flattenedStderr; +} + +/// Starts the `executable` and returns a command object representing the +/// running process. +/// +/// `outputListener` is called for every line of standard output from the +/// process, and is given the [Process] object. This can be used to interrupt +/// an indefinitely running process, for example, by waiting until the process +/// emits certain output. +/// +/// `outputMode` controls where the standard output from the command process +/// goes. See [OutputMode]. +Future startCommand(String executable, List arguments, { + String? workingDirectory, + Map? environment, + OutputMode outputMode = OutputMode.print, + bool Function(String)? removeLine, + void Function(String, io.Process)? outputListener, +}) async { + final String relativeWorkingDir = path.relative(workingDirectory ?? io.Directory.current.path); + final String commandDescription = '${path.relative(executable, from: workingDirectory)} ${arguments.join(' ')}'; + print('RUNNING: cd $cyan$relativeWorkingDir$reset; $green$commandDescription$reset'); + + final Stopwatch time = Stopwatch()..start(); + print('workingDirectory: $workingDirectory, executable: $executable, arguments: $arguments'); + final io.Process process = await io.Process.start(executable, arguments, + workingDirectory: workingDirectory, + environment: environment, + ); + return Command._( + process, + time, + process.stdout + .transform(const Utf8Decoder()) + .transform(const LineSplitter()) + .where((String line) => removeLine == null || !removeLine(line)) + .map((String line) { + final String formattedLine = '$line\n'; + if (outputListener != null) { + outputListener(formattedLine, process); + } + switch (outputMode) { + case OutputMode.print: + print(line); + case OutputMode.capture: + break; + } + return line; + }) + .join('\n'), + process.stderr + .transform(const Utf8Decoder()) + .transform(const LineSplitter()) + .map((String line) { + switch (outputMode) { + case OutputMode.print: + print(line); + case OutputMode.capture: + break; + } + return line; + }) + .join('\n'), + ); +} + +/// Runs the `executable` and waits until the process exits. +/// +/// If the process exits with a non-zero exit code and `expectNonZeroExit` is +/// false, calls foundError (which does not terminate execution!). +/// +/// `outputListener` is called for every line of standard output from the +/// process, and is given the [Process] object. This can be used to interrupt +/// an indefinitely running process, for example, by waiting until the process +/// emits certain output. +/// +/// Returns the result of the finished process. +/// +/// `outputMode` controls where the standard output from the command process +/// goes. See [OutputMode]. +Future runCommand(String executable, List arguments, { + String? workingDirectory, + Map? environment, + bool expectNonZeroExit = false, + int? expectedExitCode, + String? failureMessage, + OutputMode outputMode = OutputMode.print, + bool Function(String)? removeLine, + void Function(String, io.Process)? outputListener, +}) async { + final String commandDescription = '${path.relative(executable, from: workingDirectory)} ${arguments.join(' ')}'; + final String relativeWorkingDir = workingDirectory ?? path.relative(io.Directory.current.path); + + final Command command = await startCommand(executable, arguments, + workingDirectory: workingDirectory, + environment: environment, + outputMode: outputMode, + removeLine: removeLine, + outputListener: outputListener, + ); + + final CommandResult result = CommandResult._( + await command.process.exitCode, + command._time.elapsed, + await command._savedStdout, + await command._savedStderr, + ); + + if ((result.exitCode == 0) == expectNonZeroExit || (expectedExitCode != null && result.exitCode != expectedExitCode)) { + // Print the output when we get unexpected results (unless output was + // printed already). + switch (outputMode) { + case OutputMode.print: + break; + case OutputMode.capture: + print(result.flattenedStdout); + print(result.flattenedStderr); + } + final String allOutput = '${result.flattenedStdout}\n${result.flattenedStderr}'; + foundError([ + if (failureMessage != null) + failureMessage, + '${bold}Command: $green$commandDescription$reset', + if (failureMessage == null) + '$bold${red}Command exited with exit code ${result.exitCode} but expected ${expectNonZeroExit ? (expectedExitCode ?? 'non-zero') : 'zero'} exit code.$reset', + '${bold}Working directory: $cyan${path.absolute(relativeWorkingDir)}$reset', + if (allOutput.isNotEmpty && allOutput.length < 512) + '${bold}stdout and stderr output:\n$allOutput', + ]); + } else { + print('ELAPSED TIME: ${prettyPrintDuration(result.elapsedTime)} for $green$commandDescription$reset in $cyan$relativeWorkingDir$reset'); + } + return result; +} + +/// Specifies what to do with the command output from [runCommand] and [startCommand]. +enum OutputMode { + /// Forwards standard output and standard error streams to the test process' + /// standard output stream (i.e. stderr is redirected to stdout). + /// + /// Use this mode if all you want is print the output of the command to the + /// console. The output is no longer available after the process exits. + print, + + /// Saves standard output and standard error streams in memory. + /// + /// Captured output can be retrieved from the [CommandResult] object. + /// + /// Use this mode in tests that need to inspect the output of a command, or + /// when the output should not be printed to console. + capture, +} diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/service_worker_test.dart b/novelforge-project/agent-workspace/flutter/dev/bots/service_worker_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..219d36be728114b856ea3083325462d8776d3a01 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/service_worker_test.dart @@ -0,0 +1,838 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:core' hide print; +import 'dart:io' hide exit; + +import 'package:path/path.dart' as path; +import 'package:shelf/shelf.dart'; + +import 'browser.dart'; +import 'run_command.dart'; +import 'test/common.dart'; +import 'utils.dart'; + +final String _bat = Platform.isWindows ? '.bat' : ''; +final String _flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(Platform.script)))); +final String _flutter = path.join(_flutterRoot, 'bin', 'flutter$_bat'); +final String _testAppDirectory = path.join(_flutterRoot, 'dev', 'integration_tests', 'web'); +final String _testAppWebDirectory = path.join(_testAppDirectory, 'web'); +final String _appBuildDirectory = path.join(_testAppDirectory, 'build', 'web'); +final String _target = path.join('lib', 'service_worker_test.dart'); +final String _targetWithCachedResources = path.join('lib', 'service_worker_test_cached_resources.dart'); +final String _targetWithBlockedServiceWorkers = path.join('lib', 'service_worker_test_blocked_service_workers.dart'); +final String _targetPath = path.join(_testAppDirectory, _target); + +enum ServiceWorkerTestType { + // Mocks how FF disables service workers. + blockedServiceWorkers, + // Drops the main.dart.js directly on the page. + withoutFlutterJs, + // Uses the standard, promise-based, flutterJS initialization. + withFlutterJs, + // Uses the shorthand engineInitializer.autoStart(); + withFlutterJsShort, + // Uses onEntrypointLoaded callback instead of returned promise. + withFlutterJsEntrypointLoadedEvent, + // Same as withFlutterJsEntrypointLoadedEvent, but with TrustedTypes enabled. + withFlutterJsTrustedTypesOn, + // Same as withFlutterJsEntrypointLoadedEvent, but with nonce required. + withFlutterJsNonceOn, + // Uses custom serviceWorkerVersion. + withFlutterJsCustomServiceWorkerVersion, + // Entrypoint generated by `flutter create`. + generatedEntrypoint, +} + +// Run a web service worker test as a standalone Dart program. +Future main() async { + // When updating this list, also update `dev/bots/test.dart`. This `main()` + // function is only here for convenience. Adding tests here will not add them + // to LUCI. + await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withoutFlutterJs); + await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJs); + await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJsShort); + await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent); + await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJsTrustedTypesOn); + await runWebServiceWorkerTest(headless: false, testType: ServiceWorkerTestType.withFlutterJsNonceOn); + await runWebServiceWorkerTestWithCachingResources(headless: false, testType: ServiceWorkerTestType.withoutFlutterJs); + await runWebServiceWorkerTestWithCachingResources(headless: false, testType: ServiceWorkerTestType.withFlutterJs); + await runWebServiceWorkerTestWithCachingResources(headless: false, testType: ServiceWorkerTestType.withFlutterJsShort); + await runWebServiceWorkerTestWithCachingResources(headless: false, testType: ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent); + await runWebServiceWorkerTestWithCachingResources(headless: false, testType: ServiceWorkerTestType.withFlutterJsTrustedTypesOn); + await runWebServiceWorkerTestWithGeneratedEntrypoint(headless: false); + await runWebServiceWorkerTestWithBlockedServiceWorkers(headless: false); + await runWebServiceWorkerTestWithCustomServiceWorkerVersion(headless: false); + + if (hasError) { + reportErrorsAndExit('${bold}One or more tests failed.$reset'); + } + reportSuccessAndExit('${bold}Tests successful.$reset'); +} + +// Regression test for https://github.com/flutter/flutter/issues/109093. +// +// Tests the entrypoint that's generated by `flutter create`. +Future runWebServiceWorkerTestWithGeneratedEntrypoint({ + required bool headless, +}) async { + await _generateEntrypoint(); + await runWebServiceWorkerTestWithCachingResources(headless: headless, testType: ServiceWorkerTestType.generatedEntrypoint); +} + +Future _generateEntrypoint() async { + final Directory tempDirectory = Directory.systemTemp.createTempSync('flutter_web_generated_entrypoint.'); + await runCommand( + _flutter, + [ 'create', 'generated_entrypoint_test' ], + workingDirectory: tempDirectory.path, + ); + final File generatedEntrypoint = File(path.join(tempDirectory.path, 'generated_entrypoint_test', 'web', 'index.html')); + final String generatedEntrypointCode = generatedEntrypoint.readAsStringSync(); + final File testEntrypoint = File(path.join( + _testAppWebDirectory, + _testTypeToIndexFile(ServiceWorkerTestType.generatedEntrypoint), + )); + testEntrypoint.writeAsStringSync(generatedEntrypointCode); + tempDirectory.deleteSync(recursive: true); +} + +Future _setAppVersion(int version) async { + final File targetFile = File(_targetPath); + await targetFile.writeAsString( + (await targetFile.readAsString()).replaceFirst( + RegExp(r'CLOSE\?version=\d+'), + 'CLOSE?version=$version', + ) + ); +} + +String _testTypeToIndexFile(ServiceWorkerTestType type) { + return switch (type) { + ServiceWorkerTestType.blockedServiceWorkers => 'index_with_blocked_service_workers.html', + ServiceWorkerTestType.withFlutterJs => 'index_with_flutterjs.html', + ServiceWorkerTestType.withoutFlutterJs => 'index_without_flutterjs.html', + ServiceWorkerTestType.withFlutterJsShort => 'index_with_flutterjs_short.html', + ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent => 'index_with_flutterjs_entrypoint_loaded.html', + ServiceWorkerTestType.withFlutterJsTrustedTypesOn => 'index_with_flutterjs_el_tt_on.html', + ServiceWorkerTestType.withFlutterJsNonceOn => 'index_with_flutterjs_el_nonce.html', + ServiceWorkerTestType.withFlutterJsCustomServiceWorkerVersion => 'index_with_flutterjs_custom_sw_version.html', + ServiceWorkerTestType.generatedEntrypoint => 'generated_entrypoint.html', + }; +} + +Future _rebuildApp({ required int version, required ServiceWorkerTestType testType, required String target }) async { + await _setAppVersion(version); + await runCommand( + _flutter, + [ 'clean' ], + workingDirectory: _testAppDirectory, + ); + await runCommand( + 'cp', + [ + _testTypeToIndexFile(testType), + 'index.html', + ], + workingDirectory: _testAppWebDirectory, + ); + await runCommand( + _flutter, + ['build', 'web', '--web-resources-cdn', '--profile', '-t', target], + workingDirectory: _testAppDirectory, + environment: { + 'FLUTTER_WEB': 'true', + }, + ); +} + +void _expectRequestCounts( + Map expectedCounts, + Map requestedPathCounts, +) { + expect(requestedPathCounts, expectedCounts); + requestedPathCounts.clear(); +} + +Future _waitForAppToLoad( + Map waitForCounts, + Map requestedPathCounts, + AppServer? server +) async { + print('Waiting for app to load $waitForCounts'); + await Future.any(>[ + () async { + while (!waitForCounts.entries.every((MapEntry entry) => (requestedPathCounts[entry.key] ?? 0) >= entry.value)) { + await Future.delayed(const Duration(milliseconds: 100)); + } + }(), + server!.onChromeError.then((String error) { + throw Exception('Chrome error: $error'); + }), + ]); +} + +/// A drop-in replacement for `package:test` expect that can run outside the +/// test zone. +void expect(Object? actual, Object? expected) { + final Matcher matcher = wrapMatcher(expected); + // matchState needs to be of type , see https://github.com/flutter/flutter/issues/99522 + final Map matchState = {}; + if (matcher.matches(actual, matchState)) { + return; + } + final StringDescription mismatchDescription = StringDescription(); + matcher.describeMismatch(actual, mismatchDescription, matchState, true); + throw TestFailure(mismatchDescription.toString()); +} + +Future runWebServiceWorkerTest({ + required bool headless, + required ServiceWorkerTestType testType, +}) async { + final Map requestedPathCounts = {}; + void expectRequestCounts(Map expectedCounts) => + _expectRequestCounts(expectedCounts, requestedPathCounts); + + AppServer? server; + Future waitForAppToLoad(Map waitForCounts) async => + _waitForAppToLoad(waitForCounts, requestedPathCounts, server); + + String? reportedVersion; + + Future startAppServer({ + required String cacheControl, + }) async { + final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + server = await AppServer.start( + headless: headless, + cacheControl: cacheControl, + // TODO(yjbanov): use a better port disambiguation strategy than trying + // to guess what ports other tests use. + appUrl: 'http://localhost:$serverPort/index.html', + serverPort: serverPort, + browserDebugPort: browserDebugPort, + appDirectory: _appBuildDirectory, + additionalRequestHandlers: [ + (Request request) { + final String requestedPath = request.url.path; + requestedPathCounts.putIfAbsent(requestedPath, () => 0); + requestedPathCounts[requestedPath] = requestedPathCounts[requestedPath]! + 1; + if (requestedPath == 'CLOSE') { + reportedVersion = request.url.queryParameters['version']; + return Response.ok('OK'); + } + return Response.notFound(''); + }, + ], + ); + } + + // Preserve old index.html as index_og.html so we can restore it later for other tests + await runCommand( + 'mv', + [ + 'index.html', + 'index_og.html', + ], + workingDirectory: _testAppWebDirectory, + ); + + final bool shouldExpectFlutterJs = testType != ServiceWorkerTestType.withoutFlutterJs; + + print('BEGIN runWebServiceWorkerTest(headless: $headless, testType: $testType)'); + + try { + ///// + // Attempt to load a different version of the service worker! + ///// + await _rebuildApp(version: 1, testType: testType, target: _target); + + print('Call update() on the current web worker'); + await startAppServer(cacheControl: 'max-age=0'); + await waitForAppToLoad( { + if (shouldExpectFlutterJs) + 'flutter.js': 1, + 'CLOSE': 1, + }); + expect(reportedVersion, '1'); + reportedVersion = null; + + await server!.chrome.reloadPage(ignoreCache: true); + await waitForAppToLoad( { + if (shouldExpectFlutterJs) + 'flutter.js': 2, + 'CLOSE': 2, + }); + expect(reportedVersion, '1'); + reportedVersion = null; + + await _rebuildApp(version: 2, testType: testType, target: _target); + + await server!.chrome.reloadPage(ignoreCache: true); + await waitForAppToLoad({ + if (shouldExpectFlutterJs) + 'flutter.js': 3, + 'CLOSE': 3, + }); + expect(reportedVersion, '2'); + + reportedVersion = null; + requestedPathCounts.clear(); + await server!.stop(); + + ////////////////////////////////////////////////////// + // Caching server + ////////////////////////////////////////////////////// + await _rebuildApp(version: 1, testType: testType, target: _target); + + print('With cache: test first page load'); + await startAppServer(cacheControl: 'max-age=3600'); + await waitForAppToLoad({ + 'CLOSE': 1, + 'flutter_service_worker.js': 1, + }); + + expectRequestCounts({ + // Even though the server is caching index.html is downloaded twice, + // once by the initial page load, and once by the service worker. + // Other resources are loaded once only by the service worker. + 'index.html': 2, + if (shouldExpectFlutterJs) + 'flutter.js': 1, + 'main.dart.js': 1, + 'flutter_service_worker.js': 1, + 'assets/FontManifest.json': 1, + 'assets/AssetManifest.bin.json': 1, + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'CLOSE': 1, + // In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'. + if (!headless) + ...{ + 'manifest.json': 1, + 'favicon.ico': 1, + }, + }); + expect(reportedVersion, '1'); + reportedVersion = null; + + print('With cache: test page reload'); + await server!.chrome.reloadPage(); + await waitForAppToLoad({ + 'CLOSE': 1, + 'flutter_service_worker.js': 1, + }); + + expectRequestCounts({ + 'flutter_service_worker.js': 1, + 'CLOSE': 1, + }); + expect(reportedVersion, '1'); + reportedVersion = null; + + print('With cache: test page reload after rebuild'); + await _rebuildApp(version: 2, testType: testType, target: _target); + + // Since we're caching, we need to ignore cache when reloading the page. + await server!.chrome.reloadPage(ignoreCache: true); + await waitForAppToLoad({ + 'CLOSE': 1, + 'flutter_service_worker.js': 2, + }); + expectRequestCounts({ + 'index.html': 2, + if (shouldExpectFlutterJs) + 'flutter.js': 1, + 'flutter_service_worker.js': 2, + 'main.dart.js': 1, + 'assets/AssetManifest.bin.json': 1, + 'assets/FontManifest.json': 1, + 'CLOSE': 1, + if (!headless) + 'favicon.ico': 1, + }); + + expect(reportedVersion, '2'); + reportedVersion = null; + await server!.stop(); + + + ////////////////////////////////////////////////////// + // Non-caching server + ////////////////////////////////////////////////////// + print('No cache: test first page load'); + await _rebuildApp(version: 3, testType: testType, target: _target); + await startAppServer(cacheControl: 'max-age=0'); + await waitForAppToLoad({ + 'CLOSE': 1, + 'flutter_service_worker.js': 1, + }); + + expectRequestCounts({ + 'index.html': 2, + if (shouldExpectFlutterJs) + 'flutter.js': 1, + 'main.dart.js': 1, + 'assets/FontManifest.json': 1, + 'flutter_service_worker.js': 1, + 'assets/AssetManifest.bin.json': 1, + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'CLOSE': 1, + // In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'. + if (!headless) + ...{ + 'manifest.json': 1, + 'favicon.ico': 1, + }, + }); + + expect(reportedVersion, '3'); + reportedVersion = null; + + print('No cache: test page reload'); + await server!.chrome.reloadPage(); + await waitForAppToLoad({ + 'CLOSE': 1, + if (shouldExpectFlutterJs) + 'flutter.js': 1, + 'flutter_service_worker.js': 1, + }); + + expectRequestCounts({ + if (shouldExpectFlutterJs) + 'flutter.js': 1, + 'flutter_service_worker.js': 1, + 'CLOSE': 1, + if (!headless) + 'manifest.json': 1, + }); + expect(reportedVersion, '3'); + reportedVersion = null; + + print('No cache: test page reload after rebuild'); + await _rebuildApp(version: 4, testType: testType, target: _target); + + // TODO(yjbanov): when running Chrome with DevTools protocol, for some + // reason a hard refresh is still required. This works without a hard + // refresh when running Chrome manually as normal. At the time of writing + // this test I wasn't able to figure out what's wrong with the way we run + // Chrome from tests. + await server!.chrome.reloadPage(ignoreCache: true); + await waitForAppToLoad({ + 'CLOSE': 1, + 'flutter_service_worker.js': 1, + }); + expectRequestCounts({ + 'index.html': 2, + if (shouldExpectFlutterJs) + 'flutter.js': 1, + 'flutter_service_worker.js': 2, + 'main.dart.js': 1, + 'assets/AssetManifest.bin.json': 1, + 'assets/FontManifest.json': 1, + 'CLOSE': 1, + if (!headless) + ...{ + 'manifest.json': 1, + 'favicon.ico': 1, + }, + }); + + expect(reportedVersion, '4'); + reportedVersion = null; + } finally { + await runCommand( + 'mv', + [ + 'index_og.html', + 'index.html', + ], + workingDirectory: _testAppWebDirectory, + ); + await _setAppVersion(1); + await server?.stop(); + } + + print('END runWebServiceWorkerTest(headless: $headless, testType: $testType)'); +} + +Future runWebServiceWorkerTestWithCachingResources({ + required bool headless, + required ServiceWorkerTestType testType +}) async { + final Map requestedPathCounts = {}; + void expectRequestCounts(Map expectedCounts) => + _expectRequestCounts(expectedCounts, requestedPathCounts); + + AppServer? server; + Future waitForAppToLoad(Map waitForCounts) async => + _waitForAppToLoad(waitForCounts, requestedPathCounts, server); + + Future startAppServer({ + required String cacheControl, + }) async { + final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + server = await AppServer.start( + headless: headless, + cacheControl: cacheControl, + // TODO(yjbanov): use a better port disambiguation strategy than trying + // to guess what ports other tests use. + appUrl: 'http://localhost:$serverPort/index.html', + serverPort: serverPort, + browserDebugPort: browserDebugPort, + appDirectory: _appBuildDirectory, + additionalRequestHandlers: [ + (Request request) { + final String requestedPath = request.url.path; + requestedPathCounts.putIfAbsent(requestedPath, () => 0); + requestedPathCounts[requestedPath] = requestedPathCounts[requestedPath]! + 1; + if (requestedPath == 'assets/fonts/MaterialIcons-Regular.otf') { + return Response.internalServerError(); + } + return Response.notFound(''); + }, + ], + ); + } + + // Preserve old index.html as index_og.html so we can restore it later for other tests + await runCommand( + 'mv', + [ + 'index.html', + 'index_og.html', + ], + workingDirectory: _testAppWebDirectory, + ); + + final bool shouldExpectFlutterJs = testType != ServiceWorkerTestType.withoutFlutterJs; + + print('BEGIN runWebServiceWorkerTestWithCachingResources(headless: $headless, testType: $testType)'); + + try { + ////////////////////////////////////////////////////// + // Caching server + ////////////////////////////////////////////////////// + await _rebuildApp(version: 1, testType: testType, target: _targetWithCachedResources); + + print('With cache: test first page load'); + await startAppServer(cacheControl: 'max-age=3600'); + await waitForAppToLoad({ + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'flutter_service_worker.js': 1, + }); + + expectRequestCounts({ + // Even though the server is caching index.html is downloaded twice, + // once by the initial page load, and once by the service worker. + // Other resources are loaded once only by the service worker. + 'index.html': 2, + if (shouldExpectFlutterJs) + 'flutter.js': 1, + 'main.dart.js': 1, + 'flutter_service_worker.js': 1, + 'assets/FontManifest.json': 1, + 'assets/AssetManifest.bin.json': 1, + 'assets/fonts/MaterialIcons-Regular.otf': 1, + // In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'. + if (!headless) + ...{ + 'manifest.json': 1, + 'favicon.ico': 1, + }, + }); + + print('With cache: test first page reload'); + await server!.chrome.reloadPage(); + await waitForAppToLoad({ + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'flutter_service_worker.js': 1, + }); + expectRequestCounts({ + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'flutter_service_worker.js': 1, + }); + + print('With cache: test second page reload'); + await server!.chrome.reloadPage(); + await waitForAppToLoad({ + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'flutter_service_worker.js': 1, + }); + expectRequestCounts({ + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'flutter_service_worker.js': 1, + }); + + print('With cache: test third page reload'); + await server!.chrome.reloadPage(); + await waitForAppToLoad({ + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'flutter_service_worker.js': 1, + }); + expectRequestCounts({ + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'flutter_service_worker.js': 1, + }); + + print('With cache: test page reload after rebuild'); + await _rebuildApp(version: 1, testType: testType, target: _targetWithCachedResources); + + // Since we're caching, we need to ignore cache when reloading the page. + await server!.chrome.reloadPage(ignoreCache: true); + await waitForAppToLoad({ + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'flutter_service_worker.js': 1, + }); + expectRequestCounts({ + 'index.html': 2, + if (shouldExpectFlutterJs) + 'flutter.js': 1, + 'main.dart.js': 1, + 'flutter_service_worker.js': 2, + 'assets/FontManifest.json': 1, + 'assets/AssetManifest.bin.json': 1, + 'assets/fonts/MaterialIcons-Regular.otf': 1, + // In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'. + if (!headless) + ...{ + 'favicon.ico': 1, + }, + }); + } finally { + await runCommand( + 'mv', + [ + 'index_og.html', + 'index.html', + ], + workingDirectory: _testAppWebDirectory, + ); + await server?.stop(); + } + + print('END runWebServiceWorkerTestWithCachingResources(headless: $headless, testType: $testType)'); +} + +Future runWebServiceWorkerTestWithBlockedServiceWorkers({ + required bool headless +}) async { + final Map requestedPathCounts = {}; + void expectRequestCounts(Map expectedCounts) => + _expectRequestCounts(expectedCounts, requestedPathCounts); + + AppServer? server; + Future waitForAppToLoad(Map waitForCounts) async => + _waitForAppToLoad(waitForCounts, requestedPathCounts, server); + + Future startAppServer({ + required String cacheControl, + }) async { + final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + server = await AppServer.start( + headless: headless, + cacheControl: cacheControl, + // TODO(yjbanov): use a better port disambiguation strategy than trying + // to guess what ports other tests use. + appUrl: 'http://localhost:$serverPort/index.html', + serverPort: serverPort, + browserDebugPort: browserDebugPort, + appDirectory: _appBuildDirectory, + additionalRequestHandlers: [ + (Request request) { + final String requestedPath = request.url.path; + requestedPathCounts.putIfAbsent(requestedPath, () => 0); + requestedPathCounts[requestedPath] = requestedPathCounts[requestedPath]! + 1; + if (requestedPath == 'CLOSE') { + return Response.ok('OK'); + } + return Response.notFound(''); + }, + ], + ); + } + + // Preserve old index.html as index_og.html so we can restore it later for other tests + await runCommand( + 'mv', + [ + 'index.html', + 'index_og.html', + ], + workingDirectory: _testAppWebDirectory, + ); + + print('BEGIN runWebServiceWorkerTestWithBlockedServiceWorkers(headless: $headless)'); + try { + await _rebuildApp(version: 1, testType: ServiceWorkerTestType.blockedServiceWorkers, target: _targetWithBlockedServiceWorkers); + + print('Ensure app starts (when service workers are blocked)'); + await startAppServer(cacheControl: 'max-age=3600'); + await waitForAppToLoad({ + 'CLOSE': 1, + }); + expectRequestCounts({ + 'index.html': 1, + 'flutter.js': 1, + 'main.dart.js': 1, + 'assets/FontManifest.json': 1, + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'CLOSE': 1, + // In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'. + if (!headless) + ...{ + 'manifest.json': 1, + 'favicon.ico': 1, + }, + }); + } finally { + await runCommand( + 'mv', + [ + 'index_og.html', + 'index.html', + ], + workingDirectory: _testAppWebDirectory, + ); + await server?.stop(); + } + print('END runWebServiceWorkerTestWithBlockedServiceWorkers(headless: $headless)'); +} + +/// Regression test for https://github.com/flutter/flutter/issues/130212. +Future runWebServiceWorkerTestWithCustomServiceWorkerVersion({ + required bool headless, +}) async { + final Map requestedPathCounts = {}; + void expectRequestCounts(Map expectedCounts) => + _expectRequestCounts(expectedCounts, requestedPathCounts); + + AppServer? server; + Future waitForAppToLoad(Map waitForCounts) async => + _waitForAppToLoad(waitForCounts, requestedPathCounts, server); + + Future startAppServer({ + required String cacheControl, + }) async { + final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + server = await AppServer.start( + headless: headless, + cacheControl: cacheControl, + // TODO(yjbanov): use a better port disambiguation strategy than trying + // to guess what ports other tests use. + appUrl: 'http://localhost:$serverPort/index.html', + serverPort: serverPort, + browserDebugPort: browserDebugPort, + appDirectory: _appBuildDirectory, + additionalRequestHandlers: [ + (Request request) { + final String requestedPath = request.url.path; + requestedPathCounts.putIfAbsent(requestedPath, () => 0); + requestedPathCounts[requestedPath] = requestedPathCounts[requestedPath]! + 1; + if (requestedPath == 'CLOSE') { + return Response.ok('OK'); + } + return Response.notFound(''); + }, + ], + ); + } + + // Preserve old index.html as index_og.html so we can restore it later for other tests + await runCommand( + 'mv', + [ + 'index.html', + 'index_og.html', + ], + workingDirectory: _testAppWebDirectory, + ); + + print('BEGIN runWebServiceWorkerTestWithCustomServiceWorkerVersion(headless: $headless)'); + try { + await _rebuildApp(version: 1, testType: ServiceWorkerTestType.withFlutterJsCustomServiceWorkerVersion, target: _target); + + print('Test page load'); + await startAppServer(cacheControl: 'max-age=0'); + await waitForAppToLoad({ + 'CLOSE': 1, + 'flutter_service_worker.js': 1, + 'assets/fonts/MaterialIcons-Regular.otf': 1, + }); + expectRequestCounts({ + 'index.html': 2, + 'flutter.js': 1, + 'main.dart.js': 1, + 'CLOSE': 1, + 'flutter_service_worker.js': 1, + 'assets/FontManifest.json': 1, + 'assets/AssetManifest.bin.json': 1, + 'assets/fonts/MaterialIcons-Regular.otf': 1, + // In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'. + if (!headless) + ...{ + 'manifest.json': 1, + 'favicon.ico': 1, + }, + }); + + print('Test page reload, ensure service worker is not reloaded'); + await server!.chrome.reloadPage(ignoreCache: true); + await waitForAppToLoad({ + 'CLOSE': 1, + 'flutter.js': 1, + }); + expectRequestCounts({ + 'index.html': 1, + 'flutter.js': 1, + 'main.dart.js': 1, + 'assets/FontManifest.json': 1, + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'CLOSE': 1, + // In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'. + if (!headless) + ...{ + 'manifest.json': 1, + 'favicon.ico': 1, + }, + }); + + print('Test page reload after rebuild, ensure service worker is not reloaded'); + await _rebuildApp(version: 1, testType: ServiceWorkerTestType.withFlutterJsCustomServiceWorkerVersion, target: _target); + await server!.chrome.reloadPage(ignoreCache: true); + await waitForAppToLoad({ + 'CLOSE': 1, + 'flutter.js': 1, + }); + expectRequestCounts({ + 'index.html': 1, + 'flutter.js': 1, + 'main.dart.js': 1, + 'assets/FontManifest.json': 1, + 'assets/fonts/MaterialIcons-Regular.otf': 1, + 'CLOSE': 1, + // In headless mode Chrome does not load 'manifest.json' and 'favicon.ico'. + if (!headless) + ...{ + 'manifest.json': 1, + 'favicon.ico': 1, + }, + }); + } finally { + await runCommand( + 'mv', + [ + 'index_og.html', + 'index.html', + ], + workingDirectory: _testAppWebDirectory, + ); + await server?.stop(); + } + print('END runWebServiceWorkerTestWithCustomServiceWorkerVersion(headless: $headless)'); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/serviceaccount.enc b/novelforge-project/agent-workspace/flutter/dev/bots/serviceaccount.enc new file mode 100644 index 0000000000000000000000000000000000000000..b9972711e73226c83586fa232c6e71853fe7f451 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/dev/bots/serviceaccount.enc differ diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/test.dart b/novelforge-project/agent-workspace/flutter/dev/bots/test.dart new file mode 100644 index 0000000000000000000000000000000000000000..11fb71c7a978247288b545f848615ab260c954d1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/test.dart @@ -0,0 +1,2592 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Runs the tests for the flutter/flutter repository. +// +// +// By default, test output is filtered and only errors are shown. (If a +// particular test takes longer than _quietTimeout in utils.dart, the output is +// shown then also, in case something has hung.) +// +// --verbose stops the output cleanup and just outputs everything verbatim. +// +// +// By default, errors are non-fatal; all tests are executed and the output +// ends with a summary of the errors that were detected. +// +// Exit code is 1 if there was an error. +// +// --abort-on-error causes the script to exit immediately when hitting an error. +// +// +// By default, all tests are run. However, the tests support being split by +// shard and subshard. (Inspect the code to see what shards and subshards are +// supported.) +// +// If the CIRRUS_TASK_NAME environment variable exists, it is used to determine +// the shard and sub-shard, by parsing it in the form shard-subshard-platform, +// ignoring the platform. +// +// For local testing you can just set the SHARD and SUBSHARD environment +// variables. For example, to run all the framework tests you can just set +// SHARD=framework_tests. Some shards support named subshards, like +// SHARD=framework_tests SUBSHARD=widgets. Others support arbitrary numbered +// subsharding, like SHARD=build_tests SUBSHARD=1_2 (where 1_2 means "one of +// two" as in run the first half of the tests). +// +// So for example to run specifically the third subshard of the Web tests you +// would set SHARD=web_tests SUBSHARD=2 (it's zero-based). +// +// By default, where supported, tests within a shard are executed in a random +// order to (eventually) catch inter-test dependencies. +// +// --test-randomize-ordering-seed= sets the shuffle seed for reproducing runs. +// +// +// All other arguments are treated as arguments to pass to the flutter tool when +// running tests. + +import 'dart:convert'; +import 'dart:core' as system show print; +import 'dart:core' hide print; +import 'dart:io' as system show exit; +import 'dart:io' hide exit; +import 'dart:io' as io; +import 'dart:math' as math; +import 'dart:typed_data'; + +import 'package:archive/archive.dart'; +import 'package:file/file.dart' as fs; +import 'package:file/local.dart'; +import 'package:meta/meta.dart'; +import 'package:path/path.dart' as path; +import 'package:process/process.dart'; + +import 'browser.dart'; +import 'run_command.dart'; +import 'service_worker_test.dart'; +import 'tool_subsharding.dart'; +import 'utils.dart'; + +typedef ShardRunner = Future Function(); + +/// A function used to validate the output of a test. +/// +/// If the output matches expectations, the function shall return null. +/// +/// If the output does not match expectations, the function shall return an +/// appropriate error message. +typedef OutputChecker = String? Function(CommandResult); + +final String exe = Platform.isWindows ? '.exe' : ''; +final String bat = Platform.isWindows ? '.bat' : ''; +final String flutterRoot = path.dirname(path.dirname(path.dirname(path.fromUri(Platform.script)))); +final String flutter = path.join(flutterRoot, 'bin', 'flutter$bat'); +final String dart = path.join(flutterRoot, 'bin', 'cache', 'dart-sdk', 'bin', 'dart$exe'); +final String pubCache = path.join(flutterRoot, '.pub-cache'); +final String engineVersionFile = path.join(flutterRoot, 'bin', 'internal', 'engine.version'); +final String engineRealmFile = path.join(flutterRoot, 'bin', 'internal', 'engine.realm'); +final String flutterPackagesVersionFile = path.join(flutterRoot, 'bin', 'internal', 'flutter_packages.version'); + +String get platformFolderName { + if (Platform.isWindows) { + return 'windows-x64'; + } + if (Platform.isMacOS) { + return 'darwin-x64'; + } + if (Platform.isLinux) { + return 'linux-x64'; + } + throw UnsupportedError('The platform ${Platform.operatingSystem} is not supported by this script.'); +} +final String flutterTester = path.join(flutterRoot, 'bin', 'cache', 'artifacts', 'engine', platformFolderName, 'flutter_tester$exe'); + +/// The arguments to pass to `flutter test` (typically the local engine +/// configuration) -- prefilled with the arguments passed to test.dart. +final List flutterTestArgs = []; + +/// Environment variables to override the local engine when running `pub test`, +/// if such flags are provided to `test.dart`. +final Map localEngineEnv = {}; + +const String kShardKey = 'SHARD'; +const String kSubshardKey = 'SUBSHARD'; + +/// The number of Cirrus jobs that run Web tests in parallel. +/// +/// The default is 8 shards. Typically .cirrus.yml would define the +/// WEB_SHARD_COUNT environment variable rather than relying on the default. +/// +/// WARNING: if you change this number, also change .cirrus.yml +/// and make sure it runs _all_ shards. +/// +/// The last shard also runs the Web plugin tests. +int get webShardCount => Platform.environment.containsKey('WEB_SHARD_COUNT') + ? int.parse(Platform.environment['WEB_SHARD_COUNT']!) + : 8; + +/// Tests that we don't run on Web. +/// +/// In general avoid adding new tests here. If a test cannot run on the web +/// because it fails at runtime, such as when a piece of functionality is not +/// implemented or not implementable on the web, prefer using `skip` in the +/// test code. Only add tests here that cannot be skipped using `skip`. For +/// example: +/// +/// * Test code cannot be compiled because it uses Dart VM-specific +/// functionality. In this case `skip` doesn't help because the code cannot +/// reach the point where it can even run the skipping logic. +/// * Migrations. It is OK to put tests here that need to be temporarily +/// disabled in certain modes because of some migration or initial bringup. +/// +/// The key in the map is the renderer type that the list applies to. The value +/// is the list of tests known to fail for that renderer. +// +// TODO(yjbanov): we're getting rid of this as part of https://github.com/flutter/flutter/projects/60 +const Map> kWebTestFileKnownFailures = >{ + 'html': [ + // These tests are not compilable on the web due to dependencies on + // VM-specific functionality. + 'test/services/message_codecs_vm_test.dart', + 'test/examples/sector_layout_test.dart', + ], + 'canvaskit': [ + // These tests are not compilable on the web due to dependencies on + // VM-specific functionality. + 'test/services/message_codecs_vm_test.dart', + 'test/examples/sector_layout_test.dart', + + // These tests are broken and need to be fixed. + // TODO(yjbanov): https://github.com/flutter/flutter/issues/71604 + 'test/painting/text_style_test.dart', + 'test/material/text_field_test.dart', + 'test/widgets/performance_overlay_test.dart', + 'test/widgets/html_element_view_test.dart', + 'test/cupertino/scaffold_test.dart', + 'test/rendering/platform_view_test.dart', + ], +}; + +const String kTestHarnessShardName = 'test_harness_tests'; +const List _kAllBuildModes = ['debug', 'profile', 'release']; + +// The seed used to shuffle tests. If not passed with +// --test-randomize-ordering-seed= on the command line, it will be set the +// first time it is accessed. Pass zero to turn off shuffling. +String? _shuffleSeed; +String get shuffleSeed { + if (_shuffleSeed == null) { + // Change the seed at 7am, UTC. + final DateTime seedTime = DateTime.now().toUtc().subtract(const Duration(hours: 7)); + // Generates YYYYMMDD as the seed, so that testing continues to fail for a + // day after the seed changes, and on other days the seed can be used to + // replicate failures. + _shuffleSeed = '${seedTime.year * 10000 + seedTime.month * 100 + seedTime.day}'; + } + return _shuffleSeed!; +} + +/// When you call this, you can pass additional arguments to pass custom +/// arguments to flutter test. For example, you might want to call this +/// script with the parameter --local-engine=host_debug_unopt to +/// use your own build of the engine. +/// +/// To run the tool_tests part, run it with SHARD=tool_tests +/// +/// Examples: +/// SHARD=tool_tests bin/cache/dart-sdk/bin/dart dev/bots/test.dart +/// bin/cache/dart-sdk/bin/dart dev/bots/test.dart --local-engine=host_debug_unopt --local-engine-host=host_debug_unopt +Future main(List args) async { + try { + printProgress('STARTING ANALYSIS'); + for (final String arg in args) { + if (arg.startsWith('--local-engine=')) { + localEngineEnv['FLUTTER_LOCAL_ENGINE'] = arg.substring('--local-engine='.length); + flutterTestArgs.add(arg); + } else if (arg.startsWith('--local-engine-host=')) { + localEngineEnv['FLUTTER_LOCAL_ENGINE_HOST'] = arg.substring('--local-engine-host='.length); + flutterTestArgs.add(arg); + } else if (arg.startsWith('--local-engine-src-path=')) { + localEngineEnv['FLUTTER_LOCAL_ENGINE_SRC_PATH'] = arg.substring('--local-engine-src-path='.length); + flutterTestArgs.add(arg); + } else if (arg.startsWith('--test-randomize-ordering-seed=')) { + _shuffleSeed = arg.substring('--test-randomize-ordering-seed='.length); + } else if (arg.startsWith('--verbose')) { + print = (Object? message) { + system.print(message); + }; + } else if (arg.startsWith('--abort-on-error')) { + onError = () { + system.exit(1); + }; + } else { + flutterTestArgs.add(arg); + } + } + if (Platform.environment.containsKey(CIRRUS_TASK_NAME)) { + printProgress('Running task: ${Platform.environment[CIRRUS_TASK_NAME]}'); + } + await selectShard({ + 'add_to_app_life_cycle_tests': _runAddToAppLifeCycleTests, + 'build_tests': _runBuildTests, + 'framework_coverage': _runFrameworkCoverage, + 'framework_tests': _runFrameworkTests, + 'tool_tests': _runToolTests, + // web_tool_tests is also used by HHH: https://dart.googlesource.com/recipes/+/refs/heads/master/recipes/dart/flutter_engine.py + 'web_tool_tests': _runWebToolTests, + 'tool_integration_tests': _runIntegrationToolTests, + 'android_preview_tool_integration_tests': _runAndroidPreviewIntegrationToolTests, + 'tool_host_cross_arch_tests': _runToolHostCrossArchTests, + // All the unit/widget tests run using `flutter test --platform=chrome --web-renderer=html` + 'web_tests': _runWebHtmlUnitTests, + // All the unit/widget tests run using `flutter test --platform=chrome --web-renderer=canvaskit` + 'web_canvaskit_tests': _runWebCanvasKitUnitTests, + // All web integration tests + 'web_long_running_tests': _runWebLongRunningTests, + 'flutter_plugins': _runFlutterPackagesTests, + 'skp_generator': _runSkpGeneratorTests, + 'realm_checker': _runRealmCheckerTest, + 'customer_testing': _runCustomerTesting, + 'analyze': _runAnalyze, + 'fuchsia_precache': _runFuchsiaPrecache, + 'docs': _runDocs, + 'verify_binaries_codesigned': _runVerifyCodesigned, + kTestHarnessShardName: _runTestHarnessTests, // Used for testing this script; also run as part of SHARD=framework_tests, SUBSHARD=misc. + }); + } catch (error, stackTrace) { + foundError([ + 'UNEXPECTED ERROR!', + error.toString(), + ...stackTrace.toString().split('\n'), + 'The test.dart script should be corrected to catch this error and call foundError().', + '${yellow}Some tests are likely to have been skipped.$reset', + ]); + system.exit(255); + } + if (hasError) { + reportErrorsAndExit('${bold}Test failed.$reset'); + } + reportSuccessAndExit('${bold}Test successful.$reset'); +} + +final String _luciBotId = Platform.environment['SWARMING_BOT_ID'] ?? ''; +final bool _runningInDartHHHBot = + _luciBotId.startsWith('luci-dart-') || _luciBotId.startsWith('dart-tests-'); + +/// Verify the Flutter Engine is the revision in +/// bin/cache/internal/engine.version. +Future _validateEngineHash() async { + if (_runningInDartHHHBot) { + // The Dart HHH bots intentionally modify the local artifact cache + // and then use this script to run Flutter's test suites. + // Because the artifacts have been changed, this particular test will return + // a false positive and should be skipped. + print('${yellow}Skipping Flutter Engine Version Validation for swarming bot $_luciBotId.'); + return; + } + final String expectedVersion = File(engineVersionFile).readAsStringSync().trim(); + final CommandResult result = await runCommand(flutterTester, ['--help'], outputMode: OutputMode.capture); + if (result.flattenedStdout!.isNotEmpty) { + foundError([ + '${red}The stdout of `$flutterTester --help` was not empty:$reset', + ...result.flattenedStdout!.split('\n').map((String line) => ' $gray┆$reset $line'), + ]); + } + final String actualVersion; + try { + actualVersion = result.flattenedStderr!.split('\n').firstWhere((final String line) { + return line.startsWith('Flutter Engine Version:'); + }); + } on StateError { + foundError([ + '${red}Could not find "Flutter Engine Version:" line in `${path.basename(flutterTester)} --help` stderr output:$reset', + ...result.flattenedStderr!.split('\n').map((String line) => ' $gray┆$reset $line'), + ]); + return; + } + if (!actualVersion.contains(expectedVersion)) { + foundError(['${red}Expected "Flutter Engine Version: $expectedVersion", but found "$actualVersion".$reset']); + } +} + +Future _runTestHarnessTests() async { + printProgress('${green}Running test harness tests...$reset'); + + await _validateEngineHash(); + + // Verify that the tests actually return failure on failure and success on + // success. + final String automatedTests = path.join(flutterRoot, 'dev', 'automated_tests'); + + // We want to run these tests in parallel, because they each take some time + // to run (e.g. compiling), so we don't want to run them in series, especially + // on 20-core machines. However, we have a race condition, so for now... + // Race condition issue: https://github.com/flutter/flutter/issues/90026 + final List tests = [ + () => _runFlutterTest( + automatedTests, + script: path.join('test_smoke_test', 'pass_test.dart'), + printOutput: false, + ), + () => _runFlutterTest( + automatedTests, + script: path.join('test_smoke_test', 'fail_test.dart'), + expectFailure: true, + printOutput: false, + ), + () => _runFlutterTest( + automatedTests, + script: path.join('test_smoke_test', 'pending_timer_fail_test.dart'), + expectFailure: true, + printOutput: false, + outputChecker: (CommandResult result) { + return result.flattenedStdout!.contains('failingPendingTimerTest') + ? null + : 'Failed to find the stack trace for the pending Timer.\n\n' + 'stdout:\n${result.flattenedStdout}\n\n' + 'stderr:\n${result.flattenedStderr}'; + }), + () => _runFlutterTest( + automatedTests, + script: path.join('test_smoke_test', 'crash1_test.dart'), + expectFailure: true, + printOutput: false, + ), + () => _runFlutterTest( + automatedTests, + script: path.join('test_smoke_test', 'crash2_test.dart'), + expectFailure: true, + printOutput: false, + ), + () => _runFlutterTest( + automatedTests, + script: path.join('test_smoke_test', 'syntax_error_test.broken_dart'), + expectFailure: true, + printOutput: false, + ), + () => _runFlutterTest( + automatedTests, + script: path.join('test_smoke_test', 'missing_import_test.broken_dart'), + expectFailure: true, + printOutput: false, + ), + () => _runFlutterTest( + automatedTests, + script: path.join('test_smoke_test', 'disallow_error_reporter_modification_test.dart'), + expectFailure: true, + printOutput: false, + ), + ]; + + List testsToRun; + + // Run all tests unless sharding is explicitly specified. + final String? shardName = Platform.environment[kShardKey]; + if (shardName == kTestHarnessShardName) { + testsToRun = _selectIndexOfTotalSubshard(tests); + } else { + testsToRun = tests; + } + for (final ShardRunner test in testsToRun) { + await test(); + } + + // Verify that we correctly generated the version file. + final String? versionError = await verifyVersion(File(path.join(flutterRoot, 'version'))); + if (versionError != null) { + foundError([versionError]); + } +} + +final String _toolsPath = path.join(flutterRoot, 'packages', 'flutter_tools'); + +Future _runGeneralToolTests() async { + await _runDartTest( + _toolsPath, + testPaths: [path.join('test', 'general.shard')], + enableFlutterToolAsserts: false, + + // Detect unit test time regressions (poor time delay handling, etc). + // This overrides the 15 minute default for tools tests. + // See the README.md and dart_test.yaml files in the flutter_tools package. + perTestTimeout: const Duration(seconds: 2), + ); +} + +Future _runCommandsToolTests() async { + await _runDartTest( + _toolsPath, + forceSingleCore: true, + testPaths: [path.join('test', 'commands.shard')], + ); +} + +Future _runWebToolTests() async { + final List allFiles = Directory(path.join(_toolsPath, 'test', 'web.shard')) + .listSync(recursive: true).whereType().toList(); + final List allTests = []; + for (final File file in allFiles) { + if (file.path.endsWith('_test.dart')) { + allTests.add(file.path); + } + } + await _runDartTest( + _toolsPath, + forceSingleCore: true, + testPaths: _selectIndexOfTotalSubshard(allTests), + includeLocalEngineEnv: true, + ); +} + +Future _runToolHostCrossArchTests() { + return _runDartTest( + _toolsPath, + // These are integration tests + forceSingleCore: true, + testPaths: [path.join('test', 'host_cross_arch.shard')], + ); +} + +Future _runIntegrationToolTests() async { + final List allTests = Directory(path.join(_toolsPath, 'test', 'integration.shard')) + .listSync(recursive: true).whereType() + .map((FileSystemEntity entry) => path.relative(entry.path, from: _toolsPath)) + .where((String testPath) => path.basename(testPath).endsWith('_test.dart')).toList(); + + await _runDartTest( + _toolsPath, + forceSingleCore: true, + testPaths: _selectIndexOfTotalSubshard(allTests), + collectMetrics: true, + ); +} + +Future _runAndroidPreviewIntegrationToolTests() async { + final List allTests = Directory(path.join(_toolsPath, 'test', 'android_preview_integration.shard')) + .listSync(recursive: true).whereType() + .map((FileSystemEntity entry) => path.relative(entry.path, from: _toolsPath)) + .where((String testPath) => path.basename(testPath).endsWith('_test.dart')).toList(); + + await _runDartTest( + _toolsPath, + forceSingleCore: true, + testPaths: _selectIndexOfTotalSubshard(allTests), + collectMetrics: true, + ); +} + +Future _runToolTests() async { + await selectSubshard({ + 'general': _runGeneralToolTests, + 'commands': _runCommandsToolTests, + }); +} + +Future runForbiddenFromReleaseTests() async { + // Build a release APK to get the snapshot json. + final Directory tempDirectory = Directory.systemTemp.createTempSync('flutter_forbidden_imports.'); + final List command = [ + 'build', + 'apk', + '--target-platform', + 'android-arm64', + '--release', + '--analyze-size', + '--code-size-directory', + tempDirectory.path, + '-v', + ]; + + await runCommand( + flutter, + command, + workingDirectory: path.join(flutterRoot, 'examples', 'hello_world'), + ); + + // First, a smoke test. + final List smokeTestArgs = [ + path.join(flutterRoot, 'dev', 'forbidden_from_release_tests', 'bin', 'main.dart'), + '--snapshot', path.join(tempDirectory.path, 'snapshot.arm64-v8a.json'), + '--package-config', path.join(flutterRoot, 'examples', 'hello_world', '.dart_tool', 'package_config.json'), + '--forbidden-type', 'package:flutter/src/widgets/framework.dart::Widget', + ]; + await runCommand( + dart, + smokeTestArgs, + workingDirectory: flutterRoot, + expectNonZeroExit: true, + ); + + // Actual test. + final List args = [ + path.join(flutterRoot, 'dev', 'forbidden_from_release_tests', 'bin', 'main.dart'), + '--snapshot', path.join(tempDirectory.path, 'snapshot.arm64-v8a.json'), + '--package-config', path.join(flutterRoot, 'examples', 'hello_world', '.dart_tool', 'package_config.json'), + '--forbidden-type', 'package:flutter/src/widgets/widget_inspector.dart::WidgetInspectorService', + '--forbidden-type', 'package:flutter/src/widgets/framework.dart::DebugCreator', + '--forbidden-type', 'package:flutter/src/foundation/print.dart::debugPrint', + ]; + await runCommand( + dart, + args, + workingDirectory: flutterRoot, + ); +} + +/// Verifies that APK, and IPA (if on macOS), and native desktop builds the +/// examples apps without crashing. It does not actually launch the apps. That +/// happens later in the devicelab. This is just a smoke-test. In particular, +/// this will verify we can build when there are spaces in the path name for the +/// Flutter SDK and target app. +/// +/// Also does some checking about types included in hello_world. +Future _runBuildTests() async { + final List exampleDirectories = Directory(path.join(flutterRoot, 'examples')).listSync() + // API example builds will be tested in a separate shard. + .where((FileSystemEntity entity) => entity is Directory && path.basename(entity.path) != 'api').cast().toList() + ..add(Directory(path.join(flutterRoot, 'packages', 'integration_test', 'example'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'android_semantics_testing'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'android_views'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'channels'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'hybrid_android_views'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'flutter_gallery'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'ios_platform_view_tests'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'ios_app_with_extensions'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'non_nullable'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'platform_interaction'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'spell_check'))) + ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'ui'))); + + // The tests are randomly distributed into subshards so as to get a uniform + // distribution of costs, but the seed is fixed so that issues are reproducible. + final List tests = [ + for (final Directory exampleDirectory in exampleDirectories) + () => _runExampleProjectBuildTests(exampleDirectory), + ...[ + // Web compilation tests. + () => _flutterBuildDart2js( + path.join('dev', 'integration_tests', 'web'), + path.join('lib', 'main.dart'), + ), + // Should not fail to compile with dart:io. + () => _flutterBuildDart2js( + path.join('dev', 'integration_tests', 'web_compile_tests'), + path.join('lib', 'dart_io_import.dart'), + ), + ], + runForbiddenFromReleaseTests, + ]..shuffle(math.Random(0)); + + await _runShardRunnerIndexOfTotalSubshard(tests); +} + +Future _runExampleProjectBuildTests(Directory exampleDirectory, [File? mainFile]) async { + // Only verify caching with flutter gallery. + final bool verifyCaching = exampleDirectory.path.contains('flutter_gallery'); + final String examplePath = path.relative(exampleDirectory.path, from: Directory.current.path); + final List additionalArgs = [ + if (mainFile != null) path.relative(mainFile.path, from: exampleDirectory.absolute.path), + ]; + if (Directory(path.join(examplePath, 'android')).existsSync()) { + await _flutterBuildApk(examplePath, release: false, additionalArgs: additionalArgs, verifyCaching: verifyCaching); + await _flutterBuildApk(examplePath, release: true, additionalArgs: additionalArgs, verifyCaching: verifyCaching); + } else { + print('Example project ${path.basename(examplePath)} has no android directory, skipping apk'); + } + if (Platform.isMacOS) { + if (Directory(path.join(examplePath, 'ios')).existsSync()) { + await _flutterBuildIpa(examplePath, release: false, additionalArgs: additionalArgs, verifyCaching: verifyCaching); + await _flutterBuildIpa(examplePath, release: true, additionalArgs: additionalArgs, verifyCaching: verifyCaching); + } else { + print('Example project ${path.basename(examplePath)} has no ios directory, skipping ipa'); + } + } + if (Platform.isLinux) { + if (Directory(path.join(examplePath, 'linux')).existsSync()) { + await _flutterBuildLinux(examplePath, release: false, additionalArgs: additionalArgs, verifyCaching: verifyCaching); + await _flutterBuildLinux(examplePath, release: true, additionalArgs: additionalArgs, verifyCaching: verifyCaching); + } else { + print('Example project ${path.basename(examplePath)} has no linux directory, skipping Linux'); + } + } + if (Platform.isMacOS) { + if (Directory(path.join(examplePath, 'macos')).existsSync()) { + await _flutterBuildMacOS(examplePath, release: false, additionalArgs: additionalArgs, verifyCaching: verifyCaching); + await _flutterBuildMacOS(examplePath, release: true, additionalArgs: additionalArgs, verifyCaching: verifyCaching); + } else { + print('Example project ${path.basename(examplePath)} has no macos directory, skipping macOS'); + } + } + if (Platform.isWindows) { + if (Directory(path.join(examplePath, 'windows')).existsSync()) { + await _flutterBuildWin32(examplePath, release: false, additionalArgs: additionalArgs, verifyCaching: verifyCaching); + await _flutterBuildWin32(examplePath, release: true, additionalArgs: additionalArgs, verifyCaching: verifyCaching); + } else { + print('Example project ${path.basename(examplePath)} has no windows directory, skipping Win32'); + } + } +} + +Future _flutterBuildApk(String relativePathToApplication, { + required bool release, + bool verifyCaching = false, + List additionalArgs = const [], +}) async { + printProgress('${green}Testing APK ${release ? 'release' : 'debug'} build$reset for $cyan$relativePathToApplication$reset...'); + await _flutterBuild(relativePathToApplication, 'APK', 'apk', + release: release, + verifyCaching: verifyCaching, + additionalArgs: additionalArgs + ); +} + +Future _flutterBuildIpa(String relativePathToApplication, { + required bool release, + List additionalArgs = const [], + bool verifyCaching = false, +}) async { + assert(Platform.isMacOS); + printProgress('${green}Testing IPA ${release ? 'release' : 'debug'} build$reset for $cyan$relativePathToApplication$reset...'); + await _flutterBuild(relativePathToApplication, 'IPA', 'ios', + release: release, + verifyCaching: verifyCaching, + additionalArgs: [...additionalArgs, '--no-codesign'], + ); +} + +Future _flutterBuildLinux(String relativePathToApplication, { + required bool release, + bool verifyCaching = false, + List additionalArgs = const [], +}) async { + assert(Platform.isLinux); + await runCommand(flutter, ['config', '--enable-linux-desktop']); + printProgress('${green}Testing Linux ${release ? 'release' : 'debug'} build$reset for $cyan$relativePathToApplication$reset...'); + await _flutterBuild(relativePathToApplication, 'Linux', 'linux', + release: release, + verifyCaching: verifyCaching, + additionalArgs: additionalArgs + ); +} + +Future _flutterBuildMacOS(String relativePathToApplication, { + required bool release, + bool verifyCaching = false, + List additionalArgs = const [], +}) async { + assert(Platform.isMacOS); + await runCommand(flutter, ['config', '--enable-macos-desktop']); + printProgress('${green}Testing macOS ${release ? 'release' : 'debug'} build$reset for $cyan$relativePathToApplication$reset...'); + await _flutterBuild(relativePathToApplication, 'macOS', 'macos', + release: release, + verifyCaching: verifyCaching, + additionalArgs: additionalArgs + ); +} + +Future _flutterBuildWin32(String relativePathToApplication, { + required bool release, + bool verifyCaching = false, + List additionalArgs = const [], +}) async { + assert(Platform.isWindows); + printProgress('${green}Testing ${release ? 'release' : 'debug'} Windows build$reset for $cyan$relativePathToApplication$reset...'); + await _flutterBuild(relativePathToApplication, 'Windows', 'windows', + release: release, + verifyCaching: verifyCaching, + additionalArgs: additionalArgs + ); +} + +Future _flutterBuild( + String relativePathToApplication, + String platformLabel, + String platformBuildName, { + required bool release, + bool verifyCaching = false, + List additionalArgs = const [], +}) async { + await runCommand(flutter, + [ + 'build', + platformBuildName, + ...additionalArgs, + if (release) + '--release' + else + '--debug', + '-v', + ], + workingDirectory: path.join(flutterRoot, relativePathToApplication), + ); + + if (verifyCaching) { + printProgress('${green}Testing $platformLabel cache$reset for $cyan$relativePathToApplication$reset...'); + await runCommand(flutter, + [ + 'build', + platformBuildName, + '--performance-measurement-file=perf.json', + ...additionalArgs, + if (release) + '--release' + else + '--debug', + '-v', + ], + workingDirectory: path.join(flutterRoot, relativePathToApplication), + ); + final File file = File(path.join(flutterRoot, relativePathToApplication, 'perf.json')); + if (!_allTargetsCached(file)) { + foundError([ + '${red}Not all build targets cached after second run.$reset', + 'The target performance data was: ${file.readAsStringSync().replaceAll('},', '},\n')}', + ]); + } + } +} + +bool _allTargetsCached(File performanceFile) { + final Map data = json.decode(performanceFile.readAsStringSync()) + as Map; + final List> targets = (data['targets']! as List) + .cast>(); + return targets.every((Map element) => element['skipped'] == true); +} + +Future _flutterBuildDart2js(String relativePathToApplication, String target, { bool expectNonZeroExit = false }) async { + printProgress('${green}Testing Dart2JS build$reset for $cyan$relativePathToApplication$reset...'); + await runCommand(flutter, + ['build', 'web', '-v', '--target=$target'], + workingDirectory: path.join(flutterRoot, relativePathToApplication), + expectNonZeroExit: expectNonZeroExit, + environment: { + 'FLUTTER_WEB': 'true', + }, + ); +} + +Future _runAddToAppLifeCycleTests() async { + if (Platform.isMacOS) { + printProgress('${green}Running add-to-app life cycle iOS integration tests$reset...'); + final String addToAppDir = path.join(flutterRoot, 'dev', 'integration_tests', 'ios_add2app_life_cycle'); + await runCommand('./build_and_test.sh', + [], + workingDirectory: addToAppDir, + ); + } else { + printProgress('${yellow}Skipped on this platform (only iOS has add-to-add lifecycle tests at this time).$reset'); + } +} + +Future _runFrameworkTests() async { + final List trackWidgetCreationAlternatives = ['--track-widget-creation', '--no-track-widget-creation']; + + Future runWidgets() async { + printProgress('${green}Running packages/flutter tests $reset for ${cyan}test/widgets/$reset'); + for (final String trackWidgetCreationOption in trackWidgetCreationAlternatives) { + await _runFlutterTest( + path.join(flutterRoot, 'packages', 'flutter'), + options: [trackWidgetCreationOption], + tests: [ path.join('test', 'widgets') + path.separator ], + ); + } + // Try compiling code outside of the packages/flutter directory with and without --track-widget-creation + for (final String trackWidgetCreationOption in trackWidgetCreationAlternatives) { + await _runFlutterTest( + path.join(flutterRoot, 'dev', 'integration_tests', 'flutter_gallery'), + options: [trackWidgetCreationOption], + fatalWarnings: false, // until we've migrated video_player + ); + } + // Run release mode tests (see packages/flutter/test_release/README.md) + await _runFlutterTest( + path.join(flutterRoot, 'packages', 'flutter'), + options: ['--dart-define=dart.vm.product=true'], + tests: ['test_release${path.separator}'], + ); + // Run profile mode tests (see packages/flutter/test_profile/README.md) + await _runFlutterTest( + path.join(flutterRoot, 'packages', 'flutter'), + options: ['--dart-define=dart.vm.product=false', '--dart-define=dart.vm.profile=true'], + tests: ['test_profile${path.separator}'], + ); + } + + Future runLibraries() async { + final List tests = Directory(path.join(flutterRoot, 'packages', 'flutter', 'test')) + .listSync(followLinks: false) + .whereType() + .where((Directory dir) => !dir.path.endsWith('widgets')) + .map((Directory dir) => path.join('test', path.basename(dir.path)) + path.separator) + .toList(); + printProgress('${green}Running packages/flutter tests$reset for $cyan${tests.join(", ")}$reset'); + for (final String trackWidgetCreationOption in trackWidgetCreationAlternatives) { + await _runFlutterTest( + path.join(flutterRoot, 'packages', 'flutter'), + options: [trackWidgetCreationOption], + tests: tests, + ); + } + } + + Future runExampleTests() async { + // TODO(gspencergoog): Currently Linux LUCI bots can't run desktop Flutter applications, https://github.com/flutter/flutter/issues/90676 + if (!Platform.isLinux || ciProvider != CiProviders.luci) { + await runCommand( + flutter, + ['config', '--enable-${Platform.operatingSystem}-desktop'], + workingDirectory: flutterRoot, + ); + await runCommand( + dart, + [path.join(flutterRoot, 'dev', 'tools', 'examples_smoke_test.dart')], + workingDirectory: path.join(flutterRoot, 'examples', 'api'), + ); + } + for (final FileSystemEntity entity in Directory(path.join(flutterRoot, 'examples')).listSync()) { + if (entity is! Directory || !Directory(path.join(entity.path, 'test')).existsSync()) { + continue; + } + await _runFlutterTest(entity.path); + } + } + + Future runTracingTests() async { + final String tracingDirectory = path.join(flutterRoot, 'dev', 'tracing_tests'); + + // run the tests for debug mode + await _runFlutterTest(tracingDirectory, options: ['--enable-vmservice']); + + Future> verifyTracingAppBuild({ + required String modeArgument, + required String sourceFile, + required Set allowed, + required Set disallowed, + }) async { + try { + await runCommand( + flutter, + [ + 'build', 'appbundle', '--$modeArgument', path.join('lib', sourceFile), + ], + workingDirectory: tracingDirectory, + ); + final Archive archive = ZipDecoder().decodeBytes(File(path.join(tracingDirectory, 'build', 'app', 'outputs', 'bundle', modeArgument, 'app-$modeArgument.aab')).readAsBytesSync()); + final ArchiveFile libapp = archive.findFile('base/lib/arm64-v8a/libapp.so')!; + final Uint8List libappBytes = libapp.content as Uint8List; // bytes decompressed here + final String libappStrings = utf8.decode(libappBytes, allowMalformed: true); + await runCommand(flutter, ['clean'], workingDirectory: tracingDirectory); + final List results = []; + for (final String pattern in allowed) { + if (!libappStrings.contains(pattern)) { + results.add('When building with --$modeArgument, expected to find "$pattern" in libapp.so but could not find it.'); + } + } + for (final String pattern in disallowed) { + if (libappStrings.contains(pattern)) { + results.add('When building with --$modeArgument, expected to not find "$pattern" in libapp.so but did find it.'); + } + } + return results; + } catch (error, stackTrace) { + return [ + error.toString(), + ...stackTrace.toString().trimRight().split('\n'), + ]; + } + } + + final List results = []; + results.addAll(await verifyTracingAppBuild( + modeArgument: 'profile', + sourceFile: 'control.dart', // this is the control, the other two below are the actual test + allowed: { + 'TIMELINE ARGUMENTS TEST CONTROL FILE', + 'toTimelineArguments used in non-debug build', // we call toTimelineArguments directly to check the message does exist + }, + disallowed: { + 'BUILT IN DEBUG MODE', 'BUILT IN RELEASE MODE', + }, + )); + results.addAll(await verifyTracingAppBuild( + modeArgument: 'profile', + sourceFile: 'test.dart', + allowed: { + 'BUILT IN PROFILE MODE', 'RenderTest.performResize called', // controls + 'BUILD', 'LAYOUT', 'PAINT', // we output these to the timeline in profile builds + // (LAYOUT and PAINT also exist because of NEEDS-LAYOUT and NEEDS-PAINT in RenderObject.toStringShort) + }, + disallowed: { + 'BUILT IN DEBUG MODE', 'BUILT IN RELEASE MODE', + 'TestWidget.debugFillProperties called', 'RenderTest.debugFillProperties called', // debug only + 'toTimelineArguments used in non-debug build', // entire function should get dropped by tree shaker + }, + )); + results.addAll(await verifyTracingAppBuild( + modeArgument: 'release', + sourceFile: 'test.dart', + allowed: { + 'BUILT IN RELEASE MODE', 'RenderTest.performResize called', // controls + }, + disallowed: { + 'BUILT IN DEBUG MODE', 'BUILT IN PROFILE MODE', + 'BUILD', 'LAYOUT', 'PAINT', // these are only used in Timeline.startSync calls that should not appear in release builds + 'TestWidget.debugFillProperties called', 'RenderTest.debugFillProperties called', // debug only + 'toTimelineArguments used in non-debug build', // not included in release builds + }, + )); + if (results.isNotEmpty) { + foundError(results); + } + } + + Future runFixTests(String package) async { + final List args = [ + 'fix', + '--compare-to-golden', + ]; + await runCommand( + dart, + args, + workingDirectory: path.join(flutterRoot, 'packages', package, 'test_fixes'), + ); + } + + Future runPrivateTests() async { + final List args = [ + 'run', + 'bin/test_private.dart', + ]; + final Map environment = { + 'FLUTTER_ROOT': flutterRoot, + if (Directory(pubCache).existsSync()) + 'PUB_CACHE': pubCache, + }; + adjustEnvironmentToEnableFlutterAsserts(environment); + await runCommand( + dart, + args, + workingDirectory: path.join(flutterRoot, 'packages', 'flutter', 'test_private'), + environment: environment, + ); + } + + // Tests that take longer than average to run. This is usually because they + // need to compile something large or make use of the analyzer for the test. + // These tests need to be platform agnostic as they are only run on a linux + // machine to save on execution time and cost. + Future runSlow() async { + printProgress('${green}Running slow package tests$reset for directories other than packages/flutter'); + await runTracingTests(); + await runFixTests('flutter'); + await runFixTests('flutter_test'); + await runFixTests('integration_test'); + await runPrivateTests(); + } + + Future runMisc() async { + printProgress('${green}Running package tests$reset for directories other than packages/flutter'); + await _runTestHarnessTests(); + await runExampleTests(); + await _runFlutterTest( + path.join(flutterRoot, 'dev', 'a11y_assessments'), + tests: [ 'test' ], + ); + await _runDartTest(path.join(flutterRoot, 'dev', 'bots')); + await _runDartTest(path.join(flutterRoot, 'dev', 'devicelab'), ensurePrecompiledTool: false); // See https://github.com/flutter/flutter/issues/86209 + await _runDartTest(path.join(flutterRoot, 'dev', 'conductor', 'core'), forceSingleCore: true); + // TODO(gspencergoog): Remove the exception for fatalWarnings once https://github.com/flutter/flutter/issues/113782 has landed. + await _runFlutterTest(path.join(flutterRoot, 'dev', 'integration_tests', 'android_semantics_testing'), fatalWarnings: false); + await _runFlutterTest(path.join(flutterRoot, 'dev', 'integration_tests', 'ui')); + await _runFlutterTest(path.join(flutterRoot, 'dev', 'manual_tests')); + await _runFlutterTest(path.join(flutterRoot, 'dev', 'tools')); + await _runFlutterTest(path.join(flutterRoot, 'dev', 'tools', 'vitool')); + await _runFlutterTest(path.join(flutterRoot, 'dev', 'tools', 'gen_defaults')); + await _runFlutterTest(path.join(flutterRoot, 'dev', 'tools', 'gen_keycodes')); + await _runFlutterTest(path.join(flutterRoot, 'dev', 'benchmarks', 'test_apps', 'stocks')); + await _runFlutterTest(path.join(flutterRoot, 'packages', 'flutter_driver'), tests: [path.join('test', 'src', 'real_tests')]); + await _runFlutterTest(path.join(flutterRoot, 'packages', 'integration_test'), options: [ + '--enable-vmservice', + // Web-specific tests depend on Chromium, so they run as part of the web_long_running_tests shard. + '--exclude-tags=web', + ]); + // Run java unit tests for integration_test + // + // Generate Gradle wrapper if it doesn't exist. + Process.runSync( + flutter, + ['build', 'apk', '--config-only'], + workingDirectory: path.join(flutterRoot, 'packages', 'integration_test', 'example', 'android'), + ); + await runCommand( + path.join(flutterRoot, 'packages', 'integration_test', 'example', 'android', 'gradlew$bat'), + [ + ':integration_test:testDebugUnitTest', + '--tests', + 'dev.flutter.plugins.integration_test.FlutterDeviceScreenshotTest', + ], + workingDirectory: path.join(flutterRoot, 'packages', 'integration_test', 'example', 'android'), + ); + await _runFlutterTest(path.join(flutterRoot, 'packages', 'flutter_goldens')); + await _runFlutterTest(path.join(flutterRoot, 'packages', 'flutter_localizations')); + await _runFlutterTest(path.join(flutterRoot, 'packages', 'flutter_test')); + await _runFlutterTest(path.join(flutterRoot, 'packages', 'fuchsia_remote_debug_protocol')); + await _runFlutterTest(path.join(flutterRoot, 'dev', 'integration_tests', 'non_nullable')); + const String httpClientWarning = + 'Warning: At least one test in this suite creates an HttpClient. When running a test suite that uses\n' + 'TestWidgetsFlutterBinding, all HTTP requests will return status code 400, and no network request\n' + 'will actually be made. Any test expecting a real network connection and status code will fail.\n' + 'To test code that needs an HttpClient, provide your own HttpClient implementation to the code under\n' + 'test, so that your test can consistently provide a testable response to the code under test.'; + await _runFlutterTest( + path.join(flutterRoot, 'packages', 'flutter_test'), + script: path.join('test', 'bindings_test_failure.dart'), + expectFailure: true, + printOutput: false, + outputChecker: (CommandResult result) { + final Iterable matches = httpClientWarning.allMatches(result.flattenedStdout!); + if (matches.isEmpty || matches.length > 1) { + return 'Failed to print warning about HttpClientUsage, or printed it too many times.\n\n' + 'stdout:\n${result.flattenedStdout}\n\n' + 'stderr:\n${result.flattenedStderr}'; + } + return null; + }, + ); + } + + await selectSubshard({ + 'widgets': runWidgets, + 'libraries': runLibraries, + 'slow': runSlow, + 'misc': runMisc, + }); +} + +Future _runFrameworkCoverage() async { + final File coverageFile = File(path.join(flutterRoot, 'packages', 'flutter', 'coverage', 'lcov.info')); + if (!coverageFile.existsSync()) { + foundError([ + '${red}Coverage file not found.$reset', + 'Expected to find: $cyan${coverageFile.absolute.path}$reset', + 'This file is normally obtained by running `${green}flutter update-packages$reset`.', + ]); + return; + } + coverageFile.deleteSync(); + await _runFlutterTest(path.join(flutterRoot, 'packages', 'flutter'), + options: const ['--coverage'], + ); + if (!coverageFile.existsSync()) { + foundError([ + '${red}Coverage file not found.$reset', + 'Expected to find: $cyan${coverageFile.absolute.path}$reset', + 'This file should have been generated by the `${green}flutter test --coverage$reset` script, but was not.', + ]); + return; + } +} + +Future _runWebHtmlUnitTests() { + return _runWebUnitTests('html'); +} + +Future _runWebCanvasKitUnitTests() { + return _runWebUnitTests('canvaskit'); +} + +Future _runWebUnitTests(String webRenderer) async { + final Map subshards = {}; + + final Directory flutterPackageDirectory = Directory(path.join(flutterRoot, 'packages', 'flutter')); + final Directory flutterPackageTestDirectory = Directory(path.join(flutterPackageDirectory.path, 'test')); + + final List allTests = flutterPackageTestDirectory + .listSync() + .whereType() + .expand((Directory directory) => directory + .listSync(recursive: true) + .where((FileSystemEntity entity) => entity.path.endsWith('_test.dart')) + ) + .whereType() + .map((File file) => path.relative(file.path, from: flutterPackageDirectory.path)) + .where((String filePath) => !kWebTestFileKnownFailures[webRenderer]!.contains(path.split(filePath).join('/'))) + .toList() + // Finally we shuffle the list because we want the average cost per file to be uniformly + // distributed. If the list is not sorted then different shards and batches may have + // very different characteristics. + // We use a constant seed for repeatability. + ..shuffle(math.Random(0)); + + assert(webShardCount >= 1); + final int testsPerShard = (allTests.length / webShardCount).ceil(); + assert(testsPerShard * webShardCount >= allTests.length); + + // This for loop computes all but the last shard. + for (int index = 0; index < webShardCount - 1; index += 1) { + subshards['$index'] = () => _runFlutterWebTest( + webRenderer, + flutterPackageDirectory.path, + allTests.sublist( + index * testsPerShard, + (index + 1) * testsPerShard, + ), + ); + } + + // The last shard also runs the flutter_web_plugins tests. + // + // We make sure the last shard ends in _last so it's easier to catch mismatches + // between `.cirrus.yml` and `test.dart`. + subshards['${webShardCount - 1}_last'] = () async { + await _runFlutterWebTest( + webRenderer, + flutterPackageDirectory.path, + allTests.sublist( + (webShardCount - 1) * testsPerShard, + allTests.length, + ), + ); + await _runFlutterWebTest( + webRenderer, + path.join(flutterRoot, 'packages', 'flutter_web_plugins'), + ['test'], + ); + await _runFlutterWebTest( + webRenderer, + path.join(flutterRoot, 'packages', 'flutter_driver'), + [path.join('test', 'src', 'web_tests', 'web_extension_test.dart')], + ); + }; + + await selectSubshard(subshards); +} + +/// Coarse-grained integration tests running on the Web. +Future _runWebLongRunningTests() async { + final String engineVersion = File(engineVersionFile).readAsStringSync().trim(); + final String engineRealm = File(engineRealmFile).readAsStringSync().trim(); + if (engineRealm.isNotEmpty) { + return; + } + final List tests = [ + for (final String buildMode in _kAllBuildModes) ...[ + () => _runFlutterDriverWebTest( + testAppDirectory: path.join('packages', 'integration_test', 'example'), + target: path.join('test_driver', 'failure.dart'), + buildMode: buildMode, + renderer: 'canvaskit', + // This test intentionally fails and prints stack traces in the browser + // logs. To avoid confusion, silence browser output. + silenceBrowserOutput: true, + ), + () => _runFlutterDriverWebTest( + testAppDirectory: path.join('packages', 'integration_test', 'example'), + target: path.join('integration_test', 'example_test.dart'), + driver: path.join('test_driver', 'integration_test.dart'), + buildMode: buildMode, + renderer: 'canvaskit', + expectWriteResponseFile: true, + expectResponseFileContent: 'null', + ), + () => _runFlutterDriverWebTest( + testAppDirectory: path.join('packages', 'integration_test', 'example'), + target: path.join('integration_test', 'extended_test.dart'), + driver: path.join('test_driver', 'extended_integration_test.dart'), + buildMode: buildMode, + renderer: 'canvaskit', + expectWriteResponseFile: true, + expectResponseFileContent: ''' +{ + "screenshots": [ + { + "screenshotName": "platform_name", + "bytes": [] + }, + { + "screenshotName": "platform_name_2", + "bytes": [] + } + ] +}''', + ), + ], + + // This test doesn't do anything interesting w.r.t. rendering, so we don't run the full build mode x renderer matrix. + () => _runWebE2eTest('platform_messages_integration', buildMode: 'debug', renderer: 'canvaskit'), + () => _runWebE2eTest('platform_messages_integration', buildMode: 'profile', renderer: 'html'), + () => _runWebE2eTest('platform_messages_integration', buildMode: 'release', renderer: 'html'), + + // This test doesn't do anything interesting w.r.t. rendering, so we don't run the full build mode x renderer matrix. + () => _runWebE2eTest('profile_diagnostics_integration', buildMode: 'debug', renderer: 'html'), + () => _runWebE2eTest('profile_diagnostics_integration', buildMode: 'profile', renderer: 'canvaskit'), + () => _runWebE2eTest('profile_diagnostics_integration', buildMode: 'release', renderer: 'html'), + + // This test is only known to work in debug mode. + () => _runWebE2eTest('scroll_wheel_integration', buildMode: 'debug', renderer: 'html'), + + // This test doesn't do anything interesting w.r.t. rendering, so we don't run the full build mode x renderer matrix. + () => _runWebE2eTest('text_editing_integration', buildMode: 'debug', renderer: 'canvaskit'), + () => _runWebE2eTest('text_editing_integration', buildMode: 'profile', renderer: 'html'), + () => _runWebE2eTest('text_editing_integration', buildMode: 'release', renderer: 'html'), + + // This test doesn't do anything interesting w.r.t. rendering, so we don't run the full build mode x renderer matrix. + () => _runWebE2eTest('url_strategy_integration', buildMode: 'debug', renderer: 'html'), + () => _runWebE2eTest('url_strategy_integration', buildMode: 'profile', renderer: 'canvaskit'), + () => _runWebE2eTest('url_strategy_integration', buildMode: 'release', renderer: 'html'), + + // This test doesn't do anything interesting w.r.t. rendering, so we don't run the full build mode x renderer matrix. + () => _runWebE2eTest('capabilities_integration_canvaskit', buildMode: 'debug', renderer: 'auto'), + () => _runWebE2eTest('capabilities_integration_canvaskit', buildMode: 'profile', renderer: 'canvaskit'), + () => _runWebE2eTest('capabilities_integration_html', buildMode: 'release', renderer: 'html'), + + // This test doesn't do anything interesting w.r.t. rendering, so we don't run the full build mode x renderer matrix. + // CacheWidth and CacheHeight are only currently supported in CanvasKit mode, so we don't run the test in HTML mode. + () => _runWebE2eTest('cache_width_cache_height_integration', buildMode: 'debug', renderer: 'auto'), + () => _runWebE2eTest('cache_width_cache_height_integration', buildMode: 'profile', renderer: 'canvaskit'), + + () => _runWebTreeshakeTest(), + + () => _runFlutterDriverWebTest( + testAppDirectory: path.join(flutterRoot, 'examples', 'hello_world'), + target: 'test_driver/smoke_web_engine.dart', + buildMode: 'profile', + renderer: 'auto', + ), + () => _runGalleryE2eWebTest('debug'), + () => _runGalleryE2eWebTest('debug', canvasKit: true), + () => _runGalleryE2eWebTest('profile'), + () => _runGalleryE2eWebTest('profile', canvasKit: true), + () => _runGalleryE2eWebTest('release'), + () => _runGalleryE2eWebTest('release', canvasKit: true), + () => runWebServiceWorkerTest(headless: true, testType: ServiceWorkerTestType.withoutFlutterJs), + () => runWebServiceWorkerTest(headless: true, testType: ServiceWorkerTestType.withFlutterJs), + () => runWebServiceWorkerTest(headless: true, testType: ServiceWorkerTestType.withFlutterJsShort), + () => runWebServiceWorkerTest(headless: true, testType: ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent), + () => runWebServiceWorkerTest(headless: true, testType: ServiceWorkerTestType.withFlutterJsTrustedTypesOn), + () => runWebServiceWorkerTest(headless: true, testType: ServiceWorkerTestType.withFlutterJsNonceOn), + () => runWebServiceWorkerTestWithCachingResources(headless: true, testType: ServiceWorkerTestType.withoutFlutterJs), + () => runWebServiceWorkerTestWithCachingResources(headless: true, testType: ServiceWorkerTestType.withFlutterJs), + () => runWebServiceWorkerTestWithCachingResources(headless: true, testType: ServiceWorkerTestType.withFlutterJsShort), + () => runWebServiceWorkerTestWithCachingResources(headless: true, testType: ServiceWorkerTestType.withFlutterJsEntrypointLoadedEvent), + () => runWebServiceWorkerTestWithCachingResources(headless: true, testType: ServiceWorkerTestType.withFlutterJsTrustedTypesOn), + () => runWebServiceWorkerTestWithGeneratedEntrypoint(headless: true), + () => runWebServiceWorkerTestWithBlockedServiceWorkers(headless: true), + () => runWebServiceWorkerTestWithCustomServiceWorkerVersion(headless: true), + () => _runWebStackTraceTest('profile', 'lib/stack_trace.dart'), + () => _runWebStackTraceTest('release', 'lib/stack_trace.dart'), + () => _runWebStackTraceTest('profile', 'lib/framework_stack_trace.dart'), + () => _runWebStackTraceTest('release', 'lib/framework_stack_trace.dart'), + () => _runWebDebugTest('lib/stack_trace.dart'), + () => _runWebDebugTest('lib/framework_stack_trace.dart'), + () => _runWebDebugTest('lib/web_directory_loading.dart'), + () => _runWebDebugTest('lib/web_resources_cdn_test.dart', + additionalArguments: [ + '--dart-define=TEST_FLUTTER_ENGINE_VERSION=$engineVersion', + ]), + () => _runWebDebugTest('test/test.dart'), + () => _runWebDebugTest('lib/null_safe_main.dart'), + () => _runWebDebugTest('lib/web_define_loading.dart', + additionalArguments: [ + '--dart-define=test.valueA=Example,A', + '--dart-define=test.valueB=Value', + ] + ), + () => _runWebReleaseTest('lib/web_define_loading.dart', + additionalArguments: [ + '--dart-define=test.valueA=Example,A', + '--dart-define=test.valueB=Value', + ] + ), + () => _runWebDebugTest('lib/sound_mode.dart'), + () => _runWebReleaseTest('lib/sound_mode.dart'), + () => _runFlutterWebTest( + 'html', + path.join(flutterRoot, 'packages', 'integration_test'), + ['test/web_extension_test.dart'], + ), + () => _runFlutterWebTest( + 'canvaskit', + path.join(flutterRoot, 'packages', 'integration_test'), + ['test/web_extension_test.dart'], + ), + ]; + + // Shuffling mixes fast tests with slow tests so shards take roughly the same + // amount of time to run. + tests.shuffle(math.Random(0)); + + await _ensureChromeDriverIsRunning(); + await _runShardRunnerIndexOfTotalSubshard(tests); + await _stopChromeDriver(); +} + +/// Runs one of the `dev/integration_tests/web_e2e_tests` tests. +Future _runWebE2eTest( + String name, { + required String buildMode, + required String renderer, +}) async { + await _runFlutterDriverWebTest( + target: path.join('test_driver', '$name.dart'), + buildMode: buildMode, + renderer: renderer, + testAppDirectory: path.join(flutterRoot, 'dev', 'integration_tests', 'web_e2e_tests'), + ); +} + +Future _runFlutterDriverWebTest({ + required String target, + required String buildMode, + required String renderer, + required String testAppDirectory, + String? driver, + bool expectFailure = false, + bool silenceBrowserOutput = false, + bool expectWriteResponseFile = false, + String expectResponseFileContent = '', +}) async { + printProgress('${green}Running integration tests $target in $buildMode mode.$reset'); + await runCommand( + flutter, + [ 'clean' ], + workingDirectory: testAppDirectory, + ); + final String responseFile = + path.join(testAppDirectory, 'build', 'integration_response_data.json'); + if (File(responseFile).existsSync()) { + File(responseFile).deleteSync(); + } + await runCommand( + flutter, + [ + ...flutterTestArgs, + 'drive', + if (driver != null) '--driver=$driver', + '--target=$target', + '--browser-name=chrome', + '-d', + 'web-server', + '--$buildMode', + '--web-renderer=$renderer', + ], + expectNonZeroExit: expectFailure, + workingDirectory: testAppDirectory, + environment: { + 'FLUTTER_WEB': 'true', + }, + removeLine: (String line) { + if (!silenceBrowserOutput) { + return false; + } + if (line.trim().startsWith('[INFO]')) { + return true; + } + return false; + }, + ); + if (expectWriteResponseFile) { + if (!File(responseFile).existsSync()) { + foundError([ + '$bold${red}Command did not write the response file but expected response file written.$reset', + ]); + } else { + final String response = File(responseFile).readAsStringSync(); + if (response != expectResponseFileContent) { + foundError([ + '$bold${red}Command write the response file with $response but expected response file with $expectResponseFileContent.$reset', + ]); + } + } + } +} + +// Compiles a sample web app and checks that its JS doesn't contain certain +// debug code that we expect to be tree shaken out. +// +// The app is compiled in `--profile` mode to prevent the compiler from +// minifying the symbols. +Future _runWebTreeshakeTest() async { + final String testAppDirectory = path.join(flutterRoot, 'dev', 'integration_tests', 'web_e2e_tests'); + final String target = path.join('lib', 'treeshaking_main.dart'); + await runCommand( + flutter, + [ 'clean' ], + workingDirectory: testAppDirectory, + ); + await runCommand( + flutter, + [ + 'build', + 'web', + '--target=$target', + '--profile', + ], + workingDirectory: testAppDirectory, + environment: { + 'FLUTTER_WEB': 'true', + }, + ); + + final File mainDartJs = File(path.join(testAppDirectory, 'build', 'web', 'main.dart.js')); + final String javaScript = mainDartJs.readAsStringSync(); + + // Check that we're not looking at minified JS. Otherwise this test would result in false positive. + expect(javaScript.contains('RootElement'), true); + + const String word = 'debugFillProperties'; + int count = 0; + int pos = javaScript.indexOf(word); + final int contentLength = javaScript.length; + while (pos != -1) { + count += 1; + pos += word.length; + if (pos >= contentLength || count > 100) { + break; + } + pos = javaScript.indexOf(word, pos); + } + + // The following are classes from `timeline.dart` that should be treeshaken + // off unless the app (typically a benchmark) uses methods that need them. + expect(javaScript.contains('AggregatedTimedBlock'), false); + expect(javaScript.contains('AggregatedTimings'), false); + expect(javaScript.contains('_BlockBuffer'), false); + expect(javaScript.contains('_StringListChain'), false); + expect(javaScript.contains('_Float64ListChain'), false); + + const int kMaxExpectedDebugFillProperties = 11; + if (count > kMaxExpectedDebugFillProperties) { + throw Exception( + 'Too many occurrences of "$word" in compiled JavaScript.\n' + 'Expected no more than $kMaxExpectedDebugFillProperties, but found $count.' + ); + } +} + +/// Returns the commit hash of the flutter/packages repository that's rolled in. +/// +/// The flutter/packages repository is a downstream dependency, it is only used +/// by flutter/flutter for testing purposes, to assure stable tests for a given +/// flutter commit the flutter/packages commit hash to test against is coded in +/// the bin/internal/flutter_packages.version file. +/// +/// The `filesystem` parameter specified filesystem to read the packages version file from. +/// The `packagesVersionFile` parameter allows specifying an alternative path for the +/// packages version file, when null [flutterPackagesVersionFile] is used. +Future getFlutterPackagesVersion({ + fs.FileSystem fileSystem = const LocalFileSystem(), + String? packagesVersionFile, +}) async { + final File versionFile = fileSystem.file(packagesVersionFile ?? flutterPackagesVersionFile); + final String versionFileContents = await versionFile.readAsString(); + return versionFileContents.trim(); +} + +/// Executes the test suite for the flutter/packages repo. +Future _runFlutterPackagesTests() async { + Future runAnalyze() async { + printProgress('${green}Running analysis for flutter/packages$reset'); + final Directory checkout = Directory.systemTemp.createTempSync('flutter_packages.'); + await runCommand( + 'git', + [ + '-c', + 'core.longPaths=true', + 'clone', + 'https://github.com/flutter/packages.git', + '.', + ], + workingDirectory: checkout.path, + ); + final String packagesCommit = await getFlutterPackagesVersion(); + await runCommand( + 'git', + [ + '-c', + 'core.longPaths=true', + 'checkout', + packagesCommit, + ], + workingDirectory: checkout.path, + ); + // Prep the repository tooling. + // This test does not use tool_runner.sh because in this context the test + // should always run on the entire packages repo, while tool_runner.sh + // is designed for flutter/packages CI and only analyzes changed repository + // files when run for anything but master. + final String toolDir = path.join(checkout.path, 'script', 'tool'); + await runCommand( + 'dart', + [ + 'pub', + 'get', + ], + workingDirectory: toolDir, + ); + final String toolScript = path.join(toolDir, 'bin', 'flutter_plugin_tools.dart'); + await runCommand( + 'dart', + [ + 'run', + toolScript, + 'analyze', + // Fetch the oldest possible dependencies, rather than the newest, to + // insulate flutter/flutter from out-of-band failures when new versions + // of dependencies are published. This compensates for the fact that + // flutter/packages doesn't use pinned dependencies, and for the + // purposes of this test using old dependencies is fine. See + // https://github.com/flutter/flutter/issues/129633 + '--downgrade', + '--custom-analysis=script/configs/custom_analysis.yaml', + ], + workingDirectory: checkout.path, + ); + } + await selectSubshard({ + 'analyze': runAnalyze, + }); +} + +// Runs customer_testing. +Future _runCustomerTesting() async { + printProgress('${green}Running customer testing$reset'); + await runCommand( + 'git', + [ + 'fetch', + 'origin', + 'master', + ], + workingDirectory: flutterRoot, + ); + await runCommand( + 'git', + [ + 'checkout', + 'master', + ], + workingDirectory: flutterRoot, + ); + final Map env = Platform.environment; + final String? revision = env['REVISION']; + if (revision != null) { + await runCommand( + 'git', + [ + 'checkout', + revision, + ], + workingDirectory: flutterRoot, + ); + } + final String winScript = path.join(flutterRoot, 'dev', 'customer_testing', 'ci.bat'); + await runCommand( + Platform.isWindows? winScript: './ci.sh', + [], + workingDirectory: path.join(flutterRoot, 'dev', 'customer_testing'), + ); +} + +// Runs analysis tests. +Future _runAnalyze() async { + printProgress('${green}Running analysis testing$reset'); + await runCommand( + 'dart', + [ + '--enable-asserts', + path.join(flutterRoot, 'dev', 'bots', 'analyze.dart'), + ], + workingDirectory: flutterRoot, + ); +} + +// Runs flutter_precache. +Future _runFuchsiaPrecache() async { + printProgress('${green}Running flutter precache tests$reset'); + await runCommand( + 'flutter', + [ + 'config', + '--enable-fuchsia', + ], + workingDirectory: flutterRoot, + ); + await runCommand( + 'flutter', + [ + 'precache', + '--flutter_runner', + '--fuchsia', + '--no-android', + '--no-ios', + '--force', + ], + workingDirectory: flutterRoot, + ); +} + +// Runs docs. +Future _runDocs() async { + printProgress('${green}Running flutter doc tests$reset'); + await runCommand( + './dev/bots/docs.sh', + [ + '--output', + 'dev/docs/api_docs.zip', + '--keep-staging', + '--staging-dir', + 'dev/docs', + ], + workingDirectory: flutterRoot, + ); +} + +// Verifies binaries are codesigned. +Future _runVerifyCodesigned() async { + printProgress('${green}Running binaries codesign verification$reset'); + await runCommand( + 'flutter', + [ + 'precache', + '--android', + '--ios', + '--macos' + ], + workingDirectory: flutterRoot, + ); + + await verifyExist(flutterRoot); + await verifySignatures(flutterRoot); +} + +const List expectedEntitlements = [ + 'com.apple.security.cs.allow-jit', + 'com.apple.security.cs.allow-unsigned-executable-memory', + 'com.apple.security.cs.allow-dyld-environment-variables', + 'com.apple.security.network.client', + 'com.apple.security.network.server', + 'com.apple.security.cs.disable-library-validation', +]; + +/// Binaries that are expected to be codesigned and have entitlements. +/// +/// This list should be kept in sync with the actual contents of Flutter's +/// cache. +List binariesWithEntitlements(String flutterRoot) { + return [ + 'artifacts/engine/android-arm-profile/darwin-x64/gen_snapshot', + 'artifacts/engine/android-arm-release/darwin-x64/gen_snapshot', + 'artifacts/engine/android-arm64-profile/darwin-x64/gen_snapshot', + 'artifacts/engine/android-arm64-release/darwin-x64/gen_snapshot', + 'artifacts/engine/android-x64-profile/darwin-x64/gen_snapshot', + 'artifacts/engine/android-x64-release/darwin-x64/gen_snapshot', + 'artifacts/engine/darwin-x64-profile/gen_snapshot', + 'artifacts/engine/darwin-x64-profile/gen_snapshot_arm64', + 'artifacts/engine/darwin-x64-profile/gen_snapshot_x64', + 'artifacts/engine/darwin-x64-release/gen_snapshot', + 'artifacts/engine/darwin-x64-release/gen_snapshot_arm64', + 'artifacts/engine/darwin-x64-release/gen_snapshot_x64', + 'artifacts/engine/darwin-x64/flutter_tester', + 'artifacts/engine/darwin-x64/gen_snapshot', + 'artifacts/engine/darwin-x64/gen_snapshot_arm64', + 'artifacts/engine/darwin-x64/gen_snapshot_x64', + 'artifacts/engine/ios-profile/gen_snapshot_arm64', + 'artifacts/engine/ios-release/gen_snapshot_arm64', + 'artifacts/engine/ios/gen_snapshot_arm64', + 'artifacts/libimobiledevice/idevicescreenshot', + 'artifacts/libimobiledevice/idevicesyslog', + 'artifacts/libimobiledevice/libimobiledevice-1.0.6.dylib', + 'artifacts/libplist/libplist-2.0.3.dylib', + 'artifacts/openssl/libcrypto.1.1.dylib', + 'artifacts/openssl/libssl.1.1.dylib', + 'artifacts/usbmuxd/iproxy', + 'artifacts/usbmuxd/libusbmuxd-2.0.6.dylib', + 'dart-sdk/bin/dart', + 'dart-sdk/bin/dartaotruntime', + 'dart-sdk/bin/utils/gen_snapshot', + 'dart-sdk/bin/utils/wasm-opt', + ] + .map((String relativePath) => path.join(flutterRoot, 'bin', 'cache', relativePath)).toList(); +} + +/// Binaries that are only expected to be codesigned. +/// +/// This list should be kept in sync with the actual contents of Flutter's +/// cache. +List binariesWithoutEntitlements(String flutterRoot) { + return [ + 'artifacts/engine/darwin-x64-profile/FlutterMacOS.framework/Versions/A/FlutterMacOS', + 'artifacts/engine/darwin-x64-release/FlutterMacOS.framework/Versions/A/FlutterMacOS', + 'artifacts/engine/darwin-x64/FlutterMacOS.framework/Versions/A/FlutterMacOS', + 'artifacts/engine/darwin-x64/font-subset', + 'artifacts/engine/darwin-x64/impellerc', + 'artifacts/engine/darwin-x64/libpath_ops.dylib', + 'artifacts/engine/darwin-x64/libtessellator.dylib', + 'artifacts/engine/ios-profile/Flutter.xcframework/ios-arm64/Flutter.framework/Flutter', + 'artifacts/engine/ios-profile/Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter', + 'artifacts/engine/ios-profile/extension_safe/Flutter.xcframework/ios-arm64/Flutter.framework/Flutter', + 'artifacts/engine/ios-profile/extension_safe/Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter', + 'artifacts/engine/ios-release/Flutter.xcframework/ios-arm64/Flutter.framework/Flutter', + 'artifacts/engine/ios-release/Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter', + 'artifacts/engine/ios-release/extension_safe/Flutter.xcframework/ios-arm64/Flutter.framework/Flutter', + 'artifacts/engine/ios-release/extension_safe/Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter', + 'artifacts/engine/ios/Flutter.xcframework/ios-arm64/Flutter.framework/Flutter', + 'artifacts/engine/ios/Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter', + 'artifacts/engine/ios/extension_safe/Flutter.xcframework/ios-arm64/Flutter.framework/Flutter', + 'artifacts/engine/ios/extension_safe/Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter', + 'artifacts/ios-deploy/ios-deploy', + ] + .map((String relativePath) => path.join(flutterRoot, 'bin', 'cache', relativePath)).toList(); +} + +/// xcframeworks that are expected to be codesigned. +/// +/// This list should be kept in sync with the actual contents of Flutter's +/// cache. +List signedXcframeworks(String flutterRoot) { + return [ + 'artifacts/engine/ios-profile/Flutter.xcframework', + 'artifacts/engine/ios-profile/extension_safe/Flutter.xcframework', + 'artifacts/engine/ios-release/Flutter.xcframework', + 'artifacts/engine/ios-release/extension_safe/Flutter.xcframework', + 'artifacts/engine/ios/Flutter.xcframework', + 'artifacts/engine/ios/extension_safe/Flutter.xcframework', + ] + .map((String relativePath) => path.join(flutterRoot, 'bin', 'cache', relativePath)).toList(); +} + +/// Verify the existence of all expected binaries in cache. +/// +/// This function ignores code signatures and entitlements, and is intended to +/// be run on every commit. It should throw if either new binaries are added +/// to the cache or expected binaries removed. In either case, this class' +/// [binariesWithEntitlements] or [binariesWithoutEntitlements] lists should +/// be updated accordingly. +Future verifyExist( + String flutterRoot, + {@visibleForTesting ProcessManager processManager = const LocalProcessManager() +}) async { + final Set foundFiles = {}; + final String cacheDirectory = path.join(flutterRoot, 'bin', 'cache'); + + for (final String binaryPath + in await findBinaryPaths(cacheDirectory, processManager: processManager)) { + if (binariesWithEntitlements(flutterRoot).contains(binaryPath)) { + foundFiles.add(binaryPath); + } else if (binariesWithoutEntitlements(flutterRoot).contains(binaryPath)) { + foundFiles.add(binaryPath); + } else { + throw Exception( + 'Found unexpected binary in cache: $binaryPath'); + } + } + + final List allExpectedFiles = binariesWithEntitlements(flutterRoot) + binariesWithoutEntitlements(flutterRoot); + if (foundFiles.length < allExpectedFiles.length) { + final List unfoundFiles = allExpectedFiles + .where( + (String file) => !foundFiles.contains(file), + ) + .toList(); + print( + 'Expected binaries not found in cache:\n\n${unfoundFiles.join('\n')}\n\n' + 'If this commit is removing binaries from the cache, this test should be fixed by\n' + 'removing the relevant entry from either the "binariesWithEntitlements" or\n' + '"binariesWithoutEntitlements" getters in dev/tools/lib/codesign.dart.', + ); + throw Exception('Did not find all expected binaries!'); + } + + print('All expected binaries present.'); +} + +/// Verify code signatures and entitlements of all binaries in the cache. +Future verifySignatures( + String flutterRoot, + {@visibleForTesting ProcessManager processManager = const LocalProcessManager()} +) async { + final List unsignedFiles = []; + final List wrongEntitlementBinaries = []; + final List unexpectedFiles = []; + final String cacheDirectory = path.join(flutterRoot, 'bin', 'cache'); + + final List binariesAndXcframeworks = + (await findBinaryPaths(cacheDirectory, processManager: processManager)) + (await findXcframeworksPaths(cacheDirectory, processManager: processManager)); + + for (final String pathToCheck in binariesAndXcframeworks) { + bool verifySignature = false; + bool verifyEntitlements = false; + if (binariesWithEntitlements(flutterRoot).contains(pathToCheck)) { + verifySignature = true; + verifyEntitlements = true; + } + if (binariesWithoutEntitlements(flutterRoot).contains(pathToCheck)) { + verifySignature = true; + } + if (signedXcframeworks(flutterRoot).contains(pathToCheck)) { + verifySignature = true; + } + if (!verifySignature && !verifyEntitlements) { + unexpectedFiles.add(pathToCheck); + print('Unexpected binary or xcframework $pathToCheck found in cache!'); + continue; + } + print('Verifying the code signature of $pathToCheck'); + final io.ProcessResult codeSignResult = await processManager.run( + [ + 'codesign', + '-vvv', + pathToCheck, + ], + ); + if (codeSignResult.exitCode != 0) { + unsignedFiles.add(pathToCheck); + print( + 'File "$pathToCheck" does not appear to be codesigned.\n' + 'The `codesign` command failed with exit code ${codeSignResult.exitCode}:\n' + '${codeSignResult.stderr}\n', + ); + continue; + } + if (verifyEntitlements) { + print('Verifying entitlements of $pathToCheck'); + if (!(await hasExpectedEntitlements(pathToCheck, flutterRoot, processManager: processManager))) { + wrongEntitlementBinaries.add(pathToCheck); + } + } + } + + // First print all deviations from expectations + if (unsignedFiles.isNotEmpty) { + print('Found ${unsignedFiles.length} unsigned files:'); + unsignedFiles.forEach(print); + } + + if (wrongEntitlementBinaries.isNotEmpty) { + print('Found ${wrongEntitlementBinaries.length} files with unexpected entitlements:'); + wrongEntitlementBinaries.forEach(print); + } + + if (unexpectedFiles.isNotEmpty) { + print('Found ${unexpectedFiles.length} unexpected files in the cache:'); + unexpectedFiles.forEach(print); + } + + // Finally, exit on any invalid state + if (unsignedFiles.isNotEmpty) { + throw Exception('Test failed because unsigned files detected.'); + } + + if (wrongEntitlementBinaries.isNotEmpty) { + throw Exception( + 'Test failed because files found with the wrong entitlements:\n' + '${wrongEntitlementBinaries.join('\n')}', + ); + } + + if (unexpectedFiles.isNotEmpty) { + throw Exception('Test failed because unexpected files found in the cache.'); + } + print('Verified that files are codesigned and have expected entitlements.'); +} + +/// Find every binary file in the given [rootDirectory]. +Future> findBinaryPaths( + String rootDirectory, + {@visibleForTesting ProcessManager processManager = const LocalProcessManager() +}) async { + final List allBinaryPaths = []; + final io.ProcessResult result = await processManager.run( + [ + 'find', + rootDirectory, + '-type', + 'f', + ], + ); + final List allFiles = (result.stdout as String) + .split('\n') + .where((String s) => s.isNotEmpty) + .toList(); + + await Future.forEach(allFiles, (String filePath) async { + if (await isBinary(filePath, processManager: processManager)) { + allBinaryPaths.add(filePath); + print('Found: $filePath\n'); + } + }); + return allBinaryPaths; +} + +/// Find every xcframework in the given [rootDirectory]. +Future> findXcframeworksPaths( + String rootDirectory, + {@visibleForTesting ProcessManager processManager = const LocalProcessManager() + }) async { + final io.ProcessResult result = await processManager.run( + [ + 'find', + rootDirectory, + '-type', + 'd', + '-name', + '*xcframework', + ], + ); + final List allXcframeworkPaths = LineSplitter.split(result.stdout as String) + .where((String s) => s.isNotEmpty) + .toList(); + for (final String path in allXcframeworkPaths) { + print('Found: $path\n'); + } + return allXcframeworkPaths; +} + +/// Check mime-type of file at [filePath] to determine if it is binary. +Future isBinary( + String filePath, + {@visibleForTesting ProcessManager processManager = const LocalProcessManager()} +) async { + final io.ProcessResult result = await processManager.run( + [ + 'file', + '--mime-type', + '-b', // is binary + filePath, + ], + ); + return (result.stdout as String).contains('application/x-mach-binary'); +} + +/// Check if the binary has the expected entitlements. +Future hasExpectedEntitlements( + String binaryPath, + String flutterRoot, + {@visibleForTesting ProcessManager processManager = const LocalProcessManager()} +) async { + final io.ProcessResult entitlementResult = await processManager.run( + [ + 'codesign', + '--display', + '--entitlements', + ':-', + binaryPath, + ], + ); + + if (entitlementResult.exitCode != 0) { + print( + 'The `codesign --entitlements` command failed with exit code ${entitlementResult.exitCode}:\n' + '${entitlementResult.stderr}\n', + ); + return false; + } + + bool passes = true; + final String output = entitlementResult.stdout as String; + for (final String entitlement in expectedEntitlements) { + final bool entitlementExpected = + binariesWithEntitlements(flutterRoot).contains(binaryPath); + if (output.contains(entitlement) != entitlementExpected) { + print( + 'File "$binaryPath" ${entitlementExpected ? 'does not have expected' : 'has unexpected'} ' + 'entitlement $entitlement.', + ); + passes = false; + } + } + return passes; +} + +/// Runs the skp_generator from the flutter/tests repo. +/// +/// See also the customer_tests shard. +/// +/// Generated SKPs are ditched, this just verifies that it can run without failure. +Future _runSkpGeneratorTests() async { + printProgress('${green}Running skp_generator from flutter/tests$reset'); + final Directory checkout = Directory.systemTemp.createTempSync('flutter_skp_generator.'); + await runCommand( + 'git', + [ + '-c', + 'core.longPaths=true', + 'clone', + 'https://github.com/flutter/tests.git', + '.', + ], + workingDirectory: checkout.path, + ); + await runCommand( + './build.sh', + [ ], + workingDirectory: path.join(checkout.path, 'skp_generator'), + ); +} + +Future _runRealmCheckerTest() async { + final String engineRealm = File(engineRealmFile).readAsStringSync().trim(); + if (engineRealm.isNotEmpty) { + foundError(['The checked-in engine.realm file must be empty.']); + } +} + +// The `chromedriver` process created by this test. +// +// If an existing chromedriver is already available on port 4444, the existing +// process is reused and this variable remains null. +Command? _chromeDriver; + +Future _isChromeDriverRunning() async { + try { + final RawSocket socket = await RawSocket.connect('localhost', 4444); + socket.shutdown(SocketDirection.both); + await socket.close(); + return true; + } on SocketException { + return false; + } +} + +Future _ensureChromeDriverIsRunning() async { + // If we cannot connect to ChromeDriver, assume it is not running. Launch it. + if (!await _isChromeDriverRunning()) { + printProgress('Starting chromedriver'); + // Assume chromedriver is in the PATH. + _chromeDriver = await startCommand( + // TODO(ianh): this is the only remaining consumer of startCommand other than runCommand + // and it doesn't use most of startCommand's features; we could simplify this a lot by + // inlining the relevant parts of startCommand here. + 'chromedriver', + ['--port=4444'], + ); + while (!await _isChromeDriverRunning()) { + await Future.delayed(const Duration(milliseconds: 100)); + print('Waiting for chromedriver to start up.'); + } + } + + final HttpClient client = HttpClient(); + final Uri chromeDriverUrl = Uri.parse('http://localhost:4444/status'); + final HttpClientRequest request = await client.getUrl(chromeDriverUrl); + final HttpClientResponse response = await request.close(); + final Map webDriverStatus = json.decode(await response.transform(utf8.decoder).join()) as Map; + client.close(); + final bool webDriverReady = (webDriverStatus['value'] as Map)['ready'] as bool; + if (!webDriverReady) { + throw Exception('WebDriver not available.'); + } +} + +Future _stopChromeDriver() async { + if (_chromeDriver == null) { + return; + } + print('Stopping chromedriver'); + _chromeDriver!.process.kill(); +} + +/// Exercises the old gallery in a browser for a long period of time, looking +/// for memory leaks and dangling pointers. +/// +/// This is not a performance test. +/// +/// If [canvasKit] is set to true, runs the test in CanvasKit mode. +/// +/// The test is written using `package:integration_test` (despite the "e2e" in +/// the name, which is there for historic reasons). +Future _runGalleryE2eWebTest(String buildMode, { bool canvasKit = false }) async { + printProgress('${green}Running flutter_gallery integration test in --$buildMode using ${canvasKit ? 'CanvasKit' : 'HTML'} renderer.$reset'); + final String testAppDirectory = path.join(flutterRoot, 'dev', 'integration_tests', 'flutter_gallery'); + await runCommand( + flutter, + [ 'clean' ], + workingDirectory: testAppDirectory, + ); + await runCommand( + flutter, + [ + ...flutterTestArgs, + 'drive', + if (canvasKit) + '--dart-define=FLUTTER_WEB_USE_SKIA=true', + if (!canvasKit) + '--dart-define=FLUTTER_WEB_USE_SKIA=false', + if (!canvasKit) + '--dart-define=FLUTTER_WEB_AUTO_DETECT=false', + '--driver=test_driver/transitions_perf_e2e_test.dart', + '--target=test_driver/transitions_perf_e2e.dart', + '--browser-name=chrome', + '-d', + 'web-server', + '--$buildMode', + ], + workingDirectory: testAppDirectory, + environment: { + 'FLUTTER_WEB': 'true', + }, + ); +} + +Future _runWebStackTraceTest(String buildMode, String entrypoint) async { + final String testAppDirectory = path.join(flutterRoot, 'dev', 'integration_tests', 'web'); + final String appBuildDirectory = path.join(testAppDirectory, 'build', 'web'); + + // Build the app. + await runCommand( + flutter, + [ 'clean' ], + workingDirectory: testAppDirectory, + ); + await runCommand( + flutter, + [ + 'build', + 'web', + '--$buildMode', + '-t', + entrypoint, + ], + workingDirectory: testAppDirectory, + environment: { + 'FLUTTER_WEB': 'true', + }, + ); + + // Run the app. + final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + final String result = await evalTestAppInChrome( + appUrl: 'http://localhost:$serverPort/index.html', + appDirectory: appBuildDirectory, + serverPort: serverPort, + browserDebugPort: browserDebugPort, + ); + + if (!result.contains('--- TEST SUCCEEDED ---')) { + foundError([ + result, + '${red}Web stack trace integration test failed.$reset', + ]); + } +} + +/// Run a web integration test in release mode. +Future _runWebReleaseTest(String target, { + List additionalArguments = const[], +}) async { + final String testAppDirectory = path.join(flutterRoot, 'dev', 'integration_tests', 'web'); + final String appBuildDirectory = path.join(testAppDirectory, 'build', 'web'); + + // Build the app. + await runCommand( + flutter, + [ 'clean' ], + workingDirectory: testAppDirectory, + ); + await runCommand( + flutter, + [ + ...flutterTestArgs, + 'build', + 'web', + '--release', + ...additionalArguments, + '-t', + target, + ], + workingDirectory: testAppDirectory, + environment: { + 'FLUTTER_WEB': 'true', + }, + ); + + // Run the app. + final int serverPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + final int browserDebugPort = await findAvailablePortAndPossiblyCauseFlakyTests(); + final String result = await evalTestAppInChrome( + appUrl: 'http://localhost:$serverPort/index.html', + appDirectory: appBuildDirectory, + serverPort: serverPort, + browserDebugPort: browserDebugPort, + ); + + if (!result.contains('--- TEST SUCCEEDED ---')) { + foundError([ + result, + '${red}Web release mode test failed.$reset', + ]); + } +} + +/// Debug mode is special because `flutter build web` doesn't build in debug mode. +/// +/// Instead, we use `flutter run --debug` and sniff out the standard output. +Future _runWebDebugTest(String target, { + List additionalArguments = const[], +}) async { + final String testAppDirectory = path.join(flutterRoot, 'dev', 'integration_tests', 'web'); + bool success = false; + final Map environment = { + 'FLUTTER_WEB': 'true', + }; + adjustEnvironmentToEnableFlutterAsserts(environment); + final CommandResult result = await runCommand( + flutter, + [ + 'run', + '--debug', + '-d', + 'chrome', + '--web-run-headless', + '--dart-define=FLUTTER_WEB_USE_SKIA=false', + '--dart-define=FLUTTER_WEB_AUTO_DETECT=false', + ...additionalArguments, + '-t', + target, + ], + outputMode: OutputMode.capture, + outputListener: (String line, Process process) { + if (line.contains('--- TEST SUCCEEDED ---')) { + success = true; + } + if (success || line.contains('--- TEST FAILED ---')) { + process.stdin.add('q'.codeUnits); + } + }, + workingDirectory: testAppDirectory, + environment: environment, + ); + + if (!success) { + foundError([ + result.flattenedStdout!, + result.flattenedStderr!, + '${red}Web stack trace integration test failed.$reset', + ]); + } +} + +Future _runFlutterWebTest(String webRenderer, String workingDirectory, List tests) async { + await runCommand( + flutter, + [ + 'test', + if (ciProvider == CiProviders.cirrus) + '--concurrency=1', // do not parallelize on Cirrus, to reduce flakiness + '-v', + '--platform=chrome', + '--web-renderer=$webRenderer', + '--dart-define=DART_HHH_BOT=$_runningInDartHHHBot', + ...flutterTestArgs, + ...tests, + ], + workingDirectory: workingDirectory, + environment: { + 'FLUTTER_WEB': 'true', + }, + ); +} + +// TODO(sigmund): includeLocalEngineEnv should default to true. Currently we +// only enable it on flutter-web test because some test suites do not work +// properly when overriding the local engine (for example, because some platform +// dependent targets are only built on some engines). +// See https://github.com/flutter/flutter/issues/72368 +Future _runDartTest(String workingDirectory, { + List? testPaths, + bool enableFlutterToolAsserts = true, + bool useBuildRunner = false, + String? coverage, + bool forceSingleCore = false, + Duration? perTestTimeout, + bool includeLocalEngineEnv = false, + bool ensurePrecompiledTool = true, + bool shuffleTests = true, + bool collectMetrics = false, +}) async { + int? cpus; + final String? cpuVariable = Platform.environment['CPU']; // CPU is set in cirrus.yml + if (cpuVariable != null) { + cpus = int.tryParse(cpuVariable, radix: 10); + if (cpus == null) { + foundError([ + '${red}The CPU environment variable, if set, must be set to the integer number of available cores.$reset', + 'Actual value: "$cpuVariable"', + ]); + return; + } + } else { + cpus = 2; // Don't default to 1, otherwise we won't catch race conditions. + } + // Integration tests that depend on external processes like chrome + // can get stuck if there are multiple instances running at once. + if (forceSingleCore) { + cpus = 1; + } + + const LocalFileSystem fileSystem = LocalFileSystem(); + final File metricFile = fileSystem.file(path.join(flutterRoot, 'metrics.json')); + final List args = [ + 'run', + 'test', + '--file-reporter=json:${metricFile.path}', + if (shuffleTests) '--test-randomize-ordering-seed=$shuffleSeed', + '-j$cpus', + if (!hasColor) + '--no-color', + if (coverage != null) + '--coverage=$coverage', + if (perTestTimeout != null) + '--timeout=${perTestTimeout.inMilliseconds}ms', + if (testPaths != null) + for (final String testPath in testPaths) + testPath, + ]; + final Map environment = { + 'FLUTTER_ROOT': flutterRoot, + if (includeLocalEngineEnv) + ...localEngineEnv, + if (Directory(pubCache).existsSync()) + 'PUB_CACHE': pubCache, + }; + if (enableFlutterToolAsserts) { + adjustEnvironmentToEnableFlutterAsserts(environment); + } + if (ensurePrecompiledTool) { + // We rerun the `flutter` tool here just to make sure that it is compiled + // before tests run, because the tests might time out if they have to rebuild + // the tool themselves. + await runCommand(flutter, ['--version'], environment: environment); + } + await runCommand( + dart, + args, + workingDirectory: workingDirectory, + environment: environment, + removeLine: useBuildRunner ? (String line) => line.startsWith('[INFO]') : null, + ); + + final TestFileReporterResults test = TestFileReporterResults.fromFile(metricFile); // --file-reporter name + final File info = fileSystem.file(path.join(flutterRoot, 'error.log')); + info.writeAsStringSync(json.encode(test.errors)); + + if (collectMetrics) { + try { + final List testList = []; + final Map allTestSpecs = test.allTestSpecs; + for (final TestSpecs testSpecs in allTestSpecs.values) { + testList.add(testSpecs.toJson()); + } + if (testList.isNotEmpty) { + final String testJson = json.encode(testList); + final File testResults = fileSystem.file( + path.join(flutterRoot, 'test_results.json')); + testResults.writeAsStringSync(testJson); + } + } on fs.FileSystemException catch (e) { + print('Failed to generate metrics: $e'); + } + } +} + +Future _runFlutterTest(String workingDirectory, { + String? script, + bool expectFailure = false, + bool printOutput = true, + OutputChecker? outputChecker, + List options = const [], + Map? environment, + List tests = const [], + bool shuffleTests = true, + bool fatalWarnings = true, +}) async { + assert(!printOutput || outputChecker == null, 'Output either can be printed or checked but not both'); + + final List tags = []; + // Recipe-configured reduced test shards will only execute tests with the + // appropriate tag. + if (Platform.environment['REDUCED_TEST_SET'] == 'True') { + tags.addAll(['-t', 'reduced-test-set']); + } + + final List args = [ + 'test', + if (shuffleTests) '--test-randomize-ordering-seed=$shuffleSeed', + if (fatalWarnings) '--fatal-warnings', + ...options, + ...tags, + ...flutterTestArgs, + ]; + + if (script != null) { + final String fullScriptPath = path.join(workingDirectory, script); + if (!FileSystemEntity.isFileSync(fullScriptPath)) { + foundError([ + '${red}Could not find test$reset: $green$fullScriptPath$reset', + 'Working directory: $cyan$workingDirectory$reset', + 'Script: $green$script$reset', + if (!printOutput) + 'This is one of the tests that does not normally print output.', + ]); + return; + } + args.add(script); + } + + args.addAll(tests); + + final OutputMode outputMode = outputChecker == null && printOutput + ? OutputMode.print + : OutputMode.capture; + + final CommandResult result = await runCommand( + flutter, + args, + workingDirectory: workingDirectory, + expectNonZeroExit: expectFailure, + outputMode: outputMode, + environment: environment, + ); + + if (outputChecker != null) { + final String? message = outputChecker(result); + if (message != null) { + foundError([message]); + } + } +} + +/// This will force the next run of the Flutter tool (if it uses the provided +/// environment) to have asserts enabled, by setting an environment variable. +void adjustEnvironmentToEnableFlutterAsserts(Map environment) { + // If an existing env variable exists append to it, but only if + // it doesn't appear to already include enable-asserts. + String toolsArgs = Platform.environment['FLUTTER_TOOL_ARGS'] ?? ''; + if (!toolsArgs.contains('--enable-asserts')) { + toolsArgs += ' --enable-asserts'; + } + environment['FLUTTER_TOOL_ARGS'] = toolsArgs.trim(); +} + +enum CiProviders { + cirrus, + luci, +} + +CiProviders? get ciProvider { + if (Platform.environment['CIRRUS_CI'] == 'true') { + return CiProviders.cirrus; + } + if (Platform.environment['LUCI_CONTEXT'] != null) { + return CiProviders.luci; + } + return null; +} + +/// Checks the given file's contents to determine if they match the allowed +/// pattern for version strings. +/// +/// Returns null if the contents are good. Returns a string if they are bad. +/// The string is an error message. +Future verifyVersion(File file) async { + final RegExp pattern = RegExp( + r'^(\d+)\.(\d+)\.(\d+)((-\d+\.\d+)?\.pre(\.\d+)?)?$'); + if (!file.existsSync()) { + return 'The version logic failed to create the Flutter version file.'; + } + final String version = await file.readAsString(); + if (version == '0.0.0-unknown') { + return 'The version logic failed to determine the Flutter version.'; + } + if (!version.contains(pattern)) { + return 'The version logic generated an invalid version string: "$version".'; + } + return null; +} + +/// Parse (one-)index/total-named subshards from environment variable SUBSHARD +/// and equally distribute [tests] between them. +/// Subshard format is "{index}_{total number of shards}". +/// The scheduler can change the number of total shards without needing an additional +/// commit in this repository. +/// +/// Examples: +/// 1_3 +/// 2_3 +/// 3_3 +List _selectIndexOfTotalSubshard(List tests, {String subshardKey = kSubshardKey}) { + // Example: "1_3" means the first (one-indexed) shard of three total shards. + final String? subshardName = Platform.environment[subshardKey]; + if (subshardName == null) { + print('$kSubshardKey environment variable is missing, skipping sharding'); + return tests; + } + printProgress('$bold$subshardKey=$subshardName$reset'); + + final RegExp pattern = RegExp(r'^(\d+)_(\d+)$'); + final Match? match = pattern.firstMatch(subshardName); + if (match == null || match.groupCount != 2) { + foundError([ + '${red}Invalid subshard name "$subshardName". Expected format "[int]_[int]" ex. "1_3"', + ]); + throw Exception('Invalid subshard name: $subshardName'); + } + // One-indexed. + final int index = int.parse(match.group(1)!); + final int total = int.parse(match.group(2)!); + if (index > total) { + foundError([ + '${red}Invalid subshard name "$subshardName". Index number must be greater or equal to total.', + ]); + return []; + } + + final int testsPerShard = (tests.length / total).ceil(); + final int start = (index - 1) * testsPerShard; + final int end = math.min(index * testsPerShard, tests.length); + + print('Selecting subshard $index of $total (tests ${start + 1}-$end of ${tests.length})'); + return tests.sublist(start, end); +} + +Future _runShardRunnerIndexOfTotalSubshard(List tests) async { + final List sublist = _selectIndexOfTotalSubshard(tests); + for (final ShardRunner test in sublist) { + await test(); + } +} + +Future selectShard(Map shards) => _runFromList(shards, kShardKey, 'shard', 0); +Future selectSubshard(Map subshards) => _runFromList(subshards, kSubshardKey, 'subshard', 1); + +const String CIRRUS_TASK_NAME = 'CIRRUS_TASK_NAME'; + +Future _runFromList(Map items, String key, String name, int positionInTaskName) async { + String? item = Platform.environment[key]; + if (item == null && Platform.environment.containsKey(CIRRUS_TASK_NAME)) { + final List parts = Platform.environment[CIRRUS_TASK_NAME]!.split('-'); + assert(positionInTaskName < parts.length); + item = parts[positionInTaskName]; + } + if (item == null) { + for (final String currentItem in items.keys) { + printProgress('$bold$key=$currentItem$reset'); + await items[currentItem]!(); + } + } else { + printProgress('$bold$key=$item$reset'); + if (!items.containsKey(item)) { + foundError([ + '${red}Invalid $name: $item$reset', + 'The available ${name}s are: ${items.keys.join(", ")}', + ]); + return; + } + await items[item]!(); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/tool_subsharding.dart b/novelforge-project/agent-workspace/flutter/dev/bots/tool_subsharding.dart new file mode 100644 index 0000000000000000000000000000000000000000..f9cbb3cfa15593424868dee82268d4bc321a9aac --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/tool_subsharding.dart @@ -0,0 +1,102 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:io'; + +class TestSpecs { + + TestSpecs({ + required this.path, + required this.startTime, + }); + + final String path; + int startTime; + int? _endTime; + + int get milliseconds { + return endTime - startTime; + } + + set endTime(int value) { + _endTime = value; + } + + int get endTime { + if (_endTime == null) { + return 0; + } + return _endTime!; + } + + String toJson() { + return json.encode( + {'path': path, 'runtime': milliseconds.toString()} + ); + } +} + +class TestFileReporterResults { + TestFileReporterResults._({ + required this.allTestSpecs, + required this.hasFailedTests, + required this.errors, + }); + + /// Intended to parse the output file of `dart test --file-reporter json:file_name + factory TestFileReporterResults.fromFile(File metrics) { + if (!metrics.existsSync()) { + throw Exception('${metrics.path} does not exist'); + } + + final Map testSpecs = {}; + bool hasFailedTests = true; + final List errors = []; + + for (final String metric in metrics.readAsLinesSync()) { + final Map entry = json.decode(metric) as Map; + if (entry.containsKey('suite')) { + final Map suite = entry['suite']! as Map; + addTestSpec(suite, entry['time']! as int, testSpecs); + } else if (isMetricDone(entry, testSpecs)) { + final Map group = entry['group']! as Map; + final int suiteID = group['suiteID']! as int; + addMetricDone(suiteID, entry['time']! as int, testSpecs); + } else if (entry.containsKey('error')) { + final String stackTrace = entry.containsKey('stackTrace') ? entry['stackTrace']! as String : ''; + errors.add('${entry['error']}\n $stackTrace'); + } else if (entry.containsKey('success') && entry['success'] == true) { + hasFailedTests = false; + } + } + + return TestFileReporterResults._(allTestSpecs: testSpecs, hasFailedTests: hasFailedTests, errors: errors); + } + + final Map allTestSpecs; + final bool hasFailedTests; + final List errors; + + + static void addTestSpec(Map suite, int time, Map allTestSpecs) { + allTestSpecs[suite['id']! as int] = TestSpecs( + path: suite['path']! as String, + startTime: time, + ); + } + + static void addMetricDone(int suiteID, int time, Map allTestSpecs) { + final TestSpecs testSpec = allTestSpecs[suiteID]!; + testSpec.endTime = time; + } + + static bool isMetricDone(Map entry, Map allTestSpecs) { + if (entry.containsKey('group') && entry['type']! as String == 'group') { + final Map group = entry['group']! as Map; + return allTestSpecs.containsKey(group['suiteID']! as int); + } + return false; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/unpublish_package.dart b/novelforge-project/agent-workspace/flutter/dev/bots/unpublish_package.dart new file mode 100644 index 0000000000000000000000000000000000000000..74290d5fb7aee90fff057002ddc8542fbd879394 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/unpublish_package.dart @@ -0,0 +1,504 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/// This script removes published archives from the cloud storage and the +/// corresponding JSON metadata file that the website uses to determine what +/// releases are available. +/// +/// If asked to remove a release that is currently the release on that channel, +/// it will replace that release with the next most recent release on that +/// channel. +library; + +import 'dart:async'; +import 'dart:convert'; +import 'dart:io' hide Platform; + +import 'package:args/args.dart'; +import 'package:path/path.dart' as path; +import 'package:platform/platform.dart' show LocalPlatform, Platform; +import 'package:process/process.dart'; + +const String gsBase = 'gs://flutter_infra_release'; +const String releaseFolder = '/releases'; +const String gsReleaseFolder = '$gsBase$releaseFolder'; +const String baseUrl = 'https://storage.googleapis.com/flutter_infra_release'; + +/// Exception class for when a process fails to run, so we can catch +/// it and provide something more readable than a stack trace. +class UnpublishException implements Exception { + UnpublishException(this.message, [this.result]); + + final String message; + final ProcessResult? result; + int get exitCode => result?.exitCode ?? -1; + + @override + String toString() { + String output = runtimeType.toString(); + output += ': $message'; + final String stderr = result?.stderr as String? ?? ''; + if (stderr.isNotEmpty) { + output += ':\n$stderr'; + } + return output; + } +} + +enum Channel { dev, beta, stable } + +String getChannelName(Channel channel) { + return switch (channel) { + Channel.beta => 'beta', + Channel.dev => 'dev', + Channel.stable => 'stable', + }; +} + +Channel fromChannelName(String? name) { + return switch (name) { + 'beta' => Channel.beta, + 'dev' => Channel.dev, + 'stable' => Channel.stable, + _ => throw ArgumentError('Invalid channel name.'), + }; +} + +enum PublishedPlatform { linux, macos, windows } + +String getPublishedPlatform(PublishedPlatform platform) { + return switch (platform) { + PublishedPlatform.linux => 'linux', + PublishedPlatform.macos => 'macos', + PublishedPlatform.windows => 'windows', + }; +} + +PublishedPlatform fromPublishedPlatform(String name) { + return switch (name) { + 'linux' => PublishedPlatform.linux, + 'macos' => PublishedPlatform.macos, + 'windows' => PublishedPlatform.windows, + _ => throw ArgumentError('Invalid published platform name.'), + }; +} + +/// A helper class for classes that want to run a process, optionally have the +/// stderr and stdout reported as the process runs, and capture the stdout +/// properly without dropping any. +class ProcessRunner { + /// Creates a [ProcessRunner]. + /// + /// The [processManager], [subprocessOutput], and [platform] arguments must + /// not be null. + ProcessRunner({ + this.processManager = const LocalProcessManager(), + this.subprocessOutput = true, + this.defaultWorkingDirectory, + this.platform = const LocalPlatform(), + }) { + environment = Map.from(platform.environment); + } + + /// The platform to use for a starting environment. + final Platform platform; + + /// Set [subprocessOutput] to show output as processes run. Stdout from the + /// process will be printed to stdout, and stderr printed to stderr. + final bool subprocessOutput; + + /// Set the [processManager] in order to inject a test instance to perform + /// testing. + final ProcessManager processManager; + + /// Sets the default directory used when `workingDirectory` is not specified + /// to [runProcess]. + final Directory? defaultWorkingDirectory; + + /// The environment to run processes with. + late Map environment; + + /// Run the command and arguments in `commandLine` as a sub-process from + /// `workingDirectory` if set, or the [defaultWorkingDirectory] if not. Uses + /// [Directory.current] if [defaultWorkingDirectory] is not set. + /// + /// Set `failOk` if [runProcess] should not throw an exception when the + /// command completes with a non-zero exit code. + Future runProcess( + List commandLine, { + Directory? workingDirectory, + bool failOk = false, + }) async { + workingDirectory ??= defaultWorkingDirectory ?? Directory.current; + if (subprocessOutput) { + stderr.write('Running "${commandLine.join(' ')}" in ${workingDirectory.path}.\n'); + } + final List output = []; + final Completer stdoutComplete = Completer(); + final Completer stderrComplete = Completer(); + late Process process; + Future allComplete() async { + await stderrComplete.future; + await stdoutComplete.future; + return process.exitCode; + } + + try { + process = await processManager.start( + commandLine, + workingDirectory: workingDirectory.absolute.path, + environment: environment, + ); + process.stdout.listen( + (List event) { + output.addAll(event); + if (subprocessOutput) { + stdout.add(event); + } + }, + onDone: () async => stdoutComplete.complete(), + ); + if (subprocessOutput) { + process.stderr.listen( + (List event) { + stderr.add(event); + }, + onDone: () async => stderrComplete.complete(), + ); + } else { + stderrComplete.complete(); + } + } on ProcessException catch (e) { + final String message = 'Running "${commandLine.join(' ')}" in ${workingDirectory.path} ' + 'failed with:\n$e'; + throw UnpublishException(message); + } on ArgumentError catch (e) { + final String message = 'Running "${commandLine.join(' ')}" in ${workingDirectory.path} ' + 'failed with:\n$e'; + throw UnpublishException(message); + } + + final int exitCode = await allComplete(); + if (exitCode != 0 && !failOk) { + final String message = 'Running "${commandLine.join(' ')}" in ${workingDirectory.path} failed'; + throw UnpublishException( + message, + ProcessResult(0, exitCode, null, 'returned $exitCode'), + ); + } + return utf8.decoder.convert(output).trim(); + } +} + +class ArchiveUnpublisher { + ArchiveUnpublisher( + this.tempDir, + this.revisionsBeingRemoved, + this.channels, + this.platform, { + this.confirmed = false, + ProcessManager? processManager, + bool subprocessOutput = true, + }) : assert(revisionsBeingRemoved.length == 40), + metadataGsPath = '$gsReleaseFolder/${getMetadataFilename(platform)}', + _processRunner = ProcessRunner( + processManager: processManager ?? const LocalProcessManager(), + subprocessOutput: subprocessOutput, + ); + + final PublishedPlatform platform; + final String metadataGsPath; + final Set channels; + final Set revisionsBeingRemoved; + final bool confirmed; + final Directory tempDir; + final ProcessRunner _processRunner; + static String getMetadataFilename(PublishedPlatform platform) => 'releases_${getPublishedPlatform(platform)}.json'; + + /// Remove the archive from Google Storage. + Future unpublishArchive() async { + final Map jsonData = await _loadMetadata(); + final List> releases = (jsonData['releases'] as List).map>((dynamic entry) { + final Map mapEntry = entry as Map; + return mapEntry.cast(); + }).toList(); + final Map> paths = await _getArchivePaths(releases); + releases.removeWhere((Map value) => revisionsBeingRemoved.contains(value['hash']) && channels.contains(fromChannelName(value['channel']))); + releases.sort((Map a, Map b) { + final DateTime aDate = DateTime.parse(a['release_date']!); + final DateTime bDate = DateTime.parse(b['release_date']!); + return bDate.compareTo(aDate); + }); + jsonData['releases'] = releases; + for (final Channel channel in channels) { + if (!revisionsBeingRemoved.contains((jsonData['current_release'] as Map)[getChannelName(channel)])) { + // Don't replace the current release if it's not one of the revisions we're removing. + continue; + } + final Map replacementRelease = releases.firstWhere((Map value) => value['channel'] == getChannelName(channel)); + (jsonData['current_release'] as Map)[getChannelName(channel)] = replacementRelease['hash']; + print( + '${confirmed ? 'Reverting' : 'Would revert'} current ${getChannelName(channel)} ' + '${getPublishedPlatform(platform)} release to ${replacementRelease['hash']} (version ${replacementRelease['version']}).' + ); + } + await _cloudRemoveArchive(paths); + await _updateMetadata(jsonData); + } + + Future>> _getArchivePaths(List> releases) async { + final Set hashes = {}; + final Map> paths = >{}; + for (final Map revision in releases) { + final String hash = revision['hash']!; + final Channel channel = fromChannelName(revision['channel']); + hashes.add(hash); + if (revisionsBeingRemoved.contains(hash) && channels.contains(channel)) { + paths[channel] ??= {}; + paths[channel]![hash] = revision['archive']!; + } + } + final Set missingRevisions = revisionsBeingRemoved.difference(hashes.intersection(revisionsBeingRemoved)); + if (missingRevisions.isNotEmpty) { + final bool plural = missingRevisions.length > 1; + throw UnpublishException('Revision${plural ? 's' : ''} $missingRevisions ${plural ? 'are' : 'is'} not present in the server metadata.'); + } + return paths; + } + + Future> _loadMetadata() async { + final File metadataFile = File( + path.join(tempDir.absolute.path, getMetadataFilename(platform)), + ); + // Always run this, even in dry runs. + await _runGsUtil(['cp', metadataGsPath, metadataFile.absolute.path], confirm: true); + final String currentMetadata = metadataFile.readAsStringSync(); + if (currentMetadata.isEmpty) { + throw UnpublishException('Empty metadata received from server'); + } + + Map jsonData; + try { + jsonData = json.decode(currentMetadata) as Map; + } on FormatException catch (e) { + throw UnpublishException('Unable to parse JSON metadata received from cloud: $e'); + } + + return jsonData; + } + + Future _updateMetadata(Map jsonData) async { + // We can't just cat the metadata from the server with 'gsutil cat', because + // Windows wants to echo the commands that execute in gsutil.bat to the + // stdout when we do that. So, we copy the file locally and then read it + // back in. + final File metadataFile = File( + path.join(tempDir.absolute.path, getMetadataFilename(platform)), + ); + const JsonEncoder encoder = JsonEncoder.withIndent(' '); + metadataFile.writeAsStringSync(encoder.convert(jsonData)); + print('${confirmed ? 'Overwriting' : 'Would overwrite'} $metadataGsPath with contents of ${metadataFile.absolute.path}'); + await _cloudReplaceDest(metadataFile.absolute.path, metadataGsPath); + } + + Future _runGsUtil( + List args, { + Directory? workingDirectory, + bool failOk = false, + bool confirm = false, + }) async { + final List command = ['gsutil', '--', ...args]; + if (confirm) { + return _processRunner.runProcess( + command, + workingDirectory: workingDirectory, + failOk: failOk, + ); + } else { + print('Would run: ${command.join(' ')}'); + return ''; + } + } + + Future _cloudRemoveArchive(Map> paths) async { + final List files = []; + print('${confirmed ? 'Removing' : 'Would remove'} the following release archives:'); + for (final Channel channel in paths.keys) { + final Map hashes = paths[channel]!; + for (final String hash in hashes.keys) { + final String file = '$gsReleaseFolder/${hashes[hash]}'; + files.add(file); + print(' $file'); + } + } + await _runGsUtil(['rm', ...files], failOk: true, confirm: confirmed); + } + + Future _cloudReplaceDest(String src, String dest) async { + assert(dest.startsWith('gs:'), '_cloudReplaceDest must have a destination in cloud storage.'); + assert(!src.startsWith('gs:'), '_cloudReplaceDest must have a local source file.'); + // We often don't have permission to overwrite, but + // we have permission to remove, so that's what we do first. + await _runGsUtil(['rm', dest], failOk: true, confirm: confirmed); + String? mimeType; + if (dest.endsWith('.tar.xz')) { + mimeType = 'application/x-gtar'; + } + if (dest.endsWith('.zip')) { + mimeType = 'application/zip'; + } + if (dest.endsWith('.json')) { + mimeType = 'application/json'; + } + final List args = [ + // Use our preferred MIME type for the files we care about + // and let gsutil figure it out for anything else. + if (mimeType != null) ...['-h', 'Content-Type:$mimeType'], + ...['cp', src, dest], + ]; + return _runGsUtil(args, confirm: confirmed); + } +} + +void _printBanner(String message) { + final String banner = '*** $message ***'; + print('\n'); + print('*' * banner.length); + print(banner); + print('*' * banner.length); + print('\n'); +} + +/// Prepares a flutter git repo to be removed from the published cloud storage. +Future main(List rawArguments) async { + final List allowedChannelValues = Channel.values.map((Channel channel) => getChannelName(channel)).toList(); + final List allowedPlatformNames = PublishedPlatform.values.map((PublishedPlatform platform) => getPublishedPlatform(platform)).toList(); + final ArgParser argParser = ArgParser(); + argParser.addOption( + 'temp_dir', + help: 'A location where temporary files may be written. Defaults to a ' + 'directory in the system temp folder. If a temp_dir is not ' + 'specified, then by default a generated temporary directory will be ' + 'created, used, and removed automatically when the script exits.', + ); + argParser.addMultiOption('revision', + help: 'The Flutter git repo revisions to remove from the published site. ' + 'Must be full 40-character hashes. More than one may be specified, ' + 'either by giving the option more than once, or by giving a comma ' + 'separated list. Required.'); + argParser.addMultiOption( + 'channel', + allowed: allowedChannelValues, + help: 'The Flutter channels to remove the archives corresponding to the ' + 'revisions given with --revision. More than one may be specified, ' + 'either by giving the option more than once, or by giving a ' + 'comma separated list. If not specified, then the archives from all ' + 'channels that a revision appears in will be removed.', + ); + argParser.addMultiOption( + 'platform', + allowed: allowedPlatformNames, + help: 'The Flutter platforms to remove the archive from. May specify more ' + 'than one, either by giving the option more than once, or by giving a ' + 'comma separated list. If not specified, then the archives from all ' + 'platforms that a revision appears in will be removed.', + ); + argParser.addFlag( + 'confirm', + help: 'If set, will actually remove the archive from Google Cloud Storage ' + 'upon successful execution of this script. Published archives will be ' + 'removed from this directory: $baseUrl$releaseFolder. This option ' + 'must be set to perform any action on the server, otherwise only a dry ' + 'run is performed.', + ); + argParser.addFlag( + 'help', + negatable: false, + help: 'Print help for this command.', + ); + + final ArgResults parsedArguments = argParser.parse(rawArguments); + + if (parsedArguments['help'] as bool) { + print(argParser.usage); + exit(0); + } + + void errorExit(String message, {int exitCode = -1}) { + stderr.write('Error: $message\n\n'); + stderr.write('${argParser.usage}\n'); + exit(exitCode); + } + + final List revisions = parsedArguments['revision'] as List; + if (revisions.isEmpty) { + errorExit('Invalid argument: at least one --revision must be specified.'); + } + for (final String revision in revisions) { + if (revision.length != 40) { + errorExit('Invalid argument: --revision "$revision" must be the entire hash, not just a prefix.'); + } + if (revision.contains(RegExp(r'[^a-fA-F0-9]'))) { + errorExit('Invalid argument: --revision "$revision" contains non-hex characters.'); + } + } + + final String tempDirArg = parsedArguments['temp_dir'] as String; + Directory tempDir; + bool removeTempDir = false; + if (tempDirArg.isEmpty) { + tempDir = Directory.systemTemp.createTempSync('flutter_package.'); + removeTempDir = true; + } else { + tempDir = Directory(tempDirArg); + if (!tempDir.existsSync()) { + errorExit("Temporary directory $tempDirArg doesn't exist."); + } + } + + if (!(parsedArguments['confirm'] as bool)) { + _printBanner('This will be just a dry run. To actually perform the changes below, re-run with --confirm argument.'); + } + + final List channelArg = parsedArguments['channel'] as List; + final List channelOptions = channelArg.isNotEmpty ? channelArg : allowedChannelValues; + final Set channels = channelOptions.map((String value) => fromChannelName(value)).toSet(); + final List platformArg = parsedArguments['platform'] as List; + final List platformOptions = platformArg.isNotEmpty ? platformArg : allowedPlatformNames; + final List platforms = platformOptions.map((String value) => fromPublishedPlatform(value)).toList(); + int exitCode = 0; + late String message; + late String stack; + try { + for (final PublishedPlatform platform in platforms) { + final ArchiveUnpublisher publisher = ArchiveUnpublisher( + tempDir, + revisions.toSet(), + channels, + platform, + confirmed: parsedArguments['confirm'] as bool, + ); + await publisher.unpublishArchive(); + } + } on UnpublishException catch (e, s) { + exitCode = e.exitCode; + message = e.message; + stack = s.toString(); + } catch (e, s) { + exitCode = -1; + message = e.toString(); + stack = s.toString(); + } finally { + if (removeTempDir) { + tempDir.deleteSync(recursive: true); + } + if (exitCode != 0) { + errorExit('$message\n$stack', exitCode: exitCode); + } + if (!(parsedArguments['confirm'] as bool)) { + _printBanner('This was just a dry run. To actually perform the above changes, re-run with --confirm argument.'); + } + exit(0); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/bots/utils.dart b/novelforge-project/agent-workspace/flutter/dev/bots/utils.dart new file mode 100644 index 0000000000000000000000000000000000000000..165fc3792370c04337e9d07d9de69059377ea4a6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/bots/utils.dart @@ -0,0 +1,255 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:core' hide print; +import 'dart:io' as system show exit; +import 'dart:io' hide exit; +import 'dart:math' as math; + +import 'package:meta/meta.dart'; + +const Duration _quietTimeout = Duration(minutes: 10); // how long the output should be hidden between calls to printProgress before just being verbose + +// If running from LUCI set to False. +final bool isLuci = Platform.environment['LUCI_CI'] == 'True'; +final bool hasColor = stdout.supportsAnsiEscapes && !isLuci; + + +final String bold = hasColor ? '\x1B[1m' : ''; // shard titles +final String red = hasColor ? '\x1B[31m' : ''; // errors +final String green = hasColor ? '\x1B[32m' : ''; // section titles, commands +final String yellow = hasColor ? '\x1B[33m' : ''; // indications that a test was skipped (usually renders orange or brown) +final String cyan = hasColor ? '\x1B[36m' : ''; // paths +final String reverse = hasColor ? '\x1B[7m' : ''; // clocks +final String gray = hasColor ? '\x1B[30m' : ''; // subtle decorative items (usually renders as dark gray) +final String white = hasColor ? '\x1B[37m' : ''; // last log line (usually renders as light gray) +final String reset = hasColor ? '\x1B[0m' : ''; + +const int kESC = 0x1B; +const int kOpenSquareBracket = 0x5B; +const int kCSIParameterRangeStart = 0x30; +const int kCSIParameterRangeEnd = 0x3F; +const int kCSIIntermediateRangeStart = 0x20; +const int kCSIIntermediateRangeEnd = 0x2F; +const int kCSIFinalRangeStart = 0x40; +const int kCSIFinalRangeEnd = 0x7E; + + +String get redLine { + if (hasColor) { + return '$red${'━' * stdout.terminalColumns}$reset'; + } + return '━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'; +} + +String get clock { + final DateTime now = DateTime.now(); + return '$reverse▌' + '${now.hour.toString().padLeft(2, "0")}:' + '${now.minute.toString().padLeft(2, "0")}:' + '${now.second.toString().padLeft(2, "0")}' + '▐$reset'; +} + +String prettyPrintDuration(Duration duration) { + String result = ''; + final int minutes = duration.inMinutes; + if (minutes > 0) { + result += '${minutes}min '; + } + final int seconds = duration.inSeconds - minutes * 60; + final int milliseconds = duration.inMilliseconds - (seconds * 1000 + minutes * 60 * 1000); + result += '$seconds.${milliseconds.toString().padLeft(3, "0")}s'; + return result; +} + +typedef PrintCallback = void Function(Object? line); +typedef VoidCallback = void Function(); + +// Allow print() to be overridden, for tests. +// +// Files that import this library should not import `print` from dart:core +// and should not use dart:io's `stdout` or `stderr`. +// +// By default this hides log lines between `printProgress` calls unless a +// timeout expires or anything calls `foundError`. +// +// Also used to implement `--verbose` in test.dart. +PrintCallback print = _printQuietly; + +// Called by foundError and used to implement `--abort-on-error` in test.dart. +VoidCallback? onError; + +bool get hasError => _hasError; +bool _hasError = false; + +List> _errorMessages = >[]; + +final List _pendingLogs = []; +Timer? _hideTimer; // When this is null, the output is verbose. + +void foundError(List messages) { + assert(messages.isNotEmpty); + // Make the error message easy to notice in the logs by + // wrapping it in a red box. + final int width = math.max(15, (hasColor ? stdout.terminalColumns : 80) - 1); + final String title = 'ERROR #${_errorMessages.length + 1}'; + print('$red╔═╡$bold$title$reset$red╞═${"═" * (width - 4 - title.length)}'); + for (final String message in messages.expand((String line) => line.split('\n'))) { + print('$red║$reset $message'); + } + print('$red╚${"═" * width}'); + // Normally, "print" actually prints to the log. To make the errors visible, + // and to include useful context, print the entire log up to this point, and + // clear it. Subsequent messages will continue to not be logged until there is + // another error. + _pendingLogs.forEach(_printLoudly); + _pendingLogs.clear(); + _errorMessages.add(messages); + _hasError = true; + onError?.call(); +} + +@visibleForTesting +void resetErrorStatus() { + _hasError = false; + _errorMessages.clear(); + _pendingLogs.clear(); + _hideTimer?.cancel(); + _hideTimer = null; +} + +Never reportSuccessAndExit(String message) { + _hideTimer?.cancel(); + _hideTimer = null; + print('$clock $message$reset'); + system.exit(0); +} + +Never reportErrorsAndExit(String message) { + _hideTimer?.cancel(); + _hideTimer = null; + print('$clock $message$reset'); + print(redLine); + print('${red}For your convenience, the error messages reported above are repeated here:$reset'); + final bool printSeparators = _errorMessages.any((List messages) => messages.length > 1); + if (printSeparators) { + print(' 🙙 🙛 '); + } + for (int index = 0; index < _errorMessages.length * 2 - 1; index += 1) { + if (index.isEven) { + _errorMessages[index ~/ 2].forEach(print); + } else if (printSeparators) { + print(' 🙙 🙛 '); + } + } + print(redLine); + print('You may find the errors by searching for "╡ERROR #" in the logs.'); + system.exit(1); +} + +void printProgress(String message) { + _pendingLogs.clear(); + _hideTimer?.cancel(); + _hideTimer = null; + print('$clock $message$reset'); + if (hasColor) { + // This sets up a timer to switch to verbose mode when the tests take too long, + // so that if a test hangs we can see the logs. + // (This is only supported with a color terminal. When the terminal doesn't + // support colors, the scripts just print everything verbosely, that way in + // CI there's nothing hidden.) + _hideTimer = Timer(_quietTimeout, () { + _hideTimer = null; + _pendingLogs.forEach(_printLoudly); + _pendingLogs.clear(); + }); + } +} + +final Pattern _lineBreak = RegExp(r'[\r\n]'); + +void _printQuietly(Object? message) { + // The point of this function is to avoid printing its output unless the timer + // has gone off in which case the function assumes verbose mode is active and + // prints everything. To show that progress is still happening though, rather + // than showing nothing at all, it instead shows the last line of output and + // keeps overwriting it. To do this in color mode, carefully measures the line + // of text ignoring color codes, which is what the parser below does. + if (_hideTimer != null) { + _pendingLogs.add(message.toString()); + String line = '$message'.trimRight(); + final int start = line.lastIndexOf(_lineBreak) + 1; + int index = start; + int length = 0; + while (index < line.length && length < stdout.terminalColumns) { + if (line.codeUnitAt(index) == kESC) { // 0x1B + index += 1; + if (index < line.length && line.codeUnitAt(index) == kOpenSquareBracket) { // 0x5B, [ + // That was the start of a CSI sequence. + index += 1; + while (index < line.length && line.codeUnitAt(index) >= kCSIParameterRangeStart + && line.codeUnitAt(index) <= kCSIParameterRangeEnd) { // 0x30..0x3F + index += 1; // ...parameter bytes... + } + while (index < line.length && line.codeUnitAt(index) >= kCSIIntermediateRangeStart + && line.codeUnitAt(index) <= kCSIIntermediateRangeEnd) { // 0x20..0x2F + index += 1; // ...intermediate bytes... + } + if (index < line.length && line.codeUnitAt(index) >= kCSIFinalRangeStart + && line.codeUnitAt(index) <= kCSIFinalRangeEnd) { // 0x40..0x7E + index += 1; // ...final byte. + } + } + } else { + index += 1; + length += 1; + } + } + line = line.substring(start, index); + if (line.isNotEmpty) { + stdout.write('\r\x1B[2K$white$line$reset'); + } + } else { + _printLoudly('$message'); + } +} + +void _printLoudly(String message) { + if (hasColor) { + // Overwrite the last line written by _printQuietly. + stdout.writeln('\r\x1B[2K$reset${message.trimRight()}'); + } else { + stdout.writeln(message); + } +} + +// THE FOLLOWING CODE IS A VIOLATION OF OUR STYLE GUIDE +// BECAUSE IT INTRODUCES A VERY FLAKY RACE CONDITION +// https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#never-check-if-a-port-is-available-before-using-it-never-add-timeouts-and-other-race-conditions +// DO NOT USE THE FOLLOWING FUNCTIONS +// DO NOT WRITE CODE LIKE THE FOLLOWING FUNCTIONS +// https://github.com/flutter/flutter/issues/109474 + +int _portCounter = 8080; + +/// Finds the next available local port. +Future findAvailablePortAndPossiblyCauseFlakyTests() async { + while (!await _isPortAvailable(_portCounter)) { + _portCounter += 1; + } + return _portCounter++; +} + +Future _isPortAvailable(int port) async { + try { + final RawSocket socket = await RawSocket.connect('localhost', port); + socket.shutdown(SocketDirection.both); + await socket.close(); + return false; + } on SocketException { + return true; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/conductor/README.md b/novelforge-project/agent-workspace/flutter/dev/conductor/README.md new file mode 100644 index 0000000000000000000000000000000000000000..8899226c38bca213a61569d89904f4e6b6413b7d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/conductor/README.md @@ -0,0 +1,118 @@ +# Flutter Conductor + +Command-line tool for managing a release of the Flutter SDK. Also see +https://github.com/flutter/flutter/wiki/Release-process for more information on +the release process. + +## Requirements + +Some basic requirements to conduct a release are: + +- a Linux or macOS computer set up for Flutter development. The conductor does + not support Windows. +- git +- Mirrors on GitHub of the Flutter + [framework](https://github.com/flutter/flutter) and + [engine](https://github.com/flutter/engine) repositories. + +For the best experience, it is recommended to use ssh protocol for connecting to +GitHub remote repositories (i.e. for `--framework-mirror` and `--engine-mirror` +specify the remote with the format `git@github.com:username/reponame`). If your +local ssh key is password-protected, it is recommended to use ssh-agent to +unlock your ssh key for the session; if you do not, each time the conductor +attempts to interact with a remote, the user will be prompted to enter their ssh +key password. + +## Usage + +The main entrypoint for the conductor is [bin/conductor](bin/conductor). For +brevity, the rest of this document will assume that this entrypoint is on the +shell path. + +All available commands can be seen via: + +`conductor help` + +Releases are initialized with the `start` sub-command, like: + +``` +conductor start \ + --candidate-branch=flutter-2.2-candidate.10 \ + --release-channel=beta \ + --github-username=kingOfDevelopers \ + --engine-cherrypicks=72114dafe28c8700f1d5d629c6ae9d34172ba395 \ + --framework-cherrypicks=a3e66b396746f6581b2b7efd1b0d0f0074215128,d8d853436206e86f416236b930e97779b143a100 \ + --dart-revision=4511eb2a779a612d9d6b2012123575013e0aef12 \ +``` + +The conductor will, based on the release channel and the presence/lack of +previous tags, determine which part of the release version should be +incremented. In the cases where this is not correct, the version can be +overridden with `--version-override=3.0.0`. + +For more details on these command line arguments, see `conductor help start`. +This command will write to disk a state file that will persist until the release +is completed. If you already have a persistent state file, this command will +fail with an error message. To see the current status of the release (at any +time), issue the command: + +`conductor status` + +To delete a persistent state file (either because the release was successfully +completed or abandoned), use the command: + +`conductor clean` + +Once initializing the release, the conductor tool will issue instructions for +manual steps that must be executed by the user. At any time these instructions +can be seen via `conductor status`. Once these manual steps have been completed, +you can proceed to the next step by using the command: + +`conductor next` + +## Steps + +Once the user has finished manual steps for each step, they proceed to the next +step with the command: + +`conductor next` + +### Apply Engine Cherrypicks + +The tool will attempt to auto-apply all engine cherrypicks. However, any +cherrypicks that result in a merge conflict will be reverted and it is left to +the user to manually cherry-pick them (with the command `git cherry-pick +$REVISION`) and resolve the merge conflict in their checkout. + +Once a PR is opened, the user must validate CI builds. If there are regressions +(or if the `licenses_check` fails, then +`//engine/ci/licenses_golden/licenses_third_party` must be updated to match the +output of the failing test), then the user must fix these tests in their local +checkout and push their changes again. + +### Apply Framework Cherrypicks + +The tool will attempt to auto-apply all framework cherrypicks. However, any +cherrypicks that result in a merge conflict will be reverted and it is left to +the user to manually cherry-pick them (with the command `git cherry-pick +$REVISION`) and resolve the merge conflict in their checkout. + +### Publish Version + +This step will add a version git tag to the final Framework commit and push it +to the upstream repository. The presence of a tag affects what the flutter CLI +tool reports the current version is. + +### Publish Channel + +This step will push the Framework candidate branch to the upstream release +branch (e.g. the `stable` branch). Once this push happens upstream, the release +has officially been published, and the code will be available to existing +Flutter users via `flutter upgrade`. + +### Verify Release + +For the final step, the user must manually verify that packaging builds have +finished successfully. The SDK compressed archives will not be available from +the website until the packaging build has finished. The conductor will produce +links to the dashboards for monitoring CI builds. diff --git a/novelforge-project/agent-workspace/flutter/dev/customer_testing/ci.bat b/novelforge-project/agent-workspace/flutter/dev/customer_testing/ci.bat new file mode 100644 index 0000000000000000000000000000000000000000..769a2555e9801cb0b581724ee58957167353c645 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/customer_testing/ci.bat @@ -0,0 +1,27 @@ +@ECHO off +REM Copyright 2014 The Flutter Authors. All rights reserved. +REM Use of this source code is governed by a BSD-style license that can be +REM found in the LICENSE file. + +REM This should match the ci.sh file in this directory. + +REM This is called from the LUCI recipes: +REM https://flutter.googlesource.com/recipes/+/refs/heads/master/recipe_modules/adhoc_validation/resources/customer_testing.bat + +ECHO. +ECHO Updating pub packages... +CALL dart pub get +CD ..\tools +CALL dart pub get +CD ..\customer_testing + +ECHO. +ECHO Finding correct version of customer tests... +CMD /S /C "IF EXIST "..\..\bin\cache\pkg\tests\" RMDIR /S /Q ..\..\bin\cache\pkg\tests" +git clone https://github.com/flutter/tests.git ..\..\bin\cache\pkg\tests +FOR /F "usebackq tokens=*" %%a IN (`dart --enable-asserts ..\tools\bin\find_commit.dart . master ..\..\bin\cache\pkg\tests main`) DO git -C ..\..\bin\cache\pkg\tests checkout %%a + +ECHO. +ECHO Running tests... +CD ..\..\bin\cache\pkg\tests +CALL dart --enable-asserts ..\..\..\..\dev\customer_testing\run_tests.dart --verbose --skip-on-fetch-failure --skip-template registry/*.test diff --git a/novelforge-project/agent-workspace/flutter/dev/customer_testing/ci.sh b/novelforge-project/agent-workspace/flutter/dev/customer_testing/ci.sh new file mode 100644 index 0000000000000000000000000000000000000000..48b42a83530d870aa62df291f3de5dc09f00ae5d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/customer_testing/ci.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +# Copyright 2014 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +# This should match the ci.bat file in this directory. + +# This is called from .cirrus.yml and the LUCI recipes: +# https://flutter.googlesource.com/recipes/+/refs/heads/master/recipe_modules/adhoc_validation/resources/customer_testing.sh + +set -ex + +# This script does not assume that "flutter update-packages" has been +# run, to allow CIs to save time by skipping that steps since it's +# largely not needed to run the flutter/tests tests. +# +# However, we do need to update this directory and the tools directory. +dart pub get +(cd ../tools; dart pub get) # used for find_commit.dart below + +# Next we need to update the flutter/tests checkout. +# +# We use find_commit.dart so that we pull the version of flutter/tests +# that was contemporary when the branch we are on was created. That +# way, we can still run the tests on long-lived branches without being +# affected by breaking changes on trunk causing changes to the tests +# that wouldn't work on the long-lived branch. +# +# (This also prevents trunk from suddenly failing when tests are +# revved on flutter/tests -- if you rerun a passing customer_tests +# shard, it should still pass, even if we rolled one of the tests.) +rm -rf ../../bin/cache/pkg/tests +git clone https://github.com/flutter/tests.git ../../bin/cache/pkg/tests +git -C ../../bin/cache/pkg/tests checkout `dart --enable-asserts ../tools/bin/find_commit.dart . master ../../bin/cache/pkg/tests main` + +# Finally, run the tests. +dart --enable-asserts run_tests.dart --verbose --skip-on-fetch-failure --skip-template ../../bin/cache/pkg/tests/registry/*.test diff --git a/novelforge-project/agent-workspace/flutter/dev/customer_testing/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/customer_testing/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..94003e05ab53b4927a17a25323d382d4c4f19200 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/customer_testing/pubspec.lock @@ -0,0 +1,373 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct dev" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct dev" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct dev" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct dev" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct dev" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + frontend_server_client: + dependency: "direct dev" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + glob: + dependency: "direct main" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + http_multi_server: + dependency: "direct dev" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct dev" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + io: + dependency: "direct dev" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct dev" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + logging: + dependency: "direct dev" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mime: + dependency: "direct dev" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct dev" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct dev" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + pool: + dependency: "direct dev" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + pub_semver: + dependency: "direct dev" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + shelf: + dependency: "direct dev" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct dev" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct dev" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct dev" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + source_map_stack_trace: + dependency: "direct dev" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct dev" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct dev" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct dev" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct dev" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct dev" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct dev" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct dev" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webkit_inspection_protocol: + dependency: "direct dev" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + yaml: + dependency: "direct dev" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/customer_testing/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/customer_testing/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c6587aceb68ac023a275a1232c6fc0800e236863 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/customer_testing/pubspec.yaml @@ -0,0 +1,59 @@ +name: customer_testing +description: Tool to run the tests listed in the flutter/tests repository. + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + args: 2.4.2 + path: 1.9.0 + glob: 2.1.2 + meta: 1.11.0 + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + test: 1.24.9 + + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: fb60 diff --git a/novelforge-project/agent-workspace/flutter/dev/customer_testing/run_tests.dart b/novelforge-project/agent-workspace/flutter/dev/customer_testing/run_tests.dart new file mode 100644 index 0000000000000000000000000000000000000000..cb3f421418629c477d81c245ccd567178ea0eab7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/customer_testing/run_tests.dart @@ -0,0 +1,137 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +import 'package:args/args.dart'; +import 'package:file/local.dart'; +import 'package:glob/glob.dart'; +import 'package:path/path.dart' as path; + +import 'lib/runner.dart'; + +Future main(List arguments) async { + exit(await run(arguments) ? 0 : 1); +} + +// Return true if successful, false if failed. +Future run(List arguments) async { + final ArgParser argParser = ArgParser( + allowTrailingOptions: false, + usageLineLength: 72, + ) + ..addOption( + 'repeat', + defaultsTo: '1', + help: 'How many times to run each test. Set to a high value to look for flakes. If a test specifies a number of iterations, the lower of the two values is used.', + valueHelp: 'count', + ) + ..addOption( + 'shards', + defaultsTo: '1', + help: 'How many shards to split the tests into. Used in continuous integration.', + valueHelp: 'count', + ) + ..addOption( + 'shard-index', + defaultsTo: '0', + help: 'The current shard to run the tests with the range [0 .. shards - 1]. Used in continuous integration.', + valueHelp: 'count', + ) + ..addFlag( + 'skip-on-fetch-failure', + help: 'Whether to skip tests that we fail to download.', + ) + ..addFlag( + 'skip-template', + help: 'Whether to skip tests named "template.test".', + ) + ..addFlag( + 'verbose', + help: 'Describe what is happening in detail.', + ) + ..addFlag( + 'help', + negatable: false, + help: 'Print this help message.', + ); + + void printHelp() { + print('run_tests.dart [options...] path/to/file1.test path/to/file2.test...'); + print('For details on the test registry format, see:'); + print(' https://github.com/flutter/tests/blob/master/registry/template.test'); + print(''); + print(argParser.usage); + print(''); + } + + ArgResults parsedArguments; + try { + parsedArguments = argParser.parse(arguments); + } on ArgParserException catch (error) { + printHelp(); + print('Error: ${error.message} Use --help for usage information.'); + exit(1); + } + + final int? repeat = int.tryParse(parsedArguments['repeat'] as String); + final bool skipOnFetchFailure = parsedArguments['skip-on-fetch-failure'] as bool; + final bool skipTemplate = parsedArguments['skip-template'] as bool; + final bool verbose = parsedArguments['verbose'] as bool; + final bool help = parsedArguments['help'] as bool; + final int? numberShards = int.tryParse(parsedArguments['shards'] as String); + final int? shardIndex = int.tryParse(parsedArguments['shard-index'] as String); + final List files = parsedArguments + .rest + .expand((String path) => Glob(path).listFileSystemSync(const LocalFileSystem())) + .whereType() + .where((File file) => !skipTemplate || path.basename(file.path) != 'template.test') + .toList(); + + if (help || repeat == null || files.isEmpty || numberShards == null || numberShards <= 0 || shardIndex == null || shardIndex < 0) { + printHelp(); + if (verbose) { + if (repeat == null) { + print('Error: Could not parse repeat count ("${parsedArguments['repeat']}")'); + } + if (numberShards == null) { + print('Error: Could not parse shards count ("${parsedArguments['shards']}")'); + } else if (numberShards < 1) { + print('Error: The specified shards count ($numberShards) is less than 1. It must be greater than zero.'); + } + if (shardIndex == null) { + print('Error: Could not parse shard index ("${parsedArguments['shard-index']}")'); + } else if (shardIndex < 0) { + print('Error: The specified shard index ($shardIndex) is negative. It must be in the range [0 .. shards - 1].'); + } + if (parsedArguments.rest.isEmpty) { + print('Error: No file arguments specified.'); + } else if (files.isEmpty) { + print('Error: File arguments ("${parsedArguments.rest.join('", "')}") did not identify any real files.'); + } + } + return help; + } + + if (shardIndex > numberShards - 1) { + print( + 'Error: The specified shard index ($shardIndex) is more than the specified number of shards ($numberShards). ' + 'It must be in the range [0 .. shards - 1].' + ); + return false; + } + + if (files.length < numberShards) { + print('Warning: There are more shards than tests. Some shards will not run any tests.'); + } + + return runTests( + repeat: repeat, + skipOnFetchFailure: skipOnFetchFailure, + verbose: verbose, + numberShards: numberShards, + shardIndex: shardIndex, + files: files, + ); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/devicelab/README.md b/novelforge-project/agent-workspace/flutter/dev/devicelab/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5781861339cd83dcdedaa06b0fe242885672a769 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/devicelab/README.md @@ -0,0 +1,259 @@ +# Flutter DeviceLab + +DeviceLab is a physical lab that tests Flutter on real devices. + +This package contains the code for the test framework and tests. More generally +the tests are referred to as "tasks" in the API, but since we primarily use it +for testing, this document refers to them as "tests". + +Current statuses for the devicelab are available at +. See [dashboard user +guide](https://github.com/flutter/cocoon/blob/main/dashboard/USER_GUIDE.md) +for information on using the dashboards. + +## Table of Contents + +* [How the DeviceLab runs tests](#how-the-devicelab-runs-tests) +* [Running tests locally](#running-tests-locally) +* [Writing tests](#writing-tests) +* [Adding tests to continuous + integration](#adding-tests-to-continuous-integration) +* [Adding tests to presubmit](#adding-tests-to-presubmit) +* [Migrating to build and test model](#migrating-to-build-and-test-model) + +## How the DeviceLab runs tests + +DeviceLab tests are run against physical devices in Flutter's lab (the +"DeviceLab"). + +Tasks specify the type of device they are to run on (`linux_android`, `mac_ios`, +`mac_android`, `windows_android`, etc). When a device in the lab is free, it +will pickup tasks that need to be completed. + +1. If the task succeeds, the test runner reports the success and uploads its +performance metrics to Flutter's infrastructure. Not all tasks record +performance metrics. +2. If task fails, an auto rerun happens. Whenever the last run succeeds, the +task will be reported as a success. For this case, a flake will be flagged and +populated to the test result. +3. If the task fails in all reruns, the test runner reports the failure to + Flutter's infrastructure and no performance metrics are collected + +## Running tests locally + +Do make sure your tests pass locally before deploying to the CI environment. +Below is a handful of commands that run tests in a similar way to how the +CI environment runs them. These commands are also useful when you need to +reproduce a CI test failure locally. + +### Prerequisites + +You must set the `ANDROID_SDK_ROOT` environment variable to run +tests on Android. If you have a local build of the Flutter engine, then you have +a copy of the Android SDK at `.../engine/src/third_party/android_tools/sdk`. + +You can find where your Android SDK is using `flutter doctor -v`. + +### Warnings + +Running the devicelab will do things to your environment. + +Notably, it will start and stop Gradle, for instance. + +### Running specific tests + +To run a test, use option `-t` (`--task`): + +```sh +# from the .../flutter/dev/devicelab directory +../../bin/cache/dart-sdk/bin/dart bin/test_runner.dart test -t {NAME_OF_TEST} +``` + +Where `NAME_OR_PATH_OF_TEST` is the name of a task, which is a file's +basename in `bin/tasks`. Example: `complex_layout__start_up`. + +To run multiple tests, repeat option `-t` (`--task`) multiple times: + +```sh +../../bin/cache/dart-sdk/bin/dart bin/run.dart -t test1 -t test2 -t test3 +``` + +### Running tests against a local engine build + +To run device lab tests against a local engine build, pass the appropriate +flags to `bin/run.dart`: + +```sh +../../bin/cache/dart-sdk/bin/dart bin/run.dart --task=[some_task] \ + --local-engine-src-path=[path_to_local]/engine/src \ + --local-engine=[local_engine_architecture] \ + --local-engine-host=[local_engine_host_architecture] +``` + +An example of a local engine architecture is `android_debug_unopt_x86` and +an example of a local engine host architecture is `host_debug_unopt`. + +### Running an A/B test for engine changes + +You can run an A/B test that compares the performance of the default engine +against a local engine build. The test runs the same benchmark a specified +number of times against both engines, then outputs a tab-separated spreadsheet +with the results and stores them in a JSON file for future reference. The +results can be copied to a Google Spreadsheet for further inspection and the +JSON file can be reprocessed with the `summarize.dart` command for more detailed +output. + +Example: + +```sh +../../bin/cache/dart-sdk/bin/dart bin/run.dart --ab=10 \ + --local-engine=host_debug_unopt \ + --local-engine-host=host_debug_unopt \ + -t bin/tasks/web_benchmarks_canvaskit.dart +``` + +The `--ab=10` tells the runner to run an A/B test 10 times. + +`--local-engine=host_debug_unopt` tells the A/B test to use the +`host_debug_unopt` engine build. `--local-engine-host=host_debug_unopt` uses +the same engine build to run the `frontend_server` (in this example). +`--local-engine` is required for A/B test. + +`--ab-result-file=filename` can be used to provide an alternate location to +output the JSON results file (defaults to `ABresults#.json`). A single `#` +character can be used to indicate where to insert a serial number if a file with +that name already exists, otherwise, the file will be overwritten. + +A/B can run exactly one task. Multiple tasks are not supported. + +Example output: + +```text +Score Average A (noise) Average B (noise) Speed-up +bench_card_infinite_scroll.canvaskit.drawFrameDuration.average 2900.20 (8.44%) 2426.70 (8.94%) 1.20x +bench_card_infinite_scroll.canvaskit.totalUiFrame.average 4964.00 (6.29%) 4098.00 (8.03%) 1.21x +draw_rect.canvaskit.windowRenderDuration.average 1959.45 (16.56%) 2286.65 (0.61%) 0.86x +draw_rect.canvaskit.sceneBuildDuration.average 1969.45 (16.37%) 2294.90 (0.58%) 0.86x +draw_rect.canvaskit.drawFrameDuration.average 5335.20 (17.59%) 6437.60 (0.59%) 0.83x +draw_rect.canvaskit.totalUiFrame.average 6832.00 (13.16%) 7932.00 (0.34%) 0.86x +``` + +The output contains averages and noises for each score. More importantly, it +contains the speed-up value, i.e. how much _faster_ is the local engine than +the default engine. Values less than 1.0 indicate a slow-down. For example, +0.5x means the local engine is twice as slow as the default engine, and 2.0x +means it's twice as fast. Higher is better. + +Summarize tool example: + +```sh +../../bin/cache/dart-sdk/bin/dart bin/summarize.dart --[no-]tsv-table --[no-]raw-summary \ + ABresults.json ABresults1.json ABresults2.json ... +``` + +`--[no-]tsv-table` tells the tool to print the summary in a table with tabs for +easy spreadsheet entry. (defaults to on) + +`--[no-]raw-summary` tells the tool to print all per-run data collected by the +A/B test formatted with tabs for easy spreadsheet entry. (defaults to on) + +Multiple trailing filenames can be specified and each such results file will be +processed in turn. + +## Reproducing broken builds locally + +To reproduce the breakage locally `git checkout` the corresponding Flutter +revision. Note the name of the test that failed. In the example above the +failing test is `flutter_gallery__transition_perf`. This name can be passed to +the `run.dart` command. For example: + +```sh +../../bin/cache/dart-sdk/bin/dart bin/run.dart -t flutter_gallery__transition_perf +``` + +## Writing tests + +A test is a simple Dart program that lives under `bin/tasks` and uses +`package:flutter_devicelab/framework/framework.dart` to define and run a _task_. + +Example: + +```dart +import 'dart:async'; + +import 'package:flutter_devicelab/framework/framework.dart'; + +Future main() async { + await task(() async { + ... do something interesting ... + + // Aggregate results into a JSONable Map structure. + Map testResults = ...; + + // Report success. + return new TaskResult.success(testResults); + + // Or you can also report a failure. + return new TaskResult.failure('Something went wrong!'); + }); +} +``` + +Only one `task` is permitted per program. However, that task can run any number +of tests internally. A task has a name. It succeeds and fails independently of +other tasks, and is reported to the dashboard independently of other tasks. + +A task runs in its own standalone Dart VM and reports results via Dart VM +service protocol. This ensures that tasks do not interfere with each other and +lets the CI system time out and clean up tasks that get stuck. + +## Adding tests to continuous integration + +Host only tests should be added to `flutter_tools`. + +There are several PRs needed to add a DeviceLab task to CI. + +_TASK_- the name of your test that also matches the name of the + file in `bin/tasks` without the `.dart` extension. + +1. Add target to + [.ci.yaml](https://github.com/flutter/flutter/blob/master/.ci.yaml) + * Mirror an existing one that has the recipe `devicelab_drone` + +If your test needs to run on multiple operating systems, create a separate +target for each operating system. + +## Adding tests to presubmit + +Flutter's DeviceLab has a limited capacity in presubmit. File an infra ticket +to investigate feasibility of adding a test to presubmit. + +## Migrating to build and test model + +To better utilize limited DeviceLab testbed resources and speed up commit validation +time, it is now supported to separate building artifacts (.apk/.app) from testing them. +The artifact will be built on a host only bot, a VM or physical bot without a device, +and the test will run based on the artifact against a testbed with a device. + +Steps: + +1. Update the task class to extend [`BuildTestTask`](https://github.com/flutter/flutter/blob/master/dev/devicelab/lib/tasks/build_test_task.dart) + - Override function `getBuildArgs` + - Override function `getTestArgs` + - Override function `parseTaskResult` + - Override function `getApplicationBinaryPath` +2. Update the `bin/tasks/{TEST}.dart` to point to the new task class +3. Validate the task locally + - build only: `dart bin/test_runner.dart test -t {NAME_OR_PATH_OF_TEST} --task-args build --task-args application-binary-path={PATH_TO_ARTIFACT}` + - test only: `dart bin/test_runner.dart test -t {NAME_OR_PATH_OF_TEST} --task-args test --task-args application-binary-path={PATH_TO_ARTIFACT}` +4. Add tasks to continuous integration + - Mirror a target with platform `Linux_build_test` or `Mac_build_test` + - The only difference from regular targets is the artifact property: if omitted, it will use the `task_name`. +5. Once validated in CI, enable the target in `PROD` by removing `bringup: true` and deleting the old target entry without build+test model. + +Take gallery tasks for example: + +1. Linux android + - Separating PR: https://github.com/flutter/flutter/pull/103550 + - Switching PR: https://github.com/flutter/flutter/pull/110533 +2. Mac iOS: https://github.com/flutter/flutter/pull/111164 diff --git a/novelforge-project/agent-workspace/flutter/dev/devicelab/analysis_options.yaml b/novelforge-project/agent-workspace/flutter/dev/devicelab/analysis_options.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2e46286d62754e40556bd45c479b0af08e6a0b5c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/devicelab/analysis_options.yaml @@ -0,0 +1,5 @@ +include: ../analysis_options.yaml + +linter: + rules: + - unawaited_futures diff --git a/novelforge-project/agent-workspace/flutter/dev/devicelab/devicelab.iml b/novelforge-project/agent-workspace/flutter/dev/devicelab/devicelab.iml new file mode 100644 index 0000000000000000000000000000000000000000..b1df2810682090e7d4604cad4a47901a1a09cda6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/devicelab/devicelab.iml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/devicelab/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/devicelab/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..3054c33f889f2a0ec1af8cbb12a67c9a4b011964 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/devicelab/pubspec.lock @@ -0,0 +1,501 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _discoveryapis_commons: + dependency: "direct main" + description: + name: _discoveryapis_commons + sha256: f8bb1fdbd77f3d5c1d62b5b0eca75fbf1e41bf4f6c62628f880582e2182ae45d + url: "https://pub.dev" + source: hosted + version: "1.0.6" + _fe_analyzer_shared: + dependency: "direct dev" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct dev" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + archive: + dependency: "direct main" + description: + name: archive + sha256: "80e5141fafcb3361653ce308776cfd7d45e6e9fbb429e14eec571382c0c5fecb" + url: "https://pub.dev" + source: hosted + version: "3.3.2" + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + checked_yaml: + dependency: "direct main" + description: + name: checked_yaml + sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff + url: "https://pub.dev" + source: hosted + version: "2.0.3" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct main" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct dev" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + frontend_server_client: + dependency: "direct dev" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + gcloud: + dependency: "direct main" + description: + name: gcloud + sha256: "94cc7901dba3bcc9cd1c0530caf2d87e733392ce8f93734ccb23d82ef9f2a3e2" + url: "https://pub.dev" + source: hosted + version: "0.8.11" + glob: + dependency: "direct dev" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + googleapis: + dependency: "direct main" + description: + name: googleapis + sha256: d738182a9fb1143910abc2301c2041c7c4e294e4701db69a65a2ecf044ec57e1 + url: "https://pub.dev" + source: hosted + version: "3.0.0" + googleapis_auth: + dependency: "direct main" + description: + name: googleapis_auth + sha256: af7c3a3edf9d0de2e1e0a77e994fae0a581c525fa7012af4fa0d4a52ed9484da + url: "https://pub.dev" + source: hosted + version: "1.4.1" + http: + dependency: "direct main" + description: + name: http + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + url: "https://pub.dev" + source: hosted + version: "0.13.6" + http_multi_server: + dependency: "direct dev" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct main" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + io: + dependency: "direct dev" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct main" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + json_annotation: + dependency: "direct main" + description: + name: json_annotation + sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 + url: "https://pub.dev" + source: hosted + version: "4.8.1" + logging: + dependency: "direct main" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + metrics_center: + dependency: "direct main" + description: + name: metrics_center + sha256: b72e1ce6f5bc7f9cedde6d8ddca842220977254dcc767eebf07a27ffad70883f + url: "https://pub.dev" + source: hosted + version: "1.0.12" + mime: + dependency: "direct main" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct dev" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct dev" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + petitparser: + dependency: "direct main" + description: + name: petitparser + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 + url: "https://pub.dev" + source: hosted + version: "6.0.2" + platform: + dependency: "direct main" + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + pool: + dependency: "direct dev" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: "direct main" + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + pub_semver: + dependency: "direct main" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + pubspec_parse: + dependency: "direct main" + description: + name: pubspec_parse + sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 + url: "https://pub.dev" + source: hosted + version: "1.2.3" + retry: + dependency: "direct main" + description: + name: retry + sha256: "822e118d5b3aafed083109c72d5f484c6dc66707885e07c0fbcb8b986bba7efc" + url: "https://pub.dev" + source: hosted + version: "3.1.2" + shelf: + dependency: "direct main" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct dev" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct main" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct dev" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + source_map_stack_trace: + dependency: "direct dev" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct dev" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct main" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + standard_message_codec: + dependency: "direct main" + description: + name: standard_message_codec + sha256: fc7dd712d191b7e33196a0ecf354c4573492bb95995e7166cb6f73b047f9cae0 + url: "https://pub.dev" + source: hosted + version: "0.0.1+4" + stream_channel: + dependency: "direct main" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct dev" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct dev" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct main" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vm_service: + dependency: "direct main" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct dev" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct main" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct dev" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webkit_inspection_protocol: + dependency: "direct main" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + xml: + dependency: "direct main" + description: + name: xml + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 + url: "https://pub.dev" + source: hosted + version: "6.5.0" + yaml: + dependency: "direct main" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/devicelab/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/devicelab/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f7f12535b6cf54e251186a2516144019a81f1c07 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/devicelab/pubspec.yaml @@ -0,0 +1,76 @@ +name: flutter_devicelab +description: Flutter continuous integration performance and correctness tests. +homepage: https://github.com/flutter/flutter + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + archive: 3.3.2 + args: 2.4.2 + file: 7.0.0 + http: 0.13.6 + logging: 1.2.0 + meta: 1.11.0 + metrics_center: 1.0.12 + path: 1.9.0 + platform: 3.1.4 + process: 5.0.2 + pubspec_parse: 1.2.3 + shelf: 1.4.1 + shelf_static: 1.1.2 + stack_trace: 1.11.1 + vm_service: 13.0.0 + web: 0.4.0 + webkit_inspection_protocol: 1.2.1 + xml: 6.5.0 + standard_message_codec: 0.0.1+4 + + _discoveryapis_commons: 1.0.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + checked_yaml: 2.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + gcloud: 0.8.11 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + googleapis: 3.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + googleapis_auth: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + json_annotation: 4.8.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + petitparser: 6.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + retry: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + test: 1.24.9 + + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: ba43 diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/README.md b/novelforge-project/agent-workspace/flutter/dev/docs/README.md new file mode 100644 index 0000000000000000000000000000000000000000..097097fd1aea53e2cdae7004035aef11ab76a13b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/README.md @@ -0,0 +1,96 @@ +# Welcome to the Flutter API reference documentation! + +Flutter is Google's SDK for crafting beautiful, fast user experiences for +mobile, web, and desktop from a single codebase. Flutter works with existing +code, is used by developers and organizations around the world, and is free +and open source. + +This API reference covers all libraries that are exported by the Flutter +SDK. + +## More Documentation + +This site hosts Flutter's API documentation. Other documentation can be found at +the following locations: + +* [flutter.dev](https://flutter.dev) (main Flutter site) +* [Stable channel API Docs](https://api.flutter.dev) +* [Main channel API Docs](https://main-api.flutter.dev) +* Engine Embedder API documentation: + * [Android Embedder](../javadoc/index.html) + * [iOS Embedder](../ios-embedder/index.html) + * [macOS Embedder](../macos-embedder/index.html) + * [Linux Embedder](../linux-embedder/index.html) + * [Windows Embedder](../windows-embedder/index.html) + * [Web Embedder](dart-ui_web/dart-ui_web-library.html) +* [Installation](https://flutter.dev/docs/get-started/install) +* [Codelabs](https://flutter.dev/docs/codelabs) +* [Contributing to Flutter](https://github.com/flutter/flutter/blob/master/CONTRIBUTING.md) + +## Offline Documentation + +In addition to the online sites above, Flutter's documentation can be downloaded +as an HTML documentation ZIP file for use when offline or when you have a poor +internet connection. + +**Warning: the offline documentation files are quite large, approximately 700 MB +to 900 MB.** + +Offline HTML documentation ZIP bundles: + + * [Stable channel](https://api.flutter.dev/offline/flutter.docs.zip) + * [Main channel](https://main-api.flutter.dev/offline/flutter.docs.zip) + +Or, you can add Flutter to the open-source [Zeal](https://zealdocs.org/) app +using the following XML configurations. Follow the instructions in the +application for adding a feed. + + * Stable channel Zeal XML configuration URL: + + * Main channel Zeal XML configuration URL: + + +## Importing a Library + +### Framework Libraries + +Libraries in the "Libraries" section below (or in the left navigation) are part +of the core Flutter framework and are imported using +`'package:flutter/.dart'`, like so: + +```dart +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +``` + +### Dart Libraries + +Libraries in the "Dart" section exist in the `dart:` namespace and are imported +using `'dart:'`, like so: + +```dart +import 'dart:async'; +import 'dart:ui'; +``` + +Except for `'dart:core'`, you must import a Dart library before you can use it. + +### Supporting Libraries + +Libraries in other sections are supporting libraries that ship with Flutter. +They are organized by package and are imported using +`'package:/.dart'`, like so: + +```dart +import 'package:flutter_test/flutter_test.dart'; +import 'package:file/local.dart'; +``` + +## Packages on pub.dev + +Flutter has a rich ecosystem of packages that have been contributed by the +Flutter team and the broader open source community to a central repository. +Among the thousands of packages, you'll find support for Firebase, Google +Fonts, hardware services like Bluetooth and camera, new widgets and +animations, and integration with other popular web services. You can browse +those packages at [pub.dev](https://pub.dev). diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/analysis_options.yaml b/novelforge-project/agent-workspace/flutter/dev/docs/analysis_options.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8e12348b5c92a09e00c632a692a3e7681b065689 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/analysis_options.yaml @@ -0,0 +1,3 @@ +analyzer: + exclude: + - 'lib/**' diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/analytics-footer.html b/novelforge-project/agent-workspace/flutter/dev/docs/analytics-footer.html new file mode 100644 index 0000000000000000000000000000000000000000..133ecf3bd3e732d430c72e06a6257b4d90fcb215 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/analytics-footer.html @@ -0,0 +1,4 @@ + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/analytics-header.html b/novelforge-project/agent-workspace/flutter/dev/docs/analytics-header.html new file mode 100644 index 0000000000000000000000000000000000000000..bed08523614067d3eeadcacf48ba1e60ecfd6901 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/analytics-header.html @@ -0,0 +1,7 @@ + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/dartdoc_options.yaml b/novelforge-project/agent-workspace/flutter/dev/docs/dartdoc_options.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6980c6a5639a83673747dfbe34731cd769a079c0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/dartdoc_options.yaml @@ -0,0 +1,5 @@ +dartdoc: + ignore: + # The stub `Flutter` package is expected to have no + # documentable libraries. + - no-documentable-libraries diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/dashing.json b/novelforge-project/agent-workspace/flutter/dev/docs/dashing.json new file mode 100644 index 0000000000000000000000000000000000000000..604c83e827abda7e65afa13f149b25ee503b79d4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/dashing.json @@ -0,0 +1,71 @@ +{ + "name": "flutter", + "package": "flutter", + "author": { + "name": "The Flutter Team", + "link": "https://flutter.dev" + }, + "index": "index.html", + "icon32x32": "flutter/static-assets/favicon.png", + "allowJS": true, + "ExternalURL": "https://api.flutter.dev", + "selectors": { + "#exceptions span.name a": { + "type": "Exception" + }, + + "h1 > span.kind-library": { + "type": "Library" + }, + + "h1 > span.kind-class": { + "type": "Class" + }, + + "h1 > span.kind-function": { + "type": "Function" + }, + + "h1 > span.kind-typedef": { + "type": "Type" + }, + + "h1 > span.kind-enum": { + "type": "Enum" + }, + + "h1 > span.kind-top-level-constant": { + "type": "Constant" + }, + + "h1 > span.kind-constant": { + "type": "Constant" + }, + + "h1 > span.kind-method": { + "type": "Method" + }, + + "h1 > span.kind-property": { + "type": "Property" + }, + + "h1 > span.kind-top-level-property": { + "type": "Property" + }, + + "h1 > span.kind-constructor": { + "type": "Constructor" + }, + + ".callables .callable": { + "requiretext": "operator ", + "type": "Operator", + "regexp": "operator ", + "replacement": "" + } + }, + "ignore": [ + "ABOUT" + ] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/favicon.ico b/novelforge-project/agent-workspace/flutter/dev/docs/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..2e4cc829b07d6ce44fb5c1a9ade8070767724e8c Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/dev/docs/favicon.ico differ diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/firebase.json b/novelforge-project/agent-workspace/flutter/dev/docs/firebase.json new file mode 100644 index 0000000000000000000000000000000000000000..0a76cd23ef3435d25cb1aa7383a77277e817ecd7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/firebase.json @@ -0,0 +1,22 @@ +{ + "rules": "firebase_rules.json", + "hosting": { + "public": "doc", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "headers": [ + { + "source": "snippets/**.dart", + "headers": [ + { + "key": "Access-Control-Allow-Origin", + "value": "*" + } + ] + } + ] + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/firebase_rules.json b/novelforge-project/agent-workspace/flutter/dev/docs/firebase_rules.json new file mode 100644 index 0000000000000000000000000000000000000000..f1366029478664325cc483a0cc01e6df3322dd49 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/firebase_rules.json @@ -0,0 +1,6 @@ +{ + "rules": { + ".read": false, + ".write": false + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/opensearch.html b/novelforge-project/agent-workspace/flutter/dev/docs/opensearch.html new file mode 100644 index 0000000000000000000000000000000000000000..07484691ff91d6d01d46934b0fe7c8f25a499274 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/opensearch.html @@ -0,0 +1 @@ + diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/snippets.html b/novelforge-project/agent-workspace/flutter/dev/docs/snippets.html new file mode 100644 index 0000000000000000000000000000000000000000..dc04c6ee11846c1ff72fc3ebd83ef9c98d83fbcf --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/snippets.html @@ -0,0 +1,3 @@ + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/styles.html b/novelforge-project/agent-workspace/flutter/dev/docs/styles.html new file mode 100644 index 0000000000000000000000000000000000000000..dd2404c5a47e907def0a343cbf3ec73f22605352 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/styles.html @@ -0,0 +1,17 @@ + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/docs/survey.html b/novelforge-project/agent-workspace/flutter/dev/docs/survey.html new file mode 100644 index 0000000000000000000000000000000000000000..6684c7eaa12db8ba37956ae677d3ccc44d33a8c9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/docs/survey.html @@ -0,0 +1 @@ + diff --git a/novelforge-project/agent-workspace/flutter/dev/forbidden_from_release_tests/README.md b/novelforge-project/agent-workspace/flutter/dev/forbidden_from_release_tests/README.md new file mode 100644 index 0000000000000000000000000000000000000000..0c6e553aa1a66734a70e0a57fb6dd0461ba6a046 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/forbidden_from_release_tests/README.md @@ -0,0 +1,11 @@ +# Forbidden from release tests + +This program compiles the Dart portions of a Flutter application to the +AOT format used for release builds, and verifies that debugging related types +are not retained. By default, it uses the `//examples/hello_world` application +in this repository. + +This harness is invoked from `dev/bots/test.dart`. By default it uses the +`examples/hello_world.dart` as if it were being compiled for Android arm64 +release. New forbidden types may be added by adding more `--forbidden-type` +options in the `runForbiddenFromReleaseTests` method in `dev/bots/test.dart` diff --git a/novelforge-project/agent-workspace/flutter/dev/forbidden_from_release_tests/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/forbidden_from_release_tests/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..317791ca312a1573dbd28d3f4b6275e87212d56a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/forbidden_from_release_tests/pubspec.lock @@ -0,0 +1,77 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + package_config: + dependency: "direct main" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: "direct main" + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + process: + dependency: "direct main" + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + vm_snapshot_analysis: + dependency: "direct main" + description: + name: vm_snapshot_analysis + sha256: "5a79b9fbb6be2555090f55b03b23907e75d44c3fd7bdd88da09848aa5a1914c8" + url: "https://pub.dev" + source: hosted + version: "0.7.6" +sdks: + dart: ">=3.2.0-0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/forbidden_from_release_tests/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/forbidden_from_release_tests/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a3316fe369eb2acfaf3922b9913ea5ded4c6ce76 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/forbidden_from_release_tests/pubspec.yaml @@ -0,0 +1,19 @@ +name: forbidden_from_release_tests +publish_to: 'none' + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + args: 2.4.2 + file: 7.0.0 + package_config: 2.1.0 + path: 1.9.0 + process: 5.0.2 + vm_snapshot_analysis: 0.7.6 + + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + platform: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: 018d diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4be32c8212ebe4de57659b82a85538bdb81a7306 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/README.md @@ -0,0 +1,20 @@ +# Automated Flutter integration test suites + +Each suite consists of either a complete Flutter app and a `flutter_driver` +specification that drives tests from the UI, or a native app that is meant to +integrate with Flutter for testing. + +Intended for use with devicelab tests. + +If you want to run a driver test locally, to debug a problem with a test, you +can use this command from the appropriate subdirectory: + +```shell +flutter drive -t --driver +``` + +For example: + +```sh +flutter drive -t lib/keyboard_resize.dart --driver test_driver/keyboard_resize_test.dart +``` diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/link_hook/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/link_hook/README.md new file mode 100644 index 0000000000000000000000000000000000000000..121b301b49e6e66a8894f9d96a8a6d4b0022407e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/link_hook/README.md @@ -0,0 +1,3 @@ +# link_hook + +Test project for the native assets test to exercise adding assets during a link hook. diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/link_hook/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/link_hook/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a9a3906f53a99d5c415dad19488edc591d5c4ed7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/link_hook/pubspec.yaml @@ -0,0 +1,70 @@ +name: link_hook +description: "A new Dart FFI package project." +version: 0.0.1 + +environment: + sdk: '>=3.5.0-154.0.dev <4.0.0' + +dependencies: + cli_config: 0.2.0 + logging: 1.2.0 + native_assets_cli: 0.6.0 + native_toolchain_c: 0.4.2 + + args: 2.5.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.15.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + ffi: 2.1.2 + ffigen: 12.0.0 + flutter_lints: 4.0.0 + test: 1.25.7 + + _fe_analyzer_shared: 72.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + cli_util: 0.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + lints: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + quiver: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 14.2.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml_edit: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: 0444 diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/README.md new file mode 100644 index 0000000000000000000000000000000000000000..85b88745cdc0b9d13c424eb05fbffc04a7150f20 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/README.md @@ -0,0 +1,8 @@ +# Android host app + +Android host app for a Flutter module created using +``` +$ flutter create -t module hello +``` +and placed in a sibling folder to (a clone of) the host app. +Used by the `module_host_with_custom_build_test.dart` device lab test. diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle b/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..90455ea0ad5c9674dd6eb69a3ef1c266c49aaec9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/build.gradle @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +buildscript { + repositories { + google() + mavenCentral() + } + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle.properties b/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..598d13fee446372f156ecc38527b54c7cdcc8e3b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/settings.gradle b/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..6c933debbaf4cc4e626336f1513fd9188a306175 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/module_host_with_custom_build_v2_embedding/settings.gradle @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +include ':app' +setBinding(new Binding([gradle: this])) +evaluate(new File(settingsDir.parentFile, 'hello/.android/include_flutter.groovy')) diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/new_gallery/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/new_gallery/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f093ebbc120e17d95d24fe4769e7d4f9f7ecf382 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/new_gallery/README.md @@ -0,0 +1,29 @@ +# Flutter Gallery + +**NOTE**: The Flutter Gallery is now deprecated, and no longer being active maintained. + +Flutter Gallery was a resource to help developers evaluate and use Flutter. +It is now being used primarily for testing. For posterity, the web version +remains [hosted here](https://flutter-gallery-archive.web.app). + +We recommend Flutter developers check out the following resources: + +* **Wonderous** +([web demo](https://wonderous.app/web/), +[App Store](https://apps.apple.com/us/app/wonderous/id1612491897), +[Google Play](https://play.google.com/store/apps/details?id=com.gskinner.flutter.wonders), +[source code](https://github.com/gskinnerTeam/flutter-wonderous-app)):
+A Flutter app that showcases Flutter's support for elegant design and rich animations. + +* **Material 3 Demo** +([web demo](https://flutter.github.io/samples/web/material_3_demo/), +[source code](https://github.com/flutter/samples/tree/main/material_3_demo)):
+A Flutter app that showcases Material 3 features in the Flutter Material library. + +* **Flutter Samples** +([samples](https://flutter.github.io/samples), [source code](https://github.com/flutter/samples)):
+A collection of open source samples that illustrate best practices for Flutter. + +* **Widget catalogs** +([Material](https://docs.flutter.dev/ui/widgets/material), [Cupertino](https://docs.flutter.dev/ui/widgets/cupertino)):
+Catalogs for Material, Cupertino, and other widgets available for use in UI. diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/new_gallery/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/new_gallery/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..c51d11c22563e3e4519eab6f6317724e16fc1b4d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/new_gallery/pubspec.lock @@ -0,0 +1,774 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct dev" + description: + name: _fe_analyzer_shared + sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 + url: "https://pub.dev" + source: hosted + version: "72.0.0" + _macros: + dependency: transitive + description: dart + source: sdk + version: "0.3.2" + adaptive_breakpoints: + dependency: "direct main" + description: + name: adaptive_breakpoints + sha256: "56dd5f1016f4d5732b80628d1b63a29d8c9cabe4d66a8a5fe63fdbec7b3af5cd" + url: "https://pub.dev" + source: hosted + version: "0.1.7" + analyzer: + dependency: "direct dev" + description: + name: analyzer + sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 + url: "https://pub.dev" + source: hosted + version: "6.7.0" + animations: + dependency: "direct main" + description: + name: animations + sha256: d3d6dcfb218225bbe68e87ccf6378bbb2e32a94900722c5f81611dad089911cb + url: "https://pub.dev" + source: hosted + version: "2.0.11" + args: + dependency: "direct dev" + description: + name: args + sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" + url: "https://pub.dev" + source: hosted + version: "2.5.0" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct main" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct dev" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct dev" + description: + name: coverage + sha256: "3945034e86ea203af7a056d98e98e42a5518fff200d6e8e6647e1886b07e936e" + url: "https://pub.dev" + source: hosted + version: "1.8.0" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 + url: "https://pub.dev" + source: hosted + version: "1.0.8" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + ffi: + dependency: "direct main" + description: + name: ffi + sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + file: + dependency: "direct dev" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_driver: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_gallery_assets: + dependency: "direct main" + description: + name: flutter_gallery_assets + sha256: f8fecfeebcfbe80a2fabc00c0834046890abe681f59d3e2c5b1028faf887d94b + url: "https://pub.dev" + source: hosted + version: "1.0.2" + flutter_localizations: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_localized_locales: + dependency: "direct main" + description: + name: flutter_localized_locales + sha256: "478d10535edf07292e34cb4c757882edeeaf96d5e3dbb04b42733038bd41dd3f" + url: "https://pub.dev" + source: hosted + version: "2.0.5" + flutter_staggered_grid_view: + dependency: "direct main" + description: + name: flutter_staggered_grid_view + sha256: "19e7abb550c96fbfeb546b23f3ff356ee7c59a019a651f8f102a4ba9b7349395" + url: "https://pub.dev" + source: hosted + version: "0.7.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + frontend_server_client: + dependency: "direct dev" + description: + name: frontend_server_client + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 + url: "https://pub.dev" + source: hosted + version: "4.0.0" + fuchsia_remote_debug_protocol: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + glob: + dependency: "direct dev" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + google_fonts: + dependency: "direct main" + description: + name: google_fonts + sha256: "6b6f10f0ce3c42f6552d1c70d2c28d764cf22bb487f50f66cca31dcd5194f4d6" + url: "https://pub.dev" + source: hosted + version: "4.0.4" + http: + dependency: "direct main" + description: + name: http + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + url: "https://pub.dev" + source: hosted + version: "0.13.6" + http_multi_server: + dependency: "direct dev" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct main" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + intl: + dependency: "direct main" + description: + name: intl + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf + url: "https://pub.dev" + source: hosted + version: "0.19.0" + io: + dependency: "direct dev" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct dev" + description: + name: js + sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf + url: "https://pub.dev" + source: hosted + version: "0.7.1" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "3f87a60e8c63aecc975dda1ceedbc8f24de75f09e4856ea27daf8958f2f0ce05" + url: "https://pub.dev" + source: hosted + version: "10.0.5" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: "932549fb305594d82d7183ecd9fa93463e9914e1b67cacc34bc40906594a1806" + url: "https://pub.dev" + source: hosted + version: "3.0.5" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" + logging: + dependency: "direct dev" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + macros: + dependency: transitive + description: + name: macros + sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" + url: "https://pub.dev" + source: hosted + version: "0.1.2-main.4" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec + url: "https://pub.dev" + source: hosted + version: "0.11.1" + meta: + dependency: "direct main" + description: + name: meta + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 + url: "https://pub.dev" + source: hosted + version: "1.15.0" + mime: + dependency: "direct dev" + description: + name: mime + sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" + url: "https://pub.dev" + source: hosted + version: "1.0.5" + nested: + dependency: "direct main" + description: + name: nested + sha256: "03bac4c528c64c95c722ec99280375a6f2fc708eec17c7b3f07253b626cd2a20" + url: "https://pub.dev" + source: hosted + version: "1.0.0" + node_preamble: + dependency: "direct dev" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct dev" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + path_provider: + dependency: "direct main" + description: + name: path_provider + sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 + url: "https://pub.dev" + source: hosted + version: "2.1.3" + path_provider_android: + dependency: "direct main" + description: + name: path_provider_android + sha256: e595b98692943b4881b219f0a9e3945118d3c16bd7e2813f98ec6e532d905f72 + url: "https://pub.dev" + source: hosted + version: "2.2.1" + path_provider_foundation: + dependency: "direct main" + description: + name: path_provider_foundation + sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 + url: "https://pub.dev" + source: hosted + version: "2.4.0" + path_provider_linux: + dependency: "direct main" + description: + name: path_provider_linux + sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279 + url: "https://pub.dev" + source: hosted + version: "2.2.1" + path_provider_platform_interface: + dependency: "direct main" + description: + name: path_provider_platform_interface + sha256: "88f5779f72ba699763fa3a3b06aa4bf6de76c8e5de842cf6f29e2e06476c2334" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + path_provider_windows: + dependency: "direct main" + description: + name: path_provider_windows + sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170" + url: "https://pub.dev" + source: hosted + version: "2.2.1" + platform: + dependency: "direct main" + description: + name: platform + sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65" + url: "https://pub.dev" + source: hosted + version: "3.1.5" + plugin_platform_interface: + dependency: "direct main" + description: + name: plugin_platform_interface + sha256: "4820fbfdb9478b1ebae27888254d445073732dae3d6ea81f0b7e06d5dedc3f02" + url: "https://pub.dev" + source: hosted + version: "2.1.8" + pool: + dependency: "direct dev" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: transitive + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + provider: + dependency: "direct main" + description: + name: provider + sha256: c8a055ee5ce3fd98d6fc872478b03823ffdb448699c6ebdbbc71d59b596fd48c + url: "https://pub.dev" + source: hosted + version: "6.1.2" + pub_semver: + dependency: "direct dev" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + rally_assets: + dependency: "direct main" + description: + name: rally_assets + sha256: cdd331819d51e58f9d8766c98af99bc0955d1c4b6b306eee4d332d30e9deaa81 + url: "https://pub.dev" + source: hosted + version: "3.0.1" + scoped_model: + dependency: "direct main" + description: + name: scoped_model + sha256: "8dacc77cb5de78d5e159d54cab883847491a73dfaa3d28c52f4ec8b0be32645b" + url: "https://pub.dev" + source: hosted + version: "2.0.0" + shelf: + dependency: "direct dev" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct dev" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct dev" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct dev" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + shrine_images: + dependency: "direct main" + description: + name: shrine_images + sha256: "7417da1e83c22f483e222a9d947ffea04b66078c70090072eb0821b89872c26a" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_map_stack_trace: + dependency: "direct dev" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct dev" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + sync_http: + dependency: "direct dev" + description: + name: sync_http + sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct dev" + description: + name: test + sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e" + url: "https://pub.dev" + source: hosted + version: "1.25.7" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" + url: "https://pub.dev" + source: hosted + version: "0.7.2" + test_core: + dependency: "direct dev" + description: + name: test_core + sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696" + url: "https://pub.dev" + source: hosted + version: "0.6.4" + typed_data: + dependency: "direct main" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + url_launcher: + dependency: "direct main" + description: + name: url_launcher + sha256: "21b704ce5fa560ea9f3b525b43601c678728ba46725bab9b01187b4831377ed3" + url: "https://pub.dev" + source: hosted + version: "6.3.0" + url_launcher_android: + dependency: "direct main" + description: + name: url_launcher_android + sha256: ceb2625f0c24ade6ef6778d1de0b2e44f2db71fded235eb52295247feba8c5cf + url: "https://pub.dev" + source: hosted + version: "6.3.3" + url_launcher_ios: + dependency: "direct main" + description: + name: url_launcher_ios + sha256: "7068716403343f6ba4969b4173cbf3b84fc768042124bc2c011e5d782b24fe89" + url: "https://pub.dev" + source: hosted + version: "6.3.0" + url_launcher_linux: + dependency: "direct main" + description: + name: url_launcher_linux + sha256: ab360eb661f8879369acac07b6bb3ff09d9471155357da8443fd5d3cf7363811 + url: "https://pub.dev" + source: hosted + version: "3.1.1" + url_launcher_macos: + dependency: "direct main" + description: + name: url_launcher_macos + sha256: "9a1a42d5d2d95400c795b2914c36fdcb525870c752569438e4ebb09a2b5d90de" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + url_launcher_platform_interface: + dependency: "direct main" + description: + name: url_launcher_platform_interface + sha256: "552f8a1e663569be95a8190206a38187b531910283c3e982193e4f2733f01029" + url: "https://pub.dev" + source: hosted + version: "2.3.2" + url_launcher_web: + dependency: "direct main" + description: + name: url_launcher_web + sha256: "8d9e750d8c9338601e709cd0885f95825086bd8b642547f26bda435aade95d8a" + url: "https://pub.dev" + source: hosted + version: "2.3.1" + url_launcher_windows: + dependency: "direct main" + description: + name: url_launcher_windows + sha256: ecf9725510600aa2bb6d7ddabe16357691b6d2805f66216a97d1b881e21beff7 + url: "https://pub.dev" + source: hosted + version: "3.1.1" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc + url: "https://pub.dev" + source: hosted + version: "14.2.4" + watcher: + dependency: "direct dev" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct main" + description: + name: web + sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + url: "https://pub.dev" + source: hosted + version: "0.5.1" + web_socket_channel: + dependency: "direct dev" + description: + name: web_socket_channel + sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" + url: "https://pub.dev" + source: hosted + version: "2.4.5" + webdriver: + dependency: "direct dev" + description: + name: webdriver + sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + webkit_inspection_protocol: + dependency: "direct dev" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + win32: + dependency: "direct main" + description: + name: win32 + sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4 + url: "https://pub.dev" + source: hosted + version: "5.5.1" + xdg_directories: + dependency: "direct main" + description: + name: xdg_directories + sha256: faea9dee56b520b55a566385b84f2e8de55e7496104adada9962e0bd11bcff1d + url: "https://pub.dev" + source: hosted + version: "1.0.4" + yaml: + dependency: "direct dev" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.4.0 <4.0.0" + flutter: ">=3.22.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/new_gallery/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/new_gallery/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a931c48101045365aa44f6fcdc57b12fea990089 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/new_gallery/pubspec.yaml @@ -0,0 +1,314 @@ +name: gallery +description: A resource to help developers evaluate and use Flutter. +repository: https://github.com/flutter/flutter/dev/integration_tests/new_gallery +version: 2.10.2+021002 # See README.md for details on versioning. + +environment: + flutter: ^3.13.0 + sdk: ^3.1.0 + +dependencies: + flutter: + sdk: flutter + flutter_localizations: + sdk: flutter + adaptive_breakpoints: 0.1.7 + animations: 2.0.11 + collection: 1.18.0 + cupertino_icons: 1.0.8 + flutter_gallery_assets: 1.0.2 + flutter_localized_locales: 2.0.5 + flutter_staggered_grid_view: 0.7.0 + google_fonts: 4.0.4 + intl: 0.19.0 + meta: 1.15.0 + provider: 6.1.2 + rally_assets: 3.0.1 + scoped_model: 2.0.0 + shrine_images: 2.0.2 + url_launcher: 6.3.0 + vector_math: 2.1.4 + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + ffi: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http: 0.13.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + nested: 1.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider: 2.1.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_android: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_foundation: 2.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_linux: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_platform_interface: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path_provider_windows: 2.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + platform: 3.1.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + plugin_platform_interface: 2.1.8 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_android: 6.3.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_ios: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_linux: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_macos: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_platform_interface: 2.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_web: 2.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + url_launcher_windows: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + win32: 5.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + xdg_directories: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + flutter_driver: + sdk: flutter + test: 1.25.7 + + _fe_analyzer_shared: 72.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.7.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.5.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 3.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 14.2.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + uses-material-design: true + assets: + - packages/flutter_gallery_assets/crane/destinations/eat_0.jpg + - packages/flutter_gallery_assets/crane/destinations/eat_1.jpg + - packages/flutter_gallery_assets/crane/destinations/eat_2.jpg + - packages/flutter_gallery_assets/crane/destinations/eat_3.jpg + - packages/flutter_gallery_assets/crane/destinations/eat_4.jpg + - packages/flutter_gallery_assets/crane/destinations/eat_5.jpg + - packages/flutter_gallery_assets/crane/destinations/eat_6.jpg + - packages/flutter_gallery_assets/crane/destinations/eat_7.jpg + - packages/flutter_gallery_assets/crane/destinations/eat_8.jpg + - packages/flutter_gallery_assets/crane/destinations/eat_9.jpg + - packages/flutter_gallery_assets/crane/destinations/eat_10.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_0.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_1.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_2.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_3.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_4.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_5.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_6.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_7.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_8.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_9.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_10.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_11.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_12.jpg + - packages/flutter_gallery_assets/crane/destinations/fly_13.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_0.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_1.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_2.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_3.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_4.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_5.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_6.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_7.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_8.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_9.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_10.jpg + - packages/flutter_gallery_assets/crane/destinations/sleep_11.jpg + - packages/flutter_gallery_assets/crane/logo/logo.png + - packages/flutter_gallery_assets/fonts/google_fonts/Raleway-Medium.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Raleway-SemiBold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Raleway-Regular.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Raleway-Light.ttf + - packages/flutter_gallery_assets/assets/studies/shrine_card_dark.png + - packages/flutter_gallery_assets/assets/studies/starter_card.png + - packages/flutter_gallery_assets/assets/studies/starter_card_dark.png + - packages/flutter_gallery_assets/assets/studies/fortnightly_card_dark.png + - packages/flutter_gallery_assets/assets/studies/rally_card_dark.png + - packages/flutter_gallery_assets/assets/studies/reply_card_dark.png + - packages/flutter_gallery_assets/assets/studies/fortnightly_card.png + - packages/flutter_gallery_assets/assets/studies/crane_card.png + - packages/flutter_gallery_assets/assets/studies/shrine_card.png + - packages/flutter_gallery_assets/assets/studies/crane_card_dark.png + - packages/flutter_gallery_assets/assets/studies/rally_card.png + - packages/flutter_gallery_assets/assets/studies/reply_card.png + - packages/flutter_gallery_assets/assets/logo/flutter_logo.png + - packages/flutter_gallery_assets/assets/logo/flutter_logo_color.png + - packages/flutter_gallery_assets/assets/icons/cupertino/cupertino.png + - packages/flutter_gallery_assets/assets/icons/material/material.png + - packages/flutter_gallery_assets/assets/icons/reference/reference.png + - packages/flutter_gallery_assets/assets/demos/bottom_navigation_background.png + - packages/flutter_gallery_assets/fonts/GalleryIcons.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Merriweather-Regular.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Eczar-Regular.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Montserrat-Medium.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Rubik-Bold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Merriweather-Light.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/RobotoCondensed-Bold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/LibreFranklin-Regular.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/RobotoMono-Regular.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/LibreFranklin-ExtraBold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/LibreFranklin-Bold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Oswald-SemiBold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Oswald-Medium.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/LibreFranklin-SemiBold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Montserrat-Bold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Merriweather-BoldItalic.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Rubik-Medium.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Montserrat-SemiBold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/RobotoCondensed-Regular.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/LibreFranklin-Medium.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Montserrat-Regular.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Rubik-Regular.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/Eczar-SemiBold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/WorkSans-Regular.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/WorkSans-Medium.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/WorkSans-Bold.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/WorkSans-Thin.ttf + - packages/flutter_gallery_assets/fonts/google_fonts/WorkSans-SemiBold.ttf + - packages/flutter_gallery_assets/fortnightly/fortnightly_army.png + - packages/flutter_gallery_assets/fortnightly/fortnightly_bees.jpg + - packages/flutter_gallery_assets/fortnightly/fortnightly_chart.png + - packages/flutter_gallery_assets/fortnightly/fortnightly_fabrics.png + - packages/flutter_gallery_assets/fortnightly/fortnightly_feminists.jpg + - packages/flutter_gallery_assets/fortnightly/fortnightly_gas.png + - packages/flutter_gallery_assets/fortnightly/fortnightly_healthcare.jpg + - packages/flutter_gallery_assets/fortnightly/fortnightly_stocks.png + - packages/flutter_gallery_assets/fortnightly/fortnightly_title.png + - packages/flutter_gallery_assets/fortnightly/fortnightly_war.png + - packages/flutter_gallery_assets/reply/attachments/paris_1.jpg + - packages/flutter_gallery_assets/reply/attachments/paris_2.jpg + - packages/flutter_gallery_assets/reply/attachments/paris_3.jpg + - packages/flutter_gallery_assets/reply/attachments/paris_4.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_0.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_1.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_2.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_3.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_4.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_5.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_6.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_7.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_8.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_9.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_10.jpg + - packages/flutter_gallery_assets/reply/avatars/avatar_express.png + - packages/flutter_gallery_assets/reply/icons/twotone_add_circle_outline.png + - packages/flutter_gallery_assets/reply/icons/twotone_delete.png + - packages/flutter_gallery_assets/reply/icons/twotone_drafts.png + - packages/flutter_gallery_assets/reply/icons/twotone_error.png + - packages/flutter_gallery_assets/reply/icons/twotone_folder.png + - packages/flutter_gallery_assets/reply/icons/twotone_forward.png + - packages/flutter_gallery_assets/reply/icons/twotone_inbox.png + - packages/flutter_gallery_assets/reply/icons/twotone_send.png + - packages/flutter_gallery_assets/reply/icons/twotone_star_on_background.png + - packages/flutter_gallery_assets/reply/icons/twotone_star.png + - packages/flutter_gallery_assets/reply/icons/twotone_stars.png + - packages/flutter_gallery_assets/reply/reply_logo.png + - packages/flutter_gallery_assets/places/india_chennai_flower_market.png + - packages/flutter_gallery_assets/places/india_thanjavur_market.png + - packages/flutter_gallery_assets/places/india_tanjore_bronze_works.png + - packages/flutter_gallery_assets/places/india_tanjore_market_merchant.png + - packages/flutter_gallery_assets/places/india_tanjore_thanjavur_temple.png + - packages/flutter_gallery_assets/places/india_pondicherry_salt_farm.png + - packages/flutter_gallery_assets/places/india_chennai_highway.png + - packages/flutter_gallery_assets/places/india_chettinad_silk_maker.png + - packages/flutter_gallery_assets/places/india_tanjore_thanjavur_temple_carvings.png + - packages/flutter_gallery_assets/places/india_chettinad_produce.png + - packages/flutter_gallery_assets/places/india_tanjore_market_technology.png + - packages/flutter_gallery_assets/places/india_pondicherry_beach.png + - packages/flutter_gallery_assets/places/india_pondicherry_fisherman.png + - packages/flutter_gallery_assets/placeholders/avatar_logo.png + - packages/flutter_gallery_assets/placeholders/placeholder_image.png + - packages/flutter_gallery_assets/splash_effects/splash_effect_1.gif + - packages/flutter_gallery_assets/splash_effects/splash_effect_2.gif + - packages/flutter_gallery_assets/splash_effects/splash_effect_3.gif + - packages/flutter_gallery_assets/splash_effects/splash_effect_4.gif + - packages/flutter_gallery_assets/splash_effects/splash_effect_5.gif + - packages/flutter_gallery_assets/splash_effects/splash_effect_6.gif + - packages/flutter_gallery_assets/splash_effects/splash_effect_7.gif + - packages/flutter_gallery_assets/splash_effects/splash_effect_8.gif + - packages/flutter_gallery_assets/splash_effects/splash_effect_9.gif + - packages/flutter_gallery_assets/splash_effects/splash_effect_10.gif + - packages/rally_assets/logo.png + - packages/rally_assets/thumb.png + - packages/shrine_images/diamond.png + - packages/shrine_images/slanted_menu.png + - packages/shrine_images/0-0.jpg + - packages/shrine_images/1-0.jpg + - packages/shrine_images/2-0.jpg + - packages/shrine_images/3-0.jpg + - packages/shrine_images/4-0.jpg + - packages/shrine_images/5-0.jpg + - packages/shrine_images/6-0.jpg + - packages/shrine_images/7-0.jpg + - packages/shrine_images/8-0.jpg + - packages/shrine_images/9-0.jpg + - packages/shrine_images/10-0.jpg + - packages/shrine_images/11-0.jpg + - packages/shrine_images/12-0.jpg + - packages/shrine_images/13-0.jpg + - packages/shrine_images/14-0.jpg + - packages/shrine_images/15-0.jpg + - packages/shrine_images/16-0.jpg + - packages/shrine_images/17-0.jpg + - packages/shrine_images/18-0.jpg + - packages/shrine_images/19-0.jpg + - packages/shrine_images/20-0.jpg + - packages/shrine_images/21-0.jpg + - packages/shrine_images/22-0.jpg + - packages/shrine_images/23-0.jpg + - packages/shrine_images/24-0.jpg + - packages/shrine_images/25-0.jpg + - packages/shrine_images/26-0.jpg + - packages/shrine_images/27-0.jpg + - packages/shrine_images/28-0.jpg + - packages/shrine_images/29-0.jpg + - packages/shrine_images/30-0.jpg + - packages/shrine_images/31-0.jpg + - packages/shrine_images/32-0.jpg + - packages/shrine_images/33-0.jpg + - packages/shrine_images/34-0.jpg + - packages/shrine_images/35-0.jpg + - packages/shrine_images/36-0.jpg + - packages/shrine_images/37-0.jpg + fonts: + - family: GalleryIcons + fonts: + - asset: packages/flutter_gallery_assets/fonts/GalleryIcons.ttf + +# PUBSPEC CHECKSUM: 579a diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/non_nullable/null_safety b/novelforge-project/agent-workspace/flutter/dev/integration_tests/non_nullable/null_safety new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/non_nullable/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/non_nullable/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..00c431571a5c28834859140dafc317710af81d84 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/non_nullable/pubspec.lock @@ -0,0 +1,196 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: "direct dev" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct dev" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d + url: "https://pub.dev" + source: hosted + version: "1.0.6" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + path: + dependency: "direct dev" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: "direct dev" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct dev" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct dev" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" +sdks: + dart: ">=3.2.0-0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/non_nullable/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/non_nullable/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b4226689aa14215bc30d0d06ff2564d7715e6a50 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/non_nullable/pubspec.yaml @@ -0,0 +1,45 @@ +name: non_nullable +description: A new Flutter project. + +publish_to: 'none' # Remove this line if you wish to publish to pub.dev +version: 1.0.0+1 + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + cupertino_icons: 1.0.6 + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + uses-material-design: true + +# PUBSPEC CHECKSUM: 58cb diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/platform_interaction/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/platform_interaction/README.md new file mode 100644 index 0000000000000000000000000000000000000000..05442329c447442e2913f74a37acba8b36332374 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/platform_interaction/README.md @@ -0,0 +1,3 @@ +# platform_interaction + +Integration test of platform interaction. diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/platform_interaction/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/platform_interaction/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..5d592a991f4d33dc27eb0fddd714ac25c2f0c588 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/platform_interaction/pubspec.lock @@ -0,0 +1,494 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct main" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct main" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct main" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: transitive + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct main" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct main" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_driver: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + frontend_server_client: + dependency: "direct main" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + fuchsia_remote_debug_protocol: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + glob: + dependency: "direct main" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + http_multi_server: + dependency: "direct main" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct main" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + io: + dependency: "direct main" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct main" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + logging: + dependency: "direct main" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct main" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mime: + dependency: "direct main" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct main" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct main" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: transitive + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + pool: + dependency: "direct main" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: transitive + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + pub_semver: + dependency: "direct main" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + shelf: + dependency: "direct main" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct main" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct main" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct main" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_map_stack_trace: + dependency: "direct main" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct main" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct main" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct main" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + sync_http: + dependency: "direct main" + description: + name: sync_http + sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct main" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct main" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct main" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct main" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct main" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct main" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct main" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct main" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webdriver: + dependency: "direct main" + description: + name: webdriver + sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + webkit_inspection_protocol: + dependency: "direct main" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + yaml: + dependency: "direct main" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/platform_interaction/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/platform_interaction/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3ac42cfa92417783946485658591ef2199d2f298 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/platform_interaction/pubspec.yaml @@ -0,0 +1,68 @@ +name: platform_interaction +description: Integration test for platform interactions. + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + flutter_driver: + sdk: flutter + test: 1.24.9 + + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + uses-material-design: true + +# PUBSPEC CHECKSUM: 7e66 diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/release_smoke_test/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/release_smoke_test/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e084c613b0d69c87711a04321181d5e41cc449b4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/release_smoke_test/README.md @@ -0,0 +1,4 @@ +# release_smoke_test + +A simple Flutter project used in CI to test that a release app can build and +run on a physical device. diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/release_smoke_test/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/release_smoke_test/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..c8113101279cbfc6a173e71fab732df74037ddf4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/release_smoke_test/pubspec.lock @@ -0,0 +1,243 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: "direct dev" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct dev" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + file: + dependency: transitive + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_driver: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + fuchsia_remote_debug_protocol: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + integration_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + path: + dependency: "direct dev" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: transitive + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + process: + dependency: transitive + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: "direct dev" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct dev" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + sync_http: + dependency: transitive + description: + name: sync_http + sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + term_glyph: + dependency: "direct dev" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + webdriver: + dependency: transitive + description: + name: webdriver + sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" + url: "https://pub.dev" + source: hosted + version: "3.0.3" +sdks: + dart: ">=3.2.0-0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/release_smoke_test/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/release_smoke_test/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..01d642bc035d6c33675fdf537776d04fb292bd2b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/release_smoke_test/pubspec.yaml @@ -0,0 +1,39 @@ +name: release_smoke_test + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + integration_test: + sdk: flutter + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: 8023 diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/spell_check/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/spell_check/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4fd36f0f35375a0d536e7823b753779a9f3a3f73 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/spell_check/README.md @@ -0,0 +1,3 @@ +# spell_check + +A Flutter project for testing spell check for [EditableText]. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/spell_check/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/spell_check/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..11ce3aee0933b54ab50b567809a1bb8e8e9bebe5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/spell_check/pubspec.lock @@ -0,0 +1,251 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: "direct dev" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct dev" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d + url: "https://pub.dev" + source: hosted + version: "1.0.6" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + file: + dependency: transitive + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_driver: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + fuchsia_remote_debug_protocol: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + integration_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + path: + dependency: "direct dev" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: transitive + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + process: + dependency: transitive + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: "direct dev" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct dev" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + sync_http: + dependency: transitive + description: + name: sync_http + sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + term_glyph: + dependency: "direct dev" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + webdriver: + dependency: transitive + description: + name: webdriver + sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" + url: "https://pub.dev" + source: hosted + version: "3.0.3" +sdks: + dart: ">=3.2.0-0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/spell_check/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/spell_check/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c42d3cb60ebf65c14c20ee9ba634204b747c59de --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/spell_check/pubspec.yaml @@ -0,0 +1,111 @@ +name: spell_check +description: Integration test for spell check. + +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +version: 1.0.0+1 + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: 1.0.6 + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + + # Used to run the integration tests in this app: + integration_test: + sdk: flutter + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages + +# PUBSPEC CHECKSUM: 58cb diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/ui/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/ui/README.md new file mode 100644 index 0000000000000000000000000000000000000000..364f593002cf23e1fe19b072128492d9ea2638a3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/ui/README.md @@ -0,0 +1,14 @@ +# Flutter UI integration tests + +This project contains a collection of non-plugin-dependent UI +integration tests. The device code is in the `lib/` directory, the +driver code is in the `test_driver/` directory. They work together. +Normally they are run via the devicelab. + +## keyboard\_resize + +Verifies that showing and hiding the keyboard resizes the content. + +## routing + +Verifies that `flutter drive --route` works correctly. diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/ui/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/ui/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..1b7ad0fa84368afba41b6de2a9eb2d83fa0cadfe --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/ui/pubspec.lock @@ -0,0 +1,499 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct main" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct main" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct main" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct dev" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct main" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct main" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_driver: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + frontend_server_client: + dependency: "direct main" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + fuchsia_remote_debug_protocol: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + glob: + dependency: "direct main" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + http_multi_server: + dependency: "direct main" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct main" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + integration_test: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + io: + dependency: "direct main" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct main" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + logging: + dependency: "direct main" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct main" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mime: + dependency: "direct main" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct main" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct main" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: transitive + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + pool: + dependency: "direct main" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: transitive + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + pub_semver: + dependency: "direct main" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + shelf: + dependency: "direct main" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct main" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct main" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct main" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_map_stack_trace: + dependency: "direct main" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct main" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct main" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct main" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + sync_http: + dependency: "direct main" + description: + name: sync_http + sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct main" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct main" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct main" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct main" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct main" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct main" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct main" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webdriver: + dependency: "direct main" + description: + name: webdriver + sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + webkit_inspection_protocol: + dependency: "direct main" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + yaml: + dependency: "direct main" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/ui/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/ui/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4df996a2c730513b7827a007c70d8fa2abeb95f6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/ui/pubspec.yaml @@ -0,0 +1,82 @@ +name: integration_ui +description: Flutter non-plugin UI integration tests. + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + flutter_driver: + sdk: flutter + integration_test: + sdk: flutter + test: 1.24.9 + + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + test_api: 0.6.1 + + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + uses-material-design: true + assets: + - assets/foo.png + +# PUBSPEC CHECKSUM: 6020 diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/a.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/a.dart new file mode 100644 index 0000000000000000000000000000000000000000..4b209ef7570cd4f97ffab99a4d01cbc54decee75 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/a.dart @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String message = 'a'; diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/b.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/b.dart new file mode 100644 index 0000000000000000000000000000000000000000..edb667ea30ca5f84cb38522c2600152af75719f0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/b.dart @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String message = 'b'; diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/c.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/c.dart new file mode 100644 index 0000000000000000000000000000000000000000..000e7323c3a78493378c208cc91ea31f50278972 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/c.dart @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String message = 'c'; diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/d.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/d.dart new file mode 100644 index 0000000000000000000000000000000000000000..c4a3de83c35bd5d0911c6cb7b3abbf90023fe290 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/d.dart @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +const String message = 'd'; diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/main.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..425a9359ba285e00d07cf7f9491eff09a66c4a1c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/lib/main.dart @@ -0,0 +1,11 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +void main() { + runApp(const Center( + child: Text('Hello, World', textDirection: TextDirection.ltr), + )); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..36bc7e99c2379e280e9449f9a2375c5cc29f144d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/pubspec.lock @@ -0,0 +1,55 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" +sdks: + dart: ">=3.2.0-0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..d951648bdfdcb34610be60d6a0ceb11467e0c1e1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web/pubspec.yaml @@ -0,0 +1,23 @@ +name: web_integration +description: Integration test for web compilation. + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +flutter: + assets: + - lib/a.dart + - lib/b.dart + uses-material-design: true + +dependencies: + flutter: + sdk: flutter + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: 4694 diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/lib/background_isolate_binary_messenger.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/lib/background_isolate_binary_messenger.dart new file mode 100644 index 0000000000000000000000000000000000000000..98d823c694828801f4c7e2f5ca689bda3f3d43fb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/lib/background_isolate_binary_messenger.dart @@ -0,0 +1,12 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:ui' as ui; +import 'package:flutter/services.dart'; + +void main() { + BackgroundIsolateBinaryMessenger.ensureInitialized( + ui.RootIsolateToken.instance! + ); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/lib/dart_io_import.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/lib/dart_io_import.dart new file mode 100644 index 0000000000000000000000000000000000000000..a38e6a265d0938696617aa5ff2a168b5eb951541 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/lib/dart_io_import.dart @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; // ignore: unused_import + +void main() { } diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..36bc7e99c2379e280e9449f9a2375c5cc29f144d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/pubspec.lock @@ -0,0 +1,55 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" +sdks: + dart: ">=3.2.0-0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..89c3420242d6e3db6e31db9a7fbe359d600fb841 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/pubspec.yaml @@ -0,0 +1,15 @@ +name: web_compile_tests +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: 4694 diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/web/flutter_bootstrap.js b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/web/flutter_bootstrap.js new file mode 100644 index 0000000000000000000000000000000000000000..be78d93ce8c6a5019c16a6c2b13d466745f7dc1a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/web/flutter_bootstrap.js @@ -0,0 +1,12 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +{{flutter_js}} +{{flutter_build_config}} +_flutter.loader.load({ + config: { + // Use the local CanvasKit bundle instead of the CDN to reduce test flakiness. + canvasKitBaseUrl: "/canvaskit/", + }, +}); diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/web/index.html b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/web/index.html new file mode 100644 index 0000000000000000000000000000000000000000..a856086c8ee988a3c27b67aae4f14f19bf709c37 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_compile_tests/web/index.html @@ -0,0 +1,12 @@ + + + + + Hello, World + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f58efd854f71a5c1553ed7cc835cdd5055f5ccf1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/README.md @@ -0,0 +1,41 @@ +# Flutter Web integration tests + +To run the tests in this package [download][1] the chromedriver matching the +version of Chrome. To find out the version of your Chrome installation visit +chrome://version. + +Start `chromedriver` using the following command: + +``` +chromedriver --port=4444 +``` + +An integration test is run using the `flutter drive` command. Some tests are +written for a specific [web renderer][2] and/or specific [build mode][4]. +Before running a test, check the `_runWebLongRunningTests` function defined in +[dev/bots/test.dart][3], and determine the right web renderer and the build +mode you'd like to run the test in. + +Here's an example of running an integration test: + +``` +flutter drive --target=test_driver/text_editing_integration.dart \ + -d web-server \ + --browser-name=chrome \ + --profile \ + --web-renderer=html +``` + +This example runs the test in profile mode (`--profile`) using the HTML +renderer (`--web-renderer=html`). + +More resources: + +* chromedriver: https://chromedriver.chromium.org/getting-started +* FlutterDriver: https://github.com/flutter/flutter/wiki/Running-Flutter-Driver-tests-with-Web +* `package:integration_test`: https://pub.dev/packages/integration_test + +[1]: https://chromedriver.chromium.org/downloads +[2]: https://flutter.dev/docs/development/tools/web-renderers +[3]: https://github.com/flutter/flutter/blob/master/dev/bots/test.dart +[4]: https://flutter.dev/docs/testing/build-modes diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/common.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/common.dart new file mode 100644 index 0000000000000000000000000000000000000000..7e0d3f71061aa92a520dcf3434a4408f338e8e9e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/common.dart @@ -0,0 +1,30 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html'; + +import 'package:flutter_test/flutter_test.dart'; + +/// Whether the current browser is Firefox. +bool get isFirefox => window.navigator.userAgent.toLowerCase().contains('firefox'); + +/// Finds elements in the DOM tree rendered by the Flutter Web engine. +/// +/// If the browser supports shadow DOM, looks in the shadow root under the +/// `` element. Otherwise, looks under `` +/// without penetrating the shadow DOM. In the latter case, if the application +/// creates platform views, this will also find platform view elements. +List findElements(String selector) { + final Element? flutterView = document.querySelector('flutter-view'); + + if (flutterView == null) { + fail( + 'Failed to locate . Possible reasons:\n' + ' - The application failed to start' + ' - `findElements` was called before the application started' + ); + } + + return flutterView.querySelectorAll(selector); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/platform_messages_main.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/platform_messages_main.dart new file mode 100644 index 0000000000000000000000000000000000000000..8f7dde57afaece7bf8d9b6af3470a069ce22c208 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/platform_messages_main.dart @@ -0,0 +1,63 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() => runApp(const MyApp()); + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + key: Key('mainapp'), + title: 'Integration Test App For Platform Messages', + home: MyHomePage(title: 'Integration Test App For Platform Messages'), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, required this.title}); + + final String title; + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + final TextEditingController _controller = + TextEditingController(text: 'Text1'); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text(widget.title), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('Hello World', + ), + // Create a text form field since we can't test clipboard unless + // html document has focus. + TextFormField( + key: const Key('input'), + enabled: true, + controller: _controller, + //initialValue: 'Text1', + decoration: const InputDecoration( + labelText: 'Text Input Field:', + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/profile_diagnostics_main.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/profile_diagnostics_main.dart new file mode 100644 index 0000000000000000000000000000000000000000..d914ee1acd3ae34ad0572b3a952da715bd7f1f71 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/profile_diagnostics_main.dart @@ -0,0 +1,26 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() { + runApp(const MyApp()); +} + +class MyApp extends StatefulWidget { + const MyApp({super.key}); + + @override + MyAppState createState() => MyAppState(); +} + +class MyAppState extends State { + String kMessage = 'ABC'; + @override + Widget build(BuildContext context) { + // cause cast error. + print(kMessage as int); + return const Text('Hello'); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/screenshot_support.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/screenshot_support.dart new file mode 100644 index 0000000000000000000000000000000000000000..5a46b8e398dcc7f860c2775ea46e30b401796adc --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/screenshot_support.dart @@ -0,0 +1,33 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:integration_test/integration_test_driver_extended.dart' as test; + +/// Browser screen dimensions for the FlutterDriver test. +const int _kScreenshotWidth = 1024; +const int _kScreenshotHeight = 1024; + +/// Convenience wrapper around [test.integrationDriver]. +/// +/// Adds the capability to take test screenshots. +Future runTestWithScreenshots({ + int browserWidth = _kScreenshotWidth, + int browserHeight = _kScreenshotHeight, +}) async { + final WebFlutterDriver driver = + await FlutterDriver.connect() as WebFlutterDriver; + + (await driver.webDriver.window).setSize(Rectangle(0, 0, browserWidth, browserHeight)); + + test.integrationDriver( + driver: driver, + onScreenshot: (String screenshotName, List screenshotBytes, [Map? args]) async { + // TODO(yjbanov): implement, see https://github.com/flutter/flutter/issues/86120 + return true; + }, + ); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/scroll_wheel_main.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/scroll_wheel_main.dart new file mode 100644 index 0000000000000000000000000000000000000000..6c71be9643112b8d42eedc9f07138c872d206730 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/scroll_wheel_main.dart @@ -0,0 +1,107 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; + +import 'package:flutter/material.dart'; + +void main() => runApp(const MyApp()); + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + // This widget is the root of your application. + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Flutter Scroll Wheel Test', + theme: ThemeData( + primarySwatch: Colors.blue, + fontFamily: 'RobotoMono', + visualDensity: VisualDensity.adaptivePlatformDensity, + ), + home: const MyHomePage(title: 'Flutter Scroll Wheel Test'), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, required this.title}); + + final String title; + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text(widget.title), + ), + body: ListView.builder( + itemCount: 1000, + itemBuilder: (BuildContext context, int index) => Padding( + padding: const EdgeInsets.all(20), + child: Container( + height: 100, + color: Colors.lightBlue, + child: Center( + child: Text('Item $index'), + ), + ), + ), + ), + floatingActionButton: FloatingActionButton.extended( + key: const Key('scroll-button'), + onPressed: () { + const int centerX = 100; //html.window.innerWidth ~/ 2; + const int centerY = 100; //html.window.innerHeight ~/ 2; + dispatchMouseWheelEvent(centerX, centerY, DeltaMode.kLine, 0, 1); + dispatchMouseWheelEvent(centerX, centerY, DeltaMode.kLine, 0, 1); + dispatchMouseWheelEvent(centerX, centerY, DeltaMode.kLine, 0, 1); + dispatchMouseWheelEvent(centerX, centerY, DeltaMode.kLine, 0, 1); + dispatchMouseWheelEvent(centerX, centerY, DeltaMode.kLine, 0, 1); + }, + label: const Text('Scroll'), + icon: const Icon(Icons.thumb_up), + ), + ); + } +} + +abstract class DeltaMode { + static const int kLine = 0x01; +} + +void dispatchMouseWheelEvent(int mouseX, int mouseY, + int deltaMode, double deltaX, double deltaY) { + final html.EventTarget target = html.document.elementFromPoint(mouseX, mouseY)!; + + target.dispatchEvent(html.MouseEvent('mouseover', + screenX: mouseX, + screenY: mouseY, + clientX: mouseX, + clientY: mouseY, + )); + + target.dispatchEvent(html.MouseEvent('mousemove', + screenX: mouseX, + screenY: mouseY, + clientX: mouseX, + clientY: mouseY, + )); + + target.dispatchEvent(html.WheelEvent('wheel', + screenX: mouseX, + screenY: mouseY, + clientX: mouseX, + clientY: mouseY, + deltaMode: deltaMode, + deltaX : deltaX, + deltaY : deltaY, + )); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/target_platform_main.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/target_platform_main.dart new file mode 100644 index 0000000000000000000000000000000000000000..afb63c177517ada82094cc2ea6d0c44a3c28f3d4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/target_platform_main.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; + +void main() => runApp(const MyApp()); + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + key: Key('mainapp'), + title: 'Platform Test', + home: MyHomePage(), + ); + } +} + +class MyHomePage extends StatelessWidget { + const MyHomePage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + if (defaultTargetPlatform == TargetPlatform.macOS) + const Text( + 'I am running on MacOS', + key: Key('macOSKey'), + ), + if (defaultTargetPlatform == TargetPlatform.iOS) + const Text( + 'I am running on MacOS', + key: Key('iOSKey'), + ), + if (defaultTargetPlatform == TargetPlatform.android) + const Text( + 'I am running on Android', + key: Key('androidKey'), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/text_editing_main.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/text_editing_main.dart new file mode 100644 index 0000000000000000000000000000000000000000..8358b743c005c70e0e30a71a3a835b5c5c3fb0c9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/text_editing_main.dart @@ -0,0 +1,110 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() => runApp(const MyApp()); + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + key: Key('mainapp'), + title: 'Integration Test App', + home: MyHomePage(title: 'Integration Test App'), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, this.title}); + + final String? title; + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + String infoText = 'no-enter'; + + // Controller with no initial value; + final TextEditingController _emptyController = TextEditingController(); + + final TextEditingController _controller = + TextEditingController(text: 'Text1'); + + final TextEditingController _controller2 = + TextEditingController(text: 'Text2'); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text(widget.title ?? ''), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text( + 'Text Editing Test 1', + ), + TextFormField( + key: const Key('empty-input'), + enabled: true, + controller: _emptyController, + decoration: const InputDecoration( + contentPadding: EdgeInsets.all(10.0), + labelText: 'Empty Input Field:', + ), + ), + const Text( + 'Text Editing Test 2', + ), + TextFormField( + key: const Key('input'), + enabled: true, + controller: _controller, + decoration: const InputDecoration( + contentPadding: EdgeInsets.all(10.0), + labelText: 'Text Input Field:', + ), + ), + const Text( + 'Text Editing Test 3', + ), + TextFormField( + key: const Key('input2'), + enabled: true, + controller: _controller2, + decoration: const InputDecoration( + contentPadding: EdgeInsets.all(10.0), + labelText: 'Text Input Field 2:', + ), + onFieldSubmitted: (String str) { + print('event received'); + setState(() => infoText = 'enter pressed'); + }, + ), + Text( + infoText, + key: const Key('text'), + ), + const Padding( + padding: EdgeInsets.all(12.0), + child: SelectableText( + 'Lorem ipsum dolor sit amet', + key: Key('selectable'), + style: TextStyle(fontFamily: 'Roboto', fontSize: 20.0), + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/treeshaking_main.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/treeshaking_main.dart new file mode 100644 index 0000000000000000000000000000000000000000..b52c675e5c95b18b3255c7814abff8963adc12ba --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/treeshaking_main.dart @@ -0,0 +1,43 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() => runApp(const MyApp()); + +class MyApp extends StatelessWidget { + const MyApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + key: Key('mainapp'), + title: 'Integration Test App', + home: MyHomePage(title: 'Integration Test App'), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key, required this.title}); + + final String title; + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text(widget.title), + ), + body: const Center( + child: Text('TreeshakingThings'), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/url_strategy_main.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/url_strategy_main.dart new file mode 100644 index 0000000000000000000000000000000000000000..f4a34fcecbca2a1c290bb5f9b07fd7a43a1fc416 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/lib/url_strategy_main.dart @@ -0,0 +1,33 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +final GlobalKey navKey = GlobalKey(debugLabel: 'mainNavigator'); +Map? appRoutes; + +final Map _defaultAppRoutes = { + '/': (BuildContext context) => Container(), +}; + +void main() { + runApp(MyApp(appRoutes ?? _defaultAppRoutes)); +} + +class MyApp extends StatelessWidget { + const MyApp(this.routes, {super.key}); + + final Map routes; + + @override + Widget build(BuildContext context) { + return MaterialApp( + key: const Key('mainapp'), + navigatorKey: navKey, + theme: ThemeData(fontFamily: 'RobotoMono'), + title: 'Integration Test App', + routes: routes, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..392ca0915cf49d45c2b0aaf640d00c5b07c7710d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/pubspec.lock @@ -0,0 +1,526 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct dev" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct dev" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + args: + dependency: "direct dev" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct main" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct main" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct dev" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct dev" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct dev" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + fake_async: + dependency: "direct main" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_driver: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_gallery_assets: + dependency: "direct main" + description: + name: flutter_gallery_assets + sha256: f8fecfeebcfbe80a2fabc00c0834046890abe681f59d3e2c5b1028faf887d94b + url: "https://pub.dev" + source: hosted + version: "1.0.2" + flutter_goldens: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_plugins: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + frontend_server_client: + dependency: "direct dev" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + fuchsia_remote_debug_protocol: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + glob: + dependency: "direct dev" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + http: + dependency: "direct dev" + description: + name: http + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + url: "https://pub.dev" + source: hosted + version: "0.13.6" + http_multi_server: + dependency: "direct dev" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct dev" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + integration_test: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + io: + dependency: "direct dev" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct dev" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + leak_tracker: + dependency: "direct main" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct main" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct main" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + logging: + dependency: "direct dev" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct main" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mime: + dependency: "direct dev" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct dev" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct dev" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: "direct dev" + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + pool: + dependency: "direct dev" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: "direct dev" + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + pub_semver: + dependency: "direct dev" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + shelf: + dependency: "direct dev" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct dev" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct dev" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct dev" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_map_stack_trace: + dependency: "direct dev" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct dev" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct main" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct main" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + sync_http: + dependency: "direct main" + description: + name: sync_http + sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct dev" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct main" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct dev" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct dev" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct main" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct dev" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct dev" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct dev" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webdriver: + dependency: "direct main" + description: + name: webdriver + sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + webkit_inspection_protocol: + dependency: "direct dev" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + yaml: + dependency: "direct dev" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" + flutter: ">=0.1.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b665e64164104bf8c15f1f4405f46eba088a92a8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/pubspec.yaml @@ -0,0 +1,90 @@ +name: web_e2e_tests +publish_to: none + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +flutter: + assets: + - packages/flutter_gallery_assets/assets/icons/material/1.5x/material.png + - packages/flutter_gallery_assets/assets/icons/material/material.png + +dependencies: + flutter: + sdk: flutter + flutter_driver: + sdk: flutter + flutter_test: + sdk: flutter + flutter_web_plugins: + sdk: flutter + integration_test: + sdk: flutter + flutter_gallery_assets: 1.0.2 + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_goldens: + sdk: flutter + http: 0.13.6 + test: 1.24.9 + + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + platform: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + process: 5.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: f706 diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/cache_width_cache_height_integration.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/cache_width_cache_height_integration.dart new file mode 100644 index 0000000000000000000000000000000000000000..431e816e7189b5a2427535483a35e48066709cd9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/cache_width_cache_height_integration.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:ui' as ui; + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; + +// This class allows loadImage, a protected method, to be called with a custom +// ImageDecoderCallback function. +class LoadTestImageProvider extends ImageProvider { + LoadTestImageProvider(this.provider); + + final ImageProvider provider; + + ImageStreamCompleter testLoad(Object key, ImageDecoderCallback decode) { + return provider.loadImage(key, decode); + } + + @override + Future obtainKey(ImageConfiguration configuration) { + throw UnimplementedError(); + } + + @override + ImageStreamCompleter loadImage(Object key, ImageDecoderCallback decode) { + throw UnimplementedError(); + } +} + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + testWidgets('Image.network uses cacheWidth and cacheHeight', (WidgetTester tester) async { + const int expectedCacheHeight = 9; + const int expectedCacheWidth = 11; + await tester.pumpAndSettle(); + + final Image image = Image.network( + 'assets/packages/flutter_gallery_assets/assets/icons/material/material.png', + cacheHeight: 9, + cacheWidth: 11, + ); + + bool called = false; + + Future decode(ui.ImmutableBuffer buffer, {ui.TargetImageSizeCallback? getTargetSize}) { + return PaintingBinding.instance.instantiateImageCodecWithSize(buffer, getTargetSize: (int intrinsicWidth, int intrinsicHeight) { + expect(getTargetSize, isNotNull); + final ui.TargetImageSize targetSize = getTargetSize!(intrinsicWidth, intrinsicHeight); + expect(targetSize.width, expectedCacheWidth); + expect(targetSize.height, expectedCacheHeight); + called = true; + return targetSize; + }); + } + + final ImageProvider resizeImage = image.image; + expect(image.image, isA()); + + final LoadTestImageProvider testProvider = LoadTestImageProvider(image.image); + final ImageStreamCompleter streamCompleter = testProvider.testLoad(await resizeImage.obtainKey(ImageConfiguration.empty), decode); + + final Completer completer = Completer(); + int? imageInfoCachedWidth; + int? imageInfoCachedHeight; + streamCompleter.addListener(ImageStreamListener((ImageInfo imageInfo, bool syncCall) { + imageInfoCachedWidth = imageInfo.image.width; + imageInfoCachedHeight = imageInfo.image.height; + completer.complete(); + })); + await completer.future; + + expect(imageInfoCachedHeight, isNotNull); + expect(imageInfoCachedHeight, expectedCacheHeight); + expect(imageInfoCachedWidth, isNotNull); + expect(imageInfoCachedWidth, expectedCacheWidth); + expect(called, true); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/cache_width_cache_height_integration_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/cache_width_cache_height_integration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b2d2a1770b2fdcf712810246b8aa1b1b2581141e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/cache_width_cache_height_integration_test.dart @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart' as test; + +Future main() async => test.integrationDriver(); diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_canvaskit.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_canvaskit.dart new file mode 100644 index 0000000000000000000000000000000000000000..2dbbfb58e0abdd137e19a8cb53fc74d909c35ef0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_canvaskit.dart @@ -0,0 +1,16 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + testWidgets('isCanvasKit returns true in CanvasKit mode', (WidgetTester tester) async { + await tester.pumpAndSettle(); + expect(isCanvasKit, true); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_canvaskit_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_canvaskit_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b2d2a1770b2fdcf712810246b8aa1b1b2581141e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_canvaskit_test.dart @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart' as test; + +Future main() async => test.integrationDriver(); diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_html.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_html.dart new file mode 100644 index 0000000000000000000000000000000000000000..1f0a11e339e5b88f00f83c6355152fb2ee2a1106 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_html.dart @@ -0,0 +1,15 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + testWidgets('isCanvasKit returns false in HTML mode', (WidgetTester tester) async { + await tester.pumpAndSettle(); + expect(isCanvasKit, false); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_html_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_html_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b2d2a1770b2fdcf712810246b8aa1b1b2581141e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_html_test.dart @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart' as test; + +Future main() async => test.integrationDriver(); diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_skwasm.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_skwasm.dart new file mode 100644 index 0000000000000000000000000000000000000000..c16afb2ce9b406a0fdb80ad8c5ff0d1cecaf3a42 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_skwasm.dart @@ -0,0 +1,18 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + testWidgets('capabilities are set properly in Skwasm mode', (WidgetTester tester) async { + await tester.pumpAndSettle(); + expect(isCanvasKit, false); + expect(isSkwasm, true); + expect(isSkiaWeb, true); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_skwasm_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_skwasm_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b2d2a1770b2fdcf712810246b8aa1b1b2581141e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/capabilities_integration_skwasm_test.dart @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart' as test; + +Future main() async => test.integrationDriver(); diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/platform_messages_integration.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/platform_messages_integration.dart new file mode 100644 index 0000000000000000000000000000000000000000..ff160db09cba771a60fdf67dc7f5f537e3c83477 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/platform_messages_integration.dart @@ -0,0 +1,54 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html' as html; +import 'dart:ui_web' as ui_web; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; +import 'package:web_e2e_tests/platform_messages_main.dart' as app; + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + testWidgets('platform message for Clipboard.setData reply with future', + (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + // TODO(nurhan): https://github.com/flutter/flutter/issues/51885 + tester.binding.defaultBinaryMessenger.setMockMethodCallHandler(SystemChannels.textInput, null); + // Focus on a TextFormField. + final Finder finder = find.byKey(const Key('input')); + expect(finder, findsOneWidget); + await tester.tap(find.byKey(const Key('input'))); + // Focus in input, otherwise clipboard will fail with + // 'document is not focused' platform exception. + html.document.querySelector('input')?.focus(); + await Clipboard.setData(const ClipboardData(text: 'sample text')); + }, skip: true); // https://github.com/flutter/flutter/issues/54296 + + testWidgets('Should create and dispose view embedder', + (WidgetTester tester) async { + int viewInstanceCount = 0; + + platformViewsRegistry.getNextPlatformViewId(); + ui_web.platformViewRegistry.registerViewFactory('MyView', (int viewId) { + viewInstanceCount += 1; + return html.DivElement(); + }); + + app.main(); + await tester.pumpAndSettle(); + final Map createArgs = { + 'id': 567, + 'viewType': 'MyView', + }; + await SystemChannels.platform_views.invokeMethod('create', createArgs); + await SystemChannels.platform_views.invokeMethod('dispose', 567); + expect(viewInstanceCount, 1); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/platform_messages_integration_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/platform_messages_integration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b2d2a1770b2fdcf712810246b8aa1b1b2581141e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/platform_messages_integration_test.dart @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart' as test; + +Future main() async => test.integrationDriver(); diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/profile_diagnostics_integration.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/profile_diagnostics_integration.dart new file mode 100644 index 0000000000000000000000000000000000000000..8b1d508db4928d4ad62d52a879e84b96e0b656ae --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/profile_diagnostics_integration.dart @@ -0,0 +1,19 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; +import 'package:web_e2e_tests/profile_diagnostics_main.dart' as app; + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + testWidgets('App build method exception should form valid FlutterErrorDetails', + (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + final dynamic appError = tester.takeException(); + expect(appError, isA()); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/profile_diagnostics_integration_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/profile_diagnostics_integration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b2d2a1770b2fdcf712810246b8aa1b1b2581141e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/profile_diagnostics_integration_test.dart @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart' as test; + +Future main() async => test.integrationDriver(); diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/scroll_wheel_integration.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/scroll_wheel_integration.dart new file mode 100644 index 0000000000000000000000000000000000000000..6a13455fec1546e34c94c81d8eecc719959b6fa0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/scroll_wheel_integration.dart @@ -0,0 +1,29 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; +import 'package:web_e2e_tests/scroll_wheel_main.dart' as app; + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + testWidgets('Test mousewheel scroll by line', (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + final Finder finder = find.byKey(const Key('scroll-button')); + expect(finder, findsOneWidget); + await tester.tap(finder); + await tester.pumpAndSettle(); + await tester.tap(finder); + await tester.pumpAndSettle(); + + await expectLater( + find.byType(app.MyApp), + matchesGoldenFile('scroll_wheel_by_line'), + ); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/scroll_wheel_integration_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/scroll_wheel_integration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..457618c4cb12dbda7d117568ce303b050c40d90e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/scroll_wheel_integration_test.dart @@ -0,0 +1,9 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:web_e2e_tests/screenshot_support.dart' as test; + +Future main() async { + await test.runTestWithScreenshots(); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration.dart new file mode 100644 index 0000000000000000000000000000000000000000..906a02684afe79197b5a8379f6edd76b48fb8100 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration.dart @@ -0,0 +1,269 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:html'; +import 'dart:js_util' as js_util; + +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; +import 'package:web_e2e_tests/common.dart'; +import 'package:web_e2e_tests/text_editing_main.dart' as app; + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + testWidgets('Focused text field creates a native input element', + (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + // Focus on a TextFormField. + final Finder finder = find.byKey(const Key('input')); + expect(finder, findsOneWidget); + await tester.tap(find.byKey(const Key('input'))); + + // A native input element will be appended to the DOM. + final List nodeList = findElements('input'); + expect(nodeList.length, equals(1)); + final InputElement input = nodeList[0] as InputElement; + // The element's value will be the same as the textFormField's value. + expect(input.value, 'Text1'); + + // Change the value of the TextFormField. + final TextFormField textFormField = tester.widget(finder); + textFormField.controller?.text = 'New Value'; + // DOM element's value also changes. + expect(input.value, 'New Value'); + }, semanticsEnabled: false); + + testWidgets('Input field with no initial value works', + (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + // Focus on a TextFormField. + final Finder finder = find.byKey(const Key('empty-input')); + expect(finder, findsOneWidget); + await tester.tap(find.byKey(const Key('empty-input'))); + + // A native input element will be appended to the DOM. + final List nodeList = findElements('input'); + expect(nodeList.length, equals(1)); + final InputElement input = nodeList[0] as InputElement; + // The element's value will be empty. + expect(input.value, ''); + + // Change the value of the TextFormField. + final TextFormField textFormField = tester.widget(finder); + textFormField.controller?.text = 'New Value'; + // DOM element's value also changes. + expect(input.value, 'New Value'); + }, semanticsEnabled: false); + + testWidgets('Pressing enter on the text field triggers submit', + (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + // This text will show no-enter initially. It will have 'enter-pressed' + // after `onFieldSubmitted` of TextField is triggered. + final Finder textFinder = find.byKey(const Key('text')); + expect(textFinder, findsOneWidget); + final Text text = tester.widget(textFinder); + expect(text.data, 'no-enter'); + + // Focus on a TextFormField. + final Finder textFormFieldsFinder = find.byKey(const Key('input2')); + expect(textFormFieldsFinder, findsOneWidget); + await tester.tap(find.byKey(const Key('input2'))); + + // Press Tab. This should trigger `onFieldSubmitted` of TextField. + final InputElement input = findElements('input')[0] as InputElement; + dispatchKeyboardEvent(input, 'keydown', { + 'keyCode': 13, // Enter. + 'cancelable': true, + }); + // Release Tab. + dispatchKeyboardEvent(input, 'keyup', { + 'keyCode': 13, // Enter. + 'cancelable': true, + }); + + await tester.pumpAndSettle(); + + final Finder textFinder2 = find.byKey(const Key('text')); + expect(textFinder2, findsOneWidget); + final Text text2 = tester.widget(textFinder2); + expect(text2.data, 'enter pressed'); + }, semanticsEnabled: false); + + testWidgets('Jump between TextFormFields with tab key', + (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + // Focus on a TextFormField. + final Finder finder = find.byKey(const Key('input')); + expect(finder, findsOneWidget); + await tester.tap(find.byKey(const Key('input'))); + + // A native input element will be appended to the DOM. + final List nodeList = findElements('input'); + expect(nodeList.length, equals(1)); + final InputElement input = nodeList[0] as InputElement; + + // Press Tab. The focus should move to the next TextFormField. + dispatchKeyboardEvent(input, 'keydown', { + 'key': 'Tab', + 'code': 'Tab', + 'bubbles': true, + 'cancelable': true, + 'composed': true, + }); + // Release tab. + dispatchKeyboardEvent(input, 'keyup', { + 'key': 'Tab', + 'code': 'Tab', + 'bubbles': true, + 'cancelable': true, + 'composed': true, + }); + + await tester.pumpAndSettle(); + + // A native input element for the next TextField should be attached to the + // DOM. + final InputElement input2 = findElements('input')[0] as InputElement; + expect(input2.value, 'Text2'); + }, semanticsEnabled: false); + + testWidgets('Jump between TextFormFields with tab key after CapsLock is activated', (WidgetTester tester) async { + app.main(); + await tester.pumpAndSettle(); + + // Focus on a TextFormField. + final Finder finder = find.byKey(const Key('input')); + expect(finder, findsOneWidget); + await tester.tap(find.byKey(const Key('input'))); + + // A native input element will be appended to the DOM. + final List nodeList = findElements('input'); + expect(nodeList.length, equals(1)); + final InputElement input = nodeList[0] as InputElement; + + // Press and release CapsLock. + dispatchKeyboardEvent(input, 'keydown', { + 'key': 'CapsLock', + 'code': 'CapsLock', + 'bubbles': true, + 'cancelable': true, + 'composed': true, + }); + dispatchKeyboardEvent(input, 'keyup', { + 'key': 'CapsLock', + 'code': 'CapsLock', + 'bubbles': true, + 'cancelable': true, + 'composed': true, + }); + + // Press Tab. The focus should move to the next TextFormField. + dispatchKeyboardEvent(input, 'keydown', { + 'key': 'Tab', + 'code': 'Tab', + 'bubbles': true, + 'cancelable': true, + 'composed': true, + }); + // Release Tab. + dispatchKeyboardEvent(input, 'keyup', { + 'key': 'Tab', + 'code': 'Tab', + 'bubbles': true, + 'cancelable': true, + 'composed': true, + }); + + await tester.pumpAndSettle(); + + // A native input element for the next TextField should be attached to the + // DOM. + final InputElement input2 = findElements('input')[0] as InputElement; + expect(input2.value, 'Text2'); + }, semanticsEnabled: false); + + testWidgets('Read-only fields work', (WidgetTester tester) async { + const String text = 'Lorem ipsum dolor sit amet'; + app.main(); + await tester.pumpAndSettle(); + + // Select something from the selectable text. + final Finder finder = find.byKey(const Key('selectable')); + expect(finder, findsOneWidget); + final RenderBox selectable = tester.renderObject(finder); + final Offset topLeft = selectable.localToGlobal(Offset.zero); + final Offset topRight = + selectable.localToGlobal(Offset(selectable.size.width, 0.0)); + + // Drag by mouse to select the entire selectable text. + TestGesture gesture = + await tester.startGesture(topLeft, kind: PointerDeviceKind.mouse); + await gesture.moveTo(topRight); + await gesture.up(); + + // A native input element will be appended to the DOM. + final List nodeList = findElements('textarea'); + expect(nodeList.length, equals(1)); + final TextAreaElement input = nodeList[0] as TextAreaElement; + // The element's value should contain the selectable text. + expect(input.value, text); + expect(input.hasAttribute('readonly'), isTrue); + + // Make sure the entire text is selected. + TextRange? range = + TextRange(start: input.selectionStart!, end: input.selectionEnd!); + expect(range.textInside(text), text); + + // Double tap to select the first word. + final Offset firstWordOffset = topLeft.translate(10.0, 0.0); + gesture = await tester.startGesture( + firstWordOffset, + kind: PointerDeviceKind.mouse, + ); + await gesture.up(); + await gesture.down(firstWordOffset); + await gesture.up(); + range = TextRange(start: input.selectionStart!, end: input.selectionEnd!); + expect(range.textInside(text), 'Lorem'); + + // Double tap to select the last word. + final Offset lastWordOffset = topRight.translate(-10.0, 0.0); + gesture = await tester.startGesture( + lastWordOffset, + kind: PointerDeviceKind.mouse, + ); + await gesture.up(); + await gesture.down(lastWordOffset); + await gesture.up(); + range = TextRange(start: input.selectionStart!, end: input.selectionEnd!); + expect(range.textInside(text), 'amet'); + }, semanticsEnabled: false); +} + +KeyboardEvent dispatchKeyboardEvent( + EventTarget target, String type, Map args) { + final Object jsKeyboardEvent = js_util.getProperty(window, 'KeyboardEvent') as Object; + final List eventArgs = [ + type, + args, + ]; + final KeyboardEvent event = js_util.callConstructor( + jsKeyboardEvent, js_util.jsify(eventArgs) as List) + as KeyboardEvent; + target.dispatchEvent(event); + + return event; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b2d2a1770b2fdcf712810246b8aa1b1b2581141e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/text_editing_integration_test.dart @@ -0,0 +1,7 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:integration_test/integration_test_driver.dart' as test; + +Future main() async => test.integrationDriver(); diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/url_strategy_integration.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/url_strategy_integration.dart new file mode 100644 index 0000000000000000000000000000000000000000..bba6a6de1e426542b645ccbbcee9eca52e1ceafd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/url_strategy_integration.dart @@ -0,0 +1,171 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:html' as html; +import 'dart:ui' as ui; + +import 'package:flutter/material.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:flutter_web_plugins/flutter_web_plugins.dart'; +import 'package:integration_test/integration_test.dart'; +import 'package:web_e2e_tests/url_strategy_main.dart' as app; + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + testWidgets('Can customize url strategy', (WidgetTester tester) async { + final TestUrlStrategy strategy = TestUrlStrategy.fromEntry( + const TestHistoryEntry('initial state', null, '/'), + ); + setUrlStrategy(strategy); + + app.appRoutes = { + '/': (BuildContext context) => Container(), + '/foo': (BuildContext context) => Container(), + }; + app.main(); + await tester.pumpAndSettle(); + + // checking whether the previously set strategy is properly preserved + expect(urlStrategy, strategy); + + expect(strategy.getPath(), '/'); + + final NavigatorState navigator = app.navKey.currentState!; + navigator.pushNamed('/foo'); + await tester.pump(); + expect(strategy.getPath(), '/foo'); + }); +} + +/// This URL strategy mimics the browser's history as closely as possible +/// while doing it all in memory with no interaction with the browser. +/// +/// It keeps a list of history entries and event listeners in memory and +/// manipulates them in order to achieve the desired functionality. +class TestUrlStrategy extends UrlStrategy { + /// Creates an instance of [TestUrlStrategy] and populates it with a list + /// that has [initialEntry] as the only item. + TestUrlStrategy.fromEntry(TestHistoryEntry initialEntry) + : _currentEntryIndex = 0, + history = [initialEntry]; + + @override + String getPath() => currentEntry.url; + + @override + dynamic getState() => currentEntry.state; + + int _currentEntryIndex; + final List history; + + TestHistoryEntry get currentEntry { + assert(withinAppHistory); + return history[_currentEntryIndex]; + } + + set currentEntry(TestHistoryEntry entry) { + assert(withinAppHistory); + history[_currentEntryIndex] = entry; + } + + /// Whether we are still within the history of the Flutter Web app. This + /// remains true until we go back in history beyond the entry where the app + /// started. + bool get withinAppHistory => _currentEntryIndex >= 0; + + @override + void pushState(dynamic state, String title, String url) { + assert(withinAppHistory); + _currentEntryIndex++; + // When pushing a new state, we need to remove all entries that exist after + // the current entry. + // + // If the user goes A -> B -> C -> D, then goes back to B and pushes a new + // entry called E, we should end up with: A -> B -> E in the history list. + history.removeRange(_currentEntryIndex, history.length); + history.add(TestHistoryEntry(state, title, url)); + } + + @override + void replaceState(dynamic state, String title, String url) { + assert(withinAppHistory); + if (url == '') { + url = currentEntry.url; + } + currentEntry = TestHistoryEntry(state, title, url); + } + + @override + Future go(int count) { + assert(withinAppHistory); + // Browsers don't move in history immediately. They do it at the next + // event loop. So let's simulate that. + return _nextEventLoop(() { + _currentEntryIndex = _currentEntryIndex + count; + if (withinAppHistory) { + _firePopStateEvent(); + } + }); + } + + final List listeners = []; + + @override + ui.VoidCallback addPopStateListener(html.EventListener fn) { + listeners.add(fn); + return () { + // Schedule a micro task here to avoid removing the listener during + // iteration in [_firePopStateEvent]. + scheduleMicrotask(() => listeners.remove(fn)); + }; + } + + /// Simulates the scheduling of a new event loop by creating a delayed future. + /// Details explained here: https://webdev.dartlang.org/articles/performance/event-loop + Future _nextEventLoop(ui.VoidCallback callback) { + return Future.delayed(Duration.zero).then((_) => callback()); + } + + /// Invokes all the attached event listeners in order of + /// attaching. This method should be called asynchronously to make it behave + /// like a real browser. + void _firePopStateEvent() { + assert(withinAppHistory); + final html.PopStateEvent event = html.PopStateEvent( + 'popstate', + {'state': currentEntry.state}, + ); + for (int i = 0; i < listeners.length; i++) { + listeners[i](event); + } + } + + @override + String prepareExternalUrl(String internalUrl) => internalUrl; + + @override + String toString() { + final List lines = []; + for (int i = 0; i < history.length; i++) { + final TestHistoryEntry entry = history[i]; + lines.add(_currentEntryIndex == i ? '* $entry' : ' $entry'); + } + return '$runtimeType: [\n${lines.join('\n')}\n]'; + } +} + +class TestHistoryEntry { + const TestHistoryEntry(this.state, this.title, this.url); + + final dynamic state; + final String? title; + final String url; + + @override + String toString() { + return '$runtimeType(state:$state, title:"$title", url:"$url")'; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/url_strategy_integration_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/url_strategy_integration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..457618c4cb12dbda7d117568ce303b050c40d90e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/test_driver/url_strategy_integration_test.dart @@ -0,0 +1,9 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:web_e2e_tests/screenshot_support.dart' as test; + +Future main() async { + await test.runTestWithScreenshots(); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/web/flutter_bootstrap.js b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/web/flutter_bootstrap.js new file mode 100644 index 0000000000000000000000000000000000000000..5872676556b797f3e1963093f3c24a49342311f8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/web/flutter_bootstrap.js @@ -0,0 +1,8 @@ +{{flutter_build_config}} +{{flutter_js}} +_flutter.loader.load({ + config: { + // Use the local CanvasKit bundle instead of the CDN to reduce test flakiness. + canvasKitBaseUrl: "/canvaskit/", + }, +}); \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/web/index.html b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/web/index.html new file mode 100644 index 0000000000000000000000000000000000000000..9dcd43f6d1238242729e8443e489d75da55118bd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/web_e2e_tests/web/index.html @@ -0,0 +1,18 @@ + + + + + Web Integration Tests + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/README.md new file mode 100644 index 0000000000000000000000000000000000000000..787ef2c69bbfcddbd97fc23be6d9eca6969936ec --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/README.md @@ -0,0 +1,10 @@ +# wide_gamut_test + +An integration test used for testing wide gamut color support in the engine. + +## Local run + +```sh +flutter create --platforms="ios" --no-overwrite . +flutter test integration_test/app_test.dart +``` diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/integration_test/app_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/integration_test/app_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..834a54b06b9b915af1c30c44fa5589b85fdc60c7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/integration_test/app_test.dart @@ -0,0 +1,175 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; +import 'dart:typed_data'; + +import 'package:flutter/services.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:integration_test/integration_test.dart'; + +import 'package:wide_gamut_test/main.dart' as app; + +// See: https://developer.apple.com/documentation/metal/mtlpixelformat/mtlpixelformatbgr10_xr. +double _decodeBGR10(int x) { + const double max = 1.25098; + const double min = -0.752941; + const double intercept = min; + const double slope = (max - min) / 1024.0; + return (x * slope) + intercept; +} + +double _decodeHalf(int x) { + if (x == 0x7c00) { + return double.infinity; + } + if (x == 0xfc00) { + return -double.infinity; + } + final double sign = x & 0x8000 == 0 ? 1.0 : -1.0; + final int exponent = (x >> 10) & 0x1f; + final int fraction = x & 0x3ff; + if (exponent == 0) { + return sign * math.pow(2.0, -14) * (fraction / 1024.0); + } else { + return sign * math.pow(2.0, exponent - 15) * (1.0 + fraction / 1024.0); + } +} + +bool _isAlmost(double x, double y, double epsilon) { + return (x - y).abs() < epsilon; +} + +List _deepRed = [1.0931, -0.2268, -0.1501]; + +bool _findRGBAF16Color( + Uint8List bytes, int width, int height, List color) { + final ByteData byteData = ByteData.sublistView(bytes); + expect(bytes.lengthInBytes, width * height * 8); + expect(bytes.lengthInBytes, byteData.lengthInBytes); + bool foundDeepRed = false; + for (int i = 0; i < bytes.lengthInBytes; i += 8) { + final int pixel = byteData.getUint64(i, Endian.host); + final double blue = _decodeHalf((pixel >> 32) & 0xffff); + final double green = _decodeHalf((pixel >> 16) & 0xffff); + final double red = _decodeHalf((pixel >> 0) & 0xffff); + if (_isAlmost(red, color[0], 0.01) && + _isAlmost(green, color[1], 0.01) && + _isAlmost(blue, color[2], 0.01)) { + foundDeepRed = true; + } + } + return foundDeepRed; +} + +bool _findBGRA10Color( + Uint8List bytes, int width, int height, List color) { + final ByteData byteData = ByteData.sublistView(bytes); + expect(bytes.lengthInBytes, width * height * 8); + expect(bytes.lengthInBytes, byteData.lengthInBytes); + bool foundDeepRed = false; + for (int i = 0; i < bytes.lengthInBytes; i += 8) { + final int pixel = byteData.getUint64(i, Endian.host); + final double blue = _decodeBGR10((pixel >> 6) & 0x3ff); + final double green = _decodeBGR10((pixel >> 22) & 0x3ff); + final double red = _decodeBGR10((pixel >> 38) & 0x3ff); + if (_isAlmost(red, color[0], 0.01) && + _isAlmost(green, color[1], 0.01) && + _isAlmost(blue, color[2], 0.01)) { + foundDeepRed = true; + } + } + return foundDeepRed; +} + +bool _findBGR10Color( + Uint8List bytes, int width, int height, List color) { + final ByteData byteData = ByteData.sublistView(bytes); + expect(bytes.lengthInBytes, width * height * 4); + expect(bytes.lengthInBytes, byteData.lengthInBytes); + bool foundDeepRed = false; + for (int i = 0; i < bytes.lengthInBytes; i += 4) { + final int pixel = byteData.getUint32(i, Endian.host); + final double blue = _decodeBGR10(pixel & 0x3ff); + final double green = _decodeBGR10((pixel >> 10) & 0x3ff); + final double red = _decodeBGR10((pixel >> 20) & 0x3ff); + if (_isAlmost(red, color[0], 0.01) && + _isAlmost(green, color[1], 0.01) && + _isAlmost(blue, color[2], 0.01)) { + foundDeepRed = true; + } + } + return foundDeepRed; +} + +bool _findColor(List result, List color) { + expect(result, isNotNull); + expect(result.length, 4); + final int width = (result[0] as int?)!; + final int height = (result[1] as int?)!; + final String format = (result[2] as String?)!; + if (format == 'MTLPixelFormatBGR10_XR') { + return _findBGR10Color((result[3] as Uint8List?)!, width, height, color); + } else if (format == 'MTLPixelFormatBGRA10_XR') { + return _findBGRA10Color((result[3] as Uint8List?)!, width, height, color); + } else if (format == 'MTLPixelFormatRGBA16Float') { + return _findRGBAF16Color((result[3] as Uint8List?)!, width, height, color); + } else { + fail('Unsupported pixel format: $format'); + } +} + +void main() { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); + + group('end-to-end test', () { + testWidgets('look for display p3 deepest red', (WidgetTester tester) async { + app.run(app.Setup.image); + await tester.pumpAndSettle(const Duration(seconds: 2)); + + const MethodChannel channel = MethodChannel('flutter/screenshot'); + final List result = + await channel.invokeMethod('test') as List; + expect(_findColor(result, _deepRed), isTrue); + }); + testWidgets('look for display p3 deepest red', (WidgetTester tester) async { + app.run(app.Setup.canvasSaveLayer); + await tester.pumpAndSettle(const Duration(seconds: 2)); + + const MethodChannel channel = MethodChannel('flutter/screenshot'); + final List result = + await channel.invokeMethod('test') as List; + expect(_findColor(result, _deepRed), isTrue); + }); + testWidgets('no p3 deepest red without image', (WidgetTester tester) async { + app.run(app.Setup.none); + await tester.pumpAndSettle(const Duration(seconds: 2)); + + const MethodChannel channel = MethodChannel('flutter/screenshot'); + final List result = + await channel.invokeMethod('test') as List; + expect(_findColor(result, _deepRed), isFalse); + expect(_findColor(result, [0.0, 1.0, 0.0]), isFalse); + }); + testWidgets('p3 deepest red with blur', (WidgetTester tester) async { + app.run(app.Setup.blur); + await tester.pumpAndSettle(const Duration(seconds: 2)); + + const MethodChannel channel = MethodChannel('flutter/screenshot'); + final List result = + await channel.invokeMethod('test') as List; + expect(_findColor(result, _deepRed), isTrue); + expect(_findColor(result, [0.0, 1.0, 0.0]), isTrue); + }); + testWidgets('draw image with wide gamut works', (WidgetTester tester) async { + app.run(app.Setup.drawnImage); + await tester.pumpAndSettle(const Duration(seconds: 2)); + + const MethodChannel channel = MethodChannel('flutter/screenshot'); + final List result = + await channel.invokeMethod('test') as List; + expect(_findColor(result, [0.0, 1.0, 0.0]), isTrue); + }); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/ios/Runner/Info.plist b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..7ade06a48ab8fdacf5e9d0ac23f5c6c71a0a6a3f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/ios/Runner/Info.plist @@ -0,0 +1,53 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Wide Gamut Test + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + wide_gamut_test + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + FLTEnableImpeller + + FLTEnableWideGamut + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/lib/main.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..696e8a342918575151ab28c86bfeacefa01483e3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/lib/main.dart @@ -0,0 +1,321 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async' show Completer; +import 'dart:convert' show base64Decode; +import 'dart:typed_data' show ByteData, Uint8List; +import 'dart:ui' as ui; +import 'package:flutter/material.dart'; + +/// A 100x100 png in Display P3 colorspace. +const String _displayP3Logo = + 'iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAABdWlDQ1BrQ0dDb2xv' + 'clNwYWNlRGlzcGxheVAzAAAokXWQvUvDUBTFT6tS0DqIDh0cMolD1NIKdnFoKxRF' + 'MFQFq1OafgltfCQpUnETVyn4H1jBWXCwiFRwcXAQRAcR3Zw6KbhoeN6XVNoi3sfl' + '/Ticc7lcwBtQGSv2AijplpFMxKS11Lrke4OHnlOqZrKooiwK/v276/PR9d5PiFlN' + 'u3YQ2U9cl84ul3aeAlN//V3Vn8maGv3f1EGNGRbgkYmVbYsJ3iUeMWgp4qrgvMvH' + 'gtMunzuelWSc+JZY0gpqhrhJLKc79HwHl4plrbWD2N6f1VeXxRzqUcxhEyYYilBR' + 'gQQF4X/8044/ji1yV2BQLo8CLMpESRETssTz0KFhEjJxCEHqkLhz634PrfvJbW3v' + 'FZhtcM4v2tpCAzidoZPV29p4BBgaAG7qTDVUR+qh9uZywPsJMJgChu8os2HmwiF3' + 'e38M6Hvh/GMM8B0CdpXzryPO7RqFn4Er/QcXKWq8UwZBywAAANplWElmTU0AKgAA' + 'AAgABgESAAMAAAABAAEAAAEaAAUAAAABAAAAVgEbAAUAAAABAAAAXgExAAIAAAAh' + 'AAAAZgEyAAIAAAAUAAAAiIdpAAQAAAABAAAAnAAAAAAAAABIAAAAAQAAAEgAAAAB' + 'QWRvYmUgUGhvdG9zaG9wIDI0LjEgKE1hY2ludG9zaCkAADIwMjM6MDI6MDggMTA6' + 'MTY6NDQAAAOQBAACAAAAFAAAAMagAgAEAAAAAQAAAGSgAwAEAAAAAQAAAGQAAAAA' + 'MjAyMzowMjowOCAxMDoxMzoyMgBgamvuAAAACXBIWXMAAAsTAAALEwEAmpwYAAAL' + 'v2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJh' + 'ZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRm' + 'OlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRm' + 'LXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0i' + 'IgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3Rp' + 'ZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9k' + 'Yy9lbGVtZW50cy8xLjEvIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9u' + 'cy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJo' + 'dHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxu' + 'czpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291' + 'cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFk' + 'b2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAg' + 'eG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8x' + 'LjAvIj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzI8L3RpZmY6WVJlc29s' + 'dXRpb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50' + 'YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyPC90aWZmOlhSZXNv' + 'bHV0aW9uPgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0' + 'PgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAyMy0wMi0wOFQxMDoxNjo0NC0w' + 'ODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+' + 'QWRvYmUgUGhvdG9zaG9wIDI0LjEgKE1hY2ludG9zaCk8L3htcDpDcmVhdG9yVG9v' + 'bD4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMjMtMDItMDhUMTA6MTM6MjIt' + 'MDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0' + 'ZT4yMDIzLTAyLTA4VDEwOjE2OjQ0LTA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgog' + 'ICAgICAgICA8eG1wTU06SGlzdG9yeT4KICAgICAgICAgICAgPHJkZjpTZXE+CiAg' + 'ICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgog' + 'ICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90' + 'b3Nob3AgMjQuMSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAg' + 'ICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4K' + 'ICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAyMy0wMi0wOFQxMDoxNjo0' + 'NC0wODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omlu' + 'c3RhbmNlSUQ+eG1wLmlpZDo3ZmM3YjMyNC0xNDUyLTQ2ZGUtODI2MC0yNGRmMTlh' + 'YjdkNTc8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2' + 'dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgPC9y' + 'ZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVz' + 'b3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5B' + 'ZG9iZSBQaG90b3Nob3AgMjQuMSAoTWFjaW50b3NoKTwvc3RFdnQ6c29mdHdhcmVB' + 'Z2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6' + 'Y2hhbmdlZD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAyMy0wMi0w' + 'OFQxMDoxNjo0NC0wODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAg' + 'PHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpmM2UxNjllMy1jZmZhLTRjZjUtYmQ1' + 'OS02YzgzODljYjk1MDk8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAg' + 'ICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAg' + 'ICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAg' + 'PC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVu' + 'dElEPnhtcC5kaWQ6Q0RBNDM3N0E4QUY3MTFFREE1NDdCQjYwRDI1MDkyNkQ8L3ht' + 'cE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkRvY3VtZW50' + 'SUQ+YWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOjA2M2QwNTUwLTVlNjctMjA0Mi1iN2Vl' + 'LTg4ZDE2ZDc5MDAyYTwveG1wTU06RG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1N' + 'OkRlcml2ZWRGcm9tIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAg' + 'ICAgPHN0UmVmOmluc3RhbmNlSUQ+eG1wLmlpZDpDREE0Mzc3NzhBRjcxMUVEQTU0' + 'N0JCNjBEMjUwOTI2RDwvc3RSZWY6aW5zdGFuY2VJRD4KICAgICAgICAgICAgPHN0' + 'UmVmOmRvY3VtZW50SUQ+eG1wLmRpZDpDREE0Mzc3ODhBRjcxMUVEQTU0N0JCNjBE' + 'MjUwOTI2RDwvc3RSZWY6ZG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJp' + 'dmVkRnJvbT4KICAgICAgICAgPHhtcE1NOkluc3RhbmNlSUQ+eG1wLmlpZDpmM2Ux' + 'NjllMy1jZmZhLTRjZjUtYmQ1OS02YzgzODljYjk1MDk8L3htcE1NOkluc3RhbmNl' + 'SUQ+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5EaXNwbGF5IFAzPC9w' + 'aG90b3Nob3A6SUNDUHJvZmlsZT4KICAgICAgICAgPHBob3Rvc2hvcDpDb2xvck1v' + 'ZGU+MzwvcGhvdG9zaG9wOkNvbG9yTW9kZT4KICAgICAgICAgPHBob3Rvc2hvcDpE' + 'b2N1bWVudEFuY2VzdG9ycz4KICAgICAgICAgICAgPHJkZjpCYWc+CiAgICAgICAg' + 'ICAgICAgIDxyZGY6bGk+eG1wLmRpZDpDREE0Mzc3QThBRjcxMUVEQTU0N0JCNjBE' + 'MjUwOTI2RDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpCYWc+CiAgICAgICAg' + 'IDwvcGhvdG9zaG9wOkRvY3VtZW50QW5jZXN0b3JzPgogICAgICA8L3JkZjpEZXNj' + 'cmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4Ka44gfwAACRBJREFU' + 'eAHtnMtyHDUUhtvjccItUClSBQtY5wHCBpOq7L1K+UWy4QH8CjwHWeQVsiBskmUW' + 'WcMCqgzhGiBz4/9knUHTTHvssW496VNR1K1WS0fn05Fa6h7vLZpG/wapxQKjWhQZ' + '9DizwACksp4wABmAVGaBytQZPGQAUpkFKlNn8JABSGUWqEydwUMqAzKuTJ8k6rAV' + 'MVfYS1A6ZdOrY5W9s0AwFEaaKbxSiL0/RNlA3ld4R2EAIiN0SQjjT2Wy867826Qb' + 'jHd1cywY6LFzc4gZH89IBYM68IzYMFTkbgHpO4ydAlICBnXGlp0YskrBiDl3GNje' + 'AykBA+OlgEG5vQZSCgaGSyW9BVICBnWmll4CKQUj1TAVQu4dkBIwMFgOGNTTKyAl' + 'YOQYpgBh0hsgpWDk8oxeAXlTYABlT43N7ZXWGS4V93Vv6lKNVOaqhyzrKTlhWJ2X' + 'NWSs/NUCwTCM37lh5J4z2iCrfEF1HgwMputkgdVc5wtOEH+NiI62rwOG5LVCensL' + 'nRtLS3VAMBSGCT0D63rDTv2lg+tNM77m8ypaCvleK/xz9kKPQ+y+0s42DKtT+YpL' + 'VZO6GSaEITgkkzR6TwE4E4W/mualLnyv6z8o/l1JgLyh448Vf/J209w8UBpv9v44' + 'i9xLPl3fCz1D564DKKpCqgFihjEYss5Chp0q/eB9ndDV/26aZ4oeKf2xwgsBOlWM' + 'oZei/CMBuKX4tsI9Xbj/VtPcwZt+VRCMid70jXWfG84U1yVSmjG4aJBFXf0ajxa/' + 'Kfwij5DxXpMu43L+tdLvdllO+mPcTttyL2XIq6ydr5V/Vrrd6+p3E+S6C7nS2jAE' + 'YqrgDKf4yU9Nc2ggpBOGHyvsK4z8uYPROuYaeci7BKWh7lDnTxQMDB5ox1XERYG0' + 'YagXT/AIGW4hGCcG4qmGLRmOKWEr4d7wfh2fKBiASXBsacXiYkDWwdD3UwvNzoRj' + 's7yMpQeqOBKWpePjAEQ1UIoAacNgmMIzgKHjI8z/vGmuyWA8EEUVylRgjqftRwrm' + 'DVUMX9mBtGH4CdwNU+YZZrCoJFqFWR2KQ08pPtFnBRLCkCfgDXMFnniWcwae0bJd' + 'stMAygk6KKDL3B+b52SNeULRv/RCJTzu2DqDcy3yJlpLHMgzvv3AP00pnS0PsiWX' + 'sC4dP1GFnyuw7tz6AeKqSrPwTS4Yvw1D5/S8Az6E1vrjS5TQ+fVcMKiPuqiTY4nT' + 'QTEwULmIJAdCy9owfKUzVuCC8fBD9U4ebZVPW1B5hTqlI3XjIQ997Vk8dF1LkwJZ' + 'BwM4vvuN2A6RAl+h2B3+Ky9OF6mR1C7nNTPZHNIFwysz1dwx1qPuM80dnynvnkB5' + 'Tuepm+6a6aBYzur6h5x3dZc4Xe3/lZykJ2BZPCGcwDk30fHMV/zIp0Vfb1hdl4hN' + 'B9OpyLAVHcgmGDKQm8x5lBGYx95g3FZaTAfTqcjkHhXIBWBg9JkWGiPeZwjIC0/B' + 'jFESiunwQuull1JkpHim4Pb3u2LciGuxZOVN2lULlYE7h6mg7DnPmfKQ7zSPnPp0' + 'M0aQLfuh6XCqX16h203FztZ2IdSItnKRcY7fGMaSqB7SNWe0lOXFEzP4j4pjdq5W' + 'NdudopPXDR0ZXtcKimM8YMQ0YrSyLghj2Tg1VAt0BwY+VYh0crqYbl1KAQnPkBdF' + 'hUF90YDQkmiFoVmlYjBS/OCTJkezIQWhJD0HpTeJAN4gj+KLZN9UXJTrpovp1i60' + 'DSOF4tGAoLwa4sbUDVBYjJL3I8VR60eHqwo6ed0oiiY5QWfaFXrG8uJZlij/RzUI' + 'Sl/AU0ZsWCnvp1qp3/KtSNG2yxrI6YBO6OY31Zx9DEbMv9jQpVxUILQI5YnPGb72' + 'tYc157sp5b3tFasGCDqhGzpKN94uLj0jqrF8w9tR9DouAIV9q4lfBt/zCtUE5B66' + 'oaNg/O+jurYBY59HB4KCm6Cooft+AXLfN6jIvlHLmE4H6XZfAffYD+cM0nL0miRA' + 'aOgGKOz0zvmikI/YlNftb3FfCZGxeR/CR3p3NU+g01wwxuGckQMGbU8GhMK7oPjG' + 'zXl5rp74gLwlhe9TvTxguBKMOXMgxsEzckqy9yFhI8zdibU/5Pa76JE632NfSxtq' + 'X8gQfFHIK9ysbw2tTnnFoer+Br0Fg+0dezwnKZ9IIQyTPMgTXB3E2jNZaDuV2H1x' + 'ovp5fepExwzdWSSsS58juU9MpZ/TyfTNYZuwDlwyOQyrwxqp2XMhT1nonI08g3IC' + 'BZ0zkmWR574udY4TdPQwin4GlBWIgWnF4cdpx5DIAcXqEIxjOghBaaEu2TpqaI8a' + 'gNDw8DPOI4Oi9OjDF2WaZ/ysT0nxVG+QUAdLyx7XAoSGhx88O0/xYOy7KU6vJKpj' + 'WRaeEcAI684OwXcIV29NQFag6I3iiVn/qdYJUpon0q2EeynDbmbO8EPUSp2hYUod' + '1wYEA031/Y3rLfruN+oPdni0tacpD6SKYSqEXx0QDCUQMxku+k/atDvgQPunqeIT' + 'eAjCjrMsDG2ouEgsY7k/fAwYrZTpwdF+9CkPYfU90ZbIWHGZhd8GI1QHBH0FYWVF' + 'r1PxifezaK3CV14PcF6LVAcEGBgohBLsKU11jaGGPxwwYgXZNib38c2w9l/4Kw88' + 'PfHovPK5E3m4L3xn0y5Hl4tIdUCwghksGL6Whsdwuk4WvOZKf1qjRihVApGhl4Ll' + 'tV6wDclleowDA1+TpzAaVCvrDBZTWe9tyYBvo2vVQGxcbw8t2zS06542FPLREUpJ' + '1UDMKCU8pRSUXgAp4SnmOdYpcsW9AGLGKOEpVneuuFdASngKIHIOX70CYr20hKfk' + 'gtJLIDa+E4drCAMWI7Y6wjVQDii9BILBzWC5ocSAfV4ZvQVSCgr1pvSUXgMpBcW8' + 'k/pjS++BYBAzUO7hK4Wn7AQQg2Jxnyf6nQECDIRem8NT+CtG7P9TV0ypfvt9m8Ya' + 'FGJ7bN2mnK571g2RXXkvm76TQEIjAIXezMuuWL05BE6Z/Gwh1lCz80BkKycYMaXE' + 'gr3yrjmlwqXLjmWw1O2I5Wmp9Xxjyh+AVIZ6ADIAqcwClakzeMgApDILVKbO4CED' + 'kMosUJk6g4dUBuRfvf1am9VRqzYAAAAASUVORK5CYII='; + +void main() => run(Setup.drawnImage); + +enum Setup { + none, + image, + canvasSaveLayer, + blur, + drawnImage, +} + +void run(Setup setup) { + runApp(MyApp(setup)); +} + +class MyApp extends StatelessWidget { + const MyApp(this._setup, {super.key}); + + final Setup _setup; + + @override + Widget build(BuildContext context) { + return MaterialApp( + title: 'Wide Gamut Test', + theme: ThemeData( + primarySwatch: Colors.blue, + ), + home: MyHomePage(_setup, title: 'Wide Gamut Test'), + ); + } +} + +class _SaveLayerDrawer extends CustomPainter { + _SaveLayerDrawer(this._image); + + final ui.Image? _image; + + @override + void paint(Canvas canvas, Size size) { + if (_image != null) { + final Rect imageRect = Rect.fromCenter( + center: Offset.zero, + width: _image!.width.toDouble(), + height: _image!.height.toDouble()); + canvas.saveLayer(imageRect, Paint()); + canvas.drawRect( + imageRect.inflate(-_image!.width.toDouble() / 4.0), + Paint() + ..style = PaintingStyle.stroke + ..color = const Color(0xffffffff) + ..strokeWidth = 3); + canvas.saveLayer(imageRect, Paint()..blendMode = BlendMode.dstOver); + canvas.drawImage(_image!, + Offset(-_image!.width / 2.0, -_image!.height / 2.0), Paint()); + canvas.restore(); + canvas.restore(); + } + } + + @override + bool shouldRepaint(covariant CustomPainter oldDelegate) => true; +} + +Future _drawImage() async { + final ui.PictureRecorder recorder = ui.PictureRecorder(); + const Size markerSize = Size(120, 120); + final double canvasSize = markerSize.height + 3; + final Canvas canvas = Canvas( + recorder, + Rect.fromLTWH(0, 0, canvasSize, canvasSize), + ); + + final Paint ovalPaint = Paint()..color = const Color(0xff00ff00); + final Path ovalPath = Path() + ..addOval(Rect.fromLTWH( + (canvasSize - markerSize.width) / 2, + 1, + markerSize.width, + markerSize.height, + )); + canvas.drawPath(ovalPath, ovalPaint); + + final ui.Picture picture = recorder.endRecording(); + final ui.Image image = await picture.toImage( + canvasSize.toInt(), + (canvasSize + 0).toInt(), + ); + final ByteData? byteData = + await image.toByteData(format: ui.ImageByteFormat.rawExtendedRgba128); + final Completer completer = Completer(); + ui.decodeImageFromPixels(Uint8List.view(byteData!.buffer), + canvasSize.toInt(), + canvasSize.toInt(), + ui.PixelFormat.rgbaFloat32, (ui.Image image) { + completer.complete(image); + }); + return completer.future; +} + +Future _loadImage() async { + final ui.ImmutableBuffer buffer = + await ui.ImmutableBuffer.fromUint8List(base64Decode(_displayP3Logo)); + final ui.ImageDescriptor descriptor = + await ui.ImageDescriptor.encoded(buffer); + final ui.Codec codec = await descriptor.instantiateCodec(); + return (await codec.getNextFrame()).image; +} + +class MyHomePage extends StatefulWidget { + const MyHomePage(this.setup, {super.key, required this.title}); + + final Setup setup; + final String title; + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + ui.Image? _image; + + @override + void initState() { + if (widget.setup == Setup.canvasSaveLayer) { + _loadImage().then((ui.Image? value) { + setState(() { + _image = value; + }); + }); + } else if (widget.setup == Setup.drawnImage) { + _drawImage().then((ui.Image? value) { + setState(() { + _image = value; + }); + }); + } + super.initState(); + } + + @override + Widget build(BuildContext context) { + late Widget imageWidget; + switch (widget.setup) { + case Setup.none: + imageWidget = Container(); + case Setup.image: + imageWidget = Image.memory(base64Decode(_displayP3Logo)); + case Setup.drawnImage: + imageWidget = CustomPaint(painter: _SaveLayerDrawer(_image)); + case Setup.canvasSaveLayer: + imageWidget = CustomPaint(painter: _SaveLayerDrawer(_image)); + case Setup.blur: + imageWidget = Stack( + children: [ + const ColoredBox( + color: Color(0xff00ff00), + child: SizedBox( + width: 100, + height: 100, + ), + ), + ImageFiltered( + imageFilter: ui.ImageFilter.blur(sigmaX: 6, sigmaY: 6), + child: Image.memory(base64Decode(_displayP3Logo))), + ], + ); + } + + return Scaffold( + appBar: AppBar( + title: Text(widget.title), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + imageWidget, + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..c8113101279cbfc6a173e71fab732df74037ddf4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/pubspec.lock @@ -0,0 +1,243 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: "direct dev" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct dev" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + file: + dependency: transitive + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_driver: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + fuchsia_remote_debug_protocol: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + integration_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + path: + dependency: "direct dev" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: transitive + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + process: + dependency: transitive + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: "direct dev" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct dev" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + sync_http: + dependency: transitive + description: + name: sync_http + sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + term_glyph: + dependency: "direct dev" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + webdriver: + dependency: transitive + description: + name: webdriver + sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" + url: "https://pub.dev" + source: hosted + version: "3.0.3" +sdks: + dart: ">=3.2.0-0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..1cfa83859f2847997a8b35ca7d3a5b9956d6e201 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/wide_gamut_test/pubspec.yaml @@ -0,0 +1,46 @@ +name: wide_gamut_test +description: A new Flutter project. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +version: 1.0.0+1 + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + integration_test: + sdk: flutter + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + uses-material-design: true + +# PUBSPEC CHECKSUM: 8023 diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/README.md b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/README.md new file mode 100644 index 0000000000000000000000000000000000000000..28061dde857fac2243ae66386fff7056931e46cc --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/README.md @@ -0,0 +1,3 @@ +# Windows start up test + +This test verifies that Flutter draws a frame before the Windows app is shown. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/lib/main.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/lib/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..f79473238a15b31b45f5f128b68b3e7c8e5d052f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/lib/main.dart @@ -0,0 +1,127 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:typed_data'; +import 'dart:ui' as ui; + +import 'package:flutter_driver/driver_extension.dart'; + +import 'windows.dart'; + +void drawHelloWorld(ui.FlutterView view) { + final ui.ParagraphStyle style = ui.ParagraphStyle(); + final ui.ParagraphBuilder paragraphBuilder = ui.ParagraphBuilder(style) + ..addText('Hello world'); + final ui.Paragraph paragraph = paragraphBuilder.build(); + + paragraph.layout(const ui.ParagraphConstraints(width: 100.0)); + + final ui.PictureRecorder recorder = ui.PictureRecorder(); + final ui.Canvas canvas = ui.Canvas(recorder); + + canvas.drawParagraph(paragraph, ui.Offset.zero); + + final ui.Picture picture = recorder.endRecording(); + final ui.SceneBuilder sceneBuilder = ui.SceneBuilder() + ..addPicture(ui.Offset.zero, picture) + ..pop(); + + view.render(sceneBuilder.build()); +} + +Future _waitUntilWindowVisible() async { + while (!await isWindowVisible()) { + await Future.delayed(const Duration(milliseconds: 100)); + } +} + +void _expectVisible(bool current, bool expect, Completer completer, int frameCount) { + if (current != expect) { + try { + throw 'Window should be ${expect ? 'visible' : 'hidden'} on frame $frameCount'; + } catch (e) { + if (!completer.isCompleted) { + completer.completeError(e); + } + rethrow; + } + } +} + +void main() async { + // TODO(goderbauer): Create a window if embedder doesn't provide an implicit view to draw into. + assert(ui.PlatformDispatcher.instance.implicitView != null); + final ui.FlutterView view = ui.PlatformDispatcher.instance.implicitView!; + + // Create a completer to send the window visibility result back to the + // integration test. + final Completer visibilityCompleter = Completer(); + enableFlutterDriverExtension(handler: (String? message) async { + if (message == 'verifyWindowVisibility') { + return visibilityCompleter.future; + } else if (message == 'verifyTheme') { + final bool app = await isAppDarkModeEnabled(); + final bool system = await isSystemDarkModeEnabled(); + + return (app == system) + ? 'success' + : 'error: app dark mode ($app) does not match system dark mode ($system)'; + } else if (message == 'verifyStringConversion') { + // Use a test string that contains code points that fit in both 8 and 16 bits. + // The code points are passed a list of integers through the method channel, + // which will use the UTF16 to UTF8 utility function to convert them to a + // std::string, which should equate to the original expected string. + const String expected = 'ABCℵ'; + final Int32List codePoints = Int32List.fromList(expected.codeUnits); + final String converted = await testStringConversion(codePoints); + return (converted == expected) + ? 'success' + : 'error: conversion of UTF16 string to UTF8 failed, expected "${expected.codeUnits}" but got "${converted.codeUnits}"'; + } + + throw 'Unrecognized message: $message'; + }); + + try { + if (await isWindowVisible()) { + throw 'Window should be hidden at startup'; + } + + int frameCount = 0; + ui.PlatformDispatcher.instance.onBeginFrame = (Duration duration) { + // Our goal is to verify that it's `drawHelloWorld` that makes the window + // appear, not anything else. This requires checking the visibility right + // before drawing, but since `isWindowVisible` has to be async, and + // `FlutterView.render` (in `drawHelloWorld`) forbids async before it, + // this can not be done during a single onBeginFrame. However, we can + // verify in separate frames to indirectly prove it, by ensuring that + // no other mechanism can affect isWindowVisible in the first frame at all. + frameCount += 1; + switch (frameCount) { + // The 1st frame: render nothing, just verify that the window is hidden. + case 1: + isWindowVisible().then((bool visible) { + _expectVisible(visible, false, visibilityCompleter, frameCount); + ui.PlatformDispatcher.instance.scheduleFrame(); + }); + // The 2nd frame: render, which makes the window appear. + case 2: + drawHelloWorld(view); + _waitUntilWindowVisible().then((_) { + if (!visibilityCompleter.isCompleted) { + visibilityCompleter.complete('success'); + } + }); + // Others, in case requested to render. + default: + drawHelloWorld(view); + } + }; + } catch (e) { + visibilityCompleter.completeError(e); + rethrow; + } + ui.PlatformDispatcher.instance.scheduleFrame(); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/lib/windows.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/lib/windows.dart new file mode 100644 index 0000000000000000000000000000000000000000..d9ab32e6dfd996ea3c1362434bc403fa0663ae1d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/lib/windows.dart @@ -0,0 +1,50 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:typed_data'; + +import 'package:flutter/services.dart'; + +const MethodChannel _kMethodChannel = + MethodChannel('tests.flutter.dev/windows_startup_test'); + +/// Returns true if the application's window is visible. +Future isWindowVisible() async { + final bool? visible = await _kMethodChannel.invokeMethod('isWindowVisible'); + if (visible == null) { + throw 'Method channel unavailable'; + } + + return visible; +} + +/// Returns true if the app's dark mode is enabled. +Future isAppDarkModeEnabled() async { + final bool? enabled = await _kMethodChannel.invokeMethod('isAppDarkModeEnabled'); + if (enabled == null) { + throw 'Method channel unavailable'; + } + + return enabled; +} + +/// Returns true if the operating system dark mode setting is enabled. +Future isSystemDarkModeEnabled() async { + final bool? enabled = await _kMethodChannel.invokeMethod('isSystemDarkModeEnabled'); + if (enabled == null) { + throw 'Method channel unavailable'; + } + + return enabled; +} + +/// Test conversion of a UTF16 string to UTF8 using the app template utils. +Future testStringConversion(Int32List twoByteCodes) async { + final String? converted = await _kMethodChannel.invokeMethod('convertString', twoByteCodes); + if (converted == null) { + throw 'Method channel unavailable.'; + } + + return converted; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..5d592a991f4d33dc27eb0fddd714ac25c2f0c588 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/pubspec.lock @@ -0,0 +1,494 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct main" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct main" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct main" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: transitive + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct main" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct main" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + fake_async: + dependency: transitive + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_driver: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + frontend_server_client: + dependency: "direct main" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + fuchsia_remote_debug_protocol: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" + glob: + dependency: "direct main" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + http_multi_server: + dependency: "direct main" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct main" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + io: + dependency: "direct main" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct main" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + logging: + dependency: "direct main" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct main" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mime: + dependency: "direct main" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct main" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct main" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: transitive + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + pool: + dependency: "direct main" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: transitive + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + pub_semver: + dependency: "direct main" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + shelf: + dependency: "direct main" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct main" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct main" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct main" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_map_stack_trace: + dependency: "direct main" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct main" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct main" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct main" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + sync_http: + dependency: "direct main" + description: + name: sync_http + sha256: "7f0cd72eca000d2e026bcd6f990b81d0ca06022ef4e32fb257b30d3d1014a961" + url: "https://pub.dev" + source: hosted + version: "0.3.1" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct main" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct main" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct main" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct main" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct main" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct main" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct main" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct main" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webdriver: + dependency: "direct main" + description: + name: webdriver + sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + webkit_inspection_protocol: + dependency: "direct main" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + yaml: + dependency: "direct main" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..3e91b43540a56b64b4189535b8d72e0c97b2d7de --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/pubspec.yaml @@ -0,0 +1,65 @@ +name: windows_startup_test +description: Integration test for Windows app's startup. + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + flutter_driver: + sdk: flutter + test: 1.24.9 + + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + args: 2.4.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + sync_http: 0.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webdriver: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: 7e66 diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/test_driver/main_test.dart b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/test_driver/main_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..b34e950fbb9fec9fbd69ecfb358970233794355f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/test_driver/main_test.dart @@ -0,0 +1,35 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter_driver/flutter_driver.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + test('Windows app starts and draws frame', () async { + final FlutterDriver driver = await FlutterDriver.connect(printCommunication: true); + final String result = await driver.requestData('verifyWindowVisibility'); + + expect(result, equals('success')); + + await driver.close(); + }, timeout: Timeout.none); + + test('Windows app theme matches system theme', () async { + final FlutterDriver driver = await FlutterDriver.connect(printCommunication: true); + final String result = await driver.requestData('verifyTheme'); + + expect(result, equals('success')); + + await driver.close(); + }, timeout: Timeout.none); + + test('Windows app template can convert string from UTF16 to UTF8', () async { + final FlutterDriver driver = await FlutterDriver.connect(printCommunication: true); + final String result = await driver.requestData('verifyStringConversion'); + + expect(result, equals('success')); + + await driver.close(); + }, timeout: Timeout.none); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/CMakeLists.txt b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..04d2abc343180de1ab1c0019495b803f6e61973c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/CMakeLists.txt @@ -0,0 +1,101 @@ +# Project-level configuration. +cmake_minimum_required(VERSION 3.14) +project(windows_startup_test LANGUAGES CXX) + +# The name of the executable created for the application. Change this to change +# the on-disk name of your application. +set(BINARY_NAME "windows_startup_test") + +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent +# versions of CMake. +cmake_policy(VERSION 3.14...3.25) + +# Define build configuration option. +get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if(IS_MULTICONFIG) + set(CMAKE_CONFIGURATION_TYPES "Debug;Profile;Release" + CACHE STRING "" FORCE) +else() + if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Debug" CACHE + STRING "Flutter build mode" FORCE) + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS + "Debug" "Profile" "Release") + endif() +endif() +# Define settings for the Profile build mode. +set(CMAKE_EXE_LINKER_FLAGS_PROFILE "${CMAKE_EXE_LINKER_FLAGS_RELEASE}") +set(CMAKE_SHARED_LINKER_FLAGS_PROFILE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE}") +set(CMAKE_C_FLAGS_PROFILE "${CMAKE_C_FLAGS_RELEASE}") +set(CMAKE_CXX_FLAGS_PROFILE "${CMAKE_CXX_FLAGS_RELEASE}") + +# Use Unicode for all projects. +add_definitions(-DUNICODE -D_UNICODE) + +# Compilation settings that should be applied to most targets. +# +# Be cautious about adding new options here, as plugins use this function by +# default. In most cases, you should add new options to specific targets instead +# of modifying this function. +function(APPLY_STANDARD_SETTINGS TARGET) + target_compile_features(${TARGET} PUBLIC cxx_std_17) + target_compile_options(${TARGET} PRIVATE /W4 /WX /wd"4100") + target_compile_options(${TARGET} PRIVATE /EHsc) + target_compile_definitions(${TARGET} PRIVATE "_HAS_EXCEPTIONS=0") + target_compile_definitions(${TARGET} PRIVATE "$<$:_DEBUG>") +endfunction() + +# Flutter library and tool build rules. +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter") +add_subdirectory(${FLUTTER_MANAGED_DIR}) + +# Application build; see runner/CMakeLists.txt. +add_subdirectory("runner") + +# Generated plugin build rules, which manage building the plugins and adding +# them to the application. +include(flutter/generated_plugins.cmake) + + +# === Installation === +# Support files are copied into place next to the executable, so that it can +# run in place. This is done instead of making a separate bundle (as on Linux) +# so that building and running from within Visual Studio will work. +set(BUILD_BUNDLE_DIR "$") +# Make the "install" step default, as it's required to run. +set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1) +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE) +endif() + +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data") +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}") + +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + COMPONENT Runtime) + +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) + +if(PLUGIN_BUNDLED_LIBRARIES) + install(FILES "${PLUGIN_BUNDLED_LIBRARIES}" + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" + COMPONENT Runtime) +endif() + +# Fully re-copy the assets directory on each build to avoid having stale files +# from a previous install. +set(FLUTTER_ASSET_DIR_NAME "flutter_assets") +install(CODE " + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\") + " COMPONENT Runtime) +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}" + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime) + +# Install the AOT library on non-Debug builds only. +install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" + CONFIGURATIONS Profile;Release + COMPONENT Runtime) diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/flutter/CMakeLists.txt b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/flutter/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..903f4899d6fced0eb941e159f7322b21b320c40c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/flutter/CMakeLists.txt @@ -0,0 +1,109 @@ +# This file controls Flutter-level build steps. It should not be edited. +cmake_minimum_required(VERSION 3.14) + +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral") + +# Configuration provided via flutter tool. +include(${EPHEMERAL_DIR}/generated_config.cmake) + +# TODO: Move the rest of this into files in ephemeral. See +# https://github.com/flutter/flutter/issues/57146. +set(WRAPPER_ROOT "${EPHEMERAL_DIR}/cpp_client_wrapper") + +# Set fallback configurations for older versions of the flutter tool. +if (NOT DEFINED FLUTTER_TARGET_PLATFORM) + set(FLUTTER_TARGET_PLATFORM "windows-x64") +endif() + +# === Flutter Library === +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/flutter_windows.dll") + +# Published to parent scope for install step. +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE) +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE) +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE) +set(AOT_LIBRARY "${PROJECT_DIR}/build/windows/app.so" PARENT_SCOPE) + +list(APPEND FLUTTER_LIBRARY_HEADERS + "flutter_export.h" + "flutter_windows.h" + "flutter_messenger.h" + "flutter_plugin_registrar.h" + "flutter_texture_registrar.h" +) +list(TRANSFORM FLUTTER_LIBRARY_HEADERS PREPEND "${EPHEMERAL_DIR}/") +add_library(flutter INTERFACE) +target_include_directories(flutter INTERFACE + "${EPHEMERAL_DIR}" +) +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}.lib") +add_dependencies(flutter flutter_assemble) + +# === Wrapper === +list(APPEND CPP_WRAPPER_SOURCES_CORE + "core_implementations.cc" + "standard_codec.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_CORE PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_PLUGIN + "plugin_registrar.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_PLUGIN PREPEND "${WRAPPER_ROOT}/") +list(APPEND CPP_WRAPPER_SOURCES_APP + "flutter_engine.cc" + "flutter_view_controller.cc" +) +list(TRANSFORM CPP_WRAPPER_SOURCES_APP PREPEND "${WRAPPER_ROOT}/") + +# Wrapper sources needed for a plugin. +add_library(flutter_wrapper_plugin STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} +) +apply_standard_settings(flutter_wrapper_plugin) +set_target_properties(flutter_wrapper_plugin PROPERTIES + POSITION_INDEPENDENT_CODE ON) +set_target_properties(flutter_wrapper_plugin PROPERTIES + CXX_VISIBILITY_PRESET hidden) +target_link_libraries(flutter_wrapper_plugin PUBLIC flutter) +target_include_directories(flutter_wrapper_plugin PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_plugin flutter_assemble) + +# Wrapper sources needed for the runner. +add_library(flutter_wrapper_app STATIC + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_APP} +) +apply_standard_settings(flutter_wrapper_app) +target_link_libraries(flutter_wrapper_app PUBLIC flutter) +target_include_directories(flutter_wrapper_app PUBLIC + "${WRAPPER_ROOT}/include" +) +add_dependencies(flutter_wrapper_app flutter_assemble) + +# === Flutter tool backend === +# _phony_ is a non-existent file to force this command to run every time, +# since currently there's no way to get a full input/output list from the +# flutter tool. +set(PHONY_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/_phony_") +set_source_files_properties("${PHONY_OUTPUT}" PROPERTIES SYMBOLIC TRUE) +add_custom_command( + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} + ${PHONY_OUTPUT} + COMMAND ${CMAKE_COMMAND} -E env + ${FLUTTER_TOOL_ENVIRONMENT} + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat" + ${FLUTTER_TARGET_PLATFORM} $ + VERBATIM +) +add_custom_target(flutter_assemble DEPENDS + "${FLUTTER_LIBRARY}" + ${FLUTTER_LIBRARY_HEADERS} + ${CPP_WRAPPER_SOURCES_CORE} + ${CPP_WRAPPER_SOURCES_PLUGIN} + ${CPP_WRAPPER_SOURCES_APP} +) diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/CMakeLists.txt b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..394917c053a04daa76d8b94f0a02db0bd99e1034 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/CMakeLists.txt @@ -0,0 +1,40 @@ +cmake_minimum_required(VERSION 3.14) +project(runner LANGUAGES CXX) + +# Define the application target. To change its name, change BINARY_NAME in the +# top-level CMakeLists.txt, not the value here, or `flutter run` will no longer +# work. +# +# Any new source files that you add to the application should be added here. +add_executable(${BINARY_NAME} WIN32 + "flutter_window.cpp" + "main.cpp" + "utils.cpp" + "win32_window.cpp" + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" + "Runner.rc" + "runner.exe.manifest" +) + +# Apply the standard set of build settings. This can be removed for applications +# that need different build settings. +apply_standard_settings(${BINARY_NAME}) + +# Add preprocessor definitions for the build version. +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION=\"${FLUTTER_VERSION}\"") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MAJOR=${FLUTTER_VERSION_MAJOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_MINOR=${FLUTTER_VERSION_MINOR}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_PATCH=${FLUTTER_VERSION_PATCH}") +target_compile_definitions(${BINARY_NAME} PRIVATE "FLUTTER_VERSION_BUILD=${FLUTTER_VERSION_BUILD}") + +# Disable Windows macros that collide with C++ standard library functions. +target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX") + +# Add dependency libraries and include directories. Add any application-specific +# dependencies here. +target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app) +target_link_libraries(${BINARY_NAME} PRIVATE "dwmapi.lib") +target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}") + +# Run the Flutter tool portions of the build. This must not be removed. +add_dependencies(${BINARY_NAME} flutter_assemble) diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/Runner.rc b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/Runner.rc new file mode 100644 index 0000000000000000000000000000000000000000..c1a82e368c8a0650e4449a0dcf00ce088d42ca4a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/Runner.rc @@ -0,0 +1,121 @@ +// Microsoft Visual C++ generated resource script. +// +#pragma code_page(65001) +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// English (United States) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Icon +// + +// Icon with lowest ID value placed first to ensure application icon +// remains consistent on all systems. +// IDI_APP_ICON ICON "resources\\app_icon.ico" + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +#if defined(FLUTTER_VERSION_MAJOR) && defined(FLUTTER_VERSION_MINOR) && defined(FLUTTER_VERSION_PATCH) && defined(FLUTTER_VERSION_BUILD) +#define VERSION_AS_NUMBER FLUTTER_VERSION_MAJOR,FLUTTER_VERSION_MINOR,FLUTTER_VERSION_PATCH,FLUTTER_VERSION_BUILD +#else +#define VERSION_AS_NUMBER 1,0,0,0 +#endif + +#if defined(FLUTTER_VERSION) +#define VERSION_AS_STRING FLUTTER_VERSION +#else +#define VERSION_AS_STRING "1.0.0" +#endif + +VS_VERSION_INFO VERSIONINFO + FILEVERSION VERSION_AS_NUMBER + PRODUCTVERSION VERSION_AS_NUMBER + FILEFLAGSMASK VS_FFI_FILEFLAGSMASK +#ifdef _DEBUG + FILEFLAGS VS_FF_DEBUG +#else + FILEFLAGS 0x0L +#endif + FILEOS VOS__WINDOWS32 + FILETYPE VFT_APP + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904e4" + BEGIN + VALUE "CompanyName", "com.example" "\0" + VALUE "FileDescription", "windows_startup_test" "\0" + VALUE "FileVersion", VERSION_AS_STRING "\0" + VALUE "InternalName", "windows_startup_test" "\0" + VALUE "LegalCopyright", "Copyright (C) 2022 com.example. All rights reserved." "\0" + VALUE "OriginalFilename", "windows_startup_test.exe" "\0" + VALUE "ProductName", "windows_startup_test" "\0" + VALUE "ProductVersion", VERSION_AS_STRING "\0" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1252 + END +END + +#endif // English (United States) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/flutter_window.cpp b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/flutter_window.cpp new file mode 100644 index 0000000000000000000000000000000000000000..33480aef2327d656a6a1dd0746375d8ae4369527 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/flutter_window.cpp @@ -0,0 +1,162 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "flutter_window.h" + +#include +#include + +#include +#include +#include + +#include "flutter/generated_plugin_registrant.h" +#include "utils.h" + +/// Window attribute that enables dark mode window decorations. +/// +/// Redefined in case the developer's machine has a Windows SDK older than +/// version 10.0.22000.0. +/// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE +#define DWMWA_USE_IMMERSIVE_DARK_MODE 20 +#endif + +/// Registry key for app theme preference. +/// +/// A value of 0 indicates apps should use dark mode. A non-zero or missing +/// value indicates apps should use light mode. +constexpr const wchar_t kGetPreferredBrightnessRegKey[] = + L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"; +constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme"; + +FlutterWindow::FlutterWindow(const flutter::DartProject& project) + : project_(project) {} + +FlutterWindow::~FlutterWindow() {} + +bool FlutterWindow::OnCreate() { + if (!Win32Window::OnCreate()) { + return false; + } + + RECT frame = GetClientArea(); + + // The size here must match the window dimensions to avoid unnecessary surface + // creation / destruction in the startup path. + flutter_controller_ = std::make_unique( + frame.right - frame.left, frame.bottom - frame.top, project_); + // Ensure that basic setup of the controller was successful. + if (!flutter_controller_->engine() || !flutter_controller_->view()) { + return false; + } + RegisterPlugins(flutter_controller_->engine()); + SetChildContent(flutter_controller_->view()->GetNativeWindow()); + + static std::mutex visible_mutex; + static bool visible = false; + + flutter_controller_->engine()->SetNextFrameCallback([&]() { + std::scoped_lock lock(visible_mutex); + this->Show(); + visible = true; + }); + + // Flutter can complete the first frame before the "show window" callback is + // registered. The following call ensures a frame is pending to ensure the + // window is shown. It is a no-op if the first frame hasn't completed yet. + flutter_controller_->ForceRedraw(); + + // Create a method channel to check the window's visibility. + flutter::MethodChannel<> channel( + flutter_controller_->engine()->messenger(), "tests.flutter.dev/windows_startup_test", + &flutter::StandardMethodCodec::GetInstance()); + + channel.SetMethodCallHandler( + [&](const flutter::MethodCall<>& call, + std::unique_ptr> result) { + std::string method = call.method_name(); + + if (method == "isWindowVisible") { + std::scoped_lock lock(visible_mutex); + result->Success(visible); + } else if (method == "isAppDarkModeEnabled") { + BOOL enabled; + HRESULT hr = DwmGetWindowAttribute(GetHandle(), + DWMWA_USE_IMMERSIVE_DARK_MODE, + &enabled, sizeof(enabled)); + if (SUCCEEDED(hr)) { + result->Success((bool)enabled); + } else if (hr == E_INVALIDARG) { + // Fallback if the operating system doesn't support dark mode. + result->Success(false); + } else { + result->Error("error", "Received result handle " + hr); + } + } else if (method == "isSystemDarkModeEnabled") { + DWORD data; + DWORD data_size = sizeof(data); + LONG status = RegGetValue(HKEY_CURRENT_USER, + kGetPreferredBrightnessRegKey, + kGetPreferredBrightnessRegValue, + RRF_RT_REG_DWORD, nullptr, &data, &data_size); + + if (status == ERROR_SUCCESS) { + // Preferred brightness is 0 if dark mode is enabled, + // otherwise non-zero. + result->Success(data == 0); + } else if (status == ERROR_FILE_NOT_FOUND) { + // Fallback if the operating system doesn't support dark mode. + result->Success(false); + } else { + result->Error("error", "Received status " + status); + } + } else if (method == "convertString") { + const flutter::EncodableValue* argument = call.arguments(); + const std::vector code_points = std::get>(*argument); + std::vector wide_str; + for (int32_t code_point : code_points) { + wide_str.push_back((wchar_t)(code_point)); + } + wide_str.push_back((wchar_t)0); + const std::string string = Utf8FromUtf16(wide_str.data()); + result->Success(string); + } else { + result->NotImplemented(); + } + }); + + return true; +} + +void FlutterWindow::OnDestroy() { + if (flutter_controller_) { + flutter_controller_ = nullptr; + } + + Win32Window::OnDestroy(); +} + +LRESULT +FlutterWindow::MessageHandler(HWND hwnd, UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + // Give Flutter, including plugins, an opportunity to handle window messages. + if (flutter_controller_) { + std::optional result = + flutter_controller_->HandleTopLevelWindowProc(hwnd, message, wparam, + lparam); + if (result) { + return *result; + } + } + + switch (message) { + case WM_FONTCHANGE: + flutter_controller_->engine()->ReloadSystemFonts(); + break; + } + + return Win32Window::MessageHandler(hwnd, message, wparam, lparam); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/flutter_window.h b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/flutter_window.h new file mode 100644 index 0000000000000000000000000000000000000000..bbc5836c018a235235e8094ab411d98e1c5443fa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/flutter_window.h @@ -0,0 +1,37 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef RUNNER_FLUTTER_WINDOW_H_ +#define RUNNER_FLUTTER_WINDOW_H_ + +#include +#include + +#include + +#include "win32_window.h" + +// A window that does nothing but host a Flutter view. +class FlutterWindow : public Win32Window { + public: + // Creates a new FlutterWindow hosting a Flutter view running |project|. + explicit FlutterWindow(const flutter::DartProject& project); + virtual ~FlutterWindow(); + + protected: + // Win32Window: + bool OnCreate() override; + void OnDestroy() override; + LRESULT MessageHandler(HWND window, UINT const message, WPARAM const wparam, + LPARAM const lparam) noexcept override; + + private: + // The project to run. + flutter::DartProject project_; + + // The Flutter instance hosted by this window. + std::unique_ptr flutter_controller_; +}; + +#endif // RUNNER_FLUTTER_WINDOW_H_ diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/main.cpp b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/main.cpp new file mode 100644 index 0000000000000000000000000000000000000000..141f6360587e4bf379ec7a7e8af9e290d16983fd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/main.cpp @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include +#include +#include + +#include "flutter_window.h" +#include "utils.h" + +int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, + _In_ wchar_t *command_line, _In_ int show_command) { + // Attach to console when present (e.g., 'flutter run') or create a + // new console when running with a debugger. + if (!::AttachConsole(ATTACH_PARENT_PROCESS) && ::IsDebuggerPresent()) { + CreateAndAttachConsole(); + } + + // Initialize COM, so that it is available for use in the library and/or + // plugins. + ::CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED); + + flutter::DartProject project(L"data"); + + std::vector command_line_arguments = + GetCommandLineArguments(); + + project.set_dart_entrypoint_arguments(std::move(command_line_arguments)); + + FlutterWindow window(project); + Win32Window::Point origin(10, 10); + Win32Window::Size size(1280, 720); + if (!window.Create(L"windows_startup_test", origin, size)) { + return EXIT_FAILURE; + } + window.SetQuitOnClose(true); + + ::MSG msg; + while (::GetMessage(&msg, nullptr, 0, 0)) { + ::TranslateMessage(&msg); + ::DispatchMessage(&msg); + } + + ::CoUninitialize(); + return EXIT_SUCCESS; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/resource.h b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/resource.h new file mode 100644 index 0000000000000000000000000000000000000000..c245ff19cb5805345a3d3265122298cb01b9d71f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/resource.h @@ -0,0 +1,20 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +//{{NO_DEPENDENCIES}} +// Microsoft Visual C++ generated include file. +// Used by Runner.rc +// +#define IDI_APP_ICON 101 + +// Next default values for new objects +// +#ifdef APSTUDIO_INVOKED +#ifndef APSTUDIO_READONLY_SYMBOLS +#define _APS_NEXT_RESOURCE_VALUE 102 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 +#define _APS_NEXT_SYMED_VALUE 101 +#endif +#endif diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/runner.exe.manifest b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/runner.exe.manifest new file mode 100644 index 0000000000000000000000000000000000000000..a42ea7687cb67e55af955dc8874a072e087ce3ed --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/runner.exe.manifest @@ -0,0 +1,20 @@ + + + + + PerMonitorV2 + + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/utils.cpp b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/utils.cpp new file mode 100644 index 0000000000000000000000000000000000000000..f677d8d5f71412f9b1445a198b3a7685f5bfcb74 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/utils.cpp @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "utils.h" + +#include +#include +#include +#include + +#include + +void CreateAndAttachConsole() { + if (::AllocConsole()) { + FILE *unused; + if (freopen_s(&unused, "CONOUT$", "w", stdout)) { + _dup2(_fileno(stdout), 1); + } + if (freopen_s(&unused, "CONOUT$", "w", stderr)) { + _dup2(_fileno(stdout), 2); + } + std::ios::sync_with_stdio(); + FlutterDesktopResyncOutputStreams(); + } +} + +std::vector GetCommandLineArguments() { + // Convert the UTF-16 command line arguments to UTF-8 for the Engine to use. + int argc; + wchar_t** argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); + if (argv == nullptr) { + return std::vector(); + } + + std::vector command_line_arguments; + + // Skip the first argument as it's the binary name. + for (int i = 1; i < argc; i++) { + command_line_arguments.push_back(Utf8FromUtf16(argv[i])); + } + + ::LocalFree(argv); + + return command_line_arguments; +} + +std::string Utf8FromUtf16(const wchar_t* utf16_string) { + if (utf16_string == nullptr) { + return std::string(); + } + int target_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + -1, nullptr, 0, nullptr, nullptr) + -1; // remove the trailing null character + int input_length = (int)wcslen(utf16_string); + std::string utf8_string; + if (target_length <= 0 || target_length > utf8_string.max_size()) { + return utf8_string; + } + utf8_string.resize(target_length); + int converted_length = ::WideCharToMultiByte( + CP_UTF8, WC_ERR_INVALID_CHARS, utf16_string, + input_length, utf8_string.data(), target_length, nullptr, nullptr); + if (converted_length == 0) { + return std::string(); + } + return utf8_string; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/utils.h b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/utils.h new file mode 100644 index 0000000000000000000000000000000000000000..54414c989ba716f78f3640e5407dd8ac74284aef --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/utils.h @@ -0,0 +1,23 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef RUNNER_UTILS_H_ +#define RUNNER_UTILS_H_ + +#include +#include + +// Creates a console for the process, and redirects stdout and stderr to +// it for both the runner and the Flutter library. +void CreateAndAttachConsole(); + +// Takes a null-terminated wchar_t* encoded in UTF-16 and returns a std::string +// encoded in UTF-8. Returns an empty std::string on failure. +std::string Utf8FromUtf16(const wchar_t* utf16_string); + +// Gets the command line arguments passed in as a std::vector, +// encoded in UTF-8. Returns an empty std::vector on failure. +std::vector GetCommandLineArguments(); + +#endif // RUNNER_UTILS_H_ diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/win32_window.cpp b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/win32_window.cpp new file mode 100644 index 0000000000000000000000000000000000000000..14a183d7eaa272a6faf6cc8811639b68142331fa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/win32_window.cpp @@ -0,0 +1,292 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "win32_window.h" + +#include +#include + +#include "resource.h" + +namespace { + +/// Window attribute that enables dark mode window decorations. +/// +/// Redefined in case the developer's machine has a Windows SDK older than +/// version 10.0.22000.0. +/// See: https://docs.microsoft.com/windows/win32/api/dwmapi/ne-dwmapi-dwmwindowattribute +#ifndef DWMWA_USE_IMMERSIVE_DARK_MODE +#define DWMWA_USE_IMMERSIVE_DARK_MODE 20 +#endif + +constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW"; + +/// Registry key for app theme preference. +/// +/// A value of 0 indicates apps should use dark mode. A non-zero or missing +/// value indicates apps should use light mode. +constexpr const wchar_t kGetPreferredBrightnessRegKey[] = + L"Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize"; +constexpr const wchar_t kGetPreferredBrightnessRegValue[] = L"AppsUseLightTheme"; + +// The number of Win32Window objects that currently exist. +static int g_active_window_count = 0; + +using EnableNonClientDpiScaling = BOOL __stdcall(HWND hwnd); + +// Scale helper to convert logical scaler values to physical using passed in +// scale factor +int Scale(int source, double scale_factor) { + return static_cast(source * scale_factor); +} + +// Dynamically loads the |EnableNonClientDpiScaling| from the User32 module. +// This API is only needed for PerMonitor V1 awareness mode. +void EnableFullDpiSupportIfAvailable(HWND hwnd) { + HMODULE user32_module = LoadLibraryA("User32.dll"); + if (!user32_module) { + return; + } + auto enable_non_client_dpi_scaling = + reinterpret_cast( + GetProcAddress(user32_module, "EnableNonClientDpiScaling")); + if (enable_non_client_dpi_scaling != nullptr) { + enable_non_client_dpi_scaling(hwnd); + } + FreeLibrary(user32_module); +} + +} // namespace + +// Manages the Win32Window's window class registration. +class WindowClassRegistrar { + public: + ~WindowClassRegistrar() = default; + + // Returns the singleton registrar instance. + static WindowClassRegistrar* GetInstance() { + if (!instance_) { + instance_ = new WindowClassRegistrar(); + } + return instance_; + } + + // Returns the name of the window class, registering the class if it hasn't + // previously been registered. + const wchar_t* GetWindowClass(); + + // Unregisters the window class. Should only be called if there are no + // instances of the window. + void UnregisterWindowClass(); + + private: + WindowClassRegistrar() = default; + + static WindowClassRegistrar* instance_; + + bool class_registered_ = false; +}; + +WindowClassRegistrar* WindowClassRegistrar::instance_ = nullptr; + +const wchar_t* WindowClassRegistrar::GetWindowClass() { + if (!class_registered_) { + WNDCLASS window_class{}; + window_class.hCursor = LoadCursor(nullptr, IDC_ARROW); + window_class.lpszClassName = kWindowClassName; + window_class.style = CS_HREDRAW | CS_VREDRAW; + window_class.cbClsExtra = 0; + window_class.cbWndExtra = 0; + window_class.hInstance = GetModuleHandle(nullptr); + window_class.hIcon = + LoadIcon(window_class.hInstance, MAKEINTRESOURCE(IDI_APP_ICON)); + window_class.hbrBackground = 0; + window_class.lpszMenuName = nullptr; + window_class.lpfnWndProc = Win32Window::WndProc; + RegisterClass(&window_class); + class_registered_ = true; + } + return kWindowClassName; +} + +void WindowClassRegistrar::UnregisterWindowClass() { + UnregisterClass(kWindowClassName, nullptr); + class_registered_ = false; +} + +Win32Window::Win32Window() { + ++g_active_window_count; +} + +Win32Window::~Win32Window() { + --g_active_window_count; + Destroy(); +} + +bool Win32Window::Create(const std::wstring& title, + const Point& origin, + const Size& size) { + Destroy(); + + const wchar_t* window_class = + WindowClassRegistrar::GetInstance()->GetWindowClass(); + + const POINT target_point = {static_cast(origin.x), + static_cast(origin.y)}; + HMONITOR monitor = MonitorFromPoint(target_point, MONITOR_DEFAULTTONEAREST); + UINT dpi = FlutterDesktopGetDpiForMonitor(monitor); + double scale_factor = dpi / 96.0; + + HWND window = CreateWindow( + window_class, title.c_str(), WS_OVERLAPPEDWINDOW, + Scale(origin.x, scale_factor), Scale(origin.y, scale_factor), + Scale(size.width, scale_factor), Scale(size.height, scale_factor), + nullptr, nullptr, GetModuleHandle(nullptr), this); + + if (!window) { + return false; + } + + UpdateTheme(window); + + return OnCreate(); +} + +bool Win32Window::Show() { + return ShowWindow(window_handle_, SW_SHOWNORMAL); +} + +// static +LRESULT CALLBACK Win32Window::WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + if (message == WM_NCCREATE) { + auto window_struct = reinterpret_cast(lparam); + SetWindowLongPtr(window, GWLP_USERDATA, + reinterpret_cast(window_struct->lpCreateParams)); + + auto that = static_cast(window_struct->lpCreateParams); + EnableFullDpiSupportIfAvailable(window); + that->window_handle_ = window; + } else if (Win32Window* that = GetThisFromHandle(window)) { + return that->MessageHandler(window, message, wparam, lparam); + } + + return DefWindowProc(window, message, wparam, lparam); +} + +LRESULT +Win32Window::MessageHandler(HWND hwnd, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept { + switch (message) { + case WM_DESTROY: + window_handle_ = nullptr; + Destroy(); + if (quit_on_close_) { + PostQuitMessage(0); + } + return 0; + + case WM_DPICHANGED: { + auto newRectSize = reinterpret_cast(lparam); + LONG newWidth = newRectSize->right - newRectSize->left; + LONG newHeight = newRectSize->bottom - newRectSize->top; + + SetWindowPos(hwnd, nullptr, newRectSize->left, newRectSize->top, newWidth, + newHeight, SWP_NOZORDER | SWP_NOACTIVATE); + + return 0; + } + case WM_SIZE: { + RECT rect = GetClientArea(); + if (child_content_ != nullptr) { + // Size and position the child window. + MoveWindow(child_content_, rect.left, rect.top, rect.right - rect.left, + rect.bottom - rect.top, TRUE); + } + return 0; + } + + case WM_ACTIVATE: + if (child_content_ != nullptr) { + SetFocus(child_content_); + } + return 0; + + case WM_DWMCOLORIZATIONCOLORCHANGED: + UpdateTheme(hwnd); + return 0; + } + + return DefWindowProc(window_handle_, message, wparam, lparam); +} + +void Win32Window::Destroy() { + OnDestroy(); + + if (window_handle_) { + DestroyWindow(window_handle_); + window_handle_ = nullptr; + } + if (g_active_window_count == 0) { + WindowClassRegistrar::GetInstance()->UnregisterWindowClass(); + } +} + +Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { + return reinterpret_cast( + GetWindowLongPtr(window, GWLP_USERDATA)); +} + +void Win32Window::SetChildContent(HWND content) { + child_content_ = content; + SetParent(content, window_handle_); + RECT frame = GetClientArea(); + + MoveWindow(content, frame.left, frame.top, frame.right - frame.left, + frame.bottom - frame.top, true); + + SetFocus(child_content_); +} + +RECT Win32Window::GetClientArea() { + RECT frame; + GetClientRect(window_handle_, &frame); + return frame; +} + +HWND Win32Window::GetHandle() { + return window_handle_; +} + +void Win32Window::SetQuitOnClose(bool quit_on_close) { + quit_on_close_ = quit_on_close; +} + +bool Win32Window::OnCreate() { + // No-op; provided for subclasses. + return true; +} + +void Win32Window::OnDestroy() { + // No-op; provided for subclasses. +} + +void Win32Window::UpdateTheme(HWND const window) { + DWORD light_mode; + DWORD light_mode_size = sizeof(light_mode); + LSTATUS result = RegGetValue(HKEY_CURRENT_USER, kGetPreferredBrightnessRegKey, + kGetPreferredBrightnessRegValue, + RRF_RT_REG_DWORD, nullptr, &light_mode, + &light_mode_size); + + if (result == ERROR_SUCCESS) { + BOOL enable_dark_mode = light_mode == 0; + DwmSetWindowAttribute(window, DWMWA_USE_IMMERSIVE_DARK_MODE, + &enable_dark_mode, sizeof(enable_dark_mode)); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/win32_window.h b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/win32_window.h new file mode 100644 index 0000000000000000000000000000000000000000..bb93e8879162ee652a0af7e428d938ad027ddcd7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/integration_tests/windows_startup_test/windows/runner/win32_window.h @@ -0,0 +1,106 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef RUNNER_WIN32_WINDOW_H_ +#define RUNNER_WIN32_WINDOW_H_ + +#include + +#include +#include +#include + +// A class abstraction for a high DPI-aware Win32 Window. Intended to be +// inherited from by classes that wish to specialize with custom +// rendering and input handling +class Win32Window { + public: + struct Point { + unsigned int x; + unsigned int y; + Point(unsigned int x, unsigned int y) : x(x), y(y) {} + }; + + struct Size { + unsigned int width; + unsigned int height; + Size(unsigned int width, unsigned int height) + : width(width), height(height) {} + }; + + Win32Window(); + virtual ~Win32Window(); + + // Creates a win32 window with |title| that is positioned and sized using + // |origin| and |size|. New windows are created on the default monitor. Window + // sizes are specified to the OS in physical pixels, hence to ensure a + // consistent size this function will scale the inputted width and height as + // as appropriate for the default monitor. The window is invisible until + // |Show| is called. Returns true if the window was created successfully. + bool Create(const std::wstring& title, const Point& origin, const Size& size); + + // Show the current window. Returns true if the window was successfully shown. + bool Show(); + + // Release OS resources associated with window. + void Destroy(); + + // Inserts |content| into the window tree. + void SetChildContent(HWND content); + + // Returns the backing Window handle to enable clients to set icon and other + // window properties. Returns nullptr if the window has been destroyed. + HWND GetHandle(); + + // If true, closing this window will quit the application. + void SetQuitOnClose(bool quit_on_close); + + // Return a RECT representing the bounds of the current client area. + RECT GetClientArea(); + + protected: + // Processes and route salient window messages for mouse handling, + // size change and DPI. Delegates handling of these to member overloads that + // inheriting classes can handle. + virtual LRESULT MessageHandler(HWND window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Called when CreateAndShow is called, allowing subclass window-related + // setup. Subclasses should return false if setup fails. + virtual bool OnCreate(); + + // Called when Destroy is called. + virtual void OnDestroy(); + + private: + friend class WindowClassRegistrar; + + // OS callback called by message pump. Handles the WM_NCCREATE message which + // is passed when the non-client area is being created and enables automatic + // non-client DPI scaling so that the non-client area automatically + // responds to changes in DPI. All other messages are handled by + // MessageHandler. + static LRESULT CALLBACK WndProc(HWND const window, + UINT const message, + WPARAM const wparam, + LPARAM const lparam) noexcept; + + // Retrieves a class instance pointer for |window| + static Win32Window* GetThisFromHandle(HWND const window) noexcept; + + // Update the window frame's theme to match the system theme. + static void UpdateTheme(HWND const window); + + bool quit_on_close_ = false; + + // window handle for top level window. + HWND window_handle_ = nullptr; + + // window handle for hosted content. + HWND child_content_ = nullptr; +}; + +#endif // RUNNER_WIN32_WINDOW_H_ diff --git a/novelforge-project/agent-workspace/flutter/dev/manual_tests/android.iml b/novelforge-project/agent-workspace/flutter/dev/manual_tests/android.iml new file mode 100644 index 0000000000000000000000000000000000000000..79f6223dbf740f805ef97f2b382f592944c1b899 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/manual_tests/android.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/manual_tests/manual_tests.iml b/novelforge-project/agent-workspace/flutter/dev/manual_tests/manual_tests.iml new file mode 100644 index 0000000000000000000000000000000000000000..1d83ed3abc9085f991ca3f8f864f38df5577a8a6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/manual_tests/manual_tests.iml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/manual_tests/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/manual_tests/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..2d3f6c8c4454cc1d7407a2d0755161ed06822cc8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/manual_tests/pubspec.lock @@ -0,0 +1,188 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: "direct dev" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct dev" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + path: + dependency: "direct dev" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: "direct dev" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct dev" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct dev" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" +sdks: + dart: ">=3.2.0-0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/manual_tests/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/manual_tests/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6e5d6f6afc2716fb04603061704dd045e2b253fa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/manual_tests/pubspec.yaml @@ -0,0 +1,40 @@ +name: manual_tests + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +flutter: + uses-material-design: true + +# PUBSPEC CHECKSUM: 8023 diff --git a/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/analysis_options.yaml b/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/analysis_options.yaml new file mode 100644 index 0000000000000000000000000000000000000000..4c1615ac5ac1370700d88f29303f61568745587a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/analysis_options.yaml @@ -0,0 +1,3 @@ +analyzer: + exclude: + - '**' diff --git a/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6499f49c5f8a10cf33f07fb4535e97ad8541cdf4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/pubspec.yaml @@ -0,0 +1,8 @@ +name: missing_dependency_tests + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter diff --git a/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/trivial_expectation.txt b/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/trivial_expectation.txt new file mode 100644 index 0000000000000000000000000000000000000000..cfd88b36487c0c8dfe77247293aa2b2677d785fd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/trivial_expectation.txt @@ -0,0 +1,8 @@ +<> +<> +<> +Error: cannot run without a dependency on either "package:flutter_test" or "package:test". Ensure the following lines are present in your pubspec.yaml: + +dev_dependencies: + flutter_test: + sdk: flutter diff --git a/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/trivial_test.dart b/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/trivial_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..e67f08750fb679568572d6d9f25653df82eeacbb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/missing_dependency_tests/trivial_test.dart @@ -0,0 +1,11 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + test('Trivial test', () { + expect(42, 42); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/README.md b/novelforge-project/agent-workspace/flutter/dev/snippets/README.md new file mode 100644 index 0000000000000000000000000000000000000000..ce1f731f1d3002c634b3446e8a9b76396fcf1797 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/README.md @@ -0,0 +1,204 @@ +# Dartdoc Sample Generation + +The Flutter API documentation contains code blocks that help provide context or +a good starting point when learning to use any of Flutter's APIs. + +To generate these code blocks, Flutter uses dartdoc tools to turn documentation +in the source code into API documentation, as seen on [https://api.flutter.dev/] + +## Table of Contents + +- [Types of code blocks](#types-of-code-blocks) + - [Snippet tool](#snippet-tool) + - [Sample tool](#sample-tool) +- [Skeletons](#skeletons) +- [Test Doc Generation Workflow](#test-doc-generation-workflow) + +## Types of code blocks + +There are three kinds of code blocks. + +- A `snippet`, which is a more or less context-free code snippet that we + magically determine how to analyze. + +- A `dartpad` sample, which gets placed into a full-fledged application, and can + be executed inline in the documentation on the web page using + DartPad. + +- A `sample`, which gets placed into a full-fledged application, but isn't + placed into DartPad in the documentation because it doesn't make sense to do + so. + +Ideally, every sample is a DartPad sample, but some samples don't have any visual +representation and some just don't make sense that way (for example, sample +code for setting the system UI's notification area color on Android won't do +anything on the web). + +### Snippet Tool + +![Code snippet image](assets/code_snippet.png) + +The code `snippet` tool generates a block containing a description and example +code. Here is an example of the code `snippet` tool in use: + +```dart +/// {@tool snippet} +/// +/// If the avatar is to have an image, the image should be specified in the +/// [backgroundImage] property: +/// +/// ```dart +/// CircleAvatar( +/// backgroundImage: NetworkImage(userAvatarUrl), +/// ) +/// ``` +/// {@end-tool} +``` + +This will generate sample code that can be copied to the clipboard and added to +existing applications. + +This uses the skeleton for `snippet` snippets when generating the HTML to put +into the Dart docs. You can find this [template in the Flutter +repo](https://github.com/flutter/flutter/blob/main/dev/snippets/config/skeletons/snippet.html). + +#### Analysis + +The +[`analyze_sample_code.dart`](https://github.com/flutter/flutter/blob/main/dev/bots/analyze_sample_code.dart) +script finds code inside the `@tool +snippet` sections and uses the Dart analyzer to check them. + +There are several kinds of sample code you can specify: + +- Constructor calls, typically showing what might exist in a build method. These + will be inserted into an assignment expression assigning to a variable of type + "dynamic" and followed by a semicolon, for analysis. + +- Class definitions. These start with "class", and are analyzed verbatim. + +- Other code. It gets included verbatim, though any line that says `// ...` is + considered to separate the block into multiple blocks to be processed + individually. + +The above means that it's tricky to include verbatim imperative code (e.g. a +call to a method) since it won't be valid to have such code at the top level. +Instead, wrap it in a function or even a whole class, or make it a valid +variable declaration. + +You can declare code that should be included in the analysis but not shown in +the API docs by adding a comment "// Examples can assume:" to the file (usually +at the top of the file, after the imports), following by one or more +commented-out lines of code. That code is included verbatim in the analysis. For +example: + +```dart +// Examples can assume: +// final BuildContext context; +// final String userAvatarUrl; +``` + +You can assume that the entire Flutter framework and most common +`dart:*` packages are imported and in scope; `dart:math` as `math` and +`dart:ui` as `ui`. + +### Sample Tool + +![Code sample image](assets/code_sample.png) + +The code `sample` and `dartpad` tools can expand sample code into full Flutter +applications. These sample applications can be directly copied and used to +demonstrate the API's functionality in a sample application, or used with the +`flutter create` command to create a local project with the sample code. The +`dartpad` samples are embedded into the API docs web page and are live +applications in the API documentation. + +This uses the skeleton for [application](https://github.com/flutter/flutter/blob/main/dev/snippets/config/skeletons/sample.html) +snippets in the Flutter repo. + +The `sample` and `dartpad` tools also allow for quick Flutter app generation +using the following command: + +```bash +flutter create --sample=[directory.File.sampleNumber] [name_of_project_directory] +``` + +This command is displayed as part of the sample in the API docs. + +#### Sample Analysis + +The [`../bots/analyze_sample_code.dart`](../bots/analyze_sample_code.dart) +script finds code inside the `@tool sample` sections and uses the Dart analyzer +to check the sample code. + +## Skeletons + +A skeleton (concerning this tool) is an HTML template into which the Dart +code blocks and descriptions are interpolated. + +There is currently one skeleton for +[application](https://github.com/flutter/flutter/blob/main/dev/snippets/config/skeletons/sample.html) +samples, one for +[dartpad](https://github.com/flutter/flutter/blob/main/dev/snippets/config/skeletons/dartpad-sample.html), +and one for +[snippet](https://github.com/flutter/flutter/blob/main/dev/snippets/config/skeletons/snippet.html) +code samples, but there could be more. + +Skeletons use mustache notation (e.g. `{{code}}`) to mark where components will +be interpolated into the template. It doesn't use the mustache +package since these are simple string substitutions, but it uses the same +syntax. + +The code block generation tools that process the source input and emit HTML for +output, which dartdoc places back into the documentation. Any options given to +the `{@tool ...}` directive are passed on verbatim to the tool. + +The `snippets` tool renders these examples through a combination of markdown +and HTML using the `{@inject-html}` dartdoc directive. + +## Test Doc Generation Workflow + +If you are making changes to an existing code block or are creating a new code +block, follow these steps to generate a local copy of the API docs and verify +that your code blocks are showing up correctly: + +1. Make an update to a code block or create a new code block. +2. From the root directory, run `./dev/bots/docs.sh`. This should start + generating a local copy of the API documentation. + Supplying the "--output" argument allows you to specify the output zip file + for the completed documentation. Defaults to `api_docs.zip`` in the current + directory. +3. Once complete, unzip the files to the desired location and open the `index.html` + within. + +Note that generating the sample output will not allow you to run your code in +DartPad, because DartPad pulls the code it runs from the appropriate docs server +(main or stable). + +Copy the generated code and paste it into a regular DartPad instance to test if +it runs in DartPad. To get the code that will be produced by your documentation +changes, run sample analysis locally (see the next section) and paste the output +into a DartPad at [https://dartpad.dartlang.org]. + +## Running sample analysis locally + +If all you want to do is analyze the sample code you have written locally, then +generating the entire docs output takes a long time. + +Instead, you can run the analysis locally with this command from the Flutter root: + +```bash +TMPDIR=/tmp bin/cache/dart-sdk/bin/dart dev/bots/analyze_sample_code.dart --temp=samples +``` + +This will analyze the samples, and leave the generated files in `/tmp/samples` + +You can find the sample you are working on in `/tmp/samples`. It is named using the +path to the file it is in, and the line of the file that the `{@tool ...}` directive +is on. + +For example, the file `sample.src.widgets.animated_list.52.dart` points to the sample +in `packages/flutter/src/widgets/animated_list.dart` at line 52. You can then take the +contents of that file, and paste it into [Dartpad](https://dartpad.dev) and see if it +works. If the sample relies on new features that have just landed, it may not work +until the features make it into the `dev` branch. diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/bin/snippets.dart b/novelforge-project/agent-workspace/flutter/dev/snippets/bin/snippets.dart new file mode 100644 index 0000000000000000000000000000000000000000..eb73a4b8ffb1b9f77ac3b4029f1da87b5bea6204 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/bin/snippets.dart @@ -0,0 +1,286 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io' show ProcessResult, exitCode, stderr; + +import 'package:args/args.dart'; +import 'package:file/file.dart'; +import 'package:file/local.dart'; +import 'package:path/path.dart' as path; +import 'package:platform/platform.dart'; +import 'package:process/process.dart'; +import 'package:snippets/snippets.dart'; + +const String _kElementOption = 'element'; +const String _kFormatOutputOption = 'format-output'; +const String _kHelpOption = 'help'; +const String _kInputOption = 'input'; +const String _kLibraryOption = 'library'; +const String _kOutputDirectoryOption = 'output-directory'; +const String _kOutputOption = 'output'; +const String _kPackageOption = 'package'; +const String _kSerialOption = 'serial'; +const String _kTypeOption = 'type'; + +class GitStatusFailed implements Exception { + GitStatusFailed(this.gitResult); + + final ProcessResult gitResult; + + @override + String toString() { + return 'git status exited with a non-zero exit code: ' + '${gitResult.exitCode}:\n${gitResult.stderr}\n${gitResult.stdout}'; + } +} + +/// A singleton filesystem that can be set by tests to a memory filesystem. +FileSystem filesystem = const LocalFileSystem(); + +/// A singleton snippet generator that can be set by tests to a mock, so that +/// we can test the command line parsing. +SnippetGenerator snippetGenerator = SnippetGenerator(); + +/// A singleton platform that can be set by tests for use in testing command line +/// parsing. +Platform platform = const LocalPlatform(); + +/// A singleton process manager that can be set by tests for use in testing. +ProcessManager processManager = const LocalProcessManager(); + +/// Get the name of the channel these docs are from. +/// +/// First check env variable LUCI_BRANCH, then refer to the currently +/// checked out git branch. +String getChannelName({ + Platform platform = const LocalPlatform(), + ProcessManager processManager = const LocalProcessManager(), +}) { + final String? envReleaseChannel = platform.environment['LUCI_BRANCH']?.trim(); + if (['master', 'stable', 'main'].contains(envReleaseChannel)) { + // Backward compatibility: Still support running on "master", but pretend it is "main". + if (envReleaseChannel == 'master') { + return 'main'; + } + return envReleaseChannel!; + } + + final RegExp gitBranchRegexp = RegExp(r'^## (?.*)'); + final ProcessResult gitResult = processManager.runSync( + ['git', 'status', '-b', '--porcelain'], + // Use the FLUTTER_ROOT, if defined. + workingDirectory: platform.environment['FLUTTER_ROOT']?.trim() ?? + filesystem.currentDirectory.path, + // Adding extra debugging output to help debug why git status inexplicably fails + // (random non-zero error code) about 2% of the time. + environment: {'GIT_TRACE': '2', 'GIT_TRACE_SETUP': '2'}); + if (gitResult.exitCode != 0) { + throw GitStatusFailed(gitResult); + } + + final RegExpMatch? gitBranchMatch = gitBranchRegexp + .firstMatch((gitResult.stdout as String).trim().split('\n').first); + return gitBranchMatch == null + ? '' + : gitBranchMatch.namedGroup('branch')!.split('...').first; +} + +const List sampleTypes = [ + 'snippet', + 'sample', + 'dartpad', +]; + +// This is a hack to workaround the fact that git status inexplicably fails +// (with random non-zero error code) about 2% of the time. +String getChannelNameWithRetries({ + Platform platform = const LocalPlatform(), + ProcessManager processManager = const LocalProcessManager(), +}) { + int retryCount = 0; + + while (retryCount < 2) { + try { + return getChannelName(platform: platform, processManager: processManager); + } on GitStatusFailed catch (e) { + retryCount += 1; + stderr.write( + 'git status failed, retrying ($retryCount)\nError report:\n$e'); + } + } + + return getChannelName(platform: platform, processManager: processManager); +} + +/// Generates snippet dartdoc output for a given input, and creates any sample +/// applications needed by the snippet. +void main(List argList) { + final Map environment = platform.environment; + final ArgParser parser = ArgParser(); + + parser.addOption( + _kTypeOption, + defaultsTo: 'dartpad', + allowed: sampleTypes, + allowedHelp: { + 'dartpad': + 'Produce a code sample application for using in Dartpad.', + 'sample': + 'Produce a code sample application.', + 'snippet': + 'Produce a nicely formatted piece of sample code.', + }, + help: 'The type of snippet to produce.', + ); + parser.addOption( + _kOutputOption, + help: 'The output name for the generated sample application. Overrides ' + 'the naming generated by the --$_kPackageOption/--$_kLibraryOption/--$_kElementOption ' + 'arguments. Metadata will be written alongside in a .json file. ' + 'The basename of this argument is used as the ID. If this is a ' + 'relative path, will be placed under the --$_kOutputDirectoryOption location.', + ); + parser.addOption( + _kOutputDirectoryOption, + defaultsTo: '.', + help: 'The output path for the generated sample application.', + ); + parser.addOption( + _kInputOption, + defaultsTo: environment['INPUT'], + help: 'The input file containing the sample code to inject.', + ); + parser.addOption( + _kPackageOption, + defaultsTo: environment['PACKAGE_NAME'], + help: 'The name of the package that this sample belongs to.', + ); + parser.addOption( + _kLibraryOption, + defaultsTo: environment['LIBRARY_NAME'], + help: 'The name of the library that this sample belongs to.', + ); + parser.addOption( + _kElementOption, + defaultsTo: environment['ELEMENT_NAME'], + help: 'The name of the element that this sample belongs to.', + ); + parser.addOption( + _kSerialOption, + defaultsTo: environment['INVOCATION_INDEX'], + help: 'A unique serial number for this snippet tool invocation.', + ); + parser.addFlag( + _kFormatOutputOption, + defaultsTo: true, + help: 'Applies the Dart formatter to the published/extracted sample code.', + ); + parser.addFlag( + _kHelpOption, + negatable: false, + help: 'Prints help documentation for this command', + ); + + final ArgResults args = parser.parse(argList); + + if (args[_kHelpOption]! as bool) { + stderr.writeln(parser.usage); + exitCode = 0; + return; + } + + final String sampleType = args[_kTypeOption]! as String; + + if (args[_kInputOption] == null) { + stderr.writeln(parser.usage); + errorExit( + 'The --$_kInputOption option must be specified, either on the command ' + 'line, or in the INPUT environment variable.'); + return; + } + + final File input = filesystem.file(args['input']! as String); + if (!input.existsSync()) { + errorExit('The input file ${input.path} does not exist.'); + return; + } + + final bool formatOutput = args[_kFormatOutputOption]! as bool; + final String packageName = args[_kPackageOption] as String? ?? ''; + final String libraryName = args[_kLibraryOption] as String? ?? ''; + final String elementName = args[_kElementOption] as String? ?? ''; + final String serial = args[_kSerialOption] as String? ?? ''; + late String id; + File? output; + final Directory outputDirectory = + filesystem.directory(args[_kOutputDirectoryOption]! as String).absolute; + + if (args[_kOutputOption] != null) { + id = path.basenameWithoutExtension(args[_kOutputOption]! as String); + final File outputPath = filesystem.file(args[_kOutputOption]! as String); + if (outputPath.isAbsolute) { + output = outputPath; + } else { + output = + filesystem.file(path.join(outputDirectory.path, outputPath.path)); + } + } else { + final List idParts = []; + if (packageName.isNotEmpty && packageName != 'flutter') { + idParts.add(packageName.replaceAll(RegExp(r'\W'), '_').toLowerCase()); + } + if (libraryName.isNotEmpty) { + idParts.add(libraryName.replaceAll(RegExp(r'\W'), '_').toLowerCase()); + } + if (elementName.isNotEmpty) { + idParts.add(elementName); + } + if (serial.isNotEmpty) { + idParts.add(serial); + } + if (idParts.isEmpty) { + errorExit('Unable to determine ID. At least one of --$_kPackageOption, ' + '--$_kLibraryOption, --$_kElementOption, -$_kSerialOption, or the environment variables ' + 'PACKAGE_NAME, LIBRARY_NAME, ELEMENT_NAME, or INVOCATION_INDEX must be non-empty.'); + return; + } + id = idParts.join('.'); + output = outputDirectory.childFile('$id.dart'); + } + output.parent.createSync(recursive: true); + + final int? sourceLine = environment['SOURCE_LINE'] != null + ? int.tryParse(environment['SOURCE_LINE']!) + : null; + final String sourcePath = environment['SOURCE_PATH'] ?? 'unknown.dart'; + final SnippetDartdocParser sampleParser = SnippetDartdocParser(filesystem); + final SourceElement element = sampleParser.parseFromDartdocToolFile( + input, + startLine: sourceLine, + element: elementName, + sourceFile: filesystem.file(sourcePath), + type: sampleType, + ); + final Map metadata = { + 'channel': getChannelNameWithRetries( + platform: platform, processManager: processManager), + 'serial': serial, + 'id': id, + 'package': packageName, + 'library': libraryName, + 'element': elementName, + }; + + for (final CodeSample sample in element.samples) { + sample.metadata.addAll(metadata); + snippetGenerator.generateCode( + sample, + output: output, + formatOutput: formatOutput, + ); + print(snippetGenerator.generateHtml(sample)); + } + + exitCode = 0; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/config/README.md b/novelforge-project/agent-workspace/flutter/dev/snippets/config/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d5539eeb56d51b4eaa79a2bb4372eed7b3e6dd4b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/config/README.md @@ -0,0 +1,7 @@ +# Dartdoc Samples and Snippets + +The [snippets] tool uses the files in the `skeletons` directory to inject code +blocks generated from `{@tool dartpad}`, `{@tool sample}`, and `{@tool snippet}` +sections found in doc comments into the API docs. + +[snippets]: https://github.com/flutter/assets-for-api-docs/tree/master/packages/snippets diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/lib/snippets.dart b/novelforge-project/agent-workspace/flutter/dev/snippets/lib/snippets.dart new file mode 100644 index 0000000000000000000000000000000000000000..116ae7970b4ec2c4bcf65a021f9307081f7e99d5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/lib/snippets.dart @@ -0,0 +1,11 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +export 'src/analysis.dart'; +export 'src/configuration.dart'; +export 'src/data_types.dart'; +export 'src/import_sorter.dart'; +export 'src/snippet_generator.dart'; +export 'src/snippet_parser.dart'; +export 'src/util.dart'; diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/lib/src/analysis.dart b/novelforge-project/agent-workspace/flutter/dev/snippets/lib/src/analysis.dart new file mode 100644 index 0000000000000000000000000000000000000000..73a871ae427840c40e4b5dec024fed6bab5d7c3c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/lib/src/analysis.dart @@ -0,0 +1,361 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:analyzer/dart/analysis/features.dart'; +import 'package:analyzer/dart/analysis/results.dart'; +import 'package:analyzer/dart/analysis/utilities.dart'; +import 'package:analyzer/dart/ast/ast.dart'; +import 'package:analyzer/dart/ast/token.dart'; +import 'package:analyzer/dart/ast/visitor.dart'; +import 'package:analyzer/file_system/file_system.dart' as afs; +import 'package:analyzer/file_system/physical_file_system.dart' as afs; +import 'package:analyzer/source/line_info.dart'; +import 'package:file/file.dart'; + +import 'data_types.dart'; +import 'util.dart'; + +/// Gets an iterable over all of the blocks of documentation comments in a file +/// using the analyzer. +/// +/// Each entry in the list is a list of source lines corresponding to the +/// documentation comment block. +Iterable> getFileDocumentationComments(File file) { + return getDocumentationComments(getFileElements(file)); +} + +/// Gets an iterable over all of the blocks of documentation comments from an +/// iterable over the [SourceElement]s involved. +Iterable> getDocumentationComments( + Iterable elements) { + return elements + .where((SourceElement element) => element.comment.isNotEmpty) + .map>((SourceElement element) => element.comment); +} + +/// Gets an iterable over the comment [SourceElement]s in a file. +Iterable getFileCommentElements(File file) { + return getCommentElements(getFileElements(file)); +} + +/// Filters the source `elements` to only return the comment elements. +Iterable getCommentElements(Iterable elements) { + return elements.where((SourceElement element) => element.comment.isNotEmpty); +} + +/// Reads the file content from a string, to avoid having to read the file more +/// than once if the caller already has the content in memory. +/// +/// The `file` argument is used to tag the lines with a filename that they came from. +Iterable getElementsFromString(String content, File file) { + final ParseStringResult parseResult = parseString( + featureSet: FeatureSet.fromEnableFlags2( + sdkLanguageVersion: FlutterInformation.instance.getDartSdkVersion(), + flags: [], + ), + content: content); + final _SourceVisitor visitor = + _SourceVisitor(file); + visitor.visitCompilationUnit(parseResult.unit); + visitor.assignLineNumbers(); + return visitor.elements; +} + +/// Gets an iterable over the [SourceElement]s in the given `file`. +/// +/// Takes an optional [ResourceProvider] to allow reading from a memory +/// filesystem. +Iterable getFileElements(File file, + {afs.ResourceProvider? resourceProvider}) { + resourceProvider ??= afs.PhysicalResourceProvider.INSTANCE; + final ParseStringResult parseResult = parseFile( + featureSet: FeatureSet.fromEnableFlags2( + sdkLanguageVersion: FlutterInformation.instance.getDartSdkVersion(), + flags: [], + ), + path: file.absolute.path, + resourceProvider: resourceProvider); + final _SourceVisitor visitor = + _SourceVisitor(file); + visitor.visitCompilationUnit(parseResult.unit); + visitor.assignLineNumbers(); + return visitor.elements; +} + +class _SourceVisitor extends RecursiveAstVisitor { + _SourceVisitor(this.file) : elements = {}; + + final Set elements; + String enclosingClass = ''; + + File file; + + void assignLineNumbers() { + final String contents = file.readAsStringSync(); + final LineInfo lineInfo = LineInfo.fromContent(contents); + + final Set removedElements = {}; + final Set replacedElements = {}; + for (final SourceElement element in elements) { + final List newLines = []; + for (final SourceLine line in element.comment) { + final CharacterLocation intervalLine = + lineInfo.getLocation(line.startChar); + newLines.add(line.copyWith(line: intervalLine.lineNumber)); + } + final int elementLine = lineInfo.getLocation(element.startPos).lineNumber; + replacedElements + .add(element.copyWith(comment: newLines, startLine: elementLine)); + removedElements.add(element); + } + elements.removeAll(removedElements); + elements.addAll(replacedElements); + } + + List _processComment(String element, Comment comment) { + final List result = []; + if (comment.tokens.isNotEmpty) { + for (final Token token in comment.tokens) { + result.add(SourceLine( + token.toString(), + element: element, + file: file, + startChar: token.charOffset, + endChar: token.charEnd, + )); + } + } + return result; + } + + @override + T? visitCompilationUnit(CompilationUnit node) { + elements.clear(); + return super.visitCompilationUnit(node); + } + + static bool isPublic(String name) { + return !name.startsWith('_'); + } + + static bool isInsideMethod(AstNode startNode) { + AstNode? node = startNode.parent; + while (node != null) { + if (node is MethodDeclaration) { + return true; + } + node = node.parent; + } + return false; + } + + @override + T? visitTopLevelVariableDeclaration(TopLevelVariableDeclaration node) { + for (final VariableDeclaration declaration in node.variables.variables) { + if (!isPublic(declaration.name.lexeme)) { + continue; + } + List comment = []; + if (node.documentationComment != null && + node.documentationComment!.tokens.isNotEmpty) { + comment = _processComment( + declaration.name.lexeme, node.documentationComment!); + } + elements.add( + SourceElement( + SourceElementType.topLevelVariableType, + declaration.name.lexeme, + node.beginToken.charOffset, + file: file, + className: enclosingClass, + comment: comment, + ), + ); + } + return super.visitTopLevelVariableDeclaration(node); + } + + @override + T? visitGenericTypeAlias(GenericTypeAlias node) { + if (isPublic(node.name.lexeme)) { + List comment = []; + if (node.documentationComment != null && + node.documentationComment!.tokens.isNotEmpty) { + comment = _processComment(node.name.lexeme, node.documentationComment!); + } + elements.add( + SourceElement( + SourceElementType.typedefType, + node.name.lexeme, + node.beginToken.charOffset, + file: file, + comment: comment, + ), + ); + } + return super.visitGenericTypeAlias(node); + } + + @override + T? visitFieldDeclaration(FieldDeclaration node) { + for (final VariableDeclaration declaration in node.fields.variables) { + if (!isPublic(declaration.name.lexeme) || !isPublic(enclosingClass)) { + continue; + } + List comment = []; + if (node.documentationComment != null && + node.documentationComment!.tokens.isNotEmpty) { + assert(enclosingClass.isNotEmpty); + comment = _processComment('$enclosingClass.${declaration.name.lexeme}', + node.documentationComment!); + } + elements.add( + SourceElement( + SourceElementType.fieldType, + declaration.name.lexeme, + node.beginToken.charOffset, + file: file, + className: enclosingClass, + comment: comment, + override: _isOverridden(node), + ), + ); + return super.visitFieldDeclaration(node); + } + return null; + } + + @override + T? visitConstructorDeclaration(ConstructorDeclaration node) { + final String fullName = + '$enclosingClass${node.name == null ? '' : '.${node.name}'}'; + if (isPublic(enclosingClass) && + (node.name == null || isPublic(node.name!.lexeme))) { + List comment = []; + if (node.documentationComment != null && + node.documentationComment!.tokens.isNotEmpty) { + comment = _processComment( + '$enclosingClass.$fullName', node.documentationComment!); + } + elements.add( + SourceElement( + SourceElementType.constructorType, + fullName, + node.beginToken.charOffset, + file: file, + className: enclosingClass, + comment: comment, + ), + ); + } + return super.visitConstructorDeclaration(node); + } + + @override + T? visitFunctionDeclaration(FunctionDeclaration node) { + if (isPublic(node.name.lexeme)) { + List comment = []; + // Skip functions that are defined inside of methods. + if (!isInsideMethod(node)) { + if (node.documentationComment != null && + node.documentationComment!.tokens.isNotEmpty) { + comment = + _processComment(node.name.lexeme, node.documentationComment!); + } + elements.add( + SourceElement( + SourceElementType.functionType, + node.name.lexeme, + node.beginToken.charOffset, + file: file, + comment: comment, + override: _isOverridden(node), + ), + ); + } + } + return super.visitFunctionDeclaration(node); + } + + @override + T? visitMethodDeclaration(MethodDeclaration node) { + if (isPublic(node.name.lexeme) && isPublic(enclosingClass)) { + List comment = []; + if (node.documentationComment != null && + node.documentationComment!.tokens.isNotEmpty) { + assert(enclosingClass.isNotEmpty); + comment = _processComment( + '$enclosingClass.${node.name.lexeme}', node.documentationComment!); + } + elements.add( + SourceElement( + SourceElementType.methodType, + node.name.lexeme, + node.beginToken.charOffset, + file: file, + className: enclosingClass, + comment: comment, + override: _isOverridden(node), + ), + ); + } + return super.visitMethodDeclaration(node); + } + + bool _isOverridden(AnnotatedNode node) { + return node.metadata.where((Annotation annotation) { + return annotation.name.name == 'override'; + }).isNotEmpty; + } + + @override + T? visitMixinDeclaration(MixinDeclaration node) { + enclosingClass = node.name.lexeme; + if (!node.name.lexeme.startsWith('_')) { + enclosingClass = node.name.lexeme; + List comment = []; + if (node.documentationComment != null && + node.documentationComment!.tokens.isNotEmpty) { + comment = _processComment(node.name.lexeme, node.documentationComment!); + } + elements.add( + SourceElement( + SourceElementType.classType, + node.name.lexeme, + node.beginToken.charOffset, + file: file, + comment: comment, + ), + ); + } + final T? result = super.visitMixinDeclaration(node); + enclosingClass = ''; + return result; + } + + @override + T? visitClassDeclaration(ClassDeclaration node) { + enclosingClass = node.name.lexeme; + if (!node.name.lexeme.startsWith('_')) { + enclosingClass = node.name.lexeme; + List comment = []; + if (node.documentationComment != null && + node.documentationComment!.tokens.isNotEmpty) { + comment = _processComment(node.name.lexeme, node.documentationComment!); + } + elements.add( + SourceElement( + SourceElementType.classType, + node.name.lexeme, + node.beginToken.charOffset, + file: file, + comment: comment, + ), + ); + } + final T? result = super.visitClassDeclaration(node); + enclosingClass = ''; + return result; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/lib/src/configuration.dart b/novelforge-project/agent-workspace/flutter/dev/snippets/lib/src/configuration.dart new file mode 100644 index 0000000000000000000000000000000000000000..cd6e1e3faaa92c912d6c88925674fd9a4c191b23 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/lib/src/configuration.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:file/file.dart'; +import 'package:file/local.dart'; +import 'package:path/path.dart' as path; + +// Represents the locations of all of the data for snippets. +class SnippetConfiguration { + const SnippetConfiguration({ + required this.configDirectory, + required this.skeletonsDirectory, + this.filesystem = const LocalFileSystem(), + }); + + final FileSystem filesystem; + + /// This is the configuration directory for the snippets system, containing + /// the skeletons and templates. + final Directory configDirectory; + + /// The directory containing the HTML skeletons to be filled out with metadata + /// and returned to dartdoc for insertion in the output. + final Directory skeletonsDirectory; + + /// Gets the skeleton file to use for the given [SampleType] and DartPad + /// preference. + File getHtmlSkeletonFile(String type) { + final String filename = + type == 'dartpad' ? 'dartpad-sample.html' : '$type.html'; + return filesystem.file(path.join(skeletonsDirectory.path, filename)); + } +} + +/// A class to compute the configuration of the snippets input and output +/// locations based in the current location of the snippets main.dart. +class FlutterRepoSnippetConfiguration extends SnippetConfiguration { + FlutterRepoSnippetConfiguration({required this.flutterRoot, super.filesystem}) + : super( + configDirectory: _underRoot(filesystem, flutterRoot, + const ['dev', 'snippets', 'config']), + skeletonsDirectory: _underRoot(filesystem, flutterRoot, + const ['dev', 'snippets', 'config', 'skeletons']), + ); + + final Directory flutterRoot; + + static Directory _underRoot( + FileSystem fs, Directory flutterRoot, List dirs) => + fs.directory(path.canonicalize( + path.joinAll([flutterRoot.absolute.path, ...dirs]))); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/snippets/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..19c0cc6a65392684943ba457dd0840ccd956874d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/pubspec.lock @@ -0,0 +1,410 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct main" + description: + name: _fe_analyzer_shared + sha256: f256b0c0ba6c7577c15e2e4e114755640a875e885099367bf6e012b19314c834 + url: "https://pub.dev" + source: hosted + version: "72.0.0" + _macros: + dependency: transitive + description: dart + source: sdk + version: "0.3.2" + analyzer: + dependency: "direct main" + description: + name: analyzer + sha256: b652861553cd3990d8ed361f7979dc6d7053a9ac8843fa73820ab68ce5410139 + url: "https://pub.dev" + source: hosted + version: "6.7.0" + args: + dependency: "direct main" + description: + name: args + sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" + url: "https://pub.dev" + source: hosted + version: "2.5.0" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct main" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct dev" + description: + name: coverage + sha256: "3945034e86ea203af7a056d98e98e42a5518fff200d6e8e6647e1886b07e936e" + url: "https://pub.dev" + source: hosted + version: "1.8.0" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + dart_style: + dependency: "direct main" + description: + name: dart_style + sha256: "99e066ce75c89d6b29903d788a7bb9369cf754f7b24bf70bf4b6d6d6b26853b9" + url: "https://pub.dev" + source: hosted + version: "2.3.6" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + frontend_server_client: + dependency: "direct dev" + description: + name: frontend_server_client + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 + url: "https://pub.dev" + source: hosted + version: "4.0.0" + glob: + dependency: "direct main" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + http_multi_server: + dependency: "direct dev" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct dev" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + io: + dependency: "direct dev" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct dev" + description: + name: js + sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf + url: "https://pub.dev" + source: hosted + version: "0.7.1" + logging: + dependency: "direct dev" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + macros: + dependency: transitive + description: + name: macros + sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536" + url: "https://pub.dev" + source: hosted + version: "0.1.2-main.4" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + meta: + dependency: "direct main" + description: + name: meta + sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7 + url: "https://pub.dev" + source: hosted + version: "1.15.0" + mime: + dependency: "direct dev" + description: + name: mime + sha256: "2e123074287cc9fd6c09de8336dae606d1ddb88d9ac47358826db698c176a1f2" + url: "https://pub.dev" + source: hosted + version: "1.0.5" + node_preamble: + dependency: "direct dev" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct main" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: "direct main" + description: + name: platform + sha256: "9b71283fc13df574056616011fb138fd3b793ea47cc509c189a6c3fa5f8a1a65" + url: "https://pub.dev" + source: hosted + version: "3.1.5" + pool: + dependency: "direct dev" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: "direct main" + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + pub_semver: + dependency: "direct main" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + shelf: + dependency: "direct dev" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct dev" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct dev" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct dev" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + source_map_stack_trace: + dependency: "direct dev" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct dev" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct dev" + description: + name: test + sha256: "7ee44229615f8f642b68120165ae4c2a75fe77ae2065b1e55ae4711f6cf0899e" + url: "https://pub.dev" + source: hosted + version: "1.25.7" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5b8a98dafc4d5c4c9c72d8b31ab2b23fc13422348d2997120294d3bac86b4ddb" + url: "https://pub.dev" + source: hosted + version: "0.7.2" + test_core: + dependency: "direct dev" + description: + name: test_core + sha256: "55ea5a652e38a1dfb32943a7973f3681a60f872f8c3a05a14664ad54ef9c6696" + url: "https://pub.dev" + source: hosted + version: "0.6.4" + typed_data: + dependency: "direct main" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: f652077d0bdf60abe4c1f6377448e8655008eef28f128bc023f7b5e8dfeb48fc + url: "https://pub.dev" + source: hosted + version: "14.2.4" + watcher: + dependency: "direct main" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct dev" + description: + name: web + sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + url: "https://pub.dev" + source: hosted + version: "0.5.1" + web_socket_channel: + dependency: "direct dev" + description: + name: web_socket_channel + sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" + url: "https://pub.dev" + source: hosted + version: "2.4.5" + webkit_inspection_protocol: + dependency: "direct dev" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + yaml: + dependency: "direct main" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.4.0-256.0.dev <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/snippets/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..70e65ce0739611400a33724b672d8711f5fd00f8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/pubspec.yaml @@ -0,0 +1,65 @@ +name: snippets +description: A package for parsing and manipulating code samples in Flutter repo dartdoc comments. + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + analyzer: 6.7.0 + args: 2.5.0 + dart_style: 2.3.6 + file: 7.0.0 + meta: 1.15.0 + path: 1.9.0 + platform: 3.1.5 + process: 5.0.2 + + _fe_analyzer_shared: 72.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + test: 1.25.7 + + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 4.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.7.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.6.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 14.2.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.5 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +executables: + snippets: + +# PUBSPEC CHECKSUM: b104 diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/test/configuration_test.dart b/novelforge-project/agent-workspace/flutter/dev/snippets/test/configuration_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..4659b6b1a13865136935379992bfc629506082d6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/test/configuration_test.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:file/memory.dart'; +import 'package:snippets/snippets.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +void main() { + group('Configuration', () { + final MemoryFileSystem memoryFileSystem = MemoryFileSystem(); + late SnippetConfiguration config; + + setUp(() { + config = FlutterRepoSnippetConfiguration( + flutterRoot: memoryFileSystem.directory('/flutter sdk'), + filesystem: memoryFileSystem, + ); + }); + test('config directory is correct', () async { + expect(config.configDirectory.path, + matches(RegExp(r'[/\\]flutter sdk[/\\]dev[/\\]snippets[/\\]config'))); + }); + test('skeleton directory is correct', () async { + expect( + config.skeletonsDirectory.path, + matches(RegExp( + r'[/\\]flutter sdk[/\\]dev[/\\]snippets[/\\]config[/\\]skeletons'))); + }); + test('html skeleton file for sample is correct', () async { + expect( + config.getHtmlSkeletonFile('snippet').path, + matches(RegExp( + r'[/\\]flutter sdk[/\\]dev[/\\]snippets[/\\]config[/\\]skeletons[/\\]snippet.html'))); + }); + test('html skeleton file for app with no dartpad is correct', () async { + expect( + config.getHtmlSkeletonFile('sample').path, + matches(RegExp( + r'[/\\]flutter sdk[/\\]dev[/\\]snippets[/\\]config[/\\]skeletons[/\\]sample.html'))); + }); + test('html skeleton file for app with dartpad is correct', () async { + expect( + config.getHtmlSkeletonFile('dartpad').path, + matches(RegExp( + r'[/\\]flutter sdk[/\\]dev[/\\]snippets[/\\]config[/\\]skeletons[/\\]dartpad-sample.html'))); + }); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/test/fake_process_manager.dart b/novelforge-project/agent-workspace/flutter/dev/snippets/test/fake_process_manager.dart new file mode 100644 index 0000000000000000000000000000000000000000..db559700ebeeec193f1a0ba8d7e2cb4a7bfc49da --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/test/fake_process_manager.dart @@ -0,0 +1,33 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:io'; + +import 'package:process/process.dart'; + +class FakeProcessManager extends LocalProcessManager { + FakeProcessManager( + {this.stdout = '', this.stderr = '', this.exitCode = 0, this.pid = 1}); + + int runs = 0; + String stdout; + String stderr; + int exitCode; + int pid; + + @override + ProcessResult runSync( + List command, { + String? workingDirectory, + Map? environment, + bool includeParentEnvironment = true, + bool runInShell = false, + Encoding? stdoutEncoding = systemEncoding, + Encoding? stderrEncoding = systemEncoding, + }) { + runs++; + return ProcessResult(pid, exitCode, stdout, stderr); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/test/filesystem_resource_provider.dart b/novelforge-project/agent-workspace/flutter/dev/snippets/test/filesystem_resource_provider.dart new file mode 100644 index 0000000000000000000000000000000000000000..8fdcdc6e8317455023dba20a2b4abf44afa2484f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/test/filesystem_resource_provider.dart @@ -0,0 +1,430 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io' as io; +import 'dart:typed_data'; + +import 'package:analyzer/file_system/file_system.dart'; +import 'package:analyzer/source/file_source.dart'; +import 'package:analyzer/source/source.dart'; +import 'package:analyzer/src/generated/source.dart'; +import 'package:analyzer/src/source/source_resource.dart'; +import 'package:file/file.dart' as file; +import 'package:file/local.dart' as file; +import 'package:meta/meta.dart'; +import 'package:path/path.dart'; +import 'package:watcher/watcher.dart'; + +/// The name of the directory containing plugin specific subfolders used to +/// store data across sessions. +const String _SERVER_DIR = '.dartServer'; + +/// Returns the path to default state location. +/// +/// Generally this is ~/.dartServer. It can be overridden via the +/// ANALYZER_STATE_LOCATION_OVERRIDE environment variable, in which case this +/// method will return the contents of that environment variable. +String? _getStandardStateLocation() { + final Map env = io.Platform.environment; + if (env.containsKey('ANALYZER_STATE_LOCATION_OVERRIDE')) { + return env['ANALYZER_STATE_LOCATION_OVERRIDE']; + } + + final String? home = + io.Platform.isWindows ? env['LOCALAPPDATA'] : env['HOME']; + return home != null && io.FileSystemEntity.isDirectorySync(home) + ? join(home, _SERVER_DIR) + : null; +} + +/// A `dart:io` based implementation of [ResourceProvider]. +class FileSystemResourceProvider implements ResourceProvider { + FileSystemResourceProvider(this.filesystem, {String? stateLocation}) + : _stateLocation = stateLocation ?? _getStandardStateLocation(); + + static final FileSystemResourceProvider instance = + FileSystemResourceProvider(const file.LocalFileSystem()); + + /// The path to the base folder where state is stored. + final String? _stateLocation; + + final file.FileSystem filesystem; + + @override + Context get pathContext => context; + + @override + File getFile(String path) { + _ensureAbsoluteAndNormalized(path); + return _PhysicalFile(filesystem.file(path)); + } + + @override + Folder getFolder(String path) { + _ensureAbsoluteAndNormalized(path); + return _PhysicalFolder(filesystem.directory(path)); + } + + @override + Resource getResource(String path) { + _ensureAbsoluteAndNormalized(path); + if (filesystem.isDirectorySync(path)) { + return getFolder(path); + } else { + return getFile(path); + } + } + + @override + Folder? getStateLocation(String pluginId) { + if (_stateLocation != null) { + final file.Directory directory = + filesystem.directory(join(_stateLocation, pluginId)); + directory.createSync(recursive: true); + return _PhysicalFolder(directory); + } + return null; + } + + /// The file system abstraction supports only absolute and normalized paths. + /// This method is used to validate any input paths to prevent errors later. + void _ensureAbsoluteAndNormalized(String path) { + assert(() { + if (!pathContext.isAbsolute(path)) { + throw ArgumentError('Path must be absolute : $path'); + } + if (pathContext.normalize(path) != path) { + throw ArgumentError('Path must be normalized : $path'); + } + return true; + }()); + } + + @override + Link getLink(String path) { + throw UnimplementedError('getLink Not Implemented'); + } +} + +/// A `dart:io` based implementation of [File]. +class _PhysicalFile extends _PhysicalResource implements File { + const _PhysicalFile(io.File super.file); + + @override + Stream get changes => FileWatcher(_entry.path).events; + + @override + int get lengthSync { + try { + return _file.lengthSync(); + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + @override + int get modificationStamp { + try { + return _file.lastModifiedSync().millisecondsSinceEpoch; + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + /// Return the underlying file being represented by this wrapper. + io.File get _file => _entry as io.File; + + @override + File copyTo(Folder parentFolder) { + parentFolder.create(); + final File destination = parentFolder.getChildAssumingFile(shortName); + destination.writeAsBytesSync(readAsBytesSync()); + return destination; + } + + @override + Source createSource([Uri? uri]) { + return FileSource(this, uri ?? pathContext.toUri(path)); + } + + @override + bool isOrContains(String path) { + return path == this.path; + } + + @override + Uint8List readAsBytesSync() { + _throwIfWindowsDeviceDriver(); + try { + return _file.readAsBytesSync(); + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + @override + String readAsStringSync() { + _throwIfWindowsDeviceDriver(); + try { + return _file.readAsStringSync(); + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + @override + File renameSync(String newPath) { + try { + return _PhysicalFile(_file.renameSync(newPath)); + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + @override + File resolveSymbolicLinksSync() { + try { + return _PhysicalFile(io.File(_file.resolveSymbolicLinksSync())); + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + @override + Uri toUri() => Uri.file(path); + + @override + void writeAsBytesSync(List bytes) { + try { + _file.writeAsBytesSync(bytes); + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + @override + void writeAsStringSync(String content) { + try { + _file.writeAsStringSync(content); + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + @override + ResourceWatcher watch() { + throw UnimplementedError(); + } +} + +/// A `dart:io` based implementation of [Folder]. +class _PhysicalFolder extends _PhysicalResource implements Folder { + const _PhysicalFolder(io.Directory super.directory); + + @override + Stream get changes => + DirectoryWatcher(_entry.path).events.handleError((Object error) {}, + test: (dynamic error) => + error is io.FileSystemException && + // Don't suppress "Directory watcher closed," so the outer + // listener can see the interruption & act on it. + !error.message + .startsWith('Directory watcher closed unexpectedly')); + + @override + bool get isRoot { + final String parentPath = provider.pathContext.dirname(path); + return parentPath == path; + } + + /// Return the underlying file being represented by this wrapper. + io.Directory get _directory => _entry as io.Directory; + + @override + String canonicalizePath(String relPath) { + return normalize(join(path, relPath)); + } + + @override + bool contains(String path) { + FileSystemResourceProvider.instance._ensureAbsoluteAndNormalized(path); + return pathContext.isWithin(this.path, path); + } + + @override + Folder copyTo(Folder parentFolder) { + final Folder destination = parentFolder.getChildAssumingFolder(shortName); + destination.create(); + for (final Resource child in getChildren()) { + child.copyTo(destination); + } + return destination; + } + + @override + void create() { + _directory.createSync(recursive: true); + } + + @override + Resource getChild(String relPath) { + final String canonicalPath = canonicalizePath(relPath); + return FileSystemResourceProvider.instance.getResource(canonicalPath); + } + + @override + _PhysicalFile getChildAssumingFile(String relPath) { + final String canonicalPath = canonicalizePath(relPath); + final io.File file = io.File(canonicalPath); + return _PhysicalFile(file); + } + + @override + _PhysicalFolder getChildAssumingFolder(String relPath) { + final String canonicalPath = canonicalizePath(relPath); + final io.Directory directory = io.Directory(canonicalPath); + return _PhysicalFolder(directory); + } + + @override + List getChildren() { + try { + final List children = []; + final io.Directory directory = _entry as io.Directory; + final List entries = directory.listSync(); + final int numEntries = entries.length; + for (int i = 0; i < numEntries; i++) { + final io.FileSystemEntity entity = entries[i]; + if (entity is io.Directory) { + children.add(_PhysicalFolder(entity)); + } else if (entity is io.File) { + children.add(_PhysicalFile(entity)); + } + } + return children; + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + @override + bool isOrContains(String path) { + if (path == this.path) { + return true; + } + return contains(path); + } + + @override + Folder resolveSymbolicLinksSync() { + try { + return _PhysicalFolder( + io.Directory(_directory.resolveSymbolicLinksSync())); + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + @override + Uri toUri() => Uri.directory(path); + + @override + ResourceWatcher watch() { + throw UnimplementedError(); + } +} + +/// A `dart:io` based implementation of [Resource]. +@immutable +abstract class _PhysicalResource implements Resource { + const _PhysicalResource(this._entry); + + final io.FileSystemEntity _entry; + + @override + bool get exists { + try { + return _entry.existsSync(); + } on FileSystemException { + return false; + } + } + + @override + int get hashCode => path.hashCode; + + @override + Folder get parent { + final String parentPath = pathContext.dirname(path); + return _PhysicalFolder(io.Directory(parentPath)); + } + + @override + Folder get parent2 { + final String parentPath = pathContext.dirname(path); + return _PhysicalFolder(io.Directory(parentPath)); + } + + @override + String get path => _entry.path; + + /// Return the path context used by this resource provider. + Context get pathContext => io.Platform.isWindows ? windows : posix; + + @override + ResourceProvider get provider => FileSystemResourceProvider.instance; + + @override + String get shortName => pathContext.basename(path); + + @override + bool operator ==(Object other) { + if (runtimeType != other.runtimeType) { + return false; + } + // ignore: test_types_in_equals + return path == (other as _PhysicalResource).path; + } + + @override + void delete() { + try { + _entry.deleteSync(recursive: true); + } on io.FileSystemException catch (exception) { + throw _wrapException(exception); + } + } + + @override + String toString() => path; + + /// If the operating system is Windows and the resource references one of the + /// device drivers, throw a [FileSystemException]. + /// + /// https://support.microsoft.com/en-us/kb/74496 + void _throwIfWindowsDeviceDriver() { + if (io.Platform.isWindows) { + final String shortName = this.shortName.toUpperCase(); + if (shortName == r'CON' || + shortName == r'PRN' || + shortName == r'AUX' || + shortName == r'CLOCK$' || + shortName == r'NUL' || + shortName == r'COM1' || + shortName == r'LPT1' || + shortName == r'LPT2' || + shortName == r'LPT3' || + shortName == r'COM2' || + shortName == r'COM3' || + shortName == r'COM4') { + throw FileSystemException( + path, 'Windows device drivers cannot be read.'); + } + } + } + + FileSystemException _wrapException(io.FileSystemException e) { + return FileSystemException(e.path ?? path, e.message); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/test/import_sorter_test.dart b/novelforge-project/agent-workspace/flutter/dev/snippets/test/import_sorter_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..1beffe50485bca75bcffe5e774fc278fb5bb0a8d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/test/import_sorter_test.dart @@ -0,0 +1,103 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:file/file.dart'; +import 'package:file/memory.dart'; +import 'package:path/path.dart' as path; +import 'package:pub_semver/pub_semver.dart'; +import 'package:snippets/snippets.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +class FakeFlutterInformation extends FlutterInformation { + FakeFlutterInformation(this.flutterRoot); + + final Directory flutterRoot; + + @override + Map getFlutterInformation() { + return { + 'flutterRoot': flutterRoot, + 'frameworkVersion': Version(2, 10, 0), + 'dartSdkVersion': Version(2, 12, 1), + }; + } +} + +void main() { + late MemoryFileSystem memoryFileSystem = MemoryFileSystem(); + late Directory tmpDir; + + setUp(() { + // Create a new filesystem. + memoryFileSystem = MemoryFileSystem(); + tmpDir = memoryFileSystem.systemTempDirectory + .createTempSync('flutter_snippets_test.'); + final Directory flutterRoot = + memoryFileSystem.directory(path.join(tmpDir.absolute.path, 'flutter')); + FlutterInformation.instance = FakeFlutterInformation(flutterRoot); + }); + + test('Sorting packages works', () async { + final String result = sortImports(''' +// Unit comment + +// third import +import 'packages:gamma/gamma.dart'; // third + +// second import +import 'packages:beta/beta.dart'; // second + +// first import +import 'packages:alpha/alpha.dart'; // first + +void main() {} +'''); + expect(result, equals(''' +// Unit comment + +// first import +import 'packages:alpha/alpha.dart'; // first +// second import +import 'packages:beta/beta.dart'; // second +// third import +import 'packages:gamma/gamma.dart'; // third + +void main() {} +''')); + }); + test('Sorting dart and packages works', () async { + final String result = sortImports(''' +// Unit comment + +// third import +import 'packages:gamma/gamma.dart'; // third + +// second import +import 'packages:beta/beta.dart'; // second + +// first import +import 'packages:alpha/alpha.dart'; // first + +// first dart +import 'dart:async'; + +void main() {} +'''); + expect(result, equals(''' +// Unit comment + +// first dart +import 'dart:async'; + +// first import +import 'packages:alpha/alpha.dart'; // first +// second import +import 'packages:beta/beta.dart'; // second +// third import +import 'packages:gamma/gamma.dart'; // third + +void main() {} +''')); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/test/snippet_parser_test.dart b/novelforge-project/agent-workspace/flutter/dev/snippets/test/snippet_parser_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..3de2fbe5dbaaea4c5ee45393ce46c91085d1d009 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/test/snippet_parser_test.dart @@ -0,0 +1,292 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:file/file.dart'; +import 'package:file/memory.dart'; +import 'package:path/path.dart' as path; +import 'package:pub_semver/pub_semver.dart'; +import 'package:snippets/snippets.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +import 'filesystem_resource_provider.dart'; + +class FakeFlutterInformation extends FlutterInformation { + FakeFlutterInformation(this.flutterRoot); + + final Directory flutterRoot; + + @override + Directory getFlutterRoot() { + return flutterRoot; + } + + @override + Map getFlutterInformation() { + return { + 'flutterRoot': flutterRoot, + 'frameworkVersion': Version(2, 10, 0), + 'dartSdkVersion': Version(2, 12, 1), + }; + } +} + +void main() { + group('Parser', () { + late MemoryFileSystem memoryFileSystem = MemoryFileSystem(); + late FlutterRepoSnippetConfiguration configuration; + late SnippetGenerator generator; + late Directory tmpDir; + late Directory flutterRoot; + + void writeSkeleton(String type) { + switch (type) { + case 'dartpad': + configuration.getHtmlSkeletonFile('dartpad').writeAsStringSync(''' +
HTML Bits (DartPad-style)
+ +
More HTML Bits
+'''); + case 'sample': + case 'snippet': + configuration.getHtmlSkeletonFile(type).writeAsStringSync(''' +
HTML Bits
+{{description}} +
{{code}}
+
{{app}}
+
More HTML Bits
+'''); + } + } + + setUp(() { + // Create a new filesystem. + memoryFileSystem = MemoryFileSystem(); + tmpDir = memoryFileSystem.systemTempDirectory + .createTempSync('flutter_snippets_test.'); + flutterRoot = memoryFileSystem + .directory(path.join(tmpDir.absolute.path, 'flutter')); + configuration = FlutterRepoSnippetConfiguration( + flutterRoot: flutterRoot, filesystem: memoryFileSystem); + configuration.skeletonsDirectory.createSync(recursive: true); + ['dartpad', 'sample', 'snippet'].forEach(writeSkeleton); + FlutterInformation.instance = FakeFlutterInformation(flutterRoot); + generator = SnippetGenerator( + configuration: configuration, + filesystem: memoryFileSystem, + flutterRoot: configuration.skeletonsDirectory.parent); + }); + + test('parses from comments', () async { + final File inputFile = _createSnippetSourceFile(tmpDir, memoryFileSystem); + final Iterable elements = getFileElements(inputFile, + resourceProvider: FileSystemResourceProvider(memoryFileSystem)); + expect(elements, isNotEmpty); + final SnippetDartdocParser sampleParser = + SnippetDartdocParser(memoryFileSystem); + sampleParser.parseFromComments(elements); + sampleParser.parseAndAddAssumptions(elements, inputFile); + expect(elements.length, equals(7)); + int sampleCount = 0; + for (final SourceElement element in elements) { + expect(element.samples.length, greaterThanOrEqualTo(1)); + sampleCount += element.samples.length; + final String code = generator.generateCode(element.samples.first); + expect(code, contains('// Description')); + expect( + code, + contains(RegExp( + '''^String elementName = '${element.elementName}';\$''', + multiLine: true))); + final String html = generator.generateHtml(element.samples.first); + expect( + html, + contains(RegExp( + '''^
String elementName = '${element.elementName}';.*\$''',
+                multiLine: true)));
+        expect(
+            html,
+            contains(
+                '
{@end-inject-html}Description{@inject-html}
\n')); + } + expect(sampleCount, equals(8)); + }); + test('parses dartpad samples from linked file', () async { + final File inputFile = _createDartpadSourceFile( + tmpDir, memoryFileSystem, flutterRoot, + linked: true); + final Iterable elements = getFileElements(inputFile, + resourceProvider: FileSystemResourceProvider(memoryFileSystem)); + expect(elements, isNotEmpty); + final SnippetDartdocParser sampleParser = + SnippetDartdocParser(memoryFileSystem); + sampleParser.parseFromComments(elements); + expect(elements.length, equals(1)); + int sampleCount = 0; + for (final SourceElement element in elements) { + expect(element.samples.length, greaterThanOrEqualTo(1)); + sampleCount += element.samples.length; + final String code = + generator.generateCode(element.samples.first, formatOutput: false); + expect(code, contains('// Description')); + expect( + code, + contains(RegExp('^void ${element.name}Sample\\(\\) \\{.*\$', + multiLine: true))); + final String html = generator.generateHtml(element.samples.first); + expect( + html, + contains(RegExp( + '''^ +
More HTML Bits
+'''); + case 'sample': + case 'snippet': + configuration.getHtmlSkeletonFile(type).writeAsStringSync(''' +
HTML Bits
+{{description}} +
{{code}}
+
{{app}}
+
More HTML Bits
+'''); + } + } + + setUp(() { + // Create a new filesystem. + memoryFileSystem = MemoryFileSystem(); + tmpDir = memoryFileSystem.systemTempDirectory + .createTempSync('flutter_snippets_test.'); + configuration = FlutterRepoSnippetConfiguration( + flutterRoot: memoryFileSystem + .directory(path.join(tmpDir.absolute.path, 'flutter')), + filesystem: memoryFileSystem); + configuration.skeletonsDirectory.createSync(recursive: true); + ['dartpad', 'sample', 'snippet'].forEach(writeSkeleton); + FlutterInformation.instance = + FakeFlutterInformation(configuration.flutterRoot); + generator = SnippetGenerator( + configuration: configuration, + filesystem: memoryFileSystem, + flutterRoot: configuration.skeletonsDirectory.parent); + }); + + test('generates samples', () async { + final File inputFile = memoryFileSystem + .file(path.join(tmpDir.absolute.path, 'snippet_in.txt')) + ..createSync(recursive: true) + ..writeAsStringSync(r''' +A description of the sample. + +On several lines. + +** See code in examples/api/widgets/foo/foo_example.0.dart ** +'''); + final String examplePath = path.join(configuration.flutterRoot.path, 'examples/api/widgets/foo/foo_example.0.dart'); + memoryFileSystem.file(examplePath) + ..create(recursive: true) + ..writeAsStringSync(''' +// Copyright + +// Flutter code sample for [MyElement]. + +void main() { + runApp(MaterialApp(title: 'foo')); +}\n''' + ); + final File outputFile = memoryFileSystem + .file(path.join(tmpDir.absolute.path, 'snippet_out.txt')); + final SnippetDartdocParser sampleParser = + SnippetDartdocParser(memoryFileSystem); + const String sourcePath = 'packages/flutter/lib/src/widgets/foo.dart'; + const int sourceLine = 222; + final SourceElement element = sampleParser.parseFromDartdocToolFile( + inputFile, + element: 'MyElement', + startLine: sourceLine, + sourceFile: memoryFileSystem.file(sourcePath), + type: 'sample', + ); + + expect(element.samples, isNotEmpty); + element.samples.first.metadata.addAll({ + 'channel': 'stable', + }); + final String code = generator.generateCode( + element.samples.first, + output: outputFile, + ); + expect(code, contains("runApp(MaterialApp(title: 'foo'));")); + final String html = generator.generateHtml( + element.samples.first, + ); + expect(html, contains('
HTML Bits
')); + expect(html, contains('
More HTML Bits
')); + expect(html, contains(r'''runApp(MaterialApp(title: 'foo'));''')); + expect(html, isNot(contains('sample_channel=stable'))); + expect( + html, + contains('A description of the sample.\n' + '\n' + 'On several lines.{@inject-html}')); + expect(html, contains('void main() {')); + + final String outputContents = outputFile.readAsStringSync(); + expect(outputContents, contains('void main() {')); + }); + + test('generates snippets', () async { + final File inputFile = memoryFileSystem + .file(path.join(tmpDir.absolute.path, 'snippet_in.txt')) + ..createSync(recursive: true) + ..writeAsStringSync(r''' +A description of the snippet. + +On several lines. + +```code +void main() { + print('The actual $name.'); +} +``` +'''); + + final SnippetDartdocParser sampleParser = + SnippetDartdocParser(memoryFileSystem); + const String sourcePath = 'packages/flutter/lib/src/widgets/foo.dart'; + const int sourceLine = 222; + final SourceElement element = sampleParser.parseFromDartdocToolFile( + inputFile, + element: 'MyElement', + startLine: sourceLine, + sourceFile: memoryFileSystem.file(sourcePath), + type: 'snippet', + ); + expect(element.samples, isNotEmpty); + element.samples.first.metadata.addAll({ + 'channel': 'stable', + }); + final String code = generator.generateCode(element.samples.first); + expect(code, contains('// A description of the snippet.')); + final String html = generator.generateHtml(element.samples.first); + expect(html, contains('
HTML Bits
')); + expect(html, contains('
More HTML Bits
')); + expect(html, contains(r' print('The actual $name.');')); + expect( + html, + contains( + '
{@end-inject-html}A description of the snippet.\n\n' + 'On several lines.{@inject-html}
\n')); + expect(html, contains('main() {')); + }); + + test('generates dartpad samples', () async { + final File inputFile = memoryFileSystem + .file(path.join(tmpDir.absolute.path, 'snippet_in.txt')) + ..createSync(recursive: true) + ..writeAsStringSync(r''' +A description of the snippet. + +On several lines. + +** See code in examples/api/widgets/foo/foo_example.0.dart ** +'''); + final String examplePath = path.join(configuration.flutterRoot.path, 'examples/api/widgets/foo/foo_example.0.dart'); + memoryFileSystem.file(examplePath) + ..create(recursive: true) + ..writeAsStringSync(''' +// Copyright + +// Flutter code sample for [MyElement]. + +void main() { + runApp(MaterialApp(title: 'foo')); +}\n''' + ); + + final SnippetDartdocParser sampleParser = + SnippetDartdocParser(memoryFileSystem); + const String sourcePath = 'packages/flutter/lib/src/widgets/foo.dart'; + const int sourceLine = 222; + final SourceElement element = sampleParser.parseFromDartdocToolFile( + inputFile, + element: 'MyElement', + startLine: sourceLine, + sourceFile: memoryFileSystem.file(sourcePath), + type: 'dartpad', + ); + expect(element.samples, isNotEmpty); + element.samples.first.metadata.addAll({ + 'channel': 'stable', + }); + final String code = generator.generateCode(element.samples.first); + expect(code, contains("runApp(MaterialApp(title: 'foo'));")); + final String html = generator.generateHtml(element.samples.first); + expect(html, contains('
HTML Bits (DartPad-style)
')); + expect(html, contains('
More HTML Bits
')); + expect( + html, + contains( + '\n')); + }); + + test('generates sample metadata', () async { + final File inputFile = memoryFileSystem + .file(path.join(tmpDir.absolute.path, 'snippet_in.txt')) + ..createSync(recursive: true) + ..writeAsStringSync(r''' +A description of the snippet. + +On several lines. + +```dart +void main() { + print('The actual $name.'); +} +``` +'''); + + final File outputFile = memoryFileSystem + .file(path.join(tmpDir.absolute.path, 'snippet_out.dart')); + final File expectedMetadataFile = memoryFileSystem + .file(path.join(tmpDir.absolute.path, 'snippet_out.json')); + + final SnippetDartdocParser sampleParser = + SnippetDartdocParser(memoryFileSystem); + const String sourcePath = 'packages/flutter/lib/src/widgets/foo.dart'; + const int sourceLine = 222; + final SourceElement element = sampleParser.parseFromDartdocToolFile( + inputFile, + element: 'MyElement', + startLine: sourceLine, + sourceFile: memoryFileSystem.file(sourcePath), + type: 'sample', + ); + expect(element.samples, isNotEmpty); + element.samples.first.metadata + .addAll({'channel': 'stable'}); + generator.generateCode(element.samples.first, output: outputFile); + expect(expectedMetadataFile.existsSync(), isTrue); + final Map json = + jsonDecode(expectedMetadataFile.readAsStringSync()) + as Map; + expect(json['id'], equals('MyElement.0')); + expect(json['channel'], equals('stable')); + expect(json['file'], equals('snippet_out.dart')); + expect(json['description'], + equals('A description of the snippet.\n\nOn several lines.')); + expect(json['sourcePath'], + equals('packages/flutter/lib/src/widgets/foo.dart')); + }); + }); + + group('snippets command line argument test', () { + late MemoryFileSystem memoryFileSystem = MemoryFileSystem(); + late Directory tmpDir; + late Directory flutterRoot; + late FakeProcessManager fakeProcessManager; + + setUp(() { + fakeProcessManager = FakeProcessManager(); + memoryFileSystem = MemoryFileSystem(); + tmpDir = memoryFileSystem.systemTempDirectory + .createTempSync('flutter_snippets_test.'); + flutterRoot = memoryFileSystem + .directory(path.join(tmpDir.absolute.path, 'flutter')) + ..createSync(recursive: true); + }); + + test('command line arguments are parsed and passed to generator', () { + final FakePlatform platform = FakePlatform(environment: { + 'PACKAGE_NAME': 'dart:ui', + 'LIBRARY_NAME': 'library', + 'ELEMENT_NAME': 'element', + 'FLUTTER_ROOT': flutterRoot.absolute.path, + // The details here don't really matter other than the flutter root. + 'FLUTTER_VERSION': ''' + { + "frameworkVersion": "2.5.0-6.0.pre.55", + "channel": "use_snippets_pkg", + "repositoryUrl": "git@github.com:flutter/flutter.git", + "frameworkRevision": "fec4641e1c88923ecd6c969e2ff8a0dd12dc0875", + "frameworkCommitDate": "2021-08-11 15:19:48 -0700", + "engineRevision": "d8bbebed60a77b3d4fe9c840dc94dfbce159d951", + "dartSdkVersion": "2.14.0 (build 2.14.0-393.0.dev)", + "flutterRoot": "${flutterRoot.absolute.path}" + }''', + }); + final FlutterInformation flutterInformation = FlutterInformation( + filesystem: memoryFileSystem, + processManager: fakeProcessManager, + platform: platform, + ); + FlutterInformation.instance = flutterInformation; + MockSnippetGenerator mockSnippetGenerator = MockSnippetGenerator(); + snippets_main.snippetGenerator = mockSnippetGenerator; + String errorMessage = ''; + errorExit = (String message) { + errorMessage = message; + }; + + snippets_main.platform = platform; + snippets_main.filesystem = memoryFileSystem; + snippets_main.processManager = fakeProcessManager; + final File input = memoryFileSystem + .file(tmpDir.childFile('input.snippet')) + ..writeAsString('/// Test file'); + snippets_main.main( + ['--input=${input.absolute.path}']); + + final Map metadata = + mockSnippetGenerator.sample.metadata; + // Ignore the channel, because channel is really just the branch, and will be + // different on development workstations. + metadata.remove('channel'); + expect( + metadata, + equals({ + 'id': 'dart_ui.library.element', + 'element': 'element', + 'sourcePath': 'unknown.dart', + 'sourceLine': 1, + 'serial': '', + 'package': 'dart:ui', + 'library': 'library', + })); + + snippets_main.main([]); + expect( + errorMessage, + equals( + 'The --input option must be specified, either on the command line, or in the INPUT environment variable.')); + errorMessage = ''; + + snippets_main + .main(['--input=${input.absolute.path}', '--type=snippet']); + expect(errorMessage, equals('')); + errorMessage = ''; + + mockSnippetGenerator = MockSnippetGenerator(); + snippets_main.snippetGenerator = mockSnippetGenerator; + snippets_main.main([ + '--input=${input.absolute.path}', + '--type=snippet', + '--no-format-output' + ]); + expect(mockSnippetGenerator.formatOutput, equals(false)); + errorMessage = ''; + + input.deleteSync(); + snippets_main.main( + ['--input=${input.absolute.path}']); + expect(errorMessage, + equals('The input file ${input.absolute.path} does not exist.')); + errorMessage = ''; + }); + }); +} + +class MockSnippetGenerator extends SnippetGenerator { + late CodeSample sample; + File? output; + String? copyright; + String? description; + late bool formatOutput; + late bool addSectionMarkers; + late bool includeAssumptions; + + @override + String generateCode( + CodeSample sample, { + File? output, + String? copyright, + String? description, + bool formatOutput = true, + bool addSectionMarkers = false, + bool includeAssumptions = false, + }) { + this.sample = sample; + this.output = output; + this.copyright = copyright; + this.description = description; + this.formatOutput = formatOutput; + this.addSectionMarkers = addSectionMarkers; + this.includeAssumptions = includeAssumptions; + + return ''; + } + + @override + String generateHtml(CodeSample sample) { + return ''; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/snippets/test/util_test.dart b/novelforge-project/agent-workspace/flutter/dev/snippets/test/util_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..cd27d47123a138b28c071c4d5ac0154733dcb3e6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/snippets/test/util_test.dart @@ -0,0 +1,87 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +import 'package:file/memory.dart'; +import 'package:platform/platform.dart'; +import 'package:pub_semver/pub_semver.dart'; +import 'package:snippets/snippets.dart'; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +import 'fake_process_manager.dart'; + +const String testVersionInfo = r''' +{ + "frameworkVersion": "2.5.0-2.0.pre.63", + "channel": "master", + "repositoryUrl": "git@github.com:flutter/flutter.git", + "frameworkRevision": "9b2f6f7f9ab96bb3302f81b814a094f33023e79a", + "frameworkCommitDate": "2021-07-28 13:03:40 -0700", + "engineRevision": "0ed62a16f36348e97b2baadd8ccfec3825f80c5d", + "dartSdkVersion": "2.14.0 (build 2.14.0-360.0.dev)", + "flutterRoot": "/home/user/flutter" +} +'''; + +void main() { + group('FlutterInformation', () { + late FakeProcessManager fakeProcessManager; + late FakePlatform fakePlatform; + late MemoryFileSystem memoryFileSystem; + late FlutterInformation flutterInformation; + + setUp(() { + fakeProcessManager = FakeProcessManager(); + memoryFileSystem = MemoryFileSystem(); + fakePlatform = FakePlatform(environment: {}); + flutterInformation = FlutterInformation( + filesystem: memoryFileSystem, + processManager: fakeProcessManager, + platform: fakePlatform, + ); + }); + + test('calls out to flutter if FLUTTER_VERSION is not set', () async { + fakeProcessManager.stdout = testVersionInfo; + final Map info = + flutterInformation.getFlutterInformation(); + expect(fakeProcessManager.runs, equals(1)); + expect( + info['frameworkVersion'], equals(Version.parse('2.5.0-2.0.pre.63'))); + }); + test("doesn't call out to flutter if FLUTTER_VERSION is set", () async { + fakePlatform.environment['FLUTTER_VERSION'] = testVersionInfo; + final Map info = + flutterInformation.getFlutterInformation(); + expect(fakeProcessManager.runs, equals(0)); + expect( + info['frameworkVersion'], equals(Version.parse('2.5.0-2.0.pre.63'))); + }); + test('getFlutterRoot calls out to flutter if FLUTTER_ROOT is not set', + () async { + fakeProcessManager.stdout = testVersionInfo; + final Directory root = flutterInformation.getFlutterRoot(); + expect(fakeProcessManager.runs, equals(1)); + expect(root.path, equals('/home/user/flutter')); + }); + test("getFlutterRoot doesn't call out to flutter if FLUTTER_ROOT is set", + () async { + fakePlatform.environment['FLUTTER_ROOT'] = '/home/user/flutter'; + final Directory root = flutterInformation.getFlutterRoot(); + expect(fakeProcessManager.runs, equals(0)); + expect(root.path, equals('/home/user/flutter')); + }); + test('parses version properly', () async { + fakePlatform.environment['FLUTTER_VERSION'] = testVersionInfo; + final Map info = + flutterInformation.getFlutterInformation(); + expect(info['frameworkVersion'], isNotNull); + expect( + info['frameworkVersion'], equals(Version.parse('2.5.0-2.0.pre.63'))); + expect(info['dartSdkVersion'], isNotNull); + expect(info['dartSdkVersion'], equals(Version.parse('2.14.0-360.0.dev'))); + }); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/bin/config/lockfile_exclusion.yaml b/novelforge-project/agent-workspace/flutter/dev/tools/bin/config/lockfile_exclusion.yaml new file mode 100644 index 0000000000000000000000000000000000000000..9b942081edf14d92b04d1a15812eb68bcaaf4bf6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/bin/config/lockfile_exclusion.yaml @@ -0,0 +1,13 @@ +# Tests that are excluded from batch Gradle updating and lockfile generation. +# Each exclusion must have an associated reason. Please avoid adding to this list unless necessary, +# as each exclusion must be updated by hand. + +# flutter_gallery uses discontinued plugins with old AGP versions that block the app itself using +# a newer AGP version. +- dev/integration_tests/flutter_gallery/android + +# gradle_deprecated_settings intentionally uses a Gradle file structure matching an old output of +# `flutter create`. It must be updated manually, by changing the desired versions in the Gradle +# files, and then running `rm buildscript-gradle.lockfile && ./gradlew :generateLockfiles` from +# its android subdirectory. +- dev/integration_tests/gradle_deprecated_settings/android diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/bin/find_commit.dart b/novelforge-project/agent-workspace/flutter/dev/tools/bin/find_commit.dart new file mode 100644 index 0000000000000000000000000000000000000000..33289f90f33ed4fdf98016c8c4a6917e74de0689 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/bin/find_commit.dart @@ -0,0 +1,91 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This script looks at the current commit and branch of the git repository in +// which it was run, and finds the contemporary commit in the master branch of +// another git repository, whose path is provided on the command line. The +// contemporary commit is the one that was public at the time of the last commit +// on the master branch before the current commit's branch was created. + +import 'dart:io'; + +const bool debugLogging = false; + +void log(String message) { + if (debugLogging) { + print(message); + } +} + +const String _commitTimestampFormat = '--format=%cI'; +DateTime _parseTimestamp(String line) => DateTime.parse(line.trim()); +int _countLines(String output) => output.trim().split('/n').where((String line) => line.isNotEmpty).length; + +String findCommit({ + required String primaryRepoDirectory, + required String primaryBranch, + required String primaryTrunk, + required String secondaryRepoDirectory, + required String secondaryBranch, +}) { + final DateTime anchor; + if (primaryBranch == primaryTrunk) { + log('on $primaryTrunk, using last commit time'); + anchor = _parseTimestamp(git(primaryRepoDirectory, ['log', _commitTimestampFormat, '--max-count=1', primaryBranch, '--'])); + } else { + final String mergeBase = git(primaryRepoDirectory, ['merge-base', primaryBranch, primaryTrunk], allowFailure: true).trim(); + if (mergeBase.isEmpty) { + throw StateError('Branch $primaryBranch does not seem to have a common history with trunk $primaryTrunk.'); + } + anchor = _parseTimestamp(git(primaryRepoDirectory, ['log', _commitTimestampFormat, '--max-count=1', mergeBase, '--'])); + if (debugLogging) { + final int missingTrunkCommits = _countLines(git(primaryRepoDirectory, ['rev-list', primaryTrunk, '^$primaryBranch', '--'])); + final int extraCommits = _countLines(git(primaryRepoDirectory, ['rev-list', primaryBranch, '^$primaryTrunk', '--'])); + if (missingTrunkCommits == 0 && extraCommits == 0) { + log('$primaryBranch is even with $primaryTrunk at $mergeBase'); + } else { + log('$primaryBranch branched from $primaryTrunk $missingTrunkCommits commits ago, trunk has advanced by $extraCommits commits since then.'); + } + } + } + return git(secondaryRepoDirectory, [ + 'log', + '--format=%H', + '--until=${anchor.toIso8601String()}', + '--max-count=1', + secondaryBranch, + '--', + ]); +} + +String git(String workingDirectory, List arguments, {bool allowFailure = false}) { + final ProcessResult result = Process.runSync('git', arguments, workingDirectory: workingDirectory); + if (!allowFailure && result.exitCode != 0 || '${result.stderr}'.isNotEmpty) { + throw ProcessException('git', arguments, '${result.stdout}${result.stderr}', result.exitCode); + } + return '${result.stdout}'; +} + +void main(List arguments) { + if (arguments.isEmpty || arguments.length != 4 || arguments.contains('--help') || arguments.contains('-h')) { + print( + 'Usage: dart find_commit.dart \n' + 'This script will find the commit in the secondary repo that was contemporary\n' + 'when the commit in the primary repo was created. If that commit is on a\n' + "branch, then the date of the branch's last merge is used instead." + ); + } else { + final String primaryRepo = arguments.first; + final String primaryTrunk = arguments[1]; + final String secondaryRepo = arguments[2]; + final String secondaryBranch = arguments.last; + print(findCommit( + primaryRepoDirectory: primaryRepo, + primaryBranch: git(primaryRepo, ['rev-parse', '--abbrev-ref', 'HEAD']).trim(), + primaryTrunk: primaryTrunk, + secondaryRepoDirectory: secondaryRepo, + secondaryBranch: secondaryBranch, + ).trim()); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/bin/generate_gradle_lockfiles.dart b/novelforge-project/agent-workspace/flutter/dev/tools/bin/generate_gradle_lockfiles.dart new file mode 100644 index 0000000000000000000000000000000000000000..af09c3a1a112c4b461402362e069f4656dd327f2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/bin/generate_gradle_lockfiles.dart @@ -0,0 +1,216 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This script generates `android/build.gradle` for each directory specify in the stdin. +// Then it generate the lockfiles for each Gradle project. +// To regenerate these files, run `find . -type d -name 'android' | dart dev/tools/bin/generate_gradle_lockfiles.dart` + +import 'dart:io'; +import 'package:file/file.dart'; +import 'package:file/local.dart'; +import 'package:path/path.dart' as path; + +void main(List arguments) { + print( + "Usage: find . -type d -name 'android' | dart dev/tools/bin/generate_gradle_lockfiles.dart\n" + 'If you would rather enter the files manually, just run `dart dev/tools/bin/generate_gradle_lockfiles.dart`,\n' + "enter the absolute paths to the app's android directory, then press CTRL-D.\n" + ); + + const FileSystem fileSystem = LocalFileSystem(); + final List androidDirectories = getFilesFromStdin(); + + for (final String androidDirectoryPath in androidDirectories) { + final Directory androidDirectory = fileSystem.directory(path.normalize(androidDirectoryPath)); + + if (!androidDirectory.existsSync()) { + throw '$androidDirectory does not exist'; + } + + final File rootBuildGradle = androidDirectory.childFile('build.gradle'); + if (!rootBuildGradle.existsSync()) { + print('${rootBuildGradle.path} does not exist - skipping'); + continue; + } + + final File settingsGradle = androidDirectory.childFile('settings.gradle'); + if (!settingsGradle.existsSync()) { + print('${settingsGradle.path} does not exist - skipping'); + continue; + } + + if (settingsGradle.readAsStringSync().contains('include_flutter.groovy')) { + print('${settingsGradle.path} add to app - skipping'); + continue; + } + + if (!androidDirectory.childDirectory('app').existsSync()) { + print('${rootBuildGradle.path} is not an app - skipping'); + continue; + } + + if (!androidDirectory.parent.childFile('pubspec.yaml').existsSync()) { + print('${rootBuildGradle.path} no pubspec.yaml in parent directory - skipping'); + continue; + } + + if (androidDirectory.parent.childFile('pubspec.yaml').readAsStringSync().contains('deferred-components')) { + print('${rootBuildGradle.path} uses deferred components - skipping'); + continue; + } + + if (!androidDirectory.parent + .childDirectory('lib') + .childFile('main.dart') + .existsSync()) { + print('${rootBuildGradle.path} no main.dart under lib - skipping'); + continue; + } + + print('Processing ${androidDirectory.path}'); + + try { + androidDirectory.childFile('buildscript-gradle.lockfile').deleteSync(); + } on FileSystemException { + // noop + } + + rootBuildGradle.writeAsStringSync(rootGradleFileContent); + settingsGradle.writeAsStringSync(settingGradleFile); + + final String appDirectory = androidDirectory.parent.absolute.path; + + // Fetch pub dependencies. + exec('flutter', ['pub', 'get'], workingDirectory: appDirectory); + + // Verify that the Gradlew wrapper exists. + final File gradleWrapper = androidDirectory.childFile('gradlew'); + // Generate Gradle wrapper if it doesn't exist. + if (!gradleWrapper.existsSync()) { + Process.runSync( + 'flutter', + ['build', 'apk', '--config-only'], + workingDirectory: appDirectory, + ); + } + + // Generate lock files. + exec( + gradleWrapper.absolute.path, + [':generateLockfiles'], + workingDirectory: androidDirectory.absolute.path, + ); + + print('Processed'); + } +} + +List getFilesFromStdin() { + final List files = []; + while (true) { + final String? file = stdin.readLineSync(); + if (file == null) { + break; + } + files.add(file); + } + return files; +} + +void exec( + String cmd, + List args, { + String? workingDirectory, +}) { + final ProcessResult result = Process.runSync(cmd, args, workingDirectory: workingDirectory); + if (result.exitCode != 0) { + throw ProcessException( + cmd, args, '${result.stdout}${result.stderr}', result.exitCode); + } +} + +const String rootGradleFileContent = r''' +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the build.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +buildscript { + ext.kotlin_version = '1.7.10' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } + + configurations.classpath { + resolutionStrategy.activateDependencyLocking() + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' + +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') + dependencyLocking { + ignoredDependencies.add('io.flutter:*') + lockFile = file("${rootProject.projectDir}/project-${project.name}.lockfile") + if (!project.hasProperty('local-engine-repo')) { + lockAllConfigurations() + } + } +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} +'''; + +const String settingGradleFile = r''' +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is auto generated. +// To update all the settings.gradle files in the Flutter repo, +// See dev/tools/bin/generate_gradle_lockfiles.dart. + +pluginManagement { + def flutterSdkPath = { + def properties = new Properties() + file("local.properties").withInputStream { properties.load(it) } + def flutterSdkPath = properties.getProperty("flutter.sdk") + assert flutterSdkPath != null, "flutter.sdk not set in local.properties" + return flutterSdkPath + } + settings.ext.flutterSdkPath = flutterSdkPath() + + includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle") + + plugins { + id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false + } +} + +include ":app" + +apply from: "${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle/app_plugin_loader.gradle" +'''; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/create_api_docs.dart b/novelforge-project/agent-workspace/flutter/dev/tools/create_api_docs.dart new file mode 100644 index 0000000000000000000000000000000000000000..1849fd23147961c511eb0644693996df14c783a6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/create_api_docs.dart @@ -0,0 +1,1219 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:io'; +import 'dart:math' as math; + +import 'package:archive/archive_io.dart'; +import 'package:args/args.dart'; +import 'package:file/file.dart'; +import 'package:file/local.dart'; +import 'package:http/http.dart' as http; +import 'package:intl/intl.dart'; +import 'package:meta/meta.dart'; +import 'package:path/path.dart' as path; +import 'package:platform/platform.dart'; +import 'package:process/process.dart'; +import 'package:pub_semver/pub_semver.dart'; + +import 'dartdoc_checker.dart'; + +const String kDummyPackageName = 'Flutter'; +const String kPlatformIntegrationPackageName = 'platform_integration'; + +class PlatformDocsSection { + const PlatformDocsSection({ + required this.zipName, + required this.sectionName, + required this.checkFile, + required this.subdir, + }); + final String zipName; + final String sectionName; + final String checkFile; + final String subdir; +} + +const Map kPlatformDocs = { + 'android': PlatformDocsSection( + zipName: 'android-javadoc.zip', + sectionName: 'Android', + checkFile: 'io/flutter/view/FlutterView.html', + subdir: 'javadoc', + ), + 'ios': PlatformDocsSection( + zipName: 'ios-docs.zip', + sectionName: 'iOS', + checkFile: 'interface_flutter_view.html', + subdir: 'ios-embedder', + ), + 'macos': PlatformDocsSection( + zipName: 'macos-docs.zip', + sectionName: 'macOS', + checkFile: 'interface_flutter_view.html', + subdir: 'macos-embedder', + ), + 'linux': PlatformDocsSection( + zipName: 'linux-docs.zip', + sectionName: 'Linux', + checkFile: 'struct___fl_view.html', + subdir: 'linux-embedder', + ), + 'windows': PlatformDocsSection( + zipName: 'windows-docs.zip', + sectionName: 'Windows', + checkFile: 'classflutter_1_1_flutter_view.html', + subdir: 'windows-embedder', + ), + 'impeller': PlatformDocsSection( + zipName: 'impeller-docs.zip', + sectionName: 'Impeller', + checkFile: 'classimpeller_1_1_canvas.html', + subdir: 'impeller', + ), +}; + +/// This script will generate documentation for the packages in `packages/` and +/// write the documentation to the output directory specified on the command +/// line. +/// +/// This script also updates the index.html file so that it can be placed at the +/// root of api.flutter.dev. The files are kept inside of +/// api.flutter.dev/flutter, so we need to manipulate paths a bit. See +/// https://github.com/flutter/flutter/issues/3900 for more info. +/// +/// This will only work on UNIX systems, not Windows. It requires that 'git', +/// 'zip', and 'tar' be in the PATH. It requires that 'flutter' has been run +/// previously. It uses the version of Dart downloaded by the 'flutter' tool in +/// this repository and will fail if that is absent. +Future main(List arguments) async { + const FileSystem filesystem = LocalFileSystem(); + const ProcessManager processManager = LocalProcessManager(); + const Platform platform = LocalPlatform(); + + // The place to find customization files and configuration files for docs + // generation. + final Directory docsRoot = + FlutterInformation.instance.getFlutterRoot().childDirectory('dev').childDirectory('docs').absolute; + final ArgParser argParser = _createArgsParser( + publishDefault: docsRoot.childDirectory('doc').path, + ); + final ArgResults args = argParser.parse(arguments); + if (args['help'] as bool) { + print('Usage:'); + print(argParser.usage); + exit(0); + } + + final Directory publishRoot = filesystem.directory(args['output-dir']! as String).absolute; + final Directory packageRoot = publishRoot.parent; + if (!filesystem.directory(packageRoot).existsSync()) { + filesystem.directory(packageRoot).createSync(recursive: true); + } + + if (!filesystem.directory(publishRoot).existsSync()) { + filesystem.directory(publishRoot).createSync(recursive: true); + } + + final Configurator configurator = Configurator( + publishRoot: publishRoot, + packageRoot: packageRoot, + docsRoot: docsRoot, + filesystem: filesystem, + processManager: processManager, + platform: platform, + ); + configurator.generateConfiguration(); + + final PlatformDocGenerator platformGenerator = PlatformDocGenerator(outputDir: publishRoot, filesystem: filesystem); + await platformGenerator.generatePlatformDocs(); + + final DartdocGenerator dartdocGenerator = DartdocGenerator( + publishRoot: publishRoot, + packageRoot: packageRoot, + docsRoot: docsRoot, + filesystem: filesystem, + processManager: processManager, + useJson: args['json'] as bool? ?? true, + validateLinks: args['validate-links']! as bool, + verbose: args['verbose'] as bool? ?? false, + ); + + await dartdocGenerator.generateDartdoc(); + await configurator.generateOfflineAssetsIfNeeded(); +} + +ArgParser _createArgsParser({required String publishDefault}) { + final ArgParser parser = ArgParser(); + parser.addFlag('help', abbr: 'h', negatable: false, help: 'Show command help.'); + parser.addFlag('verbose', + defaultsTo: true, + help: 'Whether to report all error messages (on) or attempt to ' + 'filter out some known false positives (off). Shut this off ' + 'locally if you want to address Flutter-specific issues.'); + parser.addFlag('json', help: 'Display json-formatted output from dartdoc and skip stdout/stderr prefixing.'); + parser.addFlag('validate-links', help: 'Display warnings for broken links generated by dartdoc (slow)'); + parser.addOption('output-dir', defaultsTo: publishDefault, help: 'Sets the output directory for the documentation.'); + return parser; +} + +/// A class used to configure the staging area for building the docs in. +/// +/// The [generateConfiguration] function generates a dummy package with a +/// pubspec. It copies any assets and customization files from the framework +/// repo. It creates a metadata file for searches. +/// +/// Once the docs have been generated, [generateOfflineAssetsIfNeeded] will +/// create offline assets like Dash/Zeal docsets and an offline ZIP file of the +/// site if the build is a CI build that is not a presubmit build. +class Configurator { + Configurator({ + required this.docsRoot, + required this.publishRoot, + required this.packageRoot, + required this.filesystem, + required this.processManager, + required this.platform, + }); + + /// The root of the directory in the Flutter repo where configuration data is + /// stored. + final Directory docsRoot; + + /// The root of the output area for the dartdoc docs. + /// + /// Typically this is a "doc" subdirectory under the [packageRoot]. + final Directory publishRoot; + + /// The root of the staging area for creating docs. + final Directory packageRoot; + + /// The [FileSystem] object used to create [File] and [Directory] objects. + final FileSystem filesystem; + + /// The [ProcessManager] object used to invoke external processes. + /// + /// Can be replaced by tests to have a fake process manager. + final ProcessManager processManager; + + /// The [Platform] to use for this run. + /// + /// Can be replaced by tests to test behavior on different plaforms. + final Platform platform; + + void generateConfiguration() { + final Version version = FlutterInformation.instance.getFlutterVersion(); + _createDummyPubspec(); + _createDummyLibrary(); + _createPageFooter(packageRoot, version); + _copyCustomizations(); + _createSearchMetadata( + docsRoot.childDirectory('lib').childFile('opensearch.xml'), publishRoot.childFile('opensearch.xml')); + } + + Future generateOfflineAssetsIfNeeded() async { + // Only create the offline docs if we're running in a non-presubmit build: + // it takes too long otherwise. + if (platform.environment.containsKey('LUCI_CI') && (platform.environment['LUCI_PR'] ?? '').isEmpty) { + _createOfflineZipFile(); + await _createDocset(); + _moveOfflineIntoPlace(); + _createRobotsTxt(); + } + } + + /// Returns import or on-disk paths for all libraries in the Flutter SDK. + Iterable _libraryRefs() sync* { + for (final Directory dir in findPackages(filesystem)) { + final String dirName = dir.basename; + for (final FileSystemEntity file in dir.childDirectory('lib').listSync()) { + if (file is File && file.path.endsWith('.dart')) { + yield '$dirName/${file.basename}'; + } + } + } + + // Add a fake package for platform integration APIs. + yield '$kPlatformIntegrationPackageName/android.dart'; + yield '$kPlatformIntegrationPackageName/ios.dart'; + yield '$kPlatformIntegrationPackageName/macos.dart'; + yield '$kPlatformIntegrationPackageName/linux.dart'; + yield '$kPlatformIntegrationPackageName/windows.dart'; + } + + void _createDummyPubspec() { + // Create the pubspec.yaml file. + final List pubspec = [ + 'name: $kDummyPackageName', + 'homepage: https://flutter.dev', + 'version: 0.0.0', + 'environment:', + " sdk: '>=3.2.0-0 <4.0.0'", + 'dependencies:', + for (final String package in findPackageNames(filesystem)) ' $package:\n sdk: flutter', + ' $kPlatformIntegrationPackageName: 0.0.1', + 'dependency_overrides:', + ' $kPlatformIntegrationPackageName:', + ' path: ${docsRoot.childDirectory(kPlatformIntegrationPackageName).path}', + ]; + + packageRoot.childFile('pubspec.yaml').writeAsStringSync(pubspec.join('\n')); + } + + void _createDummyLibrary() { + final Directory libDir = packageRoot.childDirectory('lib'); + libDir.createSync(); + + final StringBuffer contents = StringBuffer('library temp_doc;\n\n'); + for (final String libraryRef in _libraryRefs()) { + contents.writeln("import 'package:$libraryRef';"); + } + packageRoot.childDirectory('lib') + ..createSync(recursive: true) + ..childFile('temp_doc.dart').writeAsStringSync(contents.toString()); + } + + void _createPageFooter(Directory footerPath, Version version) { + final String timestamp = DateFormat('yyyy-MM-dd HH:mm').format(DateTime.now()); + final String gitBranch = FlutterInformation.instance.getBranchName(); + final String gitRevision = FlutterInformation.instance.getFlutterRevision(); + final String gitBranchOut = gitBranch.isEmpty ? '' : '• $gitBranch'; + footerPath.childFile('footer.html').writeAsStringSync(''); + publishRoot.childDirectory('flutter').childFile('footer.js') + ..createSync(recursive: true) + ..writeAsStringSync(''' +(function() { + var span = document.querySelector('footer>span'); + if (span) { + span.innerText = 'Flutter $version • $timestamp • $gitRevision $gitBranchOut'; + } + var sourceLink = document.querySelector('a.source-link'); + if (sourceLink) { + sourceLink.href = sourceLink.href.replace('/master/', '/$gitRevision/'); + } +})(); +'''); + } + + void _copyCustomizations() { + final List files = [ + 'README.md', + 'analysis_options.yaml', + 'dartdoc_options.yaml', + ]; + for (final String file in files) { + final File source = docsRoot.childFile(file); + final File destination = packageRoot.childFile(file); + // Have to canonicalize because otherwise things like /foo/bar/baz and + // /foo/../foo/bar/baz won't compare as identical. + if (path.canonicalize(source.absolute.path) != path.canonicalize(destination.absolute.path)) { + source.copySync(destination.path); + print('Copied ${path.canonicalize(source.absolute.path)} to ${path.canonicalize(destination.absolute.path)}'); + } + } + final Directory assetsDir = filesystem.directory(publishRoot.childDirectory('assets')); + final Directory assetSource = docsRoot.childDirectory('assets'); + if (path.canonicalize(assetSource.absolute.path) == path.canonicalize(assetsDir.absolute.path)) { + // Don't try and copy the directory over itself. + return; + } + if (assetsDir.existsSync()) { + assetsDir.deleteSync(recursive: true); + } + copyDirectorySync( + docsRoot.childDirectory('assets'), + assetsDir, + onFileCopied: (File src, File dest) { + print('Copied ${path.canonicalize(src.absolute.path)} to ${path.canonicalize(dest.absolute.path)}'); + }, + filesystem: filesystem, + ); + } + + /// Generates an OpenSearch XML description that can be used to add a custom + /// search for Flutter API docs to the browser. Unfortunately, it has to know + /// the URL to which site to search, so we customize it here based upon the + /// branch name. + void _createSearchMetadata(File templatePath, File metadataPath) { + final String template = templatePath.readAsStringSync(); + final String branch = FlutterInformation.instance.getBranchName(); + final String metadata = template.replaceAll( + '{SITE_URL}', + branch == 'stable' ? 'https://api.flutter.dev/' : 'https://main-api.flutter.dev/', + ); + metadataPath.parent.create(recursive: true); + metadataPath.writeAsStringSync(metadata); + } + + Future _createDocset() async { + // Must have dashing installed: go get -u github.com/technosophos/dashing + // Dashing produces a LOT of log output (~30MB), so we collect it, and just + // show the end of it if there was a problem. + print('${DateTime.now().toUtc()}: Building Flutter docset.'); + + // If dashing gets stuck, Cirrus will time out the build after an hour, and we + // never get to see the logs. Thus, we run it in the background and tail the + // logs only if it fails. + final ProcessWrapper result = ProcessWrapper( + await processManager.start( + [ + 'dashing', + 'build', + '--source', + publishRoot.path, + '--config', + docsRoot.childFile('dashing.json').path, + ], + workingDirectory: packageRoot.path, + ), + ); + final List buffer = []; + result.stdout.listen(buffer.addAll); + result.stderr.listen(buffer.addAll); + // If the dashing process exited with an error, print the last 200 lines of stderr and exit. + final int exitCode = await result.done; + if (exitCode != 0) { + print('Dashing docset generation failed with code $exitCode'); + final List output = systemEncoding.decode(buffer).split('\n'); + print(output.sublist(math.max(output.length - 200, 0)).join('\n')); + exit(exitCode); + } + buffer.clear(); + + // Copy the favicon file to the output directory. + final File faviconFile = + publishRoot.childDirectory('flutter').childDirectory('static-assets').childFile('favicon.png'); + final File iconFile = packageRoot.childDirectory('flutter.docset').childFile('icon.png'); + faviconFile + ..createSync(recursive: true) + ..copySync(iconFile.path); + + // Post-process the dashing output. + final File infoPlist = + packageRoot.childDirectory('flutter.docset').childDirectory('Contents').childFile('Info.plist'); + String contents = infoPlist.readAsStringSync(); + + // Since I didn't want to add the XML package as a dependency just for this, + // I just used a regular expression to make this simple change. + final RegExp findRe = RegExp(r'(\s*DocSetPlatformFamily\s*)[^<]+()', multiLine: true); + contents = contents.replaceAllMapped(findRe, (Match match) { + return '${match.group(1)}dartlang${match.group(2)}'; + }); + infoPlist.writeAsStringSync(contents); + final Directory offlineDir = publishRoot.childDirectory('offline'); + if (!offlineDir.existsSync()) { + offlineDir.createSync(recursive: true); + } + tarDirectory(packageRoot, offlineDir.childFile('flutter.docset.tar.gz'), processManager: processManager); + + // Write the Dash/Zeal XML feed file. + final bool isStable = platform.environment['LUCI_BRANCH'] == 'stable'; + offlineDir.childFile('flutter.xml').writeAsStringSync('\n' + ' ${FlutterInformation.instance.getFlutterVersion()}\n' + ' https://${isStable ? '' : 'main-'}api.flutter.dev/offline/flutter.docset.tar.gz\n' + '\n'); + } + + // Creates the offline ZIP file containing all of the website HTML files. + void _createOfflineZipFile() { + print('${DateTime.now().toLocal()}: Creating offline docs archive.'); + zipDirectory(publishRoot, packageRoot.childFile('flutter.docs.zip'), processManager: processManager); + } + + // Moves the generated offline archives into the publish directory so that + // they can be included in the output ZIP file. + void _moveOfflineIntoPlace() { + print('${DateTime.now().toUtc()}: Moving offline docs into place.'); + final Directory offlineDir = publishRoot.childDirectory('offline')..createSync(recursive: true); + packageRoot.childFile('flutter.docs.zip').renameSync(offlineDir.childFile('flutter.docs.zip').path); + } + + // Creates a robots.txt file that disallows indexing unless the branch is the + // stable branch. + void _createRobotsTxt() { + final File robotsTxt = publishRoot.childFile('robots.txt'); + if (FlutterInformation.instance.getBranchName() == 'stable') { + robotsTxt.writeAsStringSync('# All robots welcome!'); + } else { + robotsTxt.writeAsStringSync('User-agent: *\nDisallow: /'); + } + } +} + +/// Runs Dartdoc inside of the given pre-prepared staging area, prepared by +/// [Configurator.generateConfiguration]. +/// +/// Performs a sanity check of the output once the generation is complete. +class DartdocGenerator { + DartdocGenerator({ + required this.docsRoot, + required this.publishRoot, + required this.packageRoot, + required this.filesystem, + required this.processManager, + this.useJson = true, + this.validateLinks = true, + this.verbose = false, + }); + + /// The root of the directory in the Flutter repo where configuration data is + /// stored. + final Directory docsRoot; + + /// The root of the output area for the dartdoc docs. + /// + /// Typically this is a "doc" subdirectory under the [packageRoot]. + final Directory publishRoot; + + /// The root of the staging area for creating docs. + final Directory packageRoot; + + /// The [FileSystem] object used to create [File] and [Directory] objects. + final FileSystem filesystem; + + /// The [ProcessManager] object used to invoke external processes. + /// + /// Can be replaced by tests to have a fake process manager. + final ProcessManager processManager; + + /// Whether or not dartdoc should output an index.json file of the + /// documentation. + final bool useJson; + + // Whether or not to have dartdoc validate its own links. + final bool validateLinks; + + /// Whether or not to filter overly verbose log output from dartdoc. + final bool verbose; + + Future generateDartdoc() async { + final Directory flutterRoot = FlutterInformation.instance.getFlutterRoot(); + final Map pubEnvironment = { + 'FLUTTER_ROOT': flutterRoot.absolute.path, + }; + + // If there's a .pub-cache dir in the Flutter root, use that. + final File pubCache = flutterRoot.childFile('.pub-cache'); + if (pubCache.existsSync()) { + pubEnvironment['PUB_CACHE'] = pubCache.path; + } + + // Run pub. + ProcessWrapper process = ProcessWrapper(await runPubProcess( + arguments: ['get'], + workingDirectory: packageRoot, + environment: pubEnvironment, + filesystem: filesystem, + processManager: processManager, + )); + printStream(process.stdout, prefix: 'pub:stdout: '); + printStream(process.stderr, prefix: 'pub:stderr: '); + final int code = await process.done; + if (code != 0) { + exit(code); + } + + final Version version = FlutterInformation.instance.getFlutterVersion(); + + // Verify which version of snippets and dartdoc we're using. + final ProcessResult snippetsResult = processManager.runSync( + [ + FlutterInformation.instance.getFlutterBinaryPath().path, + 'pub', + 'global', + 'list', + ], + workingDirectory: packageRoot.path, + environment: pubEnvironment, + stdoutEncoding: utf8, + ); + print(''); + final Iterable versionMatches = + RegExp(r'^(?snippets|dartdoc) (?[^\s]+)', multiLine: true) + .allMatches(snippetsResult.stdout as String); + for (final RegExpMatch match in versionMatches) { + print('${match.namedGroup('name')} version: ${match.namedGroup('version')}'); + } + + print('flutter version: $version\n'); + + // Dartdoc warnings and errors in these packages are considered fatal. + // All packages owned by flutter should be in the list. + final List flutterPackages = [ + kDummyPackageName, + kPlatformIntegrationPackageName, + ...findPackageNames(filesystem), + // TODO(goderbauer): Figure out how to only include `dart:ui` of + // `sky_engine` below, https://github.com/dart-lang/dartdoc/issues/2278. + // 'sky_engine', + ]; + + // Generate the documentation. We don't need to exclude flutter_tools in + // this list because it's not in the recursive dependencies of the package + // defined at packageRoot + final List dartdocArgs = [ + 'global', + 'run', + '--enable-asserts', + 'dartdoc', + '--output', + publishRoot.childDirectory('flutter').path, + '--allow-tools', + if (useJson) '--json', + if (validateLinks) '--validate-links' else '--no-validate-links', + '--link-to-source-excludes', + flutterRoot.childDirectory('bin').childDirectory('cache').path, + '--link-to-source-root', + flutterRoot.path, + '--link-to-source-uri-template', + 'https://github.com/flutter/flutter/blob/master/%f%#L%l%', + '--inject-html', + '--use-base-href', + '--header', + docsRoot.childFile('styles.html').path, + '--header', + docsRoot.childFile('analytics-header.html').path, + '--header', + docsRoot.childFile('survey.html').path, + '--header', + docsRoot.childFile('snippets.html').path, + '--header', + docsRoot.childFile('opensearch.html').path, + '--footer', + docsRoot.childFile('analytics-footer.html').path, + '--footer-text', + packageRoot.childFile('footer.html').path, + '--allow-warnings-in-packages', + flutterPackages.join(','), + '--exclude-packages', + [ + 'analyzer', + 'args', + 'barback', + 'csslib', + 'flutter_goldens', + 'flutter_goldens_client', + 'front_end', + 'fuchsia_remote_debug_protocol', + 'glob', + 'html', + 'http_multi_server', + 'io', + 'isolate', + 'js', + 'kernel', + 'logging', + 'mime', + 'mockito', + 'node_preamble', + 'plugin', + 'shelf', + 'shelf_packages_handler', + 'shelf_static', + 'shelf_web_socket', + 'utf', + 'watcher', + 'yaml', + ].join(','), + '--exclude', + [ + 'dart:io/network_policy.dart', // dart-lang/dartdoc#2437 + 'package:Flutter/temp_doc.dart', + 'package:http/browser_client.dart', + 'package:intl/intl_browser.dart', + 'package:matcher/mirror_matchers.dart', + 'package:quiver/io.dart', + 'package:quiver/mirrors.dart', + 'package:vm_service_client/vm_service_client.dart', + 'package:web_socket_channel/html.dart', + ].join(','), + '--favicon', + docsRoot.childFile('favicon.ico').absolute.path, + '--package-order', + 'flutter,Dart,$kPlatformIntegrationPackageName,flutter_test,flutter_driver', + '--auto-include-dependencies', + ]; + + String quote(String arg) => arg.contains(' ') ? "'$arg'" : arg; + print('Executing: (cd "${packageRoot.path}" ; ' + '${FlutterInformation.instance.getDartBinaryPath().path} ' + '${dartdocArgs.map(quote).join(' ')})'); + + process = ProcessWrapper(await runPubProcess( + arguments: dartdocArgs, + workingDirectory: packageRoot, + environment: pubEnvironment, + processManager: processManager, + )); + printStream( + process.stdout, + prefix: useJson ? '' : 'dartdoc:stdout: ', + filter: [ + if (!verbose) RegExp(r'^Generating docs for library '), // Unnecessary verbosity + ], + ); + printStream( + process.stderr, + prefix: useJson ? '' : 'dartdoc:stderr: ', + filter: [ + if (!verbose) + RegExp( + // Remove warnings from packages outside our control + r'^ warning: .+: \(.+[\\/]\.pub-cache[\\/]hosted[\\/]pub.dartlang.org[\\/].+\)', + ), + ], + ); + final int exitCode = await process.done; + + if (exitCode != 0) { + exit(exitCode); + } + + _sanityCheckDocs(); + checkForUnresolvedDirectives(publishRoot.childDirectory('flutter')); + + _createIndexAndCleanup(); + + print('Documentation written to ${publishRoot.path}'); + } + + void _sanityCheckExample(String fileString, String regExpString) { + final File file = filesystem.file(fileString); + if (file.existsSync()) { + final RegExp regExp = RegExp(regExpString, dotAll: true); + final String contents = file.readAsStringSync(); + if (!regExp.hasMatch(contents)) { + throw Exception("Missing example code matching '$regExpString' in ${file.path}."); + } + } else { + throw Exception( + "Missing example code sanity test file ${file.path}. Either it didn't get published, or you might have to update the test to look at a different file."); + } + } + + /// A subset of all generated doc files for [_sanityCheckDocs]. + @visibleForTesting + List get canaries { + final Directory flutterDirectory = publishRoot.childDirectory('flutter'); + final Directory widgetsDirectory = flutterDirectory.childDirectory('widgets'); + + return [ + publishRoot.childDirectory('assets').childFile('overrides.css'), + flutterDirectory.childDirectory('dart-io').childFile('File-class.html'), + flutterDirectory.childDirectory('dart-ui').childFile('Canvas-class.html'), + flutterDirectory.childDirectory('dart-ui').childDirectory('Canvas').childFile('drawRect.html'), + flutterDirectory + .childDirectory('flutter_driver') + .childDirectory('FlutterDriver') + .childFile('FlutterDriver.connectedTo.html'), + flutterDirectory.childDirectory('flutter_test').childDirectory('WidgetTester').childFile('pumpWidget.html'), + flutterDirectory.childDirectory('material').childFile('Material-class.html'), + flutterDirectory.childDirectory('material').childFile('Tooltip-class.html'), + widgetsDirectory.childFile('Widget-class.html'), + widgetsDirectory.childFile('Listener-class.html'), + ]; + } + + /// Runs a sanity check by running a test. + void _sanityCheckDocs([Platform platform = const LocalPlatform()]) { + for (final File canary in canaries) { + if (!canary.existsSync()) { + throw Exception('Missing "${canary.path}", which probably means the documentation failed to build correctly.'); + } + } + // Make sure at least one example of each kind includes source code. + final Directory widgetsDirectory = publishRoot + .childDirectory('flutter') + .childDirectory('widgets'); + + // Check a "sample" example, any one will do. + _sanityCheckExample( + widgetsDirectory.childFile('showGeneralDialog.html').path, + r'\s*\s*import 'package:flutter/material.dart';', + ); + + // Check a "snippet" example, any one will do. + _sanityCheckExample( + widgetsDirectory.childDirectory('ModalRoute').childFile('barrierColor.html').path, + r'\s*.*Color\s+get\s+barrierColor.*
', + ); + + // Check a "dartpad" example, any one will do, and check for the correct URL + // arguments. + // Just use "master" for any branch other than the LUCI_BRANCH. + final String? luciBranch = platform.environment['LUCI_BRANCH']?.trim(); + final String expectedBranch = luciBranch != null && luciBranch.isNotEmpty ? luciBranch : 'master'; + final List argumentRegExps = [ + r'split=\d+', + r'run=true', + r'sample_id=widgets\.Listener\.\d+', + 'sample_channel=$expectedBranch', + 'channel=$expectedBranch', + ]; + for (final String argumentRegExp in argumentRegExps) { + _sanityCheckExample( + widgetsDirectory.childFile('Listener-class.html').path, + r'\s*\s*<\/iframe>', + ); + } + } + + /// Creates a custom index.html because we try to maintain old + /// paths. Cleanup unused index.html files no longer needed. + void _createIndexAndCleanup() { + print('\nCreating a custom index.html in ${publishRoot.childFile('index.html').path}'); + _copyIndexToRootOfDocs(); + _addHtmlBaseToIndex(); + _changePackageToSdkInTitlebar(); + _putRedirectInOldIndexLocation(); + _writeSnippetsIndexFile(); + print('\nDocs ready to go!'); + } + + void _copyIndexToRootOfDocs() { + publishRoot.childDirectory('flutter').childFile('index.html').copySync(publishRoot.childFile('index.html').path); + } + + void _changePackageToSdkInTitlebar() { + final File indexFile = publishRoot.childFile('index.html'); + String indexContents = indexFile.readAsStringSync(); + indexContents = indexContents.replaceFirst( + '
  • Flutter package
  • ', + '
  • Flutter SDK
  • ', + ); + + indexFile.writeAsStringSync(indexContents); + } + + void _addHtmlBaseToIndex() { + final File indexFile = publishRoot.childFile('index.html'); + String indexContents = indexFile.readAsStringSync(); + indexContents = indexContents.replaceFirst( + '\n', + '\n \n', + ); + + for (final String platform in kPlatformDocs.keys) { + final String sectionName = kPlatformDocs[platform]!.sectionName; + final String subdir = kPlatformDocs[platform]!.subdir; + indexContents = indexContents.replaceAll( + 'href="$sectionName/$sectionName-library.html"', + 'href="../$subdir/index.html"', + ); + } + + indexFile.writeAsStringSync(indexContents); + } + + void _putRedirectInOldIndexLocation() { + const String metaTag = ''; + publishRoot.childDirectory('flutter').childFile('index.html').writeAsStringSync(metaTag); + } + + void _writeSnippetsIndexFile() { + final Directory snippetsDir = publishRoot.childDirectory('snippets'); + if (snippetsDir.existsSync()) { + const JsonEncoder jsonEncoder = JsonEncoder.withIndent(' '); + final Iterable files = + snippetsDir.listSync().whereType().where((File file) => path.extension(file.path) == '.json'); + // Combine all the metadata into a single JSON array. + final Iterable fileContents = files.map((File file) => file.readAsStringSync()); + final List metadataObjects = fileContents.map(json.decode).toList(); + final String jsonArray = jsonEncoder.convert(metadataObjects); + snippetsDir.childFile('index.json').writeAsStringSync(jsonArray); + } + } +} + +/// Downloads and unpacks the platform specific documentation generated by the +/// engine build. +/// +/// Unpacks and massages the data so that it can be properly included in the +/// output archive. +class PlatformDocGenerator { + PlatformDocGenerator({required this.outputDir, required this.filesystem}); + + final FileSystem filesystem; + final Directory outputDir; + final String engineRevision = FlutterInformation.instance.getEngineRevision(); + final String engineRealm = FlutterInformation.instance.getEngineRealm(); + + /// This downloads an archive of platform docs for the engine from the artifact + /// store and extracts them to the location used for Dartdoc. + Future generatePlatformDocs() async { + final String realm = engineRealm.isNotEmpty ? '$engineRealm/' : ''; + + for (final String platform in kPlatformDocs.keys) { + final String zipFile = kPlatformDocs[platform]!.zipName; + final String url = + 'https://storage.googleapis.com/${realm}flutter_infra_release/flutter/$engineRevision/$zipFile'; + await _extractDocs(url, platform, kPlatformDocs[platform]!, outputDir); + } + } + + /// Fetches the zip archive at the specified url. + /// + /// Returns null if the archive fails to download after [maxTries] attempts. + Future _fetchArchive(String url, int maxTries) async { + List? responseBytes; + for (int i = 0; i < maxTries; i++) { + final http.Response response = await http.get(Uri.parse(url)); + if (response.statusCode == 200) { + responseBytes = response.bodyBytes; + break; + } + stderr.writeln('Failed attempt ${i + 1} to fetch $url.'); + + // On failure print a short snipped from the body in case it's helpful. + final int bodyLength = math.min(1024, response.body.length); + stderr.writeln('Response status code ${response.statusCode}. Body: ${response.body.substring(0, bodyLength)}'); + sleep(const Duration(seconds: 1)); + } + return responseBytes == null ? null : ZipDecoder().decodeBytes(responseBytes); + } + + Future _extractDocs(String url, String name, PlatformDocsSection platform, Directory outputDir) async { + const int maxTries = 5; + final Archive? archive = await _fetchArchive(url, maxTries); + if (archive == null) { + stderr.writeln('Failed to fetch zip archive from: $url after $maxTries attempts. Giving up.'); + exit(1); + } + + final Directory output = outputDir.childDirectory(platform.subdir); + print('Extracting ${platform.zipName} to ${output.path}'); + output.createSync(recursive: true); + + for (final ArchiveFile af in archive) { + if (!af.name.endsWith('/')) { + final File file = filesystem.file('${output.path}/${af.name}'); + file.createSync(recursive: true); + file.writeAsBytesSync(af.content as List); + } + } + + final File testFile = output.childFile(platform.checkFile); + if (!testFile.existsSync()) { + print('Expected file ${testFile.path} not found'); + exit(1); + } + print('${platform.sectionName} ready to go!'); + } +} + +/// Recursively copies `srcDir` to `destDir`, invoking [onFileCopied], if +/// specified, for each source/destination file pair. +/// +/// Creates `destDir` if needed. +void copyDirectorySync(Directory srcDir, Directory destDir, + {void Function(File srcFile, File destFile)? onFileCopied, required FileSystem filesystem}) { + if (!srcDir.existsSync()) { + throw Exception('Source directory "${srcDir.path}" does not exist, nothing to copy'); + } + + if (!destDir.existsSync()) { + destDir.createSync(recursive: true); + } + + for (final FileSystemEntity entity in srcDir.listSync()) { + final String newPath = path.join(destDir.path, path.basename(entity.path)); + if (entity is File) { + final File newFile = filesystem.file(newPath); + entity.copySync(newPath); + onFileCopied?.call(entity, newFile); + } else if (entity is Directory) { + copyDirectorySync(entity, filesystem.directory(newPath), filesystem: filesystem); + } else { + throw Exception('${entity.path} is neither File nor Directory'); + } + } +} + +void printStream(Stream> stream, {String prefix = '', List filter = const []}) { + stream.transform(utf8.decoder).transform(const LineSplitter()).listen((String line) { + if (!filter.any((Pattern pattern) => line.contains(pattern))) { + print('$prefix$line'.trim()); + } + }); +} + +void zipDirectory(Directory src, File output, {required ProcessManager processManager}) { + // We would use the archive package to do this in one line, but it + // is a lot slower, and doesn't do compression nearly as well. + final ProcessResult zipProcess = processManager.runSync( + [ + 'zip', + '-r', + '-9', + '-q', + output.path, + '.', + ], + workingDirectory: src.path, + ); + + if (zipProcess.exitCode != 0) { + print('Creating offline ZIP archive ${output.path} failed:'); + print(zipProcess.stderr); + exit(1); + } +} + +void tarDirectory(Directory src, File output, {required ProcessManager processManager}) { + // We would use the archive package to do this in one line, but it + // is a lot slower, and doesn't do compression nearly as well. + final ProcessResult tarProcess = processManager.runSync( + [ + 'tar', + 'cf', + output.path, + '--use-compress-program', + 'gzip --best', + 'flutter.docset', + ], + workingDirectory: src.path, + ); + + if (tarProcess.exitCode != 0) { + print('Creating a tarball ${output.path} failed:'); + print(tarProcess.stderr); + exit(1); + } +} + +Future runPubProcess({ + required List arguments, + Directory? workingDirectory, + Map? environment, + @visibleForTesting ProcessManager processManager = const LocalProcessManager(), + @visibleForTesting FileSystem filesystem = const LocalFileSystem(), +}) { + return processManager.start( + [FlutterInformation.instance.getFlutterBinaryPath().path, 'pub', ...arguments], + workingDirectory: (workingDirectory ?? filesystem.currentDirectory).path, + environment: environment, + ); +} + +List findPackageNames(FileSystem filesystem) { + return findPackages(filesystem).map((FileSystemEntity file) => path.basename(file.path)).toList(); +} + +/// Finds all packages in the Flutter SDK +List findPackages(FileSystem filesystem) { + return FlutterInformation.instance + .getFlutterRoot() + .childDirectory('packages') + .listSync() + .where((FileSystemEntity entity) { + if (entity is! Directory) { + return false; + } + final File pubspec = entity.childFile('pubspec.yaml'); + if (!pubspec.existsSync()) { + print("Unexpected package '${entity.path}' found in packages directory"); + return false; + } + // Would be nice to use a real YAML parser here, but we don't want to + // depend on a whole package for it, and this is sufficient. + return !pubspec.readAsStringSync().contains('nodoc: true'); + }) + .cast() + .toList(); +} + +/// An exception class used to indicate problems when collecting information. +class FlutterInformationException implements Exception { + FlutterInformationException(this.message); + final String message; + + @override + String toString() { + return '$runtimeType: $message'; + } +} + +/// A singleton used to consolidate the way in which information about the +/// Flutter repo and environment is collected. +/// +/// Collects the information once, and caches it for any later access. +/// +/// The singleton instance can be overridden by tests by setting [instance]. +class FlutterInformation { + FlutterInformation({ + this.platform = const LocalPlatform(), + this.processManager = const LocalProcessManager(), + this.filesystem = const LocalFileSystem(), + }); + + final Platform platform; + final ProcessManager processManager; + final FileSystem filesystem; + + static FlutterInformation? _instance; + + static FlutterInformation get instance => _instance ??= FlutterInformation(); + + @visibleForTesting + static set instance(FlutterInformation? value) => _instance = value; + + /// The path to the Dart binary in the Flutter repo. + /// + /// This is probably a shell script. + File getDartBinaryPath() { + return getFlutterRoot().childDirectory('bin').childFile('dart'); + } + + /// The path to the Dart binary in the Flutter repo. + /// + /// This is probably a shell script. + File getFlutterBinaryPath() { + return getFlutterRoot().childDirectory('bin').childFile('flutter'); + } + + /// The path to the Flutter repo root directory. + /// + /// If the environment variable `FLUTTER_ROOT` is set, will use that instead + /// of looking for it. + /// + /// Otherwise, uses the output of `flutter --version --machine` to find the + /// Flutter root. + Directory getFlutterRoot() { + if (platform.environment['FLUTTER_ROOT'] != null) { + return filesystem.directory(platform.environment['FLUTTER_ROOT']); + } + return getFlutterInformation()['flutterRoot']! as Directory; + } + + /// Gets the semver version of the Flutter framework in the repo. + Version getFlutterVersion() => getFlutterInformation()['frameworkVersion']! as Version; + + /// Gets the git hash of the engine used by the Flutter framework in the repo. + String getEngineRevision() => getFlutterInformation()['engineRevision']! as String; + + /// Gets the value stored in bin/internal/engine.realm used by the Flutter + /// framework repo. + String getEngineRealm() => getFlutterInformation()['engineRealm']! as String; + + /// Gets the git hash of the Flutter framework in the repo. + String getFlutterRevision() => getFlutterInformation()['flutterGitRevision']! as String; + + /// Gets the name of the current branch in the Flutter framework in the repo. + String getBranchName() => getFlutterInformation()['branchName']! as String; + + Map? _cachedFlutterInformation; + + /// Gets a Map of various kinds of information about the Flutter repo. + Map getFlutterInformation() { + if (_cachedFlutterInformation != null) { + return _cachedFlutterInformation!; + } + + String flutterVersionJson; + if (platform.environment['FLUTTER_VERSION'] != null) { + flutterVersionJson = platform.environment['FLUTTER_VERSION']!; + } else { + // Determine which flutter command to run, which will determine which + // flutter root is eventually used. If the FLUTTER_ROOT is set, then use + // that flutter command, otherwise use the first one in the PATH. + String flutterCommand; + if (platform.environment['FLUTTER_ROOT'] != null) { + flutterCommand = filesystem + .directory(platform.environment['FLUTTER_ROOT']) + .childDirectory('bin') + .childFile('flutter') + .absolute + .path; + } else { + flutterCommand = 'flutter'; + } + ProcessResult result; + try { + result = processManager.runSync( + [flutterCommand, '--version', '--machine'], + stdoutEncoding: utf8, + ); + } on ProcessException catch (e) { + throw FlutterInformationException( + 'Unable to determine Flutter information. Either set FLUTTER_ROOT, or place the ' + 'flutter command in your PATH.\n$e'); + } + if (result.exitCode != 0) { + throw FlutterInformationException( + 'Unable to determine Flutter information, because of abnormal exit of flutter command.'); + } + // Strip out any non-JSON that might be printed along with the command + // output. + flutterVersionJson = (result.stdout as String) + .replaceAll('Waiting for another flutter command to release the startup lock...', ''); + } + + final Map flutterVersion = json.decode(flutterVersionJson) as Map; + if (flutterVersion['flutterRoot'] == null || + flutterVersion['frameworkVersion'] == null || + flutterVersion['dartSdkVersion'] == null) { + throw FlutterInformationException( + 'Flutter command output has unexpected format, unable to determine flutter root location.'); + } + + final Map info = {}; + final Directory flutterRoot = filesystem.directory(flutterVersion['flutterRoot']! as String); + info['flutterRoot'] = flutterRoot; + info['frameworkVersion'] = Version.parse(flutterVersion['frameworkVersion'] as String); + info['engineRevision'] = flutterVersion['engineRevision'] as String; + final File engineRealm = flutterRoot.childDirectory('bin').childDirectory('internal').childFile('engine.realm'); + info['engineRealm'] = engineRealm.existsSync() ? engineRealm.readAsStringSync().trim() : ''; + + final RegExpMatch? dartVersionRegex = RegExp(r'(?[\d.]+)(?:\s+\(build (?[-.\w]+)\))?') + .firstMatch(flutterVersion['dartSdkVersion'] as String); + if (dartVersionRegex == null) { + throw FlutterInformationException( + 'Flutter command output has unexpected format, unable to parse dart SDK version ${flutterVersion['dartSdkVersion']}.'); + } + info['dartSdkVersion'] = + Version.parse(dartVersionRegex.namedGroup('detail') ?? dartVersionRegex.namedGroup('base')!); + + info['branchName'] = _getBranchName(); + info['flutterGitRevision'] = _getFlutterGitRevision(); + _cachedFlutterInformation = info; + + return info; + } + + // Get the name of the release branch. + // + // On LUCI builds, the git HEAD is detached, so first check for the env + // variable "LUCI_BRANCH"; if it is not set, fall back to calling git. + String _getBranchName() { + final String? luciBranch = platform.environment['LUCI_BRANCH']; + if (luciBranch != null && luciBranch.trim().isNotEmpty) { + return luciBranch.trim(); + } + final ProcessResult gitResult = processManager.runSync(['git', 'status', '-b', '--porcelain']); + if (gitResult.exitCode != 0) { + throw 'git status exit with non-zero exit code: ${gitResult.exitCode}'; + } + final RegExp gitBranchRegexp = RegExp(r'^## (.*)'); + final RegExpMatch? gitBranchMatch = + gitBranchRegexp.firstMatch((gitResult.stdout as String).trim().split('\n').first); + return gitBranchMatch == null ? '' : gitBranchMatch.group(1)!.split('...').first; + } + + // Get the git revision for the repo. + String _getFlutterGitRevision() { + const int kGitRevisionLength = 10; + + final ProcessResult gitResult = processManager.runSync(['git', 'rev-parse', 'HEAD']); + if (gitResult.exitCode != 0) { + throw 'git rev-parse exit with non-zero exit code: ${gitResult.exitCode}'; + } + final String gitRevision = (gitResult.stdout as String).trim(); + + return gitRevision.length > kGitRevisionLength ? gitRevision.substring(0, kGitRevisionLength) : gitRevision; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/dartdoc_checker.dart b/novelforge-project/agent-workspace/flutter/dev/tools/dartdoc_checker.dart new file mode 100644 index 0000000000000000000000000000000000000000..cbc47f8540e106d0d34aeca67b2b577fd7f2e956 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/dartdoc_checker.dart @@ -0,0 +1,125 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +import 'package:meta/meta.dart'; +import 'package:path/path.dart' as path; + +/// Makes sure that the path we were given contains some of the expected +/// libraries. +@visibleForTesting +const List dartdocDirectiveCanaryLibraries = [ + 'animation', + 'cupertino', + 'material', + 'widgets', + 'rendering', + 'flutter_driver', +]; + +/// Makes sure that the path we were given contains some of the expected +/// HTML files. +@visibleForTesting +const List dartdocDirectiveCanaryFiles = [ + 'Widget-class.html', + 'Material-class.html', + 'Canvas-class.html', +]; + +/// Scans the dartdoc HTML output in the provided `dartDocDir` for +/// unresolved dartdoc directives (`{@foo x y}`). +/// +/// Dartdoc usually replaces those directives with other content. However, +/// if the directive is misspelled (or contains other errors) it is placed +/// verbatim into the HTML output. That's not desirable and this check verifies +/// that no directives appear verbatim in the output by checking that the +/// string `{@` does not appear in the HTML output outside of sections. +/// +/// The string `{@` is allowed in sections, because those may contain +/// sample code where the sequence is perfectly legal, e.g. for required named +/// parameters of a method: +/// +/// ``` +/// void foo({@required int bar}); +/// ``` +void checkForUnresolvedDirectives(Directory dartDocDir) { + if (!dartDocDir.existsSync()) { + throw Exception('Directory with dartdoc output (${dartDocDir.path}) does not exist.'); + } + + // Make a copy since this will be mutated + final List canaryLibraries = dartdocDirectiveCanaryLibraries.toList(); + final List canaryFiles = dartdocDirectiveCanaryFiles.toList(); + + print('Scanning for unresolved dartdoc directives...'); + + final List toScan = dartDocDir.listSync(); + int count = 0; + + while (toScan.isNotEmpty) { + final FileSystemEntity entity = toScan.removeLast(); + if (entity is File) { + if (path.extension(entity.path) != '.html') { + continue; + } + canaryFiles.remove(path.basename(entity.path)); + count += _scanFile(entity); + } else if (entity is Directory) { + canaryLibraries.remove(path.basename(entity.path)); + toScan.addAll(entity.listSync()); + } else { + throw Exception('$entity is neither file nor directory.'); + } + } + + if (canaryLibraries.isNotEmpty) { + throw Exception('Did not find docs for the following libraries: ${canaryLibraries.join(', ')}.'); + } + if (canaryFiles.isNotEmpty) { + throw Exception('Did not find docs for the following files: ${canaryFiles.join(', ')}.'); + } + if (count > 0) { + throw Exception('Found $count unresolved dartdoc directives (see log above).'); + } + print('No unresolved dartdoc directives detected.'); +} + +int _scanFile(File file) { + assert(path.extension(file.path) == '.html'); + final Iterable matches = _pattern.allMatches(file.readAsStringSync()) + .map((RegExpMatch m ) => m.group(0)!); + + if (matches.isNotEmpty) { + stderr.writeln('Found unresolved dartdoc directives in ${file.path}:'); + for (final String match in matches) { + stderr.writeln(' $match'); + } + } + return matches.length; +} + +// Matches all `{@` that are not within `` sections. +// +// This regex may lead to false positives if the docs ever contain nested tags +// inside sections. Since we currently don't do that, doing the matching +// with a regex is a lot faster than using an HTML parser to strip out the +// sections. +final RegExp _pattern = RegExp(r'({@[^}\n]*}?)(?![^<>]* args) { + if (args.length != 1) { + throw Exception('Must provide the path to the dartdoc HTML output as argument.'); + } + if (!Directory(args.single).existsSync()) { + throw Exception('The dartdoc HTML output directory ${args.single} does not exist.'); + } + checkForUnresolvedDirectives(Directory(args.single)); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/examples_smoke_test.dart b/novelforge-project/agent-workspace/flutter/dev/tools/examples_smoke_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..84660fda3873314ddafd2946836cb67896eadcaa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/examples_smoke_test.dart @@ -0,0 +1,252 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This test builds an integration test from the list of samples in the +// examples/api/lib directory, and then runs it. The tests are just smoke tests, +// designed to start up each example and run it for a couple of frames to make +// sure it doesn't throw an exception or fail to compile. + +import 'dart:async'; +import 'dart:convert'; +import 'dart:io' show Process, ProcessException, exitCode, stderr, stdout; + +import 'package:file/file.dart'; +import 'package:file/local.dart'; +import 'package:path/path.dart' as path; +import 'package:platform/platform.dart'; +import 'package:process/process.dart'; + +const FileSystem _kFilesystem = LocalFileSystem(); +const ProcessManager _kProcessManager = LocalProcessManager(); +const Platform _kPlatform = LocalPlatform(); + +FutureOr main() async { + if (!_kPlatform.isLinux && !_kPlatform.isWindows && !_kPlatform.isMacOS) { + stderr.writeln('Example smoke tests are only designed to run on desktop platforms'); + exitCode = 4; + return; + } + final Directory flutterDir = _kFilesystem.directory( + path.absolute( + path.dirname( + path.dirname( + path.dirname(_kPlatform.script.toFilePath()), + ), + ), + ), + ); + final Directory apiDir = flutterDir.childDirectory('examples').childDirectory('api'); + final File integrationTest = await generateTest(apiDir); + try { + await runSmokeTests(flutterDir: flutterDir, integrationTest: integrationTest, apiDir: apiDir); + } finally { + await cleanUp(integrationTest); + } +} + +Future cleanUp(File integrationTest) async { + try { + await integrationTest.delete(); + // Delete the integration_test directory if it is empty. + await integrationTest.parent.delete(); + } on FileSystemException { + // Ignore, there might be other files in there preventing it from + // being removed, or it might not exist. + } +} + +// Executes the generated smoke test. +Future runSmokeTests({ + required Directory flutterDir, + required File integrationTest, + required Directory apiDir, +}) async { + final File flutterExe = + flutterDir.childDirectory('bin').childFile(_kPlatform.isWindows ? 'flutter.bat' : 'flutter'); + final List cmd = [ + // If we're in a container with no X display, then use the virtual framebuffer. + if (_kPlatform.isLinux && + (_kPlatform.environment['DISPLAY'] == null || + _kPlatform.environment['DISPLAY']!.isEmpty)) '/usr/bin/xvfb-run', + flutterExe.absolute.path, + 'test', + '--reporter=expanded', + '--device-id=${_kPlatform.operatingSystem}', + integrationTest.absolute.path, + ]; + await runCommand(cmd, workingDirectory: apiDir); +} + +// A class to hold information related to an example, used to generate names +// from for the tests. +class ExampleInfo { + ExampleInfo(File file, Directory examplesLibDir) + : importPath = _getImportPath(file, examplesLibDir), + importName = '' { + importName = importPath.replaceAll(RegExp(r'\.dart$'), '').replaceAll(RegExp(r'\W'), '_'); + } + + final String importPath; + String importName; + + static String _getImportPath(File example, Directory examplesLibDir) { + final String relativePath = + path.relative(example.absolute.path, from: examplesLibDir.absolute.path); + // So that Windows paths are proper URIs in the import statements. + return path.toUri(relativePath).toFilePath(windows: false); + } +} + +// Generates the combined smoke test. +Future generateTest(Directory apiDir) async { + final Directory examplesLibDir = apiDir.childDirectory('lib'); + + // Get files from git, to avoid any non-repo files that might be in someone's + // workspace. + final List gitFiles = (await runCommand( + ['git', 'ls-files', '**/*.dart'], + workingDirectory: examplesLibDir, + quiet: true, + )).replaceAll(r'\', '/') + .trim() + .split('\n'); + final Iterable examples = gitFiles.map((String examplePath) { + return _kFilesystem.file(path.join(examplesLibDir.absolute.path, examplePath)); + }); + + // Collect the examples, and import them all as separate symbols. + final List imports = []; + imports.add('''import 'package:flutter/widgets.dart';'''); + imports.add('''import 'package:flutter/scheduler.dart';'''); + imports.add('''import 'package:flutter_test/flutter_test.dart';'''); + imports.add('''import 'package:integration_test/integration_test.dart';'''); + final List infoList = []; + for (final File example in examples) { + final ExampleInfo info = ExampleInfo(example, examplesLibDir); + infoList.add(info); + imports.add('''import 'package:flutter_api_samples/${info.importPath}' as ${info.importName};'''); + } + imports.sort(); + infoList.sort((ExampleInfo a, ExampleInfo b) => a.importPath.compareTo(b.importPath)); + + final StringBuffer buffer = StringBuffer(); + buffer.writeln('// Temporary generated file. Do not commit.'); + buffer.writeln("import 'dart:io';"); + buffer.writeAll(imports, '\n'); + buffer.writeln(r''' + + +import '../../../dev/manual_tests/test/mock_image_http.dart'; + +void main() { + IntegrationTestWidgetsFlutterBinding? binding; + try { + binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized() as IntegrationTestWidgetsFlutterBinding; + } catch (e) { + stderr.writeln('Unable to initialize binding${binding == null ? '' : ' $binding'}: $e'); + exitCode = 128; + return; + } + +'''); + for (final ExampleInfo info in infoList) { + buffer.writeln(''' + testWidgets( + 'Smoke test ${info.importPath}', + (WidgetTester tester) async { + final ErrorWidgetBuilder originalBuilder = ErrorWidget.builder; + try { + HttpOverrides.runZoned(() { + ${info.importName}.main(); + }, createHttpClient: (SecurityContext? context) => FakeHttpClient(context)); + await tester.pump(); + await tester.pump(); + expect(find.byType(WidgetsApp), findsOneWidget); + } finally { + ErrorWidget.builder = originalBuilder; + timeDilation = 1.0; + } + }, + ); +'''); + } + buffer.writeln('}'); + + final File integrationTest = + apiDir.childDirectory('integration_test').childFile('smoke_integration_test.dart'); + integrationTest.createSync(recursive: true); + integrationTest.writeAsStringSync(buffer.toString()); + return integrationTest; +} + +// Run a command, and optionally stream the output as it runs, returning the +// stdout. +Future runCommand( + List cmd, { + required Directory workingDirectory, + bool quiet = false, + List? output, + Map? environment, +}) async { + final List stdoutOutput = []; + final List combinedOutput = []; + final Completer stdoutComplete = Completer(); + final Completer stderrComplete = Completer(); + + late Process process; + Future allComplete() async { + await stderrComplete.future; + await stdoutComplete.future; + return process.exitCode; + } + + try { + process = await _kProcessManager.start( + cmd, + workingDirectory: workingDirectory.absolute.path, + environment: environment, + ); + process.stdout.listen( + (List event) { + stdoutOutput.addAll(event); + combinedOutput.addAll(event); + if (!quiet) { + stdout.add(event); + } + }, + onDone: () async => stdoutComplete.complete(), + ); + process.stderr.listen( + (List event) { + combinedOutput.addAll(event); + if (!quiet) { + stderr.add(event); + } + }, + onDone: () async => stderrComplete.complete(), + ); + } on ProcessException catch (e) { + stderr.writeln('Running "${cmd.join(' ')}" in ${workingDirectory.path} ' + 'failed with:\n$e'); + exitCode = 2; + return utf8.decode(stdoutOutput); + } on ArgumentError catch (e) { + stderr.writeln('Running "${cmd.join(' ')}" in ${workingDirectory.path} ' + 'failed with:\n$e'); + exitCode = 3; + return utf8.decode(stdoutOutput); + } + + final int processExitCode = await allComplete(); + if (processExitCode != 0) { + stderr.writeln('Running "${cmd.join(' ')}" in ${workingDirectory.path} exited with code $processExitCode'); + exitCode = processExitCode; + } + + if (output != null) { + output.addAll(utf8.decode(combinedOutput).split('\n')); + } + + return utf8.decode(stdoutOutput); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/find_engine_commit.dart b/novelforge-project/agent-workspace/flutter/dev/tools/find_engine_commit.dart new file mode 100644 index 0000000000000000000000000000000000000000..c8d67af0c1d30484c9ad94a07527a110195e5061 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/find_engine_commit.dart @@ -0,0 +1,130 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +void _validate(List args) { + bool errors = false; + if (!File('bin/internal/engine.version').existsSync()) { + errors = true; + print('This program must be run from the root of your flutter repository.'); + } + if (!File('../engine/src/flutter/DEPS').existsSync()) { + errors = true; + print('This program assumes the engine directory is a sibling to the flutter repository directory.'); + } + if (args.length != 1) { + errors = true; + print('This program takes the engine revision as a single argument.'); + } + if (errors) { + exit(-1); + } +} + +const String engineRepo = '../engine/src/flutter'; + +Future main(List args) async { + _validate(args); + await _fetchUpstream(); + await _fetchUpstream(engineRepo); + String? flutterRevision; + await for (final FlutterEngineRevision revision in _logEngineVersions()) { + if (!await containsRevision(args[0], revision.engineRevision)) { + if (flutterRevision == null) { + print('Revision not found.'); + exit(-1); + } + print('earliest revision: $flutterRevision'); + print('Tags that contain this engine revision:'); + print(await _tagsForRevision(flutterRevision)); + exit(0); + } + flutterRevision = revision.flutterRevision; + } +} + +Future _fetchUpstream([String workingDirectory = '.']) async { + print('Fetching remotes for "$workingDirectory" - you may be prompted for SSH credentials by git.'); + final ProcessResult fetchResult = await Process.run( + 'git', + [ + 'fetch', + '--all', + ], + workingDirectory: workingDirectory, + ); + if (fetchResult.exitCode != 0) { + throw Exception('Failed to fetch upstream in repository $workingDirectory'); + } +} + +Future _tagsForRevision(String flutterRevision) async { + final ProcessResult tagResult = await Process.run( + 'git', + [ + 'tag', + '--contains', + flutterRevision, + ], + ); + return tagResult.stdout as String; +} + +Future containsRevision(String ancestorRevision, String revision) async { + final ProcessResult result = await Process.run( + 'git', + [ + 'merge-base', + '--is-ancestor', + ancestorRevision, + revision, + ], + workingDirectory: engineRepo, + ); + return result.exitCode == 0; +} + +Stream _logEngineVersions() async* { + final ProcessResult result = await Process.run( + 'git', + [ + 'log', + '--oneline', + '-p', + '--', + 'bin/internal/engine.version', + ], + ); + if (result.exitCode != 0) { + print(result.stderr); + throw Exception('Failed to log bin/internal/engine.version'); + } + + final List lines = (result.stdout as String).split('\n'); + int index = 0; + while (index < lines.length - 1) { + final String flutterRevision = lines[index].split(' ').first; + index += 1; + while (!lines[index].startsWith('+') || lines[index].startsWith('+++')) { + index += 1; + } + if (index >= lines.length) { + break; + } + final String engineRevision = lines[index].substring(1); + yield FlutterEngineRevision(flutterRevision, engineRevision); + index += lines[index + 1].startsWith(r'\ ') ? 2 : 1; + } +} + +class FlutterEngineRevision { + const FlutterEngineRevision(this.flutterRevision, this.engineRevision); + + final String flutterRevision; + final String engineRevision; + + @override + String toString() => '$flutterRevision: $engineRevision'; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/README.md b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/README.md new file mode 100644 index 0000000000000000000000000000000000000000..7990079f5092eba09dbc0b6afc40dc8274d0f3d3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/README.md @@ -0,0 +1,35 @@ +## Token Defaults Generator + +Script that generates component theme data defaults based on token data. + +## Usage +Run this program from the root of the git repository: +``` +dart dev/tools/gen_defaults/bin/gen_defaults.dart [-v] +``` + +This updates `generated/used_tokens.csv` and the various component theme files. + +## Templates + +There is a template file for every component that needs defaults from +the token database. These templates are implemented as subclasses of +`TokenTemplate`. This base class provides some utilities and a structure +for adding a new block of generated code to the bottom of a given file. + +Templates need to override the `generate` method to provide the generated +code block as a string. + +See `lib/fab_template.dart` for an example that generates defaults for the +Floating Action Button. + +## Tokens + +Tokens are stored in JSON files in `data/`, and are sourced from +an internal Google database. + +`template.dart` should provide nearly all useful token resolvers +(e.g. `color`, `shape`, etc.). For special cases in which one shouldn't +be defined, use `getToken` to get the raw token value. The script, through +the various revolvers and `getToken`, validates tokens, keeps track of +which tokens are used, and generates `generated/used_tokens.csv`. diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/bin/gen_defaults.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/bin/gen_defaults.dart new file mode 100644 index 0000000000000000000000000000000000000000..f56afcfe94868ba7646219d43663f74efcf893ed --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/bin/gen_defaults.dart @@ -0,0 +1,163 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// ## Usage +// +// Run this program from the root of the git repository. +// +// ``` +// dart dev/tools/gen_defaults/bin/gen_defaults.dart [-v] +// ``` + +import 'dart:convert'; +import 'dart:io'; + +import 'package:args/args.dart'; +import 'package:gen_defaults/action_chip_template.dart'; +import 'package:gen_defaults/app_bar_template.dart'; +import 'package:gen_defaults/badge_template.dart'; +import 'package:gen_defaults/banner_template.dart'; +import 'package:gen_defaults/bottom_app_bar_template.dart'; +import 'package:gen_defaults/bottom_sheet_template.dart'; +import 'package:gen_defaults/button_template.dart'; +import 'package:gen_defaults/card_template.dart'; +import 'package:gen_defaults/checkbox_template.dart'; +import 'package:gen_defaults/chip_template.dart'; +import 'package:gen_defaults/color_scheme_template.dart'; +import 'package:gen_defaults/date_picker_template.dart'; +import 'package:gen_defaults/dialog_template.dart'; +import 'package:gen_defaults/divider_template.dart'; +import 'package:gen_defaults/drawer_template.dart'; +import 'package:gen_defaults/expansion_tile_template.dart'; +import 'package:gen_defaults/fab_template.dart'; +import 'package:gen_defaults/filter_chip_template.dart'; +import 'package:gen_defaults/icon_button_template.dart'; +import 'package:gen_defaults/input_chip_template.dart'; +import 'package:gen_defaults/input_decorator_template.dart'; +import 'package:gen_defaults/list_tile_template.dart'; +import 'package:gen_defaults/menu_template.dart'; +import 'package:gen_defaults/motion_template.dart'; +import 'package:gen_defaults/navigation_bar_template.dart'; +import 'package:gen_defaults/navigation_drawer_template.dart'; +import 'package:gen_defaults/navigation_rail_template.dart'; +import 'package:gen_defaults/popup_menu_template.dart'; +import 'package:gen_defaults/progress_indicator_template.dart'; +import 'package:gen_defaults/radio_template.dart'; +import 'package:gen_defaults/search_bar_template.dart'; +import 'package:gen_defaults/search_view_template.dart'; +import 'package:gen_defaults/segmented_button_template.dart'; +import 'package:gen_defaults/slider_template.dart'; +import 'package:gen_defaults/snackbar_template.dart'; +import 'package:gen_defaults/surface_tint.dart'; +import 'package:gen_defaults/switch_template.dart'; +import 'package:gen_defaults/tabs_template.dart'; +import 'package:gen_defaults/text_field_template.dart'; +import 'package:gen_defaults/time_picker_template.dart'; +import 'package:gen_defaults/token_logger.dart'; +import 'package:gen_defaults/typography_template.dart'; + +Map _readTokenFile(File file) { + return jsonDecode(file.readAsStringSync()) as Map; +} + +const String materialLib = 'packages/flutter/lib/src/material'; +const String dataDir = 'dev/tools/gen_defaults/data'; + +Future main(List args) async { + // Parse arguments + final ArgParser parser = ArgParser(); + parser.addFlag( + 'verbose', + abbr: 'v', + help: 'Enable verbose output', + negatable: false, + ); + final ArgResults argResults = parser.parse(args); + final bool verbose = argResults['verbose'] as bool; + + // Map of version number to list of data files that use that version. + final Map> versionMap = >{}; + // Map of all tokens to their values. + final Map tokens = {}; + + // Initialize. + for (final FileSystemEntity tokenFile in Directory(dataDir).listSync()) { + final Map tokenFileTokens = _readTokenFile(tokenFile as File); + final String version = tokenFileTokens['version'] as String; + tokenFileTokens.remove('version'); + if (versionMap[version] == null) { + versionMap[version] = List.empty(growable: true); + } + versionMap[version]!.add(tokenFile.uri.pathSegments.last); + + tokens.addAll(tokenFileTokens); + } + tokenLogger.init(allTokens: tokens, versionMap: versionMap); + // Handle light/dark color tokens separately because they share identical token names. + final Map colorLightTokens = _readTokenFile(File('$dataDir/color_light.json')); + final Map colorDarkTokens = _readTokenFile(File('$dataDir/color_dark.json')); + + // Generate tokens files. + ChipTemplate('Chip', '$materialLib/chip.dart', tokens).updateFile(); + ActionChipTemplate('ActionChip', '$materialLib/action_chip.dart', tokens).updateFile(); + AppBarTemplate('AppBar', '$materialLib/app_bar.dart', tokens).updateFile(); + BottomAppBarTemplate('BottomAppBar', '$materialLib/bottom_app_bar.dart', tokens).updateFile(); + BadgeTemplate('Badge', '$materialLib/badge.dart', tokens).updateFile(); + BannerTemplate('Banner', '$materialLib/banner.dart', tokens).updateFile(); + BottomAppBarTemplate('BottomAppBar', '$materialLib/bottom_app_bar.dart', tokens).updateFile(); + BottomSheetTemplate('BottomSheet', '$materialLib/bottom_sheet.dart', tokens).updateFile(); + ButtonTemplate('md.comp.elevated-button', 'ElevatedButton', '$materialLib/elevated_button.dart', tokens).updateFile(); + ButtonTemplate('md.comp.filled-button', 'FilledButton', '$materialLib/filled_button.dart', tokens).updateFile(); + ButtonTemplate('md.comp.filled-tonal-button', 'FilledTonalButton', '$materialLib/filled_button.dart', tokens).updateFile(); + ButtonTemplate('md.comp.outlined-button', 'OutlinedButton', '$materialLib/outlined_button.dart', tokens).updateFile(); + ButtonTemplate('md.comp.text-button', 'TextButton', '$materialLib/text_button.dart', tokens).updateFile(); + CardTemplate('md.comp.elevated-card', 'Card', '$materialLib/card.dart', tokens).updateFile(); + CardTemplate('md.comp.filled-card', 'FilledCard', '$materialLib/card.dart', tokens).updateFile(); + CardTemplate('md.comp.outlined-card', 'OutlinedCard', '$materialLib/card.dart', tokens).updateFile(); + CheckboxTemplate('Checkbox', '$materialLib/checkbox.dart', tokens).updateFile(); + ColorSchemeTemplate(colorLightTokens, colorDarkTokens, 'ColorScheme', '$materialLib/theme_data.dart', tokens).updateFile(); + DatePickerTemplate('DatePicker', '$materialLib/date_picker_theme.dart', tokens).updateFile(); + DialogFullscreenTemplate('DialogFullscreen', '$materialLib/dialog.dart', tokens).updateFile(); + DialogTemplate('Dialog', '$materialLib/dialog.dart', tokens).updateFile(); + DividerTemplate('Divider', '$materialLib/divider.dart', tokens).updateFile(); + DrawerTemplate('Drawer', '$materialLib/drawer.dart', tokens).updateFile(); + ExpansionTileTemplate('ExpansionTile', '$materialLib/expansion_tile.dart', tokens).updateFile(); + FABTemplate('FAB', '$materialLib/floating_action_button.dart', tokens).updateFile(); + FilterChipTemplate('ChoiceChip', '$materialLib/choice_chip.dart', tokens).updateFile(); + FilterChipTemplate('FilterChip', '$materialLib/filter_chip.dart', tokens).updateFile(); + IconButtonTemplate('md.comp.icon-button', 'IconButton', '$materialLib/icon_button.dart', tokens).updateFile(); + IconButtonTemplate('md.comp.filled-icon-button', 'FilledIconButton', '$materialLib/icon_button.dart', tokens).updateFile(); + IconButtonTemplate('md.comp.filled-tonal-icon-button', 'FilledTonalIconButton', '$materialLib/icon_button.dart', tokens).updateFile(); + IconButtonTemplate('md.comp.outlined-icon-button', 'OutlinedIconButton', '$materialLib/icon_button.dart', tokens).updateFile(); + InputChipTemplate('InputChip', '$materialLib/input_chip.dart', tokens).updateFile(); + ListTileTemplate('LisTile', '$materialLib/list_tile.dart', tokens).updateFile(); + InputDecoratorTemplate('InputDecorator', '$materialLib/input_decorator.dart', tokens).updateFile(); + MenuTemplate('Menu', '$materialLib/menu_anchor.dart', tokens).updateFile(); + MotionTemplate('Motion', '$materialLib/motion.dart', tokens, tokenLogger).updateFile(); + NavigationBarTemplate('NavigationBar', '$materialLib/navigation_bar.dart', tokens).updateFile(); + NavigationDrawerTemplate('NavigationDrawer', '$materialLib/navigation_drawer.dart', tokens).updateFile(); + NavigationRailTemplate('NavigationRail', '$materialLib/navigation_rail.dart', tokens).updateFile(); + PopupMenuTemplate('PopupMenu', '$materialLib/popup_menu.dart', tokens).updateFile(); + ProgressIndicatorTemplate('ProgressIndicator', '$materialLib/progress_indicator.dart', tokens).updateFile(); + RadioTemplate('Radio', '$materialLib/radio.dart', tokens).updateFile(); + SearchBarTemplate('SearchBar', '$materialLib/search_anchor.dart', tokens).updateFile(); + SearchViewTemplate('SearchView', '$materialLib/search_anchor.dart', tokens).updateFile(); + SegmentedButtonTemplate('md.comp.outlined-segmented-button', 'SegmentedButton', '$materialLib/segmented_button.dart', tokens).updateFile(); + SnackbarTemplate('md.comp.snackbar', 'Snackbar', '$materialLib/snack_bar.dart', tokens).updateFile(); + SliderTemplate('md.comp.slider', 'Slider', '$materialLib/slider.dart', tokens).updateFile(); + SurfaceTintTemplate('SurfaceTint', '$materialLib/elevation_overlay.dart', tokens).updateFile(); + SwitchTemplate('Switch', '$materialLib/switch.dart', tokens).updateFile(); + TimePickerTemplate('TimePicker', '$materialLib/time_picker.dart', tokens).updateFile(); + TextFieldTemplate('TextField', '$materialLib/text_field.dart', tokens).updateFile(); + TabsTemplate('Tabs', '$materialLib/tabs.dart', tokens).updateFile(); + TypographyTemplate('Typography', '$materialLib/typography.dart', tokens).updateFile(); + + tokenLogger.printVersionUsage(verbose: verbose); + tokenLogger.printTokensUsage(verbose: verbose); + if (!verbose) { + print('\nTo see detailed version and token usage, run with --verbose (-v).'); + } + + tokenLogger.dumpToFile('dev/tools/gen_defaults/generated/used_tokens.csv'); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/dart_test.yaml b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/dart_test.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fb3b8a21d3fc1f619c6b87d1dc626a8a84c0945f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/dart_test.yaml @@ -0,0 +1,5 @@ +tags: + # This tag tells the test framework to not shuffle the test order according to + # the --test-randomize-ordering-seed for the suites that have this tag. + no-shuffle: + allow_test_randomization: false diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/badge.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/badge.json new file mode 100644 index 0000000000000000000000000000000000000000..471707bd88fd5ab97f40b959d1d68b7a10005515 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/badge.json @@ -0,0 +1,12 @@ +{ + "version": "v0_162", + + "md.comp.badge.color": "error", + "md.comp.badge.large.color": "error", + "md.comp.badge.large.label-text.color": "onError", + "md.comp.badge.large.label-text.text-style": "labelSmall", + "md.comp.badge.large.shape": "md.sys.shape.corner.full", + "md.comp.badge.large.size": 16.0, + "md.comp.badge.shape": "md.sys.shape.corner.full", + "md.comp.badge.size": 6.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/banner.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/banner.json new file mode 100644 index 0000000000000000000000000000000000000000..728016c2954a82f4dc4116d034b05e4347186a5e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/banner.json @@ -0,0 +1,18 @@ +{ + "version": "v0_162", + + "md.comp.banner.container.color": "surface", + "md.comp.banner.container.elevation": "md.sys.elevation.level1", + "md.comp.banner.container.shape": "md.sys.shape.corner.none", + "md.comp.banner.container.surface-tint-layer.color": "surfaceTint", + "md.comp.banner.desktop.with-single-line.container.height": 52.0, + "md.comp.banner.desktop.with-three-lines.container.height": 90.0, + "md.comp.banner.desktop.with-two-lines.with-image.container.height": 72.0, + "md.comp.banner.mobile.with-single-line.container.height": 54.0, + "md.comp.banner.mobile.with-two-lines.container.height": 112.0, + "md.comp.banner.mobile.with-two-lines.with-image.container.height": 120.0, + "md.comp.banner.supporting-text.color": "onSurfaceVariant", + "md.comp.banner.supporting-text.text-style": "bodyMedium", + "md.comp.banner.with-image.image.shape": "md.sys.shape.corner.full", + "md.comp.banner.with-image.image.size": 40.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/bottom_app_bar.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/bottom_app_bar.json new file mode 100644 index 0000000000000000000000000000000000000000..1d515d3db2fe333bed2424e4f94a5f935daa6d30 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/bottom_app_bar.json @@ -0,0 +1,9 @@ +{ + "version": "v0_162", + + "md.comp.bottom-app-bar.container.color": "surface", + "md.comp.bottom-app-bar.container.elevation": "md.sys.elevation.level2", + "md.comp.bottom-app-bar.container.height": 80.0, + "md.comp.bottom-app-bar.container.shape": "md.sys.shape.corner.none", + "md.comp.bottom-app-bar.container.surface-tint-layer.color": "surfaceTint" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_elevated.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_elevated.json new file mode 100644 index 0000000000000000000000000000000000000000..abac970538787456516c0391e8b7bdac3b9389a8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_elevated.json @@ -0,0 +1,36 @@ +{ + "version": "v0_162", + + "md.comp.elevated-button.container.color": "surface", + "md.comp.elevated-button.container.elevation": "md.sys.elevation.level1", + "md.comp.elevated-button.container.height": 40.0, + "md.comp.elevated-button.container.shadow-color": "shadow", + "md.comp.elevated-button.container.shape": "md.sys.shape.corner.full", + "md.comp.elevated-button.container.surface-tint-layer.color": "surfaceTint", + "md.comp.elevated-button.disabled.container.color": "onSurface", + "md.comp.elevated-button.disabled.container.elevation": "md.sys.elevation.level0", + "md.comp.elevated-button.disabled.container.opacity": 0.12, + "md.comp.elevated-button.disabled.label-text.color": "onSurface", + "md.comp.elevated-button.disabled.label-text.opacity": 0.38, + "md.comp.elevated-button.focus.container.elevation": "md.sys.elevation.level1", + "md.comp.elevated-button.focus.label-text.color": "primary", + "md.comp.elevated-button.focus.state-layer.color": "primary", + "md.comp.elevated-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.elevated-button.hover.container.elevation": "md.sys.elevation.level2", + "md.comp.elevated-button.hover.label-text.color": "primary", + "md.comp.elevated-button.hover.state-layer.color": "primary", + "md.comp.elevated-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.elevated-button.label-text.color": "primary", + "md.comp.elevated-button.label-text.text-style": "labelLarge", + "md.comp.elevated-button.pressed.container.elevation": "md.sys.elevation.level1", + "md.comp.elevated-button.pressed.label-text.color": "primary", + "md.comp.elevated-button.pressed.state-layer.color": "primary", + "md.comp.elevated-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.elevated-button.with-icon.disabled.icon.color": "onSurface", + "md.comp.elevated-button.with-icon.disabled.icon.opacity": 0.38, + "md.comp.elevated-button.with-icon.focus.icon.color": "primary", + "md.comp.elevated-button.with-icon.hover.icon.color": "primary", + "md.comp.elevated-button.with-icon.icon.color": "primary", + "md.comp.elevated-button.with-icon.icon.size": 18.0, + "md.comp.elevated-button.with-icon.pressed.icon.color": "primary" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_filled.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_filled.json new file mode 100644 index 0000000000000000000000000000000000000000..3720b26198945e4f08366e4fc3fb8bb97f2ae3b7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_filled.json @@ -0,0 +1,35 @@ +{ + "version": "v0_162", + + "md.comp.filled-button.container.color": "primary", + "md.comp.filled-button.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-button.container.height": 40.0, + "md.comp.filled-button.container.shadow-color": "shadow", + "md.comp.filled-button.container.shape": "md.sys.shape.corner.full", + "md.comp.filled-button.disabled.container.color": "onSurface", + "md.comp.filled-button.disabled.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-button.disabled.container.opacity": 0.12, + "md.comp.filled-button.disabled.label-text.color": "onSurface", + "md.comp.filled-button.disabled.label-text.opacity": 0.38, + "md.comp.filled-button.focus.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-button.focus.label-text.color": "onPrimary", + "md.comp.filled-button.focus.state-layer.color": "onPrimary", + "md.comp.filled-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.filled-button.hover.container.elevation": "md.sys.elevation.level1", + "md.comp.filled-button.hover.label-text.color": "onPrimary", + "md.comp.filled-button.hover.state-layer.color": "onPrimary", + "md.comp.filled-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.filled-button.label-text.color": "onPrimary", + "md.comp.filled-button.label-text.text-style": "labelLarge", + "md.comp.filled-button.pressed.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-button.pressed.label-text.color": "onPrimary", + "md.comp.filled-button.pressed.state-layer.color": "onPrimary", + "md.comp.filled-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.filled-button.with-icon.disabled.icon.color": "onSurface", + "md.comp.filled-button.with-icon.disabled.icon.opacity": 0.38, + "md.comp.filled-button.with-icon.focus.icon.color": "onPrimary", + "md.comp.filled-button.with-icon.hover.icon.color": "onPrimary", + "md.comp.filled-button.with-icon.icon.color": "onPrimary", + "md.comp.filled-button.with-icon.icon.size": 18.0, + "md.comp.filled-button.with-icon.pressed.icon.color": "onPrimary" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_filled_tonal.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_filled_tonal.json new file mode 100644 index 0000000000000000000000000000000000000000..badbe27aa333bef533c671137e5901da84bd5dad --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_filled_tonal.json @@ -0,0 +1,35 @@ +{ + "version": "v0_162", + + "md.comp.filled-tonal-button.container.color": "secondaryContainer", + "md.comp.filled-tonal-button.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-tonal-button.container.height": 40.0, + "md.comp.filled-tonal-button.container.shadow-color": "shadow", + "md.comp.filled-tonal-button.container.shape": "md.sys.shape.corner.full", + "md.comp.filled-tonal-button.disabled.container.color": "onSurface", + "md.comp.filled-tonal-button.disabled.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-tonal-button.disabled.container.opacity": 0.12, + "md.comp.filled-tonal-button.disabled.label-text.color": "onSurface", + "md.comp.filled-tonal-button.disabled.label-text.opacity": 0.38, + "md.comp.filled-tonal-button.focus.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-tonal-button.focus.label-text.color": "onSecondaryContainer", + "md.comp.filled-tonal-button.focus.state-layer.color": "onSecondaryContainer", + "md.comp.filled-tonal-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.filled-tonal-button.hover.container.elevation": "md.sys.elevation.level1", + "md.comp.filled-tonal-button.hover.label-text.color": "onSecondaryContainer", + "md.comp.filled-tonal-button.hover.state-layer.color": "onSecondaryContainer", + "md.comp.filled-tonal-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.filled-tonal-button.label-text.color": "onSecondaryContainer", + "md.comp.filled-tonal-button.label-text.text-style": "labelLarge", + "md.comp.filled-tonal-button.pressed.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-tonal-button.pressed.label-text.color": "onSecondaryContainer", + "md.comp.filled-tonal-button.pressed.state-layer.color": "onSecondaryContainer", + "md.comp.filled-tonal-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.filled-tonal-button.with-icon.disabled.icon.color": "onSurface", + "md.comp.filled-tonal-button.with-icon.disabled.icon.opacity": 0.38, + "md.comp.filled-tonal-button.with-icon.focus.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-button.with-icon.hover.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-button.with-icon.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-button.with-icon.icon.size": 18.0, + "md.comp.filled-tonal-button.with-icon.pressed.icon.color": "onSecondaryContainer" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_outlined.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_outlined.json new file mode 100644 index 0000000000000000000000000000000000000000..897b0aaea1d0049093f94516593354d0e0023edb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_outlined.json @@ -0,0 +1,33 @@ +{ + "version": "v0_162", + + "md.comp.outlined-button.container.height": 40.0, + "md.comp.outlined-button.container.shape": "md.sys.shape.corner.full", + "md.comp.outlined-button.disabled.label-text.color": "onSurface", + "md.comp.outlined-button.disabled.label-text.opacity": 0.38, + "md.comp.outlined-button.disabled.outline.color": "onSurface", + "md.comp.outlined-button.disabled.outline.opacity": 0.12, + "md.comp.outlined-button.focus.label-text.color": "primary", + "md.comp.outlined-button.focus.outline.color": "primary", + "md.comp.outlined-button.focus.state-layer.color": "primary", + "md.comp.outlined-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.outlined-button.hover.label-text.color": "primary", + "md.comp.outlined-button.hover.outline.color": "outline", + "md.comp.outlined-button.hover.state-layer.color": "primary", + "md.comp.outlined-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.outlined-button.label-text.color": "primary", + "md.comp.outlined-button.label-text.text-style": "labelLarge", + "md.comp.outlined-button.outline.color": "outline", + "md.comp.outlined-button.outline.width": 1.0, + "md.comp.outlined-button.pressed.label-text.color": "primary", + "md.comp.outlined-button.pressed.outline.color": "outline", + "md.comp.outlined-button.pressed.state-layer.color": "primary", + "md.comp.outlined-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.outlined-button.with-icon.disabled.icon.color": "onSurface", + "md.comp.outlined-button.with-icon.disabled.icon.opacity": 0.38, + "md.comp.outlined-button.with-icon.focus.icon.color": "primary", + "md.comp.outlined-button.with-icon.hover.icon.color": "primary", + "md.comp.outlined-button.with-icon.icon.color": "primary", + "md.comp.outlined-button.with-icon.icon.size": 18.0, + "md.comp.outlined-button.with-icon.pressed.icon.color": "primary" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_text.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_text.json new file mode 100644 index 0000000000000000000000000000000000000000..4d05e24462596c694ac2691aae2cc76da2421984 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/button_text.json @@ -0,0 +1,26 @@ +{ + "version": "v0_162", + + "md.comp.text-button.container.height": 40.0, + "md.comp.text-button.container.shape": "md.sys.shape.corner.full", + "md.comp.text-button.disabled.label-text.color": "onSurface", + "md.comp.text-button.disabled.label-text.opacity": 0.38, + "md.comp.text-button.focus.label-text.color": "primary", + "md.comp.text-button.focus.state-layer.color": "primary", + "md.comp.text-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.text-button.hover.label-text.color": "primary", + "md.comp.text-button.hover.state-layer.color": "primary", + "md.comp.text-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.text-button.label-text.color": "primary", + "md.comp.text-button.label-text.text-style": "labelLarge", + "md.comp.text-button.pressed.label-text.color": "primary", + "md.comp.text-button.pressed.state-layer.color": "primary", + "md.comp.text-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.text-button.with-icon.disabled.icon.color": "onSurface", + "md.comp.text-button.with-icon.disabled.icon.opacity": 0.38, + "md.comp.text-button.with-icon.focus.icon.color": "primary", + "md.comp.text-button.with-icon.hover.icon.color": "primary", + "md.comp.text-button.with-icon.icon.color": "primary", + "md.comp.text-button.with-icon.icon.size": 18.0, + "md.comp.text-button.with-icon.pressed.icon.color": "primary" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/card_elevated.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/card_elevated.json new file mode 100644 index 0000000000000000000000000000000000000000..7d071f21f10b8666f0c36b36105fa9e4903388ac --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/card_elevated.json @@ -0,0 +1,26 @@ +{ + "version": "v0_162", + + "md.comp.elevated-card.container.color": "surface", + "md.comp.elevated-card.container.elevation": "md.sys.elevation.level1", + "md.comp.elevated-card.container.shadow-color": "shadow", + "md.comp.elevated-card.container.shape": "md.sys.shape.corner.medium", + "md.comp.elevated-card.container.surface-tint-layer.color": "surfaceTint", + "md.comp.elevated-card.disabled.container.color": "surface", + "md.comp.elevated-card.disabled.container.elevation": "md.sys.elevation.level1", + "md.comp.elevated-card.disabled.container.opacity": 0.38, + "md.comp.elevated-card.dragged.container.elevation": "md.sys.elevation.level4", + "md.comp.elevated-card.dragged.state-layer.color": "onSurface", + "md.comp.elevated-card.dragged.state-layer.opacity": "md.sys.state.dragged.state-layer-opacity", + "md.comp.elevated-card.focus.container.elevation": "md.sys.elevation.level1", + "md.comp.elevated-card.focus.state-layer.color": "onSurface", + "md.comp.elevated-card.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.elevated-card.hover.container.elevation": "md.sys.elevation.level2", + "md.comp.elevated-card.hover.state-layer.color": "onSurface", + "md.comp.elevated-card.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.elevated-card.icon.color": "primary", + "md.comp.elevated-card.icon.size": 24.0, + "md.comp.elevated-card.pressed.container.elevation": "md.sys.elevation.level1", + "md.comp.elevated-card.pressed.state-layer.color": "onSurface", + "md.comp.elevated-card.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/card_filled.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/card_filled.json new file mode 100644 index 0000000000000000000000000000000000000000..aac015e44eb6d2d2c7bb943bc00602c8be8ebde9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/card_filled.json @@ -0,0 +1,25 @@ +{ + "version": "v0_162", + + "md.comp.filled-card.container.color": "surfaceVariant", + "md.comp.filled-card.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-card.container.shadow-color": "shadow", + "md.comp.filled-card.container.shape": "md.sys.shape.corner.medium", + "md.comp.filled-card.disabled.container.color": "surfaceVariant", + "md.comp.filled-card.disabled.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-card.disabled.container.opacity": 0.38, + "md.comp.filled-card.dragged.container.elevation": "md.sys.elevation.level3", + "md.comp.filled-card.dragged.state-layer.color": "onSurface", + "md.comp.filled-card.dragged.state-layer.opacity": "md.sys.state.dragged.state-layer-opacity", + "md.comp.filled-card.focus.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-card.focus.state-layer.color": "onSurface", + "md.comp.filled-card.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.filled-card.hover.container.elevation": "md.sys.elevation.level1", + "md.comp.filled-card.hover.state-layer.color": "onSurface", + "md.comp.filled-card.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.filled-card.icon.color": "primary", + "md.comp.filled-card.icon.size": 24.0, + "md.comp.filled-card.pressed.container.elevation": "md.sys.elevation.level0", + "md.comp.filled-card.pressed.state-layer.color": "onSurface", + "md.comp.filled-card.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/card_outlined.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/card_outlined.json new file mode 100644 index 0000000000000000000000000000000000000000..8e895966ef701d786580e2a46cb0fbd7d5e1b8ad --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/card_outlined.json @@ -0,0 +1,32 @@ +{ + "version": "v0_162", + + "md.comp.outlined-card.container.color": "surface", + "md.comp.outlined-card.container.elevation": "md.sys.elevation.level0", + "md.comp.outlined-card.container.shadow-color": "shadow", + "md.comp.outlined-card.container.shape": "md.sys.shape.corner.medium", + "md.comp.outlined-card.container.surface-tint-layer.color": "surfaceTint", + "md.comp.outlined-card.disabled.container.elevation": "md.sys.elevation.level0", + "md.comp.outlined-card.disabled.outline.color": "outline", + "md.comp.outlined-card.disabled.outline.opacity": 0.12, + "md.comp.outlined-card.dragged.container.elevation": "md.sys.elevation.level3", + "md.comp.outlined-card.dragged.outline.color": "outlineVariant", + "md.comp.outlined-card.dragged.state-layer.color": "onSurface", + "md.comp.outlined-card.dragged.state-layer.opacity": "md.sys.state.dragged.state-layer-opacity", + "md.comp.outlined-card.focus.container.elevation": "md.sys.elevation.level0", + "md.comp.outlined-card.focus.outline.color": "onSurface", + "md.comp.outlined-card.focus.state-layer.color": "onSurface", + "md.comp.outlined-card.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.outlined-card.hover.container.elevation": "md.sys.elevation.level1", + "md.comp.outlined-card.hover.outline.color": "outlineVariant", + "md.comp.outlined-card.hover.state-layer.color": "onSurface", + "md.comp.outlined-card.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.outlined-card.icon.color": "primary", + "md.comp.outlined-card.icon.size": 24.0, + "md.comp.outlined-card.outline.color": "outlineVariant", + "md.comp.outlined-card.outline.width": 1.0, + "md.comp.outlined-card.pressed.container.elevation": "md.sys.elevation.level0", + "md.comp.outlined-card.pressed.outline.color": "outlineVariant", + "md.comp.outlined-card.pressed.state-layer.color": "onSurface", + "md.comp.outlined-card.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/carousel_item.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/carousel_item.json new file mode 100644 index 0000000000000000000000000000000000000000..0339df413ace4194ea1eefeaba65471a14a2fe3a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/carousel_item.json @@ -0,0 +1,27 @@ +{ + "version": "v0_202", + + "md.comp.carousel-item.container.color": "surface", + "md.comp.carousel-item.container.elevation": "md.sys.elevation.level0", + "md.comp.carousel-item.container.shadow-color": "shadow", + "md.comp.carousel-item.container.shape": "md.sys.shape.corner.extra-large", + "md.comp.carousel-item.disabled.container.color": "surface", + "md.comp.carousel-item.disabled.container.elevation": "md.sys.elevation.level0", + "md.comp.carousel-item.disabled.container.opacity": 0.38, + "md.comp.carousel-item.focus.container.elevation": "md.sys.elevation.level0", + "md.comp.carousel-item.focus.state-layer.color": "onSurface", + "md.comp.carousel-item.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.carousel-item.hover.container.elevation": "md.sys.elevation.level1", + "md.comp.carousel-item.hover.state-layer.color": "onSurface", + "md.comp.carousel-item.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.carousel-item.pressed.container.elevation": "md.sys.elevation.level0", + "md.comp.carousel-item.pressed.state-layer.color": "onSurface", + "md.comp.carousel-item.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.carousel-item.with-outline.disabled.outline.color": "outline", + "md.comp.carousel-item.with-outline.disabled.outline.opacity": 0.12, + "md.comp.carousel-item.with-outline.focus.outline.color": "onSurface", + "md.comp.carousel-item.with-outline.hover.outline.color": "outline", + "md.comp.carousel-item.with-outline.outline.color": "outline", + "md.comp.carousel-item.with-outline.outline.width": 1.0, + "md.comp.carousel-item.with-outline.pressed.outline.color": "outline" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/checkbox.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/checkbox.json new file mode 100644 index 0000000000000000000000000000000000000000..365abdc3ebad714b61cbc68306c8ff93194bd9cb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/checkbox.json @@ -0,0 +1,65 @@ +{ + "version": "v0_162", + + "md.comp.checkbox.container.size": 18.0, + "md.comp.checkbox.error.focus.state-layer.color": "error", + "md.comp.checkbox.error.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.checkbox.error.hover.state-layer.color": "error", + "md.comp.checkbox.error.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.checkbox.error.pressed.state-layer.color": "error", + "md.comp.checkbox.error.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.checkbox.icon.size": 18.0, + "md.comp.checkbox.selected.container.color": "primary", + "md.comp.checkbox.selected.disabled.container.color": "onSurface", + "md.comp.checkbox.selected.disabled.container.opacity": 0.38, + "md.comp.checkbox.selected.disabled.container.outline.width": 0.0, + "md.comp.checkbox.selected.disabled.icon.color": "surface", + "md.comp.checkbox.selected.error.container.color": "error", + "md.comp.checkbox.selected.error.focus.container.color": "error", + "md.comp.checkbox.selected.error.focus.icon.color": "onError", + "md.comp.checkbox.selected.error.hover.container.color": "error", + "md.comp.checkbox.selected.error.hover.icon.color": "onError", + "md.comp.checkbox.selected.error.icon.color": "onError", + "md.comp.checkbox.selected.error.pressed.container.color": "error", + "md.comp.checkbox.selected.error.pressed.icon.color": "onError", + "md.comp.checkbox.selected.focus.container.color": "primary", + "md.comp.checkbox.selected.focus.icon.color": "onPrimary", + "md.comp.checkbox.selected.focus.outline.width": 0.0, + "md.comp.checkbox.selected.focus.state-layer.color": "primary", + "md.comp.checkbox.selected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.checkbox.selected.hover.container.color": "primary", + "md.comp.checkbox.selected.hover.icon.color": "onPrimary", + "md.comp.checkbox.selected.hover.outline.width": 0.0, + "md.comp.checkbox.selected.hover.state-layer.color": "primary", + "md.comp.checkbox.selected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.checkbox.selected.icon.color": "onPrimary", + "md.comp.checkbox.selected.outline.width": 0.0, + "md.comp.checkbox.selected.pressed.container.color": "primary", + "md.comp.checkbox.selected.pressed.icon.color": "onPrimary", + "md.comp.checkbox.selected.pressed.outline.width": 0.0, + "md.comp.checkbox.selected.pressed.state-layer.color": "onSurface", + "md.comp.checkbox.selected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.checkbox.state-layer.shape": "md.sys.shape.corner.full", + "md.comp.checkbox.state-layer.size": 40.0, + "md.comp.checkbox.unselected.disabled.container.opacity": 0.38, + "md.comp.checkbox.unselected.disabled.outline.color": "onSurface", + "md.comp.checkbox.unselected.disabled.outline.width": 2.0, + "md.comp.checkbox.unselected.error.focus.outline.color": "error", + "md.comp.checkbox.unselected.error.hover.outline.color": "error", + "md.comp.checkbox.unselected.error.outline.color": "error", + "md.comp.checkbox.unselected.error.pressed.outline.color": "error", + "md.comp.checkbox.unselected.focus.outline.color": "onSurface", + "md.comp.checkbox.unselected.focus.outline.width": 2.0, + "md.comp.checkbox.unselected.focus.state-layer.color": "onSurface", + "md.comp.checkbox.unselected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.checkbox.unselected.hover.outline.color": "onSurface", + "md.comp.checkbox.unselected.hover.outline.width": 2.0, + "md.comp.checkbox.unselected.hover.state-layer.color": "onSurface", + "md.comp.checkbox.unselected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.checkbox.unselected.outline.color": "onSurfaceVariant", + "md.comp.checkbox.unselected.outline.width": 2.0, + "md.comp.checkbox.unselected.pressed.outline.color": "onSurface", + "md.comp.checkbox.unselected.pressed.outline.width": 2.0, + "md.comp.checkbox.unselected.pressed.state-layer.color": "primary", + "md.comp.checkbox.unselected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_assist.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_assist.json new file mode 100644 index 0000000000000000000000000000000000000000..25f18ea8fb08d1de8a2e686e06def71589b4ef72 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_assist.json @@ -0,0 +1,47 @@ +{ + "version": "v0_162", + + "md.comp.assist-chip.container.height": 32.0, + "md.comp.assist-chip.container.shape": "md.sys.shape.corner.small", + "md.comp.assist-chip.container.surface-tint-layer.color": "surfaceTint", + "md.comp.assist-chip.disabled.label-text.color": "onSurface", + "md.comp.assist-chip.disabled.label-text.opacity": 0.38, + "md.comp.assist-chip.dragged.container.elevation": "md.sys.elevation.level4", + "md.comp.assist-chip.dragged.label-text.color": "onSurface", + "md.comp.assist-chip.dragged.state-layer.color": "onSurface", + "md.comp.assist-chip.dragged.state-layer.opacity": "md.sys.state.dragged.state-layer-opacity", + "md.comp.assist-chip.elevated.container.color": "surface", + "md.comp.assist-chip.elevated.container.elevation": "md.sys.elevation.level1", + "md.comp.assist-chip.elevated.container.shadow-color": "shadow", + "md.comp.assist-chip.elevated.disabled.container.color": "onSurface", + "md.comp.assist-chip.elevated.disabled.container.elevation": "md.sys.elevation.level0", + "md.comp.assist-chip.elevated.disabled.container.opacity": 0.12, + "md.comp.assist-chip.elevated.focus.container.elevation": "md.sys.elevation.level1", + "md.comp.assist-chip.elevated.hover.container.elevation": "md.sys.elevation.level2", + "md.comp.assist-chip.elevated.pressed.container.elevation": "md.sys.elevation.level1", + "md.comp.assist-chip.flat.container.elevation": "md.sys.elevation.level0", + "md.comp.assist-chip.flat.disabled.outline.color": "onSurface", + "md.comp.assist-chip.flat.disabled.outline.opacity": 0.12, + "md.comp.assist-chip.flat.focus.outline.color": "onSurface", + "md.comp.assist-chip.flat.outline.color": "outline", + "md.comp.assist-chip.flat.outline.width": 1.0, + "md.comp.assist-chip.focus.label-text.color": "onSurface", + "md.comp.assist-chip.focus.state-layer.color": "onSurface", + "md.comp.assist-chip.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.assist-chip.hover.label-text.color": "onSurface", + "md.comp.assist-chip.hover.state-layer.color": "onSurface", + "md.comp.assist-chip.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.assist-chip.label-text.color": "onSurface", + "md.comp.assist-chip.label-text.text-style": "labelLarge", + "md.comp.assist-chip.pressed.label-text.color": "onSurface", + "md.comp.assist-chip.pressed.state-layer.color": "onSurface", + "md.comp.assist-chip.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.assist-chip.with-icon.disabled.icon.color": "onSurface", + "md.comp.assist-chip.with-icon.disabled.icon.opacity": 0.38, + "md.comp.assist-chip.with-icon.dragged.icon.color": "primary", + "md.comp.assist-chip.with-icon.focus.icon.color": "primary", + "md.comp.assist-chip.with-icon.hover.icon.color": "primary", + "md.comp.assist-chip.with-icon.icon.color": "primary", + "md.comp.assist-chip.with-icon.icon.size": 18.0, + "md.comp.assist-chip.with-icon.pressed.icon.color": "primary" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_filter.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_filter.json new file mode 100644 index 0000000000000000000000000000000000000000..094f037e88fcec66e20042a92941a92d8cdb55da --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_filter.json @@ -0,0 +1,88 @@ +{ + "version": "v0_162", + + "md.comp.filter-chip.container.height": 32.0, + "md.comp.filter-chip.container.shape": "md.sys.shape.corner.small", + "md.comp.filter-chip.container.surface-tint-layer.color": "surfaceTint", + "md.comp.filter-chip.disabled.label-text.color": "onSurface", + "md.comp.filter-chip.disabled.label-text.opacity": 0.38, + "md.comp.filter-chip.dragged.container.elevation": "md.sys.elevation.level4", + "md.comp.filter-chip.elevated.container.elevation": "md.sys.elevation.level1", + "md.comp.filter-chip.elevated.container.shadow-color": "shadow", + "md.comp.filter-chip.elevated.disabled.container.color": "onSurface", + "md.comp.filter-chip.elevated.disabled.container.elevation": "md.sys.elevation.level0", + "md.comp.filter-chip.elevated.disabled.container.opacity": 0.12, + "md.comp.filter-chip.elevated.focus.container.elevation": "md.sys.elevation.level1", + "md.comp.filter-chip.elevated.hover.container.elevation": "md.sys.elevation.level2", + "md.comp.filter-chip.elevated.pressed.container.elevation": "md.sys.elevation.level1", + "md.comp.filter-chip.elevated.selected.container.color": "secondaryContainer", + "md.comp.filter-chip.elevated.unselected.container.color": "surface", + "md.comp.filter-chip.flat.container.elevation": "md.sys.elevation.level0", + "md.comp.filter-chip.flat.disabled.selected.container.color": "onSurface", + "md.comp.filter-chip.flat.disabled.selected.container.opacity": 0.12, + "md.comp.filter-chip.flat.disabled.unselected.outline.color": "onSurface", + "md.comp.filter-chip.flat.disabled.unselected.outline.opacity": 0.12, + "md.comp.filter-chip.flat.selected.container.color": "secondaryContainer", + "md.comp.filter-chip.flat.selected.focus.container.elevation": "md.sys.elevation.level0", + "md.comp.filter-chip.flat.selected.hover.container.elevation": "md.sys.elevation.level1", + "md.comp.filter-chip.flat.selected.outline.width": 0.0, + "md.comp.filter-chip.flat.selected.pressed.container.elevation": "md.sys.elevation.level0", + "md.comp.filter-chip.flat.unselected.focus.container.elevation": "md.sys.elevation.level0", + "md.comp.filter-chip.flat.unselected.focus.outline.color": "onSurfaceVariant", + "md.comp.filter-chip.flat.unselected.hover.container.elevation": "md.sys.elevation.level0", + "md.comp.filter-chip.flat.unselected.outline.color": "outline", + "md.comp.filter-chip.flat.unselected.outline.width": 1.0, + "md.comp.filter-chip.flat.unselected.pressed.container.elevation": "md.sys.elevation.level0", + "md.comp.filter-chip.label-text.text-style": "labelLarge", + "md.comp.filter-chip.selected.dragged.label-text.color": "onSecondaryContainer", + "md.comp.filter-chip.selected.dragged.state-layer.color": "onSecondaryContainer", + "md.comp.filter-chip.selected.dragged.state-layer.opacity": "md.sys.state.dragged.state-layer-opacity", + "md.comp.filter-chip.selected.focus.label-text.color": "onSecondaryContainer", + "md.comp.filter-chip.selected.focus.state-layer.color": "onSecondaryContainer", + "md.comp.filter-chip.selected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.filter-chip.selected.hover.label-text.color": "onSecondaryContainer", + "md.comp.filter-chip.selected.hover.state-layer.color": "onSecondaryContainer", + "md.comp.filter-chip.selected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.filter-chip.selected.label-text.color": "onSecondaryContainer", + "md.comp.filter-chip.selected.pressed.label-text.color": "onSecondaryContainer", + "md.comp.filter-chip.selected.pressed.state-layer.color": "onSurfaceVariant", + "md.comp.filter-chip.selected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.filter-chip.unselected.dragged.label-text.color": "onSurfaceVariant", + "md.comp.filter-chip.unselected.dragged.state-layer.color": "onSurfaceVariant", + "md.comp.filter-chip.unselected.dragged.state-layer.opacity": "md.sys.state.dragged.state-layer-opacity", + "md.comp.filter-chip.unselected.focus.label-text.color": "onSurfaceVariant", + "md.comp.filter-chip.unselected.focus.state-layer.color": "onSurfaceVariant", + "md.comp.filter-chip.unselected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.filter-chip.unselected.hover.label-text.color": "onSurfaceVariant", + "md.comp.filter-chip.unselected.hover.state-layer.color": "onSurfaceVariant", + "md.comp.filter-chip.unselected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.filter-chip.unselected.label-text.color": "onSurfaceVariant", + "md.comp.filter-chip.unselected.pressed.label-text.color": "onSurfaceVariant", + "md.comp.filter-chip.unselected.pressed.state-layer.color": "onSecondaryContainer", + "md.comp.filter-chip.unselected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.filter-chip.with-icon.icon.size": 18.0, + "md.comp.filter-chip.with-leading-icon.disabled.leading-icon.color": "onSurface", + "md.comp.filter-chip.with-leading-icon.disabled.leading-icon.opacity": 0.38, + "md.comp.filter-chip.with-leading-icon.selected.dragged.leading-icon.color": "onSecondaryContainer", + "md.comp.filter-chip.with-leading-icon.selected.focus.leading-icon.color": "onSecondaryContainer", + "md.comp.filter-chip.with-leading-icon.selected.hover.leading-icon.color": "onSecondaryContainer", + "md.comp.filter-chip.with-leading-icon.selected.leading-icon.color": "onSecondaryContainer", + "md.comp.filter-chip.with-leading-icon.selected.pressed.leading-icon.color": "onSecondaryContainer", + "md.comp.filter-chip.with-leading-icon.unselected.dragged.leading-icon.color": "primary", + "md.comp.filter-chip.with-leading-icon.unselected.focus.leading-icon.color": "primary", + "md.comp.filter-chip.with-leading-icon.unselected.hover.leading-icon.color": "primary", + "md.comp.filter-chip.with-leading-icon.unselected.leading-icon.color": "primary", + "md.comp.filter-chip.with-leading-icon.unselected.pressed.leading-icon.color": "primary", + "md.comp.filter-chip.with-trailing-icon.disabled.trailing-icon.color": "onSurface", + "md.comp.filter-chip.with-trailing-icon.disabled.trailing-icon.opacity": 0.38, + "md.comp.filter-chip.with-trailing-icon.selected.dragged.trailing-icon.color": "onSecondaryContainer", + "md.comp.filter-chip.with-trailing-icon.selected.focus.trailing-icon.color": "onSecondaryContainer", + "md.comp.filter-chip.with-trailing-icon.selected.hover.trailing-icon.color": "onSecondaryContainer", + "md.comp.filter-chip.with-trailing-icon.selected.pressed.trailing-icon.color": "onSecondaryContainer", + "md.comp.filter-chip.with-trailing-icon.selected.trailing-icon.color": "onSecondaryContainer", + "md.comp.filter-chip.with-trailing-icon.unselected.dragged.trailing-icon.color": "onSurfaceVariant", + "md.comp.filter-chip.with-trailing-icon.unselected.focus.trailing-icon.color": "onSurfaceVariant", + "md.comp.filter-chip.with-trailing-icon.unselected.hover.trailing-icon.color": "onSurfaceVariant", + "md.comp.filter-chip.with-trailing-icon.unselected.pressed.trailing-icon.color": "onSurfaceVariant", + "md.comp.filter-chip.with-trailing-icon.unselected.trailing-icon.color": "onSurfaceVariant" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_input.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_input.json new file mode 100644 index 0000000000000000000000000000000000000000..260cab06a696a7c032a33621dd50b5d7634dff73 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_input.json @@ -0,0 +1,75 @@ +{ + "version": "v0_162", + + "md.comp.input-chip.container.elevation": "md.sys.elevation.level0", + "md.comp.input-chip.container.height": 32.0, + "md.comp.input-chip.container.shape": "md.sys.shape.corner.small", + "md.comp.input-chip.disabled.label-text.color": "onSurface", + "md.comp.input-chip.disabled.label-text.opacity": 0.38, + "md.comp.input-chip.disabled.selected.container.color": "onSurface", + "md.comp.input-chip.disabled.selected.container.opacity": 0.12, + "md.comp.input-chip.disabled.unselected.outline.color": "onSurface", + "md.comp.input-chip.disabled.unselected.outline.opacity": 0.12, + "md.comp.input-chip.dragged.container.elevation": "md.sys.elevation.level4", + "md.comp.input-chip.label-text.text-style": "labelLarge", + "md.comp.input-chip.selected.container.color": "secondaryContainer", + "md.comp.input-chip.selected.dragged.label-text.color": "onSecondaryContainer", + "md.comp.input-chip.selected.dragged.state-layer.color": "onSecondaryContainer", + "md.comp.input-chip.selected.dragged.state-layer.opacity": "md.sys.state.dragged.state-layer-opacity", + "md.comp.input-chip.selected.focus.label-text.color": "onSecondaryContainer", + "md.comp.input-chip.selected.focus.state-layer.color": "onSecondaryContainer", + "md.comp.input-chip.selected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.input-chip.selected.hover.label-text.color": "onSecondaryContainer", + "md.comp.input-chip.selected.hover.state-layer.color": "onSecondaryContainer", + "md.comp.input-chip.selected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.input-chip.selected.label-text.color": "onSecondaryContainer", + "md.comp.input-chip.selected.outline.width": 0.0, + "md.comp.input-chip.selected.pressed.label-text.color": "onSecondaryContainer", + "md.comp.input-chip.selected.pressed.state-layer.color": "onSecondaryContainer", + "md.comp.input-chip.selected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.input-chip.unselected.dragged.label-text.color": "onSurfaceVariant", + "md.comp.input-chip.unselected.dragged.state-layer.color": "onSurfaceVariant", + "md.comp.input-chip.unselected.dragged.state-layer.opacity": "md.sys.state.dragged.state-layer-opacity", + "md.comp.input-chip.unselected.focus.label-text.color": "onSurfaceVariant", + "md.comp.input-chip.unselected.focus.outline.color": "onSurfaceVariant", + "md.comp.input-chip.unselected.focus.state-layer.color": "onSurfaceVariant", + "md.comp.input-chip.unselected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.input-chip.unselected.hover.label-text.color": "onSurfaceVariant", + "md.comp.input-chip.unselected.hover.state-layer.color": "onSurfaceVariant", + "md.comp.input-chip.unselected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.input-chip.unselected.label-text.color": "onSurfaceVariant", + "md.comp.input-chip.unselected.outline.color": "outline", + "md.comp.input-chip.unselected.outline.width": 1.0, + "md.comp.input-chip.unselected.pressed.label-text.color": "onSurfaceVariant", + "md.comp.input-chip.unselected.pressed.state-layer.color": "onSurfaceVariant", + "md.comp.input-chip.unselected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.input-chip.with-avatar.avatar.shape": "md.sys.shape.corner.full", + "md.comp.input-chip.with-avatar.avatar.size": 24.0, + "md.comp.input-chip.with-avatar.disabled.avatar.opacity": 0.38, + "md.comp.input-chip.with-leading-icon.disabled.leading-icon.color": "onSurface", + "md.comp.input-chip.with-leading-icon.disabled.leading-icon.opacity": 0.38, + "md.comp.input-chip.with-leading-icon.leading-icon.size": 18.0, + "md.comp.input-chip.with-leading-icon.selected.dragged.leading-icon.color": "onSecondaryContainer", + "md.comp.input-chip.with-leading-icon.selected.focus.leading-icon.color": "primary", + "md.comp.input-chip.with-leading-icon.selected.hover.leading-icon.color": "primary", + "md.comp.input-chip.with-leading-icon.selected.leading-icon.color": "primary", + "md.comp.input-chip.with-leading-icon.selected.pressed.leading-icon.color": "primary", + "md.comp.input-chip.with-leading-icon.unselected.dragged.leading-icon.color": "onSurfaceVariant", + "md.comp.input-chip.with-leading-icon.unselected.focus.leading-icon.color": "primary", + "md.comp.input-chip.with-leading-icon.unselected.hover.leading-icon.color": "primary", + "md.comp.input-chip.with-leading-icon.unselected.leading-icon.color": "onSurfaceVariant", + "md.comp.input-chip.with-leading-icon.unselected.pressed.leading-icon.color": "primary", + "md.comp.input-chip.with-trailing-icon.disabled.trailing-icon.color": "onSurface", + "md.comp.input-chip.with-trailing-icon.disabled.trailing-icon.opacity": 0.38, + "md.comp.input-chip.with-trailing-icon.selected.dragged.trailing-icon.color": "primary", + "md.comp.input-chip.with-trailing-icon.selected.focus.trailing-icon.color": "onSecondaryContainer", + "md.comp.input-chip.with-trailing-icon.selected.hover.trailing-icon.color": "onSecondaryContainer", + "md.comp.input-chip.with-trailing-icon.selected.pressed.trailing-icon.color": "onSecondaryContainer", + "md.comp.input-chip.with-trailing-icon.selected.trailing-icon.color": "onSecondaryContainer", + "md.comp.input-chip.with-trailing-icon.trailing-icon.size": 18.0, + "md.comp.input-chip.with-trailing-icon.unselected.dragged.trailing-icon.color": "primary", + "md.comp.input-chip.with-trailing-icon.unselected.focus.trailing-icon.color": "onSurfaceVariant", + "md.comp.input-chip.with-trailing-icon.unselected.hover.trailing-icon.color": "onSurfaceVariant", + "md.comp.input-chip.with-trailing-icon.unselected.pressed.trailing-icon.color": "onSurfaceVariant", + "md.comp.input-chip.with-trailing-icon.unselected.trailing-icon.color": "onSurfaceVariant" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_suggestion.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_suggestion.json new file mode 100644 index 0000000000000000000000000000000000000000..baac7a41a33c203329ad87d63c7810004c8b8a53 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/chip_suggestion.json @@ -0,0 +1,47 @@ +{ + "version": "v0_162", + + "md.comp.suggestion-chip.container.height": 32.0, + "md.comp.suggestion-chip.container.shape": "md.sys.shape.corner.small", + "md.comp.suggestion-chip.container.surface-tint-layer.color": "surfaceTint", + "md.comp.suggestion-chip.disabled.label-text.color": "onSurface", + "md.comp.suggestion-chip.disabled.label-text.opacity": 0.38, + "md.comp.suggestion-chip.dragged.container.elevation": "md.sys.elevation.level4", + "md.comp.suggestion-chip.dragged.label-text.color": "onSurfaceVariant", + "md.comp.suggestion-chip.dragged.state-layer.color": "onSurfaceVariant", + "md.comp.suggestion-chip.dragged.state-layer.opacity": "md.sys.state.dragged.state-layer-opacity", + "md.comp.suggestion-chip.elevated.container.color": "surface", + "md.comp.suggestion-chip.elevated.container.elevation": "md.sys.elevation.level1", + "md.comp.suggestion-chip.elevated.container.shadow-color": "shadow", + "md.comp.suggestion-chip.elevated.disabled.container.color": "onSurface", + "md.comp.suggestion-chip.elevated.disabled.container.elevation": "md.sys.elevation.level0", + "md.comp.suggestion-chip.elevated.disabled.container.opacity": 0.12, + "md.comp.suggestion-chip.elevated.focus.container.elevation": "md.sys.elevation.level1", + "md.comp.suggestion-chip.elevated.hover.container.elevation": "md.sys.elevation.level2", + "md.comp.suggestion-chip.elevated.pressed.container.elevation": "md.sys.elevation.level1", + "md.comp.suggestion-chip.flat.container.elevation": "md.sys.elevation.level0", + "md.comp.suggestion-chip.flat.disabled.outline.color": "onSurface", + "md.comp.suggestion-chip.flat.disabled.outline.opacity": 0.12, + "md.comp.suggestion-chip.flat.focus.outline.color": "onSurfaceVariant", + "md.comp.suggestion-chip.flat.outline.color": "outline", + "md.comp.suggestion-chip.flat.outline.width": 1.0, + "md.comp.suggestion-chip.focus.label-text.color": "onSurfaceVariant", + "md.comp.suggestion-chip.focus.state-layer.color": "onSurfaceVariant", + "md.comp.suggestion-chip.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.suggestion-chip.hover.label-text.color": "onSurfaceVariant", + "md.comp.suggestion-chip.hover.state-layer.color": "onSurfaceVariant", + "md.comp.suggestion-chip.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.suggestion-chip.label-text.color": "onSurfaceVariant", + "md.comp.suggestion-chip.label-text.text-style": "labelLarge", + "md.comp.suggestion-chip.pressed.label-text.color": "onSurfaceVariant", + "md.comp.suggestion-chip.pressed.state-layer.color": "onSurfaceVariant", + "md.comp.suggestion-chip.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.suggestion-chip.with-leading-icon.disabled.leading-icon.color": "onSurface", + "md.comp.suggestion-chip.with-leading-icon.disabled.leading-icon.opacity": 0.38, + "md.comp.suggestion-chip.with-leading-icon.dragged.leading-icon.color": "primary", + "md.comp.suggestion-chip.with-leading-icon.focus.leading-icon.color": "primary", + "md.comp.suggestion-chip.with-leading-icon.hover.leading-icon.color": "primary", + "md.comp.suggestion-chip.with-leading-icon.leading-icon.color": "primary", + "md.comp.suggestion-chip.with-leading-icon.leading-icon.size": 18.0, + "md.comp.suggestion-chip.with-leading-icon.pressed.leading-icon.color": "primary" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/color_dark.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/color_dark.json new file mode 100644 index 0000000000000000000000000000000000000000..e36a9ccceecfe0eae8ed37c51ab9d6bb9213b388 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/color_dark.json @@ -0,0 +1,53 @@ +{ + "version": "v0_162", + + "md.sys.color.background": "md.ref.palette.neutral10", + "md.sys.color.error": "md.ref.palette.error80", + "md.sys.color.error-container": "md.ref.palette.error30", + "md.sys.color.inverse-on-surface": "md.ref.palette.neutral20", + "md.sys.color.inverse-primary": "md.ref.palette.primary40", + "md.sys.color.inverse-surface": "md.ref.palette.neutral90", + "md.sys.color.on-background": "md.ref.palette.neutral90", + "md.sys.color.on-error": "md.ref.palette.error20", + "md.sys.color.on-error-container": "md.ref.palette.error90", + "md.sys.color.on-primary": "md.ref.palette.primary20", + "md.sys.color.on-primary-container": "md.ref.palette.primary90", + "md.sys.color.on-primary-fixed": "md.ref.palette.primary10", + "md.sys.color.on-primary-fixed-variant": "md.ref.palette.primary30", + "md.sys.color.on-secondary": "md.ref.palette.secondary20", + "md.sys.color.on-secondary-container": "md.ref.palette.secondary90", + "md.sys.color.on-secondary-fixed": "md.ref.palette.secondary10", + "md.sys.color.on-secondary-fixed-variant": "md.ref.palette.secondary30", + "md.sys.color.on-surface": "md.ref.palette.neutral90", + "md.sys.color.on-surface-variant": "md.ref.palette.neutral-variant80", + "md.sys.color.on-tertiary": "md.ref.palette.tertiary20", + "md.sys.color.on-tertiary-container": "md.ref.palette.tertiary90", + "md.sys.color.on-tertiary-fixed": "md.ref.palette.tertiary10", + "md.sys.color.on-tertiary-fixed-variant": "md.ref.palette.tertiary30", + "md.sys.color.outline": "md.ref.palette.neutral-variant60", + "md.sys.color.outline-variant": "md.ref.palette.neutral-variant30", + "md.sys.color.primary": "md.ref.palette.primary80", + "md.sys.color.primary-container": "md.ref.palette.primary30", + "md.sys.color.primary-fixed": "md.ref.palette.primary90", + "md.sys.color.primary-fixed-dim": "md.ref.palette.primary80", + "md.sys.color.scrim": "md.ref.palette.neutral0", + "md.sys.color.secondary": "md.ref.palette.secondary80", + "md.sys.color.secondary-container": "md.ref.palette.secondary30", + "md.sys.color.secondary-fixed": "md.ref.palette.secondary90", + "md.sys.color.secondary-fixed-dim": "md.ref.palette.secondary80", + "md.sys.color.shadow": "md.ref.palette.neutral0", + "md.sys.color.surface": "md.ref.palette.neutral10", + "md.sys.color.surface-bright": "md.ref.palette.neutral24", + "md.sys.color.surface-container": "md.ref.palette.neutral12", + "md.sys.color.surface-container-high": "md.ref.palette.neutral17", + "md.sys.color.surface-container-highest": "md.ref.palette.neutral22", + "md.sys.color.surface-container-low": "md.ref.palette.neutral10", + "md.sys.color.surface-container-lowest": "md.ref.palette.neutral4", + "md.sys.color.surface-dim": "md.ref.palette.neutral6", + "md.sys.color.surface-tint": "primary", + "md.sys.color.surface-variant": "md.ref.palette.neutral-variant30", + "md.sys.color.tertiary": "md.ref.palette.tertiary80", + "md.sys.color.tertiary-container": "md.ref.palette.tertiary30", + "md.sys.color.tertiary-fixed": "md.ref.palette.tertiary90", + "md.sys.color.tertiary-fixed-dim": "md.ref.palette.tertiary80" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/color_light.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/color_light.json new file mode 100644 index 0000000000000000000000000000000000000000..fd7be56a13a677bc6b15dfc75b2df6d64c061a77 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/color_light.json @@ -0,0 +1,53 @@ +{ + "version": "v0_162", + + "md.sys.color.background": "md.ref.palette.neutral99", + "md.sys.color.error": "md.ref.palette.error40", + "md.sys.color.error-container": "md.ref.palette.error90", + "md.sys.color.inverse-on-surface": "md.ref.palette.neutral95", + "md.sys.color.inverse-primary": "md.ref.palette.primary80", + "md.sys.color.inverse-surface": "md.ref.palette.neutral20", + "md.sys.color.on-background": "md.ref.palette.neutral10", + "md.sys.color.on-error": "md.ref.palette.error100", + "md.sys.color.on-error-container": "md.ref.palette.error10", + "md.sys.color.on-primary": "md.ref.palette.primary100", + "md.sys.color.on-primary-container": "md.ref.palette.primary10", + "md.sys.color.on-primary-fixed": "md.ref.palette.primary10", + "md.sys.color.on-primary-fixed-variant": "md.ref.palette.primary30", + "md.sys.color.on-secondary": "md.ref.palette.secondary100", + "md.sys.color.on-secondary-container": "md.ref.palette.secondary10", + "md.sys.color.on-secondary-fixed": "md.ref.palette.secondary10", + "md.sys.color.on-secondary-fixed-variant": "md.ref.palette.secondary30", + "md.sys.color.on-surface": "md.ref.palette.neutral10", + "md.sys.color.on-surface-variant": "md.ref.palette.neutral-variant30", + "md.sys.color.on-tertiary": "md.ref.palette.tertiary100", + "md.sys.color.on-tertiary-container": "md.ref.palette.tertiary10", + "md.sys.color.on-tertiary-fixed": "md.ref.palette.tertiary10", + "md.sys.color.on-tertiary-fixed-variant": "md.ref.palette.tertiary30", + "md.sys.color.outline": "md.ref.palette.neutral-variant50", + "md.sys.color.outline-variant": "md.ref.palette.neutral-variant80", + "md.sys.color.primary": "md.ref.palette.primary40", + "md.sys.color.primary-container": "md.ref.palette.primary90", + "md.sys.color.primary-fixed": "md.ref.palette.primary90", + "md.sys.color.primary-fixed-dim": "md.ref.palette.primary80", + "md.sys.color.scrim": "md.ref.palette.neutral0", + "md.sys.color.secondary": "md.ref.palette.secondary40", + "md.sys.color.secondary-container": "md.ref.palette.secondary90", + "md.sys.color.secondary-fixed": "md.ref.palette.secondary90", + "md.sys.color.secondary-fixed-dim": "md.ref.palette.secondary80", + "md.sys.color.shadow": "md.ref.palette.neutral0", + "md.sys.color.surface": "md.ref.palette.neutral99", + "md.sys.color.surface-bright": "md.ref.palette.neutral98", + "md.sys.color.surface-container": "md.ref.palette.neutral94", + "md.sys.color.surface-container-high": "md.ref.palette.neutral92", + "md.sys.color.surface-container-highest": "md.ref.palette.neutral90", + "md.sys.color.surface-container-low": "md.ref.palette.neutral96", + "md.sys.color.surface-container-lowest": "md.ref.palette.neutral100", + "md.sys.color.surface-dim": "md.ref.palette.neutral87", + "md.sys.color.surface-tint": "primary", + "md.sys.color.surface-variant": "md.ref.palette.neutral-variant90", + "md.sys.color.tertiary": "md.ref.palette.tertiary40", + "md.sys.color.tertiary-container": "md.ref.palette.tertiary90", + "md.sys.color.tertiary-fixed": "md.ref.palette.tertiary90", + "md.sys.color.tertiary-fixed-dim": "md.ref.palette.tertiary80" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/date_picker_docked.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/date_picker_docked.json new file mode 100644 index 0000000000000000000000000000000000000000..4ab28db36c1c504e50d896c4c9914d9f3ce15a16 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/date_picker_docked.json @@ -0,0 +1,79 @@ +{ + "version": "v0_162", + + "md.comp.date-picker.docked.container.color": "surface", + "md.comp.date-picker.docked.container.elevation": "md.sys.elevation.level3", + "md.comp.date-picker.docked.container.height": 456.0, + "md.comp.date-picker.docked.container.shape": "md.sys.shape.corner.large", + "md.comp.date-picker.docked.container.surface-tint-layer.color": "surfaceTint", + "md.comp.date-picker.docked.container.width": 360.0, + "md.comp.date-picker.docked.date.container.height": 48.0, + "md.comp.date-picker.docked.date.container.shape": "md.sys.shape.corner.full", + "md.comp.date-picker.docked.date.container.width": 48.0, + "md.comp.date-picker.docked.date.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.date-picker.docked.date.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.date-picker.docked.date.label-text.text-style": "bodyLarge", + "md.comp.date-picker.docked.date.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.date-picker.docked.date.selected.container.color": "primary", + "md.comp.date-picker.docked.date.selected.focus.state-layer.color": "onPrimary", + "md.comp.date-picker.docked.date.selected.hover.state-layer.color": "onPrimary", + "md.comp.date-picker.docked.date.selected.label-text.color": "onPrimary", + "md.comp.date-picker.docked.date.selected.pressed.state-layer.color": "onPrimary", + "md.comp.date-picker.docked.date.state-layer.height": 40.0, + "md.comp.date-picker.docked.date.state-layer.shape": "md.sys.shape.corner.full", + "md.comp.date-picker.docked.date.state-layer.width": 40.0, + "md.comp.date-picker.docked.date.today.container.outline.color": "primary", + "md.comp.date-picker.docked.date.today.container.outline.width": 1.0, + "md.comp.date-picker.docked.date.today.focus.state-layer.color": "primary", + "md.comp.date-picker.docked.date.today.hover.state-layer.color": "primary", + "md.comp.date-picker.docked.date.today.label-text.color": "primary", + "md.comp.date-picker.docked.date.today.pressed.state-layer.color": "primary", + "md.comp.date-picker.docked.date.unselected.focus.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.docked.date.unselected.hover.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.docked.date.unselected.label-text.color": "onSurface", + "md.comp.date-picker.docked.date.unselected.outside-month.label-text.color": "onSurfaceVariant", + "md.comp.date-picker.docked.date.unselected.pressed.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.docked.header.height": 64.0, + "md.comp.date-picker.docked.menu-button.container.height": 40.0, + "md.comp.date-picker.docked.menu-button.container.shape": "md.sys.shape.corner.full", + "md.comp.date-picker.docked.menu-button.disabled.icon.color": "onSurface", + "md.comp.date-picker.docked.menu-button.disabled.icon.opacity": 0.38, + "md.comp.date-picker.docked.menu-button.disabled.label-text.color": "onSurface", + "md.comp.date-picker.docked.menu-button.disabled.label-text.opacity": 0.38, + "md.comp.date-picker.docked.menu-button.focus.icon.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.focus.label-text.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.focus.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.date-picker.docked.menu-button.hover.icon.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.hover.label-text.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.hover.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.date-picker.docked.menu-button.icon.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.icon.size": 18.0, + "md.comp.date-picker.docked.menu-button.label-text.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.label-text.text-style": "labelLarge", + "md.comp.date-picker.docked.menu-button.pressed.icon.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.pressed.label-text.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.pressed.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.date-picker.docked.menu.list-item.container.height": 48.0, + "md.comp.date-picker.docked.menu.list-item.focus.label-text.color": "onSurface", + "md.comp.date-picker.docked.menu.list-item.focus.state-layer.color": "onSurface", + "md.comp.date-picker.docked.menu.list-item.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.date-picker.docked.menu.list-item.hover.label-text.color": "onSurface", + "md.comp.date-picker.docked.menu.list-item.hover.state-layer.color": "onSurface", + "md.comp.date-picker.docked.menu.list-item.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.date-picker.docked.menu.list-item.label-text.color": "onSurface", + "md.comp.date-picker.docked.menu.list-item.label-text.text-style": "bodyLarge", + "md.comp.date-picker.docked.menu.list-item.pressed.label-text.color": "onSurface", + "md.comp.date-picker.docked.menu.list-item.pressed.state-layer.color": "onSurface", + "md.comp.date-picker.docked.menu.list-item.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.date-picker.docked.menu.list-item.selected.container.color": "surfaceVariant", + "md.comp.date-picker.docked.menu.list-item.selected.focus.leading-icon.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu.list-item.selected.hover.leading-icon.color": "onSurfaceVariant", + "md.comp.date-picker.docked.menu.list-item.selected.leading-icon.color": "onSurface", + "md.comp.date-picker.docked.menu.list-item.selected.leading-icon.size": 24.0, + "md.comp.date-picker.docked.menu.list-item.selected.pressed.leading-icon.color": "onSurfaceVariant", + "md.comp.date-picker.docked.weekdays.label-text.color": "onSurface", + "md.comp.date-picker.docked.weekdays.label-text.text-style": "bodyLarge" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/date_picker_input_modal.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/date_picker_input_modal.json new file mode 100644 index 0000000000000000000000000000000000000000..b6f0faec5055dc8abac0911c8f20e73769911c1f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/date_picker_input_modal.json @@ -0,0 +1,16 @@ +{ + "version": "v0_162", + + "md.comp.date-input.modal.container.color": "surface", + "md.comp.date-input.modal.container.elevation": "md.sys.elevation.level3", + "md.comp.date-input.modal.container.height": 512.0, + "md.comp.date-input.modal.container.shape": "md.sys.shape.corner.extra-large", + "md.comp.date-input.modal.container.surface-tint-layer.color": "surfaceTint", + "md.comp.date-input.modal.container.width": 328.0, + "md.comp.date-input.modal.header.container.height": 120.0, + "md.comp.date-input.modal.header.container.width": 328.0, + "md.comp.date-input.modal.header.headline.color": "onSurfaceVariant", + "md.comp.date-input.modal.header.headline.text-style": "headlineLarge", + "md.comp.date-input.modal.header.supporting-text.color": "onSurfaceVariant", + "md.comp.date-input.modal.header.supporting-text.text-style": "labelLarge" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/date_picker_modal.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/date_picker_modal.json new file mode 100644 index 0000000000000000000000000000000000000000..84a3ffae84fc09a2b9c5bfc5bf41827aca35bf03 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/date_picker_modal.json @@ -0,0 +1,77 @@ +{ + "version": "v0_162", + + "md.comp.date-picker.modal.container.color": "surface", + "md.comp.date-picker.modal.container.elevation": "md.sys.elevation.level3", + "md.comp.date-picker.modal.container.height": 568.0, + "md.comp.date-picker.modal.container.shape": "md.sys.shape.corner.extra-large", + "md.comp.date-picker.modal.container.surface-tint-layer.color": "surfaceTint", + "md.comp.date-picker.modal.container.width": 360.0, + "md.comp.date-picker.modal.date.container.height": 40.0, + "md.comp.date-picker.modal.date.container.shape": "md.sys.shape.corner.full", + "md.comp.date-picker.modal.date.container.width": 40.0, + "md.comp.date-picker.modal.date.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.date-picker.modal.date.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.date-picker.modal.date.label-text.text-style": "bodyLarge", + "md.comp.date-picker.modal.date.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.date-picker.modal.date.selected.container.color": "primary", + "md.comp.date-picker.modal.date.selected.focus.state-layer.color": "onPrimary", + "md.comp.date-picker.modal.date.selected.hover.state-layer.color": "onPrimary", + "md.comp.date-picker.modal.date.selected.label-text.color": "onPrimary", + "md.comp.date-picker.modal.date.selected.pressed.state-layer.color": "onPrimary", + "md.comp.date-picker.modal.date.state-layer.height": 40.0, + "md.comp.date-picker.modal.date.state-layer.shape": "md.sys.shape.corner.full", + "md.comp.date-picker.modal.date.state-layer.width": 40.0, + "md.comp.date-picker.modal.date.today.container.outline.color": "primary", + "md.comp.date-picker.modal.date.today.container.outline.width": 1.0, + "md.comp.date-picker.modal.date.today.focus.state-layer.color": "primary", + "md.comp.date-picker.modal.date.today.hover.state-layer.color": "primary", + "md.comp.date-picker.modal.date.today.label-text.color": "primary", + "md.comp.date-picker.modal.date.today.pressed.state-layer.color": "primary", + "md.comp.date-picker.modal.date.unselected.focus.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.modal.date.unselected.hover.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.modal.date.unselected.label-text.color": "onSurface", + "md.comp.date-picker.modal.date.unselected.pressed.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.modal.header.container.height": 120.0, + "md.comp.date-picker.modal.header.container.width": 360.0, + "md.comp.date-picker.modal.header.headline.color": "onSurfaceVariant", + "md.comp.date-picker.modal.header.headline.text-style": "headlineLarge", + "md.comp.date-picker.modal.header.supporting-text.color": "onSurfaceVariant", + "md.comp.date-picker.modal.header.supporting-text.text-style": "labelLarge", + "md.comp.date-picker.modal.range-selection.active-indicator.container.color": "secondaryContainer", + "md.comp.date-picker.modal.range-selection.active-indicator.container.height": 40.0, + "md.comp.date-picker.modal.range-selection.active-indicator.container.shape": "md.sys.shape.corner.full", + "md.comp.date-picker.modal.range-selection.container.elevation": "md.sys.elevation.level0", + "md.comp.date-picker.modal.range-selection.container.shape": "md.sys.shape.corner.none", + "md.comp.date-picker.modal.range-selection.date.in-range.focus.state-layer.color": "onPrimaryContainer", + "md.comp.date-picker.modal.range-selection.date.in-range.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.date-picker.modal.range-selection.date.in-range.hover.state-layer.color": "onPrimaryContainer", + "md.comp.date-picker.modal.range-selection.date.in-range.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.date-picker.modal.range-selection.date.in-range.label-text.color": "onSecondaryContainer", + "md.comp.date-picker.modal.range-selection.date.in-range.pressed.state-layer.color": "onPrimaryContainer", + "md.comp.date-picker.modal.range-selection.date.in-range.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.date-picker.modal.range-selection.header.container.height": 128.0, + "md.comp.date-picker.modal.range-selection.header.headline.text-style": "titleLarge", + "md.comp.date-picker.modal.range-selection.month.subhead.color": "onSurfaceVariant", + "md.comp.date-picker.modal.range-selection.month.subhead.text-style": "titleSmall", + "md.comp.date-picker.modal.weekdays.label-text.color": "onSurface", + "md.comp.date-picker.modal.weekdays.label-text.text-style": "bodyLarge", + "md.comp.date-picker.modal.year-selection.year.container.height": 36.0, + "md.comp.date-picker.modal.year-selection.year.container.width": 72.0, + "md.comp.date-picker.modal.year-selection.year.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.date-picker.modal.year-selection.year.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.date-picker.modal.year-selection.year.label-text.text-style": "bodyLarge", + "md.comp.date-picker.modal.year-selection.year.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.date-picker.modal.year-selection.year.selected.container.color": "primary", + "md.comp.date-picker.modal.year-selection.year.selected.focus.state-layer.color": "onPrimary", + "md.comp.date-picker.modal.year-selection.year.selected.hover.state-layer.color": "onPrimary", + "md.comp.date-picker.modal.year-selection.year.selected.label-text.color": "onPrimary", + "md.comp.date-picker.modal.year-selection.year.selected.pressed.state-layer.color": "onPrimary", + "md.comp.date-picker.modal.year-selection.year.state-layer.height": 36.0, + "md.comp.date-picker.modal.year-selection.year.state-layer.shape": "md.sys.shape.corner.full", + "md.comp.date-picker.modal.year-selection.year.state-layer.width": 72.0, + "md.comp.date-picker.modal.year-selection.year.unselected.focus.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.modal.year-selection.year.unselected.hover.state-layer.color": "onSurfaceVariant", + "md.comp.date-picker.modal.year-selection.year.unselected.label-text.color": "onSurfaceVariant", + "md.comp.date-picker.modal.year-selection.year.unselected.pressed.state-layer.color": "onSurfaceVariant" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/dialog.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/dialog.json new file mode 100644 index 0000000000000000000000000000000000000000..6fe28cbc6b709d7d1d2f701b78d72e2117c6210c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/dialog.json @@ -0,0 +1,25 @@ +{ + "version": "v0_162", + + "md.comp.dialog.action.focus.label-text.color": "primary", + "md.comp.dialog.action.focus.state-layer.color": "primary", + "md.comp.dialog.action.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.dialog.action.hover.label-text.color": "primary", + "md.comp.dialog.action.hover.state-layer.color": "primary", + "md.comp.dialog.action.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.dialog.action.label-text.color": "primary", + "md.comp.dialog.action.label-text.text-style": "labelLarge", + "md.comp.dialog.action.pressed.label-text.color": "primary", + "md.comp.dialog.action.pressed.state-layer.color": "primary", + "md.comp.dialog.action.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.dialog.container.color": "surface", + "md.comp.dialog.container.elevation": "md.sys.elevation.level3", + "md.comp.dialog.container.shape": "md.sys.shape.corner.extra-large", + "md.comp.dialog.container.surface-tint-layer.color": "surfaceTint", + "md.comp.dialog.headline.color": "onSurface", + "md.comp.dialog.headline.text-style": "headlineSmall", + "md.comp.dialog.supporting-text.color": "onSurfaceVariant", + "md.comp.dialog.supporting-text.text-style": "bodyMedium", + "md.comp.dialog.with-icon.icon.color": "secondary", + "md.comp.dialog.with-icon.icon.size": 24.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/dialog_fullscreen.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/dialog_fullscreen.json new file mode 100644 index 0000000000000000000000000000000000000000..9eb61d42066acd094b68d9935cd8551087f73aff --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/dialog_fullscreen.json @@ -0,0 +1,27 @@ +{ + "version": "v0_162", + + "md.comp.full-screen-dialog.container.color": "surface", + "md.comp.full-screen-dialog.container.elevation": "md.sys.elevation.level0", + "md.comp.full-screen-dialog.container.shape": "md.sys.shape.corner.none", + "md.comp.full-screen-dialog.header.action.focus.label-text.color": "primary", + "md.comp.full-screen-dialog.header.action.focus.state-layer.color": "primary", + "md.comp.full-screen-dialog.header.action.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.full-screen-dialog.header.action.hover.label-text.color": "primary", + "md.comp.full-screen-dialog.header.action.hover.state-layer.color": "primary", + "md.comp.full-screen-dialog.header.action.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.full-screen-dialog.header.action.label-text.color": "primary", + "md.comp.full-screen-dialog.header.action.label-text.text-style": "labelLarge", + "md.comp.full-screen-dialog.header.action.pressed.label-text.color": "primary", + "md.comp.full-screen-dialog.header.action.pressed.state-layer.color": "primary", + "md.comp.full-screen-dialog.header.action.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.full-screen-dialog.header.container.color": "surface", + "md.comp.full-screen-dialog.header.container.elevation": "md.sys.elevation.level0", + "md.comp.full-screen-dialog.header.container.height": 56.0, + "md.comp.full-screen-dialog.header.container.surface-tint-layer.color": "surfaceTint", + "md.comp.full-screen-dialog.header.headline.color": "onSurface", + "md.comp.full-screen-dialog.header.headline.text-style": "titleLarge", + "md.comp.full-screen-dialog.header.icon.color": "onSurface", + "md.comp.full-screen-dialog.header.icon.size": 24.0, + "md.comp.full-screen-dialog.header.on-scroll.container.elevation": "md.sys.elevation.level2" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/divider.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/divider.json new file mode 100644 index 0000000000000000000000000000000000000000..2f8c946d6a5026ec5d625f4ef46ce24f7d264cb0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/divider.json @@ -0,0 +1,6 @@ +{ + "version": "v0_162", + + "md.comp.divider.color": "outlineVariant", + "md.comp.divider.thickness": 1.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/elevation.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/elevation.json new file mode 100644 index 0000000000000000000000000000000000000000..f1f2939e66fb404c31dba5b8ac7384523556ccc0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/elevation.json @@ -0,0 +1,10 @@ +{ + "version": "v0_162", + + "md.sys.elevation.level0": 0.0, + "md.sys.elevation.level1": 1.0, + "md.sys.elevation.level2": 3.0, + "md.sys.elevation.level3": 6.0, + "md.sys.elevation.level4": 8.0, + "md.sys.elevation.level5": 12.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_extended_primary.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_extended_primary.json new file mode 100644 index 0000000000000000000000000000000000000000..39855aab83a641f5eeb3fdf94a16e0754e16a18c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_extended_primary.json @@ -0,0 +1,32 @@ +{ + "version": "v0_162", + + "md.comp.extended-fab.primary.container.color": "primaryContainer", + "md.comp.extended-fab.primary.container.elevation": "md.sys.elevation.level3", + "md.comp.extended-fab.primary.container.height": 56.0, + "md.comp.extended-fab.primary.container.shadow-color": "shadow", + "md.comp.extended-fab.primary.container.shape": "md.sys.shape.corner.large", + "md.comp.extended-fab.primary.focus.container.elevation": "md.sys.elevation.level3", + "md.comp.extended-fab.primary.focus.icon.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.focus.label-text.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.focus.state-layer.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.extended-fab.primary.hover.container.elevation": "md.sys.elevation.level4", + "md.comp.extended-fab.primary.hover.icon.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.hover.label-text.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.hover.state-layer.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.extended-fab.primary.icon.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.icon.size": 24.0, + "md.comp.extended-fab.primary.label-text.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.label-text.text-style": "labelLarge", + "md.comp.extended-fab.primary.lowered.container.elevation": "md.sys.elevation.level1", + "md.comp.extended-fab.primary.lowered.focus.container.elevation": "md.sys.elevation.level1", + "md.comp.extended-fab.primary.lowered.hover.container.elevation": "md.sys.elevation.level2", + "md.comp.extended-fab.primary.lowered.pressed.container.elevation": "md.sys.elevation.level1", + "md.comp.extended-fab.primary.pressed.container.elevation": "md.sys.elevation.level3", + "md.comp.extended-fab.primary.pressed.icon.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.pressed.label-text.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.pressed.state-layer.color": "onPrimaryContainer", + "md.comp.extended-fab.primary.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_large_primary.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_large_primary.json new file mode 100644 index 0000000000000000000000000000000000000000..e0c71251b10b44a4a68283eae0e446fb786831fa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_large_primary.json @@ -0,0 +1,28 @@ +{ + "version": "v0_162", + + "md.comp.fab.primary.large.container.color": "primaryContainer", + "md.comp.fab.primary.large.container.elevation": "md.sys.elevation.level3", + "md.comp.fab.primary.large.container.height": 96.0, + "md.comp.fab.primary.large.container.shadow-color": "shadow", + "md.comp.fab.primary.large.container.shape": "md.sys.shape.corner.extra-large", + "md.comp.fab.primary.large.container.width": 96.0, + "md.comp.fab.primary.large.focus.container.elevation": "md.sys.elevation.level3", + "md.comp.fab.primary.large.focus.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.large.focus.state-layer.color": "onPrimaryContainer", + "md.comp.fab.primary.large.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.fab.primary.large.hover.container.elevation": "md.sys.elevation.level4", + "md.comp.fab.primary.large.hover.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.large.hover.state-layer.color": "onPrimaryContainer", + "md.comp.fab.primary.large.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.fab.primary.large.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.large.icon.size": 36.0, + "md.comp.fab.primary.large.lowered.container.elevation": "md.sys.elevation.level1", + "md.comp.fab.primary.large.lowered.focus.container.elevation": "md.sys.elevation.level1", + "md.comp.fab.primary.large.lowered.hover.container.elevation": "md.sys.elevation.level2", + "md.comp.fab.primary.large.lowered.pressed.container.elevation": "md.sys.elevation.level1", + "md.comp.fab.primary.large.pressed.container.elevation": "md.sys.elevation.level3", + "md.comp.fab.primary.large.pressed.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.large.pressed.state-layer.color": "onPrimaryContainer", + "md.comp.fab.primary.large.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_primary.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_primary.json new file mode 100644 index 0000000000000000000000000000000000000000..f5e3d5adb87a1aa1f8c1f570be66548acfe7d6f4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_primary.json @@ -0,0 +1,28 @@ +{ + "version": "v0_162", + + "md.comp.fab.primary.container.color": "primaryContainer", + "md.comp.fab.primary.container.elevation": "md.sys.elevation.level3", + "md.comp.fab.primary.container.height": 56.0, + "md.comp.fab.primary.container.shadow-color": "shadow", + "md.comp.fab.primary.container.shape": "md.sys.shape.corner.large", + "md.comp.fab.primary.container.width": 56.0, + "md.comp.fab.primary.focus.container.elevation": "md.sys.elevation.level3", + "md.comp.fab.primary.focus.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.focus.state-layer.color": "onPrimaryContainer", + "md.comp.fab.primary.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.fab.primary.hover.container.elevation": "md.sys.elevation.level4", + "md.comp.fab.primary.hover.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.hover.state-layer.color": "onPrimaryContainer", + "md.comp.fab.primary.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.fab.primary.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.icon.size": 24.0, + "md.comp.fab.primary.lowered.container.elevation": "md.sys.elevation.level1", + "md.comp.fab.primary.lowered.focus.container.elevation": "md.sys.elevation.level1", + "md.comp.fab.primary.lowered.hover.container.elevation": "md.sys.elevation.level2", + "md.comp.fab.primary.lowered.pressed.container.elevation": "md.sys.elevation.level1", + "md.comp.fab.primary.pressed.container.elevation": "md.sys.elevation.level3", + "md.comp.fab.primary.pressed.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.pressed.state-layer.color": "onPrimaryContainer", + "md.comp.fab.primary.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_small_primary.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_small_primary.json new file mode 100644 index 0000000000000000000000000000000000000000..bde0cd640bae80973fa29ed2eabb17bf61f714d3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/fab_small_primary.json @@ -0,0 +1,28 @@ +{ + "version": "v0_162", + + "md.comp.fab.primary.small.container.color": "primaryContainer", + "md.comp.fab.primary.small.container.elevation": "md.sys.elevation.level3", + "md.comp.fab.primary.small.container.height": 40.0, + "md.comp.fab.primary.small.container.shadow-color": "shadow", + "md.comp.fab.primary.small.container.shape": "md.sys.shape.corner.medium", + "md.comp.fab.primary.small.container.width": 40.0, + "md.comp.fab.primary.small.focus.container.elevation": "md.sys.elevation.level3", + "md.comp.fab.primary.small.focus.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.small.focus.state-layer.color": "onPrimaryContainer", + "md.comp.fab.primary.small.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.fab.primary.small.hover.container.elevation": "md.sys.elevation.level4", + "md.comp.fab.primary.small.hover.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.small.hover.state-layer.color": "onPrimaryContainer", + "md.comp.fab.primary.small.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.fab.primary.small.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.small.icon.size": 24.0, + "md.comp.fab.primary.small.lowered.container.elevation": "md.sys.elevation.level1", + "md.comp.fab.primary.small.lowered.focus.container.elevation": "md.sys.elevation.level1", + "md.comp.fab.primary.small.lowered.hover.container.elevation": "md.sys.elevation.level2", + "md.comp.fab.primary.small.lowered.pressed.container.elevation": "md.sys.elevation.level1", + "md.comp.fab.primary.small.pressed.container.elevation": "md.sys.elevation.level3", + "md.comp.fab.primary.small.pressed.icon.color": "onPrimaryContainer", + "md.comp.fab.primary.small.pressed.state-layer.color": "onPrimaryContainer", + "md.comp.fab.primary.small.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button.json new file mode 100644 index 0000000000000000000000000000000000000000..be7678825adcbff0e76305147961bf151cd281e9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button.json @@ -0,0 +1,29 @@ +{ + "version": "v0_162", + + "md.comp.icon-button.disabled.icon.color": "onSurface", + "md.comp.icon-button.disabled.icon.opacity": 0.38, + "md.comp.icon-button.icon.size": 24.0, + "md.comp.icon-button.selected.focus.icon.color": "primary", + "md.comp.icon-button.selected.focus.state-layer.color": "primary", + "md.comp.icon-button.selected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.icon-button.selected.hover.icon.color": "primary", + "md.comp.icon-button.selected.hover.state-layer.color": "primary", + "md.comp.icon-button.selected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.icon-button.selected.icon.color": "primary", + "md.comp.icon-button.selected.pressed.icon.color": "primary", + "md.comp.icon-button.selected.pressed.state-layer.color": "primary", + "md.comp.icon-button.selected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.icon-button.state-layer.shape": "md.sys.shape.corner.full", + "md.comp.icon-button.state-layer.size": 40.0, + "md.comp.icon-button.unselected.focus.icon.color": "onSurfaceVariant", + "md.comp.icon-button.unselected.focus.state-layer.color": "onSurfaceVariant", + "md.comp.icon-button.unselected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.icon-button.unselected.hover.icon.color": "onSurfaceVariant", + "md.comp.icon-button.unselected.hover.state-layer.color": "onSurfaceVariant", + "md.comp.icon-button.unselected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.icon-button.unselected.icon.color": "onSurfaceVariant", + "md.comp.icon-button.unselected.pressed.icon.color": "onSurfaceVariant", + "md.comp.icon-button.unselected.pressed.state-layer.color": "onSurfaceVariant", + "md.comp.icon-button.unselected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button_filled.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button_filled.json new file mode 100644 index 0000000000000000000000000000000000000000..eebf003b0fdf3c41d5b19a5ad0f05473de2da40d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button_filled.json @@ -0,0 +1,38 @@ +{ + "version": "v0_162", + + "md.comp.filled-icon-button.container.color": "primary", + "md.comp.filled-icon-button.container.shape": "md.sys.shape.corner.full", + "md.comp.filled-icon-button.container.size": 40.0, + "md.comp.filled-icon-button.disabled.container.color": "onSurface", + "md.comp.filled-icon-button.disabled.container.opacity": 0.12, + "md.comp.filled-icon-button.disabled.icon.color": "onSurface", + "md.comp.filled-icon-button.disabled.icon.opacity": 0.38, + "md.comp.filled-icon-button.focus.icon.color": "onPrimary", + "md.comp.filled-icon-button.focus.state-layer.color": "onPrimary", + "md.comp.filled-icon-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.filled-icon-button.hover.icon.color": "onPrimary", + "md.comp.filled-icon-button.hover.state-layer.color": "onPrimary", + "md.comp.filled-icon-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.filled-icon-button.icon.color": "onPrimary", + "md.comp.filled-icon-button.icon.size": 24.0, + "md.comp.filled-icon-button.pressed.icon.color": "onPrimary", + "md.comp.filled-icon-button.pressed.state-layer.color": "onPrimary", + "md.comp.filled-icon-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.filled-icon-button.selected.container.color": "primary", + "md.comp.filled-icon-button.toggle.selected.focus.icon.color": "onPrimary", + "md.comp.filled-icon-button.toggle.selected.focus.state-layer.color": "onPrimary", + "md.comp.filled-icon-button.toggle.selected.hover.icon.color": "onPrimary", + "md.comp.filled-icon-button.toggle.selected.hover.state-layer.color": "onPrimary", + "md.comp.filled-icon-button.toggle.selected.icon.color": "onPrimary", + "md.comp.filled-icon-button.toggle.selected.pressed.icon.color": "onPrimary", + "md.comp.filled-icon-button.toggle.selected.pressed.state-layer.color": "onPrimary", + "md.comp.filled-icon-button.toggle.unselected.focus.icon.color": "primary", + "md.comp.filled-icon-button.toggle.unselected.focus.state-layer.color": "primary", + "md.comp.filled-icon-button.toggle.unselected.hover.icon.color": "primary", + "md.comp.filled-icon-button.toggle.unselected.hover.state-layer.color": "primary", + "md.comp.filled-icon-button.toggle.unselected.icon.color": "primary", + "md.comp.filled-icon-button.toggle.unselected.pressed.icon.color": "primary", + "md.comp.filled-icon-button.toggle.unselected.pressed.state-layer.color": "primary", + "md.comp.filled-icon-button.unselected.container.color": "surfaceVariant" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button_filled_tonal.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button_filled_tonal.json new file mode 100644 index 0000000000000000000000000000000000000000..8d61d263cb76da83e1f9c2fd57aeaf1bd6691874 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button_filled_tonal.json @@ -0,0 +1,38 @@ +{ + "version": "v0_162", + + "md.comp.filled-tonal-icon-button.container.color": "secondaryContainer", + "md.comp.filled-tonal-icon-button.container.shape": "md.sys.shape.corner.full", + "md.comp.filled-tonal-icon-button.container.size": 40.0, + "md.comp.filled-tonal-icon-button.disabled.container.color": "onSurface", + "md.comp.filled-tonal-icon-button.disabled.container.opacity": 0.12, + "md.comp.filled-tonal-icon-button.disabled.icon.color": "onSurface", + "md.comp.filled-tonal-icon-button.disabled.icon.opacity": 0.38, + "md.comp.filled-tonal-icon-button.focus.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.focus.state-layer.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.filled-tonal-icon-button.hover.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.hover.state-layer.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.filled-tonal-icon-button.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.icon.size": 24.0, + "md.comp.filled-tonal-icon-button.pressed.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.pressed.state-layer.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.filled-tonal-icon-button.selected.container.color": "secondaryContainer", + "md.comp.filled-tonal-icon-button.toggle.selected.focus.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.toggle.selected.focus.state-layer.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.toggle.selected.hover.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.toggle.selected.hover.state-layer.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.toggle.selected.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.toggle.selected.pressed.icon.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.toggle.selected.pressed.state-layer.color": "onSecondaryContainer", + "md.comp.filled-tonal-icon-button.toggle.unselected.focus.icon.color": "onSurfaceVariant", + "md.comp.filled-tonal-icon-button.toggle.unselected.focus.state-layer.color": "onSurfaceVariant", + "md.comp.filled-tonal-icon-button.toggle.unselected.hover.icon.color": "onSurfaceVariant", + "md.comp.filled-tonal-icon-button.toggle.unselected.hover.state-layer.color": "onSurfaceVariant", + "md.comp.filled-tonal-icon-button.toggle.unselected.icon.color": "onSurfaceVariant", + "md.comp.filled-tonal-icon-button.toggle.unselected.pressed.icon.color": "onSurfaceVariant", + "md.comp.filled-tonal-icon-button.toggle.unselected.pressed.state-layer.color": "onSurfaceVariant", + "md.comp.filled-tonal-icon-button.unselected.container.color": "surfaceVariant" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button_outlined.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button_outlined.json new file mode 100644 index 0000000000000000000000000000000000000000..7c0106684a2cf7e332b7ce127d62ea3b7834e8b3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/icon_button_outlined.json @@ -0,0 +1,33 @@ +{ + "version": "v0_162", + + "md.comp.outlined-icon-button.container.shape": "md.sys.shape.corner.full", + "md.comp.outlined-icon-button.container.size": 40.0, + "md.comp.outlined-icon-button.disabled.icon.color": "onSurface", + "md.comp.outlined-icon-button.disabled.icon.opacity": 0.38, + "md.comp.outlined-icon-button.disabled.selected.container.color": "onSurface", + "md.comp.outlined-icon-button.disabled.selected.container.opacity": 0.12, + "md.comp.outlined-icon-button.disabled.unselected.outline.color": "onSurface", + "md.comp.outlined-icon-button.disabled.unselected.outline.opacity": 0.12, + "md.comp.outlined-icon-button.focus.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.outlined-icon-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.outlined-icon-button.icon.size": 24.0, + "md.comp.outlined-icon-button.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.outlined-icon-button.selected.container.color": "inverseSurface", + "md.comp.outlined-icon-button.selected.focus.icon.color": "onInverseSurface", + "md.comp.outlined-icon-button.selected.focus.state-layer.color": "onInverseSurface", + "md.comp.outlined-icon-button.selected.hover.icon.color": "onInverseSurface", + "md.comp.outlined-icon-button.selected.hover.state-layer.color": "onInverseSurface", + "md.comp.outlined-icon-button.selected.icon.color": "onInverseSurface", + "md.comp.outlined-icon-button.selected.pressed.icon.color": "onInverseSurface", + "md.comp.outlined-icon-button.selected.pressed.state-layer.color": "onInverseSurface", + "md.comp.outlined-icon-button.unselected.focus.icon.color": "onSurfaceVariant", + "md.comp.outlined-icon-button.unselected.focus.state-layer.color": "onSurfaceVariant", + "md.comp.outlined-icon-button.unselected.hover.icon.color": "onSurfaceVariant", + "md.comp.outlined-icon-button.unselected.hover.state-layer.color": "onSurfaceVariant", + "md.comp.outlined-icon-button.unselected.icon.color": "onSurfaceVariant", + "md.comp.outlined-icon-button.unselected.outline.color": "outline", + "md.comp.outlined-icon-button.unselected.outline.width": 1.0, + "md.comp.outlined-icon-button.unselected.pressed.icon.color": "onSurface", + "md.comp.outlined-icon-button.unselected.pressed.state-layer.color": "onSurface" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/list.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/list.json new file mode 100644 index 0000000000000000000000000000000000000000..a557a2da27d935c874ded5ce4afa54b4a0c68c23 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/list.json @@ -0,0 +1,65 @@ +{ + "version": "v0_162", + + "md.comp.list.list-item.container.color": "surface", + "md.comp.list.list-item.container.elevation": "md.sys.elevation.level0", + "md.comp.list.list-item.container.shape": "md.sys.shape.corner.none", + "md.comp.list.list-item.disabled.label-text.color": "onSurface", + "md.comp.list.list-item.disabled.label-text.opacity": 0.38, + "md.comp.list.list-item.disabled.leading-icon.color": "onSurface", + "md.comp.list.list-item.disabled.leading-icon.opacity": 0.38, + "md.comp.list.list-item.disabled.state-layer.color": "onSurface", + "md.comp.list.list-item.disabled.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.list.list-item.disabled.trailing-icon.color": "onSurface", + "md.comp.list.list-item.disabled.trailing-icon.opacity": 0.38, + "md.comp.list.list-item.dragged.container.elevation": "md.sys.elevation.level4", + "md.comp.list.list-item.dragged.label-text.color": "onSurface", + "md.comp.list.list-item.dragged.leading-icon.icon.color": "onSurfaceVariant", + "md.comp.list.list-item.dragged.state-layer.color": "onSurface", + "md.comp.list.list-item.dragged.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.list.list-item.dragged.trailing-icon.icon.color": "onSurfaceVariant", + "md.comp.list.list-item.focus.label-text.color": "onSurface", + "md.comp.list.list-item.focus.leading-icon.icon.color": "onSurfaceVariant", + "md.comp.list.list-item.focus.state-layer.color": "onSurface", + "md.comp.list.list-item.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.list.list-item.focus.trailing-icon.icon.color": "onSurfaceVariant", + "md.comp.list.list-item.hover.label-text.color": "onSurface", + "md.comp.list.list-item.hover.leading-icon.icon.color": "onSurfaceVariant", + "md.comp.list.list-item.hover.state-layer.color": "onSurface", + "md.comp.list.list-item.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.list.list-item.hover.trailing-icon.icon.color": "onSurfaceVariant", + "md.comp.list.list-item.label-text.color": "onSurface", + "md.comp.list.list-item.label-text.text-style": "bodyLarge", + "md.comp.list.list-item.large.leading-video.height": 69.0, + "md.comp.list.list-item.leading-avatar.color": "primaryContainer", + "md.comp.list.list-item.leading-avatar-label.color": "onPrimaryContainer", + "md.comp.list.list-item.leading-avatar-label.text-style": "titleMedium", + "md.comp.list.list-item.leading-avatar.shape": "md.sys.shape.corner.full", + "md.comp.list.list-item.leading-avatar.size": 40.0, + "md.comp.list.list-item.leading-icon.color": "onSurfaceVariant", + "md.comp.list.list-item.leading-icon.size": 18.0, + "md.comp.list.list-item.leading-image.height": 56.0, + "md.comp.list.list-item.leading-image.shape": "md.sys.shape.corner.none", + "md.comp.list.list-item.leading-image.width": 56.0, + "md.comp.list.list-item.leading-video.shape": "md.sys.shape.corner.none", + "md.comp.list.list-item.leading-video.width": 100.0, + "md.comp.list.list-item.one-line.container.height": 56.0, + "md.comp.list.list-item.overline.color": "onSurfaceVariant", + "md.comp.list.list-item.overline.text-style": "labelSmall", + "md.comp.list.list-item.pressed.label-text.color": "onSurface", + "md.comp.list.list-item.pressed.leading-icon.icon.color": "onSurfaceVariant", + "md.comp.list.list-item.pressed.state-layer.color": "onSurface", + "md.comp.list.list-item.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.list.list-item.pressed.trailing-icon.icon.color": "onSurfaceVariant", + "md.comp.list.list-item.selected.trailing-icon.color": "primary", + "md.comp.list.list-item.small.leading-video.height": 56.0, + "md.comp.list.list-item.supporting-text.color": "onSurfaceVariant", + "md.comp.list.list-item.supporting-text.text-style": "bodyMedium", + "md.comp.list.list-item.three-line.container.height": 88.0, + "md.comp.list.list-item.trailing-icon.color": "onSurfaceVariant", + "md.comp.list.list-item.trailing-icon.size": 24.0, + "md.comp.list.list-item.trailing-supporting-text.color": "onSurfaceVariant", + "md.comp.list.list-item.trailing-supporting-text.text-style": "labelSmall", + "md.comp.list.list-item.two-line.container.height": 72.0, + "md.comp.list.list-item.unselected.trailing-icon.color": "onSurface" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/menu.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/menu.json new file mode 100644 index 0000000000000000000000000000000000000000..979154547703fa61bf414a526be358529d25cd9d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/menu.json @@ -0,0 +1,10 @@ +{ + "version": "v0_162", + + "md.comp.menu.container.color": "surface", + "md.comp.menu.container.elevation": "md.sys.elevation.level2", + "md.comp.menu.container.shadow-color": "shadow", + "md.comp.menu.container.shape": "md.sys.shape.corner.extra-small", + "md.comp.menu.container.surface-tint-layer.color": "surfaceTint", + "md.comp.menu.list-item.selected.container.color": "surfaceVariant" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/motion.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/motion.json new file mode 100644 index 0000000000000000000000000000000000000000..90c1fab6ad1dca8e6f593f014f1cc921b1de1e98 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/motion.json @@ -0,0 +1,29 @@ +{ + "version": "v0_162", + + "md.sys.motion.duration.extra-long1Ms": 700.0, + "md.sys.motion.duration.extra-long2Ms": 800.0, + "md.sys.motion.duration.extra-long3Ms": 900.0, + "md.sys.motion.duration.extra-long4Ms": 1000.0, + "md.sys.motion.duration.long1Ms": 450.0, + "md.sys.motion.duration.long2Ms": 500.0, + "md.sys.motion.duration.long3Ms": 550.0, + "md.sys.motion.duration.long4Ms": 600.0, + "md.sys.motion.duration.medium1Ms": 250.0, + "md.sys.motion.duration.medium2Ms": 300.0, + "md.sys.motion.duration.medium3Ms": 350.0, + "md.sys.motion.duration.medium4Ms": 400.0, + "md.sys.motion.duration.short1Ms": 50.0, + "md.sys.motion.duration.short2Ms": 100.0, + "md.sys.motion.duration.short3Ms": 150.0, + "md.sys.motion.duration.short4Ms": 200.0, + "md.sys.motion.easing.emphasized.accelerate": "Cubic(0.3, 0.0, 0.8, 0.15)", + "md.sys.motion.easing.emphasized.decelerate": "Cubic(0.05, 0.7, 0.1, 1.0)", + "md.sys.motion.easing.legacy": "Cubic(0.4, 0.0, 0.2, 1.0)", + "md.sys.motion.easing.legacy.accelerate": "Cubic(0.4, 0.0, 1.0, 1.0)", + "md.sys.motion.easing.legacy.decelerate": "Cubic(0.0, 0.0, 0.2, 1.0)", + "md.sys.motion.easing.linear": "Cubic(0.0, 0.0, 1.0, 1.0)", + "md.sys.motion.easing.standard": "Cubic(0.2, 0.0, 0.0, 1.0)", + "md.sys.motion.easing.standard.accelerate": "Cubic(0.3, 0.0, 1.0, 1.0)", + "md.sys.motion.easing.standard.decelerate": "Cubic(0.0, 0.0, 0.0, 1.0)" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_bar.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_bar.json new file mode 100644 index 0000000000000000000000000000000000000000..c972fba4ca56be8b06a43162b20b0f32420ca47d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_bar.json @@ -0,0 +1,40 @@ +{ + "version": "v0_162", + + "md.comp.navigation-bar.active.focus.icon.color": "onSecondaryContainer", + "md.comp.navigation-bar.active.focus.label-text.color": "onSurface", + "md.comp.navigation-bar.active.focus.state-layer.color": "onSurface", + "md.comp.navigation-bar.active.hover.icon.color": "onSecondaryContainer", + "md.comp.navigation-bar.active.hover.label-text.color": "onSurface", + "md.comp.navigation-bar.active.hover.state-layer.color": "onSurface", + "md.comp.navigation-bar.active.icon.color": "onSecondaryContainer", + "md.comp.navigation-bar.active-indicator.color": "secondaryContainer", + "md.comp.navigation-bar.active-indicator.height": 32.0, + "md.comp.navigation-bar.active-indicator.shape": "md.sys.shape.corner.full", + "md.comp.navigation-bar.active-indicator.width": 64.0, + "md.comp.navigation-bar.active.label-text.color": "onSurface", + "md.comp.navigation-bar.active.pressed.icon.color": "onSecondaryContainer", + "md.comp.navigation-bar.active.pressed.label-text.color": "onSurface", + "md.comp.navigation-bar.active.pressed.state-layer.color": "onSurface", + "md.comp.navigation-bar.container.color": "surface", + "md.comp.navigation-bar.container.elevation": "md.sys.elevation.level2", + "md.comp.navigation-bar.container.height": 80.0, + "md.comp.navigation-bar.container.shape": "md.sys.shape.corner.none", + "md.comp.navigation-bar.container.surface-tint-layer.color": "surfaceTint", + "md.comp.navigation-bar.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.navigation-bar.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.navigation-bar.icon.size": 24.0, + "md.comp.navigation-bar.inactive.focus.icon.color": "onSurface", + "md.comp.navigation-bar.inactive.focus.label-text.color": "onSurface", + "md.comp.navigation-bar.inactive.focus.state-layer.color": "onSurface", + "md.comp.navigation-bar.inactive.hover.icon.color": "onSurface", + "md.comp.navigation-bar.inactive.hover.label-text.color": "onSurface", + "md.comp.navigation-bar.inactive.hover.state-layer.color": "onSurface", + "md.comp.navigation-bar.inactive.icon.color": "onSurfaceVariant", + "md.comp.navigation-bar.inactive.label-text.color": "onSurfaceVariant", + "md.comp.navigation-bar.inactive.pressed.icon.color": "onSurface", + "md.comp.navigation-bar.inactive.pressed.label-text.color": "onSurface", + "md.comp.navigation-bar.inactive.pressed.state-layer.color": "onSurface", + "md.comp.navigation-bar.label-text.text-style": "labelMedium", + "md.comp.navigation-bar.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_drawer.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_drawer.json new file mode 100644 index 0000000000000000000000000000000000000000..c33b58d8d4766c6aeeebedb700d76ad74f7998f3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_drawer.json @@ -0,0 +1,47 @@ +{ + "version": "v0_162", + + "md.comp.navigation-drawer.active.focus.icon.color": "onSecondaryContainer", + "md.comp.navigation-drawer.active.focus.label-text.color": "onSecondaryContainer", + "md.comp.navigation-drawer.active.focus.state-layer.color": "onSecondaryContainer", + "md.comp.navigation-drawer.active.hover.icon.color": "onSecondaryContainer", + "md.comp.navigation-drawer.active.hover.label-text.color": "onSecondaryContainer", + "md.comp.navigation-drawer.active.hover.state-layer.color": "onSecondaryContainer", + "md.comp.navigation-drawer.active.icon.color": "onSecondaryContainer", + "md.comp.navigation-drawer.active-indicator.color": "secondaryContainer", + "md.comp.navigation-drawer.active-indicator.height": 56.0, + "md.comp.navigation-drawer.active-indicator.shape": "md.sys.shape.corner.full", + "md.comp.navigation-drawer.active-indicator.width": 336.0, + "md.comp.navigation-drawer.active.label-text.color": "onSecondaryContainer", + "md.comp.navigation-drawer.active.pressed.icon.color": "onSecondaryContainer", + "md.comp.navigation-drawer.active.pressed.label-text.color": "onSecondaryContainer", + "md.comp.navigation-drawer.active.pressed.state-layer.color": "onSecondaryContainer", + "md.comp.navigation-drawer.bottom.container.shape": "md.sys.shape.corner.large.top", + "md.comp.navigation-drawer.container.color": "surface", + "md.comp.navigation-drawer.container.height": 100.0, + "md.comp.navigation-drawer.container.shape": "md.sys.shape.corner.large.end", + "md.comp.navigation-drawer.container.surface-tint-layer.color": "surfaceTint", + "md.comp.navigation-drawer.container.width": 360.0, + "md.comp.navigation-drawer.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.navigation-drawer.headline.color": "onSurfaceVariant", + "md.comp.navigation-drawer.headline.text-style": "titleSmall", + "md.comp.navigation-drawer.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.navigation-drawer.icon.size": 24.0, + "md.comp.navigation-drawer.inactive.focus.icon.color": "onSurface", + "md.comp.navigation-drawer.inactive.focus.label-text.color": "onSurface", + "md.comp.navigation-drawer.inactive.focus.state-layer.color": "onSurface", + "md.comp.navigation-drawer.inactive.hover.icon.color": "onSurface", + "md.comp.navigation-drawer.inactive.hover.label-text.color": "onSurface", + "md.comp.navigation-drawer.inactive.hover.state-layer.color": "onSurface", + "md.comp.navigation-drawer.inactive.icon.color": "onSurfaceVariant", + "md.comp.navigation-drawer.inactive.label-text.color": "onSurfaceVariant", + "md.comp.navigation-drawer.inactive.pressed.icon.color": "onSurface", + "md.comp.navigation-drawer.inactive.pressed.label-text.color": "onSurface", + "md.comp.navigation-drawer.inactive.pressed.state-layer.color": "onSecondaryContainer", + "md.comp.navigation-drawer.label-text.text-style": "labelLarge", + "md.comp.navigation-drawer.large-badge-label.color": "onSurfaceVariant", + "md.comp.navigation-drawer.large-badge-label.text-style": "labelLarge", + "md.comp.navigation-drawer.modal.container.elevation": "md.sys.elevation.level1", + "md.comp.navigation-drawer.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.navigation-drawer.standard.container.elevation": "md.sys.elevation.level0" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_rail.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_rail.json new file mode 100644 index 0000000000000000000000000000000000000000..23c164b579106dc758840d6d132185532e0393f1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_rail.json @@ -0,0 +1,52 @@ +{ + "version": "v0_162", + + "md.comp.navigation-rail.active.focus.icon.color": "onSecondaryContainer", + "md.comp.navigation-rail.active.focus.label-text.color": "onSurface", + "md.comp.navigation-rail.active.focus.state-layer.color": "onSurface", + "md.comp.navigation-rail.active.hover.icon.color": "onSecondaryContainer", + "md.comp.navigation-rail.active.hover.label-text.color": "onSurface", + "md.comp.navigation-rail.active.hover.state-layer.color": "onSurface", + "md.comp.navigation-rail.active.icon.color": "onSecondaryContainer", + "md.comp.navigation-rail.active-indicator.color": "secondaryContainer", + "md.comp.navigation-rail.active-indicator.height": 32.0, + "md.comp.navigation-rail.active-indicator.shape": "md.sys.shape.corner.full", + "md.comp.navigation-rail.active-indicator.width": 56.0, + "md.comp.navigation-rail.active.label-text.color": "onSurface", + "md.comp.navigation-rail.active.pressed.icon.color": "onSecondaryContainer", + "md.comp.navigation-rail.active.pressed.label-text.color": "onSurface", + "md.comp.navigation-rail.active.pressed.state-layer.color": "onSurface", + "md.comp.navigation-rail.container.color": "surface", + "md.comp.navigation-rail.container.elevation": "md.sys.elevation.level0", + "md.comp.navigation-rail.container.shape": "md.sys.shape.corner.none", + "md.comp.navigation-rail.container.width": 80.0, + "md.comp.navigation-rail.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.navigation-rail.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.navigation-rail.icon.size": 24.0, + "md.comp.navigation-rail.inactive.focus.icon.color": "onSurface", + "md.comp.navigation-rail.inactive.focus.label-text.color": "onSurface", + "md.comp.navigation-rail.inactive.focus.state-layer.color": "onSurface", + "md.comp.navigation-rail.inactive.hover.icon.color": "onSurface", + "md.comp.navigation-rail.inactive.hover.label-text.color": "onSurface", + "md.comp.navigation-rail.inactive.hover.state-layer.color": "onSurface", + "md.comp.navigation-rail.inactive.icon.color": "onSurfaceVariant", + "md.comp.navigation-rail.inactive.label-text.color": "onSurfaceVariant", + "md.comp.navigation-rail.inactive.pressed.icon.color": "onSurface", + "md.comp.navigation-rail.inactive.pressed.label-text.color": "onSurface", + "md.comp.navigation-rail.inactive.pressed.state-layer.color": "onSurface", + "md.comp.navigation-rail.label-text.text-style": "labelMedium", + "md.comp.navigation-rail.menu.focus.icon.color": "onSurface", + "md.comp.navigation-rail.menu.focus.state-layer.color": "onSurface", + "md.comp.navigation-rail.menu.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.navigation-rail.menu.hover.icon.color": "onSurface", + "md.comp.navigation-rail.menu.hover.state-layer.color": "onSurface", + "md.comp.navigation-rail.menu.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.navigation-rail.menu.icon.color": "onSurfaceVariant", + "md.comp.navigation-rail.menu.icon.size": 24.0, + "md.comp.navigation-rail.menu.pressed.icon.color": "onSurface", + "md.comp.navigation-rail.menu.pressed.state-layer.color": "onSurface", + "md.comp.navigation-rail.menu.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.navigation-rail.no-label.active-indicator.height": 56.0, + "md.comp.navigation-rail.no-label.active-indicator.shape": "md.sys.shape.corner.full", + "md.comp.navigation-rail.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_tab_primary.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_tab_primary.json new file mode 100644 index 0000000000000000000000000000000000000000..3dc16c3df1a81f2e27ced814846272b8393f1444 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_tab_primary.json @@ -0,0 +1,43 @@ +{ + "version": "v0_162", + + "md.comp.primary-navigation-tab.active.focus.state-layer.color": "primary", + "md.comp.primary-navigation-tab.active.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.primary-navigation-tab.active.hover.state-layer.color": "primary", + "md.comp.primary-navigation-tab.active.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.primary-navigation-tab.active-indicator.color": "primary", + "md.comp.primary-navigation-tab.active-indicator.height": 3.0, + "md.comp.primary-navigation-tab.active.pressed.state-layer.color": "primary", + "md.comp.primary-navigation-tab.active.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.primary-navigation-tab.container.color": "surface", + "md.comp.primary-navigation-tab.container.elevation": "md.sys.elevation.level0", + "md.comp.primary-navigation-tab.container.height": 48.0, + "md.comp.primary-navigation-tab.container.shape": "md.sys.shape.corner.none", + "md.comp.primary-navigation-tab.divider.color": "surfaceVariant", + "md.comp.primary-navigation-tab.divider.height": 1.0, + "md.comp.primary-navigation-tab.inactive.focus.state-layer.color": "onSurface", + "md.comp.primary-navigation-tab.inactive.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.primary-navigation-tab.inactive.hover.state-layer.color": "onSurface", + "md.comp.primary-navigation-tab.inactive.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.primary-navigation-tab.inactive.pressed.state-layer.color": "primary", + "md.comp.primary-navigation-tab.inactive.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.primary-navigation-tab.with-icon.active.focus.icon.color": "primary", + "md.comp.primary-navigation-tab.with-icon.active.hover.icon.color": "primary", + "md.comp.primary-navigation-tab.with-icon.active.icon.color": "primary", + "md.comp.primary-navigation-tab.with-icon.active.pressed.icon.color": "primary", + "md.comp.primary-navigation-tab.with-icon-and-label-text.container.height": 64.0, + "md.comp.primary-navigation-tab.with-icon.icon.size": 24.0, + "md.comp.primary-navigation-tab.with-icon.inactive.focus.icon.color": "onSurface", + "md.comp.primary-navigation-tab.with-icon.inactive.hover.icon.color": "onSurface", + "md.comp.primary-navigation-tab.with-icon.inactive.icon.color": "onSurfaceVariant", + "md.comp.primary-navigation-tab.with-icon.inactive.pressed.icon.color": "onSurface", + "md.comp.primary-navigation-tab.with-label-text.active.focus.label-text.color": "primary", + "md.comp.primary-navigation-tab.with-label-text.active.hover.label-text.color": "primary", + "md.comp.primary-navigation-tab.with-label-text.active.label-text.color": "primary", + "md.comp.primary-navigation-tab.with-label-text.active.pressed.label-text.color": "primary", + "md.comp.primary-navigation-tab.with-label-text.inactive.focus.label-text.color": "onSurface", + "md.comp.primary-navigation-tab.with-label-text.inactive.hover.label-text.color": "onSurface", + "md.comp.primary-navigation-tab.with-label-text.inactive.label-text.color": "onSurfaceVariant", + "md.comp.primary-navigation-tab.with-label-text.inactive.pressed.label-text.color": "onSurface", + "md.comp.primary-navigation-tab.with-label-text.label-text.text-style": "titleSmall" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_tab_secondary.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_tab_secondary.json new file mode 100644 index 0000000000000000000000000000000000000000..ab773d1cee4840fa306747ae773d52562159ca77 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/navigation_tab_secondary.json @@ -0,0 +1,29 @@ +{ + "version": "v0_162", + + "md.comp.secondary-navigation-tab.active.label-text.color": "onSurface", + "md.comp.secondary-navigation-tab.container.color": "surface", + "md.comp.secondary-navigation-tab.container.elevation": "md.sys.elevation.level0", + "md.comp.secondary-navigation-tab.container.height": 48.0, + "md.comp.secondary-navigation-tab.container.shadow-color": "shadow", + "md.comp.secondary-navigation-tab.container.shape": "md.sys.shape.corner.none", + "md.comp.secondary-navigation-tab.divider.color": "surfaceVariant", + "md.comp.secondary-navigation-tab.divider.height": 1.0, + "md.comp.secondary-navigation-tab.focus.label-text.color": "onSurface", + "md.comp.secondary-navigation-tab.focus.state-layer.color": "onSurface", + "md.comp.secondary-navigation-tab.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.secondary-navigation-tab.hover.label-text.color": "onSurface", + "md.comp.secondary-navigation-tab.hover.state-layer.color": "onSurface", + "md.comp.secondary-navigation-tab.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.secondary-navigation-tab.inactive.label-text.color": "onSurfaceVariant", + "md.comp.secondary-navigation-tab.label-text.text-style": "titleSmall", + "md.comp.secondary-navigation-tab.pressed.label-text.color": "onSurface", + "md.comp.secondary-navigation-tab.pressed.state-layer.color": "onSurface", + "md.comp.secondary-navigation-tab.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.secondary-navigation-tab.with-icon.active.icon.color": "onSurface", + "md.comp.secondary-navigation-tab.with-icon.focus.icon.color": "onSurface", + "md.comp.secondary-navigation-tab.with-icon.hover.icon.color": "onSurface", + "md.comp.secondary-navigation-tab.with-icon.icon.size": 24.0, + "md.comp.secondary-navigation-tab.with-icon.inactive.icon.color": "onSurfaceVariant", + "md.comp.secondary-navigation-tab.with-icon.pressed.icon.color": "onSurface" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/palette.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/palette.json new file mode 100644 index 0000000000000000000000000000000000000000..fbdddbf3a1055d5192b9d947dedf76f107f90167 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/palette.json @@ -0,0 +1,95 @@ +{ + "version": "v0_162", + + "md.ref.palette.black": "0xFF000000", + "md.ref.palette.error0": "0xFF000000", + "md.ref.palette.error10": "0xFF410E0B", + "md.ref.palette.error100": "0xFFFFFFFF", + "md.ref.palette.error20": "0xFF601410", + "md.ref.palette.error30": "0xFF8C1D18", + "md.ref.palette.error40": "0xFFB3261E", + "md.ref.palette.error50": "0xFFDC362E", + "md.ref.palette.error60": "0xFFE46962", + "md.ref.palette.error70": "0xFFEC928E", + "md.ref.palette.error80": "0xFFF2B8B5", + "md.ref.palette.error90": "0xFFF9DEDC", + "md.ref.palette.error95": "0xFFFCEEEE", + "md.ref.palette.error99": "0xFFFFFBF9", + "md.ref.palette.neutral0": "0xFF000000", + "md.ref.palette.neutral10": "0xFF1C1B1F", + "md.ref.palette.neutral100": "0xFFFFFFFF", + "md.ref.palette.neutral12": "0xFF201F23", + "md.ref.palette.neutral17": "0xFF2B292D", + "md.ref.palette.neutral20": "0xFF313033", + "md.ref.palette.neutral22": "0xFF313033", + "md.ref.palette.neutral24": "0xFF313033", + "md.ref.palette.neutral30": "0xFF484649", + "md.ref.palette.neutral4": "0xFF0E0E11", + "md.ref.palette.neutral40": "0xFF605D62", + "md.ref.palette.neutral50": "0xFF787579", + "md.ref.palette.neutral6": "0xFF141317", + "md.ref.palette.neutral60": "0xFF939094", + "md.ref.palette.neutral70": "0xFFAEAAAE", + "md.ref.palette.neutral80": "0xFFC9C5CA", + "md.ref.palette.neutral87": "0xFFDDD8DD", + "md.ref.palette.neutral90": "0xFFE6E1E5", + "md.ref.palette.neutral92": "0xFFECE7EC", + "md.ref.palette.neutral94": "0xFFF1ECF1", + "md.ref.palette.neutral95": "0xFFF4EFF4", + "md.ref.palette.neutral96": "0xFFF7F2F7", + "md.ref.palette.neutral98": "0xFFFDF8FD", + "md.ref.palette.neutral99": "0xFFFFFBFE", + "md.ref.palette.neutral-variant0": "0xFF000000", + "md.ref.palette.neutral-variant10": "0xFF1D1A22", + "md.ref.palette.neutral-variant100": "0xFFFFFFFF", + "md.ref.palette.neutral-variant20": "0xFF322F37", + "md.ref.palette.neutral-variant30": "0xFF49454F", + "md.ref.palette.neutral-variant40": "0xFF605D66", + "md.ref.palette.neutral-variant50": "0xFF79747E", + "md.ref.palette.neutral-variant60": "0xFF938F99", + "md.ref.palette.neutral-variant70": "0xFFAEA9B4", + "md.ref.palette.neutral-variant80": "0xFFCAC4D0", + "md.ref.palette.neutral-variant90": "0xFFE7E0EC", + "md.ref.palette.neutral-variant95": "0xFFF5EEFA", + "md.ref.palette.neutral-variant99": "0xFFFFFBFE", + "md.ref.palette.primary0": "0xFF000000", + "md.ref.palette.primary10": "0xFF21005D", + "md.ref.palette.primary100": "0xFFFFFFFF", + "md.ref.palette.primary20": "0xFF381E72", + "md.ref.palette.primary30": "0xFF4F378B", + "md.ref.palette.primary40": "0xFF6750A4", + "md.ref.palette.primary50": "0xFF7F67BE", + "md.ref.palette.primary60": "0xFF9A82DB", + "md.ref.palette.primary70": "0xFFB69DF8", + "md.ref.palette.primary80": "0xFFD0BCFF", + "md.ref.palette.primary90": "0xFFEADDFF", + "md.ref.palette.primary95": "0xFFF6EDFF", + "md.ref.palette.primary99": "0xFFFFFBFE", + "md.ref.palette.secondary0": "0xFF000000", + "md.ref.palette.secondary10": "0xFF1D192B", + "md.ref.palette.secondary100": "0xFFFFFFFF", + "md.ref.palette.secondary20": "0xFF332D41", + "md.ref.palette.secondary30": "0xFF4A4458", + "md.ref.palette.secondary40": "0xFF625B71", + "md.ref.palette.secondary50": "0xFF7A7289", + "md.ref.palette.secondary60": "0xFF958DA5", + "md.ref.palette.secondary70": "0xFFB0A7C0", + "md.ref.palette.secondary80": "0xFFCCC2DC", + "md.ref.palette.secondary90": "0xFFE8DEF8", + "md.ref.palette.secondary95": "0xFFF6EDFF", + "md.ref.palette.secondary99": "0xFFFFFBFE", + "md.ref.palette.tertiary0": "0xFF000000", + "md.ref.palette.tertiary10": "0xFF31111D", + "md.ref.palette.tertiary100": "0xFFFFFFFF", + "md.ref.palette.tertiary20": "0xFF492532", + "md.ref.palette.tertiary30": "0xFF633B48", + "md.ref.palette.tertiary40": "0xFF7D5260", + "md.ref.palette.tertiary50": "0xFF986977", + "md.ref.palette.tertiary60": "0xFFB58392", + "md.ref.palette.tertiary70": "0xFFD29DAC", + "md.ref.palette.tertiary80": "0xFFEFB8C8", + "md.ref.palette.tertiary90": "0xFFFFD8E4", + "md.ref.palette.tertiary95": "0xFFFFECF1", + "md.ref.palette.tertiary99": "0xFFFFFBFA", + "md.ref.palette.white": "0xFFFFFFFF" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/progress_indicator.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/progress_indicator.json new file mode 100644 index 0000000000000000000000000000000000000000..b97b9891a07212983ac3e62f0993ff7cf0b7aeb8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/progress_indicator.json @@ -0,0 +1,14 @@ +{ + "version": "v4_1_0", + + "md.comp.progress-indicator.active-indicator.color": "primary", + "md.comp.progress-indicator.active-indicator.shape": "md.sys.shape.corner.full", + "md.comp.progress-indicator.active-indicator.thickness": 4.0, + "md.comp.progress-indicator.active-indicator-track-space": 4.0, + "md.comp.progress-indicator.stop-indicator.color": "primary", + "md.comp.progress-indicator.stop-indicator.shape": 4.0, + "md.comp.progress-indicator.stop-indicator.size": 4.0, + "md.comp.progress-indicator.track.color": "secondaryContainer", + "md.comp.progress-indicator.track.shape": "md.sys.shape.corner.full", + "md.comp.progress-indicator.track.thickness": 4.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/progress_indicator_circular.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/progress_indicator_circular.json new file mode 100644 index 0000000000000000000000000000000000000000..0a78f60ad4fc19a33049d89e69f4311f0a60f1ac --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/progress_indicator_circular.json @@ -0,0 +1,12 @@ +{ + "version": "v0_162", + + "md.comp.circular-progress-indicator.active-indicator.color": "primary", + "md.comp.circular-progress-indicator.active-indicator.shape": "md.sys.shape.corner.none", + "md.comp.circular-progress-indicator.active-indicator.width": 4.0, + "md.comp.circular-progress-indicator.four-color.active-indicator.four.color": "tertiaryContainer", + "md.comp.circular-progress-indicator.four-color.active-indicator.one.color": "primary", + "md.comp.circular-progress-indicator.four-color.active-indicator.three.color": "tertiary", + "md.comp.circular-progress-indicator.four-color.active-indicator.two.color": "primaryContainer", + "md.comp.circular-progress-indicator.size": 48.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/progress_indicator_linear.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/progress_indicator_linear.json new file mode 100644 index 0000000000000000000000000000000000000000..47aaa9b06f659ec9a7f09d594d764026e1055df1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/progress_indicator_linear.json @@ -0,0 +1,14 @@ +{ + "version": "v0_162", + + "md.comp.linear-progress-indicator.active-indicator.color": "primary", + "md.comp.linear-progress-indicator.active-indicator.height": 4.0, + "md.comp.linear-progress-indicator.active-indicator.shape": "md.sys.shape.corner.none", + "md.comp.linear-progress-indicator.four-color.active-indicator.four.color": "tertiaryContainer", + "md.comp.linear-progress-indicator.four-color.active-indicator.one.color": "primary", + "md.comp.linear-progress-indicator.four-color.active-indicator.three.color": "tertiary", + "md.comp.linear-progress-indicator.four-color.active-indicator.two.color": "primaryContainer", + "md.comp.linear-progress-indicator.track.color": "surfaceVariant", + "md.comp.linear-progress-indicator.track.height": 4.0, + "md.comp.linear-progress-indicator.track.shape": "md.sys.shape.corner.none" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/radio_button.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/radio_button.json new file mode 100644 index 0000000000000000000000000000000000000000..b42e69620696eca315ce49a7c0141810a1fe572d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/radio_button.json @@ -0,0 +1,30 @@ +{ + "version": "v0_162", + + "md.comp.radio-button.disabled.selected.icon.color": "onSurface", + "md.comp.radio-button.disabled.selected.icon.opacity": 0.38, + "md.comp.radio-button.disabled.unselected.icon.color": "onSurface", + "md.comp.radio-button.disabled.unselected.icon.opacity": 0.38, + "md.comp.radio-button.icon.size": 20.0, + "md.comp.radio-button.selected.focus.icon.color": "primary", + "md.comp.radio-button.selected.focus.state-layer.color": "primary", + "md.comp.radio-button.selected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.radio-button.selected.hover.icon.color": "primary", + "md.comp.radio-button.selected.hover.state-layer.color": "primary", + "md.comp.radio-button.selected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.radio-button.selected.icon.color": "primary", + "md.comp.radio-button.selected.pressed.icon.color": "primary", + "md.comp.radio-button.selected.pressed.state-layer.color": "onSurface", + "md.comp.radio-button.selected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.radio-button.state-layer.size": 40.0, + "md.comp.radio-button.unselected.focus.icon.color": "onSurface", + "md.comp.radio-button.unselected.focus.state-layer.color": "onSurface", + "md.comp.radio-button.unselected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.radio-button.unselected.hover.icon.color": "onSurface", + "md.comp.radio-button.unselected.hover.state-layer.color": "onSurface", + "md.comp.radio-button.unselected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.radio-button.unselected.icon.color": "onSurfaceVariant", + "md.comp.radio-button.unselected.pressed.icon.color": "onSurface", + "md.comp.radio-button.unselected.pressed.state-layer.color": "primary", + "md.comp.radio-button.unselected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/search_bar.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/search_bar.json new file mode 100644 index 0000000000000000000000000000000000000000..8c3ba0c1d38d447ffed6e41679e4ae7676c1c143 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/search_bar.json @@ -0,0 +1,23 @@ +{ + "version": "v0_158", + + "md.comp.search-bar.avatar.shape": "md.sys.shape.corner.full", + "md.comp.search-bar.avatar.size": 30.0, + "md.comp.search-bar.container.color": "surface", + "md.comp.search-bar.container.elevation": "md.sys.elevation.level3", + "md.comp.search-bar.container.height": 56.0, + "md.comp.search-bar.container.shape": "md.sys.shape.corner.full", + "md.comp.search-bar.container.surface-tint-layer.color": "surfaceTint", + "md.comp.search-bar.hover.state-layer.color": "onSurface", + "md.comp.search-bar.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.search-bar.hover.supporting-text.color": "onSurfaceVariant", + "md.comp.search-bar.input-text.color": "onSurface", + "md.comp.search-bar.input-text.text-style": "bodyLarge", + "md.comp.search-bar.leading-icon.color": "onSurface", + "md.comp.search-bar.pressed.state-layer.color": "onSurface", + "md.comp.search-bar.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.search-bar.pressed.supporting-text.color": "onSurfaceVariant", + "md.comp.search-bar.supporting-text.color": "onSurfaceVariant", + "md.comp.search-bar.supporting-text.text-style": "bodyLarge", + "md.comp.search-bar.trailing-icon.color": "onSurfaceVariant" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/search_view.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/search_view.json new file mode 100644 index 0000000000000000000000000000000000000000..506f5a2a15ad982ff68a61de95d500b4bf592ca1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/search_view.json @@ -0,0 +1,18 @@ +{ + "version": "v0_158", + + "md.comp.search-view.container.color": "surface", + "md.comp.search-view.container.elevation": "md.sys.elevation.level3", + "md.comp.search-view.container.surface-tint-layer.color": "surfaceTint", + "md.comp.search-view.divider.color": "outline", + "md.comp.search-view.docked.container.shape": "md.sys.shape.corner.extra-large", + "md.comp.search-view.docked.header.container.height": 56.0, + "md.comp.search-view.full-screen.container.shape": "md.sys.shape.corner.none", + "md.comp.search-view.full-screen.header.container.height": 72.0, + "md.comp.search-view.header.input-text.color": "onSurface", + "md.comp.search-view.header.input-text.text-style": "bodyLarge", + "md.comp.search-view.header.leading-icon.color": "onSurface", + "md.comp.search-view.header.supporting-text.color": "onSurfaceVariant", + "md.comp.search-view.header.supporting-text.text-style": "bodyLarge", + "md.comp.search-view.header.trailing-icon.color": "onSurfaceVariant" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/segmented_button_outlined.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/segmented_button_outlined.json new file mode 100644 index 0000000000000000000000000000000000000000..b5aed0515a9be00ee7d7ae55b239ef7fbe656f40 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/segmented_button_outlined.json @@ -0,0 +1,42 @@ +{ + "version": "v0_162", + + "md.comp.outlined-segmented-button.container.height": 40.0, + "md.comp.outlined-segmented-button.disabled.icon.color": "onSurface", + "md.comp.outlined-segmented-button.disabled.icon.opacity": 0.38, + "md.comp.outlined-segmented-button.disabled.label-text.color": "onSurface", + "md.comp.outlined-segmented-button.disabled.label-text.opacity": 0.38, + "md.comp.outlined-segmented-button.disabled.outline.color": "onSurface", + "md.comp.outlined-segmented-button.disabled.outline.opacity": 0.12, + "md.comp.outlined-segmented-button.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.outlined-segmented-button.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.outlined-segmented-button.label-text.text-style": "labelLarge", + "md.comp.outlined-segmented-button.outline.color": "outline", + "md.comp.outlined-segmented-button.outline.width": 1.0, + "md.comp.outlined-segmented-button.pressed.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.outlined-segmented-button.selected.container.color": "secondaryContainer", + "md.comp.outlined-segmented-button.selected.focus.icon.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.selected.focus.label-text.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.selected.focus.state-layer.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.selected.hover.icon.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.selected.hover.label-text.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.selected.hover.state-layer.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.selected.label-text.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.selected.pressed.icon.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.selected.pressed.label-text.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.selected.pressed.state-layer.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.selected.with-icon.icon.color": "onSecondaryContainer", + "md.comp.outlined-segmented-button.shape": "md.sys.shape.corner.full", + "md.comp.outlined-segmented-button.unselected.focus.icon.color": "onSurface", + "md.comp.outlined-segmented-button.unselected.focus.label-text.color": "onSurface", + "md.comp.outlined-segmented-button.unselected.focus.state-layer.color": "onSurface", + "md.comp.outlined-segmented-button.unselected.hover.icon.color": "onSurface", + "md.comp.outlined-segmented-button.unselected.hover.label-text.color": "onSurface", + "md.comp.outlined-segmented-button.unselected.hover.state-layer.color": "onSurface", + "md.comp.outlined-segmented-button.unselected.label-text.color": "onSurface", + "md.comp.outlined-segmented-button.unselected.pressed.icon.color": "onSurface", + "md.comp.outlined-segmented-button.unselected.pressed.label-text.color": "onSurface", + "md.comp.outlined-segmented-button.unselected.pressed.state-layer.color": "onSurface", + "md.comp.outlined-segmented-button.unselected.with-icon.icon.color": "onSurface", + "md.comp.outlined-segmented-button.with-icon.icon.size": 18.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/shape.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/shape.json new file mode 100644 index 0000000000000000000000000000000000000000..988cd5be1dcb6ac5c28426611fbe0cc7d9b14eef --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/shape.json @@ -0,0 +1,95 @@ +{ + "version": "v0_162", + + "md.sys.shape.corner.extra-large": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 28.0, + "topRight": 28.0, + "bottomLeft": 28.0, + "bottomRight": 28.0 + }, + + "md.sys.shape.corner.extra-large.top": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 28.0, + "topRight": 28.0, + "bottomLeft": 0.0, + "bottomRight": 0.0 + }, + + "md.sys.shape.corner.extra-small": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 4.0, + "topRight": 4.0, + "bottomLeft": 4.0, + "bottomRight": 4.0 + }, + + "md.sys.shape.corner.extra-small.top": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 4.0, + "topRight": 4.0, + "bottomLeft": 0.0, + "bottomRight": 0.0 + }, + + "md.sys.shape.corner.full": { + "family": "SHAPE_FAMILY_CIRCULAR" + }, + + "md.sys.shape.corner.large": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 16.0, + "topRight": 16.0, + "bottomLeft": 16.0, + "bottomRight": 16.0 + }, + + "md.sys.shape.corner.large.end": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 0.0, + "topRight": 16.0, + "bottomLeft": 0.0, + "bottomRight": 16.0 + }, + + "md.sys.shape.corner.large.start": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 16.0, + "topRight": 0.0, + "bottomLeft": 16.0, + "bottomRight": 0.0 + }, + + "md.sys.shape.corner.large.top": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 16.0, + "topRight": 16.0, + "bottomLeft": 0.0, + "bottomRight": 0.0 + }, + + "md.sys.shape.corner.medium": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 12.0, + "topRight": 12.0, + "bottomLeft": 12.0, + "bottomRight": 12.0 + }, + + "md.sys.shape.corner.none": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 0.0, + "topRight": 0.0, + "bottomLeft": 0.0, + "bottomRight": 0.0 + }, + + "md.sys.shape.corner.small": { + "family": "SHAPE_FAMILY_ROUNDED_CORNERS", + "topLeft": 8.0, + "topRight": 8.0, + "bottomLeft": 8.0, + "bottomRight": 8.0 + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/sheet_bottom.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/sheet_bottom.json new file mode 100644 index 0000000000000000000000000000000000000000..53e4c227e12336a6dcd2a36f3dcd350d080647a3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/sheet_bottom.json @@ -0,0 +1,14 @@ +{ + "version": "v0_162", + + "md.comp.sheet.bottom.docked.container.color": "surface", + "md.comp.sheet.bottom.docked.container.shape": "md.sys.shape.corner.extra-large.top", + "md.comp.sheet.bottom.docked.container.surface-tint-layer.color": "surfaceTint", + "md.comp.sheet.bottom.docked.drag-handle.color": "onSurfaceVariant", + "md.comp.sheet.bottom.docked.drag-handle.height": 4.0, + "md.comp.sheet.bottom.docked.drag-handle.opacity": 0.4, + "md.comp.sheet.bottom.docked.drag-handle.width": 32.0, + "md.comp.sheet.bottom.docked.minimized.container.shape": "md.sys.shape.corner.none", + "md.comp.sheet.bottom.docked.modal.container.elevation": "md.sys.elevation.level1", + "md.comp.sheet.bottom.docked.standard.container.elevation": "md.sys.elevation.level1" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/slider.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/slider.json new file mode 100644 index 0000000000000000000000000000000000000000..f7d7579e273ed0a830886359d0cb027d867f6d37 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/slider.json @@ -0,0 +1,49 @@ +{ + "version": "v0_162", + + "md.comp.slider.active.track.color": "primary", + "md.comp.slider.active.track.height": 4.0, + "md.comp.slider.active.track.shape": "md.sys.shape.corner.full", + "md.comp.slider.disabled.active.track.color": "onSurface", + "md.comp.slider.disabled.active.track.opacity": 0.38, + "md.comp.slider.disabled.handle.color": "onSurface", + "md.comp.slider.disabled.handle.elevation": "md.sys.elevation.level0", + "md.comp.slider.disabled.handle.opacity": 0.38, + "md.comp.slider.disabled.inactive.track.color": "onSurface", + "md.comp.slider.disabled.inactive.track.opacity": 0.12, + "md.comp.slider.focus.handle.color": "primary", + "md.comp.slider.focus.state-layer.color": "primary", + "md.comp.slider.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.slider.handle.color": "primary", + "md.comp.slider.handle.elevation": "md.sys.elevation.level1", + "md.comp.slider.handle.height": 20.0, + "md.comp.slider.handle.shadow-color": "shadow", + "md.comp.slider.handle.shape": "md.sys.shape.corner.full", + "md.comp.slider.handle.width": 20.0, + "md.comp.slider.hover.handle.color": "primary", + "md.comp.slider.hover.state-layer.color": "primary", + "md.comp.slider.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.slider.inactive.track.color": "surfaceVariant", + "md.comp.slider.inactive.track.height": 4.0, + "md.comp.slider.inactive.track.shape": "md.sys.shape.corner.full", + "md.comp.slider.label.container.color": "primary", + "md.comp.slider.label.container.elevation": "md.sys.elevation.level0", + "md.comp.slider.label.container.height": 28.0, + "md.comp.slider.label.label-text.color": "onPrimary", + "md.comp.slider.label.label-text.text-style": "labelMedium", + "md.comp.slider.pressed.handle.color": "primary", + "md.comp.slider.pressed.state-layer.color": "primary", + "md.comp.slider.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.slider.state-layer.size": 40.0, + "md.comp.slider.track.elevation": "md.sys.elevation.level0", + "md.comp.slider.with-overlap.handle.outline.color": "onPrimary", + "md.comp.slider.with-overlap.handle.outline.width": 1.0, + "md.comp.slider.with-tick-marks.active.container.color": "onPrimary", + "md.comp.slider.with-tick-marks.active.container.opacity": 0.38, + "md.comp.slider.with-tick-marks.container.shape": "md.sys.shape.corner.full", + "md.comp.slider.with-tick-marks.container.size": 2.0, + "md.comp.slider.with-tick-marks.disabled.container.color": "onSurface", + "md.comp.slider.with-tick-marks.disabled.container.opacity": 0.38, + "md.comp.slider.with-tick-marks.inactive.container.color": "onSurfaceVariant", + "md.comp.slider.with-tick-marks.inactive.container.opacity": 0.38 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/snackbar.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/snackbar.json new file mode 100644 index 0000000000000000000000000000000000000000..79e059815bf82f04eaaf3ce8df24d13544b52def --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/snackbar.json @@ -0,0 +1,34 @@ +{ + "version": "v0_162", + + "md.comp.snackbar.action.focus.label-text.color": "inversePrimary", + "md.comp.snackbar.action.focus.state-layer.color": "inversePrimary", + "md.comp.snackbar.action.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.snackbar.action.hover.label-text.color": "inversePrimary", + "md.comp.snackbar.action.hover.state-layer.color": "inversePrimary", + "md.comp.snackbar.action.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.snackbar.action.label-text.color": "inversePrimary", + "md.comp.snackbar.action.label-text.text-style": "labelLarge", + "md.comp.snackbar.action.pressed.label-text.color": "inversePrimary", + "md.comp.snackbar.action.pressed.state-layer.color": "inversePrimary", + "md.comp.snackbar.action.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.snackbar.container.color": "inverseSurface", + "md.comp.snackbar.container.elevation": "md.sys.elevation.level3", + "md.comp.snackbar.container.shadow-color": "shadow", + "md.comp.snackbar.container.shape": "md.sys.shape.corner.extra-small", + "md.comp.snackbar.icon.color": "onInverseSurface", + "md.comp.snackbar.icon.focus.icon.color": "onInverseSurface", + "md.comp.snackbar.icon.focus.state-layer.color": "onInverseSurface", + "md.comp.snackbar.icon.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.snackbar.icon.hover.icon.color": "onInverseSurface", + "md.comp.snackbar.icon.hover.state-layer.color": "onInverseSurface", + "md.comp.snackbar.icon.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.snackbar.icon.pressed.icon.color": "onInverseSurface", + "md.comp.snackbar.icon.pressed.state-layer.color": "onInverseSurface", + "md.comp.snackbar.icon.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.snackbar.icon.size": 24.0, + "md.comp.snackbar.supporting-text.color": "onInverseSurface", + "md.comp.snackbar.supporting-text.text-style": "bodyMedium", + "md.comp.snackbar.with-single-line.container.height": 48.0, + "md.comp.snackbar.with-two-lines.container.height": 68.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/state.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/state.json new file mode 100644 index 0000000000000000000000000000000000000000..e7bb1ce8063e3c28abaf7dcab0e4d3b815da6eed --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/state.json @@ -0,0 +1,8 @@ +{ + "version": "v0_162", + + "md.sys.state.dragged.state-layer-opacity": 0.16, + "md.sys.state.focus.state-layer-opacity": 0.12, + "md.sys.state.hover.state-layer-opacity": 0.08, + "md.sys.state.pressed.state-layer-opacity": 0.12 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/switch.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/switch.json new file mode 100644 index 0000000000000000000000000000000000000000..c8c5b511065d8928ade8e6d7a25468b6cda4736e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/switch.json @@ -0,0 +1,73 @@ +{ + "version": "v0_162", + + "md.comp.switch.disabled.selected.handle.color": "surface", + "md.comp.switch.disabled.selected.handle.opacity": 1.0, + "md.comp.switch.disabled.selected.icon.color": "onSurface", + "md.comp.switch.disabled.selected.icon.opacity": 0.38, + "md.comp.switch.disabled.selected.track.color": "onSurface", + "md.comp.switch.disabled.track.opacity": 0.12, + "md.comp.switch.disabled.unselected.handle.color": "onSurface", + "md.comp.switch.disabled.unselected.handle.opacity": 0.38, + "md.comp.switch.disabled.unselected.icon.color": "surfaceVariant", + "md.comp.switch.disabled.unselected.icon.opacity": 0.38, + "md.comp.switch.disabled.unselected.track.color": "surfaceVariant", + "md.comp.switch.disabled.unselected.track.outline.color": "onSurface", + "md.comp.switch.handle.shape": "md.sys.shape.corner.full", + "md.comp.switch.pressed.handle.height": 28.0, + "md.comp.switch.pressed.handle.width": 28.0, + "md.comp.switch.selected.focus.handle.color": "primaryContainer", + "md.comp.switch.selected.focus.icon.color": "onPrimaryContainer", + "md.comp.switch.selected.focus.state-layer.color": "primary", + "md.comp.switch.selected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.switch.selected.focus.track.color": "primary", + "md.comp.switch.selected.handle.color": "onPrimary", + "md.comp.switch.selected.handle.height": 24.0, + "md.comp.switch.selected.handle.width": 24.0, + "md.comp.switch.selected.hover.handle.color": "primaryContainer", + "md.comp.switch.selected.hover.icon.color": "onPrimaryContainer", + "md.comp.switch.selected.hover.state-layer.color": "primary", + "md.comp.switch.selected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.switch.selected.hover.track.color": "primary", + "md.comp.switch.selected.icon.color": "onPrimaryContainer", + "md.comp.switch.selected.icon.size": 16.0, + "md.comp.switch.selected.pressed.handle.color": "primaryContainer", + "md.comp.switch.selected.pressed.icon.color": "onPrimaryContainer", + "md.comp.switch.selected.pressed.state-layer.color": "primary", + "md.comp.switch.selected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.switch.selected.pressed.track.color": "primary", + "md.comp.switch.selected.track.color": "primary", + "md.comp.switch.state-layer.shape": "md.sys.shape.corner.full", + "md.comp.switch.state-layer.size": 40.0, + "md.comp.switch.track.height": 32.0, + "md.comp.switch.track.outline.width": 2.0, + "md.comp.switch.track.shape": "md.sys.shape.corner.full", + "md.comp.switch.track.width": 52.0, + "md.comp.switch.unselected.focus.handle.color": "onSurfaceVariant", + "md.comp.switch.unselected.focus.icon.color": "surfaceVariant", + "md.comp.switch.unselected.focus.state-layer.color": "onSurface", + "md.comp.switch.unselected.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.switch.unselected.focus.track.color": "surfaceVariant", + "md.comp.switch.unselected.focus.track.outline.color": "outline", + "md.comp.switch.unselected.handle.color": "outline", + "md.comp.switch.unselected.handle.height": 16.0, + "md.comp.switch.unselected.handle.width": 16.0, + "md.comp.switch.unselected.hover.handle.color": "onSurfaceVariant", + "md.comp.switch.unselected.hover.icon.color": "surfaceVariant", + "md.comp.switch.unselected.hover.state-layer.color": "onSurface", + "md.comp.switch.unselected.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.switch.unselected.hover.track.color": "surfaceVariant", + "md.comp.switch.unselected.hover.track.outline.color": "outline", + "md.comp.switch.unselected.icon.color": "surfaceVariant", + "md.comp.switch.unselected.icon.size": 16.0, + "md.comp.switch.unselected.pressed.handle.color": "onSurfaceVariant", + "md.comp.switch.unselected.pressed.icon.color": "surfaceVariant", + "md.comp.switch.unselected.pressed.state-layer.color": "onSurface", + "md.comp.switch.unselected.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.switch.unselected.pressed.track.color": "surfaceVariant", + "md.comp.switch.unselected.pressed.track.outline.color": "outline", + "md.comp.switch.unselected.track.color": "surfaceVariant", + "md.comp.switch.unselected.track.outline.color": "outline", + "md.comp.switch.with-icon.handle.height": 24.0, + "md.comp.switch.with-icon.handle.width": 24.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/text_field_filled.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/text_field_filled.json new file mode 100644 index 0000000000000000000000000000000000000000..f0f2f2f393590b56b6262184bba267697ebb7e0c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/text_field_filled.json @@ -0,0 +1,74 @@ +{ + "version": "v0_162", + + "md.comp.filled-text-field.active-indicator.color": "onSurfaceVariant", + "md.comp.filled-text-field.active-indicator.height": 1.0, + "md.comp.filled-text-field.caret.color": "primary", + "md.comp.filled-text-field.container.color": "surfaceVariant", + "md.comp.filled-text-field.container.shape": "md.sys.shape.corner.extra-small.top", + "md.comp.filled-text-field.disabled.active-indicator.color": "onSurface", + "md.comp.filled-text-field.disabled.active-indicator.height": 1.0, + "md.comp.filled-text-field.disabled.active-indicator.opacity": 0.38, + "md.comp.filled-text-field.disabled.container.color": "onSurface", + "md.comp.filled-text-field.disabled.container.opacity": 0.04, + "md.comp.filled-text-field.disabled.input-text.color": "onSurface", + "md.comp.filled-text-field.disabled.input-text.opacity": 0.38, + "md.comp.filled-text-field.disabled.label-text.color": "onSurface", + "md.comp.filled-text-field.disabled.label-text.opacity": 0.38, + "md.comp.filled-text-field.disabled.leading-icon.color": "onSurface", + "md.comp.filled-text-field.disabled.leading-icon.opacity": 0.38, + "md.comp.filled-text-field.disabled.supporting-text.color": "onSurface", + "md.comp.filled-text-field.disabled.supporting-text.opacity": 0.38, + "md.comp.filled-text-field.disabled.trailing-icon.color": "onSurface", + "md.comp.filled-text-field.disabled.trailing-icon.opacity": 0.38, + "md.comp.filled-text-field.error.active-indicator.color": "error", + "md.comp.filled-text-field.error.focus.active-indicator.color": "error", + "md.comp.filled-text-field.error.focus.caret.color": "error", + "md.comp.filled-text-field.error.focus.input-text.color": "onSurface", + "md.comp.filled-text-field.error.focus.label-text.color": "error", + "md.comp.filled-text-field.error.focus.leading-icon.color": "onSurfaceVariant", + "md.comp.filled-text-field.error.focus.supporting-text.color": "error", + "md.comp.filled-text-field.error.focus.trailing-icon.color": "error", + "md.comp.filled-text-field.error.hover.active-indicator.color": "onErrorContainer", + "md.comp.filled-text-field.error.hover.input-text.color": "onSurface", + "md.comp.filled-text-field.error.hover.label-text.color": "onErrorContainer", + "md.comp.filled-text-field.error.hover.leading-icon.color": "onSurfaceVariant", + "md.comp.filled-text-field.error.hover.state-layer.color": "onSurface", + "md.comp.filled-text-field.error.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.filled-text-field.error.hover.supporting-text.color": "error", + "md.comp.filled-text-field.error.hover.trailing-icon.color": "onErrorContainer", + "md.comp.filled-text-field.error.input-text.color": "onSurface", + "md.comp.filled-text-field.error.label-text.color": "error", + "md.comp.filled-text-field.error.leading-icon.color": "onSurfaceVariant", + "md.comp.filled-text-field.error.supporting-text.color": "error", + "md.comp.filled-text-field.error.trailing-icon.color": "error", + "md.comp.filled-text-field.focus.active-indicator.color": "primary", + "md.comp.filled-text-field.focus.active-indicator.height": 2.0, + "md.comp.filled-text-field.focus.input-text.color": "onSurface", + "md.comp.filled-text-field.focus.label-text.color": "primary", + "md.comp.filled-text-field.focus.leading-icon.color": "onSurfaceVariant", + "md.comp.filled-text-field.focus.supporting-text.color": "onSurfaceVariant", + "md.comp.filled-text-field.focus.trailing-icon.color": "onSurfaceVariant", + "md.comp.filled-text-field.hover.active-indicator.color": "onSurface", + "md.comp.filled-text-field.hover.active-indicator.height": 1.0, + "md.comp.filled-text-field.hover.input-text.color": "onSurface", + "md.comp.filled-text-field.hover.label-text.color": "onSurfaceVariant", + "md.comp.filled-text-field.hover.leading-icon.color": "onSurfaceVariant", + "md.comp.filled-text-field.hover.state-layer.color": "onSurface", + "md.comp.filled-text-field.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.filled-text-field.hover.supporting-text.color": "onSurfaceVariant", + "md.comp.filled-text-field.hover.trailing-icon.color": "onSurfaceVariant", + "md.comp.filled-text-field.input-text.color": "onSurface", + "md.comp.filled-text-field.input-text.text-style": "bodyLarge", + "md.comp.filled-text-field.input-text.placeholder.color": "onSurfaceVariant", + "md.comp.filled-text-field.input-text.prefix.color": "onSurfaceVariant", + "md.comp.filled-text-field.input-text.suffix.color": "onSurfaceVariant", + "md.comp.filled-text-field.label-text.color": "onSurfaceVariant", + "md.comp.filled-text-field.label-text.text-style": "bodyLarge", + "md.comp.filled-text-field.leading-icon.color": "onSurfaceVariant", + "md.comp.filled-text-field.leading-icon.size": 24.0, + "md.comp.filled-text-field.supporting-text.color": "onSurfaceVariant", + "md.comp.filled-text-field.supporting-text.text-style": "bodySmall", + "md.comp.filled-text-field.trailing-icon.color": "onSurfaceVariant", + "md.comp.filled-text-field.trailing-icon.size": 24.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/text_field_outlined.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/text_field_outlined.json new file mode 100644 index 0000000000000000000000000000000000000000..26f442d47d7ce233c86db616de85793f4be67b6c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/text_field_outlined.json @@ -0,0 +1,67 @@ +{ + "version": "v0_162", + + "md.comp.outlined-text-field.caret.color": "primary", + "md.comp.outlined-text-field.container.shape": "md.sys.shape.corner.extra-small", + "md.comp.outlined-text-field.disabled.input-text.color": "onSurface", + "md.comp.outlined-text-field.disabled.input-text.opacity": 0.38, + "md.comp.outlined-text-field.disabled.label-text.color": "onSurface", + "md.comp.outlined-text-field.disabled.label-text.opacity": 0.38, + "md.comp.outlined-text-field.disabled.leading-icon.color": "onSurface", + "md.comp.outlined-text-field.disabled.leading-icon.opacity": 0.38, + "md.comp.outlined-text-field.disabled.outline.color": "onSurface", + "md.comp.outlined-text-field.disabled.outline.opacity": 0.12, + "md.comp.outlined-text-field.disabled.outline.width": 1.0, + "md.comp.outlined-text-field.disabled.supporting-text.color": "onSurface", + "md.comp.outlined-text-field.disabled.supporting-text.opacity": 0.38, + "md.comp.outlined-text-field.disabled.trailing-icon.color": "onSurface", + "md.comp.outlined-text-field.disabled.trailing-icon.opacity": 0.38, + "md.comp.outlined-text-field.error.focus.caret.color": "error", + "md.comp.outlined-text-field.error.focus.input-text.color": "onSurface", + "md.comp.outlined-text-field.error.focus.label-text.color": "error", + "md.comp.outlined-text-field.error.focus.leading-icon.color": "onSurfaceVariant", + "md.comp.outlined-text-field.error.focus.outline.color": "error", + "md.comp.outlined-text-field.error.focus.supporting-text.color": "error", + "md.comp.outlined-text-field.error.focus.trailing-icon.color": "error", + "md.comp.outlined-text-field.error.hover.input-text.color": "onSurface", + "md.comp.outlined-text-field.error.hover.label-text.color": "onErrorContainer", + "md.comp.outlined-text-field.error.hover.leading-icon.color": "onSurfaceVariant", + "md.comp.outlined-text-field.error.hover.outline.color": "onErrorContainer", + "md.comp.outlined-text-field.error.hover.supporting-text.color": "error", + "md.comp.outlined-text-field.error.hover.trailing-icon.color": "onErrorContainer", + "md.comp.outlined-text-field.error.input-text.color": "onSurface", + "md.comp.outlined-text-field.error.label-text.color": "error", + "md.comp.outlined-text-field.error.leading-icon.color": "onSurfaceVariant", + "md.comp.outlined-text-field.error.outline.color": "error", + "md.comp.outlined-text-field.error.supporting-text.color": "error", + "md.comp.outlined-text-field.error.trailing-icon.color": "error", + "md.comp.outlined-text-field.focus.input-text.color": "onSurface", + "md.comp.outlined-text-field.focus.label-text.color": "primary", + "md.comp.outlined-text-field.focus.leading-icon.color": "onSurfaceVariant", + "md.comp.outlined-text-field.focus.outline.color": "primary", + "md.comp.outlined-text-field.focus.outline.width": 2.0, + "md.comp.outlined-text-field.focus.supporting-text.color": "onSurfaceVariant", + "md.comp.outlined-text-field.focus.trailing-icon.color": "onSurfaceVariant", + "md.comp.outlined-text-field.hover.input-text.color": "onSurface", + "md.comp.outlined-text-field.hover.label-text.color": "onSurface", + "md.comp.outlined-text-field.hover.leading-icon.color": "onSurfaceVariant", + "md.comp.outlined-text-field.hover.outline.color": "onSurface", + "md.comp.outlined-text-field.hover.outline.width": 1.0, + "md.comp.outlined-text-field.hover.supporting-text.color": "onSurfaceVariant", + "md.comp.outlined-text-field.hover.trailing-icon.color": "onSurfaceVariant", + "md.comp.outlined-text-field.input-text.color": "onSurface", + "md.comp.outlined-text-field.input-text.text-style": "bodyLarge", + "md.comp.outlined-text-field.input-text.placeholder.color": "onSurfaceVariant", + "md.comp.outlined-text-field.input-text.prefix.color": "onSurfaceVariant", + "md.comp.outlined-text-field.input-text.suffix.color": "onSurfaceVariant", + "md.comp.outlined-text-field.label-text.color": "onSurfaceVariant", + "md.comp.outlined-text-field.label-text.text-style": "bodyLarge", + "md.comp.outlined-text-field.leading-icon.color": "onSurfaceVariant", + "md.comp.outlined-text-field.leading-icon.size": 24.0, + "md.comp.outlined-text-field.outline.color": "outline", + "md.comp.outlined-text-field.outline.width": 1.0, + "md.comp.outlined-text-field.supporting-text.color": "onSurfaceVariant", + "md.comp.outlined-text-field.supporting-text.text-style": "bodySmall", + "md.comp.outlined-text-field.trailing-icon.color": "onSurfaceVariant", + "md.comp.outlined-text-field.trailing-icon.size": 24.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/text_style.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/text_style.json new file mode 100644 index 0000000000000000000000000000000000000000..019da1e61dbd0cc503eab4ed899c074c160c73a4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/text_style.json @@ -0,0 +1,81 @@ +{ + "version": "v0_162", + + "md.sys.typescale.body-large.font": "md.ref.typeface.plain", + "md.sys.typescale.body-large.line-height": 24.0, + "md.sys.typescale.body-large.size": 16.0, + "md.sys.typescale.body-large.tracking": 0.5, + "md.sys.typescale.body-large.weight": "md.ref.typeface.weight-regular", + "md.sys.typescale.body-medium.font": "md.ref.typeface.plain", + "md.sys.typescale.body-medium.line-height": 20.0, + "md.sys.typescale.body-medium.size": 14.0, + "md.sys.typescale.body-medium.tracking": 0.25, + "md.sys.typescale.body-medium.weight": "md.ref.typeface.weight-regular", + "md.sys.typescale.body-small.font": "md.ref.typeface.plain", + "md.sys.typescale.body-small.line-height": 16.0, + "md.sys.typescale.body-small.size": 12.0, + "md.sys.typescale.body-small.tracking": 0.4, + "md.sys.typescale.body-small.weight": "md.ref.typeface.weight-regular", + "md.sys.typescale.display-large.font": "md.ref.typeface.brand", + "md.sys.typescale.display-large.line-height": 64.0, + "md.sys.typescale.display-large.size": 57.0, + "md.sys.typescale.display-large.tracking": -0.25, + "md.sys.typescale.display-large.weight": "md.ref.typeface.weight-regular", + "md.sys.typescale.display-medium.font": "md.ref.typeface.brand", + "md.sys.typescale.display-medium.line-height": 52.0, + "md.sys.typescale.display-medium.size": 45.0, + "md.sys.typescale.display-medium.tracking": 0.0, + "md.sys.typescale.display-medium.weight": "md.ref.typeface.weight-regular", + "md.sys.typescale.display-small.font": "md.ref.typeface.brand", + "md.sys.typescale.display-small.line-height": 44.0, + "md.sys.typescale.display-small.size": 36.0, + "md.sys.typescale.display-small.tracking": 0.0, + "md.sys.typescale.display-small.weight": "md.ref.typeface.weight-regular", + "md.sys.typescale.headline-large.font": "md.ref.typeface.brand", + "md.sys.typescale.headline-large.line-height": 40.0, + "md.sys.typescale.headline-large.size": 32.0, + "md.sys.typescale.headline-large.tracking": 0.0, + "md.sys.typescale.headline-large.weight": "md.ref.typeface.weight-regular", + "md.sys.typescale.headline-medium.font": "md.ref.typeface.brand", + "md.sys.typescale.headline-medium.line-height": 36.0, + "md.sys.typescale.headline-medium.size": 28.0, + "md.sys.typescale.headline-medium.tracking": 0.0, + "md.sys.typescale.headline-medium.weight": "md.ref.typeface.weight-regular", + "md.sys.typescale.headline-small.font": "md.ref.typeface.brand", + "md.sys.typescale.headline-small.line-height": 32.0, + "md.sys.typescale.headline-small.size": 24.0, + "md.sys.typescale.headline-small.tracking": 0.0, + "md.sys.typescale.headline-small.weight": "md.ref.typeface.weight-regular", + "md.sys.typescale.label-large.font": "md.ref.typeface.plain", + "md.sys.typescale.label-large.line-height": 20.0, + "md.sys.typescale.label-large.size": 14.0, + "md.sys.typescale.label-large.tracking": 0.1, + "md.sys.typescale.label-large.weight": "md.ref.typeface.weight-medium", + "md.sys.typescale.label-large.weight.prominent": "md.ref.typeface.weight-bold", + "md.sys.typescale.label-medium.font": "md.ref.typeface.plain", + "md.sys.typescale.label-medium.line-height": 16.0, + "md.sys.typescale.label-medium.size": 12.0, + "md.sys.typescale.label-medium.tracking": 0.5, + "md.sys.typescale.label-medium.weight": "md.ref.typeface.weight-medium", + "md.sys.typescale.label-medium.weight.prominent": "md.ref.typeface.weight-bold", + "md.sys.typescale.label-small.font": "md.ref.typeface.plain", + "md.sys.typescale.label-small.line-height": 16.0, + "md.sys.typescale.label-small.size": 11.0, + "md.sys.typescale.label-small.tracking": 0.5, + "md.sys.typescale.label-small.weight": "md.ref.typeface.weight-medium", + "md.sys.typescale.title-large.font": "md.ref.typeface.brand", + "md.sys.typescale.title-large.line-height": 28.0, + "md.sys.typescale.title-large.size": 22.0, + "md.sys.typescale.title-large.tracking": 0.0, + "md.sys.typescale.title-large.weight": "md.ref.typeface.weight-regular", + "md.sys.typescale.title-medium.font": "md.ref.typeface.plain", + "md.sys.typescale.title-medium.line-height": 24.0, + "md.sys.typescale.title-medium.size": 16.0, + "md.sys.typescale.title-medium.tracking": 0.15, + "md.sys.typescale.title-medium.weight": "md.ref.typeface.weight-medium", + "md.sys.typescale.title-small.font": "md.ref.typeface.plain", + "md.sys.typescale.title-small.line-height": 20.0, + "md.sys.typescale.title-small.size": 14.0, + "md.sys.typescale.title-small.tracking": 0.1, + "md.sys.typescale.title-small.weight": "md.ref.typeface.weight-medium" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/time_picker.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/time_picker.json new file mode 100644 index 0000000000000000000000000000000000000000..3ac8ae33c581512dbe78a752787034d7c8084237 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/time_picker.json @@ -0,0 +1,76 @@ +{ + "version": "v0_162", + + "md.comp.time-picker.clock-dial.color": "surfaceVariant", + "md.comp.time-picker.clock-dial.container.size": 256.0, + "md.comp.time-picker.clock-dial.label-text.text-style": "bodyLarge", + "md.comp.time-picker.clock-dial.selected.label-text.color": "onPrimary", + "md.comp.time-picker.clock-dial.selector.center.container.color": "primary", + "md.comp.time-picker.clock-dial.selector.center.container.shape": "md.sys.shape.corner.full", + "md.comp.time-picker.clock-dial.selector.center.container.size": 8.0, + "md.comp.time-picker.clock-dial.selector.handle.container.color": "primary", + "md.comp.time-picker.clock-dial.selector.handle.container.shape": "md.sys.shape.corner.full", + "md.comp.time-picker.clock-dial.selector.handle.container.size": 48.0, + "md.comp.time-picker.clock-dial.selector.track.container.color": "primary", + "md.comp.time-picker.clock-dial.selector.track.container.width": 2.0, + "md.comp.time-picker.clock-dial.shape": "md.sys.shape.corner.full", + "md.comp.time-picker.clock-dial.unselected.label-text.color": "onSurface", + "md.comp.time-picker.container.color": "surface", + "md.comp.time-picker.container.elevation": "md.sys.elevation.level3", + "md.comp.time-picker.container.shape": "md.sys.shape.corner.extra-large", + "md.comp.time-picker.headline.color": "onSurfaceVariant", + "md.comp.time-picker.headline.text-style": "labelMedium", + "md.comp.time-picker.period-selector.container.shape": "md.sys.shape.corner.small", + "md.comp.time-picker.period-selector.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.time-picker.period-selector.horizontal.container.height": 38.0, + "md.comp.time-picker.period-selector.horizontal.container.width": 216.0, + "md.comp.time-picker.period-selector.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.time-picker.period-selector.label-text.text-style": "titleMedium", + "md.comp.time-picker.period-selector.outline.color": "outline", + "md.comp.time-picker.period-selector.outline.width": 1.0, + "md.comp.time-picker.period-selector.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.time-picker.period-selector.selected.container.color": "tertiaryContainer", + "md.comp.time-picker.period-selector.selected.focus.label-text.color": "onTertiaryContainer", + "md.comp.time-picker.period-selector.selected.focus.state-layer.color": "onTertiaryContainer", + "md.comp.time-picker.period-selector.selected.hover.label-text.color": "onTertiaryContainer", + "md.comp.time-picker.period-selector.selected.hover.state-layer.color": "onTertiaryContainer", + "md.comp.time-picker.period-selector.selected.label-text.color": "onTertiaryContainer", + "md.comp.time-picker.period-selector.selected.pressed.label-text.color": "onTertiaryContainer", + "md.comp.time-picker.period-selector.selected.pressed.state-layer.color": "onTertiaryContainer", + "md.comp.time-picker.period-selector.unselected.focus.label-text.color": "onSurfaceVariant", + "md.comp.time-picker.period-selector.unselected.focus.state-layer.color": "onSurfaceVariant", + "md.comp.time-picker.period-selector.unselected.hover.label-text.color": "onSurfaceVariant", + "md.comp.time-picker.period-selector.unselected.hover.state-layer.color": "onSurfaceVariant", + "md.comp.time-picker.period-selector.unselected.label-text.color": "onSurfaceVariant", + "md.comp.time-picker.period-selector.unselected.pressed.label-text.color": "onSurfaceVariant", + "md.comp.time-picker.period-selector.unselected.pressed.state-layer.color": "onSurfaceVariant", + "md.comp.time-picker.period-selector.vertical.container.height": 80.0, + "md.comp.time-picker.period-selector.vertical.container.width": 52.0, + "md.comp.time-picker.surface-tint-layer.color": "surfaceTint", + "md.comp.time-picker.time-selector.24h-vertical.container.width": 114.0, + "md.comp.time-picker.time-selector.container.height": 80.0, + "md.comp.time-picker.time-selector.container.shape": "md.sys.shape.corner.small", + "md.comp.time-picker.time-selector.container.width": 96.0, + "md.comp.time-picker.time-selector.focus.state-layer.opacity": "md.sys.state.focus.state-layer-opacity", + "md.comp.time-picker.time-selector.hover.state-layer.opacity": "md.sys.state.hover.state-layer-opacity", + "md.comp.time-picker.time-selector.label-text.text-style": "displayLarge", + "md.comp.time-picker.time-selector.pressed.state-layer.opacity": "md.sys.state.pressed.state-layer-opacity", + "md.comp.time-picker.time-selector.selected.container.color": "primaryContainer", + "md.comp.time-picker.time-selector.selected.focus.label-text.color": "onPrimaryContainer", + "md.comp.time-picker.time-selector.selected.focus.state-layer.color": "onPrimaryContainer", + "md.comp.time-picker.time-selector.selected.hover.label-text.color": "onPrimaryContainer", + "md.comp.time-picker.time-selector.selected.hover.state-layer.color": "onPrimaryContainer", + "md.comp.time-picker.time-selector.selected.label-text.color": "onPrimaryContainer", + "md.comp.time-picker.time-selector.selected.pressed.label-text.color": "onPrimaryContainer", + "md.comp.time-picker.time-selector.selected.pressed.state-layer.color": "onPrimaryContainer", + "md.comp.time-picker.time-selector.separator.color": "onSurface", + "md.comp.time-picker.time-selector.separator.text-style": "displayLarge", + "md.comp.time-picker.time-selector.unselected.container.color": "surfaceVariant", + "md.comp.time-picker.time-selector.unselected.focus.label-text.color": "onSurface", + "md.comp.time-picker.time-selector.unselected.focus.state-layer.color": "onSurface", + "md.comp.time-picker.time-selector.unselected.hover.label-text.color": "onSurface", + "md.comp.time-picker.time-selector.unselected.hover.state-layer.color": "onSurface", + "md.comp.time-picker.time-selector.unselected.label-text.color": "onSurface", + "md.comp.time-picker.time-selector.unselected.pressed.label-text.color": "onSurface", + "md.comp.time-picker.time-selector.unselected.pressed.state-layer.color": "onSurface" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/top_app_bar_large.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/top_app_bar_large.json new file mode 100644 index 0000000000000000000000000000000000000000..bc2d979d76ef51cd52eef5947bb90f91cf239e8b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/top_app_bar_large.json @@ -0,0 +1,15 @@ +{ + "version": "v0_162", + + "md.comp.top-app-bar.large.container.color": "surface", + "md.comp.top-app-bar.large.container.elevation": "md.sys.elevation.level0", + "md.comp.top-app-bar.large.container.height": 152.0, + "md.comp.top-app-bar.large.container.shape": "md.sys.shape.corner.none", + "md.comp.top-app-bar.large.container.surface-tint-layer.color": "surfaceTint", + "md.comp.top-app-bar.large.headline.color": "onSurface", + "md.comp.top-app-bar.large.headline.text-style": "headlineMedium", + "md.comp.top-app-bar.large.leading-icon.color": "onSurface", + "md.comp.top-app-bar.large.leading-icon.size": 24.0, + "md.comp.top-app-bar.large.trailing-icon.color": "onSurfaceVariant", + "md.comp.top-app-bar.large.trailing-icon.size": 24.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/top_app_bar_medium.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/top_app_bar_medium.json new file mode 100644 index 0000000000000000000000000000000000000000..39ff113b618474bcd8d0c6735aca84cb7736eced --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/top_app_bar_medium.json @@ -0,0 +1,15 @@ +{ + "version": "v0_162", + + "md.comp.top-app-bar.medium.container.color": "surface", + "md.comp.top-app-bar.medium.container.elevation": "md.sys.elevation.level0", + "md.comp.top-app-bar.medium.container.height": 112.0, + "md.comp.top-app-bar.medium.container.shape": "md.sys.shape.corner.none", + "md.comp.top-app-bar.medium.container.surface-tint-layer.color": "surfaceTint", + "md.comp.top-app-bar.medium.headline.color": "onSurface", + "md.comp.top-app-bar.medium.headline.text-style": "headlineSmall", + "md.comp.top-app-bar.medium.leading-icon.color": "onSurface", + "md.comp.top-app-bar.medium.leading-icon.size": 24.0, + "md.comp.top-app-bar.medium.trailing-icon.color": "onSurfaceVariant", + "md.comp.top-app-bar.medium.trailing-icon.size": 24.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/top_app_bar_small.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/top_app_bar_small.json new file mode 100644 index 0000000000000000000000000000000000000000..90053e02f26e00669d47b33bb95124ac8f46af0a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/top_app_bar_small.json @@ -0,0 +1,16 @@ +{ + "version": "v0_162", + + "md.comp.top-app-bar.small.container.color": "surface", + "md.comp.top-app-bar.small.container.elevation": "md.sys.elevation.level0", + "md.comp.top-app-bar.small.container.height": 64.0, + "md.comp.top-app-bar.small.container.shape": "md.sys.shape.corner.none", + "md.comp.top-app-bar.small.container.surface-tint-layer.color": "surfaceTint", + "md.comp.top-app-bar.small.headline.color": "onSurface", + "md.comp.top-app-bar.small.headline.text-style": "titleLarge", + "md.comp.top-app-bar.small.leading-icon.color": "onSurface", + "md.comp.top-app-bar.small.leading-icon.size": 24.0, + "md.comp.top-app-bar.small.on-scroll.container.elevation": "md.sys.elevation.level2", + "md.comp.top-app-bar.small.trailing-icon.color": "onSurfaceVariant", + "md.comp.top-app-bar.small.trailing-icon.size": 24.0 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/typeface.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/typeface.json new file mode 100644 index 0000000000000000000000000000000000000000..f32100baadb6fd4fb4f8d855de244d581f55c537 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/data/typeface.json @@ -0,0 +1,9 @@ +{ + "version": "v0_162", + + "md.ref.typeface.brand": "Roboto", + "md.ref.typeface.plain": "Roboto", + "md.ref.typeface.weight-bold": 700, + "md.ref.typeface.weight-medium": 500, + "md.ref.typeface.weight-regular": 400 +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/generated/used_tokens.csv b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/generated/used_tokens.csv new file mode 100644 index 0000000000000000000000000000000000000000..e44e7c80899150f23a20911b6461179b3b59af5c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/generated/used_tokens.csv @@ -0,0 +1,968 @@ +Versions used, v0_162, v0_202, v0_158 +md.comp.assist-chip.container.shape, +md.comp.assist-chip.container.surface-tint-layer.color, +md.comp.assist-chip.elevated.container.elevation, +md.comp.assist-chip.elevated.container.shadow-color, +md.comp.assist-chip.elevated.disabled.container.color, +md.comp.assist-chip.elevated.disabled.container.elevation, +md.comp.assist-chip.elevated.disabled.container.opacity, +md.comp.assist-chip.elevated.pressed.container.elevation, +md.comp.assist-chip.flat.container.elevation, +md.comp.assist-chip.flat.disabled.outline.color, +md.comp.assist-chip.flat.disabled.outline.opacity, +md.comp.assist-chip.flat.outline.color, +md.comp.assist-chip.flat.outline.width, +md.comp.assist-chip.label-text.text-style, +md.comp.assist-chip.with-icon.disabled.icon.color, +md.comp.assist-chip.with-icon.icon.color, +md.comp.assist-chip.with-icon.icon.size, +md.comp.badge.color, +md.comp.badge.large.label-text.color, +md.comp.badge.large.label-text.text-style, +md.comp.badge.large.size, +md.comp.badge.size, +md.comp.banner.container.color, +md.comp.banner.container.elevation, +md.comp.banner.container.surface-tint-layer.color, +md.comp.banner.supporting-text.text-style, +md.comp.bottom-app-bar.container.color, +md.comp.bottom-app-bar.container.elevation, +md.comp.bottom-app-bar.container.height, +md.comp.bottom-app-bar.container.shape, +md.comp.bottom-app-bar.container.surface-tint-layer.color, +md.comp.checkbox.error.focus.state-layer.color, +md.comp.checkbox.error.focus.state-layer.opacity, +md.comp.checkbox.error.hover.state-layer.color, +md.comp.checkbox.error.hover.state-layer.opacity, +md.comp.checkbox.error.pressed.state-layer.color, +md.comp.checkbox.error.pressed.state-layer.opacity, +md.comp.checkbox.selected.container.color, +md.comp.checkbox.selected.disabled.container.color, +md.comp.checkbox.selected.disabled.container.opacity, +md.comp.checkbox.selected.disabled.icon.color, +md.comp.checkbox.selected.error.container.color, +md.comp.checkbox.selected.error.icon.color, +md.comp.checkbox.selected.focus.state-layer.color, +md.comp.checkbox.selected.focus.state-layer.opacity, +md.comp.checkbox.selected.hover.state-layer.color, +md.comp.checkbox.selected.hover.state-layer.opacity, +md.comp.checkbox.selected.icon.color, +md.comp.checkbox.selected.outline.width, +md.comp.checkbox.selected.pressed.state-layer.color, +md.comp.checkbox.selected.pressed.state-layer.opacity, +md.comp.checkbox.state-layer.size, +md.comp.checkbox.unselected.disabled.container.opacity, +md.comp.checkbox.unselected.disabled.outline.color, +md.comp.checkbox.unselected.disabled.outline.width, +md.comp.checkbox.unselected.error.outline.color, +md.comp.checkbox.unselected.focus.outline.color, +md.comp.checkbox.unselected.focus.outline.width, +md.comp.checkbox.unselected.focus.state-layer.color, +md.comp.checkbox.unselected.focus.state-layer.opacity, +md.comp.checkbox.unselected.hover.outline.color, +md.comp.checkbox.unselected.hover.outline.width, +md.comp.checkbox.unselected.hover.state-layer.color, +md.comp.checkbox.unselected.hover.state-layer.opacity, +md.comp.checkbox.unselected.outline.color, +md.comp.checkbox.unselected.outline.width, +md.comp.checkbox.unselected.pressed.outline.color, +md.comp.checkbox.unselected.pressed.outline.width, +md.comp.checkbox.unselected.pressed.state-layer.color, +md.comp.checkbox.unselected.pressed.state-layer.opacity, +md.comp.circular-progress-indicator.active-indicator.color, +md.comp.date-picker.modal.container.color, +md.comp.date-picker.modal.container.elevation, +md.comp.date-picker.modal.container.shape, +md.comp.date-picker.modal.container.surface-tint-layer.color, +md.comp.date-picker.modal.date.focus.state-layer.opacity, +md.comp.date-picker.modal.date.hover.state-layer.opacity, +md.comp.date-picker.modal.date.label-text.text-style, +md.comp.date-picker.modal.date.pressed.state-layer.opacity, +md.comp.date-picker.modal.date.selected.container.color, +md.comp.date-picker.modal.date.selected.focus.state-layer.color, +md.comp.date-picker.modal.date.selected.hover.state-layer.color, +md.comp.date-picker.modal.date.selected.label-text.color, +md.comp.date-picker.modal.date.selected.pressed.state-layer.color, +md.comp.date-picker.modal.date.today.container.outline.color, +md.comp.date-picker.modal.date.today.container.outline.width, +md.comp.date-picker.modal.date.today.label-text.color, +md.comp.date-picker.modal.date.unselected.focus.state-layer.color, +md.comp.date-picker.modal.date.unselected.hover.state-layer.color, +md.comp.date-picker.modal.date.unselected.label-text.color, +md.comp.date-picker.modal.date.unselected.pressed.state-layer.color, +md.comp.date-picker.modal.header.headline.color, +md.comp.date-picker.modal.header.headline.text-style, +md.comp.date-picker.modal.header.supporting-text.text-style, +md.comp.date-picker.modal.range-selection.active-indicator.container.color, +md.comp.date-picker.modal.range-selection.container.elevation, +md.comp.date-picker.modal.range-selection.container.shape, +md.comp.date-picker.modal.range-selection.date.in-range.focus.state-layer.color, +md.comp.date-picker.modal.range-selection.date.in-range.focus.state-layer.opacity, +md.comp.date-picker.modal.range-selection.date.in-range.hover.state-layer.color, +md.comp.date-picker.modal.range-selection.date.in-range.hover.state-layer.opacity, +md.comp.date-picker.modal.range-selection.date.in-range.pressed.state-layer.color, +md.comp.date-picker.modal.range-selection.date.in-range.pressed.state-layer.opacity, +md.comp.date-picker.modal.range-selection.header.headline.text-style, +md.comp.date-picker.modal.range-selection.month.subhead.text-style, +md.comp.date-picker.modal.weekdays.label-text.color, +md.comp.date-picker.modal.weekdays.label-text.text-style, +md.comp.date-picker.modal.year-selection.year.focus.state-layer.opacity, +md.comp.date-picker.modal.year-selection.year.hover.state-layer.opacity, +md.comp.date-picker.modal.year-selection.year.label-text.text-style, +md.comp.date-picker.modal.year-selection.year.pressed.state-layer.opacity, +md.comp.date-picker.modal.year-selection.year.selected.container.color, +md.comp.date-picker.modal.year-selection.year.selected.focus.state-layer.color, +md.comp.date-picker.modal.year-selection.year.selected.hover.state-layer.color, +md.comp.date-picker.modal.year-selection.year.selected.label-text.color, +md.comp.date-picker.modal.year-selection.year.selected.pressed.state-layer.color, +md.comp.date-picker.modal.year-selection.year.unselected.focus.state-layer.color, +md.comp.date-picker.modal.year-selection.year.unselected.hover.state-layer.color, +md.comp.date-picker.modal.year-selection.year.unselected.label-text.color, +md.comp.date-picker.modal.year-selection.year.unselected.pressed.state-layer.color, +md.comp.dialog.container.color, +md.comp.dialog.container.elevation, +md.comp.dialog.container.shape, +md.comp.dialog.container.surface-tint-layer.color, +md.comp.dialog.headline.text-style, +md.comp.dialog.supporting-text.text-style, +md.comp.divider.color, +md.comp.divider.thickness, +md.comp.elevated-button.container.color, +md.comp.elevated-button.container.elevation, +md.comp.elevated-button.container.height, +md.comp.elevated-button.container.shadow-color, +md.comp.elevated-button.container.shape, +md.comp.elevated-button.container.surface-tint-layer.color, +md.comp.elevated-button.disabled.container.color, +md.comp.elevated-button.disabled.container.elevation, +md.comp.elevated-button.disabled.container.opacity, +md.comp.elevated-button.disabled.label-text.color, +md.comp.elevated-button.disabled.label-text.opacity, +md.comp.elevated-button.focus.container.elevation, +md.comp.elevated-button.focus.state-layer.color, +md.comp.elevated-button.focus.state-layer.opacity, +md.comp.elevated-button.hover.container.elevation, +md.comp.elevated-button.hover.state-layer.color, +md.comp.elevated-button.hover.state-layer.opacity, +md.comp.elevated-button.label-text.color, +md.comp.elevated-button.label-text.text-style, +md.comp.elevated-button.pressed.container.elevation, +md.comp.elevated-button.pressed.state-layer.color, +md.comp.elevated-button.pressed.state-layer.opacity, +md.comp.elevated-card.container.color, +md.comp.elevated-card.container.elevation, +md.comp.elevated-card.container.shadow-color, +md.comp.elevated-card.container.shape, +md.comp.elevated-card.container.surface-tint-layer.color, +md.comp.extended-fab.primary.container.height, +md.comp.extended-fab.primary.container.shape, +md.comp.extended-fab.primary.icon.size, +md.comp.extended-fab.primary.label-text.text-style, +md.comp.fab.primary.container.color, +md.comp.fab.primary.container.elevation, +md.comp.fab.primary.container.height, +md.comp.fab.primary.container.shape, +md.comp.fab.primary.container.width, +md.comp.fab.primary.focus.container.elevation, +md.comp.fab.primary.focus.state-layer.color, +md.comp.fab.primary.focus.state-layer.opacity, +md.comp.fab.primary.hover.container.elevation, +md.comp.fab.primary.hover.state-layer.color, +md.comp.fab.primary.hover.state-layer.opacity, +md.comp.fab.primary.icon.color, +md.comp.fab.primary.icon.size, +md.comp.fab.primary.large.container.height, +md.comp.fab.primary.large.container.shape, +md.comp.fab.primary.large.container.width, +md.comp.fab.primary.large.icon.size, +md.comp.fab.primary.pressed.container.elevation, +md.comp.fab.primary.pressed.state-layer.color, +md.comp.fab.primary.pressed.state-layer.opacity, +md.comp.fab.primary.small.container.height, +md.comp.fab.primary.small.container.shape, +md.comp.fab.primary.small.container.width, +md.comp.fab.primary.small.icon.size, +md.comp.filled-button.container.color, +md.comp.filled-button.container.elevation, +md.comp.filled-button.container.height, +md.comp.filled-button.container.shadow-color, +md.comp.filled-button.container.shape, +md.comp.filled-button.disabled.container.color, +md.comp.filled-button.disabled.container.elevation, +md.comp.filled-button.disabled.container.opacity, +md.comp.filled-button.disabled.label-text.color, +md.comp.filled-button.disabled.label-text.opacity, +md.comp.filled-button.focus.container.elevation, +md.comp.filled-button.focus.state-layer.color, +md.comp.filled-button.focus.state-layer.opacity, +md.comp.filled-button.hover.container.elevation, +md.comp.filled-button.hover.state-layer.color, +md.comp.filled-button.hover.state-layer.opacity, +md.comp.filled-button.label-text.color, +md.comp.filled-button.label-text.text-style, +md.comp.filled-button.pressed.container.elevation, +md.comp.filled-button.pressed.state-layer.color, +md.comp.filled-button.pressed.state-layer.opacity, +md.comp.filled-card.container.color, +md.comp.filled-card.container.elevation, +md.comp.filled-card.container.shadow-color, +md.comp.filled-card.container.shape, +md.comp.filled-icon-button.container.color, +md.comp.filled-icon-button.container.shape, +md.comp.filled-icon-button.container.size, +md.comp.filled-icon-button.disabled.container.color, +md.comp.filled-icon-button.disabled.container.opacity, +md.comp.filled-icon-button.disabled.icon.color, +md.comp.filled-icon-button.disabled.icon.opacity, +md.comp.filled-icon-button.focus.state-layer.color, +md.comp.filled-icon-button.focus.state-layer.opacity, +md.comp.filled-icon-button.hover.state-layer.color, +md.comp.filled-icon-button.hover.state-layer.opacity, +md.comp.filled-icon-button.icon.color, +md.comp.filled-icon-button.icon.size, +md.comp.filled-icon-button.pressed.state-layer.color, +md.comp.filled-icon-button.pressed.state-layer.opacity, +md.comp.filled-icon-button.selected.container.color, +md.comp.filled-icon-button.toggle.selected.focus.state-layer.color, +md.comp.filled-icon-button.toggle.selected.hover.state-layer.color, +md.comp.filled-icon-button.toggle.selected.icon.color, +md.comp.filled-icon-button.toggle.selected.pressed.state-layer.color, +md.comp.filled-icon-button.toggle.unselected.focus.state-layer.color, +md.comp.filled-icon-button.toggle.unselected.hover.state-layer.color, +md.comp.filled-icon-button.toggle.unselected.icon.color, +md.comp.filled-icon-button.toggle.unselected.pressed.state-layer.color, +md.comp.filled-icon-button.unselected.container.color, +md.comp.filled-text-field.active-indicator.color, +md.comp.filled-text-field.active-indicator.height, +md.comp.filled-text-field.container.color, +md.comp.filled-text-field.disabled.active-indicator.color, +md.comp.filled-text-field.disabled.active-indicator.height, +md.comp.filled-text-field.disabled.active-indicator.opacity, +md.comp.filled-text-field.disabled.container.color, +md.comp.filled-text-field.disabled.container.opacity, +md.comp.filled-text-field.disabled.label-text.color, +md.comp.filled-text-field.disabled.label-text.opacity, +md.comp.filled-text-field.disabled.supporting-text.color, +md.comp.filled-text-field.disabled.supporting-text.opacity, +md.comp.filled-text-field.disabled.trailing-icon.color, +md.comp.filled-text-field.disabled.trailing-icon.opacity, +md.comp.filled-text-field.error.active-indicator.color, +md.comp.filled-text-field.error.focus.active-indicator.color, +md.comp.filled-text-field.error.focus.label-text.color, +md.comp.filled-text-field.error.focus.supporting-text.color, +md.comp.filled-text-field.error.focus.trailing-icon.color, +md.comp.filled-text-field.error.hover.active-indicator.color, +md.comp.filled-text-field.error.hover.label-text.color, +md.comp.filled-text-field.error.hover.supporting-text.color, +md.comp.filled-text-field.error.label-text.color, +md.comp.filled-text-field.error.leading-icon.color, +md.comp.filled-text-field.error.supporting-text.color, +md.comp.filled-text-field.error.trailing-icon.color, +md.comp.filled-text-field.focus.active-indicator.color, +md.comp.filled-text-field.focus.active-indicator.height, +md.comp.filled-text-field.focus.label-text.color, +md.comp.filled-text-field.focus.leading-icon.color, +md.comp.filled-text-field.focus.supporting-text.color, +md.comp.filled-text-field.focus.trailing-icon.color, +md.comp.filled-text-field.hover.active-indicator.color, +md.comp.filled-text-field.hover.active-indicator.height, +md.comp.filled-text-field.hover.label-text.color, +md.comp.filled-text-field.hover.leading-icon.color, +md.comp.filled-text-field.hover.supporting-text.color, +md.comp.filled-text-field.hover.trailing-icon.color, +md.comp.filled-text-field.label-text.color, +md.comp.filled-text-field.label-text.text-style, +md.comp.filled-text-field.leading-icon.color, +md.comp.filled-text-field.supporting-text.color, +md.comp.filled-text-field.supporting-text.text-style, +md.comp.filled-text-field.trailing-icon.color, +md.comp.filled-tonal-button.container.color, +md.comp.filled-tonal-button.container.elevation, +md.comp.filled-tonal-button.container.height, +md.comp.filled-tonal-button.container.shadow-color, +md.comp.filled-tonal-button.container.shape, +md.comp.filled-tonal-button.disabled.container.color, +md.comp.filled-tonal-button.disabled.container.elevation, +md.comp.filled-tonal-button.disabled.container.opacity, +md.comp.filled-tonal-button.disabled.label-text.color, +md.comp.filled-tonal-button.disabled.label-text.opacity, +md.comp.filled-tonal-button.focus.container.elevation, +md.comp.filled-tonal-button.focus.state-layer.color, +md.comp.filled-tonal-button.focus.state-layer.opacity, +md.comp.filled-tonal-button.hover.container.elevation, +md.comp.filled-tonal-button.hover.state-layer.color, +md.comp.filled-tonal-button.hover.state-layer.opacity, +md.comp.filled-tonal-button.label-text.color, +md.comp.filled-tonal-button.label-text.text-style, +md.comp.filled-tonal-button.pressed.container.elevation, +md.comp.filled-tonal-button.pressed.state-layer.color, +md.comp.filled-tonal-button.pressed.state-layer.opacity, +md.comp.filled-tonal-icon-button.container.color, +md.comp.filled-tonal-icon-button.container.shape, +md.comp.filled-tonal-icon-button.container.size, +md.comp.filled-tonal-icon-button.disabled.container.color, +md.comp.filled-tonal-icon-button.disabled.container.opacity, +md.comp.filled-tonal-icon-button.disabled.icon.color, +md.comp.filled-tonal-icon-button.disabled.icon.opacity, +md.comp.filled-tonal-icon-button.focus.state-layer.color, +md.comp.filled-tonal-icon-button.focus.state-layer.opacity, +md.comp.filled-tonal-icon-button.hover.state-layer.color, +md.comp.filled-tonal-icon-button.hover.state-layer.opacity, +md.comp.filled-tonal-icon-button.icon.color, +md.comp.filled-tonal-icon-button.icon.size, +md.comp.filled-tonal-icon-button.pressed.state-layer.color, +md.comp.filled-tonal-icon-button.pressed.state-layer.opacity, +md.comp.filled-tonal-icon-button.selected.container.color, +md.comp.filled-tonal-icon-button.toggle.selected.focus.state-layer.color, +md.comp.filled-tonal-icon-button.toggle.selected.hover.state-layer.color, +md.comp.filled-tonal-icon-button.toggle.selected.icon.color, +md.comp.filled-tonal-icon-button.toggle.selected.pressed.state-layer.color, +md.comp.filled-tonal-icon-button.toggle.unselected.focus.state-layer.color, +md.comp.filled-tonal-icon-button.toggle.unselected.hover.state-layer.color, +md.comp.filled-tonal-icon-button.toggle.unselected.icon.color, +md.comp.filled-tonal-icon-button.toggle.unselected.pressed.state-layer.color, +md.comp.filled-tonal-icon-button.unselected.container.color, +md.comp.filter-chip.container.shape, +md.comp.filter-chip.container.surface-tint-layer.color, +md.comp.filter-chip.elevated.container.elevation, +md.comp.filter-chip.elevated.container.shadow-color, +md.comp.filter-chip.elevated.disabled.container.color, +md.comp.filter-chip.elevated.disabled.container.elevation, +md.comp.filter-chip.elevated.disabled.container.opacity, +md.comp.filter-chip.elevated.pressed.container.elevation, +md.comp.filter-chip.elevated.selected.container.color, +md.comp.filter-chip.flat.container.elevation, +md.comp.filter-chip.flat.disabled.selected.container.color, +md.comp.filter-chip.flat.disabled.selected.container.opacity, +md.comp.filter-chip.flat.disabled.unselected.outline.color, +md.comp.filter-chip.flat.disabled.unselected.outline.opacity, +md.comp.filter-chip.flat.selected.container.color, +md.comp.filter-chip.flat.unselected.outline.color, +md.comp.filter-chip.flat.unselected.outline.width, +md.comp.filter-chip.label-text.text-style, +md.comp.filter-chip.with-icon.icon.size, +md.comp.filter-chip.with-leading-icon.disabled.leading-icon.color, +md.comp.filter-chip.with-leading-icon.selected.leading-icon.color, +md.comp.filter-chip.with-trailing-icon.selected.trailing-icon.color, +md.comp.full-screen-dialog.container.color, +md.comp.icon-button.disabled.icon.color, +md.comp.icon-button.disabled.icon.opacity, +md.comp.icon-button.icon.size, +md.comp.icon-button.selected.focus.state-layer.color, +md.comp.icon-button.selected.focus.state-layer.opacity, +md.comp.icon-button.selected.hover.state-layer.color, +md.comp.icon-button.selected.hover.state-layer.opacity, +md.comp.icon-button.selected.icon.color, +md.comp.icon-button.selected.pressed.state-layer.color, +md.comp.icon-button.selected.pressed.state-layer.opacity, +md.comp.icon-button.state-layer.shape, +md.comp.icon-button.state-layer.size, +md.comp.icon-button.unselected.focus.state-layer.color, +md.comp.icon-button.unselected.focus.state-layer.opacity, +md.comp.icon-button.unselected.hover.state-layer.color, +md.comp.icon-button.unselected.hover.state-layer.opacity, +md.comp.icon-button.unselected.icon.color, +md.comp.icon-button.unselected.pressed.state-layer.color, +md.comp.icon-button.unselected.pressed.state-layer.opacity, +md.comp.input-chip.container.elevation, +md.comp.input-chip.container.shape, +md.comp.input-chip.disabled.selected.container.color, +md.comp.input-chip.disabled.selected.container.opacity, +md.comp.input-chip.disabled.unselected.outline.color, +md.comp.input-chip.disabled.unselected.outline.opacity, +md.comp.input-chip.label-text.text-style, +md.comp.input-chip.selected.container.color, +md.comp.input-chip.unselected.outline.color, +md.comp.input-chip.unselected.outline.width, +md.comp.input-chip.with-leading-icon.disabled.leading-icon.color, +md.comp.input-chip.with-leading-icon.leading-icon.size, +md.comp.input-chip.with-trailing-icon.selected.trailing-icon.color, +md.comp.linear-progress-indicator.active-indicator.color, +md.comp.linear-progress-indicator.track.color, +md.comp.linear-progress-indicator.track.height, +md.comp.list.list-item.container.shape, +md.comp.list.list-item.disabled.label-text.color, +md.comp.list.list-item.disabled.label-text.opacity, +md.comp.list.list-item.disabled.leading-icon.color, +md.comp.list.list-item.disabled.leading-icon.opacity, +md.comp.list.list-item.focus.label-text.color, +md.comp.list.list-item.focus.leading-icon.icon.color, +md.comp.list.list-item.focus.state-layer.color, +md.comp.list.list-item.focus.state-layer.opacity, +md.comp.list.list-item.hover.label-text.color, +md.comp.list.list-item.hover.leading-icon.icon.color, +md.comp.list.list-item.hover.state-layer.color, +md.comp.list.list-item.hover.state-layer.opacity, +md.comp.list.list-item.label-text.color, +md.comp.list.list-item.label-text.text-style, +md.comp.list.list-item.leading-icon.color, +md.comp.list.list-item.pressed.label-text.color, +md.comp.list.list-item.pressed.leading-icon.icon.color, +md.comp.list.list-item.pressed.state-layer.color, +md.comp.list.list-item.pressed.state-layer.opacity, +md.comp.list.list-item.selected.trailing-icon.color, +md.comp.list.list-item.supporting-text.color, +md.comp.list.list-item.supporting-text.text-style, +md.comp.list.list-item.trailing-icon.color, +md.comp.list.list-item.trailing-supporting-text.color, +md.comp.list.list-item.trailing-supporting-text.text-style, +md.comp.menu.container.color, +md.comp.menu.container.elevation, +md.comp.menu.container.shadow-color, +md.comp.menu.container.shape, +md.comp.menu.container.surface-tint-layer.color, +md.comp.navigation-bar.active-indicator.color, +md.comp.navigation-bar.active-indicator.shape, +md.comp.navigation-bar.active.icon.color, +md.comp.navigation-bar.active.label-text.color, +md.comp.navigation-bar.container.color, +md.comp.navigation-bar.container.elevation, +md.comp.navigation-bar.container.height, +md.comp.navigation-bar.container.surface-tint-layer.color, +md.comp.navigation-bar.icon.size, +md.comp.navigation-bar.inactive.icon.color, +md.comp.navigation-bar.inactive.label-text.color, +md.comp.navigation-bar.label-text.text-style, +md.comp.navigation-drawer.active-indicator.color, +md.comp.navigation-drawer.active-indicator.height, +md.comp.navigation-drawer.active-indicator.shape, +md.comp.navigation-drawer.active-indicator.width, +md.comp.navigation-drawer.active.icon.color, +md.comp.navigation-drawer.active.label-text.color, +md.comp.navigation-drawer.container.color, +md.comp.navigation-drawer.container.surface-tint-layer.color, +md.comp.navigation-drawer.icon.size, +md.comp.navigation-drawer.inactive.icon.color, +md.comp.navigation-drawer.inactive.label-text.color, +md.comp.navigation-drawer.label-text.text-style, +md.comp.navigation-drawer.modal.container.elevation, +md.comp.navigation-rail.active-indicator.color, +md.comp.navigation-rail.active-indicator.shape, +md.comp.navigation-rail.active.focus.label-text.color, +md.comp.navigation-rail.active.icon.color, +md.comp.navigation-rail.container.color, +md.comp.navigation-rail.container.elevation, +md.comp.navigation-rail.container.width, +md.comp.navigation-rail.icon.size, +md.comp.navigation-rail.inactive.focus.label-text.color, +md.comp.navigation-rail.inactive.icon.color, +md.comp.navigation-rail.label-text.text-style, +md.comp.outlined-button.container.height, +md.comp.outlined-button.container.shape, +md.comp.outlined-button.disabled.label-text.color, +md.comp.outlined-button.disabled.label-text.opacity, +md.comp.outlined-button.disabled.outline.color, +md.comp.outlined-button.disabled.outline.opacity, +md.comp.outlined-button.focus.outline.color, +md.comp.outlined-button.focus.state-layer.color, +md.comp.outlined-button.focus.state-layer.opacity, +md.comp.outlined-button.hover.state-layer.color, +md.comp.outlined-button.hover.state-layer.opacity, +md.comp.outlined-button.label-text.color, +md.comp.outlined-button.label-text.text-style, +md.comp.outlined-button.outline.color, +md.comp.outlined-button.outline.width, +md.comp.outlined-button.pressed.state-layer.color, +md.comp.outlined-button.pressed.state-layer.opacity, +md.comp.outlined-card.container.color, +md.comp.outlined-card.container.elevation, +md.comp.outlined-card.container.shadow-color, +md.comp.outlined-card.container.shape, +md.comp.outlined-card.container.surface-tint-layer.color, +md.comp.outlined-card.outline.color, +md.comp.outlined-card.outline.width, +md.comp.outlined-icon-button.container.shape, +md.comp.outlined-icon-button.container.size, +md.comp.outlined-icon-button.disabled.icon.color, +md.comp.outlined-icon-button.disabled.icon.opacity, +md.comp.outlined-icon-button.disabled.selected.container.color, +md.comp.outlined-icon-button.disabled.selected.container.opacity, +md.comp.outlined-icon-button.disabled.unselected.outline.color, +md.comp.outlined-icon-button.disabled.unselected.outline.opacity, +md.comp.outlined-icon-button.focus.state-layer.opacity, +md.comp.outlined-icon-button.hover.state-layer.opacity, +md.comp.outlined-icon-button.icon.size, +md.comp.outlined-icon-button.pressed.state-layer.opacity, +md.comp.outlined-icon-button.selected.container.color, +md.comp.outlined-icon-button.selected.focus.state-layer.color, +md.comp.outlined-icon-button.selected.hover.state-layer.color, +md.comp.outlined-icon-button.selected.icon.color, +md.comp.outlined-icon-button.selected.pressed.state-layer.color, +md.comp.outlined-icon-button.unselected.focus.state-layer.color, +md.comp.outlined-icon-button.unselected.hover.state-layer.color, +md.comp.outlined-icon-button.unselected.icon.color, +md.comp.outlined-icon-button.unselected.outline.color, +md.comp.outlined-icon-button.unselected.pressed.state-layer.color, +md.comp.outlined-segmented-button.container.height, +md.comp.outlined-segmented-button.disabled.label-text.color, +md.comp.outlined-segmented-button.disabled.label-text.opacity, +md.comp.outlined-segmented-button.disabled.outline.color, +md.comp.outlined-segmented-button.disabled.outline.opacity, +md.comp.outlined-segmented-button.focus.state-layer.opacity, +md.comp.outlined-segmented-button.hover.state-layer.opacity, +md.comp.outlined-segmented-button.label-text.text-style, +md.comp.outlined-segmented-button.outline.color, +md.comp.outlined-segmented-button.outline.width, +md.comp.outlined-segmented-button.pressed.state-layer.opacity, +md.comp.outlined-segmented-button.selected.container.color, +md.comp.outlined-segmented-button.selected.focus.label-text.color, +md.comp.outlined-segmented-button.selected.focus.state-layer.color, +md.comp.outlined-segmented-button.selected.hover.label-text.color, +md.comp.outlined-segmented-button.selected.hover.state-layer.color, +md.comp.outlined-segmented-button.selected.label-text.color, +md.comp.outlined-segmented-button.selected.pressed.label-text.color, +md.comp.outlined-segmented-button.selected.pressed.state-layer.color, +md.comp.outlined-segmented-button.shape, +md.comp.outlined-segmented-button.unselected.focus.label-text.color, +md.comp.outlined-segmented-button.unselected.focus.state-layer.color, +md.comp.outlined-segmented-button.unselected.hover.label-text.color, +md.comp.outlined-segmented-button.unselected.hover.state-layer.color, +md.comp.outlined-segmented-button.unselected.label-text.color, +md.comp.outlined-segmented-button.unselected.pressed.label-text.color, +md.comp.outlined-segmented-button.unselected.pressed.state-layer.color, +md.comp.outlined-segmented-button.with-icon.icon.size, +md.comp.outlined-text-field.disabled.outline.color, +md.comp.outlined-text-field.disabled.outline.opacity, +md.comp.outlined-text-field.disabled.outline.width, +md.comp.outlined-text-field.error.focus.outline.color, +md.comp.outlined-text-field.error.hover.outline.color, +md.comp.outlined-text-field.error.outline.color, +md.comp.outlined-text-field.focus.outline.color, +md.comp.outlined-text-field.focus.outline.width, +md.comp.outlined-text-field.hover.outline.color, +md.comp.outlined-text-field.hover.outline.width, +md.comp.outlined-text-field.outline.color, +md.comp.outlined-text-field.outline.width, +md.comp.primary-navigation-tab.active-indicator.color, +md.comp.primary-navigation-tab.active-indicator.height, +md.comp.primary-navigation-tab.active.focus.state-layer.color, +md.comp.primary-navigation-tab.active.focus.state-layer.opacity, +md.comp.primary-navigation-tab.active.hover.state-layer.color, +md.comp.primary-navigation-tab.active.hover.state-layer.opacity, +md.comp.primary-navigation-tab.active.pressed.state-layer.color, +md.comp.primary-navigation-tab.active.pressed.state-layer.opacity, +md.comp.primary-navigation-tab.divider.color, +md.comp.primary-navigation-tab.divider.height, +md.comp.primary-navigation-tab.inactive.focus.state-layer.color, +md.comp.primary-navigation-tab.inactive.focus.state-layer.opacity, +md.comp.primary-navigation-tab.inactive.hover.state-layer.color, +md.comp.primary-navigation-tab.inactive.hover.state-layer.opacity, +md.comp.primary-navigation-tab.inactive.pressed.state-layer.color, +md.comp.primary-navigation-tab.inactive.pressed.state-layer.opacity, +md.comp.primary-navigation-tab.with-label-text.active.label-text.color, +md.comp.primary-navigation-tab.with-label-text.inactive.label-text.color, +md.comp.primary-navigation-tab.with-label-text.label-text.text-style, +md.comp.radio-button.disabled.selected.icon.color, +md.comp.radio-button.disabled.selected.icon.opacity, +md.comp.radio-button.disabled.unselected.icon.color, +md.comp.radio-button.disabled.unselected.icon.opacity, +md.comp.radio-button.selected.focus.icon.color, +md.comp.radio-button.selected.focus.state-layer.color, +md.comp.radio-button.selected.focus.state-layer.opacity, +md.comp.radio-button.selected.hover.icon.color, +md.comp.radio-button.selected.hover.state-layer.color, +md.comp.radio-button.selected.hover.state-layer.opacity, +md.comp.radio-button.selected.icon.color, +md.comp.radio-button.selected.pressed.icon.color, +md.comp.radio-button.selected.pressed.state-layer.color, +md.comp.radio-button.selected.pressed.state-layer.opacity, +md.comp.radio-button.unselected.focus.icon.color, +md.comp.radio-button.unselected.focus.state-layer.color, +md.comp.radio-button.unselected.focus.state-layer.opacity, +md.comp.radio-button.unselected.hover.icon.color, +md.comp.radio-button.unselected.hover.state-layer.color, +md.comp.radio-button.unselected.hover.state-layer.opacity, +md.comp.radio-button.unselected.icon.color, +md.comp.radio-button.unselected.pressed.icon.color, +md.comp.radio-button.unselected.pressed.state-layer.color, +md.comp.radio-button.unselected.pressed.state-layer.opacity, +md.comp.search-bar.container.color, +md.comp.search-bar.container.elevation, +md.comp.search-bar.container.height, +md.comp.search-bar.container.shape, +md.comp.search-bar.container.surface-tint-layer.color, +md.comp.search-bar.hover.state-layer.color, +md.comp.search-bar.hover.state-layer.opacity, +md.comp.search-bar.input-text.color, +md.comp.search-bar.input-text.text-style, +md.comp.search-bar.pressed.state-layer.color, +md.comp.search-bar.pressed.state-layer.opacity, +md.comp.search-bar.supporting-text.color, +md.comp.search-bar.supporting-text.text-style, +md.comp.search-view.container.color, +md.comp.search-view.container.elevation, +md.comp.search-view.container.surface-tint-layer.color, +md.comp.search-view.divider.color, +md.comp.search-view.docked.container.shape, +md.comp.search-view.full-screen.container.shape, +md.comp.search-view.full-screen.header.container.height, +md.comp.search-view.header.input-text.color, +md.comp.search-view.header.input-text.text-style, +md.comp.search-view.header.supporting-text.color, +md.comp.search-view.header.supporting-text.text-style, +md.comp.secondary-navigation-tab.active.label-text.color, +md.comp.secondary-navigation-tab.divider.color, +md.comp.secondary-navigation-tab.divider.height, +md.comp.secondary-navigation-tab.focus.state-layer.color, +md.comp.secondary-navigation-tab.focus.state-layer.opacity, +md.comp.secondary-navigation-tab.hover.state-layer.color, +md.comp.secondary-navigation-tab.hover.state-layer.opacity, +md.comp.secondary-navigation-tab.inactive.label-text.color, +md.comp.secondary-navigation-tab.label-text.text-style, +md.comp.secondary-navigation-tab.pressed.state-layer.color, +md.comp.secondary-navigation-tab.pressed.state-layer.opacity, +md.comp.sheet.bottom.docked.container.color, +md.comp.sheet.bottom.docked.container.shape, +md.comp.sheet.bottom.docked.container.surface-tint-layer.color, +md.comp.sheet.bottom.docked.drag-handle.color, +md.comp.sheet.bottom.docked.drag-handle.height, +md.comp.sheet.bottom.docked.drag-handle.opacity, +md.comp.sheet.bottom.docked.drag-handle.width, +md.comp.sheet.bottom.docked.modal.container.elevation, +md.comp.sheet.bottom.docked.standard.container.elevation, +md.comp.slider.active.track.color, +md.comp.slider.active.track.height, +md.comp.slider.disabled.active.track.color, +md.comp.slider.disabled.active.track.opacity, +md.comp.slider.disabled.handle.color, +md.comp.slider.disabled.handle.opacity, +md.comp.slider.disabled.inactive.track.color, +md.comp.slider.disabled.inactive.track.opacity, +md.comp.slider.focus.state-layer.color, +md.comp.slider.focus.state-layer.opacity, +md.comp.slider.handle.color, +md.comp.slider.hover.state-layer.color, +md.comp.slider.hover.state-layer.opacity, +md.comp.slider.inactive.track.color, +md.comp.slider.label.label-text.color, +md.comp.slider.label.label-text.text-style, +md.comp.slider.pressed.state-layer.color, +md.comp.slider.pressed.state-layer.opacity, +md.comp.slider.with-tick-marks.active.container.color, +md.comp.slider.with-tick-marks.active.container.opacity, +md.comp.slider.with-tick-marks.disabled.container.color, +md.comp.slider.with-tick-marks.disabled.container.opacity, +md.comp.slider.with-tick-marks.inactive.container.color, +md.comp.slider.with-tick-marks.inactive.container.opacity, +md.comp.snackbar.action.focus.label-text.color, +md.comp.snackbar.action.hover.label-text.color, +md.comp.snackbar.action.label-text.color, +md.comp.snackbar.action.pressed.label-text.color, +md.comp.snackbar.container.color, +md.comp.snackbar.container.elevation, +md.comp.snackbar.container.shape, +md.comp.snackbar.icon.color, +md.comp.snackbar.supporting-text.color, +md.comp.snackbar.supporting-text.text-style, +md.comp.switch.disabled.selected.handle.color, +md.comp.switch.disabled.selected.handle.opacity, +md.comp.switch.disabled.selected.icon.color, +md.comp.switch.disabled.selected.icon.opacity, +md.comp.switch.disabled.selected.track.color, +md.comp.switch.disabled.track.opacity, +md.comp.switch.disabled.unselected.handle.color, +md.comp.switch.disabled.unselected.handle.opacity, +md.comp.switch.disabled.unselected.icon.color, +md.comp.switch.disabled.unselected.icon.opacity, +md.comp.switch.disabled.unselected.track.color, +md.comp.switch.disabled.unselected.track.outline.color, +md.comp.switch.pressed.handle.width, +md.comp.switch.selected.focus.handle.color, +md.comp.switch.selected.focus.icon.color, +md.comp.switch.selected.focus.state-layer.color, +md.comp.switch.selected.focus.state-layer.opacity, +md.comp.switch.selected.focus.track.color, +md.comp.switch.selected.handle.color, +md.comp.switch.selected.handle.width, +md.comp.switch.selected.hover.handle.color, +md.comp.switch.selected.hover.icon.color, +md.comp.switch.selected.hover.state-layer.color, +md.comp.switch.selected.hover.state-layer.opacity, +md.comp.switch.selected.hover.track.color, +md.comp.switch.selected.icon.color, +md.comp.switch.selected.pressed.handle.color, +md.comp.switch.selected.pressed.icon.color, +md.comp.switch.selected.pressed.state-layer.color, +md.comp.switch.selected.pressed.state-layer.opacity, +md.comp.switch.selected.pressed.track.color, +md.comp.switch.selected.track.color, +md.comp.switch.state-layer.size, +md.comp.switch.track.height, +md.comp.switch.track.outline.width, +md.comp.switch.track.width, +md.comp.switch.unselected.focus.handle.color, +md.comp.switch.unselected.focus.icon.color, +md.comp.switch.unselected.focus.state-layer.color, +md.comp.switch.unselected.focus.state-layer.opacity, +md.comp.switch.unselected.focus.track.color, +md.comp.switch.unselected.handle.color, +md.comp.switch.unselected.handle.width, +md.comp.switch.unselected.hover.handle.color, +md.comp.switch.unselected.hover.icon.color, +md.comp.switch.unselected.hover.state-layer.color, +md.comp.switch.unselected.hover.state-layer.opacity, +md.comp.switch.unselected.hover.track.color, +md.comp.switch.unselected.icon.color, +md.comp.switch.unselected.icon.size, +md.comp.switch.unselected.pressed.handle.color, +md.comp.switch.unselected.pressed.icon.color, +md.comp.switch.unselected.pressed.state-layer.color, +md.comp.switch.unselected.pressed.state-layer.opacity, +md.comp.switch.unselected.pressed.track.color, +md.comp.switch.unselected.track.color, +md.comp.switch.unselected.track.outline.color, +md.comp.switch.with-icon.handle.width, +md.comp.text-button.container.height, +md.comp.text-button.container.shape, +md.comp.text-button.disabled.label-text.color, +md.comp.text-button.disabled.label-text.opacity, +md.comp.text-button.focus.state-layer.color, +md.comp.text-button.focus.state-layer.opacity, +md.comp.text-button.hover.state-layer.color, +md.comp.text-button.hover.state-layer.opacity, +md.comp.text-button.label-text.color, +md.comp.text-button.label-text.text-style, +md.comp.text-button.pressed.state-layer.color, +md.comp.text-button.pressed.state-layer.opacity, +md.comp.time-picker.clock-dial.color, +md.comp.time-picker.clock-dial.container.size, +md.comp.time-picker.clock-dial.label-text.text-style, +md.comp.time-picker.clock-dial.selected.label-text.color, +md.comp.time-picker.clock-dial.selector.center.container.size, +md.comp.time-picker.clock-dial.selector.handle.container.color, +md.comp.time-picker.clock-dial.selector.handle.container.size, +md.comp.time-picker.clock-dial.selector.track.container.width, +md.comp.time-picker.clock-dial.unselected.label-text.color, +md.comp.time-picker.container.color, +md.comp.time-picker.container.elevation, +md.comp.time-picker.container.shape, +md.comp.time-picker.headline.color, +md.comp.time-picker.headline.text-style, +md.comp.time-picker.period-selector.container.shape, +md.comp.time-picker.period-selector.horizontal.container.height, +md.comp.time-picker.period-selector.horizontal.container.width, +md.comp.time-picker.period-selector.label-text.text-style, +md.comp.time-picker.period-selector.outline.color, +md.comp.time-picker.period-selector.outline.width, +md.comp.time-picker.period-selector.selected.container.color, +md.comp.time-picker.period-selector.selected.focus.label-text.color, +md.comp.time-picker.period-selector.selected.hover.label-text.color, +md.comp.time-picker.period-selector.selected.label-text.color, +md.comp.time-picker.period-selector.selected.pressed.label-text.color, +md.comp.time-picker.period-selector.unselected.focus.label-text.color, +md.comp.time-picker.period-selector.unselected.hover.label-text.color, +md.comp.time-picker.period-selector.unselected.label-text.color, +md.comp.time-picker.period-selector.unselected.pressed.label-text.color, +md.comp.time-picker.period-selector.vertical.container.height, +md.comp.time-picker.period-selector.vertical.container.width, +md.comp.time-picker.time-selector.24h-vertical.container.width, +md.comp.time-picker.time-selector.container.height, +md.comp.time-picker.time-selector.container.shape, +md.comp.time-picker.time-selector.container.width, +md.comp.time-picker.time-selector.focus.state-layer.opacity, +md.comp.time-picker.time-selector.hover.state-layer.opacity, +md.comp.time-picker.time-selector.selected.container.color, +md.comp.time-picker.time-selector.selected.focus.label-text.color, +md.comp.time-picker.time-selector.selected.focus.state-layer.color, +md.comp.time-picker.time-selector.selected.hover.label-text.color, +md.comp.time-picker.time-selector.selected.hover.state-layer.color, +md.comp.time-picker.time-selector.selected.label-text.color, +md.comp.time-picker.time-selector.selected.pressed.label-text.color, +md.comp.time-picker.time-selector.selected.pressed.state-layer.color, +md.comp.time-picker.time-selector.unselected.container.color, +md.comp.time-picker.time-selector.unselected.focus.label-text.color, +md.comp.time-picker.time-selector.unselected.focus.state-layer.color, +md.comp.time-picker.time-selector.unselected.hover.label-text.color, +md.comp.time-picker.time-selector.unselected.hover.state-layer.color, +md.comp.time-picker.time-selector.unselected.label-text.color, +md.comp.time-picker.time-selector.unselected.pressed.label-text.color, +md.comp.time-picker.time-selector.unselected.pressed.state-layer.color, +md.comp.top-app-bar.large.container.height, +md.comp.top-app-bar.large.headline.color, +md.comp.top-app-bar.large.headline.text-style, +md.comp.top-app-bar.medium.container.height, +md.comp.top-app-bar.medium.headline.color, +md.comp.top-app-bar.medium.headline.text-style, +md.comp.top-app-bar.small.container.color, +md.comp.top-app-bar.small.container.elevation, +md.comp.top-app-bar.small.container.height, +md.comp.top-app-bar.small.container.surface-tint-layer.color, +md.comp.top-app-bar.small.headline.color, +md.comp.top-app-bar.small.headline.text-style, +md.comp.top-app-bar.small.leading-icon.color, +md.comp.top-app-bar.small.leading-icon.size, +md.comp.top-app-bar.small.on-scroll.container.elevation, +md.comp.top-app-bar.small.trailing-icon.color, +md.comp.top-app-bar.small.trailing-icon.size, +md.ref.palette.error10, +md.ref.palette.error100, +md.ref.palette.error20, +md.ref.palette.error30, +md.ref.palette.error40, +md.ref.palette.error80, +md.ref.palette.error90, +md.ref.palette.neutral-variant30, +md.ref.palette.neutral-variant50, +md.ref.palette.neutral-variant60, +md.ref.palette.neutral-variant80, +md.ref.palette.neutral-variant90, +md.ref.palette.neutral0, +md.ref.palette.neutral10, +md.ref.palette.neutral20, +md.ref.palette.neutral90, +md.ref.palette.neutral95, +md.ref.palette.neutral99, +md.ref.palette.primary10, +md.ref.palette.primary100, +md.ref.palette.primary20, +md.ref.palette.primary30, +md.ref.palette.primary40, +md.ref.palette.primary80, +md.ref.palette.primary90, +md.ref.palette.secondary10, +md.ref.palette.secondary100, +md.ref.palette.secondary20, +md.ref.palette.secondary30, +md.ref.palette.secondary40, +md.ref.palette.secondary80, +md.ref.palette.secondary90, +md.ref.palette.tertiary10, +md.ref.palette.tertiary100, +md.ref.palette.tertiary20, +md.ref.palette.tertiary30, +md.ref.palette.tertiary40, +md.ref.palette.tertiary80, +md.ref.palette.tertiary90, +md.ref.typeface.weight-medium, +md.ref.typeface.weight-regular, +md.sys.color.background, +md.sys.color.error, +md.sys.color.error-container, +md.sys.color.inverse-on-surface, +md.sys.color.inverse-primary, +md.sys.color.inverse-surface, +md.sys.color.on-background, +md.sys.color.on-error, +md.sys.color.on-error-container, +md.sys.color.on-primary, +md.sys.color.on-primary-container, +md.sys.color.on-secondary, +md.sys.color.on-secondary-container, +md.sys.color.on-surface, +md.sys.color.on-surface-variant, +md.sys.color.on-tertiary, +md.sys.color.on-tertiary-container, +md.sys.color.outline, +md.sys.color.outline-variant, +md.sys.color.primary, +md.sys.color.primary-container, +md.sys.color.scrim, +md.sys.color.secondary, +md.sys.color.secondary-container, +md.sys.color.shadow, +md.sys.color.surface, +md.sys.color.surface-variant, +md.sys.color.tertiary, +md.sys.color.tertiary-container, +md.sys.elevation.level0, +md.sys.elevation.level1, +md.sys.elevation.level2, +md.sys.elevation.level3, +md.sys.elevation.level4, +md.sys.elevation.level5, +md.sys.motion.duration.extra-long1Ms, +md.sys.motion.duration.extra-long2Ms, +md.sys.motion.duration.extra-long3Ms, +md.sys.motion.duration.extra-long4Ms, +md.sys.motion.duration.long1Ms, +md.sys.motion.duration.long2Ms, +md.sys.motion.duration.long3Ms, +md.sys.motion.duration.long4Ms, +md.sys.motion.duration.medium1Ms, +md.sys.motion.duration.medium2Ms, +md.sys.motion.duration.medium3Ms, +md.sys.motion.duration.medium4Ms, +md.sys.motion.duration.short1Ms, +md.sys.motion.duration.short2Ms, +md.sys.motion.duration.short3Ms, +md.sys.motion.duration.short4Ms, +md.sys.motion.easing.emphasized.accelerate, +md.sys.motion.easing.emphasized.decelerate, +md.sys.motion.easing.legacy, +md.sys.motion.easing.legacy.accelerate, +md.sys.motion.easing.legacy.decelerate, +md.sys.motion.easing.linear, +md.sys.motion.easing.standard, +md.sys.motion.easing.standard.accelerate, +md.sys.motion.easing.standard.decelerate, +md.sys.shape.corner.extra-large, +md.sys.shape.corner.extra-large.top, +md.sys.shape.corner.extra-small, +md.sys.shape.corner.full, +md.sys.shape.corner.large, +md.sys.shape.corner.medium, +md.sys.shape.corner.none, +md.sys.shape.corner.small, +md.sys.state.focus.state-layer-opacity, +md.sys.state.hover.state-layer-opacity, +md.sys.state.pressed.state-layer-opacity, +md.sys.typescale.body-large.line-height, +md.sys.typescale.body-large.size, +md.sys.typescale.body-large.tracking, +md.sys.typescale.body-large.weight, +md.sys.typescale.body-medium.line-height, +md.sys.typescale.body-medium.size, +md.sys.typescale.body-medium.tracking, +md.sys.typescale.body-medium.weight, +md.sys.typescale.body-small.line-height, +md.sys.typescale.body-small.size, +md.sys.typescale.body-small.tracking, +md.sys.typescale.body-small.weight, +md.sys.typescale.display-large.line-height, +md.sys.typescale.display-large.size, +md.sys.typescale.display-large.tracking, +md.sys.typescale.display-large.weight, +md.sys.typescale.display-medium.line-height, +md.sys.typescale.display-medium.size, +md.sys.typescale.display-medium.tracking, +md.sys.typescale.display-medium.weight, +md.sys.typescale.display-small.line-height, +md.sys.typescale.display-small.size, +md.sys.typescale.display-small.tracking, +md.sys.typescale.display-small.weight, +md.sys.typescale.headline-large.line-height, +md.sys.typescale.headline-large.size, +md.sys.typescale.headline-large.tracking, +md.sys.typescale.headline-large.weight, +md.sys.typescale.headline-medium.line-height, +md.sys.typescale.headline-medium.size, +md.sys.typescale.headline-medium.tracking, +md.sys.typescale.headline-medium.weight, +md.sys.typescale.headline-small.line-height, +md.sys.typescale.headline-small.size, +md.sys.typescale.headline-small.tracking, +md.sys.typescale.headline-small.weight, +md.sys.typescale.label-large.line-height, +md.sys.typescale.label-large.size, +md.sys.typescale.label-large.tracking, +md.sys.typescale.label-large.weight, +md.sys.typescale.label-medium.line-height, +md.sys.typescale.label-medium.size, +md.sys.typescale.label-medium.tracking, +md.sys.typescale.label-medium.weight, +md.sys.typescale.label-small.line-height, +md.sys.typescale.label-small.size, +md.sys.typescale.label-small.tracking, +md.sys.typescale.label-small.weight, +md.sys.typescale.title-large.line-height, +md.sys.typescale.title-large.size, +md.sys.typescale.title-large.tracking, +md.sys.typescale.title-large.weight, +md.sys.typescale.title-medium.line-height, +md.sys.typescale.title-medium.size, +md.sys.typescale.title-medium.tracking, +md.sys.typescale.title-medium.weight, +md.sys.typescale.title-small.line-height, +md.sys.typescale.title-small.size, +md.sys.typescale.title-small.tracking, +md.sys.typescale.title-small.weight diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/action_chip_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/action_chip_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..ade6164e6334bed3ca7ca1b5ed966267a6ce0bb5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/action_chip_template.dart @@ -0,0 +1,98 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class ActionChipTemplate extends TokenTemplate { + const ActionChipTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + static const String tokenGroup = 'md.comp.assist-chip'; + static const String flatVariant = '.flat'; + static const String elevatedVariant = '.elevated'; + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends ChipThemeData { + _${blockName}DefaultsM3(this.context, this.isEnabled, this._chipVariant) + : super( + shape: ${shape("$tokenGroup.container")}, + showCheckmark: true, + ); + + final BuildContext context; + final bool isEnabled; + final _ChipVariant _chipVariant; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + double? get elevation => _chipVariant == _ChipVariant.flat + ? ${elevation("$tokenGroup$flatVariant.container")} + : isEnabled ? ${elevation("$tokenGroup$elevatedVariant.container")} : ${elevation("$tokenGroup$elevatedVariant.disabled.container")}; + + @override + double? get pressElevation => ${elevation("$tokenGroup$elevatedVariant.pressed.container")}; + + @override + TextStyle? get labelStyle => ${textStyle("$tokenGroup.label-text")}; + + @override + MaterialStateProperty? get color => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return _chipVariant == _ChipVariant.flat + ? ${componentColor("$tokenGroup$flatVariant.disabled.container")} + : ${componentColor("$tokenGroup$elevatedVariant.disabled.container")}; + } + return ${componentColor("$tokenGroup$flatVariant.container")}; + }); + + @override + Color? get shadowColor => _chipVariant == _ChipVariant.flat + ? ${colorOrTransparent("$tokenGroup$flatVariant.container.shadow-color")} + : ${colorOrTransparent("$tokenGroup$elevatedVariant.container.shadow-color")}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent("$tokenGroup.container.surface-tint-layer.color")}; + + @override + Color? get checkmarkColor => ${color("$tokenGroup.with-icon.selected.icon.color")}; + + @override + Color? get deleteIconColor => ${color("$tokenGroup.with-icon.selected.icon.color")}; + + @override + BorderSide? get side => _chipVariant == _ChipVariant.flat + ? isEnabled + ? ${border('$tokenGroup$flatVariant.outline')} + : ${border('$tokenGroup$flatVariant.disabled.outline')} + : const BorderSide(color: Colors.transparent); + + @override + IconThemeData? get iconTheme => IconThemeData( + color: isEnabled + ? ${color("$tokenGroup.with-icon.icon.color")} + : ${color("$tokenGroup.with-icon.disabled.icon.color")}, + size: ${getToken("$tokenGroup.with-icon.icon.size")}, + ); + + @override + EdgeInsetsGeometry? get padding => const EdgeInsets.all(8.0); + + /// The chip at text scale 1 starts with 8px on each side and as text scaling + /// gets closer to 2 the label padding is linearly interpolated from 8px to 4px. + /// Once the widget has a text scaling of 2 or higher than the label padding + /// remains 4px. + @override + EdgeInsetsGeometry? get labelPadding => EdgeInsets.lerp( + const EdgeInsets.symmetric(horizontal: 8.0), + const EdgeInsets.symmetric(horizontal: 4.0), + clampDouble(MediaQuery.textScalerOf(context).textScaleFactor - 1.0, 0.0, 1.0), + )!; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/app_bar_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/app_bar_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..11558141b1280dfea27633841c8736e6033956cf --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/app_bar_template.dart @@ -0,0 +1,108 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class AppBarTemplate extends TokenTemplate { + const AppBarTemplate(super.blockName, super.fileName, super.tokens) + : super( + colorSchemePrefix: '_colors.', + textThemePrefix: '_textTheme.', + ); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends AppBarTheme { + _${blockName}DefaultsM3(this.context) + : super( + elevation: ${elevation('md.comp.top-app-bar.small.container')}, + scrolledUnderElevation: ${elevation('md.comp.top-app-bar.small.on-scroll.container')}, + titleSpacing: NavigationToolbar.kMiddleSpacing, + toolbarHeight: ${getToken('md.comp.top-app-bar.small.container.height')}, + ); + + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + late final TextTheme _textTheme = _theme.textTheme; + + @override + Color? get backgroundColor => ${componentColor('md.comp.top-app-bar.small.container')}; + + @override + Color? get foregroundColor => ${color('md.comp.top-app-bar.small.headline.color')}; + + @override + Color? get shadowColor => ${colorOrTransparent('md.comp.top-app-bar.small.container.shadow-color')}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent('md.comp.top-app-bar.small.container.surface-tint-layer.color')}; + + @override + IconThemeData? get iconTheme => IconThemeData( + color: ${componentColor('md.comp.top-app-bar.small.leading-icon')}, + size: ${getToken('md.comp.top-app-bar.small.leading-icon.size')}, + ); + + @override + IconThemeData? get actionsIconTheme => IconThemeData( + color: ${componentColor('md.comp.top-app-bar.small.trailing-icon')}, + size: ${getToken('md.comp.top-app-bar.small.trailing-icon.size')}, + ); + + @override + TextStyle? get toolbarTextStyle => _textTheme.bodyMedium; + + @override + TextStyle? get titleTextStyle => ${textStyle('md.comp.top-app-bar.small.headline')}; +} + +// Variant configuration +class _MediumScrollUnderFlexibleConfig with _ScrollUnderFlexibleConfig { + _MediumScrollUnderFlexibleConfig(this.context); + + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + late final TextTheme _textTheme = _theme.textTheme; + + static const double collapsedHeight = ${getToken('md.comp.top-app-bar.small.container.height')}; + static const double expandedHeight = ${getToken('md.comp.top-app-bar.medium.container.height')}; + + @override + TextStyle? get collapsedTextStyle => + ${textStyle('md.comp.top-app-bar.small.headline')}?.apply(color: ${color('md.comp.top-app-bar.small.headline.color')}); + + @override + TextStyle? get expandedTextStyle => + ${textStyle('md.comp.top-app-bar.medium.headline')}?.apply(color: ${color('md.comp.top-app-bar.medium.headline.color')}); + + @override + EdgeInsetsGeometry get expandedTitlePadding => const EdgeInsets.fromLTRB(16, 0, 16, 20); +} + +class _LargeScrollUnderFlexibleConfig with _ScrollUnderFlexibleConfig { + _LargeScrollUnderFlexibleConfig(this.context); + + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + late final TextTheme _textTheme = _theme.textTheme; + + static const double collapsedHeight = ${getToken('md.comp.top-app-bar.small.container.height')}; + static const double expandedHeight = ${getToken('md.comp.top-app-bar.large.container.height')}; + + @override + TextStyle? get collapsedTextStyle => + ${textStyle('md.comp.top-app-bar.small.headline')}?.apply(color: ${color('md.comp.top-app-bar.small.headline.color')}); + + @override + TextStyle? get expandedTextStyle => + ${textStyle('md.comp.top-app-bar.large.headline')}?.apply(color: ${color('md.comp.top-app-bar.large.headline.color')}); + + @override + EdgeInsetsGeometry get expandedTitlePadding => const EdgeInsets.fromLTRB(16, 0, 16, 28); +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/badge_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/badge_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..9aedd4d3613913b81422d48216fe373c1ab3eb7c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/badge_template.dart @@ -0,0 +1,36 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class BadgeTemplate extends TokenTemplate { + const BadgeTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends BadgeThemeData { + _${blockName}DefaultsM3(this.context) : super( + smallSize: ${getToken("md.comp.badge.size")}, + largeSize: ${getToken("md.comp.badge.large.size")}, + padding: const EdgeInsets.symmetric(horizontal: 4), + alignment: AlignmentDirectional.topEnd, + ); + + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + + @override + Color? get backgroundColor => ${color("md.comp.badge.color")}; + + @override + Color? get textColor => ${color("md.comp.badge.large.label-text.color")}; + + @override + TextStyle? get textStyle => ${textStyle("md.comp.badge.large.label-text")}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/banner_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/banner_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..7d622b86f4084450af006f22d55449961bf8a436 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/banner_template.dart @@ -0,0 +1,36 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class BannerTemplate extends TokenTemplate { + const BannerTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends MaterialBannerThemeData { + _${blockName}DefaultsM3(this.context) + : super(elevation: ${elevation("md.comp.banner.container")}); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + Color? get backgroundColor => ${componentColor("md.comp.banner.container")}; + + @override + Color? get surfaceTintColor => ${color("md.comp.banner.container.surface-tint-layer.color")}; + + @override + Color? get dividerColor => ${color("md.comp.divider.color")}; + + @override + TextStyle? get contentTextStyle => ${textStyle("md.comp.banner.supporting-text")}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/bottom_app_bar_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/bottom_app_bar_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..00e0e987127d8d538d4aaba2ed8f6c422986de37 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/bottom_app_bar_template.dart @@ -0,0 +1,35 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class BottomAppBarTemplate extends TokenTemplate { + const BottomAppBarTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends BottomAppBarTheme { + _${blockName}DefaultsM3(this.context) + : super( + elevation: ${elevation('md.comp.bottom-app-bar.container')}, + height: ${getToken('md.comp.bottom-app-bar.container.height')}, + shape: const AutomaticNotchedShape(${shape('md.comp.bottom-app-bar.container', '')}), + ); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + + @override + Color? get color => ${componentColor('md.comp.bottom-app-bar.container')}; + + @override + Color? get surfaceTintColor => ${componentColor('md.comp.bottom-app-bar.container.surface-tint-layer')}; + + @override + Color? get shadowColor => Colors.transparent; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/bottom_sheet_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/bottom_sheet_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..e355b639e6ba8b42d7ce016951ace70d458cc5ab --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/bottom_sheet_template.dart @@ -0,0 +1,48 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class BottomSheetTemplate extends TokenTemplate { + const BottomSheetTemplate( + super.blockName, + super.fileName, + super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends BottomSheetThemeData { + _${blockName}DefaultsM3(this.context) + : super( + elevation: ${elevation("md.comp.sheet.bottom.docked.standard.container")}, + modalElevation: ${elevation("md.comp.sheet.bottom.docked.modal.container")}, + shape: ${shape("md.comp.sheet.bottom.docked.container")}, + constraints: const BoxConstraints(maxWidth: 640), + ); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + + @override + Color? get backgroundColor => ${componentColor("md.comp.sheet.bottom.docked.container")}; + + @override + Color? get surfaceTintColor => ${componentColor("md.comp.sheet.bottom.docked.container.surface-tint-layer")}; + + @override + Color? get shadowColor => Colors.transparent; + + @override + Color? get dragHandleColor => ${componentColor("md.comp.sheet.bottom.docked.drag-handle")}; + + @override + Size? get dragHandleSize => ${size("md.comp.sheet.bottom.docked.drag-handle")}; + + @override + BoxConstraints? get constraints => const BoxConstraints(maxWidth: 640.0); +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/button_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/button_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..dc29fb26f09312b600622ab859ea228c78ef57ce --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/button_template.dart @@ -0,0 +1,169 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class ButtonTemplate extends TokenTemplate { + const ButtonTemplate(this.tokenGroup, super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + final String tokenGroup; + + String _backgroundColor() { + if (tokenAvailable('$tokenGroup.container.color')) { + return ''' + + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('$tokenGroup.disabled.container')}; + } + return ${componentColor('$tokenGroup.container')}; + })'''; + } + return ''' + + const MaterialStatePropertyAll(Colors.transparent)'''; + } + + String _elevation() { + if (tokenAvailable('$tokenGroup.container.elevation')) { + return ''' + + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${elevation("$tokenGroup.disabled.container")}; + } + if (states.contains(MaterialState.pressed)) { + return ${elevation("$tokenGroup.pressed.container")}; + } + if (states.contains(MaterialState.hovered)) { + return ${elevation("$tokenGroup.hover.container")}; + } + if (states.contains(MaterialState.focused)) { + return ${elevation("$tokenGroup.focus.container")}; + } + return ${elevation("$tokenGroup.container")}; + })'''; + } + return ''' + + const MaterialStatePropertyAll(0.0)'''; + } + + String _elevationColor(String token) { + if (tokenAvailable(token)) { + return 'MaterialStatePropertyAll(${color(token)})'; + } else { + return 'const MaterialStatePropertyAll(Colors.transparent)'; + } + } + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends ButtonStyle { + _${blockName}DefaultsM3(this.context) + : super( + animationDuration: kThemeChangeDuration, + enableFeedback: true, + alignment: Alignment.center, + ); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + + @override + MaterialStateProperty get textStyle => + MaterialStatePropertyAll(${textStyle("$tokenGroup.label-text")}); + + @override + MaterialStateProperty? get backgroundColor =>${_backgroundColor()}; + + @override + MaterialStateProperty? get foregroundColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('$tokenGroup.disabled.label-text')}; + } + return ${componentColor('$tokenGroup.label-text')}; + }); + + @override + MaterialStateProperty? get overlayColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('$tokenGroup.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.focus.state-layer')}; + } + return null; + }); + + @override + MaterialStateProperty? get shadowColor => + ${_elevationColor("$tokenGroup.container.shadow-color")}; + + @override + MaterialStateProperty? get surfaceTintColor => + ${_elevationColor("$tokenGroup.container.surface-tint-layer.color")}; + + @override + MaterialStateProperty? get elevation =>${_elevation()}; + + @override + MaterialStateProperty? get padding => + MaterialStatePropertyAll(_scaledPadding(context)); + + @override + MaterialStateProperty? get minimumSize => + const MaterialStatePropertyAll(Size(64.0, ${getToken("$tokenGroup.container.height")})); + + // No default fixedSize + + @override + MaterialStateProperty? get maximumSize => + const MaterialStatePropertyAll(Size.infinite); + +${tokenAvailable("$tokenGroup.outline.color") ? ''' + @override + MaterialStateProperty? get side => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${border("$tokenGroup.disabled.outline")}; + } + if (states.contains(MaterialState.focused)) { + return ${border('$tokenGroup.focus.outline')}; + } + return ${border("$tokenGroup.outline")}; + });''' : ''' + // No default side'''} + + @override + MaterialStateProperty? get shape => + const MaterialStatePropertyAll(${shape("$tokenGroup.container", '')}); + + @override + MaterialStateProperty? get mouseCursor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return SystemMouseCursors.basic; + } + return SystemMouseCursors.click; + }); + + @override + VisualDensity? get visualDensity => Theme.of(context).visualDensity; + + @override + MaterialTapTargetSize? get tapTargetSize => Theme.of(context).materialTapTargetSize; + + @override + InteractiveInkFeatureFactory? get splashFactory => Theme.of(context).splashFactory; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/card_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/card_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..202903fff94afa93a3618f5f84afe14937b21769 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/card_template.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class CardTemplate extends TokenTemplate { + const CardTemplate(this.tokenGroup, super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + final String tokenGroup; + + String _shape() { + final String cardShape = shape('$tokenGroup.container'); + if (tokenAvailable('$tokenGroup.outline.color')) { + return ''' + + $cardShape.copyWith( + side: ${border('$tokenGroup.outline')} + )'''; + } else { + return cardShape; + } + } + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends CardTheme { + _${blockName}DefaultsM3(this.context) + : super( + clipBehavior: Clip.none, + elevation: ${elevation('$tokenGroup.container')}, + margin: const EdgeInsets.all(4.0), + ); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + + @override + Color? get color => ${componentColor('$tokenGroup.container')}; + + @override + Color? get shadowColor => ${colorOrTransparent('$tokenGroup.container.shadow-color')}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent('$tokenGroup.container.surface-tint-layer.color')}; + + @override + ShapeBorder? get shape =>${_shape()}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/checkbox_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/checkbox_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..a641dfe3ca38ca7a88fba0ea4440fa343d8a694b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/checkbox_template.dart @@ -0,0 +1,142 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class CheckboxTemplate extends TokenTemplate { + const CheckboxTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends CheckboxThemeData { + _${blockName}DefaultsM3(BuildContext context) + : _theme = Theme.of(context), + _colors = Theme.of(context).colorScheme; + + final ThemeData _theme; + final ColorScheme _colors; + + @override + MaterialStateBorderSide? get side { + return MaterialStateBorderSide.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + if (states.contains(MaterialState.selected)) { + return const BorderSide(width: ${getToken('md.comp.checkbox.unselected.disabled.outline.width')}, color: Colors.transparent); + } + return BorderSide(width: ${getToken('md.comp.checkbox.unselected.disabled.outline.width')}, color: ${componentColor('md.comp.checkbox.unselected.disabled.outline')}.withOpacity(${getToken('md.comp.checkbox.unselected.disabled.container.opacity')})); + } + if (states.contains(MaterialState.selected)) { + return const BorderSide(width: ${getToken('md.comp.checkbox.selected.outline.width')}, color: Colors.transparent); + } + if (states.contains(MaterialState.error)) { + return BorderSide(width: ${getToken('md.comp.checkbox.unselected.disabled.outline.width')}, color: ${componentColor('md.comp.checkbox.unselected.error.outline')}); + } + if (states.contains(MaterialState.pressed)) { + return BorderSide(width: ${getToken('md.comp.checkbox.unselected.pressed.outline.width')}, color: ${componentColor('md.comp.checkbox.unselected.pressed.outline')}); + } + if (states.contains(MaterialState.hovered)) { + return BorderSide(width: ${getToken('md.comp.checkbox.unselected.hover.outline.width')}, color: ${componentColor('md.comp.checkbox.unselected.hover.outline')}); + } + if (states.contains(MaterialState.focused)) { + return BorderSide(width: ${getToken('md.comp.checkbox.unselected.focus.outline.width')}, color: ${componentColor('md.comp.checkbox.unselected.focus.outline')}); + } + return BorderSide(width: ${getToken('md.comp.checkbox.unselected.outline.width')}, color: ${componentColor('md.comp.checkbox.unselected.outline')}); + }); + } + + @override + MaterialStateProperty get fillColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('md.comp.checkbox.selected.disabled.container')}; + } + return Colors.transparent; + } + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.error)) { + return ${componentColor('md.comp.checkbox.selected.error.container')}; + } + return ${componentColor('md.comp.checkbox.selected.container')}; + } + return Colors.transparent; + }); + } + + @override + MaterialStateProperty get checkColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('md.comp.checkbox.selected.disabled.icon')}; + } + return Colors.transparent; // No icons available when the checkbox is unselected. + } + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.error)) { + return ${componentColor('md.comp.checkbox.selected.error.icon')}; + } + return ${componentColor('md.comp.checkbox.selected.icon')}; + } + return Colors.transparent; // No icons available when the checkbox is unselected. + }); + } + + @override + MaterialStateProperty get overlayColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.error)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.checkbox.error.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.checkbox.error.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.checkbox.error.focus.state-layer')}; + } + } + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.checkbox.selected.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.checkbox.selected.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.checkbox.selected.focus.state-layer')}; + } + return Colors.transparent; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.checkbox.unselected.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.checkbox.unselected.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.checkbox.unselected.focus.state-layer')}; + } + return Colors.transparent; + }); + } + + @override + double get splashRadius => ${getToken('md.comp.checkbox.state-layer.size')} / 2; + + @override + MaterialTapTargetSize get materialTapTargetSize => _theme.materialTapTargetSize; + + @override + VisualDensity get visualDensity => _theme.visualDensity; + + @override + OutlinedBorder get shape => const RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(${getToken('md.comp.checkbox.unselected.outline.width')})), + ); +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/chip_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/chip_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..4d9383399d16dff3376a140073011bc8a97fd77b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/chip_template.dart @@ -0,0 +1,77 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class ChipTemplate extends TokenTemplate { + const ChipTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + static const String tokenGroup = 'md.comp.assist-chip'; + static const String variant = '.flat'; + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends ChipThemeData { + _${blockName}DefaultsM3(this.context, this.isEnabled) + : super( + elevation: ${elevation("$tokenGroup$variant.container")}, + shape: ${shape("$tokenGroup.container")}, + showCheckmark: true, + ); + + final BuildContext context; + final bool isEnabled; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + TextStyle? get labelStyle => ${textStyle("$tokenGroup.label-text")}; + + @override + MaterialStateProperty? get color => null; // Subclasses override this getter + + @override + Color? get shadowColor => ${colorOrTransparent("$tokenGroup.container.shadow-color")}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent("$tokenGroup.container.surface-tint-layer.color")}; + + @override + Color? get checkmarkColor => ${color("$tokenGroup.with-icon.selected.icon.color")}; + + @override + Color? get deleteIconColor => ${color("$tokenGroup.with-icon.selected.icon.color")}; + + @override + BorderSide? get side => isEnabled + ? ${border('$tokenGroup$variant.outline')} + : ${border('$tokenGroup$variant.disabled.outline')}; + + @override + IconThemeData? get iconTheme => IconThemeData( + color: isEnabled + ? ${color("$tokenGroup.with-icon.icon.color")} + : ${color("$tokenGroup.with-icon.disabled.icon.color")}, + size: ${getToken("$tokenGroup.with-icon.icon.size")}, + ); + + @override + EdgeInsetsGeometry? get padding => const EdgeInsets.all(8.0); + + /// The chip at text scale 1 starts with 8px on each side and as text scaling + /// gets closer to 2, the label padding is linearly interpolated from 8px to 4px. + /// Once the widget has a text scaling of 2 or higher than the label padding + /// remains 4px. + @override + EdgeInsetsGeometry? get labelPadding => EdgeInsets.lerp( + const EdgeInsets.symmetric(horizontal: 8.0), + const EdgeInsets.symmetric(horizontal: 4.0), + clampDouble(MediaQuery.textScalerOf(context).textScaleFactor - 1.0, 0.0, 1.0), + )!; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/color_scheme_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/color_scheme_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..a09ad6e4a2b18b10b6018fb8b1f393a46d6115cb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/color_scheme_template.dart @@ -0,0 +1,99 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; +import 'token_logger.dart'; + +class ColorSchemeTemplate extends TokenTemplate { + ColorSchemeTemplate(this._colorTokensLight, this._colorTokensDark, super.blockName, super.fileName, super.tokens); + + // Map of light color scheme token data from tokens. + final Map _colorTokensLight; + + // Map of dark color scheme token data from tokens. + final Map _colorTokensDark; + + dynamic light(String tokenName) { + tokenLogger.log(tokenName); + return getToken(_colorTokensLight[tokenName] as String); + } + + dynamic dark(String tokenName) { + tokenLogger.log(tokenName); + return getToken(_colorTokensDark[tokenName] as String); + } + + @override + String generate() => ''' +const ColorScheme _colorSchemeLightM3 = ColorScheme( + brightness: Brightness.light, + primary: Color(${light('md.sys.color.primary')}), + onPrimary: Color(${light('md.sys.color.on-primary')}), + primaryContainer: Color(${light('md.sys.color.primary-container')}), + onPrimaryContainer: Color(${light('md.sys.color.on-primary-container')}), + secondary: Color(${light('md.sys.color.secondary')}), + onSecondary: Color(${light('md.sys.color.on-secondary')}), + secondaryContainer: Color(${light('md.sys.color.secondary-container')}), + onSecondaryContainer: Color(${light('md.sys.color.on-secondary-container')}), + tertiary: Color(${light('md.sys.color.tertiary')}), + onTertiary: Color(${light('md.sys.color.on-tertiary')}), + tertiaryContainer: Color(${light('md.sys.color.tertiary-container')}), + onTertiaryContainer: Color(${light('md.sys.color.on-tertiary-container')}), + error: Color(${light('md.sys.color.error')}), + onError: Color(${light('md.sys.color.on-error')}), + errorContainer: Color(${light('md.sys.color.error-container')}), + onErrorContainer: Color(${light('md.sys.color.on-error-container')}), + background: Color(${light('md.sys.color.background')}), + onBackground: Color(${light('md.sys.color.on-background')}), + surface: Color(${light('md.sys.color.surface')}), + onSurface: Color(${light('md.sys.color.on-surface')}), + surfaceVariant: Color(${light('md.sys.color.surface-variant')}), + onSurfaceVariant: Color(${light('md.sys.color.on-surface-variant')}), + outline: Color(${light('md.sys.color.outline')}), + outlineVariant: Color(${light('md.sys.color.outline-variant')}), + shadow: Color(${light('md.sys.color.shadow')}), + scrim: Color(${light('md.sys.color.scrim')}), + inverseSurface: Color(${light('md.sys.color.inverse-surface')}), + onInverseSurface: Color(${light('md.sys.color.inverse-on-surface')}), + inversePrimary: Color(${light('md.sys.color.inverse-primary')}), + // The surfaceTint color is set to the same color as the primary. + surfaceTint: Color(${light('md.sys.color.primary')}), +); + +const ColorScheme _colorSchemeDarkM3 = ColorScheme( + brightness: Brightness.dark, + primary: Color(${dark('md.sys.color.primary')}), + onPrimary: Color(${dark('md.sys.color.on-primary')}), + primaryContainer: Color(${dark('md.sys.color.primary-container')}), + onPrimaryContainer: Color(${dark('md.sys.color.on-primary-container')}), + secondary: Color(${dark('md.sys.color.secondary')}), + onSecondary: Color(${dark('md.sys.color.on-secondary')}), + secondaryContainer: Color(${dark('md.sys.color.secondary-container')}), + onSecondaryContainer: Color(${dark('md.sys.color.on-secondary-container')}), + tertiary: Color(${dark('md.sys.color.tertiary')}), + onTertiary: Color(${dark('md.sys.color.on-tertiary')}), + tertiaryContainer: Color(${dark('md.sys.color.tertiary-container')}), + onTertiaryContainer: Color(${dark('md.sys.color.on-tertiary-container')}), + error: Color(${dark('md.sys.color.error')}), + onError: Color(${dark('md.sys.color.on-error')}), + errorContainer: Color(${dark('md.sys.color.error-container')}), + onErrorContainer: Color(${dark('md.sys.color.on-error-container')}), + background: Color(${dark('md.sys.color.background')}), + onBackground: Color(${dark('md.sys.color.on-background')}), + surface: Color(${dark('md.sys.color.surface')}), + onSurface: Color(${dark('md.sys.color.on-surface')}), + surfaceVariant: Color(${dark('md.sys.color.surface-variant')}), + onSurfaceVariant: Color(${dark('md.sys.color.on-surface-variant')}), + outline: Color(${dark('md.sys.color.outline')}), + outlineVariant: Color(${dark('md.sys.color.outline-variant')}), + shadow: Color(${dark('md.sys.color.shadow')}), + scrim: Color(${dark('md.sys.color.scrim')}), + inverseSurface: Color(${dark('md.sys.color.inverse-surface')}), + onInverseSurface: Color(${dark('md.sys.color.inverse-on-surface')}), + inversePrimary: Color(${dark('md.sys.color.inverse-primary')}), + // The surfaceTint color is set to the same color as the primary. + surfaceTint: Color(${dark('md.sys.color.primary')}), +); +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/date_picker_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/date_picker_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..e1c8836dee8f42d7721a0d0be765ad6bfb435795 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/date_picker_template.dart @@ -0,0 +1,246 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class DatePickerTemplate extends TokenTemplate { + const DatePickerTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + String _layerOpacity(String layerToken) { + if (tokenAvailable(layerToken)) { + final String layerValue = getToken(layerToken) as String; + if (tokenAvailable(layerValue)) { + final String? opacityValue = opacity(layerValue); + if (opacityValue != null) { + return '.withOpacity($opacityValue)'; + } + } + } + return ''; + } + + String _stateColor(String componentToken, String? type, String state) { + final String baseColor = color( + type != null + ? '$componentToken.$type.$state.state-layer.color' + : '$componentToken.$state.state-layer.color', + '' + ); + if (baseColor.isEmpty) { + return 'null'; + } + final String opacity = _layerOpacity('$componentToken.$state.state-layer.opacity'); + return '$baseColor$opacity'; + } + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends DatePickerThemeData { + _${blockName}DefaultsM3(this.context) + : super( + elevation: ${elevation("md.comp.date-picker.modal.container")}, + shape: ${shape("md.comp.date-picker.modal.container")}, + rangePickerElevation: ${elevation("md.comp.date-picker.modal.range-selection.container")}, + rangePickerShape: ${shape("md.comp.date-picker.modal.range-selection.container")}, + ); + + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + late final TextTheme _textTheme = _theme.textTheme; + + @override + Color? get backgroundColor => ${componentColor("md.comp.date-picker.modal.container")}; + + @override + ButtonStyle get cancelButtonStyle { + return TextButton.styleFrom(); + } + + @override + ButtonStyle get confirmButtonStyle { + return TextButton.styleFrom(); + } + + @override + Color? get shadowColor => ${colorOrTransparent("md.comp.date-picker.modal.container.shadow-color")}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent("md.comp.date-picker.modal.container.surface-tint-layer.color")}; + + @override + Color? get headerBackgroundColor => ${colorOrTransparent("md.comp.date-picker.modal.header.container.color")}; + + @override + Color? get headerForegroundColor => ${colorOrTransparent("md.comp.date-picker.modal.header.headline.color")}; + + @override + TextStyle? get headerHeadlineStyle => ${textStyle("md.comp.date-picker.modal.header.headline")}; + + @override + TextStyle? get headerHelpStyle => ${textStyle("md.comp.date-picker.modal.header.supporting-text")}; + + @override + TextStyle? get weekdayStyle => ${textStyle("md.comp.date-picker.modal.weekdays.label-text")}?.apply( + color: ${componentColor("md.comp.date-picker.modal.weekdays.label-text")}, + ); + + @override + TextStyle? get dayStyle => ${textStyle("md.comp.date-picker.modal.date.label-text")}; + + @override + MaterialStateProperty? get dayForegroundColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('md.comp.date-picker.modal.date.selected.label-text')}; + } else if (states.contains(MaterialState.disabled)) { + return ${componentColor('md.comp.date-picker.modal.date.unselected.label-text')}.withOpacity(0.38); + } + return ${componentColor('md.comp.date-picker.modal.date.unselected.label-text')}; + }); + + @override + MaterialStateProperty? get dayBackgroundColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('md.comp.date-picker.modal.date.selected.container')}; + } + return ${componentColor('md.comp.date-picker.modal.date.unselected.container')}; + }); + + @override + MaterialStateProperty? get dayOverlayColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${_stateColor('md.comp.date-picker.modal.date', 'selected', 'pressed')}; + } + if (states.contains(MaterialState.hovered)) { + return ${_stateColor('md.comp.date-picker.modal.date', 'selected', 'hover')}; + } + if (states.contains(MaterialState.focused)) { + return ${_stateColor('md.comp.date-picker.modal.date', 'selected', 'focus')}; + } + } else { + if (states.contains(MaterialState.pressed)) { + return ${_stateColor('md.comp.date-picker.modal.date', 'unselected', 'pressed')}; + } + if (states.contains(MaterialState.hovered)) { + return ${_stateColor('md.comp.date-picker.modal.date', 'unselected', 'hover')}; + } + if (states.contains(MaterialState.focused)) { + return ${_stateColor('md.comp.date-picker.modal.date', 'unselected', 'focus')}; + } + } + return null; + }); + + @override + MaterialStateProperty? get todayForegroundColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('md.comp.date-picker.modal.date.selected.label-text')}; + } else if (states.contains(MaterialState.disabled)) { + return ${componentColor('md.comp.date-picker.modal.date.today.label-text')}.withOpacity(0.38); + } + return ${componentColor('md.comp.date-picker.modal.date.today.label-text')}; + }); + + @override + MaterialStateProperty? get todayBackgroundColor => dayBackgroundColor; + + @override + BorderSide? get todayBorder => ${border('md.comp.date-picker.modal.date.today.container.outline')}; + + @override + TextStyle? get yearStyle => ${textStyle("md.comp.date-picker.modal.year-selection.year.label-text")}; + + @override + MaterialStateProperty? get yearForegroundColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('md.comp.date-picker.modal.year-selection.year.selected.label-text')}; + } else if (states.contains(MaterialState.disabled)) { + return ${componentColor('md.comp.date-picker.modal.year-selection.year.unselected.label-text')}.withOpacity(0.38); + } + return ${componentColor('md.comp.date-picker.modal.year-selection.year.unselected.label-text')}; + }); + + @override + MaterialStateProperty? get yearBackgroundColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('md.comp.date-picker.modal.year-selection.year.selected.container')}; + } + return ${componentColor('md.comp.date-picker.modal.year-selection.year.unselected.container')}; + }); + + @override + MaterialStateProperty? get yearOverlayColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${_stateColor('md.comp.date-picker.modal.year-selection.year', 'selected', 'pressed')}; + } + if (states.contains(MaterialState.hovered)) { + return ${_stateColor('md.comp.date-picker.modal.year-selection.year', 'selected', 'hover')}; + } + if (states.contains(MaterialState.focused)) { + return ${_stateColor('md.comp.date-picker.modal.year-selection.year', 'selected', 'focus')}; + } + } else { + if (states.contains(MaterialState.pressed)) { + return ${_stateColor('md.comp.date-picker.modal.year-selection.year', 'unselected', 'pressed')}; + } + if (states.contains(MaterialState.hovered)) { + return ${_stateColor('md.comp.date-picker.modal.year-selection.year', 'unselected', 'hover')}; + } + if (states.contains(MaterialState.focused)) { + return ${_stateColor('md.comp.date-picker.modal.year-selection.year', 'unselected', 'focus')}; + } + } + return null; + }); + + @override + Color? get rangePickerShadowColor => ${colorOrTransparent("md.comp.date-picker.modal.range-selection.container.shadow-color")}; + + @override + Color? get rangePickerSurfaceTintColor => ${colorOrTransparent("md.comp.date-picker.modal.range-selection.container.surface-tint-layer.color")}; + + @override + Color? get rangeSelectionBackgroundColor => ${colorOrTransparent("md.comp.date-picker.modal.range-selection.active-indicator.container.color")}; + + @override + MaterialStateProperty? get rangeSelectionOverlayColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.pressed)) { + return ${_stateColor('md.comp.date-picker.modal.range-selection.date.in-range', null, 'pressed')}; + } + if (states.contains(MaterialState.hovered)) { + return ${_stateColor('md.comp.date-picker.modal.range-selection.date.in-range', null, 'hover')}; + } + if (states.contains(MaterialState.focused)) { + return ${_stateColor('md.comp.date-picker.modal.range-selection.date.in-range', null, 'focus')}; + } + return null; + }); + + @override + Color? get rangePickerHeaderBackgroundColor => ${colorOrTransparent("md.comp.date-picker.modal.header.container.color")}; + + @override + Color? get rangePickerHeaderForegroundColor => ${colorOrTransparent("md.comp.date-picker.modal.header.headline.color")}; + + @override + TextStyle? get rangePickerHeaderHeadlineStyle => ${textStyle("md.comp.date-picker.modal.range-selection.header.headline")}; + + @override + TextStyle? get rangePickerHeaderHelpStyle => ${textStyle("md.comp.date-picker.modal.range-selection.month.subhead")}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/dialog_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/dialog_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..5bb28a26677a380064050fe1361d82a3d0c36385 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/dialog_template.dart @@ -0,0 +1,65 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class DialogTemplate extends TokenTemplate { + const DialogTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends DialogTheme { + _${blockName}DefaultsM3(this.context) + : super( + alignment: Alignment.center, + elevation: ${elevation("md.comp.dialog.container")}, + shape: ${shape("md.comp.dialog.container")}, + ); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + Color? get iconColor => _colors.secondary; + + @override + Color? get backgroundColor => ${componentColor("md.comp.dialog.container")}; + + @override + Color? get shadowColor => ${colorOrTransparent("md.comp.dialog.container.shadow-color")}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent("md.comp.dialog.container.surface-tint-layer.color")}; + + @override + TextStyle? get titleTextStyle => ${textStyle("md.comp.dialog.headline")}; + + @override + TextStyle? get contentTextStyle => ${textStyle("md.comp.dialog.supporting-text")}; + + @override + EdgeInsetsGeometry? get actionsPadding => const EdgeInsets.only(left: 24.0, right: 24.0, bottom: 24.0); +} +'''; +} + +class DialogFullscreenTemplate extends TokenTemplate { + const DialogFullscreenTemplate(super.blockName, super.fileName, super.tokens); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends DialogTheme { + const _${blockName}DefaultsM3(this.context); + + final BuildContext context; + + @override + Color? get backgroundColor => ${componentColor("md.comp.full-screen-dialog.container")}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/divider_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/divider_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..1c8a70bf4ae433a5a01218eaa49d8fe6d1b8ae4e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/divider_template.dart @@ -0,0 +1,25 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class DividerTemplate extends TokenTemplate { + const DividerTemplate(super.blockName, super.fileName, super.tokens); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends DividerThemeData { + const _${blockName}DefaultsM3(this.context) : super( + space: 16, + thickness: ${getToken("md.comp.divider.thickness")}, + indent: 0, + endIndent: 0, + ); + + final BuildContext context; + + @override Color? get color => ${componentColor("md.comp.divider")}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/drawer_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/drawer_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..6a21403c8016f12ae3266ce1c4fb251ab0df4346 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/drawer_template.dart @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class DrawerTemplate extends TokenTemplate { + const DrawerTemplate(super.blockName, super.fileName, super.tokens); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends DrawerThemeData { + _${blockName}DefaultsM3(this.context) + : super(elevation: ${elevation("md.comp.navigation-drawer.modal.container")}); + + final BuildContext context; + late final TextDirection direction = Directionality.of(context); + + @override + Color? get backgroundColor => ${componentColor("md.comp.navigation-drawer.container")}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent("md.comp.navigation-drawer.container.surface-tint-layer.color")}; + + @override + Color? get shadowColor => ${colorOrTransparent("md.comp.navigation-drawer.container.shadow-color")}; + + // There isn't currently a token for this value, but it is shown in the spec, + // so hard coding here for now. + @override + ShapeBorder? get shape => RoundedRectangleBorder( + borderRadius: const BorderRadiusDirectional.horizontal( + end: Radius.circular(16.0), + ).resolve(direction), + ); + + // There isn't currently a token for this value, but it is shown in the spec, + // so hard coding here for now. + @override + ShapeBorder? get endShape => RoundedRectangleBorder( + borderRadius: const BorderRadiusDirectional.horizontal( + start: Radius.circular(16.0), + ).resolve(direction), + ); +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/expansion_tile_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/expansion_tile_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..e2f1965826395ebb4cf61e410549614c0cea4bb4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/expansion_tile_template.dart @@ -0,0 +1,34 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class ExpansionTileTemplate extends TokenTemplate { + const ExpansionTileTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends ExpansionTileThemeData { + _${blockName}DefaultsM3(this.context); + + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + + @override + Color? get textColor => ${componentColor('md.comp.list.list-item.label-text')}; + + @override + Color? get iconColor => ${componentColor('md.comp.list.list-item.selected.trailing-icon')}; + + @override + Color? get collapsedTextColor => ${componentColor('md.comp.list.list-item.label-text')}; + + @override + Color? get collapsedIconColor => ${componentColor('md.comp.list.list-item.trailing-icon')}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/fab_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/fab_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..63f42c7e74d9c85e4187f4df75b48849add0072a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/fab_template.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class FABTemplate extends TokenTemplate { + const FABTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.', + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends FloatingActionButtonThemeData { + _${blockName}DefaultsM3(this.context, this.type, this.hasChild) + : super( + elevation: ${elevation("md.comp.fab.primary.container")}, + focusElevation: ${elevation("md.comp.fab.primary.focus.container")}, + hoverElevation: ${elevation("md.comp.fab.primary.hover.container")}, + highlightElevation: ${elevation("md.comp.fab.primary.pressed.container")}, + enableFeedback: true, + sizeConstraints: const BoxConstraints.tightFor( + width: ${getToken("md.comp.fab.primary.container.width")}, + height: ${getToken("md.comp.fab.primary.container.height")}, + ), + smallSizeConstraints: const BoxConstraints.tightFor( + width: ${getToken("md.comp.fab.primary.small.container.width")}, + height: ${getToken("md.comp.fab.primary.small.container.height")}, + ), + largeSizeConstraints: const BoxConstraints.tightFor( + width: ${getToken("md.comp.fab.primary.large.container.width")}, + height: ${getToken("md.comp.fab.primary.large.container.height")}, + ), + extendedSizeConstraints: const BoxConstraints.tightFor( + height: ${getToken("md.comp.extended-fab.primary.container.height")}, + ), + extendedIconLabelSpacing: 8.0, + ); + + final BuildContext context; + final _FloatingActionButtonType type; + final bool hasChild; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + bool get _isExtended => type == _FloatingActionButtonType.extended; + + @override Color? get foregroundColor => ${componentColor("md.comp.fab.primary.icon")}; + @override Color? get backgroundColor => ${componentColor("md.comp.fab.primary.container")}; + @override Color? get splashColor => ${componentColor("md.comp.fab.primary.pressed.state-layer")}; + @override Color? get focusColor => ${componentColor("md.comp.fab.primary.focus.state-layer")}; + @override Color? get hoverColor => ${componentColor("md.comp.fab.primary.hover.state-layer")}; + + @override + ShapeBorder? get shape { + switch (type) { + case _FloatingActionButtonType.regular: + return ${shape("md.comp.fab.primary.container")}; + case _FloatingActionButtonType.small: + return ${shape("md.comp.fab.primary.small.container")}; + case _FloatingActionButtonType.large: + return ${shape("md.comp.fab.primary.large.container")}; + case _FloatingActionButtonType.extended: + return ${shape("md.comp.extended-fab.primary.container")}; + } + } + + @override + double? get iconSize { + switch (type) { + case _FloatingActionButtonType.regular: return ${getToken("md.comp.fab.primary.icon.size")}; + case _FloatingActionButtonType.small: return ${getToken("md.comp.fab.primary.small.icon.size")}; + case _FloatingActionButtonType.large: return ${getToken("md.comp.fab.primary.large.icon.size")}; + case _FloatingActionButtonType.extended: return ${getToken("md.comp.extended-fab.primary.icon.size")}; + } + } + + @override EdgeInsetsGeometry? get extendedPadding => EdgeInsetsDirectional.only(start: hasChild && _isExtended ? 16.0 : 20.0, end: 20.0); + @override TextStyle? get extendedTextStyle => ${textStyle("md.comp.extended-fab.primary.label-text")}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/filter_chip_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/filter_chip_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..d13cba9cff9e3236e9e8240eca72857177140030 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/filter_chip_template.dart @@ -0,0 +1,115 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class FilterChipTemplate extends TokenTemplate { + const FilterChipTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + static const String tokenGroup = 'md.comp.filter-chip'; + static const String flatVariant = '.flat'; + static const String elevatedVariant = '.elevated'; + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends ChipThemeData { + _${blockName}DefaultsM3( + this.context, + this.isEnabled, + this.isSelected, + this._chipVariant, + ) : super( + shape: ${shape("$tokenGroup.container")}, + showCheckmark: true, + ); + + final BuildContext context; + final bool isEnabled; + final bool isSelected; + final _ChipVariant _chipVariant; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + double? get elevation => _chipVariant == _ChipVariant.flat + ? ${elevation("$tokenGroup$flatVariant.container")} + : isEnabled ? ${elevation("$tokenGroup$elevatedVariant.container")} : ${elevation("$tokenGroup$elevatedVariant.disabled.container")}; + + @override + double? get pressElevation => ${elevation("$tokenGroup$elevatedVariant.pressed.container")}; + + @override + TextStyle? get labelStyle => ${textStyle("$tokenGroup.label-text")}; + + @override + MaterialStateProperty? get color => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected) && states.contains(MaterialState.disabled)) { + return _chipVariant == _ChipVariant.flat + ? ${componentColor("$tokenGroup$flatVariant.disabled.selected.container")} + : ${componentColor("$tokenGroup$elevatedVariant.disabled.container")}; + } + if (states.contains(MaterialState.disabled)) { + return _chipVariant == _ChipVariant.flat + ? ${componentColor("$tokenGroup$flatVariant.disabled.unselected.container")} + : ${componentColor("$tokenGroup$elevatedVariant.disabled.container")}; + } + if (states.contains(MaterialState.selected)) { + return _chipVariant == _ChipVariant.flat + ? ${componentColor("$tokenGroup$flatVariant.selected.container")} + : ${componentColor("$tokenGroup$elevatedVariant.selected.container")}; + } + return _chipVariant == _ChipVariant.flat + ? ${componentColor("$tokenGroup$flatVariant.container")} + : ${componentColor("$tokenGroup$elevatedVariant.container")}; + }); + + @override + Color? get shadowColor => _chipVariant == _ChipVariant.flat + ? ${colorOrTransparent("$tokenGroup$flatVariant.container.shadow-color")} + : ${colorOrTransparent("$tokenGroup$elevatedVariant.container.shadow-color")}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent("$tokenGroup.container.surface-tint-layer.color")}; + + @override + Color? get checkmarkColor => ${color("$tokenGroup.with-leading-icon.selected.leading-icon.color")}; + + @override + Color? get deleteIconColor => ${color("$tokenGroup.with-trailing-icon.selected.trailing-icon.color")}; + + @override + BorderSide? get side => _chipVariant == _ChipVariant.flat && !isSelected + ? isEnabled + ? ${border('$tokenGroup$flatVariant.unselected.outline')} + : ${border('$tokenGroup$flatVariant.disabled.unselected.outline')} + : const BorderSide(color: Colors.transparent); + + @override + IconThemeData? get iconTheme => IconThemeData( + color: isEnabled + ? ${color("$tokenGroup.with-icon.icon.color")} + : ${color("$tokenGroup.with-leading-icon.disabled.leading-icon.color")}, + size: ${getToken("$tokenGroup.with-icon.icon.size")}, + ); + + @override + EdgeInsetsGeometry? get padding => const EdgeInsets.all(8.0); + + /// The chip at text scale 1 starts with 8px on each side and as text scaling + /// gets closer to 2 the label padding is linearly interpolated from 8px to 4px. + /// Once the widget has a text scaling of 2 or higher than the label padding + /// remains 4px. + @override + EdgeInsetsGeometry? get labelPadding => EdgeInsets.lerp( + const EdgeInsets.symmetric(horizontal: 8.0), + const EdgeInsets.symmetric(horizontal: 4.0), + clampDouble(MediaQuery.textScalerOf(context).textScaleFactor - 1.0, 0.0, 1.0), + )!; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/icon_button_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/icon_button_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..7031fd3cce255a756f27b9838cbb09ae9e843231 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/icon_button_template.dart @@ -0,0 +1,317 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class IconButtonTemplate extends TokenTemplate { + const IconButtonTemplate(this.tokenGroup, super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + final String tokenGroup; + + String _backgroundColor() { + switch (tokenGroup) { + case 'md.comp.filled-icon-button': + case 'md.comp.filled-tonal-icon-button': + return ''' + + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('$tokenGroup.disabled.container')}; + } + if (states.contains(MaterialState.selected)) { + return ${componentColor('$tokenGroup.selected.container')}; + } + if (toggleable) { // toggleable but unselected case + return ${componentColor('$tokenGroup.unselected.container')}; + } + return ${componentColor('$tokenGroup.container')}; + })'''; + case 'md.comp.outlined-icon-button': + return ''' + + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('$tokenGroup.disabled.selected.container')}; + } + return Colors.transparent; + } + if (states.contains(MaterialState.selected)) { + return ${componentColor('$tokenGroup.selected.container')}; + } + return Colors.transparent; + })'''; + } + return ''' + + const MaterialStatePropertyAll(Colors.transparent)'''; + } + + String _foregroundColor() { + switch (tokenGroup) { + case 'md.comp.filled-icon-button': + case 'md.comp.filled-tonal-icon-button': + return ''' + + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('$tokenGroup.disabled.icon')}; + } + if (states.contains(MaterialState.selected)) { + return ${componentColor('$tokenGroup.toggle.selected.icon')}; + } + if (toggleable) { // toggleable but unselected case + return ${componentColor('$tokenGroup.toggle.unselected.icon')}; + } + return ${componentColor('$tokenGroup.icon')}; + })'''; + case 'md.comp.outlined-icon-button': + case 'md.comp.icon-button': + return ''' + + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('$tokenGroup.disabled.icon')}; + } + if (states.contains(MaterialState.selected)) { + return ${componentColor('$tokenGroup.selected.icon')}; + } + return ${componentColor('$tokenGroup.unselected.icon')}; + })'''; + } + return ''' + + const MaterialStatePropertyAll(Colors.transparent)'''; + } + + String _overlayColor() { + switch (tokenGroup) { + case 'md.comp.filled-icon-button': + case 'md.comp.filled-tonal-icon-button': + return ''' + + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('$tokenGroup.toggle.selected.pressed.state-layer')}.withOpacity(${opacity('$tokenGroup.pressed.state-layer.opacity')}); + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.toggle.selected.hover.state-layer')}.withOpacity(${opacity('$tokenGroup.hover.state-layer.opacity')}); + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.toggle.selected.focus.state-layer')}.withOpacity(${opacity('$tokenGroup.focus.state-layer.opacity')}); + } + } + if (toggleable) { // toggleable but unselected case + if (states.contains(MaterialState.pressed)) { + return ${componentColor('$tokenGroup.toggle.unselected.pressed.state-layer')}.withOpacity(${opacity('$tokenGroup.pressed.state-layer.opacity')}); + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.toggle.unselected.hover.state-layer')}.withOpacity(${opacity('$tokenGroup.hover.state-layer.opacity')}); + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.toggle.unselected.focus.state-layer')}.withOpacity(${opacity('$tokenGroup.focus.state-layer.opacity')}); + } + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('$tokenGroup.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.focus.state-layer')}; + } + return Colors.transparent; + })'''; + case 'md.comp.outlined-icon-button': + return ''' + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('$tokenGroup.selected.pressed.state-layer')}.withOpacity(${opacity('$tokenGroup.pressed.state-layer.opacity')}); + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.selected.hover.state-layer')}.withOpacity(${opacity('$tokenGroup.hover.state-layer.opacity')}); + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.selected.focus.state-layer')}.withOpacity(${opacity('$tokenGroup.focus.state-layer.opacity')}); + } + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('$tokenGroup.unselected.pressed.state-layer')}.withOpacity(${opacity('$tokenGroup.pressed.state-layer.opacity')}); + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.unselected.hover.state-layer')}.withOpacity(${opacity('$tokenGroup.hover.state-layer.opacity')}); + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.unselected.focus.state-layer')}.withOpacity(${opacity('$tokenGroup.focus.state-layer.opacity')}); + } + return Colors.transparent; + })'''; + case 'md.comp.icon-button': + return ''' + + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('$tokenGroup.selected.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.selected.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.selected.focus.state-layer')}; + } + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('$tokenGroup.unselected.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.unselected.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.unselected.focus.state-layer')}; + } + return Colors.transparent; + })'''; + } + return ''' + + const MaterialStatePropertyAll(Colors.transparent)'''; + } + + String _minimumSize() { + if (tokenAvailable('$tokenGroup.container.size')) { + return ''' + + const MaterialStatePropertyAll(Size(${getToken('$tokenGroup.container.size')}, ${getToken('$tokenGroup.container.size')}))'''; + } else { + return ''' + + const MaterialStatePropertyAll(Size(${getToken('$tokenGroup.state-layer.size')}, ${getToken('$tokenGroup.state-layer.size')}))'''; + } + } + + String _shape() { + if (tokenAvailable('$tokenGroup.container.shape')) { + return ''' + + const MaterialStatePropertyAll(${shape("$tokenGroup.container", "")})'''; + } else { + return ''' + + const MaterialStatePropertyAll(${shape("$tokenGroup.state-layer", "")})'''; + } + } + + String _side() { + if (tokenAvailable('$tokenGroup.unselected.outline.color')) { + return ''' + + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return null; + } else { + if (states.contains(MaterialState.disabled)) { + return BorderSide(color: ${componentColor('$tokenGroup.disabled.unselected.outline')}); + } + return BorderSide(color: ${componentColor('$tokenGroup.unselected.outline')}); + } + })'''; + } + return ''' null'''; + } + + String _elevationColor(String token) { + if (tokenAvailable(token)) { + return 'MaterialStatePropertyAll(${color(token)})'; + } else { + return 'const MaterialStatePropertyAll(Colors.transparent)'; + } + } + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends ButtonStyle { + _${blockName}DefaultsM3(this.context, this.toggleable) + : super( + animationDuration: kThemeChangeDuration, + enableFeedback: true, + alignment: Alignment.center, + ); + + final BuildContext context; + final bool toggleable; + late final ColorScheme _colors = Theme.of(context).colorScheme; + + // No default text style + + @override + MaterialStateProperty? get backgroundColor =>${_backgroundColor()}; + + @override + MaterialStateProperty? get foregroundColor =>${_foregroundColor()}; + + @override + MaterialStateProperty? get overlayColor =>${_overlayColor()}; + + @override + MaterialStateProperty? get elevation => + const MaterialStatePropertyAll(0.0); + + @override + MaterialStateProperty? get shadowColor => + ${_elevationColor("$tokenGroup.container.shadow-color")}; + + @override + MaterialStateProperty? get surfaceTintColor => + ${_elevationColor("$tokenGroup.container.surface-tint-layer.color")}; + + @override + MaterialStateProperty? get padding => + const MaterialStatePropertyAll(EdgeInsets.all(8.0)); + + @override + MaterialStateProperty? get minimumSize =>${_minimumSize()}; + + // No default fixedSize + + @override + MaterialStateProperty? get maximumSize => + const MaterialStatePropertyAll(Size.infinite); + + @override + MaterialStateProperty? get iconSize => + const MaterialStatePropertyAll(${getToken("$tokenGroup.icon.size")}); + + @override + MaterialStateProperty? get side =>${_side()}; + + @override + MaterialStateProperty? get shape =>${_shape()}; + + @override + MaterialStateProperty? get mouseCursor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return SystemMouseCursors.basic; + } + return SystemMouseCursors.click; + }); + + @override + VisualDensity? get visualDensity => VisualDensity.standard; + + @override + MaterialTapTargetSize? get tapTargetSize => Theme.of(context).materialTapTargetSize; + + @override + InteractiveInkFeatureFactory? get splashFactory => Theme.of(context).splashFactory; +} +'''; + +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/input_chip_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/input_chip_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..529113cbbfa42b3964c0494fd20c94dbdfbf8f87 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/input_chip_template.dart @@ -0,0 +1,92 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class InputChipTemplate extends TokenTemplate { + const InputChipTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + static const String tokenGroup = 'md.comp.input-chip'; + static const String variant = ''; + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends ChipThemeData { + _${blockName}DefaultsM3(this.context, this.isEnabled, this.isSelected) + : super( + elevation: ${elevation("$tokenGroup$variant.container")}, + shape: ${shape("$tokenGroup.container")}, + showCheckmark: true, + ); + + final BuildContext context; + final bool isEnabled; + final bool isSelected; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + TextStyle? get labelStyle => ${textStyle("$tokenGroup.label-text")}; + + @override + MaterialStateProperty? get color => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected) && states.contains(MaterialState.disabled)) { + return ${componentColor("$tokenGroup$variant.disabled.selected.container")}; + } + if (states.contains(MaterialState.disabled)) { + return ${componentColor("$tokenGroup$variant.disabled.container")}; + } + if (states.contains(MaterialState.selected)) { + return ${componentColor("$tokenGroup$variant.selected.container")}; + } + return ${componentColor("$tokenGroup$variant.container")}; + }); + + @override + Color? get shadowColor => ${colorOrTransparent("$tokenGroup.container.shadow-color")}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent("$tokenGroup.container.surface-tint-layer.color")}; + + @override + Color? get checkmarkColor => ${color("$tokenGroup.with-icon.selected.icon.color")}; + + @override + Color? get deleteIconColor => ${color("$tokenGroup.with-trailing-icon.selected.trailing-icon.color")}; + + @override + BorderSide? get side => !isSelected + ? isEnabled + ? ${border('$tokenGroup$variant.unselected.outline')} + : ${border('$tokenGroup$variant.disabled.unselected.outline')} + : const BorderSide(color: Colors.transparent); + + @override + IconThemeData? get iconTheme => IconThemeData( + color: isEnabled + ? ${color("$tokenGroup.with-leading-icon.leading-icon.color")} + : ${color("$tokenGroup.with-leading-icon.disabled.leading-icon.color")}, + size: ${getToken("$tokenGroup.with-leading-icon.leading-icon.size")}, + ); + + @override + EdgeInsetsGeometry? get padding => const EdgeInsets.all(8.0); + + /// The chip at text scale 1 starts with 8px on each side and as text scaling + /// gets closer to 2 the label padding is linearly interpolated from 8px to 4px. + /// Once the widget has a text scaling of 2 or higher than the label padding + /// remains 4px. + @override + EdgeInsetsGeometry? get labelPadding => EdgeInsets.lerp( + const EdgeInsets.symmetric(horizontal: 8.0), + const EdgeInsets.symmetric(horizontal: 4.0), + clampDouble(MediaQuery.textScalerOf(context).textScaleFactor - 1.0, 0.0, 1.0), + )!; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/input_decorator_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/input_decorator_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..6c7363bf11465f84d308e29269304c27eaa6773c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/input_decorator_template.dart @@ -0,0 +1,225 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class InputDecoratorTemplate extends TokenTemplate { + const InputDecoratorTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends InputDecorationTheme { + _${blockName}DefaultsM3(this.context) + : super(); + + final BuildContext context; + + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + TextStyle? get hintStyle => MaterialStateTextStyle.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return TextStyle(color: Theme.of(context).disabledColor); + } + return TextStyle(color: Theme.of(context).hintColor); + }); + + @override + Color? get fillColor => MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor("md.comp.filled-text-field.disabled.container")}; + } + return ${componentColor("md.comp.filled-text-field.container")}; + }); + + @override + BorderSide? get activeIndicatorBorder => MaterialStateBorderSide.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${border('md.comp.filled-text-field.disabled.active-indicator')}; + } + if (states.contains(MaterialState.error)) { + if (states.contains(MaterialState.hovered)) { + return ${border('md.comp.filled-text-field.error.hover.active-indicator')}; + } + if (states.contains(MaterialState.focused)) { + return ${mergedBorder('md.comp.filled-text-field.error.focus.active-indicator','md.comp.filled-text-field.focus.active-indicator')}; + } + return ${border('md.comp.filled-text-field.error.active-indicator')}; + } + if (states.contains(MaterialState.hovered)) { + return ${border('md.comp.filled-text-field.hover.active-indicator')}; + } + if (states.contains(MaterialState.focused)) { + return ${border('md.comp.filled-text-field.focus.active-indicator')}; + } + return ${border('md.comp.filled-text-field.active-indicator')}; + }); + + @override + BorderSide? get outlineBorder => MaterialStateBorderSide.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${border('md.comp.outlined-text-field.disabled.outline')}; + } + if (states.contains(MaterialState.error)) { + if (states.contains(MaterialState.hovered)) { + return ${border('md.comp.outlined-text-field.error.hover.outline')}; + } + if (states.contains(MaterialState.focused)) { + return ${mergedBorder('md.comp.outlined-text-field.error.focus.outline','md.comp.outlined-text-field.focus.outline')}; + } + return ${border('md.comp.outlined-text-field.error.outline')}; + } + if (states.contains(MaterialState.hovered)) { + return ${border('md.comp.outlined-text-field.hover.outline')}; + } + if (states.contains(MaterialState.focused)) { + return ${border('md.comp.outlined-text-field.focus.outline')}; + } + return ${border('md.comp.outlined-text-field.outline')}; + }); + + @override + Color? get iconColor => ${componentColor("md.comp.filled-text-field.leading-icon")}; + + @override + Color? get prefixIconColor => MaterialStateColor.resolveWith((Set states) {${componentColor('md.comp.filled-text-field.error.leading-icon') == componentColor('md.comp.filled-text-field.leading-icon') ? '' : ''' + if (states.contains(MaterialState.disabled)) { + return ${componentColor('md.comp.filled-text-field.disabled.leading-icon')}; + } + if (states.contains(MaterialState.error)) { + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.filled-text-field.error.hover.leading-icon')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.filled-text-field.error.focus.leading-icon')}; + } + return ${componentColor('md.comp.filled-text-field.error.leading-icon')}; + }'''}${componentColor('md.comp.filled-text-field.hover.leading-icon') == componentColor('md.comp.filled-text-field.leading-icon') ? '' : ''' + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.filled-text-field.hover.leading-icon')}; + }'''}${componentColor('md.comp.filled-text-field.focus.leading-icon') == componentColor('md.comp.filled-text-field.leading-icon') ? '' : ''' + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.filled-text-field.focus.leading-icon')}; + }'''} + return ${componentColor('md.comp.filled-text-field.leading-icon')}; + }); + + @override + Color? get suffixIconColor => MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('md.comp.filled-text-field.disabled.trailing-icon')}; + } + if (states.contains(MaterialState.error)) {${componentColor('md.comp.filled-text-field.error.trailing-icon') == componentColor('md.comp.filled-text-field.error.focus.trailing-icon') ? '' : ''' + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.filled-text-field.error.hover.trailing-icon')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.filled-text-field.error.focus.trailing-icon')}; + }'''} + return ${componentColor('md.comp.filled-text-field.error.trailing-icon')}; + }${componentColor('md.comp.filled-text-field.hover.trailing-icon') == componentColor('md.comp.filled-text-field.trailing-icon') ? '' : ''' + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.filled-text-field.hover.trailing-icon')}; + }'''}${componentColor('md.comp.filled-text-field.focus.trailing-icon') == componentColor('md.comp.filled-text-field.trailing-icon') ? '' : ''' + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.filled-text-field.focus.trailing-icon')}; + }'''} + return ${componentColor('md.comp.filled-text-field.trailing-icon')}; + }); + + @override + TextStyle? get labelStyle => MaterialStateTextStyle.resolveWith((Set states) { + final TextStyle textStyle = ${textStyle("md.comp.filled-text-field.label-text")} ?? const TextStyle(); + if (states.contains(MaterialState.disabled)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.disabled.label-text')}); + } + if (states.contains(MaterialState.error)) { + if (states.contains(MaterialState.hovered)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.error.hover.label-text')}); + } + if (states.contains(MaterialState.focused)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.error.focus.label-text')}); + } + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.error.label-text')}); + } + if (states.contains(MaterialState.hovered)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.hover.label-text')}); + } + if (states.contains(MaterialState.focused)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.focus.label-text')}); + } + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.label-text')}); + }); + + @override + TextStyle? get floatingLabelStyle => MaterialStateTextStyle.resolveWith((Set states) { + final TextStyle textStyle = ${textStyle("md.comp.filled-text-field.label-text")} ?? const TextStyle(); + if (states.contains(MaterialState.disabled)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.disabled.label-text')}); + } + if (states.contains(MaterialState.error)) { + if (states.contains(MaterialState.hovered)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.error.hover.label-text')}); + } + if (states.contains(MaterialState.focused)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.error.focus.label-text')}); + } + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.error.label-text')}); + } + if (states.contains(MaterialState.hovered)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.hover.label-text')}); + } + if (states.contains(MaterialState.focused)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.focus.label-text')}); + } + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.label-text')}); + }); + + @override + TextStyle? get helperStyle => MaterialStateTextStyle.resolveWith((Set states) { + final TextStyle textStyle = ${textStyle("md.comp.filled-text-field.supporting-text")} ?? const TextStyle(); + if (states.contains(MaterialState.disabled)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.disabled.supporting-text')}); + }${componentColor('md.comp.filled-text-field.hover.supporting-text') == componentColor('md.comp.filled-text-field.supporting-text') ? '' : ''' + if (states.contains(MaterialState.hovered)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.hover.supporting-text')}); + }'''}${componentColor('md.comp.filled-text-field.focus.supporting-text') == componentColor('md.comp.filled-text-field.supporting-text') ? '' : ''' + if (states.contains(MaterialState.focused)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.focus.supporting-text')}); + }'''} + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.supporting-text')}); + }); + + @override + TextStyle? get errorStyle => MaterialStateTextStyle.resolveWith((Set states) { + final TextStyle textStyle = ${textStyle("md.comp.filled-text-field.supporting-text")} ?? const TextStyle();${componentColor('md.comp.filled-text-field.error.hover.supporting-text') == componentColor('md.comp.filled-text-field.error.supporting-text') ? '' : ''' + if (states.contains(MaterialState.hovered)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.error.hover.supporting-text')}); + }'''}${componentColor('md.comp.filled-text-field.error.focus.supporting-text') == componentColor('md.comp.filled-text-field.error.supporting-text') ? '' : ''' + if (states.contains(MaterialState.focused)) { + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.error.focus.supporting-text')}); + }'''} + return textStyle.copyWith(color: ${componentColor('md.comp.filled-text-field.error.supporting-text')}); + }); +} +'''; + + /// Generate a [BorderSide] for the given components. + String mergedBorder(String componentToken1, String componentToken2) { + final String borderColor = componentColor(componentToken1)!= 'null' + ? componentColor(componentToken1) + : componentColor(componentToken2); + final double width = ( + getToken('$componentToken1.width') ?? + getToken('$componentToken1.height') ?? + getToken('$componentToken2.width') ?? + getToken('$componentToken2.height') ?? + 1.0) as double; + return 'BorderSide(color: $borderColor${width != 1.0 ? ", width: $width" : ""})'; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/list_tile_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/list_tile_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..1832fc0d2789ba866b3b3bc27a0057f16465690f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/list_tile_template.dart @@ -0,0 +1,50 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class ListTileTemplate extends TokenTemplate { + const ListTileTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.', + }); + + static const String tokenGroup = 'md.comp.list.list-item'; + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends ListTileThemeData { + _${blockName}DefaultsM3(this.context) + : super( + contentPadding: const EdgeInsetsDirectional.only(start: 16.0, end: 24.0), + minLeadingWidth: 24, + minVerticalPadding: 8, + shape: ${shape("$tokenGroup.container")}, + ); + + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + late final TextTheme _textTheme = _theme.textTheme; + + @override + Color? get tileColor => Colors.transparent; + + @override + TextStyle? get titleTextStyle => ${textStyle("$tokenGroup.label-text")}!.copyWith(color: ${componentColor('$tokenGroup.label-text')}); + + @override + TextStyle? get subtitleTextStyle => ${textStyle("$tokenGroup.supporting-text")}!.copyWith(color: ${componentColor('$tokenGroup.supporting-text')}); + + @override + TextStyle? get leadingAndTrailingTextStyle => ${textStyle("$tokenGroup.trailing-supporting-text")}!.copyWith(color: ${componentColor('$tokenGroup.trailing-supporting-text')}); + + @override + Color? get selectedColor => ${componentColor('$tokenGroup.selected.trailing-icon')}; + + @override + Color? get iconColor => ${componentColor('$tokenGroup.trailing-icon')}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/menu_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/menu_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..6d2d6b443057a190da5501ac4bac90fb8dc10f2e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/menu_template.dart @@ -0,0 +1,259 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class MenuTemplate extends TokenTemplate { + const MenuTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + @override + String generate() => ''' +class _MenuBarDefaultsM3 extends MenuStyle { + _MenuBarDefaultsM3(this.context) + : super( + elevation: const MaterialStatePropertyAll(${elevation('md.comp.menu.container')}), + shape: const MaterialStatePropertyAll(_defaultMenuBorder), + alignment: AlignmentDirectional.bottomStart, + ); + + static const RoundedRectangleBorder _defaultMenuBorder = + ${shape('md.comp.menu.container', '')}; + + final BuildContext context; + + late final ColorScheme _colors = Theme.of(context).colorScheme; + + @override + MaterialStateProperty get backgroundColor { + return MaterialStatePropertyAll(${componentColor('md.comp.menu.container')}); + } + + @override + MaterialStateProperty? get shadowColor { + return MaterialStatePropertyAll(${color('md.comp.menu.container.shadow-color')}); + } + + @override + MaterialStateProperty? get surfaceTintColor { + return MaterialStatePropertyAll(${componentColor('md.comp.menu.container.surface-tint-layer')}); + } + + @override + MaterialStateProperty? get padding { + return const MaterialStatePropertyAll( + EdgeInsetsDirectional.symmetric( + horizontal: _kTopLevelMenuHorizontalMinPadding + ), + ); + } + + @override + VisualDensity get visualDensity => Theme.of(context).visualDensity; +} + +class _MenuButtonDefaultsM3 extends ButtonStyle { + _MenuButtonDefaultsM3(this.context) + : super( + animationDuration: kThemeChangeDuration, + enableFeedback: true, + alignment: AlignmentDirectional.centerStart, + ); + + final BuildContext context; + + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + MaterialStateProperty? get backgroundColor { + return ButtonStyleButton.allOrNull(Colors.transparent); + } + + // No default shadow color + + // No default surface tint color + + @override + MaterialStateProperty? get elevation { + return ButtonStyleButton.allOrNull(0.0); + } + + @override + MaterialStateProperty? get foregroundColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('md.comp.list.list-item.disabled.label-text')}; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.list.list-item.pressed.label-text')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.list.list-item.hover.label-text')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.list.list-item.focus.label-text')}; + } + return ${componentColor('md.comp.list.list-item.label-text')}; + }); + } + + @override + MaterialStateProperty? get iconColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('md.comp.list.list-item.disabled.leading-icon')}; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.list.list-item.pressed.leading-icon.icon')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.list.list-item.hover.leading-icon.icon')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.list.list-item.focus.leading-icon.icon')}; + } + return ${componentColor('md.comp.list.list-item.leading-icon')}; + }); + } + + // No default fixedSize + + @override + MaterialStateProperty? get maximumSize { + return ButtonStyleButton.allOrNull(Size.infinite); + } + + @override + MaterialStateProperty? get minimumSize { + return ButtonStyleButton.allOrNull(const Size(64.0, 48.0)); + } + + @override + MaterialStateProperty? get mouseCursor { + return MaterialStateProperty.resolveWith( + (Set states) { + if (states.contains(MaterialState.disabled)) { + return SystemMouseCursors.basic; + } + return SystemMouseCursors.click; + }, + ); + } + + @override + MaterialStateProperty? get overlayColor { + return MaterialStateProperty.resolveWith( + (Set states) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.list.list-item.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.list.list-item.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.list.list-item.focus.state-layer')}; + } + return Colors.transparent; + }, + ); + } + + @override + MaterialStateProperty? get padding { + return ButtonStyleButton.allOrNull(_scaledPadding(context)); + } + + // No default side + + @override + MaterialStateProperty? get shape { + return ButtonStyleButton.allOrNull(const RoundedRectangleBorder()); + } + + @override + InteractiveInkFeatureFactory? get splashFactory => Theme.of(context).splashFactory; + + @override + MaterialTapTargetSize? get tapTargetSize => Theme.of(context).materialTapTargetSize; + + @override + MaterialStateProperty get textStyle { + // TODO(tahatesser): This is taken from https://m3.material.io/components/menus/specs + // Update this when the token is available. + return MaterialStatePropertyAll(_textTheme.labelLarge); + } + + @override + VisualDensity? get visualDensity => Theme.of(context).visualDensity; + + // The horizontal padding number comes from the spec. + EdgeInsetsGeometry _scaledPadding(BuildContext context) { + VisualDensity visualDensity = Theme.of(context).visualDensity; + // When horizontal VisualDensity is greater than zero, set it to zero + // because the [ButtonStyleButton] has already handle the padding based on the density. + // However, the [ButtonStyleButton] doesn't allow the [VisualDensity] adjustment + // to reduce the width of the left/right padding, so we need to handle it here if + // the density is less than zero, such as on desktop platforms. + if (visualDensity.horizontal > 0) { + visualDensity = VisualDensity(vertical: visualDensity.vertical); + } + return ButtonStyleButton.scaledPadding( + EdgeInsets.symmetric(horizontal: math.max( + _kMenuViewPadding, + _kLabelItemDefaultSpacing + visualDensity.baseSizeAdjustment.dx, + )), + EdgeInsets.symmetric(horizontal: math.max( + _kMenuViewPadding, + 8 + visualDensity.baseSizeAdjustment.dx, + )), + const EdgeInsets.symmetric(horizontal: _kMenuViewPadding), + MediaQuery.maybeTextScaleFactorOf(context) ?? 1, + ); + } +} + +class _MenuDefaultsM3 extends MenuStyle { + _MenuDefaultsM3(this.context) + : super( + elevation: const MaterialStatePropertyAll(${elevation('md.comp.menu.container')}), + shape: const MaterialStatePropertyAll(_defaultMenuBorder), + alignment: AlignmentDirectional.topEnd, + ); + + static const RoundedRectangleBorder _defaultMenuBorder = + ${shape('md.comp.menu.container', '')}; + + final BuildContext context; + + late final ColorScheme _colors = Theme.of(context).colorScheme; + + @override + MaterialStateProperty get backgroundColor { + return MaterialStatePropertyAll(${componentColor('md.comp.menu.container')}); + } + + @override + MaterialStateProperty? get surfaceTintColor { + return MaterialStatePropertyAll(${componentColor('md.comp.menu.container.surface-tint-layer')}); + } + + @override + MaterialStateProperty? get shadowColor { + return MaterialStatePropertyAll(${color('md.comp.menu.container.shadow-color')}); + } + + @override + MaterialStateProperty? get padding { + return const MaterialStatePropertyAll( + EdgeInsetsDirectional.symmetric(vertical: _kMenuVerticalMinPadding), + ); + } + + @override + VisualDensity get visualDensity => Theme.of(context).visualDensity; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/motion_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/motion_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..0683244133c9119156079d169bb8df700af8d90e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/motion_template.dart @@ -0,0 +1,90 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; +import 'token_logger.dart'; + +class MotionTemplate extends TokenTemplate { + /// Since we generate the tokens dynamically, we need to store them and log + /// them manually, instead of using [getToken]. + MotionTemplate(String blockName, String fileName, this.tokens, this.tokensLogger) : super(blockName, fileName, tokens); + Map tokens; + TokenLogger tokensLogger; + + // List of duration tokens. + late List> durationTokens = tokens.entries.where( + (MapEntry entry) => entry.key.contains('.duration.') + ).toList() + ..sort( + (MapEntry a, MapEntry b) => (a.value as double).compareTo(b.value as double) + ); + + // List of easing curve tokens. + late List> easingCurveTokens = tokens.entries.where( + (MapEntry entry) => entry.key.contains('.easing.') + ).toList() + ..sort( + // Sort the legacy curves at the end of the list. + (MapEntry a, MapEntry b) => a.key.contains('legacy') ? 1 : a.key.compareTo(b.key) + ); + + String durationTokenString(String token, dynamic tokenValue) { + tokensLogger.log(token); + final String tokenName = token.split('.').last.replaceAll('-', '').replaceFirst('Ms', ''); + final int milliseconds = (tokenValue as double).toInt(); + return +''' + /// The $tokenName duration (${milliseconds}ms) in the Material specification. + /// + /// See also: + /// + /// * [M3 guidelines: Duration tokens](https://m3.material.io/styles/motion/easing-and-duration/tokens-specs#c009dec6-f29b-4503-b9f0-482af14a8bbd) + /// * [M3 guidelines: Applying easing and duration](https://m3.material.io/styles/motion/easing-and-duration/applying-easing-and-duration) + static const Duration $tokenName = Duration(milliseconds: $milliseconds); +'''; + } + + String easingCurveTokenString(String token, dynamic tokenValue) { + tokensLogger.log(token); + final String tokenName = token + .replaceFirst('md.sys.motion.easing.', '') + .replaceAllMapped(RegExp(r'[-\.](\w)'), (Match match) { + return match.group(1)!.toUpperCase(); + }); + return ''' + /// The $tokenName easing curve in the Material specification. + /// + /// See also: + /// + /// * [M3 guidelines: Easing tokens](https://m3.material.io/styles/motion/easing-and-duration/tokens-specs#433b1153-2ea3-4fe2-9748-803a47bc97ee) + /// * [M3 guidelines: Applying easing and duration](https://m3.material.io/styles/motion/easing-and-duration/applying-easing-and-duration) + static const Curve $tokenName = $tokenValue; +'''; + } + + @override + String generate() => ''' +/// The set of durations in the Material specification. +/// +/// See also: +/// +/// * [M3 guidelines: Duration tokens](https://m3.material.io/styles/motion/easing-and-duration/tokens-specs#c009dec6-f29b-4503-b9f0-482af14a8bbd) +/// * [M3 guidelines: Applying easing and duration](https://m3.material.io/styles/motion/easing-and-duration/applying-easing-and-duration) +abstract final class Durations { +${durationTokens.map((MapEntry entry) => durationTokenString(entry.key, entry.value)).join('\n')}} + + +// TODO(guidezpl): Improve with description and assets, b/289870605 + +/// The set of easing curves in the Material specification. +/// +/// See also: +/// +/// * [M3 guidelines: Easing tokens](https://m3.material.io/styles/motion/easing-and-duration/tokens-specs#433b1153-2ea3-4fe2-9748-803a47bc97ee) +/// * [M3 guidelines: Applying easing and duration](https://m3.material.io/styles/motion/easing-and-duration/applying-easing-and-duration) +/// * [Curves], for a collection of non-Material animation easing curves. +abstract final class Easing { +${easingCurveTokens.map((MapEntry entry) => easingCurveTokenString(entry.key, entry.value)).join('\n')}} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/navigation_bar_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/navigation_bar_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..55d0392c0c4f476f23fe604899d423aa12e5c173 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/navigation_bar_template.dart @@ -0,0 +1,63 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class NavigationBarTemplate extends TokenTemplate { + const NavigationBarTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.', + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends NavigationBarThemeData { + _${blockName}DefaultsM3(this.context) + : super( + height: ${getToken("md.comp.navigation-bar.container.height")}, + elevation: ${elevation("md.comp.navigation-bar.container")}, + labelBehavior: NavigationDestinationLabelBehavior.alwaysShow, + ); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override Color? get backgroundColor => ${componentColor("md.comp.navigation-bar.container")}; + + @override Color? get shadowColor => ${colorOrTransparent("md.comp.navigation-bar.container.shadow-color")}; + + @override Color? get surfaceTintColor => ${colorOrTransparent("md.comp.navigation-bar.container.surface-tint-layer.color")}; + + @override MaterialStateProperty? get iconTheme { + return MaterialStateProperty.resolveWith((Set states) { + return IconThemeData( + size: ${getToken("md.comp.navigation-bar.icon.size")}, + color: states.contains(MaterialState.disabled) + ? _colors.onSurfaceVariant.withOpacity(0.38) + : states.contains(MaterialState.selected) + ? ${componentColor("md.comp.navigation-bar.active.icon")} + : ${componentColor("md.comp.navigation-bar.inactive.icon")}, + ); + }); + } + + @override Color? get indicatorColor => ${componentColor("md.comp.navigation-bar.active-indicator")}; + @override ShapeBorder? get indicatorShape => ${shape("md.comp.navigation-bar.active-indicator")}; + + @override MaterialStateProperty? get labelTextStyle { + return MaterialStateProperty.resolveWith((Set states) { + final TextStyle style = ${textStyle("md.comp.navigation-bar.label-text")}!; + return style.apply( + color: states.contains(MaterialState.disabled) + ? _colors.onSurfaceVariant.withOpacity(0.38) + : states.contains(MaterialState.selected) + ? ${componentColor("md.comp.navigation-bar.active.label-text")} + : ${componentColor("md.comp.navigation-bar.inactive.label-text")} + ); + }); + } +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/navigation_drawer_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/navigation_drawer_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..13288262657fee926fcc521cabe664d6c851a269 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/navigation_drawer_template.dart @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class NavigationDrawerTemplate extends TokenTemplate { + const NavigationDrawerTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends NavigationDrawerThemeData { + _${blockName}DefaultsM3(this.context) + : super( + elevation: ${elevation("md.comp.navigation-drawer.modal.container")}, + tileHeight: ${getToken("md.comp.navigation-drawer.active-indicator.height")}, + indicatorShape: ${shape("md.comp.navigation-drawer.active-indicator")}, + indicatorSize: const Size(${getToken("md.comp.navigation-drawer.active-indicator.width")}, ${getToken("md.comp.navigation-drawer.active-indicator.height")}), + ); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + Color? get backgroundColor => ${componentColor("md.comp.navigation-drawer.container")}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent("md.comp.navigation-drawer.container.surface-tint-layer.color")}; + + @override + Color? get shadowColor => ${colorOrTransparent("md.comp.navigation-drawer.container.shadow-color")}; + + @override + Color? get indicatorColor => ${componentColor("md.comp.navigation-drawer.active-indicator")}; + + @override + MaterialStateProperty? get iconTheme { + return MaterialStateProperty.resolveWith((Set states) { + return IconThemeData( + size: ${getToken("md.comp.navigation-drawer.icon.size")}, + color: states.contains(MaterialState.disabled) + ? _colors.onSurfaceVariant.withOpacity(0.38) + : states.contains(MaterialState.selected) + ? ${componentColor("md.comp.navigation-drawer.active.icon")} + : ${componentColor("md.comp.navigation-drawer.inactive.icon")}, + ); + }); + } + + @override + MaterialStateProperty? get labelTextStyle { + return MaterialStateProperty.resolveWith((Set states) { + final TextStyle style = ${textStyle("md.comp.navigation-drawer.label-text")}!; + return style.apply( + color: states.contains(MaterialState.disabled) + ? _colors.onSurfaceVariant.withOpacity(0.38) + : states.contains(MaterialState.selected) + ? ${componentColor("md.comp.navigation-drawer.active.label-text")} + : ${componentColor("md.comp.navigation-drawer.inactive.label-text")}, + ); + }); + } +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/navigation_rail_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/navigation_rail_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..555566729cf6db4c8f6604da55a956f09c541399 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/navigation_rail_template.dart @@ -0,0 +1,59 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class NavigationRailTemplate extends TokenTemplate { + const NavigationRailTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.', + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends NavigationRailThemeData { + _${blockName}DefaultsM3(this.context) + : super( + elevation: ${elevation("md.comp.navigation-rail.container")}, + groupAlignment: -1, + labelType: NavigationRailLabelType.none, + useIndicator: true, + minWidth: ${getToken('md.comp.navigation-rail.container.width')}, + minExtendedWidth: 256, + ); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override Color? get backgroundColor => ${componentColor("md.comp.navigation-rail.container")}; + + @override TextStyle? get unselectedLabelTextStyle { + return ${textStyle("md.comp.navigation-rail.label-text")}!.copyWith(color: ${componentColor("md.comp.navigation-rail.inactive.focus.label-text")}); + } + + @override TextStyle? get selectedLabelTextStyle { + return ${textStyle("md.comp.navigation-rail.label-text")}!.copyWith(color: ${componentColor("md.comp.navigation-rail.active.focus.label-text")}); + } + + @override IconThemeData? get unselectedIconTheme { + return IconThemeData( + size: ${getToken("md.comp.navigation-rail.icon.size")}, + color: ${componentColor("md.comp.navigation-rail.inactive.icon")}, + ); + } + + @override IconThemeData? get selectedIconTheme { + return IconThemeData( + size: ${getToken("md.comp.navigation-rail.icon.size")}, + color: ${componentColor("md.comp.navigation-rail.active.icon")}, + ); + } + + @override Color? get indicatorColor => ${componentColor("md.comp.navigation-rail.active-indicator")}; + + @override ShapeBorder? get indicatorShape => ${shape("md.comp.navigation-rail.active-indicator")}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/popup_menu_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/popup_menu_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..bed11d0b8b09aff896dc045c2ca51858af63f562 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/popup_menu_template.dart @@ -0,0 +1,50 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class PopupMenuTemplate extends TokenTemplate { + const PopupMenuTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.', + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends PopupMenuThemeData { + _${blockName}DefaultsM3(this.context) + : super(elevation: ${elevation('md.comp.menu.container')}); + + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + late final TextTheme _textTheme = _theme.textTheme; + + @override MaterialStateProperty? get labelTextStyle { + return MaterialStateProperty.resolveWith((Set states) { + final TextStyle style = _textTheme.labelLarge!; + if (states.contains(MaterialState.disabled)) { + return style.apply(color: ${componentColor('md.comp.list.list-item.disabled.label-text')}); + } + return style.apply(color: ${componentColor('md.comp.list.list-item.label-text')}); + }); + } + + @override + Color? get color => ${componentColor('md.comp.menu.container')}; + + @override + Color? get shadowColor => ${color("md.comp.menu.container.shadow-color")}; + + @override + Color? get surfaceTintColor => ${color("md.comp.menu.container.surface-tint-layer.color")}; + + @override + ShapeBorder? get shape => ${shape("md.comp.menu.container")}; + + // TODO(tahatesser): This is taken from https://m3.material.io/components/menus/specs + // Update this when the token is available. + static EdgeInsets menuHorizontalPadding = const EdgeInsets.symmetric(horizontal: 12.0); +}'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/progress_indicator_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/progress_indicator_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..6e4d889791a629ff4ae912e3a6bc1434a34804d0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/progress_indicator_template.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class ProgressIndicatorTemplate extends TokenTemplate { + const ProgressIndicatorTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + @override + String generate() => ''' +class _Circular${blockName}DefaultsM3 extends ProgressIndicatorThemeData { + _Circular${blockName}DefaultsM3(this.context); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + + @override + Color get color => ${componentColor('md.comp.circular-progress-indicator.active-indicator')}; +} + +class _Linear${blockName}DefaultsM3 extends ProgressIndicatorThemeData { + _Linear${blockName}DefaultsM3(this.context); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + + @override + Color get color => ${componentColor('md.comp.linear-progress-indicator.active-indicator')}; + + @override + Color get linearTrackColor => ${componentColor('md.comp.linear-progress-indicator.track')}; + + @override + double get linearMinHeight => ${getToken('md.comp.linear-progress-indicator.track.height')}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/radio_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/radio_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..0d4ee453eb1b5e972b4d55a39443d0bfd2a7251d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/radio_template.dart @@ -0,0 +1,90 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class RadioTemplate extends TokenTemplate { + const RadioTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + @override + String generate() => ''' +class _RadioDefaultsM3 extends RadioThemeData { + _RadioDefaultsM3(this.context); + + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + + @override + MaterialStateProperty get fillColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('md.comp.radio-button.disabled.selected.icon')}; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.radio-button.selected.pressed.icon')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.radio-button.selected.hover.icon')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.radio-button.selected.focus.icon')}; + } + return ${componentColor('md.comp.radio-button.selected.icon')}; + } + if (states.contains(MaterialState.disabled)) { + return ${componentColor('md.comp.radio-button.disabled.unselected.icon')}; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.radio-button.unselected.pressed.icon')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.radio-button.unselected.hover.icon')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.radio-button.unselected.focus.icon')}; + } + return ${componentColor('md.comp.radio-button.unselected.icon')}; + }); + } + + @override + MaterialStateProperty get overlayColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.radio-button.selected.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.radio-button.selected.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.radio-button.selected.focus.state-layer')}; + } + return Colors.transparent; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.radio-button.unselected.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.radio-button.unselected.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.radio-button.unselected.focus.state-layer')}; + } + return Colors.transparent; + }); + } + + @override + MaterialTapTargetSize get materialTapTargetSize => _theme.materialTapTargetSize; + + @override + VisualDensity get visualDensity => _theme.visualDensity; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/search_bar_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/search_bar_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..670121b9cb50578c5afe63e7d2c77f22b174fcc2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/search_bar_template.dart @@ -0,0 +1,79 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class SearchBarTemplate extends TokenTemplate { + const SearchBarTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + @override + String generate() => ''' +class _SearchBarDefaultsM3 extends SearchBarThemeData { + _SearchBarDefaultsM3(this.context); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + MaterialStateProperty? get backgroundColor => + MaterialStatePropertyAll(${componentColor("md.comp.search-bar.container")}); + + @override + MaterialStateProperty? get elevation => + const MaterialStatePropertyAll(${elevation("md.comp.search-bar.container")}); + + @override + MaterialStateProperty? get shadowColor => + MaterialStatePropertyAll(_colors.shadow); + + @override + MaterialStateProperty? get surfaceTintColor => + MaterialStatePropertyAll(${colorOrTransparent("md.comp.search-bar.container.surface-tint-layer.color")}); + + @override + MaterialStateProperty? get overlayColor => + MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor("md.comp.search-bar.pressed.state-layer")}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor("md.comp.search-bar.hover.state-layer")}; + } + if (states.contains(MaterialState.focused)) { + return ${colorOrTransparent("md.comp.search-bar.focused.state-layer")}; + } + return Colors.transparent; + }); + + // No default side + + @override + MaterialStateProperty? get shape => + const MaterialStatePropertyAll(${shape('md.comp.search-bar.container', '')}); + + @override + MaterialStateProperty? get padding => + const MaterialStatePropertyAll(EdgeInsets.symmetric(horizontal: 8.0)); + + @override + MaterialStateProperty get textStyle => + MaterialStatePropertyAll(${textStyleWithColor('md.comp.search-bar.input-text')}); + + @override + MaterialStateProperty get hintStyle => + MaterialStatePropertyAll(${textStyleWithColor('md.comp.search-bar.supporting-text')}); + + @override + BoxConstraints get constraints => + const BoxConstraints(minWidth: 360.0, maxWidth: 800.0, minHeight: ${getToken('md.comp.search-bar.container.height')}); + + @override + TextCapitalization get textCapitalization => TextCapitalization.none; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/search_view_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/search_view_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..44f7b5c42728d914bf1ba11555a56df8f7c2005e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/search_view_template.dart @@ -0,0 +1,54 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class SearchViewTemplate extends TokenTemplate { + const SearchViewTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends ${blockName}ThemeData { + _${blockName}DefaultsM3(this.context, {required this.isFullScreen}); + + final BuildContext context; + final bool isFullScreen; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + static double fullScreenBarHeight = ${getToken('md.comp.search-view.full-screen.header.container.height')}; + + @override + Color? get backgroundColor => ${componentColor('md.comp.search-view.container')}; + + @override + double? get elevation => ${elevation('md.comp.search-view.container')}; + + @override + Color? get surfaceTintColor => ${colorOrTransparent('md.comp.search-view.container.surface-tint-layer.color')}; + + // No default side + + @override + OutlinedBorder? get shape => isFullScreen + ? ${shape('md.comp.search-view.full-screen.container')} + : ${shape('md.comp.search-view.docked.container')}; + + @override + TextStyle? get headerTextStyle => ${textStyleWithColor('md.comp.search-view.header.input-text')}; + + @override + TextStyle? get headerHintStyle => ${textStyleWithColor('md.comp.search-view.header.supporting-text')}; + + @override + BoxConstraints get constraints => const BoxConstraints(minWidth: 360.0, minHeight: 240.0); + + @override + Color? get dividerColor => ${componentColor('md.comp.search-view.divider')}; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/segmented_button_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/segmented_button_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..8f9e8f6a3dd32105a7b796e7b54bb291819c4e84 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/segmented_button_template.dart @@ -0,0 +1,151 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class SegmentedButtonTemplate extends TokenTemplate { + const SegmentedButtonTemplate(this.tokenGroup, super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + final String tokenGroup; + + String _layerOpacity(String layerToken) { + if (tokenAvailable(layerToken)) { + final String layerValue = getToken(layerToken) as String; + if (tokenAvailable(layerValue)) { + final String? opacityValue = opacity(layerValue); + if (opacityValue != null) { + return '.withOpacity($opacityValue)'; + } + } + } + return ''; + } + + String _stateColor(String componentToken, String type, String state) { + final String baseColor = color('$componentToken.$type.$state.state-layer.color', ''); + if (baseColor.isEmpty) { + return 'null'; + } + final String opacity = _layerOpacity('$componentToken.$state.state-layer.opacity'); + return '$baseColor$opacity'; + } + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends SegmentedButtonThemeData { + _${blockName}DefaultsM3(this.context); + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + @override ButtonStyle? get style { + return ButtonStyle( + textStyle: MaterialStatePropertyAll(${textStyle('$tokenGroup.label-text')}), + backgroundColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('$tokenGroup.disabled')}; + } + if (states.contains(MaterialState.selected)) { + return ${componentColor('$tokenGroup.selected.container')}; + } + return ${componentColor('$tokenGroup.unselected.container')}; + }), + foregroundColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor('$tokenGroup.disabled.label-text')}; + } + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('$tokenGroup.selected.pressed.label-text')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.selected.hover.label-text')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.selected.focus.label-text')}; + } + return ${componentColor('$tokenGroup.selected.label-text')}; + } else { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('$tokenGroup.unselected.pressed.label-text')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.unselected.hover.label-text')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.unselected.focus.label-text')}; + } + return ${componentColor('$tokenGroup.unselected.label-text')}; + } + }), + overlayColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${_stateColor(tokenGroup, 'selected', 'pressed')}; + } + if (states.contains(MaterialState.hovered)) { + return ${_stateColor(tokenGroup, 'selected', 'hover')}; + } + if (states.contains(MaterialState.focused)) { + return ${_stateColor(tokenGroup, 'selected', 'focus')}; + } + } else { + if (states.contains(MaterialState.pressed)) { + return ${_stateColor(tokenGroup, 'unselected', 'pressed')}; + } + if (states.contains(MaterialState.hovered)) { + return ${_stateColor(tokenGroup, 'unselected', 'hover')}; + } + if (states.contains(MaterialState.focused)) { + return ${_stateColor(tokenGroup, 'unselected', 'focus')}; + } + } + return null; + }), + surfaceTintColor: const MaterialStatePropertyAll(Colors.transparent), + elevation: const MaterialStatePropertyAll(0), + iconSize: const MaterialStatePropertyAll(${getToken('$tokenGroup.with-icon.icon.size')}), + side: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${border("$tokenGroup.disabled.outline")}; + } + return ${border("$tokenGroup.outline")}; + }), + shape: const MaterialStatePropertyAll(${shape(tokenGroup, '')}), + minimumSize: const MaterialStatePropertyAll(Size.fromHeight(${getToken('$tokenGroup.container.height')})), + ); + } + @override + Widget? get selectedIcon => const Icon(Icons.check); + + static MaterialStateProperty resolveStateColor(Color? unselectedColor, Color? selectedColor){ + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return selectedColor?.withOpacity(0.12); + } + if (states.contains(MaterialState.hovered)) { + return selectedColor?.withOpacity(0.08); + } + if (states.contains(MaterialState.focused)) { + return selectedColor?.withOpacity(0.12); + } + } else { + if (states.contains(MaterialState.pressed)) { + return unselectedColor?.withOpacity(0.12); + } + if (states.contains(MaterialState.hovered)) { + return unselectedColor?.withOpacity(0.08); + } + if (states.contains(MaterialState.focused)) { + return unselectedColor?.withOpacity(0.12); + } + } + return Colors.transparent; + }); + } +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/slider_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/slider_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..8ced06757f2809ea4c68ce540afc08d5c1232dc5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/slider_template.dart @@ -0,0 +1,84 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class SliderTemplate extends TokenTemplate { + const SliderTemplate(this.tokenGroup, super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + final String tokenGroup; + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends SliderThemeData { + _${blockName}DefaultsM3(this.context) + : super(trackHeight: ${getToken('$tokenGroup.active.track.height')}); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + + @override + Color? get activeTrackColor => ${componentColor('$tokenGroup.active.track')}; + + @override + Color? get inactiveTrackColor => ${componentColor('$tokenGroup.inactive.track')}; + + @override + Color? get secondaryActiveTrackColor => _colors.primary.withOpacity(0.54); + + @override + Color? get disabledActiveTrackColor => ${componentColor('$tokenGroup.disabled.active.track')}; + + @override + Color? get disabledInactiveTrackColor => ${componentColor('$tokenGroup.disabled.inactive.track')}; + + @override + Color? get disabledSecondaryActiveTrackColor => _colors.onSurface.withOpacity(0.12); + + @override + Color? get activeTickMarkColor => ${componentColor('$tokenGroup.with-tick-marks.active.container')}; + + @override + Color? get inactiveTickMarkColor => ${componentColor('$tokenGroup.with-tick-marks.inactive.container')}; + + @override + Color? get disabledActiveTickMarkColor => ${componentColor('$tokenGroup.with-tick-marks.disabled.container')}; + + @override + Color? get disabledInactiveTickMarkColor => ${componentColor('$tokenGroup.with-tick-marks.disabled.container')}; + + @override + Color? get thumbColor => ${componentColor('$tokenGroup.handle')}; + + @override + Color? get disabledThumbColor => Color.alphaBlend(${componentColor('$tokenGroup.disabled.handle')}, _colors.surface); + + @override + Color? get overlayColor => MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.dragged)) { + return ${componentColor('$tokenGroup.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('$tokenGroup.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('$tokenGroup.focus.state-layer')}; + } + + return Colors.transparent; + }); + + @override + TextStyle? get valueIndicatorTextStyle => ${textStyle('$tokenGroup.label.label-text')}!.copyWith( + color: ${componentColor('$tokenGroup.label.label-text')}, + ); + + @override + SliderComponentShape? get valueIndicatorShape => const DropSliderValueIndicatorShape(); +} +'''; + +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/snackbar_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/snackbar_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..66bd1b25f7814e72848f525d80977e8ef443759a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/snackbar_template.dart @@ -0,0 +1,77 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class SnackbarTemplate extends TokenTemplate { + const SnackbarTemplate( + this.tokenGroup, super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.' + }); + + final String tokenGroup; + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends SnackBarThemeData { + _${blockName}DefaultsM3(this.context); + + final BuildContext context; + late final ThemeData _theme = Theme.of(context); + late final ColorScheme _colors = _theme.colorScheme; + + @override + Color get backgroundColor => ${componentColor("$tokenGroup.container")}; + + @override + Color get actionTextColor => MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return ${componentColor("$tokenGroup.action.pressed.label-text")}; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor("$tokenGroup.action.pressed.label-text")}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor("$tokenGroup.action.hover.label-text")}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor("$tokenGroup.action.focus.label-text")}; + } + return ${componentColor("$tokenGroup.action.label-text")}; + }); + + @override + Color get disabledActionTextColor => + ${componentColor("$tokenGroup.action.pressed.label-text")}; + + + @override + TextStyle get contentTextStyle => + ${textStyle("$tokenGroup.supporting-text")}!.copyWith + (color: ${componentColor("$tokenGroup.supporting-text")}, + ); + + @override + double get elevation => ${elevation("$tokenGroup.container")}; + + @override + ShapeBorder get shape => ${shape("$tokenGroup.container")}; + + @override + SnackBarBehavior get behavior => SnackBarBehavior.fixed; + + @override + EdgeInsets get insetPadding => const EdgeInsets.fromLTRB(15.0, 5.0, 15.0, 10.0); + + @override + bool get showCloseIcon => false; + + @override + Color? get closeIconColor => ${componentColor("$tokenGroup.icon")}; + + @override + double get actionOverflowThreshold => 0.25; +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/surface_tint.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/surface_tint.dart new file mode 100644 index 0000000000000000000000000000000000000000..3c4c0c89d881141655526bbc40702f737f548c5c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/surface_tint.dart @@ -0,0 +1,25 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class SurfaceTintTemplate extends TokenTemplate { + const SurfaceTintTemplate(super.blockName, super.fileName, super.tokens); + + @override + String generate() => ''' +// Surface tint opacities based on elevations according to the +// Material Design 3 specification: +// https://m3.material.io/styles/color/the-color-system/color-roles +// Ordered by increasing elevation. +const List<_ElevationOpacity> _surfaceTintElevationOpacities = <_ElevationOpacity>[ + _ElevationOpacity(${getToken('md.sys.elevation.level0')}, 0.0), // Elevation level 0 + _ElevationOpacity(${getToken('md.sys.elevation.level1')}, 0.05), // Elevation level 1 + _ElevationOpacity(${getToken('md.sys.elevation.level2')}, 0.08), // Elevation level 2 + _ElevationOpacity(${getToken('md.sys.elevation.level3')}, 0.11), // Elevation level 3 + _ElevationOpacity(${getToken('md.sys.elevation.level4')}, 0.12), // Elevation level 4 + _ElevationOpacity(${getToken('md.sys.elevation.level5')}, 0.14), // Elevation level 5 +]; +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/switch_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/switch_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..5592c2039a35779098692cd9eb6374656789fe3b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/switch_template.dart @@ -0,0 +1,229 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class SwitchTemplate extends TokenTemplate { + const SwitchTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + }); + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends SwitchThemeData { + _${blockName}DefaultsM3(this.context); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + + @override + MaterialStateProperty get thumbColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('md.comp.switch.disabled.selected.handle')}; + } + return ${componentColor('md.comp.switch.disabled.unselected.handle')}; + } + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.switch.selected.pressed.handle')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.switch.selected.hover.handle')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.switch.selected.focus.handle')}; + } + return ${componentColor('md.comp.switch.selected.handle')}; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.switch.unselected.pressed.handle')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.switch.unselected.hover.handle')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.switch.unselected.focus.handle')}; + } + return ${componentColor('md.comp.switch.unselected.handle')}; + }); + } + + @override + MaterialStateProperty get trackColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('md.comp.switch.disabled.selected.track')}.withOpacity(${opacity('md.comp.switch.disabled.track.opacity')}); + } + return ${componentColor('md.comp.switch.disabled.unselected.track')}.withOpacity(${opacity('md.comp.switch.disabled.track.opacity')}); + } + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.switch.selected.pressed.track')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.switch.selected.hover.track')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.switch.selected.focus.track')}; + } + return ${componentColor('md.comp.switch.selected.track')}; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.switch.unselected.pressed.track')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.switch.unselected.hover.track')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.switch.unselected.focus.track')}; + } + return ${componentColor('md.comp.switch.unselected.track')}; + }); + } + + @override + MaterialStateProperty get trackOutlineColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return Colors.transparent; + } + if (states.contains(MaterialState.disabled)) { + return ${componentColor('md.comp.switch.disabled.unselected.track.outline')}.withOpacity(${opacity('md.comp.switch.disabled.track.opacity')}); + } + return ${componentColor('md.comp.switch.unselected.track.outline')}; + }); + } + + @override + MaterialStateProperty get overlayColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.switch.selected.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.switch.selected.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.switch.selected.focus.state-layer')}; + } + return null; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.switch.unselected.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.switch.unselected.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.switch.unselected.focus.state-layer')}; + } + return null; + }); + } + + @override + MaterialStateProperty get mouseCursor { + return MaterialStateProperty.resolveWith((Set states) + => MaterialStateMouseCursor.clickable.resolve(states)); + } + + @override + MaterialStatePropertyAll get trackOutlineWidth => const MaterialStatePropertyAll(${getToken('md.comp.switch.track.outline.width')}); + + @override + double get splashRadius => ${getToken('md.comp.switch.state-layer.size')} / 2; +} + +class _SwitchConfigM3 with _SwitchConfig { + _SwitchConfigM3(this.context) + : _colors = Theme.of(context).colorScheme; + + BuildContext context; + final ColorScheme _colors; + + static const double iconSize = ${getToken('md.comp.switch.unselected.icon.size')}; + + @override + double get activeThumbRadius => ${getToken('md.comp.switch.selected.handle.width')} / 2; + + @override + MaterialStateProperty get iconColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('md.comp.switch.disabled.selected.icon')}; + } + return ${componentColor('md.comp.switch.disabled.unselected.icon')}; + } + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.switch.selected.pressed.icon')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.switch.selected.hover.icon')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.switch.selected.focus.icon')}; + } + return ${componentColor('md.comp.switch.selected.icon')}; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.switch.unselected.pressed.icon')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.switch.unselected.hover.icon')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.switch.unselected.focus.icon')}; + } + return ${componentColor('md.comp.switch.unselected.icon')}; + }); + } + + @override + double get inactiveThumbRadius => ${getToken('md.comp.switch.unselected.handle.width')} / 2; + + @override + double get pressedThumbRadius => ${getToken('md.comp.switch.pressed.handle.width')} / 2; + + @override + double get switchHeight => _kSwitchMinSize + 8.0; + + @override + double get switchHeightCollapsed => _kSwitchMinSize; + + @override + double get switchWidth => trackWidth - 2 * (trackHeight / 2.0) + _kSwitchMinSize; + + @override + double get thumbRadiusWithIcon => ${getToken('md.comp.switch.with-icon.handle.width')} / 2; + + @override + List? get thumbShadow => kElevationToShadow[0]; + + @override + double get trackHeight => ${getToken('md.comp.switch.track.height')}; + + @override + double get trackWidth => ${getToken('md.comp.switch.track.width')}; + + // The thumb size at the middle of the track. Hand coded default based on the animation specs. + @override + Size get transitionalThumbSize => const Size(34, 22); + + // Hand coded default based on the animation specs. + @override + int get toggleDuration => 300; + + // Hand coded default based on the animation specs. + @override + double? get thumbOffset => null; +} +'''; + +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/tabs_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/tabs_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..f520f617b2012e685938c3e5b99f49dc958548d1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/tabs_template.dart @@ -0,0 +1,148 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class TabsTemplate extends TokenTemplate { + const TabsTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.', + }); + + @override + String generate() => ''' +class _${blockName}PrimaryDefaultsM3 extends TabBarTheme { + _${blockName}PrimaryDefaultsM3(this.context, this.isScrollable) + : super(indicatorSize: TabBarIndicatorSize.label); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + final bool isScrollable; + + @override + Color? get dividerColor => ${componentColor("md.comp.primary-navigation-tab.divider")}; + + @override + double? get dividerHeight => ${getToken('md.comp.primary-navigation-tab.divider.height')}; + + @override + Color? get indicatorColor => ${componentColor("md.comp.primary-navigation-tab.active-indicator")}; + + @override + Color? get labelColor => ${componentColor("md.comp.primary-navigation-tab.with-label-text.active.label-text")}; + + @override + TextStyle? get labelStyle => ${textStyle("md.comp.primary-navigation-tab.with-label-text.label-text")}; + + @override + Color? get unselectedLabelColor => ${componentColor("md.comp.primary-navigation-tab.with-label-text.inactive.label-text")}; + + @override + TextStyle? get unselectedLabelStyle => ${textStyle("md.comp.primary-navigation-tab.with-label-text.label-text")}; + + @override + MaterialStateProperty get overlayColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.primary-navigation-tab.active.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.primary-navigation-tab.active.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.primary-navigation-tab.active.focus.state-layer')}; + } + return null; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.primary-navigation-tab.inactive.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.primary-navigation-tab.inactive.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.primary-navigation-tab.inactive.focus.state-layer')}; + } + return null; + }); + } + + @override + InteractiveInkFeatureFactory? get splashFactory => Theme.of(context).splashFactory; + + @override + TabAlignment? get tabAlignment => isScrollable ? TabAlignment.startOffset : TabAlignment.fill; + + static double indicatorWeight = ${getToken('md.comp.primary-navigation-tab.active-indicator.height')}; +} + +class _${blockName}SecondaryDefaultsM3 extends TabBarTheme { + _${blockName}SecondaryDefaultsM3(this.context, this.isScrollable) + : super(indicatorSize: TabBarIndicatorSize.tab); + + final BuildContext context; + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + final bool isScrollable; + + @override + Color? get dividerColor => ${componentColor("md.comp.secondary-navigation-tab.divider")}; + + @override + double? get dividerHeight => ${getToken('md.comp.secondary-navigation-tab.divider.height')}; + + @override + Color? get indicatorColor => ${componentColor("md.comp.primary-navigation-tab.active-indicator")}; + + @override + Color? get labelColor => ${componentColor("md.comp.secondary-navigation-tab.active.label-text")}; + + @override + TextStyle? get labelStyle => ${textStyle("md.comp.secondary-navigation-tab.label-text")}; + + @override + Color? get unselectedLabelColor => ${componentColor("md.comp.secondary-navigation-tab.inactive.label-text")}; + + @override + TextStyle? get unselectedLabelStyle => ${textStyle("md.comp.secondary-navigation-tab.label-text")}; + + @override + MaterialStateProperty get overlayColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.secondary-navigation-tab.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.secondary-navigation-tab.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.secondary-navigation-tab.focus.state-layer')}; + } + return null; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor('md.comp.secondary-navigation-tab.pressed.state-layer')}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor('md.comp.secondary-navigation-tab.hover.state-layer')}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor('md.comp.secondary-navigation-tab.focus.state-layer')}; + } + return null; + }); + } + + @override + InteractiveInkFeatureFactory? get splashFactory => Theme.of(context).splashFactory; + + @override + TabAlignment? get tabAlignment => isScrollable ? TabAlignment.startOffset : TabAlignment.fill; +} +'''; + +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/template.dart new file mode 100644 index 0000000000000000000000000000000000000000..fffff0461bd14da8bcffee62d0784b3b8ae9efd1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/template.dart @@ -0,0 +1,268 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +import 'token_logger.dart'; + +/// Base class for code generation templates. +abstract class TokenTemplate { + const TokenTemplate(this.blockName, this.fileName, this._tokens, { + this.colorSchemePrefix = 'Theme.of(context).colorScheme.', + this.textThemePrefix = 'Theme.of(context).textTheme.' + }); + + /// Name of the code block that this template will generate. + /// + /// Used to identify an existing block when updating it. + final String blockName; + + /// Name of the file that will be updated with the generated code. + final String fileName; + + /// Map of token data extracted from the Material Design token database. + final Map _tokens; + + /// Optional prefix prepended to color definitions. + /// + /// Defaults to 'Theme.of(context).colorScheme.' + final String colorSchemePrefix; + + /// Optional prefix prepended to text style definitions. + /// + /// Defaults to 'Theme.of(context).textTheme.' + final String textThemePrefix; + + /// Check if a token is available. + bool tokenAvailable(String tokenName) => _tokens.containsKey(tokenName); + + /// Resolve a token while logging its usage. + dynamic getToken(String tokenName) { + tokenLogger.log(tokenName); + return _tokens[tokenName]; + } + + static const String beginGeneratedComment = ''' + +// BEGIN GENERATED TOKEN PROPERTIES'''; + + static const String headerComment = ''' + +// Do not edit by hand. The code between the "BEGIN GENERATED" and +// "END GENERATED" comments are generated from data in the Material +// Design token database by the script: +// dev/tools/gen_defaults/bin/gen_defaults.dart. + +'''; + + static const String endGeneratedComment = ''' + +// END GENERATED TOKEN PROPERTIES'''; + + /// Replace or append the contents of the file with the text from [generate]. + /// + /// If the file already contains a generated text block matching the + /// [blockName], it will be replaced by the [generate] output. Otherwise + /// the content will just be appended to the end of the file. + Future updateFile() async { + final String contents = File(fileName).readAsStringSync(); + final String beginComment = '$beginGeneratedComment - $blockName\n'; + final String endComment = '$endGeneratedComment - $blockName\n'; + final int beginPreviousBlock = contents.indexOf(beginComment); + final int endPreviousBlock = contents.indexOf(endComment); + late String contentBeforeBlock; + late String contentAfterBlock; + if (beginPreviousBlock != -1) { + if (endPreviousBlock < beginPreviousBlock) { + print('Unable to find block named $blockName in $fileName, skipping code generation.'); + return; + } + // Found a valid block matching the name, so record the content before and after. + contentBeforeBlock = contents.substring(0, beginPreviousBlock); + contentAfterBlock = contents.substring(endPreviousBlock + endComment.length); + } else { + // Just append to the bottom. + contentBeforeBlock = contents; + contentAfterBlock = ''; + } + + final StringBuffer buffer = StringBuffer(contentBeforeBlock); + buffer.write(beginComment); + buffer.write(headerComment); + buffer.write(generate()); + buffer.write(endComment); + buffer.write(contentAfterBlock); + File(fileName).writeAsStringSync(buffer.toString()); + } + + /// Provide the generated content for the template. + /// + /// This abstract method needs to be implemented by subclasses + /// to provide the content that [updateFile] will append to the + /// bottom of the file. + String generate(); + + /// Generate a [ColorScheme] color name for the given token. + /// + /// If there is a value for the given token, this will return + /// the value prepended with [colorSchemePrefix]. + /// + /// Otherwise it will return [defaultValue]. + /// + /// See also: + /// * [componentColor], that provides support for an optional opacity. + String color(String colorToken, [String defaultValue = 'null']) { + return tokenAvailable(colorToken) + ? '$colorSchemePrefix${getToken(colorToken)}' + : defaultValue; + } + + /// Generate a [ColorScheme] color name for the given token or a transparent + /// color if there is no value for the token. + /// + /// If there is a value for the given token, this will return + /// the value prepended with [colorSchemePrefix]. + /// + /// Otherwise it will return 'Colors.transparent'. + /// + /// See also: + /// * [componentColor], that provides support for an optional opacity. + String? colorOrTransparent(String token) => color(token, 'Colors.transparent'); + + /// Generate a [ColorScheme] color name for the given component's color + /// with opacity if available. + /// + /// If there is a value for the given component's color, this will return + /// the value prepended with [colorSchemePrefix]. If there is also + /// an opacity specified for the component, then the returned value + /// will include this opacity calculation. + /// + /// If there is no value for the component's color, 'null' will be returned. + /// + /// See also: + /// * [color], that provides support for looking up a raw color token. + String componentColor(String componentToken) { + final String colorToken = '$componentToken.color'; + if (!tokenAvailable(colorToken)) { + return 'null'; + } + String value = color(colorToken); + final String opacityToken = '$componentToken.opacity'; + if (tokenAvailable(opacityToken)) { + value += '.withOpacity(${opacity(opacityToken)})'; + } + return value; + } + + /// Generate the opacity value for the given token. + String? opacity(String token) { + tokenLogger.log(token); + return _numToString(getToken(token)); + } + + String? _numToString(Object? value, [int? digits]) { + if (value == null) { + return null; + } + if (value is num) { + if (value == double.infinity) { + return 'double.infinity'; + } + return digits == null ? value.toString() : value.toStringAsFixed(digits); + } + return getToken(value as String).toString(); + } + + /// Generate an elevation value for the given component token. + String elevation(String componentToken) { + return getToken(getToken('$componentToken.elevation')! as String)!.toString(); + } + + /// Generate a size value for the given component token. + /// + /// Non-square sizes are specified as width and height. + String size(String componentToken) { + final String sizeToken = '$componentToken.size'; + if (!tokenAvailable(sizeToken)) { + final String widthToken = '$componentToken.width'; + final String heightToken = '$componentToken.height'; + if (!tokenAvailable(widthToken) && !tokenAvailable(heightToken)) { + throw Exception('Unable to find width, height, or size tokens for $componentToken'); + } + final String? width = _numToString(tokenAvailable(widthToken) ? getToken(widthToken)! as num : double.infinity, 0); + final String? height = _numToString(tokenAvailable(heightToken) ? getToken(heightToken)! as num : double.infinity, 0); + return 'const Size($width, $height)'; + } + return 'const Size.square(${_numToString(getToken(sizeToken))})'; + } + + /// Generate a shape constant for the given component token. + /// + /// Currently supports family: + /// - "SHAPE_FAMILY_ROUNDED_CORNERS" which maps to [RoundedRectangleBorder]. + /// - "SHAPE_FAMILY_CIRCULAR" which maps to a [StadiumBorder]. + String shape(String componentToken, [String prefix = 'const ']) { + + final Map shape = getToken(getToken('$componentToken.shape') as String) as Map; + switch (shape['family']) { + case 'SHAPE_FAMILY_ROUNDED_CORNERS': + final double topLeft = shape['topLeft'] as double; + final double topRight = shape['topRight'] as double; + final double bottomLeft = shape['bottomLeft'] as double; + final double bottomRight = shape['bottomRight'] as double; + if (topLeft == topRight && topLeft == bottomLeft && topLeft == bottomRight) { + if (topLeft == 0) { + return '${prefix}RoundedRectangleBorder()'; + } + return '${prefix}RoundedRectangleBorder(borderRadius: BorderRadius.all(Radius.circular($topLeft)))'; + } + if (topLeft == topRight && bottomLeft == bottomRight) { + return '${prefix}RoundedRectangleBorder(borderRadius: BorderRadius.vertical(' + '${topLeft > 0 ? 'top: Radius.circular($topLeft)':''}' + '${topLeft > 0 && bottomLeft > 0 ? ',':''}' + '${bottomLeft > 0 ? 'bottom: Radius.circular($bottomLeft)':''}' + '))'; + } + return '${prefix}RoundedRectangleBorder(borderRadius: ' + 'BorderRadius.only(' + 'topLeft: Radius.circular(${shape['topLeft']}), ' + 'topRight: Radius.circular(${shape['topRight']}), ' + 'bottomLeft: Radius.circular(${shape['bottomLeft']}), ' + 'bottomRight: Radius.circular(${shape['bottomRight']})))'; + case 'SHAPE_FAMILY_CIRCULAR': + return '${prefix}StadiumBorder()'; + } + print('Unsupported shape family type: ${shape['family']} for $componentToken'); + return ''; + } + + /// Generate a [BorderSide] for the given component. + String border(String componentToken) { + + if (!tokenAvailable('$componentToken.color')) { + return 'null'; + } + final String borderColor = componentColor(componentToken); + final double width = (getToken('$componentToken.width') ?? getToken('$componentToken.height') ?? 1.0) as double; + return 'BorderSide(color: $borderColor${width != 1.0 ? ", width: $width" : ""})'; + } + + /// Generate a [TextTheme] text style name for the given component token. + String textStyle(String componentToken) { + + return '$textThemePrefix${getToken("$componentToken.text-style")}'; + } + + String textStyleWithColor(String componentToken) { + + if (!tokenAvailable('$componentToken.text-style')) { + return 'null'; + } + String style = textStyle(componentToken); + if (tokenAvailable('$componentToken.color')) { + style = '$style?.copyWith(color: ${componentColor(componentToken)})'; + } + return style; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/text_field_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/text_field_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..e6fd0f63b025821c97891886b9e7660a5c2662a8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/text_field_template.dart @@ -0,0 +1,24 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class TextFieldTemplate extends TokenTemplate { + const TextFieldTemplate(super.blockName, super.fileName, super.tokens); + + @override + String generate() => ''' +TextStyle? _m3StateInputStyle(BuildContext context) => MaterialStateTextStyle.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return TextStyle(color: ${textStyle("md.comp.filled-text-field.label-text")}!.color?.withOpacity(0.38)); + } + return TextStyle(color: ${textStyle("md.comp.filled-text-field.label-text")}!.color); +}); + +TextStyle _m3InputStyle(BuildContext context) => ${textStyle("md.comp.filled-text-field.label-text")}!; + +TextStyle _m3CounterErrorStyle(BuildContext context) => + ${textStyle("md.comp.filled-text-field.supporting-text")}!.copyWith(color: ${componentColor('md.comp.filled-text-field.error.supporting-text')}); +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/time_picker_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/time_picker_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..4d60175f88281740b662d38515a4320322dc7224 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/time_picker_template.dart @@ -0,0 +1,338 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class TimePickerTemplate extends TokenTemplate { + const TimePickerTemplate(super.blockName, super.fileName, super.tokens, { + super.colorSchemePrefix = '_colors.', + super.textThemePrefix = '_textTheme.' + }); + + static const String tokenGroup = 'md.comp.time-picker'; + static const String hourMinuteComponent = '$tokenGroup.time-selector'; + static const String dayPeriodComponent = '$tokenGroup.period-selector'; + static const String dialComponent = '$tokenGroup.clock-dial'; + static const String variant = ''; + + @override + String generate() => ''' +class _${blockName}DefaultsM3 extends _TimePickerDefaults { + _${blockName}DefaultsM3(this.context); + + final BuildContext context; + + late final ColorScheme _colors = Theme.of(context).colorScheme; + late final TextTheme _textTheme = Theme.of(context).textTheme; + + @override + Color get backgroundColor { + return ${componentColor("$tokenGroup.container")}; + } + + @override + ButtonStyle get cancelButtonStyle { + return TextButton.styleFrom(); + } + + @override + ButtonStyle get confirmButtonStyle { + return TextButton.styleFrom(); + } + + @override + BorderSide get dayPeriodBorderSide { + return ${border('$dayPeriodComponent.outline')}; + } + + @override + Color get dayPeriodColor { + return MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return ${componentColor("$dayPeriodComponent.selected.container")}; + } + // The unselected day period should match the overall picker dialog color. + // Making it transparent enables that without being redundant and allows + // the optional elevation overlay for dark mode to be visible. + return Colors.transparent; + }); + } + + @override + OutlinedBorder get dayPeriodShape { + return ${shape("$dayPeriodComponent.container")}.copyWith(side: dayPeriodBorderSide); + } + + @override + Size get dayPeriodPortraitSize { + return ${size('$dayPeriodComponent.vertical.container')}; + } + + @override + Size get dayPeriodLandscapeSize { + return ${size('$dayPeriodComponent.horizontal.container')}; + } + + @override + Size get dayPeriodInputSize { + // Input size is eight pixels smaller than the portrait size in the spec, + // but there's not token for it yet. + return Size(dayPeriodPortraitSize.width, dayPeriodPortraitSize.height - 8); + } + + @override + Color get dayPeriodTextColor { + return MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.focused)) { + return ${componentColor("$dayPeriodComponent.selected.focus.label-text")}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor("$dayPeriodComponent.selected.hover.label-text")}; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor("$dayPeriodComponent.selected.pressed.label-text")}; + } + return ${componentColor("$dayPeriodComponent.selected.label-text")}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor("$dayPeriodComponent.unselected.focus.label-text")}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor("$dayPeriodComponent.unselected.hover.label-text")}; + } + if (states.contains(MaterialState.pressed)) { + return ${componentColor("$dayPeriodComponent.unselected.pressed.label-text")}; + } + return ${componentColor("$dayPeriodComponent.unselected.label-text")}; + }); + } + + @override + TextStyle get dayPeriodTextStyle { + return ${textStyle("$dayPeriodComponent.label-text")}!.copyWith(color: dayPeriodTextColor); + } + + @override + Color get dialBackgroundColor { + return ${componentColor(dialComponent)}; + } + + @override + Color get dialHandColor { + return ${componentColor('$dialComponent.selector.handle.container')}; + } + + @override + Size get dialSize { + return ${size("$dialComponent.container")}; + } + + @override + double get handWidth { + return ${size("$dialComponent.selector.track.container")}.width; + } + + @override + double get dotRadius { + return ${size("$dialComponent.selector.handle.container")}.width / 2; + } + + @override + double get centerRadius { + return ${size("$dialComponent.selector.center.container")}.width / 2; + } + + @override + Color get dialTextColor { + return MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return ${componentColor('$dialComponent.selected.label-text')}; + } + return ${componentColor('$dialComponent.unselected.label-text')}; + }); + } + + @override + TextStyle get dialTextStyle { + return ${textStyle('$dialComponent.label-text')}!; + } + + @override + double get elevation { + return ${elevation("$tokenGroup.container")}; + } + + @override + Color get entryModeIconColor { + return _colors.onSurface; + } + + @override + TextStyle get helpTextStyle { + return MaterialStateTextStyle.resolveWith((Set states) { + final TextStyle textStyle = ${textStyle('$tokenGroup.headline')}!; + return textStyle.copyWith(color: ${componentColor('$tokenGroup.headline')}); + }); + } + + @override + EdgeInsetsGeometry get padding { + return const EdgeInsets.all(24); + } + + @override + Color get hourMinuteColor { + return MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + Color overlayColor = ${componentColor('$hourMinuteComponent.selected.container')}; + if (states.contains(MaterialState.pressed)) { + overlayColor = ${componentColor('$hourMinuteComponent.selected.pressed.state-layer')}; + } else if (states.contains(MaterialState.hovered)) { + const double hoverOpacity = ${opacity('$hourMinuteComponent.hover.state-layer.opacity')}; + overlayColor = ${componentColor('$hourMinuteComponent.selected.hover.state-layer')}.withOpacity(hoverOpacity); + } else if (states.contains(MaterialState.focused)) { + const double focusOpacity = ${opacity('$hourMinuteComponent.focus.state-layer.opacity')}; + overlayColor = ${componentColor('$hourMinuteComponent.selected.focus.state-layer')}.withOpacity(focusOpacity); + } + return Color.alphaBlend(overlayColor, ${componentColor('$hourMinuteComponent.selected.container')}); + } else { + Color overlayColor = ${componentColor('$hourMinuteComponent.unselected.container')}; + if (states.contains(MaterialState.pressed)) { + overlayColor = ${componentColor('$hourMinuteComponent.unselected.pressed.state-layer')}; + } else if (states.contains(MaterialState.hovered)) { + const double hoverOpacity = ${opacity('$hourMinuteComponent.hover.state-layer.opacity')}; + overlayColor = ${componentColor('$hourMinuteComponent.unselected.hover.state-layer')}.withOpacity(hoverOpacity); + } else if (states.contains(MaterialState.focused)) { + const double focusOpacity = ${opacity('$hourMinuteComponent.focus.state-layer.opacity')}; + overlayColor = ${componentColor('$hourMinuteComponent.unselected.focus.state-layer')}.withOpacity(focusOpacity); + } + return Color.alphaBlend(overlayColor, ${componentColor('$hourMinuteComponent.unselected.container')}); + } + }); + } + + @override + ShapeBorder get hourMinuteShape { + return ${shape('$hourMinuteComponent.container')}; + } + + @override + Size get hourMinuteSize { + return ${size('$hourMinuteComponent.container')}; + } + + @override + Size get hourMinuteSize24Hour { + return Size(${size('$hourMinuteComponent.24h-vertical.container')}.width, hourMinuteSize.height); + } + + @override + Size get hourMinuteInputSize { + // Input size is eight pixels smaller than the regular size in the spec, but + // there's not token for it yet. + return Size(hourMinuteSize.width, hourMinuteSize.height - 8); + } + + @override + Size get hourMinuteInputSize24Hour { + // Input size is eight pixels smaller than the regular size in the spec, but + // there's not token for it yet. + return Size(hourMinuteSize24Hour.width, hourMinuteSize24Hour.height - 8); + } + + @override + Color get hourMinuteTextColor { + return MaterialStateColor.resolveWith((Set states) { + return _hourMinuteTextColor.resolve(states); + }); + } + + MaterialStateProperty get _hourMinuteTextColor { + return MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + if (states.contains(MaterialState.pressed)) { + return ${componentColor("$hourMinuteComponent.selected.pressed.label-text")}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor("$hourMinuteComponent.selected.hover.label-text")}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor("$hourMinuteComponent.selected.focus.label-text")}; + } + return ${componentColor("$hourMinuteComponent.selected.label-text")}; + } else { + // unselected + if (states.contains(MaterialState.pressed)) { + return ${componentColor("$hourMinuteComponent.unselected.pressed.label-text")}; + } + if (states.contains(MaterialState.hovered)) { + return ${componentColor("$hourMinuteComponent.unselected.hover.label-text")}; + } + if (states.contains(MaterialState.focused)) { + return ${componentColor("$hourMinuteComponent.unselected.focus.label-text")}; + } + return ${componentColor("$hourMinuteComponent.unselected.label-text")}; + } + }); + } + + @override + TextStyle get hourMinuteTextStyle { + return MaterialStateTextStyle.resolveWith((Set states) { + // TODO(tahatesser): Update this when https://github.com/flutter/flutter/issues/131247 is fixed. + // This is using the correct text style from Material 3 spec. + // https://m3.material.io/components/time-pickers/specs#fd0b6939-edab-4058-82e1-93d163945215 + return _textTheme.displayMedium!.copyWith(color: _hourMinuteTextColor.resolve(states)); + }); + } + + @override + InputDecorationTheme get inputDecorationTheme { + // This is NOT correct, but there's no token for + // 'time-input.container.shape', so this is using the radius from the shape + // for the hour/minute selector. It's a BorderRadiusGeometry, so we have to + // resolve it before we can use it. + final BorderRadius selectorRadius = ${shape('$hourMinuteComponent.container')} + .borderRadius + .resolve(Directionality.of(context)); + return InputDecorationTheme( + contentPadding: EdgeInsets.zero, + filled: true, + // This should be derived from a token, but there isn't one for 'time-input'. + fillColor: hourMinuteColor, + // This should be derived from a token, but there isn't one for 'time-input'. + focusColor: _colors.primaryContainer, + enabledBorder: OutlineInputBorder( + borderRadius: selectorRadius, + borderSide: const BorderSide(color: Colors.transparent), + ), + errorBorder: OutlineInputBorder( + borderRadius: selectorRadius, + borderSide: BorderSide(color: _colors.error, width: 2), + ), + focusedBorder: OutlineInputBorder( + borderRadius: selectorRadius, + borderSide: BorderSide(color: _colors.primary, width: 2), + ), + focusedErrorBorder: OutlineInputBorder( + borderRadius: selectorRadius, + borderSide: BorderSide(color: _colors.error, width: 2), + ), + hintStyle: hourMinuteTextStyle.copyWith(color: _colors.onSurface.withOpacity(0.36)), + // Prevent the error text from appearing. + // TODO(rami-a): Remove this workaround once + // https://github.com/flutter/flutter/issues/54104 + // is fixed. + errorStyle: const TextStyle(fontSize: 0, height: 0), + ); + } + + @override + ShapeBorder get shape { + return ${shape("$tokenGroup.container")}; + } +} +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/token_logger.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/token_logger.dart new file mode 100644 index 0000000000000000000000000000000000000000..3347e5fbd9033fb921932a2a4d580c33a5186d82 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/token_logger.dart @@ -0,0 +1,88 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:collection'; +import 'dart:io'; + +final TokenLogger tokenLogger = TokenLogger(); + +/// Class to keep track of used tokens and versions. +class TokenLogger { + TokenLogger(); + + void init({ + required Map allTokens, + required Map> versionMap + }){ + _allTokens = allTokens; + _versionMap = versionMap; + } + + /// Map of all tokens to their values. + late Map _allTokens; + + // Map of versions to their token files. + late Map> _versionMap; + + // Sorted set of used tokens. + final SplayTreeSet _usedTokens = SplayTreeSet(); + + void clear() { + _allTokens.clear(); + _versionMap.clear(); + _usedTokens.clear(); + } + + /// Logs a token. + void log(String token) { + if (!_allTokens.containsKey(token)) { + print('\x1B[31m' 'Token unavailable: $token' '\x1B[0m'); + return; + } + _usedTokens.add(token); + } + + /// Prints version usage to the console. + void printVersionUsage({required bool verbose}) { + final String versionsString = 'Versions used: ${_versionMap.keys.join(', ')}'; + print(versionsString); + if (verbose) { + for (final String version in _versionMap.keys) { + print(' $version:'); + final List files = List.from(_versionMap[version]!); + files.sort(); + for (final String file in files) { + print(' $file'); + } + } + print(''); + } + } + + /// Prints tokens usage to the console. + void printTokensUsage({required bool verbose}) { + final Set allTokensSet = _allTokens.keys.toSet(); + + if (verbose) { + for (final String token in SplayTreeSet.from(allTokensSet).toList()) { + if (_usedTokens.contains(token)) { + print('✅ $token'); + } else { + print('❌ $token'); + } + } + print(''); + } + + print('Tokens used: ${_usedTokens.length}/${_allTokens.length}'); + } + + /// Dumps version and tokens usage to a file. + void dumpToFile(String path) { + final File file = File(path); + file.createSync(recursive: true); + final String versionsString = 'Versions used, ${_versionMap.keys.join(', ')}'; + file.writeAsStringSync('$versionsString\n${_usedTokens.join(',\n')}\n'); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/typography_template.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/typography_template.dart new file mode 100644 index 0000000000000000000000000000000000000000..8e3754ac648fc02486de5559289fe08d8997e202 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/lib/typography_template.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'template.dart'; + +class TypographyTemplate extends TokenTemplate { + const TypographyTemplate(super.blockName, super.fileName, super.tokens); + + @override + String generate() => ''' +class _M3Typography { + _M3Typography._(); + + ${_textTheme('englishLike', 'alphabetic')} + + ${_textTheme('dense', 'ideographic')} + + ${_textTheme('tall', 'alphabetic')} +} +'''; + + String _textTheme(String name, String baseline) { + final StringBuffer theme = StringBuffer('static const TextTheme $name = TextTheme(\n'); + theme.writeln(' displayLarge: ${_textStyleDef('md.sys.typescale.display-large', '$name displayLarge 2021', baseline)},'); + theme.writeln(' displayMedium: ${_textStyleDef('md.sys.typescale.display-medium', '$name displayMedium 2021', baseline)},'); + theme.writeln(' displaySmall: ${_textStyleDef('md.sys.typescale.display-small', '$name displaySmall 2021', baseline)},'); + theme.writeln(' headlineLarge: ${_textStyleDef('md.sys.typescale.headline-large', '$name headlineLarge 2021', baseline)},'); + theme.writeln(' headlineMedium: ${_textStyleDef('md.sys.typescale.headline-medium', '$name headlineMedium 2021', baseline)},'); + theme.writeln(' headlineSmall: ${_textStyleDef('md.sys.typescale.headline-small', '$name headlineSmall 2021', baseline)},'); + theme.writeln(' titleLarge: ${_textStyleDef('md.sys.typescale.title-large', '$name titleLarge 2021', baseline)},'); + theme.writeln(' titleMedium: ${_textStyleDef('md.sys.typescale.title-medium', '$name titleMedium 2021', baseline)},'); + theme.writeln(' titleSmall: ${_textStyleDef('md.sys.typescale.title-small', '$name titleSmall 2021', baseline)},'); + theme.writeln(' labelLarge: ${_textStyleDef('md.sys.typescale.label-large', '$name labelLarge 2021', baseline)},'); + theme.writeln(' labelMedium: ${_textStyleDef('md.sys.typescale.label-medium', '$name labelMedium 2021', baseline)},'); + theme.writeln(' labelSmall: ${_textStyleDef('md.sys.typescale.label-small', '$name labelSmall 2021', baseline)},'); + theme.writeln(' bodyLarge: ${_textStyleDef('md.sys.typescale.body-large', '$name bodyLarge 2021', baseline)},'); + theme.writeln(' bodyMedium: ${_textStyleDef('md.sys.typescale.body-medium', '$name bodyMedium 2021', baseline)},'); + theme.writeln(' bodySmall: ${_textStyleDef('md.sys.typescale.body-small', '$name bodySmall 2021', baseline)},'); + theme.write(' );'); + return theme.toString(); + } + + String _textStyleDef(String tokenPrefix, String debugLabel, String baseline) { + final StringBuffer style = StringBuffer("TextStyle(debugLabel: '$debugLabel'"); + style.write(', inherit: false'); + style.write(', fontSize: ${_fontSize(tokenPrefix)}'); + style.write(', fontWeight: ${_fontWeight(tokenPrefix)}'); + style.write(', letterSpacing: ${_fontSpacing(tokenPrefix)}'); + style.write(', height: ${_fontHeight(tokenPrefix)}'); + style.write(', textBaseline: TextBaseline.$baseline'); + style.write(', leadingDistribution: TextLeadingDistribution.even'); + style.write(')'); + return style.toString(); + } + + String _fontSize(String textStyleTokenName) { + return getToken('$textStyleTokenName.size').toString(); + } + + String _fontWeight(String textStyleTokenName) { + final String weightValue = getToken(getToken('$textStyleTokenName.weight') as String).toString(); + return 'FontWeight.w$weightValue'; + } + + String _fontSpacing(String textStyleTokenName) { + return getToken('$textStyleTokenName.tracking').toString(); + } + + String _fontHeight(String textStyleTokenName) { + final double size = getToken('$textStyleTokenName.size') as double; + final double lineHeight = getToken('$textStyleTokenName.line-height') as double; + return (lineHeight / size).toStringAsFixed(2); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..e12fb3714ef0ab74fa99a9bacc68c9d6dc0966f8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/pubspec.lock @@ -0,0 +1,373 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct dev" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct dev" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct dev" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + collection: + dependency: "direct dev" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct dev" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct dev" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct dev" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + file: + dependency: "direct dev" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + frontend_server_client: + dependency: "direct dev" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + glob: + dependency: "direct dev" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + http_multi_server: + dependency: "direct dev" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct dev" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + io: + dependency: "direct dev" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct dev" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + logging: + dependency: "direct dev" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + meta: + dependency: "direct dev" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mime: + dependency: "direct dev" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct dev" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct dev" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct dev" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + pool: + dependency: "direct dev" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + pub_semver: + dependency: "direct dev" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + shelf: + dependency: "direct dev" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct dev" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct dev" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct dev" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + source_map_stack_trace: + dependency: "direct dev" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct dev" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct dev" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct dev" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct dev" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct dev" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct dev" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct dev" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct dev" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct dev" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct dev" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webkit_inspection_protocol: + dependency: "direct dev" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + yaml: + dependency: "direct dev" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a0c6f07d31ffe6cc28b072abd932b96f4942ec75 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/pubspec.yaml @@ -0,0 +1,59 @@ +name: gen_defaults +description: A command line script to generate Material component defaults from the token database. +version: 1.0.0 + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + args: 2.4.2 + +dev_dependencies: + path: 1.9.0 + test: 1.24.9 + + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: fb60 diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/test.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/test.json new file mode 100644 index 0000000000000000000000000000000000000000..ae29d7ff44c1b0ee50d284a04277081170311024 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/test.json @@ -0,0 +1,3 @@ +Versions used, v1.0.0, v2.0.0 +bar, +foo diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/test/gen_defaults_test.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/test/gen_defaults_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..a921b9be19455927251768124e4318b256a2d3e6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_defaults/test/gen_defaults_test.dart @@ -0,0 +1,371 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:io'; + +import 'package:gen_defaults/template.dart'; +import 'package:gen_defaults/token_logger.dart'; +import 'package:path/path.dart' as path; +import 'package:test/test.dart'; + +void main() { + final TokenLogger logger = tokenLogger; + logger.init(allTokens: {}, versionMap: >{}); + + test('Templates will append to the end of a file', () { + final Directory tempDir = Directory.systemTemp.createTempSync('gen_defaults'); + try { + // Create a temporary file with some content. + final File tempFile = File(path.join(tempDir.path, 'test_template.txt')); + tempFile.createSync(); + tempFile.writeAsStringSync(''' +// This is a file with stuff in it. +// This part shouldn't be changed by +// the template. +'''); + + // Have a test template append new parameterized content to the end of + // the file. + final Map tokens = {'version': '0.0', 'foo': 'Foobar', 'bar': 'Barfoo'}; + TestTemplate('Test', tempFile.path, tokens).updateFile(); + + expect(tempFile.readAsStringSync(), ''' +// This is a file with stuff in it. +// This part shouldn't be changed by +// the template. + +// BEGIN GENERATED TOKEN PROPERTIES - Test + +// Do not edit by hand. The code between the "BEGIN GENERATED" and +// "END GENERATED" comments are generated from data in the Material +// Design token database by the script: +// dev/tools/gen_defaults/bin/gen_defaults.dart. + +static final String tokenFoo = 'Foobar'; +static final String tokenBar = 'Barfoo'; + +// END GENERATED TOKEN PROPERTIES - Test +'''); + + } finally { + tempDir.deleteSync(recursive: true); + } + }); + + test('Templates will update over previously generated code at the end of a file', () { + final Directory tempDir = Directory.systemTemp.createTempSync('gen_defaults'); + try { + // Create a temporary file with some content. + final File tempFile = File(path.join(tempDir.path, 'test_template.txt')); + tempFile.createSync(); + tempFile.writeAsStringSync(''' +// This is a file with stuff in it. +// This part shouldn't be changed by +// the template. + +// BEGIN GENERATED TOKEN PROPERTIES - Test + +// Do not edit by hand. The code between the "BEGIN GENERATED" and +// "END GENERATED" comments are generated from data in the Material +// Design token database by the script: +// dev/tools/gen_defaults/bin/gen_defaults.dart. + +static final String tokenFoo = 'Foobar'; +static final String tokenBar = 'Barfoo'; + +// END GENERATED TOKEN PROPERTIES - Test +'''); + + // Have a test template append new parameterized content to the end of + // the file. + final Map tokens = {'version': '0.0', 'foo': 'foo', 'bar': 'bar'}; + TestTemplate('Test', tempFile.path, tokens).updateFile(); + + expect(tempFile.readAsStringSync(), ''' +// This is a file with stuff in it. +// This part shouldn't be changed by +// the template. + +// BEGIN GENERATED TOKEN PROPERTIES - Test + +// Do not edit by hand. The code between the "BEGIN GENERATED" and +// "END GENERATED" comments are generated from data in the Material +// Design token database by the script: +// dev/tools/gen_defaults/bin/gen_defaults.dart. + +static final String tokenFoo = 'foo'; +static final String tokenBar = 'bar'; + +// END GENERATED TOKEN PROPERTIES - Test +'''); + + } finally { + tempDir.deleteSync(recursive: true); + } + }); + + test('Multiple templates can modify different code blocks in the same file', () { + final Directory tempDir = Directory.systemTemp.createTempSync('gen_defaults'); + try { + // Create a temporary file with some content. + final File tempFile = File(path.join(tempDir.path, 'test_template.txt')); + tempFile.createSync(); + tempFile.writeAsStringSync(''' +// This is a file with stuff in it. +// This part shouldn't be changed by +// the template. +'''); + + // Update file with a template for 'Block 1' + { + final Map tokens = {'version': '0.0', 'foo': 'foo', 'bar': 'bar'}; + TestTemplate('Block 1', tempFile.path, tokens).updateFile(); + } + expect(tempFile.readAsStringSync(), ''' +// This is a file with stuff in it. +// This part shouldn't be changed by +// the template. + +// BEGIN GENERATED TOKEN PROPERTIES - Block 1 + +// Do not edit by hand. The code between the "BEGIN GENERATED" and +// "END GENERATED" comments are generated from data in the Material +// Design token database by the script: +// dev/tools/gen_defaults/bin/gen_defaults.dart. + +static final String tokenFoo = 'foo'; +static final String tokenBar = 'bar'; + +// END GENERATED TOKEN PROPERTIES - Block 1 +'''); + + // Update file with a template for 'Block 2', which should append but not + // disturb the code in 'Block 1'. + { + final Map tokens = {'version': '0.0', 'foo': 'bar', 'bar': 'foo'}; + TestTemplate('Block 2', tempFile.path, tokens).updateFile(); + } + expect(tempFile.readAsStringSync(), ''' +// This is a file with stuff in it. +// This part shouldn't be changed by +// the template. + +// BEGIN GENERATED TOKEN PROPERTIES - Block 1 + +// Do not edit by hand. The code between the "BEGIN GENERATED" and +// "END GENERATED" comments are generated from data in the Material +// Design token database by the script: +// dev/tools/gen_defaults/bin/gen_defaults.dart. + +static final String tokenFoo = 'foo'; +static final String tokenBar = 'bar'; + +// END GENERATED TOKEN PROPERTIES - Block 1 + +// BEGIN GENERATED TOKEN PROPERTIES - Block 2 + +// Do not edit by hand. The code between the "BEGIN GENERATED" and +// "END GENERATED" comments are generated from data in the Material +// Design token database by the script: +// dev/tools/gen_defaults/bin/gen_defaults.dart. + +static final String tokenFoo = 'bar'; +static final String tokenBar = 'foo'; + +// END GENERATED TOKEN PROPERTIES - Block 2 +'''); + + // Update 'Block 1' again which should just update that block, + // leaving 'Block 2' undisturbed. + { + final Map tokens = {'version': '0.0', 'foo': 'FOO', 'bar': 'BAR'}; + TestTemplate('Block 1', tempFile.path, tokens).updateFile(); + } + expect(tempFile.readAsStringSync(), ''' +// This is a file with stuff in it. +// This part shouldn't be changed by +// the template. + +// BEGIN GENERATED TOKEN PROPERTIES - Block 1 + +// Do not edit by hand. The code between the "BEGIN GENERATED" and +// "END GENERATED" comments are generated from data in the Material +// Design token database by the script: +// dev/tools/gen_defaults/bin/gen_defaults.dart. + +static final String tokenFoo = 'FOO'; +static final String tokenBar = 'BAR'; + +// END GENERATED TOKEN PROPERTIES - Block 1 + +// BEGIN GENERATED TOKEN PROPERTIES - Block 2 + +// Do not edit by hand. The code between the "BEGIN GENERATED" and +// "END GENERATED" comments are generated from data in the Material +// Design token database by the script: +// dev/tools/gen_defaults/bin/gen_defaults.dart. + +static final String tokenFoo = 'bar'; +static final String tokenBar = 'foo'; + +// END GENERATED TOKEN PROPERTIES - Block 2 +'''); + + } finally { + tempDir.deleteSync(recursive: true); + } + }); + + test('Templates can get proper shapes from given data', () { + const Map tokens = { + 'foo.shape': 'shape.large', + 'bar.shape': 'shape.full', + 'shape.large': { + 'family': 'SHAPE_FAMILY_ROUNDED_CORNERS', + 'topLeft': 1.0, + 'topRight': 2.0, + 'bottomLeft': 3.0, + 'bottomRight': 4.0, + }, + 'shape.full': { + 'family': 'SHAPE_FAMILY_CIRCULAR', + }, + }; + final TestTemplate template = TestTemplate('Test', 'foobar.dart', tokens); + expect(template.shape('foo'), 'const RoundedRectangleBorder(borderRadius: BorderRadius.only(topLeft: Radius.circular(1.0), topRight: Radius.circular(2.0), bottomLeft: Radius.circular(3.0), bottomRight: Radius.circular(4.0)))'); + expect(template.shape('bar'), 'const StadiumBorder()'); + }); + + group('Tokens logger', () { + final List printLog = List.empty(growable: true); + final Map> versionMap = >{}; + final Map allTokens = {}; + + // Add to printLog instead of printing to stdout + void Function() overridePrint(void Function() testFn) => () { + final ZoneSpecification spec = ZoneSpecification( + print: (_, __, ___, String msg) { + printLog.add(msg); + } + ); + return Zone.current.fork(specification: spec).run(testFn); + }; + + setUp(() { + logger.init(allTokens: allTokens, versionMap: versionMap); + }); + + tearDown(() { + logger.clear(); + printLog.clear(); + versionMap.clear(); + allTokens.clear(); + }); + + String errorColoredString(String str) => '\x1B[31m$str\x1B[0m'; + + const Map> testVersions = >{ + 'v1.0.0': ['file_1.json'], + 'v2.0.0': ['file_2.json, file_3.json'], + }; + + test('can print empty usage', overridePrint(() { + logger.printVersionUsage(verbose: true); + expect(printLog, contains('Versions used: ')); + + logger.printTokensUsage(verbose: true); + expect(printLog, contains('Tokens used: 0/0')); + })); + + test('can print version usage', overridePrint(() { + versionMap.addAll(testVersions); + + logger.printVersionUsage(verbose: false); + + expect(printLog, contains('Versions used: v1.0.0, v2.0.0')); + })); + + test('can print version usage (verbose)', overridePrint(() { + versionMap.addAll(testVersions); + + logger.printVersionUsage(verbose: true); + + expect(printLog, contains('Versions used: v1.0.0, v2.0.0')); + expect(printLog, contains(' v1.0.0:')); + expect(printLog, contains(' file_1.json')); + expect(printLog, contains(' v2.0.0:')); + expect(printLog, contains(' file_2.json, file_3.json')); + })); + + test('can log and print tokens usage', overridePrint(() { + allTokens['foo'] = 'value'; + + logger.log('foo'); + logger.printTokensUsage(verbose: false); + + expect(printLog, contains('Tokens used: 1/1')); + })); + + test('can log and print tokens usage (verbose)', overridePrint(() { + allTokens['foo'] = 'value'; + + logger.log('foo'); + logger.printTokensUsage(verbose: true); + + expect(printLog, contains('✅ foo')); + expect(printLog, contains('Tokens used: 1/1')); + })); + + test('detects invalid logs', overridePrint(() { + allTokens['foo'] = 'value'; + + logger.log('baz'); + logger.log('foobar'); + logger.printTokensUsage(verbose: true); + + expect(printLog, contains(errorColoredString('Token unavailable: baz'))); + expect(printLog, contains(errorColoredString('Token unavailable: foobar'))); + expect(printLog, contains('❌ foo')); + expect(printLog, contains('Tokens used: 0/1')); + })); + + test('can log and dump versions & tokens to a file', overridePrint(() { + versionMap.addAll(testVersions); + allTokens['foo'] = 'value'; + allTokens['bar'] = 'value'; + + logger.log('foo'); + logger.log('bar'); + logger.dumpToFile('test.json'); + + final String fileContent = File('test.json').readAsStringSync(); + expect(fileContent, contains('Versions used, v1.0.0, v2.0.0')); + expect(fileContent, contains('bar,')); + expect(fileContent, contains('foo')); + })); + + test('integration test', overridePrint(() { + allTokens['foo'] = 'value'; + allTokens['bar'] = 'value'; + + TestTemplate('block', 'filename', allTokens).generate(); + logger.printTokensUsage(verbose: true); + + expect(printLog, contains('✅ foo')); + expect(printLog, contains('✅ bar')); + expect(printLog, contains('Tokens used: 2/2')); + })); + }); +} + +class TestTemplate extends TokenTemplate { + TestTemplate(super.blockName, super.fileName, super.tokens); + + @override + String generate() => ''' +static final String tokenFoo = '${getToken('foo')}'; +static final String tokenBar = '${getToken('bar')}'; +'''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/README.md b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f9ff1ad13820b49b6828035575cb16679838b4dc --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/README.md @@ -0,0 +1,131 @@ +## Keycode Generator + +This directory contains a keycode generator that can generate Dart code for +the `LogicalKeyboardKey` and `PhysicalKeyboardKey` classes. + +It generates multiple files across Flutter. For framework, it generates + +* [`keyboard_key.g.dart`](../../../packages/flutter/lib/src/services/keyboard_key.g.dart), which contains the definition and list of logical keys and physical keys; and +* [`keyboard_maps.g.dart`](../../../packages/flutter/lib/src/services/keyboard_maps.g.dart), which contains platform-specific immutable maps used for the `RawKeyboard` API. + +For engine, it generates one key mapping file for each platform, as well as some +files for testing purposes. + +It draws information from various source bases, including online +repositories, and manual mapping in the `data` subdirectory. It incorporates +this information into a giant list of physical keys +([`physical_key_data.g.json`](data/physical_key_data.g.json)), +and another for logical keys +([`logical_key_data.g.json`](data/logical_key_data.g.json)). +The two files are checked in, and can be used as the data source next time so that +output files can be generated without the Internet. + +## Running the tool + +The tool can be run based on the existing database. To do this, run: + +```bash +/PATH/TO/ROOT/bin/gen_keycodes +``` + +The tool can also be run by rebuilding the database by drawing online information +anew before generating the files. To do this, run: + +```bash +/PATH/TO/ROOT/bin/gen_keycodes --collect +``` + +This will generate `physical_key_data.g.json` and `logical_key_data.g.json`. These +files should be checked in. + +By default this tool assumes that the gclient directory for flutter/engine +and the root for the flutter/flutter are placed at the same folder. If not, +use `--engine-root=/ENGINE/GCLIENT/ROOT` to specify the engine root. + +Other options can be found using `--help`. + +## Key ID Scheme + +To provide keys with unique ID codes, Flutter uses a scheme to assign keycodes +which keeps us out of the business of minting new codes ourselves. This applies +both logical keys and physical keys. + +The codes are meant to be opaque to the user, and should never be unpacked for +meaning, since the coding scheme could change at any time and the meaning is +likely to be retrievable more reliably and correctly from the API. + +However, if you are porting Flutter to a new platform, you should follow the +following guidelines for specifying key codes. + +The key code is a 52-bit integer (due to the limitation of JavaScript). The +entire namespace is divided into 32-bit *planes*. The upper 20 bits of the ID +represent the plane ID, while the lower 32 bits represent values in the plane. +For example, plane 0x1 refers to the range 0x1 0000 0000 - 0x1 FFFF FFFF. Each +plane manages how the values within the range are assigned. + +The planes are planned as follows: + +- **Plane 0x00**: The Unicode plane. For logical keys, this plane contains keys + that generate Unicode characters when pressed (this includes dead keys, but + not e.g. function keys or shift keys). The value is defined as the Unicode + code point corresponding to the character, lower case and without modifier + keys if possible. Examples are Key A (0x61), Digit 1 (0x31), Colon (0x3A), + and Key Ù (0xD9). (The "Colon" key represents a keyboard key that prints the + ":" character without modifiers, which can be found on the French layout. On + the US layout, the key that prints ":" is the Semicolon key.) For physical + keys, this plane contains keys from USB HID usages. + +- **Plane 0x01**: The unprintable plane. This plane contains logical keys that + are defined by the [Chromium key + list](https://chromium.googlesource.com/codesearch/chromium/src/+/refs/heads/master/ui/events/keycodes/dom/dom_key_data.inc) + and do not generate Unicode characters. The value is defined as the macro + value defined by the Chromium key list. Examples are CapsLock (0x105), + ArrowUp (0x304), F1 (0x801), Hiragata (0x716), and TVPower (0xD4B). + Some keys that exist in the Chromium key list are not present in Flutter in this plane, most notably + modifiers keys (such as Shift). See the Flutter plane below for more + information. + +- **Plane 0x02**: The Flutter plane. This plane contains keys that are + defined by Flutter. Modifier keys are placed in this plane, because Flutter + distinguishes between sided modifier keys (for example "ShiftLeft" and + "ShiftRight"), while the web doesn't (only has "Shift"). Other examples are + numpad keys and gamepad keys. + +- **Plane 0x03-0x0F**: Reserved. + +- **Plane 0x10-0x1F**: Platform planes managed by Flutter. Each platform plane + corresponds to a Flutter embedding officially supported by Flutter. The + platforms are listed as follows: + + | Code | Platform | + | ---- | -------- | + | 0x11 | Android | + | 0x12 | Fuchsia | + | 0x13 | iOS | + | 0x14 | macOS | + | 0x15 | Gtk | + | 0x16 | Windows | + | 0x17 | Web | + | 0x18 | GLFW | + + Platform planes store keys that are private to the Flutter embedding of this + platform. This most likely means that these keys have not been officially + recognized by Flutter. + + The value scheme within a platform plane is decided by the platform, + typically using the other fields from the platform's native key event. + + In time, keys that originally belong to a platform plane might be added to + Flutter, especially if a key is found shared by multiple platforms. The values + of that key will be changed to a new value within the Flutter plane, and all + platforms managed by Flutter will start to send the new value, making it a + breaking change. Therefore, when handling an unrecognized key on a platform + managed by Flutter, it is recommended to file a new issue to add this value + to `keyboard_key.g.dart` instead of using the platform-plane value. However, + for a custom platform (see below), since the platform author has full control + over key mapping, such change will not cause breakage and it is recommended + to use the platform-plane value to avoid adding platform-exclusive values + to the framework. + +- **Plane 0x20-0x2F**: Custom platform planes. Similar to Flutter's platform + planes, but for private use by custom platforms. diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/bin/gen_keycodes b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/bin/gen_keycodes new file mode 100644 index 0000000000000000000000000000000000000000..6086eed83d08b7ffb9261240d3dfe53b4b2a9423 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/bin/gen_keycodes @@ -0,0 +1,39 @@ +#!/usr/bin/env bash + +set -euo pipefail + +# Needed because if it is set, cd may print the path it changed to. +unset CDPATH + +# On Mac OS, readlink -f doesn't work, so follow_links traverses the path one +# link at a time, and then cds into the link destination and find out where it +# ends up. +# +# The returned filesystem path must be a format usable by Dart's URI parser, +# since the Dart command line tool treats its argument as a file URI, not a +# filename. For instance, multiple consecutive slashes should be reduced to a +# single slash, since double-slashes indicate a URI "authority", and these are +# supposed to be filenames. There is an edge case where this will return +# multiple slashes: when the input resolves to the root directory. However, if +# that were the case, we wouldn't be running this shell, so we don't do anything +# about it. +# +# The function is enclosed in a subshell to avoid changing the working directory +# of the caller. +function follow_links() ( + cd -P "$(dirname -- "$1")" + file="$PWD/$(basename -- "$1")" + while [[ -h "$file" ]]; do + cd -P "$(dirname -- "$file")" + file="$(readlink -- "$file")" + cd -P "$(dirname -- "$file")" + file="$PWD/$(basename -- "$file")" + done + echo "$file" +) + +PROG_NAME="$(follow_links "${BASH_SOURCE[0]}")" +BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" +DART_BIN="$BIN_DIR/../../../../bin/dart" + +"$DART_BIN" --enable-asserts "$BIN_DIR/gen_keycodes.dart" "$@" diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/bin/gen_keycodes.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/bin/gen_keycodes.dart new file mode 100644 index 0000000000000000000000000000000000000000..dd04a7087edb53ba15a57434d83721b16b97f69e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/bin/gen_keycodes.dart @@ -0,0 +1,275 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:io' hide Platform; + +import 'package:args/args.dart'; +import 'package:gen_keycodes/android_code_gen.dart'; +import 'package:gen_keycodes/base_code_gen.dart'; +import 'package:gen_keycodes/gtk_code_gen.dart'; +import 'package:gen_keycodes/ios_code_gen.dart'; +import 'package:gen_keycodes/keyboard_keys_code_gen.dart'; +import 'package:gen_keycodes/keyboard_maps_code_gen.dart'; +import 'package:gen_keycodes/logical_key_data.dart'; +import 'package:gen_keycodes/macos_code_gen.dart'; +import 'package:gen_keycodes/physical_key_data.dart'; +import 'package:gen_keycodes/testing_key_codes_cc_gen.dart'; +import 'package:gen_keycodes/testing_key_codes_java_gen.dart'; +import 'package:gen_keycodes/utils.dart'; +import 'package:gen_keycodes/web_code_gen.dart'; +import 'package:gen_keycodes/windows_code_gen.dart'; +import 'package:http/http.dart' as http; +import 'package:path/path.dart' as path; + +/// Get contents of the file that contains the physical key mapping in Chromium +/// source. +Future getChromiumCodes() async { + final Uri keyCodesUri = Uri.parse('https://chromium.googlesource.com/codesearch/chromium/src/+/refs/heads/master/ui/events/keycodes/dom/dom_code_data.inc?format=TEXT'); + return utf8.decode(base64.decode(await http.read(keyCodesUri))); +} + +/// Get contents of the file that contains the logical key mapping in Chromium +/// source. +Future getChromiumKeys() async { + final Uri keyCodesUri = Uri.parse('https://chromium.googlesource.com/codesearch/chromium/src/+/refs/heads/master/ui/events/keycodes/dom/dom_key_data.inc?format=TEXT'); + return utf8.decode(base64.decode(await http.read(keyCodesUri))); +} + +/// Get contents of the file that contains the key codes in Android source. +Future getAndroidKeyCodes() async { + final Uri keyCodesUri = Uri.parse('https://android.googlesource.com/platform/frameworks/native/+/master/include/android/keycodes.h?format=TEXT'); + return utf8.decode(base64.decode(await http.read(keyCodesUri))); +} + +Future getWindowsKeyCodes() async { + final Uri keyCodesUri = Uri.parse('https://raw.githubusercontent.com/tpn/winsdk-10/master/Include/10.0.10240.0/um/WinUser.h'); + return http.read(keyCodesUri); +} + +/// Get contents of the file that contains the scan codes in Android source. +/// Yes, this is just the generic keyboard layout file for base Android distro +/// This is because there isn't any facility in Android to get the keyboard +/// layout, so we're using this to match scan codes with symbol names for most +/// common keyboards. Other than some special keyboards and game pads, this +/// should be OK. +Future getAndroidScanCodes() async { + final Uri scanCodesUri = Uri.parse('https://android.googlesource.com/platform/frameworks/base/+/master/data/keyboards/Generic.kl?format=TEXT'); + return utf8.decode(base64.decode(await http.read(scanCodesUri))); +} + +Future getGlfwKeyCodes() async { + final Uri keyCodesUri = Uri.parse('https://raw.githubusercontent.com/glfw/glfw/master/include/GLFW/glfw3.h'); + return http.read(keyCodesUri); +} + +Future getGtkKeyCodes() async { + final Uri keyCodesUri = Uri.parse('https://gitlab.gnome.org/GNOME/gtk/-/raw/gtk-3-24/gdk/gdkkeysyms.h'); + return http.read(keyCodesUri); +} + +String readDataFile(String fileName) { + return File(path.join(dataRoot, fileName)).readAsStringSync(); +} + +bool _assertsEnabled() { + bool enabledAsserts = false; + assert(() { + enabledAsserts = true; + return true; + }()); + return enabledAsserts; +} + +Future generate(String name, String outDir, BaseCodeGenerator generator) { + final File codeFile = File(outDir); + if (!codeFile.existsSync()) { + codeFile.createSync(recursive: true); + } + print('Writing ${name.padRight(15)}${codeFile.absolute}'); + return codeFile.writeAsString(generator.generate()); +} + +Future main(List rawArguments) async { + if (!_assertsEnabled()) { + print('The gen_keycodes script must be run with --enable-asserts.'); + return; + } + final ArgParser argParser = ArgParser(); + argParser.addOption( + 'engine-root', + defaultsTo: path.join(flutterRoot.path, '..', 'engine', 'src', 'flutter'), + help: 'The path to the root of the flutter/engine repository. This is used ' + 'to place the generated engine mapping files. If --engine-root is not ' + r'specified, it will default to $flutterRoot/../engine/src/flutter, ' + 'assuming the engine gclient folder is placed at the same folder as ' + 'the flutter/flutter repository.', + ); + argParser.addOption( + 'physical-data', + defaultsTo: path.join(dataRoot, 'physical_key_data.g.json'), + help: 'The path to where the physical key data file should be written when ' + 'collected, and read from when generating output code. If --physical-data is ' + 'not specified, the output will be written to/read from the current ' + "directory. If the output directory doesn't exist, it, and the path to " + 'it, will be created.', + ); + argParser.addOption( + 'logical-data', + defaultsTo: path.join(dataRoot, 'logical_key_data.g.json'), + help: 'The path to where the logical key data file should be written when ' + 'collected, and read from when generating output code. If --logical-data is ' + 'not specified, the output will be written to/read from the current ' + "directory. If the output directory doesn't exist, it, and the path to " + 'it, will be created.', + ); + argParser.addOption( + 'code', + defaultsTo: path.join(flutterRoot.path, 'packages', 'flutter', 'lib', 'src', 'services', 'keyboard_key.g.dart'), + help: 'The path to where the output "keyboard_key.g.dart" file should be ' + 'written. If --code is not specified, the output will be written to the ' + 'correct directory in the flutter tree. If the output directory does not ' + 'exist, it, and the path to it, will be created.', + ); + argParser.addOption( + 'maps', + defaultsTo: path.join(flutterRoot.path, 'packages', 'flutter', 'lib', 'src', 'services', 'keyboard_maps.g.dart'), + help: 'The path to where the output "keyboard_maps.g.dart" file should be ' + 'written. If --maps is not specified, the output will be written to the ' + 'correct directory in the flutter tree. If the output directory does not ' + 'exist, it, and the path to it, will be created.', + ); + argParser.addFlag( + 'collect', + negatable: false, + help: 'If this flag is set, then collect and parse header files from ' + 'Chromium and Android instead of reading pre-parsed data from ' + '"physical_key_data.g.json" and "logical_key_data.g.json", and then ' + 'update these files with the fresh data.', + ); + argParser.addFlag( + 'help', + negatable: false, + help: 'Print help for this command.', + ); + + final ArgResults parsedArguments = argParser.parse(rawArguments); + + if (parsedArguments['help'] as bool) { + print(argParser.usage); + exit(0); + } + + PlatformCodeGenerator.engineRoot = parsedArguments['engine-root'] as String; + + PhysicalKeyData physicalData; + LogicalKeyData logicalData; + if (parsedArguments['collect'] as bool) { + // Physical + final String baseHidCodes = await getChromiumCodes(); + final String supplementalHidCodes = readDataFile('supplemental_hid_codes.inc'); + final String androidScanCodes = await getAndroidScanCodes(); + final String androidToDomKey = readDataFile('android_key_name_to_name.json'); + physicalData = PhysicalKeyData( + [baseHidCodes, supplementalHidCodes].join('\n'), + androidScanCodes, + androidToDomKey, + ); + + // Logical + final String gtkKeyCodes = await getGtkKeyCodes(); + final String webLogicalKeys = await getChromiumKeys(); + final String supplementalKeyData = readDataFile('supplemental_key_data.inc'); + final String gtkToDomKey = readDataFile('gtk_logical_name_mapping.json'); + final String windowsKeyCodes = await getWindowsKeyCodes(); + final String windowsToDomKey = readDataFile('windows_logical_to_window_vk.json'); + final String macosLogicalToPhysical = readDataFile('macos_logical_to_physical.json'); + final String iosLogicalToPhysical = readDataFile('ios_logical_to_physical.json'); + final String androidKeyCodes = await getAndroidKeyCodes(); + final String glfwKeyCodes = await getGlfwKeyCodes(); + final String glfwToDomKey = readDataFile('glfw_key_name_to_name.json'); + + logicalData = LogicalKeyData( + [webLogicalKeys, supplementalKeyData].join('\n'), + gtkKeyCodes, + gtkToDomKey, + windowsKeyCodes, + windowsToDomKey, + androidKeyCodes, + androidToDomKey, + macosLogicalToPhysical, + iosLogicalToPhysical, + glfwKeyCodes, + glfwToDomKey, + physicalData, + ); + + // Write data files + const JsonEncoder encoder = JsonEncoder.withIndent(' '); + final String physicalJson = encoder.convert(physicalData.toJson()); + File(parsedArguments['physical-data'] as String).writeAsStringSync('$physicalJson\n'); + final String logicalJson = encoder.convert(logicalData.toJson()); + File(parsedArguments['logical-data'] as String).writeAsStringSync('$logicalJson\n'); + } else { + physicalData = PhysicalKeyData.fromJson(json.decode(await File(parsedArguments['physical-data'] as String).readAsString()) as Map); + logicalData = LogicalKeyData.fromJson(json.decode(await File(parsedArguments['logical-data'] as String).readAsString()) as Map); + } + + final Map layoutGoals = parseMapOfBool(readDataFile('layout_goals.json')); + + await generate('key codes', + parsedArguments['code'] as String, + KeyboardKeysCodeGenerator(physicalData, logicalData)); + await generate('key maps', + parsedArguments['maps'] as String, + KeyboardMapsCodeGenerator(physicalData, logicalData)); + await generate('engine utils', + path.join(PlatformCodeGenerator.engineRoot, + 'shell', 'platform', 'embedder', 'test_utils', 'key_codes.g.h'), + KeyCodesCcGenerator(physicalData, logicalData)); + await generate('android utils', + path.join(PlatformCodeGenerator.engineRoot, 'shell', 'platform', + path.join('android', 'test', 'io', 'flutter', 'util', 'KeyCodes.java')), + KeyCodesJavaGenerator(physicalData, logicalData)); + + final Map platforms = { + 'android': AndroidCodeGenerator( + physicalData, + logicalData, + ), + 'macos': MacOSCodeGenerator( + physicalData, + logicalData, + layoutGoals, + ), + 'ios': IOSCodeGenerator( + physicalData, + logicalData, + ), + 'windows': WindowsCodeGenerator( + physicalData, + logicalData, + readDataFile('windows_scancode_logical_map.json') + ), + 'linux': GtkCodeGenerator( + physicalData, + logicalData, + readDataFile('gtk_modifier_bit_mapping.json'), + readDataFile('gtk_lock_bit_mapping.json'), + layoutGoals, + ), + 'web': WebCodeGenerator( + physicalData, + logicalData, + readDataFile('web_logical_location_mapping.json'), + ), + }; + await Future.wait(platforms.entries.map((MapEntry entry) { + final String platform = entry.key; + final PlatformCodeGenerator codeGenerator = entry.value; + return generate('$platform map', + codeGenerator.outputPath(platform), + codeGenerator); + })); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/README.md b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/README.md new file mode 100644 index 0000000000000000000000000000000000000000..d4542a0c701092d94e2d355f3dc70475e20c0640 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/README.md @@ -0,0 +1,82 @@ +## Files + +### General + +| File name | Explanation | +| ---- | ---- | +| [`physical_key_data.g.json`](physical_key_data.g.json) | Contains the merged physical key data from all the other sources. This file is regenerated if "--collect" is specified for the gen_keycodes script, or used as a source otherwise. | +| [`logical_key_data.g.json`](logical_key_data.g.json) | Contains the merged logical key data from all the other sources. This file is regenerated if "--collect" is specified for the gen_keycodes script, or used as a source otherwise. | +| [`supplemental_hid_codes.inc`](supplemental_hid_codes.inc) | A supplementary HID list on top of Chromium's list of HID codes for extra physical keys. Certain entries may also overwrite Chromium's corresponding entries. | +| [`supplemental_key_data.inc`](supplemental_key_data.inc) | A supplementary key list on top of Chromium's list of keys for extra logical keys.| +| [`chromium_modifiers.json`](chromium_modifiers.json) | Maps the web's `key` for modifier keys to the names of the logical keys for these keys' left and right variations.This is used when generating logical keys to provide independent values for sided logical keys. Web uses the same `key` for modifier keys of different sides, but Flutter's logical key model treats them as different keys.| +| [`printable.json`](printable.json) | Maps Flutter key name to its printable character. This character is used as the key label.| +| [`synonyms.json`](synonyms.json) | Maps pseudo-keys that represent other keys to the sets of keys they represent. For example, this contains the "shift" key that represents either a "shiftLeft" or "shiftRight" key.| +| [`layout_goals.json`](layout_goals.json) | A list of layout goals, keys that the platform keyboard manager should find mappings for. Each key in this file is the key name of the goal, both logical and physical simultaneously, while its value represents whether the goal is mandatory. A mandatory goal must be fulfilled, and the manager will use the default value from this file if a mapping can not be found. A non-mandatory goal is suggestive, only used if the key mapping information is malformed (e.g. contains no ASCII characters.) | + +### Framework + +| File name | Explanation | +| ---- | ---- | +| [`keyboard_key.tmpl`](keyboard_key.tmpl) | The template for `keyboard_key.g.dart`. | +| [`keyboard_maps.tmpl`](keyboard_maps.tmpl) | The template for `keyboard_maps.g.dart`. | + + +### Android + +| File name | Explanation | +| ---- | ---- | +| [`android_keyboard_map_java.tmpl`](android_keyboard_map_java.tmpl) | The template for `KeyboardMap.java`. | +| [`android_key_name_to_name.json`](android_key_name_to_name.json) | Maps a logical key name to the names of its corresponding keycode constants. This is used to convert logical keys.| + + +### iOS + +| File name | Explanation | +| ---- | ---- | +| [`ios_logical_to_physical.json`](ios_logical_to_physical.json) | Maps a logical key name to the names of its corresponding physical keys. This is used to derive logical keys (from `keyCode`) that can't or shouldn't be derived from `characterIgnoringModifiers`. | +| [`ios_key_code_map_mm.tmpl`](ios_key_code_map_mm.tmpl) | The template for `KeyCodeMap.mm`.| + +### Web + +| File name | Explanation | +| ---- | ---- | +| [`web_key_map_dart.tmpl`](web_key_map_dart.tmpl) | The template for `key_map.dart`. | +| [`web_logical_location_mapping.json`](web_logical_location_mapping.json) | Maps a pair of the web's `key` and `location` to the name for its corresponding logical key. This is used to distinguish between logical keys with the same `key` but different `locations`. | + +### Windows + +| File name | Explanation | +| ---- | ---- | +| [`windows_flutter_key_map_cc.tmpl`](windows_flutter_key_map_cc.tmpl) | The template for `flutter_key_map.cc`. | +| [`windows_logical_to_window_vk.json`](windows_logical_to_window_vk.json) | Maps a logical key name to the names of its corresponding virtual keys in Win32. | +| [`windows_scancode_logical_map.json`](windows_scancode_logical_map.json) | Maps a physical key name to a logical key name. This is used to when a `keycode` maps to multiple keys (including when the `keycode` is 0), therefore can only be told apart by the scan code. | + +### Linux (GTK) + +| File name | Explanation | +| ---- | ---- | +| [`gtk_key_mapping_cc.tmpl`](gtk_key_mapping_cc.tmpl) | The template for `key_mapping.cc`. | +| [`gtk_lock_bit_mapping.json`](gtk_lock_bit_mapping.json) | Maps a name for GTK's modifier bit macro to Flutter's logical name (element #0) and physical name (element #1). This is used to generate checked keys that GTK should keep lock state synchronous on.| +| [`gtk_logical_name_mapping.json`](gtk_logical_name_mapping.json) | Maps a logical key name to the macro names of its corresponding `keyval`s. This is used to convert logical keys.| +| [`gtk_modifier_bit_mapping.json`](gtk_modifier_bit_mapping.json) | Maps a name for GTK's modifier bit macro to Flutter's physical name (element #0), logical name (element #1), and the logical name for the paired key (element #2). This is used to generate checked keys where GTK should keep the pressed state synchronized.| +| [`gtk_numpad_shift.json`](gtk_numpad_shift.json) | Maps the name of a `keyval` macro of a numpad key to that of the corresponding key with NumLock on. GTK uses different `keyval` for numpad keys with and without NumLock on, but Flutter's logical key model treats them as the same key.| + +### Linux (GLFW) + +| File name | Explanation | +| ---- | ---- | +| [`glfw_key_name_to_name.json`](glfw_key_name_to_name.json) | Maps a logical key name to the names of its GLFW macro. (Unused for now.) | +| [`glfw_keyboard_map_cc.tmpl`](glfw_keyboard_map_cc.tmpl) | The template for `keyboard_map.cc`. (Unused for now.) | + +### macOS + +| File name | Explanation | +| ---- | ---- | +| [`macos_key_code_map_cc.tmpl`](macos_key_code_map_cc.tmpl) | The template for `KeyCodeMap.mm`. | +| [`macos_logical_to_physical.json`](macos_logical_to_physical.json) | Maps a logical key name to the names of its corresponding physical keys. This is used to derive logical keys (from `keyCode`) that can't or shouldn't be derived from `characterIgnoringModifiers`. | + +### Fuchsia + +| File name | Explanation | +| ---- | ---- | +| [`fuchsia_keyboard_map_cc.tmpl`](fuchsia_keyboard_map_cc.tmpl) | The template for `keyboard_map.cc`. (Unused for now.) | diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/android_key_name_to_name.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/android_key_name_to_name.json new file mode 100644 index 0000000000000000000000000000000000000000..51e0269fff994cdb17a504713fde61152858fdbf --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/android_key_name_to_name.json @@ -0,0 +1,289 @@ +{ + "Add": ["PLUS"], + "Again": ["AGAIN"], + "AltLeft": ["ALT_LEFT"], + "AltRight": ["ALT_RIGHT"], + "AppSwitch": ["APP_SWITCH"], + "ArrowDown": ["DPAD_DOWN"], + "ArrowLeft": ["DPAD_LEFT"], + "ArrowRight": ["DPAD_RIGHT"], + "ArrowUp": ["DPAD_UP"], + "Asterisk": ["STAR"], + "At": ["AT"], + "AudioVolumeDown": ["VOLUME_DOWN"], + "AudioVolumeMute": ["VOLUME_MUTE"], + "AudioVolumeUp": ["VOLUME_UP"], + "AVRInput": ["AVR_INPUT"], + "AVRPower": ["AVR_POWER"], + "BassBoost": ["BASSBOOST"], + "Print": ["PRINT"], + "Backquote": ["GRAVE"], + "Backslash": ["BACKSLASH"], + "Backspace": ["DEL"], + "BracketLeft": ["LEFT_BRACKET"], + "BracketRight": ["RIGHT_BRACKET"], + "BrightnessDown": ["BRIGHTNESS_DOWN"], + "BrightnessUp": ["BRIGHTNESS_UP"], + "BrowserFavorites": ["BOOKMARK"], + "BrowserForward": ["FORWARD"], + "BrowserSearch": ["SEARCH"], + "Call": ["CALL"], + "Camera": ["CAMERA"], + "CameraFocus": ["FOCUS"], + "CapsLock": ["CAPS_LOCK"], + "ChannelDown": ["CHANNEL_DOWN"], + "ChannelUp": ["CHANNEL_UP"], + "Clear": ["CLEAR"], + "Close": ["MEDIA_CLOSE", "CLOSE"], + "ClosedCaptionToggle": ["CAPTIONS"], + "ColorF0Red": ["PROG_RED"], + "ColorF1Green": ["PROG_GREEN"], + "ColorF2Yellow": ["PROG_YELLOW"], + "ColorF3Blue": ["PROG_BLUE"], + "Comma": ["COMMA"], + "ContextMenu": ["MENU"], + "ControlLeft": ["CTRL_LEFT"], + "ControlRight": ["CTRL_RIGHT"], + "Convert": ["HENKAN"], + "Copy": ["COPY"], + "Cut": ["CUT"], + "Delete": ["FORWARD_DEL"], + "Digit0": ["0"], + "Digit1": ["1"], + "Digit2": ["2"], + "Digit3": ["3"], + "Digit4": ["4"], + "Digit5": ["5"], + "Digit6": ["6"], + "Digit7": ["7"], + "Digit8": ["8"], + "Digit9": ["9"], + "DVR": ["DVR"], + "Eisu": ["EISU"], + "Eject": ["MEDIA_EJECT"], + "End": ["MOVE_END"], + "EndCall": ["ENDCALL"], + "Enter": ["ENTER"], + "Equal": ["EQUALS"], + "Escape": ["ESCAPE"], + "Exit": ["EXIT"], + "F1": ["F1"], + "F2": ["F2"], + "F3": ["F3"], + "F4": ["F4"], + "F5": ["F5"], + "F6": ["F6"], + "F7": ["F7"], + "F8": ["F8"], + "F9": ["F9"], + "F10": ["F10"], + "F11": ["F11"], + "F12": ["F12"], + "F13": ["F13"], + "F14": ["F14"], + "F15": ["F15"], + "F16": ["F16"], + "F17": ["F17"], + "F18": ["F18"], + "F19": ["F19"], + "F20": ["F20"], + "F21": ["F21"], + "F22": ["F22"], + "F23": ["F23"], + "F24": ["F24"], + "Find": ["FIND"], + "Fn": ["FUNCTION"], + "GameButton1": ["BUTTON_1"], + "GameButton2": ["BUTTON_2"], + "GameButton3": ["BUTTON_3"], + "GameButton4": ["BUTTON_4"], + "GameButton5": ["BUTTON_5"], + "GameButton6": ["BUTTON_6"], + "GameButton7": ["BUTTON_7"], + "GameButton8": ["BUTTON_8"], + "GameButton9": ["BUTTON_9"], + "GameButton10": ["BUTTON_10"], + "GameButton11": ["BUTTON_11"], + "GameButton12": ["BUTTON_12"], + "GameButton13": ["BUTTON_13"], + "GameButton14": ["BUTTON_14"], + "GameButton15": ["BUTTON_15"], + "GameButton16": ["BUTTON_16"], + "GameButtonA": ["BUTTON_A"], + "GameButtonB": ["BUTTON_B"], + "GameButtonC": ["BUTTON_C"], + "GameButtonLeft1": ["BUTTON_L1"], + "GameButtonLeft2": ["BUTTON_L2"], + "GameButtonMode": ["BUTTON_MODE"], + "GameButtonRight1": ["BUTTON_R1"], + "GameButtonRight2": ["BUTTON_R2"], + "GameButtonSelect": ["BUTTON_SELECT"], + "GameButtonStart": ["BUTTON_START"], + "GameButtonThumbLeft": ["BUTTON_THUMBL"], + "GameButtonThumbRight": ["BUTTON_THUMBR"], + "GameButtonX": ["BUTTON_X"], + "GameButtonY": ["BUTTON_Y"], + "GameButtonZ": ["BUTTON_Z"], + "GoBack": ["BACK"], + "GoHome": ["HOME"], + "GroupNext": ["LANGUAGE_SWITCH"], + "Guide": ["GUIDE"], + "HeadsetHook": ["HEADSETHOOK"], + "Help": ["HELP"], + "HiraganaKatakana": ["KATAKANA_HIRAGANA"], + "Home": ["MOVE_HOME"], + "Info": ["INFO"], + "Insert": ["INSERT"], + "KanjiMode": ["KANA"], + "KeyA": ["A"], + "KeyB": ["B"], + "KeyC": ["C"], + "KeyD": ["D"], + "KeyE": ["E"], + "KeyF": ["F"], + "KeyG": ["G"], + "KeyH": ["H"], + "KeyI": ["I"], + "KeyJ": ["J"], + "KeyK": ["K"], + "KeyL": ["L"], + "KeyM": ["M"], + "KeyN": ["N"], + "KeyO": ["O"], + "KeyP": ["P"], + "KeyQ": ["Q"], + "KeyR": ["R"], + "KeyS": ["S"], + "KeyT": ["T"], + "KeyU": ["U"], + "KeyV": ["V"], + "KeyW": ["W"], + "KeyX": ["X"], + "KeyY": ["Y"], + "KeyZ": ["Z"], + "IntlRo": ["RO"], + "IntlYen": ["YEN"], + "Lang1": [], + "Lang2": [], + "Lang3": ["KATAKANA"], + "Lang4": ["HIRAGANA"], + "LaunchAssistant": ["ASSIST"], + "LaunchCalendar": ["CALENDAR"], + "LaunchContacts": ["CONTACTS"], + "LaunchMail": ["ENVELOPE"], + "LaunchMusicPlayer": ["MUSIC"], + "LaunchWebBrowser": ["EXPLORER"], + "MannerMode": ["MANNER_MODE"], + "MediaAudioTrack": ["MEDIA_AUDIO_TRACK"], + "MediaFastForward": ["MEDIA_FAST_FORWARD"], + "MediaLast": ["LAST_CHANNEL"], + "MediaPause": ["MEDIA_PAUSE"], + "MediaPlay": ["MEDIA_PLAY"], + "MediaPlayPause": ["MEDIA_PLAY_PAUSE"], + "MediaRecord": ["MEDIA_RECORD"], + "MediaRewind": ["MEDIA_REWIND"], + "MediaSkipBackward": ["MEDIA_SKIP_BACKWARD"], + "MediaSkipForward": ["MEDIA_SKIP_FORWARD"], + "MediaStepBackward": ["MEDIA_STEP_BACKWARD"], + "MediaStepForward": ["MEDIA_STEP_FORWARD"], + "MediaStop": ["MEDIA_STOP"], + "MediaTopMenu": ["MEDIA_TOP_MENU"], + "MediaTrackNext": ["MEDIA_NEXT"], + "MediaTrackPrevious": ["MEDIA_PREVIOUS"], + "MetaLeft": ["META_LEFT"], + "MetaRight": ["META_RIGHT"], + "MicrophoneVolumeMute": ["MUTE"], + "Minus": ["MINUS"], + "ModeChange": ["SWITCH_CHARSET"], + "NavigateIn": ["NAVIGATE_IN"], + "NavigateNext": ["NAVIGATE_NEXT"], + "NavigateOut": ["NAVIGATE_OUT"], + "NavigatePrevious": ["NAVIGATE_PREVIOUS"], + "NewKey": ["NEW"], + "NonConvert": ["MUHENKAN"], + "Notification": ["NOTIFICATION"], + "NumLock": ["NUM_LOCK"], + "NumberSign": ["POUND"], + "Numpad0": ["NUMPAD_0"], + "Numpad1": ["NUMPAD_1"], + "Numpad2": ["NUMPAD_2"], + "Numpad3": ["NUMPAD_3"], + "Numpad4": ["NUMPAD_4"], + "Numpad5": ["NUMPAD_5"], + "Numpad6": ["NUMPAD_6"], + "Numpad7": ["NUMPAD_7"], + "Numpad8": ["NUMPAD_8"], + "Numpad9": ["NUMPAD_9"], + "NumpadAdd": ["NUMPAD_ADD"], + "NumpadComma": ["NUMPAD_COMMA"], + "NumpadDecimal": ["NUMPAD_DOT"], + "NumpadDivide": ["NUMPAD_DIVIDE"], + "NumpadEnter": ["NUMPAD_ENTER"], + "NumpadEqual": ["NUMPAD_EQUALS"], + "NumpadMultiply": ["NUMPAD_MULTIPLY"], + "NumpadParenLeft": ["NUMPAD_LEFT_PAREN"], + "NumpadParenRight": ["NUMPAD_RIGHT_PAREN"], + "NumpadSubtract": ["NUMPAD_SUBTRACT"], + "Open": ["OPEN"], + "PageDown": ["PAGE_DOWN"], + "PageUp": ["PAGE_UP"], + "Pairing": ["PAIRING"], + "Paste": ["PASTE"], + "Pause": ["BREAK"], + "Period": ["PERIOD"], + "Power": ["POWER"], + "PrintScreen": ["SYSRQ"], + "Props": ["PROPS"], + "Quote": ["APOSTROPHE"], + "Redo": ["REDO"], + "ScrollLock": ["SCROLL_LOCK"], + "Select": ["DPAD_CENTER"], + "Semicolon": ["SEMICOLON"], + "Settings": ["SETTINGS"], + "ShiftLeft": ["SHIFT_LEFT"], + "ShiftRight": ["SHIFT_RIGHT"], + "Slash": ["SLASH"], + "Sleep": ["SLEEP"], + "Space": ["SPACE"], + "STBInput": ["STB_INPUT"], + "STBPower": ["STB_POWER"], + "Suspend": ["SUSPEND"], + "Symbol": ["SYM"], + "Tab": ["TAB"], + "Teletext": ["TV_TELETEXT"], + "TV": ["TV"], + "TV3DMode": ["3D_MODE"], + "TVAntennaCable": ["TV_ANTENNA_CABLE"], + "TVAudioDescription": ["TV_AUDIO_DESCRIPTION"], + "TVAudioDescriptionMixDown": ["TV_AUDIO_DESCRIPTION_MIX_DOWN"], + "TVAudioDescriptionMixUp": ["TV_AUDIO_DESCRIPTION_MIX_UP"], + "TVContentsMenu": ["TV_CONTENTS_MENU"], + "TVDataService": ["TV_DATA_SERVICE"], + "TVInput": ["TV_INPUT"], + "TVInputComponent1": ["TV_INPUT_COMPONENT_1"], + "TVInputComponent2": ["TV_INPUT_COMPONENT_2"], + "TVInputComposite1": ["TV_INPUT_COMPOSITE_1"], + "TVInputComposite2": ["TV_INPUT_COMPOSITE_2"], + "TVInputHDMI1": ["TV_INPUT_HDMI_1"], + "TVInputHDMI2": ["TV_INPUT_HDMI_2"], + "TVInputHDMI3": ["TV_INPUT_HDMI_3"], + "TVInputHDMI4": ["TV_INPUT_HDMI_4"], + "TVInputVGA1": ["TV_INPUT_VGA_1"], + "TVNetwork": ["TV_NETWORK"], + "TVNumberEntry": ["TV_NUMBER_ENTRY"], + "TVPower": ["TV_POWER"], + "TVRadioService": ["TV_RADIO_SERVICE"], + "TVSatellite": ["TV_SATELLITE"], + "TVSatelliteBS": ["TV_SATELLITE_BS"], + "TVSatelliteCS": ["TV_SATELLITE_CS"], + "TVSatelliteToggle": ["TV_SATELLITE_SERVICE"], + "TVTerrestrialAnalog": ["TV_TERRESTRIAL_ANALOG"], + "TVTerrestrialDigital": ["TV_TERRESTRIAL_DIGITAL"], + "TVTimer": ["TV_TIMER_PROGRAMMING"], + "Undo": ["UNDO"], + "WakeUp": ["WAKEUP"], + "ZenkakuHankaku": ["ZENKAKU_HANKAKU"], + "ZoomIn": ["ZOOM_IN"], + "ZoomOut": ["ZOOM_OUT"], + "ZoomToggle": ["TV_ZOOM_MODE"] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/android_keyboard_map_java.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/android_keyboard_map_java.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..1f61b65fb8e46078406d39643c7ed58e08b88f92 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/android_keyboard_map_java.tmpl @@ -0,0 +1,109 @@ +package io.flutter.embedding.android; + +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by flutter/flutter@dev/tools/gen_keycodes/bin/gen_keycodes.dart and +// should not be edited directly. +// +// Edit the template dev/tools/gen_keycodes/data/android_keyboard_map_java.tmpl instead. +// See dev/tools/gen_keycodes/README.md for more information. + +import android.view.KeyEvent; +import java.util.HashMap; + +/** Static information used by {@link KeyEmbedderResponder}. */ +public class KeyboardMap { + /** A physicalKey-logicalKey pair used to define mappings. */ + public static class KeyPair { + public KeyPair(long physicalKey, long logicalKey) { + this.physicalKey = physicalKey; + this.logicalKey = logicalKey; + } + + public long physicalKey; + public long logicalKey; + } + + /** + * An immutable configuration item that defines how to synchronize pressing modifiers (such as + * Shift or Ctrl), so that the {@link KeyEmbedderResponder} must synthesize events until the + * combined pressing state of {@link keys} matches the true meta state masked by {@link mask}. + */ + public static class PressingGoal { + public PressingGoal(int mask, KeyPair[] keys) { + this.mask = mask; + this.keys = keys; + } + + public final int mask; + public final KeyPair[] keys; + } + + /** + * A configuration item that defines how to synchronize toggling modifiers (such as CapsLock), so + * that the {@link KeyEmbedderResponder} must synthesize events until the enabling state of the + * key matches the true meta state masked by {@link #mask}. + * + *

    The objects of this class are mutable. The {@link #enabled} field will be used to store the + * current enabling state. + */ + public static class TogglingGoal { + public TogglingGoal(int mask, long physicalKey, long logicalKey) { + this.mask = mask; + this.physicalKey = physicalKey; + this.logicalKey = logicalKey; + } + + public final int mask; + public final long physicalKey; + public final long logicalKey; + /** + * Used by {@link KeyEmbedderResponder} to store the current enabling state of this modifier. + * + *

    Initialized as false. + */ + public boolean enabled = false; + } + + /** Maps from Android scan codes {@link KeyEvent#getScanCode()} to Flutter physical keys. */ + public static final HashMap scanCodeToPhysical = + new HashMap() { + private static final long serialVersionUID = 1L; + + { +@@@ANDROID_SCAN_CODE_MAP@@@ + } + }; + + /** Maps from Android key codes {@link KeyEvent#getKeyCode()} to Flutter logical keys. */ + public static final HashMap keyCodeToLogical = + new HashMap() { + private static final long serialVersionUID = 1L; + + { +@@@ANDROID_KEY_CODE_MAP@@@ + } + }; + + public static final PressingGoal[] pressingGoals = + new PressingGoal[] { +@@@PRESSING_GOALS@@@ + }; + + /** + * A list of toggling modifiers that must be synchronized on each key event. + * + *

    The list is not a static variable but constructed by a function, because {@link + * TogglingGoal} is mutable. + */ + public static TogglingGoal[] getTogglingGoals() { + return new TogglingGoal[] { +@@@TOGGLING_GOALS@@@ + }; + } + +@@@MASK_CONSTANTS@@@ +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/chromium_modifiers.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/chromium_modifiers.json new file mode 100644 index 0000000000000000000000000000000000000000..173bbbf734d920c796b05ae06352db00c0240f2f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/chromium_modifiers.json @@ -0,0 +1,6 @@ +{ + "Shift": ["ShiftLeft", "ShiftRight"], + "Meta": ["MetaLeft", "MetaRight"], + "Alt": ["AltLeft", "AltRight"], + "Control": ["ControlLeft", "ControlRight"] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/fuchsia_keyboard_map_cc.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/fuchsia_keyboard_map_cc.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..668d517d46c82c582afeb402aa50909fe2908db1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/fuchsia_keyboard_map_cc.tmpl @@ -0,0 +1,27 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by +// flutter/flutter:dev/tools/gen_keycodes/bin/gen_keycodes.dart and should not +// be edited directly. +// +// Edit the template +// flutter/flutter:dev/tools/gen_keycodes/data/fuchsia_keyboard_map_cc.tmpl +// instead. +// +// See flutter/flutter:dev/tools/gen_keycodes/README.md for more information. + +/// Maps Fuchsia-specific IDs to the matching LogicalKeyboardKey. +const std::map g_fuchsia_to_logical_key = { +@@@FUCHSIA_KEY_CODE_MAP@@@ +}; + +/// Maps Fuchsia-specific USB HID Usage IDs to the matching +/// [PhysicalKeyboardKey]. +const std::map g_fuchsia_to_physical_key = { +@@@FUCHSIA_SCAN_CODE_MAP@@@ +}; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/glfw_key_name_to_name.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/glfw_key_name_to_name.json new file mode 100644 index 0000000000000000000000000000000000000000..7524a15cf9f34c725b1466dc0e9248ed12d96435 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/glfw_key_name_to_name.json @@ -0,0 +1,118 @@ +{ + "AltLeft": ["LEFT_ALT"], + "AltRight": ["RIGHT_ALT"], + "ArrowDown": ["DOWN"], + "ArrowLeft": ["LEFT"], + "ArrowRight": ["RIGHT"], + "ArrowUp": ["UP"], + "Backquote": ["GRAVE_ACCENT"], + "Backslash": ["BACKSLASH"], + "Backspace": ["BACKSPACE"], + "BracketLeft": ["LEFT_BRACKET"], + "BracketRight": ["RIGHT_BRACKET"], + "CapsLock": ["CAPS_LOCK"], + "Comma": ["COMMA"], + "ContextMenu": ["MENU"], + "ControlLeft": ["LEFT_CONTROL"], + "ControlRight": ["RIGHT_CONTROL"], + "Delete": ["DELETE"], + "Digit0": ["0"], + "Digit1": ["1"], + "Digit2": ["2"], + "Digit3": ["3"], + "Digit4": ["4"], + "Digit5": ["5"], + "Digit6": ["6"], + "Digit7": ["7"], + "Digit8": ["8"], + "Digit9": ["9"], + "End": ["END"], + "Enter": ["ENTER"], + "Equal": ["EQUAL"], + "Escape": ["ESCAPE"], + "F1": ["F1"], + "F2": ["F2"], + "F3": ["F3"], + "F4": ["F4"], + "F5": ["F5"], + "F6": ["F6"], + "F7": ["F7"], + "F8": ["F8"], + "F9": ["F9"], + "F10": ["F10"], + "F11": ["F11"], + "F12": ["F12"], + "F13": ["F13"], + "F14": ["F14"], + "F15": ["F15"], + "F16": ["F16"], + "F17": ["F17"], + "F18": ["F18"], + "F19": ["F19"], + "F20": ["F20"], + "F21": ["F21"], + "F22": ["F22"], + "F23": ["F23"], + "F25": ["F25"], + "Home": ["HOME"], + "Insert": ["INSERT"], + "KeyA": ["A"], + "KeyB": ["B"], + "KeyC": ["C"], + "KeyD": ["D"], + "KeyE": ["E"], + "KeyF": ["F"], + "KeyG": ["G"], + "KeyH": ["H"], + "KeyI": ["I"], + "KeyJ": ["J"], + "KeyK": ["K"], + "KeyL": ["L"], + "KeyM": ["M"], + "KeyN": ["N"], + "KeyO": ["O"], + "KeyP": ["P"], + "KeyQ": ["Q"], + "KeyR": ["R"], + "KeyS": ["S"], + "KeyT": ["T"], + "KeyU": ["U"], + "KeyV": ["V"], + "KeyW": ["W"], + "KeyX": ["X"], + "KeyY": ["Y"], + "KeyZ": ["Z"], + "MetaLeft": ["LEFT_SUPER"], + "MetaRight": ["RIGHT_SUPER"], + "Minus": ["MINUS"], + "NumLock": ["NUM_LOCK"], + "Numpad0": ["KP_0"], + "Numpad1": ["KP_1"], + "Numpad2": ["KP_2"], + "Numpad3": ["KP_3"], + "Numpad4": ["KP_4"], + "Numpad5": ["KP_5"], + "Numpad6": ["KP_6"], + "Numpad7": ["KP_7"], + "Numpad8": ["KP_8"], + "Numpad9": ["KP_9"], + "NumpadAdd": ["KP_ADD"], + "NumpadDecimal": ["KP_DECIMAL"], + "NumpadDivide": ["KP_DIVIDE"], + "NumpadEnter": ["KP_ENTER"], + "NumpadEqual": ["KP_EQUAL"], + "NumpadMultiply": ["KP_MULTIPLY"], + "NumpadSubtract": ["NUMPAD_SUBTRACT"], + "PageDown": ["PAGE_DOWN"], + "PageUp": ["PAGE_UP"], + "Pause": ["PAUSE"], + "Period": ["PERIOD"], + "PrintScreen": ["PRINT_SCREEN"], + "Quote": ["APOSTROPHE"], + "Semicolon": ["SEMICOLON"], + "ShiftLeft": ["LEFT_SHIFT"], + "ShiftRight": ["RIGHT_SHIFT"], + "Slash": ["SLASH"], + "Space": ["SPACE"], + "Tab": ["TAB"] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/glfw_keyboard_map_cc.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/glfw_keyboard_map_cc.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..17e61e3742a6755fa3ae247f908d10f5398576a6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/glfw_keyboard_map_cc.tmpl @@ -0,0 +1,28 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by +// flutter/flutter:dev/tools/gen_keycodes/bin/gen_keycodes.dart and should not +// be edited directly. +// +// Edit the template +// flutter/flutter:dev/tools/gen_keycodes/data/glfw_keyboard_map_cc.tmpl +// instead. +// +// See flutter/flutter:dev/tools/gen_keycodes/README.md for more information. + +/// Maps GLFW-specific key codes to the matching [LogicalKeyboardKey]. +const std::map g_glfw_to_logical_key = { +@@@GLFW_KEY_CODE_MAP@@@ +}; + +/// A map of GLFW key codes which have printable representations, but appear +/// on the number pad. Used to provide different key objects for keys like +/// KEY_EQUALS and NUMPAD_EQUALS. +const std::map g_glfw_numpad_map = { +@@@GLFW_NUMPAD_MAP@@@ +}; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_key_mapping_cc.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_key_mapping_cc.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..c43c563f60f1423c35456e257a8d6a7f3468724c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_key_mapping_cc.tmpl @@ -0,0 +1,42 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "key_mapping.h" + +#include +#include + +#include "flutter/shell/platform/linux/fl_key_embedder_responder_private.h" + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by +// flutter/flutter@dev/tools/gen_keycodes/bin/gen_keycodes.dart and should not +// be edited directly. +// +// Edit the template dev/tools/gen_keycodes/data/gtk_key_mapping_cc.tmpl +// instead. See dev/tools/gen_keycodes/README.md for more information. + +std::map xkb_to_physical_key_map = { +@@@XKB_SCAN_CODE_MAP@@@ +}; + +std::map gtk_keyval_to_logical_key_map = { +@@@GTK_KEYVAL_CODE_MAP@@@ +}; + +void initialize_modifier_bit_to_checked_keys(GHashTable* table) { + FlKeyEmbedderCheckedKey* data; +@@@GTK_MODIFIER_BIT_MAP@@@ +} + +void initialize_lock_bit_to_checked_keys(GHashTable* table) { + FlKeyEmbedderCheckedKey* data; +@@@GTK_MODE_BIT_MAP@@@ +} + +const std::vector layout_goals = { +@@@LAYOUT_GOALS@@@ +}; + +@@@MASK_CONSTANTS@@@ diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_lock_bit_mapping.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_lock_bit_mapping.json new file mode 100644 index 0000000000000000000000000000000000000000..21e60ea35374dd349d593ed95e69ef713d144c61 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_lock_bit_mapping.json @@ -0,0 +1,4 @@ +{ + "LOCK": ["CapsLock", "CapsLock"], + "MOD2": ["NumLock", "NumLock"] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_logical_name_mapping.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_logical_name_mapping.json new file mode 100644 index 0000000000000000000000000000000000000000..1a2bd2b868aea8951dd836ea355c8b434a539c29 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_logical_name_mapping.json @@ -0,0 +1,158 @@ +{ + "NumpadAdd": ["KP_Add"], + "NumpadMultiply": ["KP_Multiply"], + "NumpadSubtract": ["KP_Subtract"], + "NumpadDivide": ["KP_Divide"], + "Space": ["KP_Space"], + "Period": ["KP_Decimal"], + "NumpadEqual": ["KP_Equal"], + "Numpad0": ["KP_0", "KP_Insert"], + "Numpad1": ["KP_1", "KP_End"], + "Numpad2": ["KP_2", "KP_Down"], + "Numpad3": ["KP_3", "KP_Page_Down"], + "Numpad4": ["KP_4", "KP_Left"], + "Numpad5": ["KP_5"], + "Numpad6": ["KP_6", "KP_Right"], + "Numpad7": ["KP_7", "KP_Home"], + "Numpad8": ["KP_8", "KP_Up"], + "Numpad9": ["KP_9", "KP_Page_Up"], + "NumpadDecimal": ["KP_Period", "KP_Delete"], + "NumpadEnter": ["KP_Enter"], + "AltLeft": ["Alt_L"], + "AltRight": ["Alt_R", "ISO_Level3_Shift"], + "ArrowDown": ["Down"], + "ArrowLeft": ["Left"], + "ArrowRight": ["Right"], + "ArrowUp": ["Up"], + "Attn": ["3270_Attn"], + "AudioVolumeDown": ["AudioLowerVolume"], + "AudioVolumeMute": ["AudioMute"], + "AudioVolumeUp": ["AudioRaiseVolume"], + "Backspace": ["BackSpace"], + "BrightnessDown": ["MonBrightnessDown"], + "BrightnessUp": ["MonBrightnessUp"], + "BrowserBack": ["Back"], + "BrowserFavorites": ["Favorites"], + "BrowserFavourites": ["Favourites"], + "BrowserForward": ["Forward"], + "BrowserHome": ["HomePage"], + "BrowserRefresh": ["Refresh"], + "BrowserSearch": ["Search"], + "BrowserStop": ["Stop"], + "Cancel": ["Cancel"], + "CapsLock": ["Caps_Lock"], + "Clear": ["Clear"], + "Close": ["Close"], + "CodeInput": ["Codeinput"], + "ContextMenu": ["Menu"], + "ControlLeft": ["Control_L"], + "ControlRight": ["Control_R"], + "Copy": ["Copy", "3270_Copy"], + "Cut": ["Cut"], + "Delete": ["Delete"], + "Eisu": ["Eisu_Shift"], + "Eject": ["Eject"], + "End": ["End"], + "Enter": ["Return", "3270_Enter", "ISO_Enter"], + "EraseEof": ["3270_EraseEOF"], + "Escape": ["Escape"], + "ExSel": ["3270_ExSelect"], + "Execute": ["Execute"], + "F1": ["F1", "KP_F1"], + "F2": ["F2", "KP_F2"], + "F3": ["F3", "KP_F3"], + "F4": ["F4", "KP_F4"], + "F5": ["F5"], + "F6": ["F6"], + "F7": ["F7"], + "F8": ["F8"], + "F9": ["F9"], + "F10": ["F10"], + "F11": ["F11"], + "F12": ["F12"], + "F13": ["F13"], + "F14": ["F14"], + "F15": ["F15"], + "F16": ["F16"], + "F17": ["F17"], + "F18": ["F18"], + "F19": ["F19"], + "F20": ["F20"], + "F21": ["F21"], + "F22": ["F22"], + "F23": ["F23"], + "F24": ["F24"], + "F25": ["F25"], + "Find": ["Find"], + "GroupFirst": ["ISO_First_Group"], + "GroupLast": ["ISO_Last_Group"], + "GroupNext": ["ISO_Next_Group"], + "GroupPrevious": ["ISO_Prev_Group"], + "HangulMode": ["Hangul"], + "HanjaMode": ["Hangul_Hanja"], + "Hankaku": ["Hankaku"], + "Help": ["Help"], + "Hiragana": ["Hiragana"], + "HiraganaKatakana": ["Hiragana_Katakana"], + "Home": ["Home"], + "Hybernate": ["Hybernate"], + "Hyper": ["Hyper_L", "Hyper_R"], + "Insert": ["Insert"], + "IntlYen": ["yen"], + "KanjiMode": ["Kanji"], + "Katakana": ["Katakana"], + "LaunchAudioBrowser": ["Music"], + "LaunchCalendar": ["Calendar"], + "LaunchDocuments": ["Document"], + "LaunchInternetBrowser": ["WWW"], + "LaunchMail": ["Mail"], + "LaunchPhone": ["Phone"], + "LaunchScreenSaver": ["ScreenSaver"], + "LogOff": ["LogOff"], + "MailForward": ["MailForward"], + "MailReply": ["Reply"], + "MailSend": ["Send"], + "MediaFastForward": ["AudioForward"], + "MediaPause": ["AudioPause"], + "MediaPlay": ["AudioPlay", "3270_Play"], + "MediaRecord": ["AudioRecord"], + "MediaRewind": ["AudioRewind"], + "MediaStop": ["AudioStop"], + "MediaTrackNext": ["AudioNext"], + "MediaTrackPrevious": ["AudioPrev"], + "MetaLeft": ["Meta_L"], + "MetaRight": ["Meta_R"], + "ModeChange": ["Mode_switch"], + "New": ["New"], + "NumLock": ["Num_Lock"], + "Open": ["Open"], + "PageDown": ["Page_Down"], + "PageUp": ["Page_Up"], + "Paste": ["Paste"], + "Pause": ["Pause"], + "PowerOff": ["PowerOff"], + "PreviousCandidate": ["PreviousCandidate"], + "Print": ["Print"], + "PrintScreen": ["3270_PrintScreen"], + "Redo": ["Redo"], + "Resume": ["Resume"], + "Romaji": ["Romaji"], + "Save": ["Save"], + "ScrollLock": ["Scroll_Lock"], + "Select": ["Select"], + "ShiftLeft": ["Shift_L"], + "ShiftRight": ["Shift_R"], + "SingleCandidate": ["SingleCandidate"], + "Sleep": ["Sleep"], + "SpellCheck": ["Spell"], + "Standby": ["Standby"], + "Super": ["Super_L", "Super_R"], + "Suspend": ["Suspend"], + "Tab": ["Tab", "KP_Tab", "ISO_Left_Tab"], + "Undo": ["Undo"], + "WakeUp": ["WakeUp"], + "Zenkaku": ["Zenkaku"], + "ZenkakuHankaku": ["Zenkaku_Hankaku"], + "ZoomIn": ["ZoomIn"], + "ZoomOut": ["ZoomOut"] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_modifier_bit_mapping.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_modifier_bit_mapping.json new file mode 100644 index 0000000000000000000000000000000000000000..98d96f8f8c7e69aadc2438121b8536ff97afbfc8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_modifier_bit_mapping.json @@ -0,0 +1,6 @@ +{ + "SHIFT": ["ShiftLeft", "ShiftLeft", "ShiftRight"], + "CONTROL": ["ControlLeft", "ControlLeft", "ControlRight"], + "MOD1": ["AltLeft", "AltLeft", "AltRight"], + "META": ["MetaLeft", "MetaLeft", "MetaRight"] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_numpad_shift.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_numpad_shift.json new file mode 100644 index 0000000000000000000000000000000000000000..c3b04b98dba72fb68b37b42acbdfc4f101c3420a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/gtk_numpad_shift.json @@ -0,0 +1,12 @@ +{ + "Numpad0": "NumpadInsert", + "Numpad1": "NumpadEnd", + "Numpad2": "NumpadDown", + "Numpad3": "NumpadPageDown", + "Numpad4": "NumpadLeft", + "Numpad6": "NumpadRight", + "Numpad7": "NumpadHome", + "Numpad8": "NumpadUp", + "Numpad9": "NumpadPageUp", + "NumpadPeriod": "NumpadDelete" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/ios_key_code_map_mm.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/ios_key_code_map_mm.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..da621f4bc39d0eaa8fb1192a6614db2482c85f3a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/ios_key_code_map_mm.tmpl @@ -0,0 +1,56 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include +#include +#include "flutter/shell/platform/darwin/ios/framework/Source/KeyCodeMap_Internal.h" + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by +// flutter/flutter:dev/tools/gen_keycodes/bin/gen_keycodes.dart and should not +// be edited directly. +// +// Edit the template +// flutter/flutter:dev/tools/gen_keycodes/data/ios_key_code_map_mm.tmpl instead. +// +// See flutter/flutter:dev/tools/gen_keycodes/README.md for more information. + +@@@MASK_CONSTANTS@@@ + +// Maps iOS-specific key code values representing PhysicalKeyboardKey. +// +// iOS doesn't provide a scan code, but a virtual keycode to represent a physical key. +const std::map keyCodeToPhysicalKey = { +@@@IOS_SCAN_CODE_MAP@@@ +}; + +// Maps iOS-specific virtual key code values to logical keys representing +// LogicalKeyboardKey +const std::map keyCodeToLogicalKey = { +@@@IOS_KEYCODE_LOGICAL_MAP@@@ +}; + +// Maps iOS-specific virtual key codes to an equivalent modifier flag enum +// value. +const std::map keyCodeToModifierFlag = { +@@@KEYCODE_TO_MODIFIER_FLAG_MAP@@@ +}; + +// Maps modifier flag enum values to an iOS-specific virtual key code. +const std::map modifierFlagToKeyCode = { +@@@MODIFIER_FLAG_TO_KEYCODE_MAP@@@ +}; + +// A set of virtual key codes mapping to function keys, so that may be +// identified as such. +const std::set functionKeyCodes = { +@@@IOS_FUNCTION_KEY_SET@@@ +}; + +API_AVAILABLE(ios(13.4)) +NSDictionary* specialKeyMapping = [[NSDictionary alloc] initWithDictionary:@{ +@@@SPECIAL_KEY_MAPPING@@@ +}]; + +@@@SPECIAL_KEY_CONSTANTS@@@ diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/ios_logical_to_physical.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/ios_logical_to_physical.json new file mode 100644 index 0000000000000000000000000000000000000000..49a0acaea31b930e5a2c22be7b97bb1b6ef6570d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/ios_logical_to_physical.json @@ -0,0 +1,76 @@ + +{ + "Backspace": ["Backspace"], + "Tab": ["Tab"], + "Enter": ["Enter"], + "Escape": ["Escape"], + "CapsLock": ["CapsLock"], + "NumLock": ["NumLock"], + "ArrowDown": ["ArrowDown"], + "ArrowLeft": ["ArrowLeft"], + "ArrowRight": ["ArrowRight"], + "ArrowUp": ["ArrowUp"], + "End": ["End"], + "Home": ["Home"], + "PageDown": ["PageDown"], + "PageUp": ["PageUp"], + "Insert": ["Insert"], + "Delete": ["Delete"], + "ContextMenu": ["ContextMenu"], + "F1": ["F1"], + "F2": ["F2"], + "F3": ["F3"], + "F4": ["F4"], + "F5": ["F5"], + "F6": ["F6"], + "F7": ["F7"], + "F8": ["F8"], + "F9": ["F9"], + "F10": ["F10"], + "F11": ["F11"], + "F12": ["F12"], + "F13": ["F13"], + "F14": ["F14"], + "F15": ["F15"], + "F16": ["F16"], + "F17": ["F17"], + "F18": ["F18"], + "F19": ["F19"], + "F20": ["F20"], + "NumpadEnter": ["NumpadEnter"], + "NumpadMultiply": ["NumpadMultiply"], + "NumpadAdd": ["NumpadAdd"], + "NumpadComma": ["NumpadComma"], + "NumpadSubtract": ["NumpadSubtract"], + "NumpadDecimal": ["NumpadDecimal"], + "NumpadDivide": ["NumpadDivide"], + "Numpad0": ["Numpad0"], + "Numpad1": ["Numpad1"], + "Numpad2": ["Numpad2"], + "Numpad3": ["Numpad3"], + "Numpad4": ["Numpad4"], + "Numpad5": ["Numpad5"], + "Numpad6": ["Numpad6"], + "Numpad7": ["Numpad7"], + "Numpad8": ["Numpad8"], + "Numpad9": ["Numpad9"], + "NumpadEqual": ["NumpadEqual"], + "AltLeft": ["AltLeft"], + "ControlLeft": ["ControlLeft"], + "MetaLeft": ["MetaLeft"], + "ShiftLeft": ["ShiftLeft"], + "AltRight": ["AltRight"], + "ControlRight": ["ControlRight"], + "MetaRight": ["MetaRight"], + "ShiftRight": ["ShiftRight"], + "Lang1": ["Lang1"], + "Lang2": ["Lang2"], + "Lang3": ["Lang3"], + "Lang4": ["Lang4"], + "Lang5": ["Lang5"], + "IntlYen": ["IntlYen"], + "IntlRo": ["IntlRo"], + "AudioVolumeUp": ["AudioVolumeUp"], + "AudioVolumeDown": ["AudioVolumeDown"], + "AudioVolumeMute": ["AudioVolumeMute"] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/key_codes_h.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/key_codes_h.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..f8a35f32bf554405855e8a9eb173e49843b024bd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/key_codes_h.tmpl @@ -0,0 +1,40 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef FLUTTER_SHELL_PLATFORM_COMMON_TESTING_KEY_CODES_H_ +#define FLUTTER_SHELL_PLATFORM_COMMON_TESTING_KEY_CODES_H_ + +#include + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by +// flutter/flutter:dev/tools/gen_keycodes/bin/gen_keycodes.dart and should not +// be edited directly. +// +// Edit the template +// flutter/flutter:dev/tools/gen_keycodes/data/key_codes_cc.tmpl +// instead. +// +// See flutter/flutter:dev/tools/gen_keycodes/README.md for more information. + +// This file contains keyboard constants to be used in unit tests. They should +// not be used in production code. + +namespace flutter { + +namespace testing { + +namespace keycodes { + +@@@PHYSICAL_KEY_DEFINITIONS@@@ + +@@@LOGICAL_KEY_DEFINITIONS@@@ + +} // namespace keycodes + +} // namespace testing + +} // namespace flutter + +#endif // FLUTTER_SHELL_PLATFORM_COMMON_TESTING_KEY_CODES_H_ diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/key_codes_java.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/key_codes_java.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..7306af494f5bbfcabae55675709f05431a4833f7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/key_codes_java.tmpl @@ -0,0 +1,22 @@ +package io.flutter.util; + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by +// flutter/flutter:dev/tools/gen_keycodes/bin/gen_keycodes.dart and should not +// be edited directly. +// +// Edit the template +// flutter/flutter:dev/tools/gen_keycodes/data/key_codes_java.tmpl +// instead. +// +// See flutter/flutter:dev/tools/gen_keycodes/README.md for more information. + +/** + * This class contains keyboard constants to be used in unit tests. They should not be used in + * production code. + */ +public class KeyCodes { +@@@PHYSICAL_KEY_DEFINITIONS@@@ + +@@@LOGICAL_KEY_DEFINITIONS@@@ +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/keyboard_key.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/keyboard_key.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..c3b983f6d2187fd7f515e3056219db925d434480 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/keyboard_key.tmpl @@ -0,0 +1,404 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; + +export 'package:flutter/foundation.dart' show DiagnosticPropertiesBuilder; + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by dev/tools/gen_keycodes/bin/gen_keycodes.dart and +// should not be edited directly. +// +// Edit the template dev/tools/gen_keycodes/data/keyboard_key.tmpl instead. +// See dev/tools/gen_keycodes/README.md for more information. + +/// A base class for all keyboard key types. +/// +/// See also: +/// +/// * [PhysicalKeyboardKey], a class with static values that describe the keys +/// that are returned from [RawKeyEvent.physicalKey]. +/// * [LogicalKeyboardKey], a class with static values that describe the keys +/// that are returned from [RawKeyEvent.logicalKey]. +abstract class KeyboardKey with Diagnosticable { + /// Abstract const constructor. This constructor enables subclasses to provide + /// const constructors so that they can be used in const expressions. + const KeyboardKey(); +} + +/// A class with static values that describe the keys that are returned from +/// [RawKeyEvent.logicalKey]. +/// +/// These represent *logical* keys, which are keys which are interpreted in the +/// context of any modifiers, modes, or keyboard layouts which may be in effect. +/// +/// This is contrast to [PhysicalKeyboardKey], which represents a physical key +/// in a particular location on the keyboard, without regard for the modifier +/// state, mode, or keyboard layout. +/// +/// As an example, if you wanted to implement an app where the "Q" key "quit" +/// something, you'd want to look at the logical key to detect this, since you +/// would like to have it match the key with "Q" on it, instead of always +/// looking for "the key next to the TAB key", since on a French keyboard, +/// the key next to the TAB key has an "A" on it. +/// +/// Conversely, if you wanted a game where the key next to the CAPS LOCK (the +/// "A" key on a QWERTY keyboard) moved the player to the left, you'd want to +/// look at the physical key to make sure that regardless of the character the +/// key produces, you got the key that is in that location on the keyboard. +/// +/// {@tool dartpad} +/// This example shows how to detect if the user has selected the logical "Q" +/// key and handle the key if they have. +/// +/// ** See code in examples/api/lib/services/keyboard_key/logical_keyboard_key.0.dart ** +/// {@end-tool} +/// See also: +/// +/// * [RawKeyEvent], the keyboard event object received by widgets that listen +/// to keyboard events. +/// * [Focus.onKey], the handler on a widget that lets you handle key events. +/// * [RawKeyboardListener], a widget used to listen to keyboard events (but +/// not handle them). +@immutable +class LogicalKeyboardKey extends KeyboardKey { + /// Creates a new LogicalKeyboardKey object for a key ID. + const LogicalKeyboardKey(this.keyId); + + /// A unique code representing this key. + /// + /// This is an opaque code. It should not be unpacked to derive information + /// from it, as the representation of the code could change at any time. + final int keyId; + + // Returns the bits that are not included in [valueMask], shifted to the + // right. + // + // For example, if the input is 0x12abcdabcd, then the result is 0x12. + // + // This is mostly equivalent to a right shift, resolving the problem that + // JavaScript only support 32-bit bitwise operation and needs to use division + // instead. + static int _nonValueBits(int n) { + // `n >> valueMaskWidth` is equivalent to `n / divisorForValueMask`. + const int divisorForValueMask = valueMask + 1; + const int valueMaskWidth = 32; + + // Equivalent to assert(divisorForValueMask == (1 << valueMaskWidth)). + const int firstDivisorWidth = 28; + assert(divisorForValueMask == + (1 << firstDivisorWidth) * (1 << (valueMaskWidth - firstDivisorWidth))); + + // JS only supports up to 2^53 - 1, therefore non-value bits can only + // contain (maxSafeIntegerWidth - valueMaskWidth) bits. + const int maxSafeIntegerWidth = 52; + const int nonValueMask = (1 << (maxSafeIntegerWidth - valueMaskWidth)) - 1; + + if (kIsWeb) { + return (n / divisorForValueMask).floor() & nonValueMask; + } else { + return (n >> valueMaskWidth) & nonValueMask; + } + } + + static String? _unicodeKeyLabel(int keyId) { + if (_nonValueBits(keyId) == 0) { + return String.fromCharCode(keyId).toUpperCase(); + } + return null; + } + + /// A description representing the character produced by a [RawKeyEvent]. + /// + /// This value is useful for providing readable strings for keys or keyboard + /// shortcuts. Do not use this value to compare equality of keys; compare + /// [keyId] instead. + /// + /// For printable keys, this is usually the printable character in upper case + /// ignoring modifiers or combining keys, such as 'A', '1', or '/'. This + /// might also return accented letters (such as 'Ù') for keys labeled as so, + /// but not if such character is a result from preceding combining keys ('`̀' + /// followed by key U). + /// + /// For other keys, [keyLabel] looks up the full key name from a predefined + /// map, such as 'F1', 'Shift Left', or 'Media Down'. This value is an empty + /// string if there's no key label data for a key. + /// + /// For the printable representation that takes into consideration the + /// modifiers and combining keys, see [RawKeyEvent.character]. + /// + /// {@macro flutter.services.RawKeyEventData.keyLabel} + String get keyLabel { + return _unicodeKeyLabel(keyId) + ?? _keyLabels[keyId] + ?? ''; + } + + /// The debug string to print for this keyboard key, which will be null in + /// release mode. + /// + /// For printable keys, this is usually a more descriptive name related to + /// [keyLabel], such as 'Key A', 'Digit 1', 'Backslash'. This might + /// also return accented letters (such as 'Key Ù') for keys labeled as so. + /// + /// For other keys, this looks up the full key name from a predefined map (the + /// same value as [keyLabel]), such as 'F1', 'Shift Left', or 'Media Down'. If + /// there's no key label data for a key, this returns a name that explains the + /// ID (such as 'Key with ID 0x00100012345'). + String? get debugName { + String? result; + assert(() { + result = _keyLabels[keyId]; + if (result == null) { + final String? unicodeKeyLabel = _unicodeKeyLabel(keyId); + if (unicodeKeyLabel != null) { + result = 'Key $unicodeKeyLabel'; + } else { + result = 'Key with ID 0x${keyId.toRadixString(16).padLeft(11, '0')}'; + } + } + return true; + }()); + return result; + } + + @override + int get hashCode => keyId.hashCode; + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (other.runtimeType != runtimeType) { + return false; + } + return other is LogicalKeyboardKey + && other.keyId == keyId; + } + + /// Returns the [LogicalKeyboardKey] constant that matches the given ID, or + /// null, if not found. + static LogicalKeyboardKey? findKeyByKeyId(int keyId) => _knownLogicalKeys[keyId]; + + /// Returns true if the given label represents a Unicode control character. + /// + /// Examples of control characters are characters like "U+000A LINE FEED (LF)" + /// or "U+001B ESCAPE (ESC)". + /// + /// See for more + /// information. + /// + /// Used by [RawKeyEvent] subclasses to help construct IDs. + static bool isControlCharacter(String label) { + if (label.length != 1) { + return false; + } + final int codeUnit = label.codeUnitAt(0); + return (codeUnit <= 0x1f && codeUnit >= 0x00) || (codeUnit >= 0x7f && codeUnit <= 0x9f); + } + + /// Returns true if the [keyId] of this object is one that is auto-generated by + /// Flutter. + /// + /// Auto-generated key IDs are generated in response to platform key codes + /// which Flutter doesn't recognize, and their IDs shouldn't be used in a + /// persistent way. + /// + /// Auto-generated IDs should be a rare occurrence: Flutter supports most keys. + /// + /// Keys that generate Unicode characters (even if unknown to Flutter) will + /// not return true for [isAutogenerated], since they will be assigned a + /// Unicode-based code that will remain stable. + /// + /// If Flutter adds support for a previously unsupported key code, the ID it + /// reports will change, but the ID will remain stable on the platform it is + /// produced on until Flutter adds support for recognizing it. + /// + /// So, hypothetically, if Android added a new key code of 0xffff, + /// representing a new "do what I mean" key, then the auto-generated code + /// would be 0x1020000ffff, but once Flutter added the "doWhatIMean" key to + /// the definitions below, the new code would be 0x0020000ffff for all + /// platforms that had a "do what I mean" key from then on. + bool get isAutogenerated => (keyId & planeMask) >= startOfPlatformPlanes; + + /// Returns a set of pseudo-key synonyms for the given `key`. + /// + /// This allows finding the pseudo-keys that also represent a concrete `key` + /// so that a class with a key map can match pseudo-keys as well as the actual + /// generated keys. + /// + /// Pseudo-keys returned in the set are typically used to represent keys which + /// appear in multiple places on the keyboard, such as the [shift], [alt], + /// [control], and [meta] keys. Pseudo-keys in the returned set won't ever be + /// generated directly, but if a more specific key event is received, then + /// this set can be used to find the more general pseudo-key. For example, if + /// this is a [shiftLeft] key, this accessor will return the set + /// `{ shift }`. + Set get synonyms => _synonyms[this] ?? {}; + + /// Takes a set of keys, and returns the same set, but with any keys that have + /// synonyms replaced. + /// + /// It is used, for example, to take sets of keys with members like + /// [controlRight] and [controlLeft] and convert that set to contain just + /// [control], so that the question "is any control key down?" can be asked. + static Set collapseSynonyms(Set input) { + return input.expand((LogicalKeyboardKey element) { + return _synonyms[element] ?? {element}; + }).toSet(); + } + + /// Returns the given set with any pseudo-keys expanded into their synonyms. + /// + /// It is used, for example, to take sets of keys with members like [control] + /// and [shift] and convert that set to contain [controlLeft], [controlRight], + /// [shiftLeft], and [shiftRight]. + static Set expandSynonyms(Set input) { + return input.expand((LogicalKeyboardKey element) { + return _reverseSynonyms[element] ?? {element}; + }).toSet(); + } + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(StringProperty('keyId', '0x${keyId.toRadixString(16).padLeft(8, '0')}')); + properties.add(StringProperty('keyLabel', keyLabel)); + properties.add(StringProperty('debugName', debugName, defaultValue: null)); + } + +@@@MASK_CONSTANTS@@@ + +@@@LOGICAL_KEY_DEFINITIONS@@@ + + /// A list of all predefined constant [LogicalKeyboardKey]s. + static Iterable get knownLogicalKeys => _knownLogicalKeys.values; + + // A list of all predefined constant LogicalKeyboardKeys so they can be + // searched. + static const Map _knownLogicalKeys = { +@@@LOGICAL_KEY_MAP@@@ + }; + + // A map of keys to the pseudo-key synonym for that key. + static final Map> _synonyms = >{ +@@@LOGICAL_KEY_SYNONYMS@@@ }; + + // A map of pseudo-key to the set of keys that are synonyms for that pseudo-key. + static final Map> _reverseSynonyms = >{ +@@@LOGICAL_KEY_REVERSE_SYNONYMS@@@ }; + + static const Map _keyLabels = { +@@@LOGICAL_KEY_KEY_LABELS@@@ + }; +} + +/// A class with static values that describe the keys that are returned from +/// [RawKeyEvent.physicalKey]. +/// +/// These represent *physical* keys, which are keys which represent a particular +/// key location on a QWERTY keyboard. It ignores any modifiers, modes, or +/// keyboard layouts which may be in effect. This is contrast to +/// [LogicalKeyboardKey], which represents a logical key interpreted in the +/// context of modifiers, modes, and/or keyboard layouts. +/// +/// As an example, if you wanted a game where the key next to the CAPS LOCK (the +/// "A" key on a QWERTY keyboard) moved the player to the left, you'd want to +/// look at the physical key to make sure that regardless of the character the +/// key produces, you got the key that is in that location on the keyboard. +/// +/// Conversely, if you wanted to implement an app where the "Q" key "quit" +/// something, you'd want to look at the logical key to detect this, since you +/// would like to have it match the key with "Q" on it, instead of always +/// looking for "the key next to the TAB key", since on a French keyboard, +/// the key next to the TAB key has an "A" on it. +/// +/// {@tool dartpad} +/// This example shows how to detect if the user has selected the physical key +/// to the right of the CAPS LOCK key. +/// +/// ** See code in examples/api/lib/services/keyboard_key/physical_keyboard_key.0.dart ** +/// {@end-tool} +/// +/// See also: +/// +/// * [RawKeyEvent], the keyboard event object received by widgets that listen +/// to keyboard events. +/// * [Focus.onKey], the handler on a widget that lets you handle key events. +/// * [RawKeyboardListener], a widget used to listen to keyboard events (but +/// not handle them). +@immutable +class PhysicalKeyboardKey extends KeyboardKey { + /// Creates a new PhysicalKeyboardKey object for a USB HID usage. + const PhysicalKeyboardKey(this.usbHidUsage); + + /// The unique USB HID usage ID of this physical key on the keyboard. + /// + /// Due to the variations in platform APIs, this may not be the actual HID + /// usage code from the hardware, but a value derived from available + /// information on the platform. + /// + /// See + /// for the HID usage values and their meanings. + final int usbHidUsage; + + /// The debug string to print for this keyboard key, which will be null in + /// release mode. + String? get debugName { + String? result; + assert(() { + result = _debugNames[usbHidUsage] ?? + 'Key with ID 0x${usbHidUsage.toRadixString(16).padLeft(8, '0')}'; + return true; + }()); + return result; + } + + @override + int get hashCode => usbHidUsage.hashCode; + + @override + bool operator ==(Object other) { + if (identical(this, other)) { + return true; + } + if (other.runtimeType != runtimeType) { + return false; + } + return other is PhysicalKeyboardKey + && other.usbHidUsage == usbHidUsage; + } + + /// Finds a known [PhysicalKeyboardKey] that matches the given USB HID usage + /// code. + static PhysicalKeyboardKey? findKeyByCode(int usageCode) => _knownPhysicalKeys[usageCode]; + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + properties.add(StringProperty('usbHidUsage', '0x${usbHidUsage.toRadixString(16).padLeft(8, '0')}')); + properties.add(StringProperty('debugName', debugName, defaultValue: null)); + } + + // Key constants for all keyboard keys in the USB HID specification at the + // time Flutter was built. + +@@@PHYSICAL_KEY_DEFINITIONS@@@ + + /// A list of all predefined constant [PhysicalKeyboardKey]s. + static Iterable get knownPhysicalKeys => _knownPhysicalKeys.values; + + // A list of all the predefined constant PhysicalKeyboardKeys so that they + // can be searched. + static const Map _knownPhysicalKeys = { +@@@PHYSICAL_KEY_MAP@@@ + }; + + static const Map _debugNames = kReleaseMode ? + {} : + { +@@@PHYSICAL_KEY_DEBUG_NAMES@@@ + }; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/keyboard_maps.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/keyboard_maps.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..7129959562be15164d4470e938441e769d0b6286 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/keyboard_maps.tmpl @@ -0,0 +1,175 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by dev/tools/gen_keycodes/bin/gen_keycodes.dart and +// should not be edited directly. +// +// Edit the template dev/tools/gen_keycodes/data/keyboard_maps.tmpl instead. +// See dev/tools/gen_keycodes/README.md for more information. + +import 'keyboard_key.g.dart'; + +export 'keyboard_key.g.dart' show LogicalKeyboardKey, PhysicalKeyboardKey; + +/// Maps Android-specific key codes to the matching [LogicalKeyboardKey]. +const Map kAndroidToLogicalKey = { +@@@ANDROID_KEY_CODE_MAP@@@ +}; + +/// Maps Android-specific scan codes to the matching [PhysicalKeyboardKey]. +const Map kAndroidToPhysicalKey = { +@@@ANDROID_SCAN_CODE_MAP@@@ +}; + +/// A map of Android key codes which have printable representations, but appear +/// on the number pad. Used to provide different key objects for keys like +/// KEY_EQUALS and NUMPAD_EQUALS. +const Map kAndroidNumPadMap = { +@@@ANDROID_NUMPAD_MAP@@@ +}; + +/// Maps Fuchsia-specific IDs to the matching [LogicalKeyboardKey]. +const Map kFuchsiaToLogicalKey = { +@@@FUCHSIA_KEY_CODE_MAP@@@ +}; + +/// Maps Fuchsia-specific USB HID Usage IDs to the matching +/// [PhysicalKeyboardKey]. +const Map kFuchsiaToPhysicalKey = { +@@@FUCHSIA_SCAN_CODE_MAP@@@ +}; + +/// Maps macOS-specific key code values representing [PhysicalKeyboardKey]. +/// +/// MacOS doesn't provide a scan code, but a virtual keycode to represent a physical key. +const Map kMacOsToPhysicalKey = { +@@@MACOS_SCAN_CODE_MAP@@@ +}; + +/// A map of macOS key codes which have printable representations, but appear +/// on the number pad. Used to provide different key objects for keys like +/// KEY_EQUALS and NUMPAD_EQUALS. +const Map kMacOsNumPadMap = { +@@@MACOS_NUMPAD_MAP@@@ +}; + +/// A map of macOS key codes which are numbered function keys, so that they +/// can be excluded when asking "is the Fn modifier down?". +const Map kMacOsFunctionKeyMap = { +@@@MACOS_FUNCTION_KEY_MAP@@@ +}; + +/// A map of macOS key codes presenting [LogicalKeyboardKey]. +/// +/// Logical key codes are not available in macOS key events. Most of the logical keys +/// are derived from its `characterIgnoringModifiers`, but those keys that don't +/// have a character representation will be derived from their key codes using +/// this map. +const Map kMacOsToLogicalKey = { +@@@MACOS_KEY_CODE_MAP@@@ +}; + +/// Maps iOS-specific key code values representing [PhysicalKeyboardKey]. +/// +/// iOS doesn't provide a scan code, but a virtual keycode to represent a physical key. +const Map kIosToPhysicalKey = { +@@@IOS_SCAN_CODE_MAP@@@ +}; + +/// Maps iOS specific string values of nonvisible keys to logical keys +/// +/// Some unprintable keys on iOS has literal names on their key label, such as +/// "UIKeyInputEscape". See: +/// https://developer.apple.com/documentation/uikit/uikeycommand/input_strings_for_special_keys?language=objc +const Map kIosSpecialLogicalMap = { +@@@IOS_SPECIAL_MAP@@@ +}; + +/// A map of iOS key codes which have printable representations, but appear +/// on the number pad. Used to provide different key objects for keys like +/// KEY_EQUALS and NUMPAD_EQUALS. +const Map kIosNumPadMap = { +@@@IOS_NUMPAD_MAP@@@ +}; + +/// A map of iOS key codes presenting [LogicalKeyboardKey]. +/// +/// Logical key codes are not available in iOS key events. Most of the logical keys +/// are derived from its `characterIgnoringModifiers`, but those keys that don't +/// have a character representation will be derived from their key codes using +/// this map. +const Map kIosToLogicalKey = { +@@@IOS_KEY_CODE_MAP@@@ +}; + +/// Maps GLFW-specific key codes to the matching [LogicalKeyboardKey]. +const Map kGlfwToLogicalKey = { +@@@GLFW_KEY_CODE_MAP@@@ +}; + +/// A map of GLFW key codes which have printable representations, but appear +/// on the number pad. Used to provide different key objects for keys like +/// KEY_EQUALS and NUMPAD_EQUALS. +const Map kGlfwNumpadMap = { +@@@GLFW_NUMPAD_MAP@@@ +}; + +/// Maps GTK-specific key codes to the matching [LogicalKeyboardKey]. +const Map kGtkToLogicalKey = { +@@@GTK_KEY_CODE_MAP@@@ +}; + +/// A map of GTK key codes which have printable representations, but appear +/// on the number pad. Used to provide different key objects for keys like +/// KEY_EQUALS and NUMPAD_EQUALS. +const Map kGtkNumpadMap = { +@@@GTK_NUMPAD_MAP@@@ +}; + +/// Maps XKB specific key code values representing [PhysicalKeyboardKey]. +const Map kLinuxToPhysicalKey = { +@@@XKB_SCAN_CODE_MAP@@@ +}; + +/// Maps Web KeyboardEvent codes to the matching [LogicalKeyboardKey]. +const Map kWebToLogicalKey = { +@@@WEB_LOGICAL_KEY_MAP@@@ +}; + +/// Maps Web KeyboardEvent codes to the matching [PhysicalKeyboardKey]. +const Map kWebToPhysicalKey = { +@@@WEB_PHYSICAL_KEY_MAP@@@ +}; + +/// A map of Web KeyboardEvent codes which have printable representations, but appear +/// on the number pad. Used to provide different key objects for keys like +/// KEY_EQUALS and NUMPAD_EQUALS. +const Map kWebNumPadMap = { +@@@WEB_NUMPAD_MAP@@@ +}; + +/// A map of Web KeyboardEvent keys which needs to be decided based on location, +/// typically for numpad keys and modifier keys. Used to provide different key +/// objects for keys like KEY_EQUALS and NUMPAD_EQUALS. +const Map> kWebLocationMap = >{ +@@@WEB_LOCATION_MAP@@@ +}; + +/// Maps Windows KeyboardEvent codes to the matching [LogicalKeyboardKey]. +const Map kWindowsToLogicalKey = { +@@@WINDOWS_LOGICAL_KEY_MAP@@@ +}; + +/// Maps Windows KeyboardEvent codes to the matching [PhysicalKeyboardKey]. +const Map kWindowsToPhysicalKey = { +@@@WINDOWS_PHYSICAL_KEY_MAP@@@ +}; + +/// A map of Windows KeyboardEvent codes which have printable representations, but appear +/// on the number pad. Used to provide different key objects for keys like +/// KEY_EQUALS and NUMPAD_EQUALS. +const Map kWindowsNumPadMap = { +@@@WINDOWS_NUMPAD_MAP@@@ +}; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/layout_goals.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/layout_goals.json new file mode 100644 index 0000000000000000000000000000000000000000..267a8a59641a57bfd47f9efdeb7aa83c1b5a7230 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/layout_goals.json @@ -0,0 +1,51 @@ +{ + "Backquote": false, + "Backslash": false, + "BracketLeft": false, + "BracketRight": false, + "Comma": false, + "Digit0": true, + "Digit1": true, + "Digit2": true, + "Digit3": true, + "Digit4": true, + "Digit5": true, + "Digit6": true, + "Digit7": true, + "Digit8": true, + "Digit9": true, + "Equal": false, + "IntlBackslash": false, + "KeyA": true, + "KeyB": true, + "KeyC": true, + "KeyD": true, + "KeyE": true, + "KeyF": true, + "KeyG": true, + "KeyH": true, + "KeyI": true, + "KeyJ": true, + "KeyK": true, + "KeyL": true, + "KeyM": true, + "KeyN": true, + "KeyO": true, + "KeyP": true, + "KeyQ": true, + "KeyR": true, + "KeyS": true, + "KeyT": true, + "KeyU": true, + "KeyV": true, + "KeyW": true, + "KeyX": true, + "KeyY": true, + "KeyZ": true, + "Minus": false, + "Period": false, + "Quote": false, + "Semicolon": false, + "Slash": false, + "Space": false +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/logical_key_data.g.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/logical_key_data.g.json new file mode 100644 index 0000000000000000000000000000000000000000..289a3b7453bc4b3e9f859738f727e63c9fd3ceda --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/logical_key_data.g.json @@ -0,0 +1,9719 @@ +{ + "Space": { + "name": "Space", + "value": 32, + "keyLabel": " ", + "names": { + "gtk": [ + "KP_Space" + ], + "windows": [ + "SPACE" + ], + "android": [ + "SPACE" + ], + "glfw": [ + "SPACE" + ] + }, + "values": { + "gtk": [ + 65408 + ], + "windows": [ + 32 + ], + "android": [ + 62 + ], + "fuchsia": [ + 77309870124 + ], + "glfw": [ + 32 + ] + } + }, + "Exclamation": { + "name": "Exclamation", + "value": 33, + "keyLabel": "!" + }, + "Quote": { + "name": "Quote", + "value": 34, + "keyLabel": "\"", + "names": { + "windows": [ + "OEM_7" + ], + "android": [ + "APOSTROPHE" + ], + "glfw": [ + "APOSTROPHE" + ] + }, + "values": { + "windows": [ + 222 + ], + "android": [ + 75 + ], + "fuchsia": [ + 77309870132 + ], + "glfw": [ + 39 + ] + } + }, + "NumberSign": { + "name": "NumberSign", + "value": 35, + "keyLabel": "#", + "names": { + "android": [ + "POUND" + ] + }, + "values": { + "android": [ + 18 + ] + } + }, + "Dollar": { + "name": "Dollar", + "value": 36, + "keyLabel": "$" + }, + "Percent": { + "name": "Percent", + "value": 37, + "keyLabel": "%" + }, + "Ampersand": { + "name": "Ampersand", + "value": 38, + "keyLabel": "&" + }, + "QuoteSingle": { + "name": "QuoteSingle", + "value": 39, + "keyLabel": "'" + }, + "ParenthesisLeft": { + "name": "ParenthesisLeft", + "value": 40, + "keyLabel": "(" + }, + "ParenthesisRight": { + "name": "ParenthesisRight", + "value": 41, + "keyLabel": ")" + }, + "Asterisk": { + "name": "Asterisk", + "value": 42, + "keyLabel": "*", + "names": { + "android": [ + "STAR" + ] + }, + "values": { + "android": [ + 17 + ] + } + }, + "Add": { + "name": "Add", + "value": 43, + "keyLabel": "+", + "names": { + "android": [ + "PLUS" + ] + }, + "values": { + "android": [ + 81 + ] + } + }, + "Comma": { + "name": "Comma", + "value": 44, + "keyLabel": ",", + "names": { + "windows": [ + "OEM_COMMA" + ], + "android": [ + "COMMA" + ], + "glfw": [ + "COMMA" + ] + }, + "values": { + "windows": [ + 188 + ], + "android": [ + 55 + ], + "fuchsia": [ + 77309870134 + ], + "glfw": [ + 44 + ] + } + }, + "Minus": { + "name": "Minus", + "value": 45, + "keyLabel": "-", + "names": { + "windows": [ + "OEM_MINUS" + ], + "android": [ + "MINUS" + ], + "glfw": [ + "MINUS" + ] + }, + "values": { + "windows": [ + 189 + ], + "android": [ + 69 + ], + "fuchsia": [ + 77309870125 + ], + "glfw": [ + 45 + ] + } + }, + "Period": { + "name": "Period", + "value": 46, + "keyLabel": ".", + "names": { + "gtk": [ + "KP_Decimal" + ], + "windows": [ + "OEM_PERIOD" + ], + "android": [ + "PERIOD" + ], + "glfw": [ + "PERIOD" + ] + }, + "values": { + "gtk": [ + 65454 + ], + "windows": [ + 190 + ], + "android": [ + 56 + ], + "fuchsia": [ + 77309870135 + ], + "glfw": [ + 46 + ] + } + }, + "Slash": { + "name": "Slash", + "value": 47, + "keyLabel": "/", + "names": { + "windows": [ + "OEM_2" + ], + "android": [ + "SLASH" + ], + "glfw": [ + "SLASH" + ] + }, + "values": { + "windows": [ + 191 + ], + "android": [ + 76 + ], + "fuchsia": [ + 77309870136 + ], + "glfw": [ + 47 + ] + } + }, + "Digit0": { + "name": "Digit0", + "value": 48, + "keyLabel": "0", + "names": { + "android": [ + "0" + ], + "glfw": [ + "0" + ] + }, + "values": { + "android": [ + 7 + ], + "fuchsia": [ + 77309870119 + ], + "glfw": [ + 48 + ] + } + }, + "Digit1": { + "name": "Digit1", + "value": 49, + "keyLabel": "1", + "names": { + "android": [ + "1" + ], + "glfw": [ + "1" + ] + }, + "values": { + "android": [ + 8 + ], + "fuchsia": [ + 77309870110 + ], + "glfw": [ + 49 + ] + } + }, + "Digit2": { + "name": "Digit2", + "value": 50, + "keyLabel": "2", + "names": { + "android": [ + "2" + ], + "glfw": [ + "2" + ] + }, + "values": { + "android": [ + 9 + ], + "fuchsia": [ + 77309870111 + ], + "glfw": [ + 50 + ] + } + }, + "Digit3": { + "name": "Digit3", + "value": 51, + "keyLabel": "3", + "names": { + "android": [ + "3" + ], + "glfw": [ + "3" + ] + }, + "values": { + "android": [ + 10 + ], + "fuchsia": [ + 77309870112 + ], + "glfw": [ + 51 + ] + } + }, + "Digit4": { + "name": "Digit4", + "value": 52, + "keyLabel": "4", + "names": { + "android": [ + "4" + ], + "glfw": [ + "4" + ] + }, + "values": { + "android": [ + 11 + ], + "fuchsia": [ + 77309870113 + ], + "glfw": [ + 52 + ] + } + }, + "Digit5": { + "name": "Digit5", + "value": 53, + "keyLabel": "5", + "names": { + "android": [ + "5" + ], + "glfw": [ + "5" + ] + }, + "values": { + "android": [ + 12 + ], + "fuchsia": [ + 77309870114 + ], + "glfw": [ + 53 + ] + } + }, + "Digit6": { + "name": "Digit6", + "value": 54, + "keyLabel": "6", + "names": { + "android": [ + "6" + ], + "glfw": [ + "6" + ] + }, + "values": { + "android": [ + 13 + ], + "fuchsia": [ + 77309870115 + ], + "glfw": [ + 54 + ] + } + }, + "Digit7": { + "name": "Digit7", + "value": 55, + "keyLabel": "7", + "names": { + "android": [ + "7" + ], + "glfw": [ + "7" + ] + }, + "values": { + "android": [ + 14 + ], + "fuchsia": [ + 77309870116 + ], + "glfw": [ + 55 + ] + } + }, + "Digit8": { + "name": "Digit8", + "value": 56, + "keyLabel": "8", + "names": { + "android": [ + "8" + ], + "glfw": [ + "8" + ] + }, + "values": { + "android": [ + 15 + ], + "fuchsia": [ + 77309870117 + ], + "glfw": [ + 56 + ] + } + }, + "Digit9": { + "name": "Digit9", + "value": 57, + "keyLabel": "9", + "names": { + "android": [ + "9" + ], + "glfw": [ + "9" + ] + }, + "values": { + "android": [ + 16 + ], + "fuchsia": [ + 77309870118 + ], + "glfw": [ + 57 + ] + } + }, + "Colon": { + "name": "Colon", + "value": 58, + "keyLabel": ":" + }, + "Semicolon": { + "name": "Semicolon", + "value": 59, + "keyLabel": ";", + "names": { + "windows": [ + "OEM_1" + ], + "android": [ + "SEMICOLON" + ], + "glfw": [ + "SEMICOLON" + ] + }, + "values": { + "windows": [ + 186 + ], + "android": [ + 74 + ], + "fuchsia": [ + 77309870131 + ], + "glfw": [ + 59 + ] + } + }, + "Less": { + "name": "Less", + "value": 60, + "keyLabel": "<" + }, + "Equal": { + "name": "Equal", + "value": 61, + "keyLabel": "=", + "names": { + "windows": [ + "OEM_PLUS" + ], + "android": [ + "EQUALS" + ], + "glfw": [ + "EQUAL" + ] + }, + "values": { + "windows": [ + 187 + ], + "android": [ + 70 + ], + "fuchsia": [ + 77309870126 + ], + "glfw": [ + 61 + ] + } + }, + "Greater": { + "name": "Greater", + "value": 62, + "keyLabel": ">" + }, + "Question": { + "name": "Question", + "value": 63, + "keyLabel": "?" + }, + "At": { + "name": "At", + "value": 64, + "keyLabel": "@", + "names": { + "android": [ + "AT" + ] + }, + "values": { + "android": [ + 77 + ] + } + }, + "BracketLeft": { + "name": "BracketLeft", + "value": 91, + "keyLabel": "[", + "names": { + "windows": [ + "OEM_4" + ], + "android": [ + "LEFT_BRACKET" + ], + "glfw": [ + "LEFT_BRACKET" + ] + }, + "values": { + "windows": [ + 219 + ], + "android": [ + 71 + ], + "fuchsia": [ + 77309870127 + ], + "glfw": [ + 91 + ] + } + }, + "Backslash": { + "name": "Backslash", + "value": 92, + "keyLabel": "\\", + "names": { + "windows": [ + "OEM_5" + ], + "android": [ + "BACKSLASH" + ], + "glfw": [ + "BACKSLASH" + ] + }, + "values": { + "windows": [ + 220 + ], + "android": [ + 73 + ], + "fuchsia": [ + 77309870129 + ], + "glfw": [ + 92 + ] + } + }, + "BracketRight": { + "name": "BracketRight", + "value": 93, + "keyLabel": "]", + "names": { + "windows": [ + "OEM_6" + ], + "android": [ + "RIGHT_BRACKET" + ], + "glfw": [ + "RIGHT_BRACKET" + ] + }, + "values": { + "windows": [ + 221 + ], + "android": [ + 72 + ], + "fuchsia": [ + 77309870128 + ], + "glfw": [ + 93 + ] + } + }, + "Caret": { + "name": "Caret", + "value": 94, + "keyLabel": "^" + }, + "Underscore": { + "name": "Underscore", + "value": 95, + "keyLabel": "_" + }, + "Backquote": { + "name": "Backquote", + "value": 96, + "keyLabel": "`", + "names": { + "windows": [ + "OEM_3" + ], + "android": [ + "GRAVE" + ], + "glfw": [ + "GRAVE_ACCENT" + ] + }, + "values": { + "windows": [ + 192 + ], + "android": [ + 68 + ], + "fuchsia": [ + 77309870133 + ], + "glfw": [ + 96 + ] + } + }, + "KeyA": { + "name": "KeyA", + "value": 97, + "keyLabel": "a", + "names": { + "android": [ + "A" + ], + "glfw": [ + "A" + ] + }, + "values": { + "android": [ + 29 + ], + "fuchsia": [ + 77309870084 + ], + "glfw": [ + 65 + ] + } + }, + "KeyB": { + "name": "KeyB", + "value": 98, + "keyLabel": "b", + "names": { + "android": [ + "B" + ], + "glfw": [ + "B" + ] + }, + "values": { + "android": [ + 30 + ], + "fuchsia": [ + 77309870085 + ], + "glfw": [ + 66 + ] + } + }, + "KeyC": { + "name": "KeyC", + "value": 99, + "keyLabel": "c", + "names": { + "android": [ + "C" + ], + "glfw": [ + "C" + ] + }, + "values": { + "android": [ + 31 + ], + "fuchsia": [ + 77309870086 + ], + "glfw": [ + 67 + ] + } + }, + "KeyD": { + "name": "KeyD", + "value": 100, + "keyLabel": "d", + "names": { + "android": [ + "D" + ], + "glfw": [ + "D" + ] + }, + "values": { + "android": [ + 32 + ], + "fuchsia": [ + 77309870087 + ], + "glfw": [ + 68 + ] + } + }, + "KeyE": { + "name": "KeyE", + "value": 101, + "keyLabel": "e", + "names": { + "android": [ + "E" + ], + "glfw": [ + "E" + ] + }, + "values": { + "android": [ + 33 + ], + "fuchsia": [ + 77309870088 + ], + "glfw": [ + 69 + ] + } + }, + "KeyF": { + "name": "KeyF", + "value": 102, + "keyLabel": "f", + "names": { + "android": [ + "F" + ], + "glfw": [ + "F" + ] + }, + "values": { + "android": [ + 34 + ], + "fuchsia": [ + 77309870089 + ], + "glfw": [ + 70 + ] + } + }, + "KeyG": { + "name": "KeyG", + "value": 103, + "keyLabel": "g", + "names": { + "android": [ + "G" + ], + "glfw": [ + "G" + ] + }, + "values": { + "android": [ + 35 + ], + "fuchsia": [ + 77309870090 + ], + "glfw": [ + 71 + ] + } + }, + "KeyH": { + "name": "KeyH", + "value": 104, + "keyLabel": "h", + "names": { + "android": [ + "H" + ], + "glfw": [ + "H" + ] + }, + "values": { + "android": [ + 36 + ], + "fuchsia": [ + 77309870091 + ], + "glfw": [ + 72 + ] + } + }, + "KeyI": { + "name": "KeyI", + "value": 105, + "keyLabel": "i", + "names": { + "android": [ + "I" + ], + "glfw": [ + "I" + ] + }, + "values": { + "android": [ + 37 + ], + "fuchsia": [ + 77309870092 + ], + "glfw": [ + 73 + ] + } + }, + "KeyJ": { + "name": "KeyJ", + "value": 106, + "keyLabel": "j", + "names": { + "android": [ + "J" + ], + "glfw": [ + "J" + ] + }, + "values": { + "android": [ + 38 + ], + "fuchsia": [ + 77309870093 + ], + "glfw": [ + 74 + ] + } + }, + "KeyK": { + "name": "KeyK", + "value": 107, + "keyLabel": "k", + "names": { + "android": [ + "K" + ], + "glfw": [ + "K" + ] + }, + "values": { + "android": [ + 39 + ], + "fuchsia": [ + 77309870094 + ], + "glfw": [ + 75 + ] + } + }, + "KeyL": { + "name": "KeyL", + "value": 108, + "keyLabel": "l", + "names": { + "android": [ + "L" + ], + "glfw": [ + "L" + ] + }, + "values": { + "android": [ + 40 + ], + "fuchsia": [ + 77309870095 + ], + "glfw": [ + 76 + ] + } + }, + "KeyM": { + "name": "KeyM", + "value": 109, + "keyLabel": "m", + "names": { + "android": [ + "M" + ], + "glfw": [ + "M" + ] + }, + "values": { + "android": [ + 41 + ], + "fuchsia": [ + 77309870096 + ], + "glfw": [ + 77 + ] + } + }, + "KeyN": { + "name": "KeyN", + "value": 110, + "keyLabel": "n", + "names": { + "android": [ + "N" + ], + "glfw": [ + "N" + ] + }, + "values": { + "android": [ + 42 + ], + "fuchsia": [ + 77309870097 + ], + "glfw": [ + 78 + ] + } + }, + "KeyO": { + "name": "KeyO", + "value": 111, + "keyLabel": "o", + "names": { + "android": [ + "O" + ], + "glfw": [ + "O" + ] + }, + "values": { + "android": [ + 43 + ], + "fuchsia": [ + 77309870098 + ], + "glfw": [ + 79 + ] + } + }, + "KeyP": { + "name": "KeyP", + "value": 112, + "keyLabel": "p", + "names": { + "android": [ + "P" + ], + "glfw": [ + "P" + ] + }, + "values": { + "android": [ + 44 + ], + "fuchsia": [ + 77309870099 + ], + "glfw": [ + 80 + ] + } + }, + "KeyQ": { + "name": "KeyQ", + "value": 113, + "keyLabel": "q", + "names": { + "android": [ + "Q" + ], + "glfw": [ + "Q" + ] + }, + "values": { + "android": [ + 45 + ], + "fuchsia": [ + 77309870100 + ], + "glfw": [ + 81 + ] + } + }, + "KeyR": { + "name": "KeyR", + "value": 114, + "keyLabel": "r", + "names": { + "android": [ + "R" + ], + "glfw": [ + "R" + ] + }, + "values": { + "android": [ + 46 + ], + "fuchsia": [ + 77309870101 + ], + "glfw": [ + 82 + ] + } + }, + "KeyS": { + "name": "KeyS", + "value": 115, + "keyLabel": "s", + "names": { + "android": [ + "S" + ], + "glfw": [ + "S" + ] + }, + "values": { + "android": [ + 47 + ], + "fuchsia": [ + 77309870102 + ], + "glfw": [ + 83 + ] + } + }, + "KeyT": { + "name": "KeyT", + "value": 116, + "keyLabel": "t", + "names": { + "android": [ + "T" + ], + "glfw": [ + "T" + ] + }, + "values": { + "android": [ + 48 + ], + "fuchsia": [ + 77309870103 + ], + "glfw": [ + 84 + ] + } + }, + "KeyU": { + "name": "KeyU", + "value": 117, + "keyLabel": "u", + "names": { + "android": [ + "U" + ], + "glfw": [ + "U" + ] + }, + "values": { + "android": [ + 49 + ], + "fuchsia": [ + 77309870104 + ], + "glfw": [ + 85 + ] + } + }, + "KeyV": { + "name": "KeyV", + "value": 118, + "keyLabel": "v", + "names": { + "android": [ + "V" + ], + "glfw": [ + "V" + ] + }, + "values": { + "android": [ + 50 + ], + "fuchsia": [ + 77309870105 + ], + "glfw": [ + 86 + ] + } + }, + "KeyW": { + "name": "KeyW", + "value": 119, + "keyLabel": "w", + "names": { + "android": [ + "W" + ], + "glfw": [ + "W" + ] + }, + "values": { + "android": [ + 51 + ], + "fuchsia": [ + 77309870106 + ], + "glfw": [ + 87 + ] + } + }, + "KeyX": { + "name": "KeyX", + "value": 120, + "keyLabel": "x", + "names": { + "android": [ + "X" + ], + "glfw": [ + "X" + ] + }, + "values": { + "android": [ + 52 + ], + "fuchsia": [ + 77309870107 + ], + "glfw": [ + 88 + ] + } + }, + "KeyY": { + "name": "KeyY", + "value": 121, + "keyLabel": "y", + "names": { + "android": [ + "Y" + ], + "glfw": [ + "Y" + ] + }, + "values": { + "android": [ + 53 + ], + "fuchsia": [ + 77309870108 + ], + "glfw": [ + 89 + ] + } + }, + "KeyZ": { + "name": "KeyZ", + "value": 122, + "keyLabel": "z", + "names": { + "android": [ + "Z" + ], + "glfw": [ + "Z" + ] + }, + "values": { + "android": [ + 54 + ], + "fuchsia": [ + 77309870109 + ], + "glfw": [ + 90 + ] + } + }, + "BraceLeft": { + "name": "BraceLeft", + "value": 123, + "keyLabel": "{" + }, + "Bar": { + "name": "Bar", + "value": 124, + "keyLabel": "|" + }, + "BraceRight": { + "name": "BraceRight", + "value": 125, + "keyLabel": "}" + }, + "Tilde": { + "name": "Tilde", + "value": 126, + "keyLabel": "~" + }, + "Unidentified": { + "name": "Unidentified", + "value": 4294967297, + "names": { + "web": [ + "Unidentified" + ] + } + }, + "Backspace": { + "name": "Backspace", + "value": 4294967304, + "names": { + "web": [ + "Backspace" + ], + "macos": [ + "Backspace" + ], + "ios": [ + "Backspace" + ], + "gtk": [ + "BackSpace" + ], + "windows": [ + "BACK" + ], + "android": [ + "DEL" + ], + "glfw": [ + "BACKSPACE" + ] + }, + "values": { + "macos": [ + 51 + ], + "ios": [ + 42 + ], + "gtk": [ + 65288 + ], + "windows": [ + 8 + ], + "android": [ + 67 + ], + "fuchsia": [ + 77309870122 + ], + "glfw": [ + 259 + ] + } + }, + "Tab": { + "name": "Tab", + "value": 4294967305, + "names": { + "web": [ + "Tab" + ], + "macos": [ + "Tab" + ], + "ios": [ + "Tab" + ], + "gtk": [ + "Tab", + "KP_Tab", + "ISO_Left_Tab" + ], + "windows": [ + "TAB" + ], + "android": [ + "TAB" + ], + "glfw": [ + "TAB" + ] + }, + "values": { + "macos": [ + 48 + ], + "ios": [ + 43 + ], + "gtk": [ + 65289, + 65417, + 65056 + ], + "windows": [ + 9 + ], + "android": [ + 61 + ], + "fuchsia": [ + 77309870123 + ], + "glfw": [ + 258 + ] + } + }, + "Enter": { + "name": "Enter", + "value": 4294967309, + "names": { + "web": [ + "Enter" + ], + "macos": [ + "Enter" + ], + "ios": [ + "Enter" + ], + "gtk": [ + "Return", + "ISO_Enter", + "3270_Enter" + ], + "windows": [ + "RETURN" + ], + "android": [ + "ENTER" + ], + "glfw": [ + "ENTER" + ] + }, + "values": { + "macos": [ + 36 + ], + "ios": [ + 40 + ], + "gtk": [ + 65293, + 65076, + 64798 + ], + "windows": [ + 13 + ], + "android": [ + 66 + ], + "fuchsia": [ + 77309870120 + ], + "glfw": [ + 257 + ] + } + }, + "Escape": { + "name": "Escape", + "value": 4294967323, + "names": { + "web": [ + "Escape", + "Esc" + ], + "macos": [ + "Escape" + ], + "ios": [ + "Escape" + ], + "gtk": [ + "Escape" + ], + "windows": [ + "ESCAPE" + ], + "android": [ + "ESCAPE" + ], + "glfw": [ + "ESCAPE" + ] + }, + "values": { + "macos": [ + 53 + ], + "ios": [ + 41 + ], + "gtk": [ + 65307 + ], + "windows": [ + 27 + ], + "android": [ + 111 + ], + "fuchsia": [ + 77309870121 + ], + "glfw": [ + 256 + ] + } + }, + "Delete": { + "name": "Delete", + "value": 4294967423, + "names": { + "web": [ + "Delete" + ], + "macos": [ + "Delete" + ], + "ios": [ + "Delete" + ], + "gtk": [ + "Delete" + ], + "windows": [ + "DELETE" + ], + "android": [ + "FORWARD_DEL" + ], + "glfw": [ + "DELETE" + ] + }, + "values": { + "macos": [ + 117 + ], + "ios": [ + 76 + ], + "gtk": [ + 65535 + ], + "windows": [ + 46 + ], + "android": [ + 112 + ], + "fuchsia": [ + 77309870156 + ], + "glfw": [ + 261 + ] + } + }, + "Accel": { + "name": "Accel", + "value": 4294967553, + "names": { + "web": [ + "Accel" + ] + } + }, + "AltGraph": { + "name": "AltGraph", + "value": 4294967555, + "names": { + "web": [ + "AltGraph" + ] + } + }, + "CapsLock": { + "name": "CapsLock", + "value": 4294967556, + "names": { + "web": [ + "CapsLock" + ], + "macos": [ + "CapsLock" + ], + "ios": [ + "CapsLock" + ], + "gtk": [ + "Caps_Lock" + ], + "windows": [ + "CAPITAL" + ], + "android": [ + "CAPS_LOCK" + ], + "glfw": [ + "CAPS_LOCK" + ] + }, + "values": { + "macos": [ + 57 + ], + "ios": [ + 57 + ], + "gtk": [ + 65509 + ], + "windows": [ + 20 + ], + "android": [ + 115 + ], + "fuchsia": [ + 77309870137 + ], + "glfw": [ + 280 + ] + } + }, + "Fn": { + "name": "Fn", + "value": 4294967558, + "names": { + "web": [ + "Fn" + ], + "macos": [ + "Fn" + ], + "android": [ + "FUNCTION" + ] + }, + "values": { + "macos": [ + 63 + ], + "android": [ + 119 + ], + "fuchsia": [ + 77309411346 + ] + } + }, + "FnLock": { + "name": "FnLock", + "value": 4294967559, + "names": { + "web": [ + "FnLock" + ] + }, + "values": { + "fuchsia": [ + 77309411347 + ] + } + }, + "Hyper": { + "name": "Hyper", + "value": 4294967560, + "names": { + "web": [ + "Hyper" + ], + "gtk": [ + "Hyper_L", + "Hyper_R" + ] + }, + "values": { + "gtk": [ + 65517, + 65518 + ], + "fuchsia": [ + 77309411344 + ] + } + }, + "NumLock": { + "name": "NumLock", + "value": 4294967562, + "names": { + "web": [ + "NumLock" + ], + "macos": [ + "NumLock" + ], + "ios": [ + "NumLock" + ], + "gtk": [ + "Num_Lock" + ], + "windows": [ + "NUMLOCK" + ], + "android": [ + "NUM_LOCK" + ], + "glfw": [ + "NUM_LOCK" + ] + }, + "values": { + "macos": [ + 71 + ], + "ios": [ + 83 + ], + "gtk": [ + 65407 + ], + "windows": [ + 144 + ], + "android": [ + 143 + ], + "fuchsia": [ + 77309870163 + ], + "glfw": [ + 282 + ] + } + }, + "ScrollLock": { + "name": "ScrollLock", + "value": 4294967564, + "names": { + "web": [ + "ScrollLock" + ], + "gtk": [ + "Scroll_Lock" + ], + "windows": [ + "SCROLL" + ], + "android": [ + "SCROLL_LOCK" + ] + }, + "values": { + "gtk": [ + 65300 + ], + "windows": [ + 145 + ], + "android": [ + 116 + ], + "fuchsia": [ + 77309870151 + ] + } + }, + "Super": { + "name": "Super", + "value": 4294967566, + "names": { + "web": [ + "Super" + ], + "gtk": [ + "Super_L", + "Super_R" + ] + }, + "values": { + "gtk": [ + 65515, + 65516 + ], + "fuchsia": [ + 77309411345 + ] + } + }, + "Symbol": { + "name": "Symbol", + "value": 4294967567, + "names": { + "web": [ + "Symbol" + ], + "android": [ + "SYM" + ] + }, + "values": { + "android": [ + 63 + ] + } + }, + "SymbolLock": { + "name": "SymbolLock", + "value": 4294967568, + "names": { + "web": [ + "SymbolLock" + ] + } + }, + "ShiftLevel5": { + "name": "ShiftLevel5", + "value": 4294967569, + "names": { + "web": [ + "ShiftLevel5" + ] + } + }, + "ArrowDown": { + "name": "ArrowDown", + "value": 4294968065, + "names": { + "web": [ + "ArrowDown" + ], + "macos": [ + "ArrowDown" + ], + "ios": [ + "ArrowDown" + ], + "gtk": [ + "Down" + ], + "windows": [ + "DOWN" + ], + "android": [ + "DPAD_DOWN" + ], + "glfw": [ + "DOWN" + ] + }, + "values": { + "macos": [ + 125 + ], + "ios": [ + 81 + ], + "gtk": [ + 65364 + ], + "windows": [ + 40 + ], + "android": [ + 20 + ], + "fuchsia": [ + 77309870161 + ], + "glfw": [ + 264 + ] + } + }, + "ArrowLeft": { + "name": "ArrowLeft", + "value": 4294968066, + "names": { + "web": [ + "ArrowLeft" + ], + "macos": [ + "ArrowLeft" + ], + "ios": [ + "ArrowLeft" + ], + "gtk": [ + "Left" + ], + "windows": [ + "LEFT" + ], + "android": [ + "DPAD_LEFT" + ], + "glfw": [ + "LEFT" + ] + }, + "values": { + "macos": [ + 123 + ], + "ios": [ + 80 + ], + "gtk": [ + 65361 + ], + "windows": [ + 37 + ], + "android": [ + 21 + ], + "fuchsia": [ + 77309870160 + ], + "glfw": [ + 263 + ] + } + }, + "ArrowRight": { + "name": "ArrowRight", + "value": 4294968067, + "names": { + "web": [ + "ArrowRight" + ], + "macos": [ + "ArrowRight" + ], + "ios": [ + "ArrowRight" + ], + "gtk": [ + "Right" + ], + "windows": [ + "RIGHT" + ], + "android": [ + "DPAD_RIGHT" + ], + "glfw": [ + "RIGHT" + ] + }, + "values": { + "macos": [ + 124 + ], + "ios": [ + 79 + ], + "gtk": [ + 65363 + ], + "windows": [ + 39 + ], + "android": [ + 22 + ], + "fuchsia": [ + 77309870159 + ], + "glfw": [ + 262 + ] + } + }, + "ArrowUp": { + "name": "ArrowUp", + "value": 4294968068, + "names": { + "web": [ + "ArrowUp" + ], + "macos": [ + "ArrowUp" + ], + "ios": [ + "ArrowUp" + ], + "gtk": [ + "Up" + ], + "windows": [ + "UP" + ], + "android": [ + "DPAD_UP" + ], + "glfw": [ + "UP" + ] + }, + "values": { + "macos": [ + 126 + ], + "ios": [ + 82 + ], + "gtk": [ + 65362 + ], + "windows": [ + 38 + ], + "android": [ + 19 + ], + "fuchsia": [ + 77309870162 + ], + "glfw": [ + 265 + ] + } + }, + "End": { + "name": "End", + "value": 4294968069, + "names": { + "web": [ + "End" + ], + "macos": [ + "End" + ], + "ios": [ + "End" + ], + "gtk": [ + "End" + ], + "windows": [ + "END" + ], + "android": [ + "MOVE_END" + ], + "glfw": [ + "END" + ] + }, + "values": { + "macos": [ + 119 + ], + "ios": [ + 77 + ], + "gtk": [ + 65367 + ], + "windows": [ + 35 + ], + "android": [ + 123 + ], + "fuchsia": [ + 77309870157 + ], + "glfw": [ + 269 + ] + } + }, + "Home": { + "name": "Home", + "value": 4294968070, + "names": { + "web": [ + "Home" + ], + "macos": [ + "Home" + ], + "ios": [ + "Home" + ], + "gtk": [ + "Home" + ], + "windows": [ + "HOME" + ], + "android": [ + "MOVE_HOME" + ], + "glfw": [ + "HOME" + ] + }, + "values": { + "macos": [ + 115 + ], + "ios": [ + 74 + ], + "gtk": [ + 65360 + ], + "windows": [ + 36 + ], + "android": [ + 122 + ], + "fuchsia": [ + 77309870154 + ], + "glfw": [ + 268 + ] + } + }, + "PageDown": { + "name": "PageDown", + "value": 4294968071, + "names": { + "web": [ + "PageDown" + ], + "macos": [ + "PageDown" + ], + "ios": [ + "PageDown" + ], + "gtk": [ + "Page_Down" + ], + "windows": [ + "NEXT" + ], + "android": [ + "PAGE_DOWN" + ], + "glfw": [ + "PAGE_DOWN" + ] + }, + "values": { + "macos": [ + 121 + ], + "ios": [ + 78 + ], + "gtk": [ + 65366 + ], + "windows": [ + 34 + ], + "android": [ + 93 + ], + "fuchsia": [ + 77309870158 + ], + "glfw": [ + 267 + ] + } + }, + "PageUp": { + "name": "PageUp", + "value": 4294968072, + "names": { + "web": [ + "PageUp" + ], + "macos": [ + "PageUp" + ], + "ios": [ + "PageUp" + ], + "gtk": [ + "Page_Up" + ], + "windows": [ + "PRIOR" + ], + "android": [ + "PAGE_UP" + ], + "glfw": [ + "PAGE_UP" + ] + }, + "values": { + "macos": [ + 116 + ], + "ios": [ + 75 + ], + "gtk": [ + 65365 + ], + "windows": [ + 33 + ], + "android": [ + 92 + ], + "fuchsia": [ + 77309870155 + ], + "glfw": [ + 266 + ] + } + }, + "Clear": { + "name": "Clear", + "value": 4294968321, + "names": { + "web": [ + "Clear" + ], + "gtk": [ + "Clear" + ], + "windows": [ + "CLEAR" + ], + "android": [ + "CLEAR" + ] + }, + "values": { + "gtk": [ + 65291 + ], + "windows": [ + 12 + ], + "android": [ + 28 + ] + } + }, + "Copy": { + "name": "Copy", + "value": 4294968322, + "names": { + "web": [ + "Copy" + ], + "gtk": [ + "3270_Copy", + "Copy" + ], + "android": [ + "COPY" + ] + }, + "values": { + "gtk": [ + 64789, + 269025111 + ], + "android": [ + 278 + ], + "fuchsia": [ + 77309870204 + ] + } + }, + "CrSel": { + "name": "CrSel", + "value": 4294968323, + "names": { + "web": [ + "CrSel" + ] + } + }, + "Cut": { + "name": "Cut", + "value": 4294968324, + "names": { + "web": [ + "Cut" + ], + "gtk": [ + "Cut" + ], + "android": [ + "CUT" + ] + }, + "values": { + "gtk": [ + 269025112 + ], + "android": [ + 277 + ], + "fuchsia": [ + 77309870203 + ] + } + }, + "EraseEof": { + "name": "EraseEof", + "value": 4294968325, + "names": { + "web": [ + "EraseEof" + ], + "gtk": [ + "3270_EraseEOF" + ] + }, + "values": { + "gtk": [ + 64774 + ] + } + }, + "ExSel": { + "name": "ExSel", + "value": 4294968326, + "names": { + "web": [ + "ExSel" + ], + "gtk": [ + "3270_ExSelect" + ] + }, + "values": { + "gtk": [ + 64795 + ] + } + }, + "Insert": { + "name": "Insert", + "value": 4294968327, + "names": { + "web": [ + "Insert" + ], + "macos": [ + "Insert" + ], + "ios": [ + "Insert" + ], + "gtk": [ + "Insert" + ], + "windows": [ + "INSERT" + ], + "android": [ + "INSERT" + ], + "glfw": [ + "INSERT" + ] + }, + "values": { + "macos": [ + 114 + ], + "ios": [ + 73 + ], + "gtk": [ + 65379 + ], + "windows": [ + 45 + ], + "android": [ + 124 + ], + "fuchsia": [ + 77309870153 + ], + "glfw": [ + 260 + ] + } + }, + "Paste": { + "name": "Paste", + "value": 4294968328, + "names": { + "web": [ + "Paste" + ], + "gtk": [ + "Paste" + ], + "android": [ + "PASTE" + ] + }, + "values": { + "gtk": [ + 269025133 + ], + "android": [ + 279 + ], + "fuchsia": [ + 77309870205 + ] + } + }, + "Redo": { + "name": "Redo", + "value": 4294968329, + "names": { + "web": [ + "Redo" + ], + "gtk": [ + "Redo" + ] + }, + "values": { + "gtk": [ + 65382 + ], + "fuchsia": [ + 77310198393 + ] + } + }, + "Undo": { + "name": "Undo", + "value": 4294968330, + "names": { + "web": [ + "Undo" + ], + "gtk": [ + "Undo" + ] + }, + "values": { + "gtk": [ + 65381 + ], + "fuchsia": [ + 77309870202 + ] + } + }, + "Accept": { + "name": "Accept", + "value": 4294968577, + "names": { + "web": [ + "Accept" + ], + "windows": [ + "ACCEPT" + ] + }, + "values": { + "windows": [ + 30 + ] + } + }, + "Again": { + "name": "Again", + "value": 4294968578, + "names": { + "web": [ + "Again" + ] + }, + "values": { + "fuchsia": [ + 77309870201 + ] + } + }, + "Attn": { + "name": "Attn", + "value": 4294968579, + "names": { + "web": [ + "Attn" + ], + "gtk": [ + "3270_Attn" + ], + "windows": [ + "ATTN" + ] + }, + "values": { + "gtk": [ + 64782 + ], + "windows": [ + 246 + ] + } + }, + "Cancel": { + "name": "Cancel", + "value": 4294968580, + "names": { + "web": [ + "Cancel" + ], + "gtk": [ + "Cancel" + ], + "windows": [ + "CANCEL" + ] + }, + "values": { + "gtk": [ + 65385 + ], + "windows": [ + 3 + ] + } + }, + "ContextMenu": { + "name": "ContextMenu", + "value": 4294968581, + "names": { + "web": [ + "ContextMenu" + ], + "macos": [ + "ContextMenu" + ], + "ios": [ + "ContextMenu" + ], + "gtk": [ + "Menu" + ], + "windows": [ + "APPS" + ], + "android": [ + "MENU" + ], + "glfw": [ + "MENU" + ] + }, + "values": { + "macos": [ + 110 + ], + "ios": [ + 101 + ], + "gtk": [ + 65383 + ], + "windows": [ + 93 + ], + "android": [ + 82 + ], + "fuchsia": [ + 77309870181 + ], + "glfw": [ + 348 + ] + } + }, + "Execute": { + "name": "Execute", + "value": 4294968582, + "names": { + "web": [ + "Execute" + ], + "gtk": [ + "Execute" + ], + "windows": [ + "EXECUTE" + ] + }, + "values": { + "gtk": [ + 65378 + ], + "windows": [ + 43 + ] + } + }, + "Find": { + "name": "Find", + "value": 4294968583, + "names": { + "web": [ + "Find" + ], + "gtk": [ + "Find" + ] + }, + "values": { + "gtk": [ + 65384 + ], + "fuchsia": [ + 77309870206 + ] + } + }, + "Help": { + "name": "Help", + "value": 4294968584, + "names": { + "web": [ + "Help" + ], + "gtk": [ + "Help" + ], + "windows": [ + "HELP" + ], + "android": [ + "HELP" + ] + }, + "values": { + "gtk": [ + 65386 + ], + "windows": [ + 47 + ], + "android": [ + 259 + ], + "fuchsia": [ + 77309870197 + ] + } + }, + "Pause": { + "name": "Pause", + "value": 4294968585, + "names": { + "web": [ + "Pause" + ], + "gtk": [ + "Pause" + ], + "windows": [ + "PAUSE" + ], + "android": [ + "BREAK" + ], + "glfw": [ + "PAUSE" + ] + }, + "values": { + "gtk": [ + 65299 + ], + "windows": [ + 19 + ], + "android": [ + 121 + ], + "fuchsia": [ + 77309870152 + ], + "glfw": [ + 284 + ] + } + }, + "Play": { + "name": "Play", + "value": 4294968586, + "names": { + "web": [ + "Play" + ], + "windows": [ + "PLAY" + ] + }, + "values": { + "windows": [ + 250 + ] + } + }, + "Props": { + "name": "Props", + "value": 4294968587, + "names": { + "web": [ + "Props" + ] + }, + "values": { + "fuchsia": [ + 77309870243 + ] + } + }, + "Select": { + "name": "Select", + "value": 4294968588, + "names": { + "web": [ + "Select" + ], + "gtk": [ + "Select" + ], + "windows": [ + "SELECT" + ], + "android": [ + "DPAD_CENTER" + ] + }, + "values": { + "gtk": [ + 65376 + ], + "windows": [ + 41 + ], + "android": [ + 23 + ], + "fuchsia": [ + 77309870199 + ] + } + }, + "ZoomIn": { + "name": "ZoomIn", + "value": 4294968589, + "names": { + "web": [ + "ZoomIn" + ], + "gtk": [ + "ZoomIn" + ], + "android": [ + "ZOOM_IN" + ] + }, + "values": { + "gtk": [ + 269025163 + ], + "android": [ + 168 + ], + "fuchsia": [ + 77310198317 + ] + } + }, + "ZoomOut": { + "name": "ZoomOut", + "value": 4294968590, + "names": { + "web": [ + "ZoomOut" + ], + "gtk": [ + "ZoomOut" + ], + "android": [ + "ZOOM_OUT" + ] + }, + "values": { + "gtk": [ + 269025164 + ], + "android": [ + 169 + ], + "fuchsia": [ + 77310198318 + ] + } + }, + "BrightnessDown": { + "name": "BrightnessDown", + "value": 4294968833, + "names": { + "web": [ + "BrightnessDown" + ], + "gtk": [ + "MonBrightnessDown" + ], + "android": [ + "BRIGHTNESS_DOWN" + ] + }, + "values": { + "gtk": [ + 269025027 + ], + "android": [ + 220 + ], + "fuchsia": [ + 77310197872 + ] + } + }, + "BrightnessUp": { + "name": "BrightnessUp", + "value": 4294968834, + "names": { + "web": [ + "BrightnessUp" + ], + "gtk": [ + "MonBrightnessUp" + ], + "android": [ + "BRIGHTNESS_UP" + ] + }, + "values": { + "gtk": [ + 269025026 + ], + "android": [ + 221 + ], + "fuchsia": [ + 77310197871 + ] + } + }, + "Camera": { + "name": "Camera", + "value": 4294968835, + "names": { + "web": [ + "Camera" + ], + "android": [ + "CAMERA" + ] + }, + "values": { + "android": [ + 27 + ] + } + }, + "Eject": { + "name": "Eject", + "value": 4294968836, + "names": { + "web": [ + "Eject" + ], + "gtk": [ + "Eject" + ], + "android": [ + "MEDIA_EJECT" + ] + }, + "values": { + "gtk": [ + 269025068 + ], + "android": [ + 129 + ], + "fuchsia": [ + 77310197944 + ] + } + }, + "LogOff": { + "name": "LogOff", + "value": 4294968837, + "names": { + "web": [ + "LogOff" + ], + "gtk": [ + "LogOff" + ] + }, + "values": { + "gtk": [ + 269025121 + ], + "fuchsia": [ + 77310198172 + ] + } + }, + "Power": { + "name": "Power", + "value": 4294968838, + "names": { + "web": [ + "Power" + ], + "android": [ + "POWER" + ] + }, + "values": { + "android": [ + 26 + ], + "fuchsia": [ + 77309870182 + ] + } + }, + "PowerOff": { + "name": "PowerOff", + "value": 4294968839, + "names": { + "web": [ + "PowerOff" + ], + "gtk": [ + "PowerOff" + ] + }, + "values": { + "gtk": [ + 269025066 + ] + } + }, + "PrintScreen": { + "name": "PrintScreen", + "value": 4294968840, + "names": { + "web": [ + "PrintScreen" + ], + "gtk": [ + "3270_PrintScreen" + ], + "windows": [ + "SNAPSHOT" + ], + "android": [ + "SYSRQ" + ], + "glfw": [ + "PRINT_SCREEN" + ] + }, + "values": { + "gtk": [ + 64797 + ], + "windows": [ + 44 + ], + "android": [ + 120 + ], + "fuchsia": [ + 77309870150 + ], + "glfw": [ + 283 + ] + } + }, + "Hibernate": { + "name": "Hibernate", + "value": 4294968841, + "names": { + "web": [ + "Hibernate" + ] + } + }, + "Standby": { + "name": "Standby", + "value": 4294968842, + "names": { + "web": [ + "Standby" + ], + "gtk": [ + "Standby" + ] + }, + "values": { + "gtk": [ + 269025040 + ] + } + }, + "WakeUp": { + "name": "WakeUp", + "value": 4294968843, + "names": { + "web": [ + "WakeUp" + ], + "gtk": [ + "WakeUp" + ], + "android": [ + "WAKEUP" + ] + }, + "values": { + "gtk": [ + 269025067 + ], + "android": [ + 224 + ], + "fuchsia": [ + 77309476995 + ] + } + }, + "AllCandidates": { + "name": "AllCandidates", + "value": 4294969089, + "names": { + "web": [ + "AllCandidates" + ] + } + }, + "Alphanumeric": { + "name": "Alphanumeric", + "value": 4294969090, + "names": { + "web": [ + "Alphanumeric" + ] + } + }, + "CodeInput": { + "name": "CodeInput", + "value": 4294969091, + "names": { + "web": [ + "CodeInput" + ], + "gtk": [ + "Codeinput" + ] + }, + "values": { + "gtk": [ + 65335 + ] + } + }, + "Compose": { + "name": "Compose", + "value": 4294969092, + "names": { + "web": [ + "Compose" + ] + } + }, + "Convert": { + "name": "Convert", + "value": 4294969093, + "names": { + "web": [ + "Convert" + ], + "windows": [ + "CONVERT" + ], + "android": [ + "HENKAN" + ] + }, + "values": { + "windows": [ + 28 + ], + "android": [ + 214 + ], + "fuchsia": [ + 77309870218 + ] + } + }, + "FinalMode": { + "name": "FinalMode", + "value": 4294969094, + "names": { + "web": [ + "FinalMode" + ], + "windows": [ + "FINAL" + ] + }, + "values": { + "windows": [ + 24 + ] + } + }, + "GroupFirst": { + "name": "GroupFirst", + "value": 4294969095, + "names": { + "web": [ + "GroupFirst" + ], + "gtk": [ + "ISO_First_Group" + ] + }, + "values": { + "gtk": [ + 65036 + ] + } + }, + "GroupLast": { + "name": "GroupLast", + "value": 4294969096, + "names": { + "web": [ + "GroupLast" + ], + "gtk": [ + "ISO_Last_Group" + ] + }, + "values": { + "gtk": [ + 65038 + ] + } + }, + "GroupNext": { + "name": "GroupNext", + "value": 4294969097, + "names": { + "web": [ + "GroupNext" + ], + "gtk": [ + "ISO_Next_Group" + ], + "android": [ + "LANGUAGE_SWITCH" + ] + }, + "values": { + "gtk": [ + 65032 + ], + "android": [ + 204 + ] + } + }, + "GroupPrevious": { + "name": "GroupPrevious", + "value": 4294969098, + "names": { + "web": [ + "GroupPrevious" + ], + "gtk": [ + "ISO_Prev_Group" + ] + }, + "values": { + "gtk": [ + 65034 + ] + } + }, + "ModeChange": { + "name": "ModeChange", + "value": 4294969099, + "names": { + "web": [ + "ModeChange" + ], + "gtk": [ + "Mode_switch" + ], + "windows": [ + "MODECHANGE" + ], + "android": [ + "SWITCH_CHARSET" + ] + }, + "values": { + "gtk": [ + 65406 + ], + "windows": [ + 31 + ], + "android": [ + 95 + ] + } + }, + "NextCandidate": { + "name": "NextCandidate", + "value": 4294969100, + "names": { + "web": [ + "NextCandidate" + ] + } + }, + "NonConvert": { + "name": "NonConvert", + "value": 4294969101, + "names": { + "web": [ + "NonConvert" + ], + "android": [ + "MUHENKAN" + ] + }, + "values": { + "android": [ + 213 + ], + "fuchsia": [ + 77309870219 + ] + } + }, + "PreviousCandidate": { + "name": "PreviousCandidate", + "value": 4294969102, + "names": { + "web": [ + "PreviousCandidate" + ], + "gtk": [ + "PreviousCandidate" + ] + }, + "values": { + "gtk": [ + 65342 + ] + } + }, + "Process": { + "name": "Process", + "value": 4294969103, + "names": { + "web": [ + "Process" + ] + } + }, + "SingleCandidate": { + "name": "SingleCandidate", + "value": 4294969104, + "names": { + "web": [ + "SingleCandidate" + ], + "gtk": [ + "SingleCandidate" + ] + }, + "values": { + "gtk": [ + 65340 + ] + } + }, + "HangulMode": { + "name": "HangulMode", + "value": 4294969105, + "names": { + "web": [ + "HangulMode" + ], + "gtk": [ + "Hangul" + ] + }, + "values": { + "gtk": [ + 65329 + ] + } + }, + "HanjaMode": { + "name": "HanjaMode", + "value": 4294969106, + "names": { + "web": [ + "HanjaMode" + ], + "gtk": [ + "Hangul_Hanja" + ] + }, + "values": { + "gtk": [ + 65332 + ] + } + }, + "JunjaMode": { + "name": "JunjaMode", + "value": 4294969107, + "names": { + "web": [ + "JunjaMode" + ], + "windows": [ + "JUNJA" + ] + }, + "values": { + "windows": [ + 23 + ] + } + }, + "Eisu": { + "name": "Eisu", + "value": 4294969108, + "names": { + "web": [ + "Eisu" + ], + "gtk": [ + "Eisu_Shift" + ], + "android": [ + "EISU" + ] + }, + "values": { + "gtk": [ + 65327 + ], + "android": [ + 212 + ] + } + }, + "Hankaku": { + "name": "Hankaku", + "value": 4294969109, + "names": { + "web": [ + "Hankaku" + ], + "gtk": [ + "Hankaku" + ] + }, + "values": { + "gtk": [ + 65321 + ] + } + }, + "Hiragana": { + "name": "Hiragana", + "value": 4294969110, + "names": { + "web": [ + "Hiragana" + ], + "gtk": [ + "Hiragana" + ] + }, + "values": { + "gtk": [ + 65317 + ] + } + }, + "HiraganaKatakana": { + "name": "HiraganaKatakana", + "value": 4294969111, + "names": { + "web": [ + "HiraganaKatakana" + ], + "gtk": [ + "Hiragana_Katakana" + ], + "android": [ + "KATAKANA_HIRAGANA" + ] + }, + "values": { + "gtk": [ + 65319 + ], + "android": [ + 215 + ] + } + }, + "KanaMode": { + "name": "KanaMode", + "value": 4294969112, + "names": { + "web": [ + "KanaMode" + ] + }, + "values": { + "fuchsia": [ + 77309870216 + ] + } + }, + "KanjiMode": { + "name": "KanjiMode", + "value": 4294969113, + "names": { + "web": [ + "KanjiMode" + ], + "gtk": [ + "Kanji" + ], + "windows": [ + "HANJA, KANJI" + ], + "android": [ + "KANA" + ] + }, + "values": { + "gtk": [ + 65313 + ], + "windows": [ + 25 + ], + "android": [ + 218 + ] + } + }, + "Katakana": { + "name": "Katakana", + "value": 4294969114, + "names": { + "web": [ + "Katakana" + ], + "gtk": [ + "Katakana" + ] + }, + "values": { + "gtk": [ + 65318 + ] + } + }, + "Romaji": { + "name": "Romaji", + "value": 4294969115, + "names": { + "web": [ + "Romaji" + ], + "gtk": [ + "Romaji" + ] + }, + "values": { + "gtk": [ + 65316 + ] + } + }, + "Zenkaku": { + "name": "Zenkaku", + "value": 4294969116, + "names": { + "web": [ + "Zenkaku" + ], + "gtk": [ + "Zenkaku" + ] + }, + "values": { + "gtk": [ + 65320 + ] + } + }, + "ZenkakuHankaku": { + "name": "ZenkakuHankaku", + "value": 4294969117, + "names": { + "web": [ + "ZenkakuHankaku" + ], + "gtk": [ + "Zenkaku_Hankaku" + ], + "android": [ + "ZENKAKU_HANKAKU" + ] + }, + "values": { + "gtk": [ + 65322 + ], + "android": [ + 211 + ] + } + }, + "F1": { + "name": "F1", + "value": 4294969345, + "names": { + "web": [ + "F1" + ], + "macos": [ + "F1" + ], + "ios": [ + "F1" + ], + "gtk": [ + "KP_F1", + "F1" + ], + "windows": [ + "F1" + ], + "android": [ + "F1" + ], + "glfw": [ + "F1" + ] + }, + "values": { + "macos": [ + 122 + ], + "ios": [ + 58 + ], + "gtk": [ + 65425, + 65470 + ], + "windows": [ + 112 + ], + "android": [ + 131 + ], + "fuchsia": [ + 77309870138 + ], + "glfw": [ + 290 + ] + } + }, + "F2": { + "name": "F2", + "value": 4294969346, + "names": { + "web": [ + "F2" + ], + "macos": [ + "F2" + ], + "ios": [ + "F2" + ], + "gtk": [ + "KP_F2", + "F2" + ], + "windows": [ + "F2" + ], + "android": [ + "F2" + ], + "glfw": [ + "F2" + ] + }, + "values": { + "macos": [ + 120 + ], + "ios": [ + 59 + ], + "gtk": [ + 65426, + 65471 + ], + "windows": [ + 113 + ], + "android": [ + 132 + ], + "fuchsia": [ + 77309870139 + ], + "glfw": [ + 291 + ] + } + }, + "F3": { + "name": "F3", + "value": 4294969347, + "names": { + "web": [ + "F3" + ], + "macos": [ + "F3" + ], + "ios": [ + "F3" + ], + "gtk": [ + "KP_F3", + "F3" + ], + "windows": [ + "F3" + ], + "android": [ + "F3" + ], + "glfw": [ + "F3" + ] + }, + "values": { + "macos": [ + 99 + ], + "ios": [ + 60 + ], + "gtk": [ + 65427, + 65472 + ], + "windows": [ + 114 + ], + "android": [ + 133 + ], + "fuchsia": [ + 77309870140 + ], + "glfw": [ + 292 + ] + } + }, + "F4": { + "name": "F4", + "value": 4294969348, + "names": { + "web": [ + "F4" + ], + "macos": [ + "F4" + ], + "ios": [ + "F4" + ], + "gtk": [ + "KP_F4", + "F4" + ], + "windows": [ + "F4" + ], + "android": [ + "F4" + ], + "glfw": [ + "F4" + ] + }, + "values": { + "macos": [ + 118 + ], + "ios": [ + 61 + ], + "gtk": [ + 65428, + 65473 + ], + "windows": [ + 115 + ], + "android": [ + 134 + ], + "fuchsia": [ + 77309870141 + ], + "glfw": [ + 293 + ] + } + }, + "F5": { + "name": "F5", + "value": 4294969349, + "names": { + "web": [ + "F5" + ], + "macos": [ + "F5" + ], + "ios": [ + "F5" + ], + "gtk": [ + "F5" + ], + "windows": [ + "F5" + ], + "android": [ + "F5" + ], + "glfw": [ + "F5" + ] + }, + "values": { + "macos": [ + 96 + ], + "ios": [ + 62 + ], + "gtk": [ + 65474 + ], + "windows": [ + 116 + ], + "android": [ + 135 + ], + "fuchsia": [ + 77309870142 + ], + "glfw": [ + 294 + ] + } + }, + "F6": { + "name": "F6", + "value": 4294969350, + "names": { + "web": [ + "F6" + ], + "macos": [ + "F6" + ], + "ios": [ + "F6" + ], + "gtk": [ + "F6" + ], + "windows": [ + "F6" + ], + "android": [ + "F6" + ], + "glfw": [ + "F6" + ] + }, + "values": { + "macos": [ + 97 + ], + "ios": [ + 63 + ], + "gtk": [ + 65475 + ], + "windows": [ + 117 + ], + "android": [ + 136 + ], + "fuchsia": [ + 77309870143 + ], + "glfw": [ + 295 + ] + } + }, + "F7": { + "name": "F7", + "value": 4294969351, + "names": { + "web": [ + "F7" + ], + "macos": [ + "F7" + ], + "ios": [ + "F7" + ], + "gtk": [ + "F7" + ], + "windows": [ + "F7" + ], + "android": [ + "F7" + ], + "glfw": [ + "F7" + ] + }, + "values": { + "macos": [ + 98 + ], + "ios": [ + 64 + ], + "gtk": [ + 65476 + ], + "windows": [ + 118 + ], + "android": [ + 137 + ], + "fuchsia": [ + 77309870144 + ], + "glfw": [ + 296 + ] + } + }, + "F8": { + "name": "F8", + "value": 4294969352, + "names": { + "web": [ + "F8" + ], + "macos": [ + "F8" + ], + "ios": [ + "F8" + ], + "gtk": [ + "F8" + ], + "windows": [ + "F8" + ], + "android": [ + "F8" + ], + "glfw": [ + "F8" + ] + }, + "values": { + "macos": [ + 100 + ], + "ios": [ + 65 + ], + "gtk": [ + 65477 + ], + "windows": [ + 119 + ], + "android": [ + 138 + ], + "fuchsia": [ + 77309870145 + ], + "glfw": [ + 297 + ] + } + }, + "F9": { + "name": "F9", + "value": 4294969353, + "names": { + "web": [ + "F9" + ], + "macos": [ + "F9" + ], + "ios": [ + "F9" + ], + "gtk": [ + "F9" + ], + "windows": [ + "F9" + ], + "android": [ + "F9" + ], + "glfw": [ + "F9" + ] + }, + "values": { + "macos": [ + 101 + ], + "ios": [ + 66 + ], + "gtk": [ + 65478 + ], + "windows": [ + 120 + ], + "android": [ + 139 + ], + "fuchsia": [ + 77309870146 + ], + "glfw": [ + 298 + ] + } + }, + "F10": { + "name": "F10", + "value": 4294969354, + "names": { + "web": [ + "F10" + ], + "macos": [ + "F10" + ], + "ios": [ + "F10" + ], + "gtk": [ + "F10" + ], + "windows": [ + "F10" + ], + "android": [ + "F10" + ], + "glfw": [ + "F10" + ] + }, + "values": { + "macos": [ + 109 + ], + "ios": [ + 67 + ], + "gtk": [ + 65479 + ], + "windows": [ + 121 + ], + "android": [ + 140 + ], + "fuchsia": [ + 77309870147 + ], + "glfw": [ + 299 + ] + } + }, + "F11": { + "name": "F11", + "value": 4294969355, + "names": { + "web": [ + "F11" + ], + "macos": [ + "F11" + ], + "ios": [ + "F11" + ], + "gtk": [ + "F11" + ], + "windows": [ + "F11" + ], + "android": [ + "F11" + ], + "glfw": [ + "F11" + ] + }, + "values": { + "macos": [ + 103 + ], + "ios": [ + 68 + ], + "gtk": [ + 65480 + ], + "windows": [ + 122 + ], + "android": [ + 141 + ], + "fuchsia": [ + 77309870148 + ], + "glfw": [ + 300 + ] + } + }, + "F12": { + "name": "F12", + "value": 4294969356, + "names": { + "web": [ + "F12" + ], + "macos": [ + "F12" + ], + "ios": [ + "F12" + ], + "gtk": [ + "F12" + ], + "windows": [ + "F12" + ], + "android": [ + "F12" + ], + "glfw": [ + "F12" + ] + }, + "values": { + "macos": [ + 111 + ], + "ios": [ + 69 + ], + "gtk": [ + 65481 + ], + "windows": [ + 123 + ], + "android": [ + 142 + ], + "fuchsia": [ + 77309870149 + ], + "glfw": [ + 301 + ] + } + }, + "F13": { + "name": "F13", + "value": 4294969357, + "names": { + "web": [ + "F13" + ], + "macos": [ + "F13" + ], + "ios": [ + "F13" + ], + "gtk": [ + "F13" + ], + "windows": [ + "F13" + ], + "glfw": [ + "F13" + ] + }, + "values": { + "macos": [ + 105 + ], + "ios": [ + 104 + ], + "gtk": [ + 65482 + ], + "windows": [ + 124 + ], + "fuchsia": [ + 77309870184 + ], + "glfw": [ + 302 + ] + } + }, + "F14": { + "name": "F14", + "value": 4294969358, + "names": { + "web": [ + "F14" + ], + "macos": [ + "F14" + ], + "ios": [ + "F14" + ], + "gtk": [ + "F14" + ], + "windows": [ + "F14" + ], + "glfw": [ + "F14" + ] + }, + "values": { + "macos": [ + 107 + ], + "ios": [ + 105 + ], + "gtk": [ + 65483 + ], + "windows": [ + 125 + ], + "fuchsia": [ + 77309870185 + ], + "glfw": [ + 303 + ] + } + }, + "F15": { + "name": "F15", + "value": 4294969359, + "names": { + "web": [ + "F15" + ], + "macos": [ + "F15" + ], + "ios": [ + "F15" + ], + "gtk": [ + "F15" + ], + "windows": [ + "F15" + ], + "glfw": [ + "F15" + ] + }, + "values": { + "macos": [ + 113 + ], + "ios": [ + 106 + ], + "gtk": [ + 65484 + ], + "windows": [ + 126 + ], + "fuchsia": [ + 77309870186 + ], + "glfw": [ + 304 + ] + } + }, + "F16": { + "name": "F16", + "value": 4294969360, + "names": { + "web": [ + "F16" + ], + "macos": [ + "F16" + ], + "ios": [ + "F16" + ], + "gtk": [ + "F16" + ], + "windows": [ + "F16" + ], + "glfw": [ + "F16" + ] + }, + "values": { + "macos": [ + 106 + ], + "ios": [ + 107 + ], + "gtk": [ + 65485 + ], + "windows": [ + 127 + ], + "fuchsia": [ + 77309870187 + ], + "glfw": [ + 305 + ] + } + }, + "F17": { + "name": "F17", + "value": 4294969361, + "names": { + "web": [ + "F17" + ], + "macos": [ + "F17" + ], + "ios": [ + "F17" + ], + "gtk": [ + "F17" + ], + "windows": [ + "F17" + ], + "glfw": [ + "F17" + ] + }, + "values": { + "macos": [ + 64 + ], + "ios": [ + 108 + ], + "gtk": [ + 65486 + ], + "windows": [ + 128 + ], + "fuchsia": [ + 77309870188 + ], + "glfw": [ + 306 + ] + } + }, + "F18": { + "name": "F18", + "value": 4294969362, + "names": { + "web": [ + "F18" + ], + "macos": [ + "F18" + ], + "ios": [ + "F18" + ], + "gtk": [ + "F18" + ], + "windows": [ + "F18" + ], + "glfw": [ + "F18" + ] + }, + "values": { + "macos": [ + 79 + ], + "ios": [ + 109 + ], + "gtk": [ + 65487 + ], + "windows": [ + 129 + ], + "fuchsia": [ + 77309870189 + ], + "glfw": [ + 307 + ] + } + }, + "F19": { + "name": "F19", + "value": 4294969363, + "names": { + "web": [ + "F19" + ], + "macos": [ + "F19" + ], + "ios": [ + "F19" + ], + "gtk": [ + "F19" + ], + "windows": [ + "F19" + ], + "glfw": [ + "F19" + ] + }, + "values": { + "macos": [ + 80 + ], + "ios": [ + 110 + ], + "gtk": [ + 65488 + ], + "windows": [ + 130 + ], + "fuchsia": [ + 77309870190 + ], + "glfw": [ + 308 + ] + } + }, + "F20": { + "name": "F20", + "value": 4294969364, + "names": { + "web": [ + "F20" + ], + "macos": [ + "F20" + ], + "ios": [ + "F20" + ], + "gtk": [ + "F20" + ], + "windows": [ + "F20" + ], + "glfw": [ + "F20" + ] + }, + "values": { + "macos": [ + 90 + ], + "ios": [ + 111 + ], + "gtk": [ + 65489 + ], + "windows": [ + 131 + ], + "fuchsia": [ + 77309870191 + ], + "glfw": [ + 309 + ] + } + }, + "F21": { + "name": "F21", + "value": 4294969365, + "names": { + "web": [ + "F21" + ], + "gtk": [ + "F21" + ], + "windows": [ + "F21" + ], + "glfw": [ + "F21" + ] + }, + "values": { + "gtk": [ + 65490 + ], + "windows": [ + 132 + ], + "fuchsia": [ + 77309870192 + ], + "glfw": [ + 310 + ] + } + }, + "F22": { + "name": "F22", + "value": 4294969366, + "names": { + "web": [ + "F22" + ], + "gtk": [ + "F22" + ], + "windows": [ + "F22" + ], + "glfw": [ + "F22" + ] + }, + "values": { + "gtk": [ + 65491 + ], + "windows": [ + 133 + ], + "fuchsia": [ + 77309870193 + ], + "glfw": [ + 311 + ] + } + }, + "F23": { + "name": "F23", + "value": 4294969367, + "names": { + "web": [ + "F23" + ], + "gtk": [ + "F23" + ], + "windows": [ + "F23" + ], + "glfw": [ + "F23" + ] + }, + "values": { + "gtk": [ + 65492 + ], + "windows": [ + 134 + ], + "fuchsia": [ + 77309870194 + ], + "glfw": [ + 312 + ] + } + }, + "F24": { + "name": "F24", + "value": 4294969368, + "names": { + "web": [ + "F24" + ], + "gtk": [ + "F24" + ], + "windows": [ + "F24" + ] + }, + "values": { + "gtk": [ + 65493 + ], + "windows": [ + 135 + ], + "fuchsia": [ + 77309870195 + ] + } + }, + "Soft1": { + "name": "Soft1", + "value": 4294969601, + "names": { + "web": [ + "Soft1" + ] + } + }, + "Soft2": { + "name": "Soft2", + "value": 4294969602, + "names": { + "web": [ + "Soft2" + ] + } + }, + "Soft3": { + "name": "Soft3", + "value": 4294969603, + "names": { + "web": [ + "Soft3" + ] + } + }, + "Soft4": { + "name": "Soft4", + "value": 4294969604, + "names": { + "web": [ + "Soft4" + ] + } + }, + "Soft5": { + "name": "Soft5", + "value": 4294969605, + "names": { + "web": [ + "Soft5" + ] + } + }, + "Soft6": { + "name": "Soft6", + "value": 4294969606, + "names": { + "web": [ + "Soft6" + ] + } + }, + "Soft7": { + "name": "Soft7", + "value": 4294969607, + "names": { + "web": [ + "Soft7" + ] + } + }, + "Soft8": { + "name": "Soft8", + "value": 4294969608, + "names": { + "web": [ + "Soft8" + ] + } + }, + "Close": { + "name": "Close", + "value": 4294969857, + "names": { + "web": [ + "Close" + ], + "gtk": [ + "Close" + ], + "android": [ + "MEDIA_CLOSE" + ] + }, + "values": { + "gtk": [ + 269025110 + ], + "android": [ + 128 + ], + "fuchsia": [ + 77310198275 + ] + } + }, + "MailForward": { + "name": "MailForward", + "value": 4294969858, + "names": { + "web": [ + "MailForward" + ], + "gtk": [ + "MailForward" + ] + }, + "values": { + "gtk": [ + 269025168 + ], + "fuchsia": [ + 77310198411 + ] + } + }, + "MailReply": { + "name": "MailReply", + "value": 4294969859, + "names": { + "web": [ + "MailReply" + ], + "gtk": [ + "Reply" + ] + }, + "values": { + "gtk": [ + 269025138 + ], + "fuchsia": [ + 77310198409 + ] + } + }, + "MailSend": { + "name": "MailSend", + "value": 4294969860, + "names": { + "web": [ + "MailSend" + ], + "gtk": [ + "Send" + ] + }, + "values": { + "gtk": [ + 269025147 + ], + "fuchsia": [ + 77310198412 + ] + } + }, + "MediaPlayPause": { + "name": "MediaPlayPause", + "value": 4294969861, + "names": { + "web": [ + "MediaPlayPause" + ], + "windows": [ + "MEDIA_PLAY_PAUSE" + ], + "android": [ + "MEDIA_PLAY_PAUSE" + ] + }, + "values": { + "windows": [ + 179 + ], + "android": [ + 85 + ], + "fuchsia": [ + 77310197965 + ] + } + }, + "MediaStop": { + "name": "MediaStop", + "value": 4294969863, + "names": { + "web": [ + "MediaStop" + ], + "gtk": [ + "AudioStop" + ], + "windows": [ + "MEDIA_STOP" + ], + "android": [ + "MEDIA_STOP" + ] + }, + "values": { + "gtk": [ + 269025045 + ], + "windows": [ + 178 + ], + "android": [ + 86 + ], + "fuchsia": [ + 77310197943 + ] + } + }, + "MediaTrackNext": { + "name": "MediaTrackNext", + "value": 4294969864, + "names": { + "web": [ + "MediaTrackNext" + ], + "gtk": [ + "AudioNext" + ], + "android": [ + "MEDIA_NEXT" + ] + }, + "values": { + "gtk": [ + 269025047 + ], + "android": [ + 87 + ], + "fuchsia": [ + 77310197941 + ] + } + }, + "MediaTrackPrevious": { + "name": "MediaTrackPrevious", + "value": 4294969865, + "names": { + "web": [ + "MediaTrackPrevious" + ], + "gtk": [ + "AudioPrev" + ], + "android": [ + "MEDIA_PREVIOUS" + ] + }, + "values": { + "gtk": [ + 269025046 + ], + "android": [ + 88 + ], + "fuchsia": [ + 77310197942 + ] + } + }, + "New": { + "name": "New", + "value": 4294969866, + "names": { + "web": [ + "New" + ], + "gtk": [ + "New" + ] + }, + "values": { + "gtk": [ + 269025128 + ], + "fuchsia": [ + 77310198273 + ] + } + }, + "Open": { + "name": "Open", + "value": 4294969867, + "names": { + "web": [ + "Open" + ], + "gtk": [ + "Open" + ] + }, + "values": { + "gtk": [ + 269025131 + ], + "fuchsia": [ + 77309870196 + ] + } + }, + "Print": { + "name": "Print", + "value": 4294969868, + "names": { + "web": [ + "Print" + ], + "gtk": [ + "Print" + ], + "windows": [ + "PRINT" + ] + }, + "values": { + "gtk": [ + 65377 + ], + "windows": [ + 42 + ], + "fuchsia": [ + 77310198280 + ] + } + }, + "Save": { + "name": "Save", + "value": 4294969869, + "names": { + "web": [ + "Save" + ], + "gtk": [ + "Save" + ] + }, + "values": { + "gtk": [ + 269025143 + ], + "fuchsia": [ + 77310198279 + ] + } + }, + "SpellCheck": { + "name": "SpellCheck", + "value": 4294969870, + "names": { + "web": [ + "SpellCheck" + ], + "gtk": [ + "Spell" + ] + }, + "values": { + "gtk": [ + 269025148 + ], + "fuchsia": [ + 77310198187 + ] + } + }, + "AudioVolumeDown": { + "name": "AudioVolumeDown", + "value": 4294969871, + "names": { + "web": [ + "AudioVolumeDown" + ], + "macos": [ + "AudioVolumeDown" + ], + "ios": [ + "AudioVolumeDown" + ], + "gtk": [ + "AudioLowerVolume" + ], + "windows": [ + "VOLUME_DOWN" + ], + "android": [ + "VOLUME_DOWN" + ] + }, + "values": { + "macos": [ + 73 + ], + "ios": [ + 129 + ], + "gtk": [ + 269025041 + ], + "windows": [ + 174 + ], + "android": [ + 25 + ], + "fuchsia": [ + 77309870209 + ] + } + }, + "AudioVolumeUp": { + "name": "AudioVolumeUp", + "value": 4294969872, + "names": { + "web": [ + "AudioVolumeUp" + ], + "macos": [ + "AudioVolumeUp" + ], + "ios": [ + "AudioVolumeUp" + ], + "gtk": [ + "AudioRaiseVolume" + ], + "windows": [ + "VOLUME_UP" + ], + "android": [ + "VOLUME_UP" + ] + }, + "values": { + "macos": [ + 72 + ], + "ios": [ + 128 + ], + "gtk": [ + 269025043 + ], + "windows": [ + 175 + ], + "android": [ + 24 + ], + "fuchsia": [ + 77309870208 + ] + } + }, + "AudioVolumeMute": { + "name": "AudioVolumeMute", + "value": 4294969873, + "names": { + "web": [ + "AudioVolumeMute" + ], + "macos": [ + "AudioVolumeMute" + ], + "ios": [ + "AudioVolumeMute" + ], + "gtk": [ + "AudioMute" + ], + "windows": [ + "VOLUME_MUTE" + ], + "android": [ + "VOLUME_MUTE" + ] + }, + "values": { + "macos": [ + 74 + ], + "ios": [ + 127 + ], + "gtk": [ + 269025042 + ], + "windows": [ + 173 + ], + "android": [ + 164 + ], + "fuchsia": [ + 77309870207 + ] + } + }, + "LaunchApplication2": { + "name": "LaunchApplication2", + "value": 4294970113, + "names": { + "web": [ + "LaunchApplication2" + ] + } + }, + "LaunchCalendar": { + "name": "LaunchCalendar", + "value": 4294970114, + "names": { + "web": [ + "LaunchCalendar" + ], + "gtk": [ + "Calendar" + ], + "android": [ + "CALENDAR" + ] + }, + "values": { + "gtk": [ + 269025056 + ], + "android": [ + 208 + ], + "fuchsia": [ + 77310198158 + ] + } + }, + "LaunchMail": { + "name": "LaunchMail", + "value": 4294970115, + "names": { + "web": [ + "LaunchMail" + ], + "gtk": [ + "Mail" + ], + "windows": [ + "LAUNCH_MAIL" + ], + "android": [ + "ENVELOPE" + ] + }, + "values": { + "gtk": [ + 269025049 + ], + "windows": [ + 180 + ], + "android": [ + 65 + ], + "fuchsia": [ + 77310198154 + ] + } + }, + "LaunchMediaPlayer": { + "name": "LaunchMediaPlayer", + "value": 4294970116, + "names": { + "web": [ + "LaunchMediaPlayer" + ] + } + }, + "LaunchMusicPlayer": { + "name": "LaunchMusicPlayer", + "value": 4294970117, + "names": { + "web": [ + "LaunchMusicPlayer" + ], + "android": [ + "MUSIC" + ] + }, + "values": { + "android": [ + 209 + ] + } + }, + "LaunchApplication1": { + "name": "LaunchApplication1", + "value": 4294970118, + "names": { + "web": [ + "LaunchApplication1" + ] + } + }, + "LaunchScreenSaver": { + "name": "LaunchScreenSaver", + "value": 4294970119, + "names": { + "web": [ + "LaunchScreenSaver" + ], + "gtk": [ + "ScreenSaver" + ] + }, + "values": { + "gtk": [ + 269025069 + ], + "fuchsia": [ + 77310198193 + ] + } + }, + "LaunchSpreadsheet": { + "name": "LaunchSpreadsheet", + "value": 4294970120, + "names": { + "web": [ + "LaunchSpreadsheet" + ] + }, + "values": { + "fuchsia": [ + 77310198150 + ] + } + }, + "LaunchWebBrowser": { + "name": "LaunchWebBrowser", + "value": 4294970121, + "names": { + "web": [ + "LaunchWebBrowser" + ], + "android": [ + "EXPLORER" + ] + }, + "values": { + "android": [ + 64 + ] + } + }, + "LaunchWebCam": { + "name": "LaunchWebCam", + "value": 4294970122, + "names": { + "web": [ + "LaunchWebCam" + ] + } + }, + "LaunchWordProcessor": { + "name": "LaunchWordProcessor", + "value": 4294970123, + "names": { + "web": [ + "LaunchWordProcessor" + ] + }, + "values": { + "fuchsia": [ + 77310198148 + ] + } + }, + "LaunchContacts": { + "name": "LaunchContacts", + "value": 4294970124, + "names": { + "web": [ + "LaunchContacts" + ], + "android": [ + "CONTACTS" + ] + }, + "values": { + "android": [ + 207 + ], + "fuchsia": [ + 77310198157 + ] + } + }, + "LaunchPhone": { + "name": "LaunchPhone", + "value": 4294970125, + "names": { + "web": [ + "LaunchPhone" + ], + "gtk": [ + "Phone" + ] + }, + "values": { + "gtk": [ + 269025134 + ], + "fuchsia": [ + 77310197900 + ] + } + }, + "LaunchAssistant": { + "name": "LaunchAssistant", + "value": 4294970126, + "names": { + "web": [ + "LaunchAssistant" + ], + "android": [ + "ASSIST" + ] + }, + "values": { + "android": [ + 219 + ], + "fuchsia": [ + 77310198219 + ] + } + }, + "LaunchControlPanel": { + "name": "LaunchControlPanel", + "value": 4294970127, + "names": { + "web": [ + "LaunchControlPanel" + ] + }, + "values": { + "fuchsia": [ + 77310198175 + ] + } + }, + "BrowserBack": { + "name": "BrowserBack", + "value": 4294970369, + "names": { + "web": [ + "BrowserBack" + ], + "gtk": [ + "Back" + ], + "windows": [ + "BROWSER_BACK" + ] + }, + "values": { + "gtk": [ + 269025062 + ], + "windows": [ + 166 + ], + "fuchsia": [ + 77310198308 + ] + } + }, + "BrowserFavorites": { + "name": "BrowserFavorites", + "value": 4294970370, + "names": { + "web": [ + "BrowserFavorites" + ], + "gtk": [ + "Favorites" + ], + "windows": [ + "BROWSER_FAVORITES" + ], + "android": [ + "BOOKMARK" + ] + }, + "values": { + "gtk": [ + 269025072 + ], + "windows": [ + 171 + ], + "android": [ + 174 + ], + "fuchsia": [ + 77310198314 + ] + } + }, + "BrowserForward": { + "name": "BrowserForward", + "value": 4294970371, + "names": { + "web": [ + "BrowserForward" + ], + "gtk": [ + "Forward" + ], + "windows": [ + "BROWSER_FORWARD" + ], + "android": [ + "FORWARD" + ] + }, + "values": { + "gtk": [ + 269025063 + ], + "windows": [ + 167 + ], + "android": [ + 125 + ], + "fuchsia": [ + 77310198309 + ] + } + }, + "BrowserHome": { + "name": "BrowserHome", + "value": 4294970372, + "names": { + "web": [ + "BrowserHome" + ], + "gtk": [ + "HomePage" + ], + "windows": [ + "BROWSER_HOME" + ] + }, + "values": { + "gtk": [ + 269025048 + ], + "windows": [ + 172 + ], + "fuchsia": [ + 77310198307 + ] + } + }, + "BrowserRefresh": { + "name": "BrowserRefresh", + "value": 4294970373, + "names": { + "web": [ + "BrowserRefresh" + ], + "gtk": [ + "Refresh" + ], + "windows": [ + "BROWSER_REFRESH" + ] + }, + "values": { + "gtk": [ + 269025065 + ], + "windows": [ + 168 + ], + "fuchsia": [ + 77310198311 + ] + } + }, + "BrowserSearch": { + "name": "BrowserSearch", + "value": 4294970374, + "names": { + "web": [ + "BrowserSearch" + ], + "gtk": [ + "Search" + ], + "windows": [ + "BROWSER_SEARCH" + ], + "android": [ + "SEARCH" + ] + }, + "values": { + "gtk": [ + 269025051 + ], + "windows": [ + 170 + ], + "android": [ + 84 + ], + "fuchsia": [ + 77310198305 + ] + } + }, + "BrowserStop": { + "name": "BrowserStop", + "value": 4294970375, + "names": { + "web": [ + "BrowserStop" + ], + "gtk": [ + "Stop" + ], + "windows": [ + "BROWSER_STOP" + ] + }, + "values": { + "gtk": [ + 269025064 + ], + "windows": [ + 169 + ], + "fuchsia": [ + 77310198310 + ] + } + }, + "AudioBalanceLeft": { + "name": "AudioBalanceLeft", + "value": 4294970625, + "names": { + "web": [ + "AudioBalanceLeft" + ] + } + }, + "AudioBalanceRight": { + "name": "AudioBalanceRight", + "value": 4294970626, + "names": { + "web": [ + "AudioBalanceRight" + ] + } + }, + "AudioBassBoostDown": { + "name": "AudioBassBoostDown", + "value": 4294970627, + "names": { + "web": [ + "AudioBassBoostDown" + ] + } + }, + "AudioBassBoostUp": { + "name": "AudioBassBoostUp", + "value": 4294970628, + "names": { + "web": [ + "AudioBassBoostUp" + ] + } + }, + "AudioFaderFront": { + "name": "AudioFaderFront", + "value": 4294970629, + "names": { + "web": [ + "AudioFaderFront" + ] + } + }, + "AudioFaderRear": { + "name": "AudioFaderRear", + "value": 4294970630, + "names": { + "web": [ + "AudioFaderRear" + ] + } + }, + "AudioSurroundModeNext": { + "name": "AudioSurroundModeNext", + "value": 4294970631, + "names": { + "web": [ + "AudioSurroundModeNext" + ] + } + }, + "AVRInput": { + "name": "AVRInput", + "value": 4294970632, + "names": { + "web": [ + "AVRInput" + ], + "android": [ + "AVR_INPUT" + ] + }, + "values": { + "android": [ + 182 + ] + } + }, + "AVRPower": { + "name": "AVRPower", + "value": 4294970633, + "names": { + "web": [ + "AVRPower" + ], + "android": [ + "AVR_POWER" + ] + }, + "values": { + "android": [ + 181 + ] + } + }, + "ChannelDown": { + "name": "ChannelDown", + "value": 4294970634, + "names": { + "web": [ + "ChannelDown" + ], + "android": [ + "CHANNEL_DOWN" + ] + }, + "values": { + "android": [ + 167 + ], + "fuchsia": [ + 77310197917 + ] + } + }, + "ChannelUp": { + "name": "ChannelUp", + "value": 4294970635, + "names": { + "web": [ + "ChannelUp" + ], + "android": [ + "CHANNEL_UP" + ] + }, + "values": { + "android": [ + 166 + ], + "fuchsia": [ + 77310197916 + ] + } + }, + "ColorF0Red": { + "name": "ColorF0Red", + "value": 4294970636, + "names": { + "web": [ + "ColorF0Red" + ], + "android": [ + "PROG_RED" + ] + }, + "values": { + "android": [ + 183 + ] + } + }, + "ColorF1Green": { + "name": "ColorF1Green", + "value": 4294970637, + "names": { + "web": [ + "ColorF1Green" + ], + "android": [ + "PROG_GREEN" + ] + }, + "values": { + "android": [ + 184 + ] + } + }, + "ColorF2Yellow": { + "name": "ColorF2Yellow", + "value": 4294970638, + "names": { + "web": [ + "ColorF2Yellow" + ], + "android": [ + "PROG_YELLOW" + ] + }, + "values": { + "android": [ + 185 + ] + } + }, + "ColorF3Blue": { + "name": "ColorF3Blue", + "value": 4294970639, + "names": { + "web": [ + "ColorF3Blue" + ], + "android": [ + "PROG_BLUE" + ] + }, + "values": { + "android": [ + 186 + ] + } + }, + "ColorF4Grey": { + "name": "ColorF4Grey", + "value": 4294970640, + "names": { + "web": [ + "ColorF4Grey" + ] + } + }, + "ColorF5Brown": { + "name": "ColorF5Brown", + "value": 4294970641, + "names": { + "web": [ + "ColorF5Brown" + ] + } + }, + "ClosedCaptionToggle": { + "name": "ClosedCaptionToggle", + "value": 4294970642, + "names": { + "web": [ + "ClosedCaptionToggle" + ], + "android": [ + "CAPTIONS" + ] + }, + "values": { + "android": [ + 175 + ], + "fuchsia": [ + 77310197857 + ] + } + }, + "Dimmer": { + "name": "Dimmer", + "value": 4294970643, + "names": { + "web": [ + "Dimmer" + ] + } + }, + "DisplaySwap": { + "name": "DisplaySwap", + "value": 4294970644, + "names": { + "web": [ + "DisplaySwap" + ] + } + }, + "Exit": { + "name": "Exit", + "value": 4294970645, + "names": { + "web": [ + "Exit" + ] + }, + "values": { + "fuchsia": [ + 77310197908 + ] + } + }, + "FavoriteClear0": { + "name": "FavoriteClear0", + "value": 4294970646, + "names": { + "web": [ + "FavoriteClear0" + ] + } + }, + "FavoriteClear1": { + "name": "FavoriteClear1", + "value": 4294970647, + "names": { + "web": [ + "FavoriteClear1" + ] + } + }, + "FavoriteClear2": { + "name": "FavoriteClear2", + "value": 4294970648, + "names": { + "web": [ + "FavoriteClear2" + ] + } + }, + "FavoriteClear3": { + "name": "FavoriteClear3", + "value": 4294970649, + "names": { + "web": [ + "FavoriteClear3" + ] + } + }, + "FavoriteRecall0": { + "name": "FavoriteRecall0", + "value": 4294970650, + "names": { + "web": [ + "FavoriteRecall0" + ] + } + }, + "FavoriteRecall1": { + "name": "FavoriteRecall1", + "value": 4294970651, + "names": { + "web": [ + "FavoriteRecall1" + ] + } + }, + "FavoriteRecall2": { + "name": "FavoriteRecall2", + "value": 4294970652, + "names": { + "web": [ + "FavoriteRecall2" + ] + } + }, + "FavoriteRecall3": { + "name": "FavoriteRecall3", + "value": 4294970653, + "names": { + "web": [ + "FavoriteRecall3" + ] + } + }, + "FavoriteStore0": { + "name": "FavoriteStore0", + "value": 4294970654, + "names": { + "web": [ + "FavoriteStore0" + ] + } + }, + "FavoriteStore1": { + "name": "FavoriteStore1", + "value": 4294970655, + "names": { + "web": [ + "FavoriteStore1" + ] + } + }, + "FavoriteStore2": { + "name": "FavoriteStore2", + "value": 4294970656, + "names": { + "web": [ + "FavoriteStore2" + ] + } + }, + "FavoriteStore3": { + "name": "FavoriteStore3", + "value": 4294970657, + "names": { + "web": [ + "FavoriteStore3" + ] + } + }, + "Guide": { + "name": "Guide", + "value": 4294970658, + "names": { + "web": [ + "Guide" + ], + "android": [ + "GUIDE" + ] + }, + "values": { + "android": [ + 172 + ] + } + }, + "GuideNextDay": { + "name": "GuideNextDay", + "value": 4294970659, + "names": { + "web": [ + "GuideNextDay" + ] + } + }, + "GuidePreviousDay": { + "name": "GuidePreviousDay", + "value": 4294970660, + "names": { + "web": [ + "GuidePreviousDay" + ] + } + }, + "Info": { + "name": "Info", + "value": 4294970661, + "names": { + "web": [ + "Info" + ], + "android": [ + "INFO" + ] + }, + "values": { + "android": [ + 165 + ], + "fuchsia": [ + 77310197856 + ] + } + }, + "InstantReplay": { + "name": "InstantReplay", + "value": 4294970662, + "names": { + "web": [ + "InstantReplay" + ] + } + }, + "Link": { + "name": "Link", + "value": 4294970663, + "names": { + "web": [ + "Link" + ] + } + }, + "ListProgram": { + "name": "ListProgram", + "value": 4294970664, + "names": { + "web": [ + "ListProgram" + ] + } + }, + "LiveContent": { + "name": "LiveContent", + "value": 4294970665, + "names": { + "web": [ + "LiveContent" + ] + } + }, + "Lock": { + "name": "Lock", + "value": 4294970666, + "names": { + "web": [ + "Lock" + ] + } + }, + "MediaApps": { + "name": "MediaApps", + "value": 4294970667, + "names": { + "web": [ + "MediaApps" + ] + } + }, + "MediaFastForward": { + "name": "MediaFastForward", + "value": 4294970668, + "names": { + "web": [ + "MediaFastForward" + ], + "gtk": [ + "AudioForward" + ], + "android": [ + "MEDIA_FAST_FORWARD" + ] + }, + "values": { + "gtk": [ + 269025175 + ], + "android": [ + 90 + ], + "fuchsia": [ + 77310197939 + ] + } + }, + "MediaLast": { + "name": "MediaLast", + "value": 4294970669, + "names": { + "web": [ + "MediaLast" + ], + "android": [ + "LAST_CHANNEL" + ] + }, + "values": { + "android": [ + 229 + ], + "fuchsia": [ + 77310197891 + ] + } + }, + "MediaPause": { + "name": "MediaPause", + "value": 4294970670, + "names": { + "web": [ + "MediaPause" + ], + "gtk": [ + "AudioPause" + ], + "android": [ + "MEDIA_PAUSE" + ] + }, + "values": { + "gtk": [ + 269025073 + ], + "android": [ + 127 + ], + "fuchsia": [ + 77310197937 + ] + } + }, + "MediaPlay": { + "name": "MediaPlay", + "value": 4294970671, + "names": { + "web": [ + "MediaPlay" + ], + "gtk": [ + "3270_Play", + "AudioPlay" + ], + "android": [ + "MEDIA_PLAY" + ] + }, + "values": { + "gtk": [ + 64790, + 269025044 + ], + "android": [ + 126 + ], + "fuchsia": [ + 77310197936 + ] + } + }, + "MediaRecord": { + "name": "MediaRecord", + "value": 4294970672, + "names": { + "web": [ + "MediaRecord" + ], + "gtk": [ + "AudioRecord" + ], + "android": [ + "MEDIA_RECORD" + ] + }, + "values": { + "gtk": [ + 269025052 + ], + "android": [ + 130 + ], + "fuchsia": [ + 77310197938 + ] + } + }, + "MediaRewind": { + "name": "MediaRewind", + "value": 4294970673, + "names": { + "web": [ + "MediaRewind" + ], + "gtk": [ + "AudioRewind" + ], + "android": [ + "MEDIA_REWIND" + ] + }, + "values": { + "gtk": [ + 269025086 + ], + "android": [ + 89 + ], + "fuchsia": [ + 77310197940 + ] + } + }, + "MediaSkip": { + "name": "MediaSkip", + "value": 4294970674, + "names": { + "web": [ + "MediaSkip" + ] + } + }, + "NextFavoriteChannel": { + "name": "NextFavoriteChannel", + "value": 4294970675, + "names": { + "web": [ + "NextFavoriteChannel" + ] + } + }, + "NextUserProfile": { + "name": "NextUserProfile", + "value": 4294970676, + "names": { + "web": [ + "NextUserProfile" + ] + } + }, + "OnDemand": { + "name": "OnDemand", + "value": 4294970677, + "names": { + "web": [ + "OnDemand" + ] + } + }, + "PInPDown": { + "name": "PInPDown", + "value": 4294970678, + "names": { + "web": [ + "PinPDown" + ] + } + }, + "PInPMove": { + "name": "PInPMove", + "value": 4294970679, + "names": { + "web": [ + "PinPMove" + ] + } + }, + "PInPToggle": { + "name": "PInPToggle", + "value": 4294970680, + "names": { + "web": [ + "PinPToggle" + ] + } + }, + "PInPUp": { + "name": "PInPUp", + "value": 4294970681, + "names": { + "web": [ + "PinPUp" + ] + } + }, + "PlaySpeedDown": { + "name": "PlaySpeedDown", + "value": 4294970682, + "names": { + "web": [ + "PlaySpeedDown" + ] + } + }, + "PlaySpeedReset": { + "name": "PlaySpeedReset", + "value": 4294970683, + "names": { + "web": [ + "PlaySpeedReset" + ] + } + }, + "PlaySpeedUp": { + "name": "PlaySpeedUp", + "value": 4294970684, + "names": { + "web": [ + "PlaySpeedUp" + ] + } + }, + "RandomToggle": { + "name": "RandomToggle", + "value": 4294970685, + "names": { + "web": [ + "RandomToggle" + ] + } + }, + "RcLowBattery": { + "name": "RcLowBattery", + "value": 4294970686, + "names": { + "web": [ + "RcLowBattery" + ] + } + }, + "RecordSpeedNext": { + "name": "RecordSpeedNext", + "value": 4294970687, + "names": { + "web": [ + "RecordSpeedNext" + ] + } + }, + "RfBypass": { + "name": "RfBypass", + "value": 4294970688, + "names": { + "web": [ + "RfBypass" + ] + } + }, + "ScanChannelsToggle": { + "name": "ScanChannelsToggle", + "value": 4294970689, + "names": { + "web": [ + "ScanChannelsToggle" + ] + } + }, + "ScreenModeNext": { + "name": "ScreenModeNext", + "value": 4294970690, + "names": { + "web": [ + "ScreenModeNext" + ] + } + }, + "Settings": { + "name": "Settings", + "value": 4294970691, + "names": { + "web": [ + "Settings" + ], + "android": [ + "SETTINGS" + ] + }, + "values": { + "android": [ + 176 + ] + } + }, + "SplitScreenToggle": { + "name": "SplitScreenToggle", + "value": 4294970692, + "names": { + "web": [ + "SplitScreenToggle" + ] + } + }, + "STBInput": { + "name": "STBInput", + "value": 4294970693, + "names": { + "web": [ + "STBInput" + ], + "android": [ + "STB_INPUT" + ] + }, + "values": { + "android": [ + 180 + ] + } + }, + "STBPower": { + "name": "STBPower", + "value": 4294970694, + "names": { + "web": [ + "STBPower" + ], + "android": [ + "STB_POWER" + ] + }, + "values": { + "android": [ + 179 + ] + } + }, + "Subtitle": { + "name": "Subtitle", + "value": 4294970695, + "names": { + "web": [ + "Subtitle" + ] + } + }, + "Teletext": { + "name": "Teletext", + "value": 4294970696, + "names": { + "web": [ + "Teletext" + ], + "android": [ + "TV_TELETEXT" + ] + }, + "values": { + "android": [ + 233 + ] + } + }, + "TV": { + "name": "TV", + "value": 4294970697, + "names": { + "web": [ + "TV" + ], + "android": [ + "TV" + ] + }, + "values": { + "android": [ + 170 + ] + } + }, + "TVInput": { + "name": "TVInput", + "value": 4294970698, + "names": { + "web": [ + "TVInput" + ], + "android": [ + "TV_INPUT" + ] + }, + "values": { + "android": [ + 178 + ] + } + }, + "TVPower": { + "name": "TVPower", + "value": 4294970699, + "names": { + "web": [ + "TVPower" + ], + "android": [ + "TV_POWER" + ] + }, + "values": { + "android": [ + 177 + ] + } + }, + "VideoModeNext": { + "name": "VideoModeNext", + "value": 4294970700, + "names": { + "web": [ + "VideoModeNext" + ] + } + }, + "Wink": { + "name": "Wink", + "value": 4294970701, + "names": { + "web": [ + "Wink" + ] + } + }, + "ZoomToggle": { + "name": "ZoomToggle", + "value": 4294970702, + "names": { + "web": [ + "ZoomToggle" + ], + "android": [ + "TV_ZOOM_MODE" + ] + }, + "values": { + "android": [ + 255 + ], + "fuchsia": [ + 77310198322 + ] + } + }, + "DVR": { + "name": "DVR", + "value": 4294970703, + "names": { + "web": [ + "DVR" + ], + "android": [ + "DVR" + ] + }, + "values": { + "android": [ + 173 + ] + } + }, + "MediaAudioTrack": { + "name": "MediaAudioTrack", + "value": 4294970704, + "names": { + "web": [ + "MediaAudioTrack" + ], + "android": [ + "MEDIA_AUDIO_TRACK" + ] + }, + "values": { + "android": [ + 222 + ] + } + }, + "MediaSkipBackward": { + "name": "MediaSkipBackward", + "value": 4294970705, + "names": { + "web": [ + "MediaSkipBackward" + ], + "android": [ + "MEDIA_SKIP_BACKWARD" + ] + }, + "values": { + "android": [ + 273 + ] + } + }, + "MediaSkipForward": { + "name": "MediaSkipForward", + "value": 4294970706, + "names": { + "web": [ + "MediaSkipForward" + ], + "android": [ + "MEDIA_SKIP_FORWARD" + ] + }, + "values": { + "android": [ + 272 + ] + } + }, + "MediaStepBackward": { + "name": "MediaStepBackward", + "value": 4294970707, + "names": { + "web": [ + "MediaStepBackward" + ], + "android": [ + "MEDIA_STEP_BACKWARD" + ] + }, + "values": { + "android": [ + 275 + ] + } + }, + "MediaStepForward": { + "name": "MediaStepForward", + "value": 4294970708, + "names": { + "web": [ + "MediaStepForward" + ], + "android": [ + "MEDIA_STEP_FORWARD" + ] + }, + "values": { + "android": [ + 274 + ] + } + }, + "MediaTopMenu": { + "name": "MediaTopMenu", + "value": 4294970709, + "names": { + "web": [ + "MediaTopMenu" + ], + "android": [ + "MEDIA_TOP_MENU" + ] + }, + "values": { + "android": [ + 226 + ] + } + }, + "NavigateIn": { + "name": "NavigateIn", + "value": 4294970710, + "names": { + "web": [ + "NavigateIn" + ], + "android": [ + "NAVIGATE_IN" + ] + }, + "values": { + "android": [ + 262 + ] + } + }, + "NavigateNext": { + "name": "NavigateNext", + "value": 4294970711, + "names": { + "web": [ + "NavigateNext" + ], + "android": [ + "NAVIGATE_NEXT" + ] + }, + "values": { + "android": [ + 261 + ] + } + }, + "NavigateOut": { + "name": "NavigateOut", + "value": 4294970712, + "names": { + "web": [ + "NavigateOut" + ], + "android": [ + "NAVIGATE_OUT" + ] + }, + "values": { + "android": [ + 263 + ] + } + }, + "NavigatePrevious": { + "name": "NavigatePrevious", + "value": 4294970713, + "names": { + "web": [ + "NavigatePrevious" + ], + "android": [ + "NAVIGATE_PREVIOUS" + ] + }, + "values": { + "android": [ + 260 + ] + } + }, + "Pairing": { + "name": "Pairing", + "value": 4294970714, + "names": { + "web": [ + "Pairing" + ], + "android": [ + "PAIRING" + ] + }, + "values": { + "android": [ + 225 + ] + } + }, + "MediaClose": { + "name": "MediaClose", + "value": 4294970715, + "names": { + "web": [ + "MediaClose" + ] + } + }, + "AudioBassBoostToggle": { + "name": "AudioBassBoostToggle", + "value": 4294970882, + "names": { + "web": [ + "AudioBassBoostToggle" + ] + } + }, + "AudioTrebleDown": { + "name": "AudioTrebleDown", + "value": 4294970884, + "names": { + "web": [ + "AudioTrebleDown" + ] + } + }, + "AudioTrebleUp": { + "name": "AudioTrebleUp", + "value": 4294970885, + "names": { + "web": [ + "AudioTrebleUp" + ] + } + }, + "MicrophoneToggle": { + "name": "MicrophoneToggle", + "value": 4294970886, + "names": { + "web": [ + "MicrophoneToggle" + ] + } + }, + "MicrophoneVolumeDown": { + "name": "MicrophoneVolumeDown", + "value": 4294970887, + "names": { + "web": [ + "MicrophoneVolumeDown" + ] + } + }, + "MicrophoneVolumeUp": { + "name": "MicrophoneVolumeUp", + "value": 4294970888, + "names": { + "web": [ + "MicrophoneVolumeUp" + ] + } + }, + "MicrophoneVolumeMute": { + "name": "MicrophoneVolumeMute", + "value": 4294970889, + "names": { + "web": [ + "MicrophoneVolumeMute" + ], + "android": [ + "MUTE" + ] + }, + "values": { + "android": [ + 91 + ] + } + }, + "SpeechCorrectionList": { + "name": "SpeechCorrectionList", + "value": 4294971137, + "names": { + "web": [ + "SpeechCorrectionList" + ] + } + }, + "SpeechInputToggle": { + "name": "SpeechInputToggle", + "value": 4294971138, + "names": { + "web": [ + "SpeechInputToggle" + ] + }, + "values": { + "fuchsia": [ + 77310197967 + ] + } + }, + "AppSwitch": { + "name": "AppSwitch", + "value": 4294971393, + "names": { + "web": [ + "AppSwitch" + ], + "android": [ + "APP_SWITCH" + ] + }, + "values": { + "android": [ + 187 + ] + } + }, + "Call": { + "name": "Call", + "value": 4294971394, + "names": { + "web": [ + "Call" + ], + "android": [ + "CALL" + ] + }, + "values": { + "android": [ + 5 + ] + } + }, + "CameraFocus": { + "name": "CameraFocus", + "value": 4294971395, + "names": { + "web": [ + "CameraFocus" + ], + "android": [ + "FOCUS" + ] + }, + "values": { + "android": [ + 80 + ] + } + }, + "EndCall": { + "name": "EndCall", + "value": 4294971396, + "names": { + "web": [ + "EndCall" + ], + "android": [ + "ENDCALL" + ] + }, + "values": { + "android": [ + 6 + ] + } + }, + "GoBack": { + "name": "GoBack", + "value": 4294971397, + "names": { + "web": [ + "GoBack" + ], + "android": [ + "BACK" + ] + }, + "values": { + "android": [ + 4 + ] + } + }, + "GoHome": { + "name": "GoHome", + "value": 4294971398, + "names": { + "web": [ + "GoHome" + ], + "android": [ + "HOME" + ] + }, + "values": { + "android": [ + 3 + ] + } + }, + "HeadsetHook": { + "name": "HeadsetHook", + "value": 4294971399, + "names": { + "web": [ + "HeadsetHook" + ], + "android": [ + "HEADSETHOOK" + ] + }, + "values": { + "android": [ + 79 + ] + } + }, + "LastNumberRedial": { + "name": "LastNumberRedial", + "value": 4294971400, + "names": { + "web": [ + "LastNumberRedial" + ] + } + }, + "Notification": { + "name": "Notification", + "value": 4294971401, + "names": { + "web": [ + "Notification" + ], + "android": [ + "NOTIFICATION" + ] + }, + "values": { + "android": [ + 83 + ] + } + }, + "MannerMode": { + "name": "MannerMode", + "value": 4294971402, + "names": { + "web": [ + "MannerMode" + ], + "android": [ + "MANNER_MODE" + ] + }, + "values": { + "android": [ + 205 + ] + } + }, + "VoiceDial": { + "name": "VoiceDial", + "value": 4294971403, + "names": { + "web": [ + "VoiceDial" + ] + } + }, + "TV3DMode": { + "name": "TV3DMode", + "value": 4294971649, + "names": { + "web": [ + "TV3DMode" + ], + "android": [ + "3D_MODE" + ] + }, + "values": { + "android": [ + 206 + ] + } + }, + "TVAntennaCable": { + "name": "TVAntennaCable", + "value": 4294971650, + "names": { + "web": [ + "TVAntennaCable" + ], + "android": [ + "TV_ANTENNA_CABLE" + ] + }, + "values": { + "android": [ + 242 + ] + } + }, + "TVAudioDescription": { + "name": "TVAudioDescription", + "value": 4294971651, + "names": { + "web": [ + "TVAudioDescription" + ], + "android": [ + "TV_AUDIO_DESCRIPTION" + ] + }, + "values": { + "android": [ + 252 + ] + } + }, + "TVAudioDescriptionMixDown": { + "name": "TVAudioDescriptionMixDown", + "value": 4294971652, + "names": { + "web": [ + "TVAudioDescriptionMixDown" + ], + "android": [ + "TV_AUDIO_DESCRIPTION_MIX_DOWN" + ] + }, + "values": { + "android": [ + 254 + ] + } + }, + "TVAudioDescriptionMixUp": { + "name": "TVAudioDescriptionMixUp", + "value": 4294971653, + "names": { + "web": [ + "TVAudioDescriptionMixUp" + ], + "android": [ + "TV_AUDIO_DESCRIPTION_MIX_UP" + ] + }, + "values": { + "android": [ + 253 + ] + } + }, + "TVContentsMenu": { + "name": "TVContentsMenu", + "value": 4294971654, + "names": { + "web": [ + "TVContentsMenu" + ], + "android": [ + "TV_CONTENTS_MENU" + ] + }, + "values": { + "android": [ + 256 + ] + } + }, + "TVDataService": { + "name": "TVDataService", + "value": 4294971655, + "names": { + "web": [ + "TVDataService" + ], + "android": [ + "TV_DATA_SERVICE" + ] + }, + "values": { + "android": [ + 230 + ] + } + }, + "TVInputComponent1": { + "name": "TVInputComponent1", + "value": 4294971656, + "names": { + "web": [ + "TVInputComponent1" + ], + "android": [ + "TV_INPUT_COMPONENT_1" + ] + }, + "values": { + "android": [ + 249 + ] + } + }, + "TVInputComponent2": { + "name": "TVInputComponent2", + "value": 4294971657, + "names": { + "web": [ + "TVInputComponent2" + ], + "android": [ + "TV_INPUT_COMPONENT_2" + ] + }, + "values": { + "android": [ + 250 + ] + } + }, + "TVInputComposite1": { + "name": "TVInputComposite1", + "value": 4294971658, + "names": { + "web": [ + "TVInputComposite1" + ], + "android": [ + "TV_INPUT_COMPOSITE_1" + ] + }, + "values": { + "android": [ + 247 + ] + } + }, + "TVInputComposite2": { + "name": "TVInputComposite2", + "value": 4294971659, + "names": { + "web": [ + "TVInputComposite2" + ], + "android": [ + "TV_INPUT_COMPOSITE_2" + ] + }, + "values": { + "android": [ + 248 + ] + } + }, + "TVInputHDMI1": { + "name": "TVInputHDMI1", + "value": 4294971660, + "names": { + "web": [ + "TVInputHDMI1" + ], + "android": [ + "TV_INPUT_HDMI_1" + ] + }, + "values": { + "android": [ + 243 + ] + } + }, + "TVInputHDMI2": { + "name": "TVInputHDMI2", + "value": 4294971661, + "names": { + "web": [ + "TVInputHDMI2" + ], + "android": [ + "TV_INPUT_HDMI_2" + ] + }, + "values": { + "android": [ + 244 + ] + } + }, + "TVInputHDMI3": { + "name": "TVInputHDMI3", + "value": 4294971662, + "names": { + "web": [ + "TVInputHDMI3" + ], + "android": [ + "TV_INPUT_HDMI_3" + ] + }, + "values": { + "android": [ + 245 + ] + } + }, + "TVInputHDMI4": { + "name": "TVInputHDMI4", + "value": 4294971663, + "names": { + "web": [ + "TVInputHDMI4" + ], + "android": [ + "TV_INPUT_HDMI_4" + ] + }, + "values": { + "android": [ + 246 + ] + } + }, + "TVInputVGA1": { + "name": "TVInputVGA1", + "value": 4294971664, + "names": { + "web": [ + "TVInputVGA1" + ], + "android": [ + "TV_INPUT_VGA_1" + ] + }, + "values": { + "android": [ + 251 + ] + } + }, + "TVMediaContext": { + "name": "TVMediaContext", + "value": 4294971665, + "names": { + "web": [ + "TVMediaContext" + ] + } + }, + "TVNetwork": { + "name": "TVNetwork", + "value": 4294971666, + "names": { + "web": [ + "TVNetwork" + ], + "android": [ + "TV_NETWORK" + ] + }, + "values": { + "android": [ + 241 + ] + } + }, + "TVNumberEntry": { + "name": "TVNumberEntry", + "value": 4294971667, + "names": { + "web": [ + "TVNumberEntry" + ], + "android": [ + "TV_NUMBER_ENTRY" + ] + }, + "values": { + "android": [ + 234 + ] + } + }, + "TVRadioService": { + "name": "TVRadioService", + "value": 4294971668, + "names": { + "web": [ + "TVRadioService" + ], + "android": [ + "TV_RADIO_SERVICE" + ] + }, + "values": { + "android": [ + 232 + ] + } + }, + "TVSatellite": { + "name": "TVSatellite", + "value": 4294971669, + "names": { + "web": [ + "TVSatellite" + ], + "android": [ + "TV_SATELLITE" + ] + }, + "values": { + "android": [ + 237 + ] + } + }, + "TVSatelliteBS": { + "name": "TVSatelliteBS", + "value": 4294971670, + "names": { + "web": [ + "TVSatelliteBS" + ], + "android": [ + "TV_SATELLITE_BS" + ] + }, + "values": { + "android": [ + 238 + ] + } + }, + "TVSatelliteCS": { + "name": "TVSatelliteCS", + "value": 4294971671, + "names": { + "web": [ + "TVSatelliteCS" + ], + "android": [ + "TV_SATELLITE_CS" + ] + }, + "values": { + "android": [ + 239 + ] + } + }, + "TVSatelliteToggle": { + "name": "TVSatelliteToggle", + "value": 4294971672, + "names": { + "web": [ + "TVSatelliteToggle" + ], + "android": [ + "TV_SATELLITE_SERVICE" + ] + }, + "values": { + "android": [ + 240 + ] + } + }, + "TVTerrestrialAnalog": { + "name": "TVTerrestrialAnalog", + "value": 4294971673, + "names": { + "web": [ + "TVTerrestrialAnalog" + ], + "android": [ + "TV_TERRESTRIAL_ANALOG" + ] + }, + "values": { + "android": [ + 235 + ] + } + }, + "TVTerrestrialDigital": { + "name": "TVTerrestrialDigital", + "value": 4294971674, + "names": { + "web": [ + "TVTerrestrialDigital" + ], + "android": [ + "TV_TERRESTRIAL_DIGITAL" + ] + }, + "values": { + "android": [ + 236 + ] + } + }, + "TVTimer": { + "name": "TVTimer", + "value": 4294971675, + "names": { + "web": [ + "TVTimer" + ], + "android": [ + "TV_TIMER_PROGRAMMING" + ] + }, + "values": { + "android": [ + 258 + ] + } + }, + "Key11": { + "name": "Key11", + "value": 4294971905, + "names": { + "web": [ + "Key11" + ] + } + }, + "Key12": { + "name": "Key12", + "value": 4294971906, + "names": { + "web": [ + "Key12" + ] + } + }, + "Suspend": { + "name": "Suspend", + "value": 8589934592, + "names": { + "gtk": [ + "Suspend" + ] + }, + "values": { + "gtk": [ + 269025191 + ], + "fuchsia": [ + 77309411348 + ] + } + }, + "Resume": { + "name": "Resume", + "value": 8589934593, + "values": { + "fuchsia": [ + 77309411349 + ] + } + }, + "Sleep": { + "name": "Sleep", + "value": 8589934594, + "names": { + "gtk": [ + "Sleep" + ], + "windows": [ + "SLEEP" + ], + "android": [ + "SLEEP" + ] + }, + "values": { + "gtk": [ + 269025071 + ], + "windows": [ + 95 + ], + "android": [ + 223 + ], + "fuchsia": [ + 77309476994 + ] + } + }, + "Abort": { + "name": "Abort", + "value": 8589934595, + "values": { + "fuchsia": [ + 77309870235 + ] + } + }, + "Lang1": { + "name": "Lang1", + "value": 8589934608, + "names": { + "macos": [ + "Lang1" + ], + "ios": [ + "Lang1" + ], + "windows": [ + "KANA, HANGEUL, HANGUL" + ] + }, + "values": { + "macos": [ + 104 + ], + "ios": [ + 144 + ], + "windows": [ + 21 + ], + "fuchsia": [ + 77309870224 + ] + } + }, + "Lang2": { + "name": "Lang2", + "value": 8589934609, + "names": { + "macos": [ + "Lang2" + ], + "ios": [ + "Lang2" + ] + }, + "values": { + "macos": [ + 102 + ], + "ios": [ + 145 + ], + "fuchsia": [ + 77309870225 + ] + } + }, + "Lang3": { + "name": "Lang3", + "value": 8589934610, + "names": { + "ios": [ + "Lang3" + ] + }, + "values": { + "ios": [ + 146 + ], + "fuchsia": [ + 77309870226 + ] + } + }, + "Lang4": { + "name": "Lang4", + "value": 8589934611, + "names": { + "ios": [ + "Lang4" + ] + }, + "values": { + "ios": [ + 147 + ], + "fuchsia": [ + 77309870227 + ] + } + }, + "Lang5": { + "name": "Lang5", + "value": 8589934612, + "names": { + "ios": [ + "Lang5" + ] + }, + "values": { + "ios": [ + 148 + ], + "fuchsia": [ + 77309870228 + ] + } + }, + "IntlBackslash": { + "name": "IntlBackslash", + "value": 8589934624, + "values": { + "fuchsia": [ + 77309870180 + ] + } + }, + "IntlRo": { + "name": "IntlRo", + "value": 8589934625, + "names": { + "macos": [ + "IntlRo" + ], + "ios": [ + "IntlRo" + ], + "android": [ + "RO" + ] + }, + "values": { + "macos": [ + 94 + ], + "ios": [ + 135 + ], + "android": [ + 217 + ], + "fuchsia": [ + 77309870215 + ] + } + }, + "IntlYen": { + "name": "IntlYen", + "value": 8589934626, + "names": { + "macos": [ + "IntlYen" + ], + "ios": [ + "IntlYen" + ], + "gtk": [ + "yen" + ], + "android": [ + "YEN" + ] + }, + "values": { + "macos": [ + 93 + ], + "ios": [ + 137 + ], + "gtk": [ + 165 + ], + "android": [ + 216 + ], + "fuchsia": [ + 77309870217 + ] + } + }, + "ControlLeft": { + "name": "ControlLeft", + "value": 8589934848, + "names": { + "macos": [ + "ControlLeft" + ], + "ios": [ + "ControlLeft" + ], + "gtk": [ + "Control_L" + ], + "windows": [ + "CONTROL", + "LCONTROL" + ], + "android": [ + "CTRL_LEFT" + ], + "glfw": [ + "LEFT_CONTROL" + ] + }, + "values": { + "macos": [ + 59 + ], + "ios": [ + 224 + ], + "gtk": [ + 65507 + ], + "windows": [ + 17, + 162 + ], + "android": [ + 113 + ], + "fuchsia": [ + 77309870304 + ], + "glfw": [ + 341 + ] + } + }, + "ControlRight": { + "name": "ControlRight", + "value": 8589934849, + "names": { + "macos": [ + "ControlRight" + ], + "ios": [ + "ControlRight" + ], + "gtk": [ + "Control_R" + ], + "windows": [ + "RCONTROL" + ], + "android": [ + "CTRL_RIGHT" + ], + "glfw": [ + "RIGHT_CONTROL" + ] + }, + "values": { + "macos": [ + 62 + ], + "ios": [ + 228 + ], + "gtk": [ + 65508 + ], + "windows": [ + 163 + ], + "android": [ + 114 + ], + "fuchsia": [ + 77309870308 + ], + "glfw": [ + 345 + ] + } + }, + "ShiftLeft": { + "name": "ShiftLeft", + "value": 8589934850, + "names": { + "macos": [ + "ShiftLeft" + ], + "ios": [ + "ShiftLeft" + ], + "gtk": [ + "Shift_L" + ], + "windows": [ + "SHIFT", + "LSHIFT" + ], + "android": [ + "SHIFT_LEFT" + ], + "glfw": [ + "LEFT_SHIFT" + ] + }, + "values": { + "macos": [ + 56 + ], + "ios": [ + 225 + ], + "gtk": [ + 65505 + ], + "windows": [ + 16, + 160 + ], + "android": [ + 59 + ], + "fuchsia": [ + 77309870305 + ], + "glfw": [ + 340 + ] + } + }, + "ShiftRight": { + "name": "ShiftRight", + "value": 8589934851, + "names": { + "macos": [ + "ShiftRight" + ], + "ios": [ + "ShiftRight" + ], + "gtk": [ + "Shift_R" + ], + "windows": [ + "RSHIFT" + ], + "android": [ + "SHIFT_RIGHT" + ], + "glfw": [ + "RIGHT_SHIFT" + ] + }, + "values": { + "macos": [ + 60 + ], + "ios": [ + 229 + ], + "gtk": [ + 65506 + ], + "windows": [ + 161 + ], + "android": [ + 60 + ], + "fuchsia": [ + 77309870309 + ], + "glfw": [ + 344 + ] + } + }, + "AltLeft": { + "name": "AltLeft", + "value": 8589934852, + "names": { + "macos": [ + "AltLeft" + ], + "ios": [ + "AltLeft" + ], + "gtk": [ + "Alt_L" + ], + "windows": [ + "LMENU" + ], + "android": [ + "ALT_LEFT" + ], + "glfw": [ + "LEFT_ALT" + ] + }, + "values": { + "macos": [ + 58 + ], + "ios": [ + 226 + ], + "gtk": [ + 65513 + ], + "windows": [ + 164 + ], + "android": [ + 57 + ], + "fuchsia": [ + 77309870306 + ], + "glfw": [ + 342 + ] + } + }, + "AltRight": { + "name": "AltRight", + "value": 8589934853, + "names": { + "macos": [ + "AltRight" + ], + "ios": [ + "AltRight" + ], + "gtk": [ + "Alt_R", + "ISO_Level3_Shift" + ], + "windows": [ + "RMENU" + ], + "android": [ + "ALT_RIGHT" + ], + "glfw": [ + "RIGHT_ALT" + ] + }, + "values": { + "macos": [ + 61 + ], + "ios": [ + 230 + ], + "gtk": [ + 65514, + 65027 + ], + "windows": [ + 165 + ], + "android": [ + 58 + ], + "fuchsia": [ + 77309870310 + ], + "glfw": [ + 346 + ] + } + }, + "MetaLeft": { + "name": "MetaLeft", + "value": 8589934854, + "names": { + "macos": [ + "MetaLeft" + ], + "ios": [ + "MetaLeft" + ], + "gtk": [ + "Meta_L" + ], + "windows": [ + "LWIN" + ], + "android": [ + "META_LEFT" + ], + "glfw": [ + "LEFT_SUPER" + ] + }, + "values": { + "macos": [ + 55 + ], + "ios": [ + 227 + ], + "gtk": [ + 65511 + ], + "windows": [ + 91 + ], + "android": [ + 117 + ], + "fuchsia": [ + 77309870307 + ], + "glfw": [ + 343 + ] + } + }, + "MetaRight": { + "name": "MetaRight", + "value": 8589934855, + "names": { + "macos": [ + "MetaRight" + ], + "ios": [ + "MetaRight" + ], + "gtk": [ + "Meta_R" + ], + "windows": [ + "RWIN" + ], + "android": [ + "META_RIGHT" + ], + "glfw": [ + "RIGHT_SUPER" + ] + }, + "values": { + "macos": [ + 54 + ], + "ios": [ + 231 + ], + "gtk": [ + 65512 + ], + "windows": [ + 92 + ], + "android": [ + 118 + ], + "fuchsia": [ + 77309870311 + ], + "glfw": [ + 347 + ] + } + }, + "Control": { + "name": "Control", + "value": 8589935088 + }, + "Shift": { + "name": "Shift", + "value": 8589935090 + }, + "Alt": { + "name": "Alt", + "value": 8589935092 + }, + "Meta": { + "name": "Meta", + "value": 8589935094 + }, + "NumpadEnter": { + "name": "NumpadEnter", + "value": 8589935117, + "names": { + "macos": [ + "NumpadEnter" + ], + "ios": [ + "NumpadEnter" + ], + "gtk": [ + "KP_Enter" + ], + "android": [ + "NUMPAD_ENTER" + ], + "glfw": [ + "KP_ENTER" + ] + }, + "values": { + "macos": [ + 76 + ], + "ios": [ + 88 + ], + "gtk": [ + 65421 + ], + "android": [ + 160 + ], + "fuchsia": [ + 77309870168 + ], + "glfw": [ + 335 + ] + } + }, + "NumpadParenLeft": { + "name": "NumpadParenLeft", + "value": 8589935144, + "names": { + "android": [ + "NUMPAD_LEFT_PAREN" + ] + }, + "values": { + "android": [ + 162 + ], + "fuchsia": [ + 77309870262 + ] + } + }, + "NumpadParenRight": { + "name": "NumpadParenRight", + "value": 8589935145, + "names": { + "android": [ + "NUMPAD_RIGHT_PAREN" + ] + }, + "values": { + "android": [ + 163 + ], + "fuchsia": [ + 77309870263 + ] + } + }, + "NumpadMultiply": { + "name": "NumpadMultiply", + "value": 8589935146, + "names": { + "macos": [ + "NumpadMultiply" + ], + "ios": [ + "NumpadMultiply" + ], + "gtk": [ + "KP_Multiply" + ], + "windows": [ + "MULTIPLY" + ], + "android": [ + "NUMPAD_MULTIPLY" + ], + "glfw": [ + "KP_MULTIPLY" + ] + }, + "values": { + "macos": [ + 67 + ], + "ios": [ + 85 + ], + "gtk": [ + 65450 + ], + "windows": [ + 106 + ], + "android": [ + 155 + ], + "fuchsia": [ + 77309870165 + ], + "glfw": [ + 332 + ] + } + }, + "NumpadAdd": { + "name": "NumpadAdd", + "value": 8589935147, + "names": { + "macos": [ + "NumpadAdd" + ], + "ios": [ + "NumpadAdd" + ], + "gtk": [ + "KP_Add" + ], + "windows": [ + "ADD" + ], + "android": [ + "NUMPAD_ADD" + ], + "glfw": [ + "KP_ADD" + ] + }, + "values": { + "macos": [ + 69 + ], + "ios": [ + 87 + ], + "gtk": [ + 65451 + ], + "windows": [ + 107 + ], + "android": [ + 157 + ], + "fuchsia": [ + 77309870167 + ], + "glfw": [ + 334 + ] + } + }, + "NumpadComma": { + "name": "NumpadComma", + "value": 8589935148, + "names": { + "macos": [ + "NumpadComma" + ], + "ios": [ + "NumpadComma" + ], + "windows": [ + "SEPARATOR" + ], + "android": [ + "NUMPAD_COMMA" + ] + }, + "values": { + "macos": [ + 95 + ], + "ios": [ + 133 + ], + "windows": [ + 108 + ], + "android": [ + 159 + ], + "fuchsia": [ + 77309870213 + ] + } + }, + "NumpadSubtract": { + "name": "NumpadSubtract", + "value": 8589935149, + "names": { + "macos": [ + "NumpadSubtract" + ], + "ios": [ + "NumpadSubtract" + ], + "gtk": [ + "KP_Subtract" + ], + "windows": [ + "SUBTRACT" + ], + "android": [ + "NUMPAD_SUBTRACT" + ] + }, + "values": { + "macos": [ + 78 + ], + "ios": [ + 86 + ], + "gtk": [ + 65453 + ], + "windows": [ + 109 + ], + "android": [ + 156 + ], + "fuchsia": [ + 77309870166 + ] + } + }, + "NumpadDecimal": { + "name": "NumpadDecimal", + "value": 8589935150, + "names": { + "macos": [ + "NumpadDecimal" + ], + "ios": [ + "NumpadDecimal" + ], + "gtk": [ + "KP_Delete" + ], + "windows": [ + "DECIMAL" + ], + "android": [ + "NUMPAD_DOT" + ], + "glfw": [ + "KP_DECIMAL" + ] + }, + "values": { + "macos": [ + 65 + ], + "ios": [ + 99 + ], + "gtk": [ + 65439 + ], + "windows": [ + 110 + ], + "android": [ + 158 + ], + "fuchsia": [ + 77309870179 + ], + "glfw": [ + 330 + ] + } + }, + "NumpadDivide": { + "name": "NumpadDivide", + "value": 8589935151, + "names": { + "macos": [ + "NumpadDivide" + ], + "ios": [ + "NumpadDivide" + ], + "gtk": [ + "KP_Divide" + ], + "windows": [ + "DIVIDE" + ], + "android": [ + "NUMPAD_DIVIDE" + ], + "glfw": [ + "KP_DIVIDE" + ] + }, + "values": { + "macos": [ + 75 + ], + "ios": [ + 84 + ], + "gtk": [ + 65455 + ], + "windows": [ + 111 + ], + "android": [ + 154 + ], + "fuchsia": [ + 77309870164 + ], + "glfw": [ + 331 + ] + } + }, + "Numpad0": { + "name": "Numpad0", + "value": 8589935152, + "names": { + "macos": [ + "Numpad0" + ], + "ios": [ + "Numpad0" + ], + "gtk": [ + "KP_Insert", + "KP_0" + ], + "windows": [ + "NUMPAD0" + ], + "android": [ + "NUMPAD_0" + ], + "glfw": [ + "KP_0" + ] + }, + "values": { + "macos": [ + 82 + ], + "ios": [ + 98 + ], + "gtk": [ + 65438, + 65456 + ], + "windows": [ + 96 + ], + "android": [ + 144 + ], + "fuchsia": [ + 77309870178 + ], + "glfw": [ + 320 + ] + } + }, + "Numpad1": { + "name": "Numpad1", + "value": 8589935153, + "names": { + "macos": [ + "Numpad1" + ], + "ios": [ + "Numpad1" + ], + "gtk": [ + "KP_End", + "KP_1" + ], + "windows": [ + "NUMPAD1" + ], + "android": [ + "NUMPAD_1" + ], + "glfw": [ + "KP_1" + ] + }, + "values": { + "macos": [ + 83 + ], + "ios": [ + 89 + ], + "gtk": [ + 65436, + 65457 + ], + "windows": [ + 97 + ], + "android": [ + 145 + ], + "fuchsia": [ + 77309870169 + ], + "glfw": [ + 321 + ] + } + }, + "Numpad2": { + "name": "Numpad2", + "value": 8589935154, + "names": { + "macos": [ + "Numpad2" + ], + "ios": [ + "Numpad2" + ], + "gtk": [ + "KP_Down", + "KP_2" + ], + "windows": [ + "NUMPAD2" + ], + "android": [ + "NUMPAD_2" + ], + "glfw": [ + "KP_2" + ] + }, + "values": { + "macos": [ + 84 + ], + "ios": [ + 90 + ], + "gtk": [ + 65433, + 65458 + ], + "windows": [ + 98 + ], + "android": [ + 146 + ], + "fuchsia": [ + 77309870170 + ], + "glfw": [ + 322 + ] + } + }, + "Numpad3": { + "name": "Numpad3", + "value": 8589935155, + "names": { + "macos": [ + "Numpad3" + ], + "ios": [ + "Numpad3" + ], + "gtk": [ + "KP_Page_Down", + "KP_3" + ], + "windows": [ + "NUMPAD3" + ], + "android": [ + "NUMPAD_3" + ], + "glfw": [ + "KP_3" + ] + }, + "values": { + "macos": [ + 85 + ], + "ios": [ + 91 + ], + "gtk": [ + 65435, + 65459 + ], + "windows": [ + 99 + ], + "android": [ + 147 + ], + "fuchsia": [ + 77309870171 + ], + "glfw": [ + 323 + ] + } + }, + "Numpad4": { + "name": "Numpad4", + "value": 8589935156, + "names": { + "macos": [ + "Numpad4" + ], + "ios": [ + "Numpad4" + ], + "gtk": [ + "KP_Left", + "KP_4" + ], + "windows": [ + "NUMPAD4" + ], + "android": [ + "NUMPAD_4" + ], + "glfw": [ + "KP_4" + ] + }, + "values": { + "macos": [ + 86 + ], + "ios": [ + 92 + ], + "gtk": [ + 65430, + 65460 + ], + "windows": [ + 100 + ], + "android": [ + 148 + ], + "fuchsia": [ + 77309870172 + ], + "glfw": [ + 324 + ] + } + }, + "Numpad5": { + "name": "Numpad5", + "value": 8589935157, + "names": { + "macos": [ + "Numpad5" + ], + "ios": [ + "Numpad5" + ], + "gtk": [ + "KP_5" + ], + "windows": [ + "NUMPAD5" + ], + "android": [ + "NUMPAD_5" + ], + "glfw": [ + "KP_5" + ] + }, + "values": { + "macos": [ + 87 + ], + "ios": [ + 93 + ], + "gtk": [ + 65461 + ], + "windows": [ + 101 + ], + "android": [ + 149 + ], + "fuchsia": [ + 77309870173 + ], + "glfw": [ + 325 + ] + } + }, + "Numpad6": { + "name": "Numpad6", + "value": 8589935158, + "names": { + "macos": [ + "Numpad6" + ], + "ios": [ + "Numpad6" + ], + "gtk": [ + "KP_Right", + "KP_6" + ], + "windows": [ + "NUMPAD6" + ], + "android": [ + "NUMPAD_6" + ], + "glfw": [ + "KP_6" + ] + }, + "values": { + "macos": [ + 88 + ], + "ios": [ + 94 + ], + "gtk": [ + 65432, + 65462 + ], + "windows": [ + 102 + ], + "android": [ + 150 + ], + "fuchsia": [ + 77309870174 + ], + "glfw": [ + 326 + ] + } + }, + "Numpad7": { + "name": "Numpad7", + "value": 8589935159, + "names": { + "macos": [ + "Numpad7" + ], + "ios": [ + "Numpad7" + ], + "gtk": [ + "KP_Home", + "KP_7" + ], + "windows": [ + "NUMPAD7" + ], + "android": [ + "NUMPAD_7" + ], + "glfw": [ + "KP_7" + ] + }, + "values": { + "macos": [ + 89 + ], + "ios": [ + 95 + ], + "gtk": [ + 65429, + 65463 + ], + "windows": [ + 103 + ], + "android": [ + 151 + ], + "fuchsia": [ + 77309870175 + ], + "glfw": [ + 327 + ] + } + }, + "Numpad8": { + "name": "Numpad8", + "value": 8589935160, + "names": { + "macos": [ + "Numpad8" + ], + "ios": [ + "Numpad8" + ], + "gtk": [ + "KP_Up", + "KP_8" + ], + "windows": [ + "NUMPAD8" + ], + "android": [ + "NUMPAD_8" + ], + "glfw": [ + "KP_8" + ] + }, + "values": { + "macos": [ + 91 + ], + "ios": [ + 96 + ], + "gtk": [ + 65431, + 65464 + ], + "windows": [ + 104 + ], + "android": [ + 152 + ], + "fuchsia": [ + 77309870176 + ], + "glfw": [ + 328 + ] + } + }, + "Numpad9": { + "name": "Numpad9", + "value": 8589935161, + "names": { + "macos": [ + "Numpad9" + ], + "ios": [ + "Numpad9" + ], + "gtk": [ + "KP_Page_Up", + "KP_9" + ], + "windows": [ + "NUMPAD9" + ], + "android": [ + "NUMPAD_9" + ], + "glfw": [ + "KP_9" + ] + }, + "values": { + "macos": [ + 92 + ], + "ios": [ + 97 + ], + "gtk": [ + 65434, + 65465 + ], + "windows": [ + 105 + ], + "android": [ + 153 + ], + "fuchsia": [ + 77309870177 + ], + "glfw": [ + 329 + ] + } + }, + "NumpadEqual": { + "name": "NumpadEqual", + "value": 8589935165, + "names": { + "macos": [ + "NumpadEqual" + ], + "ios": [ + "NumpadEqual" + ], + "gtk": [ + "KP_Equal" + ], + "windows": [ + "OEM_NEC_EQUAL" + ], + "android": [ + "NUMPAD_EQUALS" + ], + "glfw": [ + "KP_EQUAL" + ] + }, + "values": { + "macos": [ + 81 + ], + "ios": [ + 103 + ], + "gtk": [ + 65469 + ], + "windows": [ + 146 + ], + "android": [ + 161 + ], + "fuchsia": [ + 77309870183 + ], + "glfw": [ + 336 + ] + } + }, + "GameButton1": { + "name": "GameButton1", + "value": 8589935361, + "names": { + "android": [ + "BUTTON_1" + ] + }, + "values": { + "android": [ + 188 + ], + "fuchsia": [ + 77309804289 + ] + } + }, + "GameButton2": { + "name": "GameButton2", + "value": 8589935362, + "names": { + "android": [ + "BUTTON_2" + ] + }, + "values": { + "android": [ + 189 + ], + "fuchsia": [ + 77309804290 + ] + } + }, + "GameButton3": { + "name": "GameButton3", + "value": 8589935363, + "names": { + "android": [ + "BUTTON_3" + ] + }, + "values": { + "android": [ + 190 + ], + "fuchsia": [ + 77309804291 + ] + } + }, + "GameButton4": { + "name": "GameButton4", + "value": 8589935364, + "names": { + "android": [ + "BUTTON_4" + ] + }, + "values": { + "android": [ + 191 + ], + "fuchsia": [ + 77309804292 + ] + } + }, + "GameButton5": { + "name": "GameButton5", + "value": 8589935365, + "names": { + "android": [ + "BUTTON_5" + ] + }, + "values": { + "android": [ + 192 + ], + "fuchsia": [ + 77309804293 + ] + } + }, + "GameButton6": { + "name": "GameButton6", + "value": 8589935366, + "names": { + "android": [ + "BUTTON_6" + ] + }, + "values": { + "android": [ + 193 + ], + "fuchsia": [ + 77309804294 + ] + } + }, + "GameButton7": { + "name": "GameButton7", + "value": 8589935367, + "names": { + "android": [ + "BUTTON_7" + ] + }, + "values": { + "android": [ + 194 + ], + "fuchsia": [ + 77309804295 + ] + } + }, + "GameButton8": { + "name": "GameButton8", + "value": 8589935368, + "names": { + "windows": [ + "GAMEPAD_A" + ], + "android": [ + "BUTTON_8" + ] + }, + "values": { + "windows": [ + 195 + ], + "android": [ + 195 + ], + "fuchsia": [ + 77309804296 + ] + } + }, + "GameButton9": { + "name": "GameButton9", + "value": 8589935369, + "names": { + "windows": [ + "GAMEPAD_B" + ], + "android": [ + "BUTTON_9" + ] + }, + "values": { + "windows": [ + 196 + ], + "android": [ + 196 + ], + "fuchsia": [ + 77309804297 + ] + } + }, + "GameButton10": { + "name": "GameButton10", + "value": 8589935370, + "names": { + "windows": [ + "GAMEPAD_X" + ], + "android": [ + "BUTTON_10" + ] + }, + "values": { + "windows": [ + 197 + ], + "android": [ + 197 + ], + "fuchsia": [ + 77309804298 + ] + } + }, + "GameButton11": { + "name": "GameButton11", + "value": 8589935371, + "names": { + "windows": [ + "GAMEPAD_Y" + ], + "android": [ + "BUTTON_11" + ] + }, + "values": { + "windows": [ + 198 + ], + "android": [ + 198 + ], + "fuchsia": [ + 77309804299 + ] + } + }, + "GameButton12": { + "name": "GameButton12", + "value": 8589935372, + "names": { + "windows": [ + "GAMEPAD_RIGHT_SHOULDER" + ], + "android": [ + "BUTTON_12" + ] + }, + "values": { + "windows": [ + 199 + ], + "android": [ + 199 + ], + "fuchsia": [ + 77309804300 + ] + } + }, + "GameButton13": { + "name": "GameButton13", + "value": 8589935373, + "names": { + "windows": [ + "GAMEPAD_LEFT_SHOULDER" + ], + "android": [ + "BUTTON_13" + ] + }, + "values": { + "windows": [ + 200 + ], + "android": [ + 200 + ], + "fuchsia": [ + 77309804301 + ] + } + }, + "GameButton14": { + "name": "GameButton14", + "value": 8589935374, + "names": { + "windows": [ + "GAMEPAD_LEFT_TRIGGER" + ], + "android": [ + "BUTTON_14" + ] + }, + "values": { + "windows": [ + 201 + ], + "android": [ + 201 + ], + "fuchsia": [ + 77309804302 + ] + } + }, + "GameButton15": { + "name": "GameButton15", + "value": 8589935375, + "names": { + "windows": [ + "GAMEPAD_RIGHT_TRIGGER" + ], + "android": [ + "BUTTON_15" + ] + }, + "values": { + "windows": [ + 202 + ], + "android": [ + 202 + ], + "fuchsia": [ + 77309804303 + ] + } + }, + "GameButton16": { + "name": "GameButton16", + "value": 8589935376, + "names": { + "windows": [ + "GAMEPAD_DPAD_UP" + ], + "android": [ + "BUTTON_16" + ] + }, + "values": { + "windows": [ + 203 + ], + "android": [ + 203 + ], + "fuchsia": [ + 77309804304 + ] + } + }, + "GameButtonA": { + "name": "GameButtonA", + "value": 8589935377, + "names": { + "android": [ + "BUTTON_A" + ] + }, + "values": { + "android": [ + 96 + ], + "fuchsia": [ + 77309804305 + ] + } + }, + "GameButtonB": { + "name": "GameButtonB", + "value": 8589935378, + "names": { + "android": [ + "BUTTON_B" + ] + }, + "values": { + "android": [ + 97 + ], + "fuchsia": [ + 77309804306 + ] + } + }, + "GameButtonC": { + "name": "GameButtonC", + "value": 8589935379, + "names": { + "android": [ + "BUTTON_C" + ] + }, + "values": { + "android": [ + 98 + ], + "fuchsia": [ + 77309804307 + ] + } + }, + "GameButtonLeft1": { + "name": "GameButtonLeft1", + "value": 8589935380, + "names": { + "android": [ + "BUTTON_L1" + ] + }, + "values": { + "android": [ + 102 + ], + "fuchsia": [ + 77309804308 + ] + } + }, + "GameButtonLeft2": { + "name": "GameButtonLeft2", + "value": 8589935381, + "names": { + "android": [ + "BUTTON_L2" + ] + }, + "values": { + "android": [ + 104 + ], + "fuchsia": [ + 77309804309 + ] + } + }, + "GameButtonMode": { + "name": "GameButtonMode", + "value": 8589935382, + "names": { + "android": [ + "BUTTON_MODE" + ] + }, + "values": { + "android": [ + 110 + ], + "fuchsia": [ + 77309804310 + ] + } + }, + "GameButtonRight1": { + "name": "GameButtonRight1", + "value": 8589935383, + "names": { + "android": [ + "BUTTON_R1" + ] + }, + "values": { + "android": [ + 103 + ], + "fuchsia": [ + 77309804311 + ] + } + }, + "GameButtonRight2": { + "name": "GameButtonRight2", + "value": 8589935384, + "names": { + "android": [ + "BUTTON_R2" + ] + }, + "values": { + "android": [ + 105 + ], + "fuchsia": [ + 77309804312 + ] + } + }, + "GameButtonSelect": { + "name": "GameButtonSelect", + "value": 8589935385, + "names": { + "android": [ + "BUTTON_SELECT" + ] + }, + "values": { + "android": [ + 109 + ], + "fuchsia": [ + 77309804313 + ] + } + }, + "GameButtonStart": { + "name": "GameButtonStart", + "value": 8589935386, + "names": { + "android": [ + "BUTTON_START" + ] + }, + "values": { + "android": [ + 108 + ], + "fuchsia": [ + 77309804314 + ] + } + }, + "GameButtonThumbLeft": { + "name": "GameButtonThumbLeft", + "value": 8589935387, + "names": { + "android": [ + "BUTTON_THUMBL" + ] + }, + "values": { + "android": [ + 106 + ], + "fuchsia": [ + 77309804315 + ] + } + }, + "GameButtonThumbRight": { + "name": "GameButtonThumbRight", + "value": 8589935388, + "names": { + "android": [ + "BUTTON_THUMBR" + ] + }, + "values": { + "android": [ + 107 + ], + "fuchsia": [ + 77309804316 + ] + } + }, + "GameButtonX": { + "name": "GameButtonX", + "value": 8589935389, + "names": { + "android": [ + "BUTTON_X" + ] + }, + "values": { + "android": [ + 99 + ], + "fuchsia": [ + 77309804317 + ] + } + }, + "GameButtonY": { + "name": "GameButtonY", + "value": 8589935390, + "names": { + "android": [ + "BUTTON_Y" + ] + }, + "values": { + "android": [ + 100 + ], + "fuchsia": [ + 77309804318 + ] + } + }, + "GameButtonZ": { + "name": "GameButtonZ", + "value": 8589935391, + "names": { + "android": [ + "BUTTON_Z" + ] + }, + "values": { + "android": [ + 101 + ], + "fuchsia": [ + 77309804319 + ] + } + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/macos_key_code_map_cc.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/macos_key_code_map_cc.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..3d4a4782dab77751d02b0feae1f934c167869c5f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/macos_key_code_map_cc.tmpl @@ -0,0 +1,46 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import +#import +#include "./KeyCodeMap_Internal.h" + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by +// flutter/flutter:dev/tools/gen_keycodes/bin/gen_keycodes.dart and should not +// be edited directly. +// +// Edit the template +// flutter/flutter:dev/tools/gen_keycodes/data/keyboard_map_macos_cc.tmpl +// instead. +// +// See flutter/flutter:dev/tools/gen_keycodes/README.md for more information. + +namespace flutter { + +@@@MASK_CONSTANTS@@@ + +const NSDictionary* keyCodeToPhysicalKey = @{ +@@@MACOS_SCAN_CODE_MAP@@@ +}; + +const NSDictionary* keyCodeToLogicalKey = @{ +@@@MACOS_KEYCODE_LOGICAL_MAP@@@ +}; + +const NSDictionary* keyCodeToModifierFlag = @{ +@@@KEYCODE_TO_MODIFIER_FLAG_MAP@@@ +}; + +const NSDictionary* modifierFlagToKeyCode = @{ +@@@MODIFIER_FLAG_TO_KEYCODE_MAP@@@ +}; + +@@@SPECIAL_KEY_CONSTANTS@@@ + +const std::vector kLayoutGoals = { +@@@LAYOUT_GOALS@@@ +}; + +} // namespace flutter diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/macos_logical_to_physical.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/macos_logical_to_physical.json new file mode 100644 index 0000000000000000000000000000000000000000..e82db40260a8f4a79d1531727552373207aad02e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/macos_logical_to_physical.json @@ -0,0 +1,74 @@ + +{ + "Backspace": ["Backspace"], + "Tab": ["Tab"], + "Enter": ["Enter"], + "Escape": ["Escape"], + "CapsLock": ["CapsLock"], + "Fn": ["Fn"], + "NumLock": ["NumLock"], + "ArrowDown": ["ArrowDown"], + "ArrowLeft": ["ArrowLeft"], + "ArrowRight": ["ArrowRight"], + "ArrowUp": ["ArrowUp"], + "End": ["End"], + "Home": ["Home"], + "PageDown": ["PageDown"], + "PageUp": ["PageUp"], + "Insert": ["Insert"], + "Delete": ["Delete"], + "ContextMenu": ["ContextMenu"], + "F1": ["F1"], + "F2": ["F2"], + "F3": ["F3"], + "F4": ["F4"], + "F5": ["F5"], + "F6": ["F6"], + "F7": ["F7"], + "F8": ["F8"], + "F9": ["F9"], + "F10": ["F10"], + "F11": ["F11"], + "F12": ["F12"], + "F13": ["F13"], + "F14": ["F14"], + "F15": ["F15"], + "F16": ["F16"], + "F17": ["F17"], + "F18": ["F18"], + "F19": ["F19"], + "F20": ["F20"], + "NumpadEnter": ["NumpadEnter"], + "NumpadMultiply": ["NumpadMultiply"], + "NumpadAdd": ["NumpadAdd"], + "NumpadComma": ["NumpadComma"], + "NumpadSubtract": ["NumpadSubtract"], + "NumpadDecimal": ["NumpadDecimal"], + "NumpadDivide": ["NumpadDivide"], + "Numpad0": ["Numpad0"], + "Numpad1": ["Numpad1"], + "Numpad2": ["Numpad2"], + "Numpad3": ["Numpad3"], + "Numpad4": ["Numpad4"], + "Numpad5": ["Numpad5"], + "Numpad6": ["Numpad6"], + "Numpad7": ["Numpad7"], + "Numpad8": ["Numpad8"], + "Numpad9": ["Numpad9"], + "NumpadEqual": ["NumpadEqual"], + "AltLeft": ["AltLeft"], + "ControlLeft": ["ControlLeft"], + "MetaLeft": ["MetaLeft"], + "ShiftLeft": ["ShiftLeft"], + "AltRight": ["AltRight"], + "ControlRight": ["ControlRight"], + "MetaRight": ["MetaRight"], + "ShiftRight": ["ShiftRight"], + "Lang1": ["Lang1"], + "Lang2": ["Lang2"], + "IntlYen": ["IntlYen"], + "IntlRo": ["IntlRo"], + "AudioVolumeUp": ["AudioVolumeUp"], + "AudioVolumeDown": ["AudioVolumeDown"], + "AudioVolumeMute": ["AudioVolumeMute"] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/physical_key_data.g.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/physical_key_data.g.json new file mode 100644 index 0000000000000000000000000000000000000000..270c0545e22b84e743d0abffafd59134d9fce37d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/physical_key_data.g.json @@ -0,0 +1,3897 @@ +{ + "Hyper": { + "names": { + "name": "Hyper", + "chromium": "Hyper" + }, + "scanCodes": { + "usb": 16 + } + }, + "Super": { + "names": { + "name": "Super", + "chromium": "Super" + }, + "scanCodes": { + "usb": 17 + } + }, + "Fn": { + "names": { + "name": "Fn", + "chromium": "Fn" + }, + "scanCodes": { + "android": [ + 464 + ], + "usb": 18, + "macos": 63 + } + }, + "FnLock": { + "names": { + "name": "FnLock", + "chromium": "FnLock" + }, + "scanCodes": { + "usb": 19 + } + }, + "Suspend": { + "names": { + "name": "Suspend", + "chromium": "Suspend" + }, + "scanCodes": { + "android": [ + 205 + ], + "usb": 20 + } + }, + "Resume": { + "names": { + "name": "Resume", + "chromium": "Resume" + }, + "scanCodes": { + "usb": 21 + } + }, + "Turbo": { + "names": { + "name": "Turbo", + "chromium": "Turbo" + }, + "scanCodes": { + "usb": 22 + } + }, + "PrivacyScreenToggle": { + "names": { + "name": "PrivacyScreenToggle", + "chromium": "PrivacyScreenToggle" + }, + "scanCodes": { + "usb": 23, + "linux": 633, + "xkb": 641 + } + }, + "MicrophoneMuteToggle": { + "names": { + "name": "MicrophoneMuteToggle", + "chromium": "MicrophoneMuteToggle" + }, + "scanCodes": { + "usb": 24, + "linux": 248, + "xkb": 256 + } + }, + "Sleep": { + "names": { + "name": "Sleep", + "chromium": "Sleep" + }, + "scanCodes": { + "android": [ + 142 + ], + "usb": 65666, + "linux": 142, + "xkb": 150, + "windows": 57439 + } + }, + "WakeUp": { + "names": { + "name": "WakeUp", + "chromium": "WakeUp" + }, + "scanCodes": { + "android": [ + 143 + ], + "usb": 65667, + "linux": 143, + "xkb": 151, + "windows": 57443 + } + }, + "DisplayToggleIntExt": { + "names": { + "name": "DisplayToggleIntExt", + "chromium": "DisplayToggleIntExt" + }, + "scanCodes": { + "usb": 65717, + "linux": 227, + "xkb": 235 + } + }, + "GameButton1": { + "names": { + "name": "GameButton1", + "chromium": "GameButton1" + }, + "scanCodes": { + "android": [ + 256, + 288 + ], + "usb": 392961 + } + }, + "GameButton2": { + "names": { + "name": "GameButton2", + "chromium": "GameButton2" + }, + "scanCodes": { + "android": [ + 257, + 289 + ], + "usb": 392962 + } + }, + "GameButton3": { + "names": { + "name": "GameButton3", + "chromium": "GameButton3" + }, + "scanCodes": { + "android": [ + 258, + 290 + ], + "usb": 392963 + } + }, + "GameButton4": { + "names": { + "name": "GameButton4", + "chromium": "GameButton4" + }, + "scanCodes": { + "android": [ + 259, + 291 + ], + "usb": 392964 + } + }, + "GameButton5": { + "names": { + "name": "GameButton5", + "chromium": "GameButton5" + }, + "scanCodes": { + "android": [ + 260, + 292 + ], + "usb": 392965 + } + }, + "GameButton6": { + "names": { + "name": "GameButton6", + "chromium": "GameButton6" + }, + "scanCodes": { + "android": [ + 261, + 293 + ], + "usb": 392966 + } + }, + "GameButton7": { + "names": { + "name": "GameButton7", + "chromium": "GameButton7" + }, + "scanCodes": { + "android": [ + 262, + 294 + ], + "usb": 392967 + } + }, + "GameButton8": { + "names": { + "name": "GameButton8", + "chromium": "GameButton8" + }, + "scanCodes": { + "android": [ + 263, + 295 + ], + "usb": 392968 + } + }, + "GameButton9": { + "names": { + "name": "GameButton9", + "chromium": "GameButton9" + }, + "scanCodes": { + "android": [ + 264, + 296 + ], + "usb": 392969 + } + }, + "GameButton10": { + "names": { + "name": "GameButton10", + "chromium": "GameButton10" + }, + "scanCodes": { + "android": [ + 265, + 297 + ], + "usb": 392970 + } + }, + "GameButton11": { + "names": { + "name": "GameButton11", + "chromium": "GameButton11" + }, + "scanCodes": { + "android": [ + 266, + 298 + ], + "usb": 392971 + } + }, + "GameButton12": { + "names": { + "name": "GameButton12", + "chromium": "GameButton12" + }, + "scanCodes": { + "android": [ + 267, + 299 + ], + "usb": 392972 + } + }, + "GameButton13": { + "names": { + "name": "GameButton13", + "chromium": "GameButton13" + }, + "scanCodes": { + "android": [ + 268, + 300 + ], + "usb": 392973 + } + }, + "GameButton14": { + "names": { + "name": "GameButton14", + "chromium": "GameButton14" + }, + "scanCodes": { + "android": [ + 269, + 301 + ], + "usb": 392974 + } + }, + "GameButton15": { + "names": { + "name": "GameButton15", + "chromium": "GameButton15" + }, + "scanCodes": { + "android": [ + 270, + 302 + ], + "usb": 392975 + } + }, + "GameButton16": { + "names": { + "name": "GameButton16", + "chromium": "GameButton16" + }, + "scanCodes": { + "android": [ + 271, + 303 + ], + "usb": 392976 + } + }, + "GameButtonA": { + "names": { + "name": "GameButtonA", + "chromium": "GameButtonA" + }, + "scanCodes": { + "android": [ + 304 + ], + "usb": 392977 + } + }, + "GameButtonB": { + "names": { + "name": "GameButtonB", + "chromium": "GameButtonB" + }, + "scanCodes": { + "android": [ + 305 + ], + "usb": 392978 + } + }, + "GameButtonC": { + "names": { + "name": "GameButtonC", + "chromium": "GameButtonC" + }, + "scanCodes": { + "android": [ + 306 + ], + "usb": 392979 + } + }, + "GameButtonLeft1": { + "names": { + "name": "GameButtonLeft1", + "chromium": "GameButtonLeft1" + }, + "scanCodes": { + "android": [ + 310 + ], + "usb": 392980 + } + }, + "GameButtonLeft2": { + "names": { + "name": "GameButtonLeft2", + "chromium": "GameButtonLeft2" + }, + "scanCodes": { + "android": [ + 312 + ], + "usb": 392981 + } + }, + "GameButtonMode": { + "names": { + "name": "GameButtonMode", + "chromium": "GameButtonMode" + }, + "scanCodes": { + "android": [ + 316 + ], + "usb": 392982 + } + }, + "GameButtonRight1": { + "names": { + "name": "GameButtonRight1", + "chromium": "GameButtonRight1" + }, + "scanCodes": { + "android": [ + 311 + ], + "usb": 392983 + } + }, + "GameButtonRight2": { + "names": { + "name": "GameButtonRight2", + "chromium": "GameButtonRight2" + }, + "scanCodes": { + "android": [ + 313 + ], + "usb": 392984 + } + }, + "GameButtonSelect": { + "names": { + "name": "GameButtonSelect", + "chromium": "GameButtonSelect" + }, + "scanCodes": { + "android": [ + 314 + ], + "usb": 392985 + } + }, + "GameButtonStart": { + "names": { + "name": "GameButtonStart", + "chromium": "GameButtonStart" + }, + "scanCodes": { + "android": [ + 315 + ], + "usb": 392986 + } + }, + "GameButtonThumbLeft": { + "names": { + "name": "GameButtonThumbLeft", + "chromium": "GameButtonThumbLeft" + }, + "scanCodes": { + "android": [ + 317 + ], + "usb": 392987 + } + }, + "GameButtonThumbRight": { + "names": { + "name": "GameButtonThumbRight", + "chromium": "GameButtonThumbRight" + }, + "scanCodes": { + "android": [ + 318 + ], + "usb": 392988 + } + }, + "GameButtonX": { + "names": { + "name": "GameButtonX", + "chromium": "GameButtonX" + }, + "scanCodes": { + "android": [ + 307 + ], + "usb": 392989 + } + }, + "GameButtonY": { + "names": { + "name": "GameButtonY", + "chromium": "GameButtonY" + }, + "scanCodes": { + "android": [ + 308 + ], + "usb": 392990 + } + }, + "GameButtonZ": { + "names": { + "name": "GameButtonZ", + "chromium": "GameButtonZ" + }, + "scanCodes": { + "android": [ + 309 + ], + "usb": 392991 + } + }, + "UsbReserved": { + "names": { + "name": "UsbReserved" + }, + "scanCodes": { + "usb": 458752, + "ios": 0 + } + }, + "UsbErrorRollOver": { + "names": { + "name": "UsbErrorRollOver" + }, + "scanCodes": { + "usb": 458753, + "windows": 255, + "ios": 1 + } + }, + "UsbPostFail": { + "names": { + "name": "UsbPostFail" + }, + "scanCodes": { + "usb": 458754, + "windows": 252, + "ios": 2 + } + }, + "UsbErrorUndefined": { + "names": { + "name": "UsbErrorUndefined" + }, + "scanCodes": { + "usb": 458755, + "ios": 3 + } + }, + "KeyA": { + "names": { + "name": "KeyA", + "chromium": "KeyA" + }, + "scanCodes": { + "android": [ + 30 + ], + "usb": 458756, + "linux": 30, + "xkb": 38, + "windows": 30, + "macos": 0, + "ios": 4 + } + }, + "KeyB": { + "names": { + "name": "KeyB", + "chromium": "KeyB" + }, + "scanCodes": { + "android": [ + 48 + ], + "usb": 458757, + "linux": 48, + "xkb": 56, + "windows": 48, + "macos": 11, + "ios": 5 + } + }, + "KeyC": { + "names": { + "name": "KeyC", + "chromium": "KeyC" + }, + "scanCodes": { + "android": [ + 46 + ], + "usb": 458758, + "linux": 46, + "xkb": 54, + "windows": 46, + "macos": 8, + "ios": 6 + } + }, + "KeyD": { + "names": { + "name": "KeyD", + "chromium": "KeyD" + }, + "scanCodes": { + "android": [ + 32 + ], + "usb": 458759, + "linux": 32, + "xkb": 40, + "windows": 32, + "macos": 2, + "ios": 7 + } + }, + "KeyE": { + "names": { + "name": "KeyE", + "chromium": "KeyE" + }, + "scanCodes": { + "android": [ + 18 + ], + "usb": 458760, + "linux": 18, + "xkb": 26, + "windows": 18, + "macos": 14, + "ios": 8 + } + }, + "KeyF": { + "names": { + "name": "KeyF", + "chromium": "KeyF" + }, + "scanCodes": { + "android": [ + 33 + ], + "usb": 458761, + "linux": 33, + "xkb": 41, + "windows": 33, + "macos": 3, + "ios": 9 + } + }, + "KeyG": { + "names": { + "name": "KeyG", + "chromium": "KeyG" + }, + "scanCodes": { + "android": [ + 34 + ], + "usb": 458762, + "linux": 34, + "xkb": 42, + "windows": 34, + "macos": 5, + "ios": 10 + } + }, + "KeyH": { + "names": { + "name": "KeyH", + "chromium": "KeyH" + }, + "scanCodes": { + "android": [ + 35 + ], + "usb": 458763, + "linux": 35, + "xkb": 43, + "windows": 35, + "macos": 4, + "ios": 11 + } + }, + "KeyI": { + "names": { + "name": "KeyI", + "chromium": "KeyI" + }, + "scanCodes": { + "android": [ + 23 + ], + "usb": 458764, + "linux": 23, + "xkb": 31, + "windows": 23, + "macos": 34, + "ios": 12 + } + }, + "KeyJ": { + "names": { + "name": "KeyJ", + "chromium": "KeyJ" + }, + "scanCodes": { + "android": [ + 36 + ], + "usb": 458765, + "linux": 36, + "xkb": 44, + "windows": 36, + "macos": 38, + "ios": 13 + } + }, + "KeyK": { + "names": { + "name": "KeyK", + "chromium": "KeyK" + }, + "scanCodes": { + "android": [ + 37 + ], + "usb": 458766, + "linux": 37, + "xkb": 45, + "windows": 37, + "macos": 40, + "ios": 14 + } + }, + "KeyL": { + "names": { + "name": "KeyL", + "chromium": "KeyL" + }, + "scanCodes": { + "android": [ + 38 + ], + "usb": 458767, + "linux": 38, + "xkb": 46, + "windows": 38, + "macos": 37, + "ios": 15 + } + }, + "KeyM": { + "names": { + "name": "KeyM", + "chromium": "KeyM" + }, + "scanCodes": { + "android": [ + 50 + ], + "usb": 458768, + "linux": 50, + "xkb": 58, + "windows": 50, + "macos": 46, + "ios": 16 + } + }, + "KeyN": { + "names": { + "name": "KeyN", + "chromium": "KeyN" + }, + "scanCodes": { + "android": [ + 49 + ], + "usb": 458769, + "linux": 49, + "xkb": 57, + "windows": 49, + "macos": 45, + "ios": 17 + } + }, + "KeyO": { + "names": { + "name": "KeyO", + "chromium": "KeyO" + }, + "scanCodes": { + "android": [ + 24 + ], + "usb": 458770, + "linux": 24, + "xkb": 32, + "windows": 24, + "macos": 31, + "ios": 18 + } + }, + "KeyP": { + "names": { + "name": "KeyP", + "chromium": "KeyP" + }, + "scanCodes": { + "android": [ + 25 + ], + "usb": 458771, + "linux": 25, + "xkb": 33, + "windows": 25, + "macos": 35, + "ios": 19 + } + }, + "KeyQ": { + "names": { + "name": "KeyQ", + "chromium": "KeyQ" + }, + "scanCodes": { + "android": [ + 16 + ], + "usb": 458772, + "linux": 16, + "xkb": 24, + "windows": 16, + "macos": 12, + "ios": 20 + } + }, + "KeyR": { + "names": { + "name": "KeyR", + "chromium": "KeyR" + }, + "scanCodes": { + "android": [ + 19 + ], + "usb": 458773, + "linux": 19, + "xkb": 27, + "windows": 19, + "macos": 15, + "ios": 21 + } + }, + "KeyS": { + "names": { + "name": "KeyS", + "chromium": "KeyS" + }, + "scanCodes": { + "android": [ + 31 + ], + "usb": 458774, + "linux": 31, + "xkb": 39, + "windows": 31, + "macos": 1, + "ios": 22 + } + }, + "KeyT": { + "names": { + "name": "KeyT", + "chromium": "KeyT" + }, + "scanCodes": { + "android": [ + 20 + ], + "usb": 458775, + "linux": 20, + "xkb": 28, + "windows": 20, + "macos": 17, + "ios": 23 + } + }, + "KeyU": { + "names": { + "name": "KeyU", + "chromium": "KeyU" + }, + "scanCodes": { + "android": [ + 22 + ], + "usb": 458776, + "linux": 22, + "xkb": 30, + "windows": 22, + "macos": 32, + "ios": 24 + } + }, + "KeyV": { + "names": { + "name": "KeyV", + "chromium": "KeyV" + }, + "scanCodes": { + "android": [ + 47 + ], + "usb": 458777, + "linux": 47, + "xkb": 55, + "windows": 47, + "macos": 9, + "ios": 25 + } + }, + "KeyW": { + "names": { + "name": "KeyW", + "chromium": "KeyW" + }, + "scanCodes": { + "android": [ + 17 + ], + "usb": 458778, + "linux": 17, + "xkb": 25, + "windows": 17, + "macos": 13, + "ios": 26 + } + }, + "KeyX": { + "names": { + "name": "KeyX", + "chromium": "KeyX" + }, + "scanCodes": { + "android": [ + 45 + ], + "usb": 458779, + "linux": 45, + "xkb": 53, + "windows": 45, + "macos": 7, + "ios": 27 + } + }, + "KeyY": { + "names": { + "name": "KeyY", + "chromium": "KeyY" + }, + "scanCodes": { + "android": [ + 21 + ], + "usb": 458780, + "linux": 21, + "xkb": 29, + "windows": 21, + "macos": 16, + "ios": 28 + } + }, + "KeyZ": { + "names": { + "name": "KeyZ", + "chromium": "KeyZ" + }, + "scanCodes": { + "android": [ + 44 + ], + "usb": 458781, + "linux": 44, + "xkb": 52, + "windows": 44, + "macos": 6, + "ios": 29 + } + }, + "Digit1": { + "names": { + "name": "Digit1", + "chromium": "Digit1" + }, + "scanCodes": { + "android": [ + 2 + ], + "usb": 458782, + "linux": 2, + "xkb": 10, + "windows": 2, + "macos": 18, + "ios": 30 + } + }, + "Digit2": { + "names": { + "name": "Digit2", + "chromium": "Digit2" + }, + "scanCodes": { + "android": [ + 3 + ], + "usb": 458783, + "linux": 3, + "xkb": 11, + "windows": 3, + "macos": 19, + "ios": 31 + } + }, + "Digit3": { + "names": { + "name": "Digit3", + "chromium": "Digit3" + }, + "scanCodes": { + "android": [ + 4 + ], + "usb": 458784, + "linux": 4, + "xkb": 12, + "windows": 4, + "macos": 20, + "ios": 32 + } + }, + "Digit4": { + "names": { + "name": "Digit4", + "chromium": "Digit4" + }, + "scanCodes": { + "android": [ + 5 + ], + "usb": 458785, + "linux": 5, + "xkb": 13, + "windows": 5, + "macos": 21, + "ios": 33 + } + }, + "Digit5": { + "names": { + "name": "Digit5", + "chromium": "Digit5" + }, + "scanCodes": { + "android": [ + 6 + ], + "usb": 458786, + "linux": 6, + "xkb": 14, + "windows": 6, + "macos": 23, + "ios": 34 + } + }, + "Digit6": { + "names": { + "name": "Digit6", + "chromium": "Digit6" + }, + "scanCodes": { + "android": [ + 7 + ], + "usb": 458787, + "linux": 7, + "xkb": 15, + "windows": 7, + "macos": 22, + "ios": 35 + } + }, + "Digit7": { + "names": { + "name": "Digit7", + "chromium": "Digit7" + }, + "scanCodes": { + "android": [ + 8 + ], + "usb": 458788, + "linux": 8, + "xkb": 16, + "windows": 8, + "macos": 26, + "ios": 36 + } + }, + "Digit8": { + "names": { + "name": "Digit8", + "chromium": "Digit8" + }, + "scanCodes": { + "android": [ + 9 + ], + "usb": 458789, + "linux": 9, + "xkb": 17, + "windows": 9, + "macos": 28, + "ios": 37 + } + }, + "Digit9": { + "names": { + "name": "Digit9", + "chromium": "Digit9" + }, + "scanCodes": { + "android": [ + 10 + ], + "usb": 458790, + "linux": 10, + "xkb": 18, + "windows": 10, + "macos": 25, + "ios": 38 + } + }, + "Digit0": { + "names": { + "name": "Digit0", + "chromium": "Digit0" + }, + "scanCodes": { + "android": [ + 11 + ], + "usb": 458791, + "linux": 11, + "xkb": 19, + "windows": 11, + "macos": 29, + "ios": 39 + } + }, + "Enter": { + "names": { + "name": "Enter", + "chromium": "Enter" + }, + "scanCodes": { + "android": [ + 28 + ], + "usb": 458792, + "linux": 28, + "xkb": 36, + "windows": 28, + "macos": 36, + "ios": 40 + } + }, + "Escape": { + "names": { + "name": "Escape", + "chromium": "Escape" + }, + "otherWebCodes": [ + "Esc" + ], + "scanCodes": { + "android": [ + 1 + ], + "usb": 458793, + "linux": 1, + "xkb": 9, + "windows": 1, + "macos": 53, + "ios": 41 + } + }, + "Backspace": { + "names": { + "name": "Backspace", + "chromium": "Backspace" + }, + "scanCodes": { + "android": [ + 14 + ], + "usb": 458794, + "linux": 14, + "xkb": 22, + "windows": 14, + "macos": 51, + "ios": 42 + } + }, + "Tab": { + "names": { + "name": "Tab", + "chromium": "Tab" + }, + "scanCodes": { + "android": [ + 15 + ], + "usb": 458795, + "linux": 15, + "xkb": 23, + "windows": 15, + "macos": 48, + "ios": 43 + } + }, + "Space": { + "names": { + "name": "Space", + "chromium": "Space" + }, + "scanCodes": { + "android": [ + 57 + ], + "usb": 458796, + "linux": 57, + "xkb": 65, + "windows": 57, + "macos": 49, + "ios": 44 + } + }, + "Minus": { + "names": { + "name": "Minus", + "chromium": "Minus" + }, + "scanCodes": { + "android": [ + 12 + ], + "usb": 458797, + "linux": 12, + "xkb": 20, + "windows": 12, + "macos": 27, + "ios": 45 + } + }, + "Equal": { + "names": { + "name": "Equal", + "chromium": "Equal" + }, + "scanCodes": { + "android": [ + 13 + ], + "usb": 458798, + "linux": 13, + "xkb": 21, + "windows": 13, + "macos": 24, + "ios": 46 + } + }, + "BracketLeft": { + "names": { + "name": "BracketLeft", + "chromium": "BracketLeft" + }, + "scanCodes": { + "android": [ + 26 + ], + "usb": 458799, + "linux": 26, + "xkb": 34, + "windows": 26, + "macos": 33, + "ios": 47 + } + }, + "BracketRight": { + "names": { + "name": "BracketRight", + "chromium": "BracketRight" + }, + "scanCodes": { + "android": [ + 27 + ], + "usb": 458800, + "linux": 27, + "xkb": 35, + "windows": 27, + "macos": 30, + "ios": 48 + } + }, + "Backslash": { + "names": { + "name": "Backslash", + "chromium": "Backslash" + }, + "scanCodes": { + "android": [ + 43, + 86 + ], + "usb": 458801, + "linux": 43, + "xkb": 51, + "windows": 43, + "macos": 42, + "ios": 49 + } + }, + "Semicolon": { + "names": { + "name": "Semicolon", + "chromium": "Semicolon" + }, + "scanCodes": { + "android": [ + 39 + ], + "usb": 458803, + "linux": 39, + "xkb": 47, + "windows": 39, + "macos": 41, + "ios": 51 + } + }, + "Quote": { + "names": { + "name": "Quote", + "chromium": "Quote" + }, + "scanCodes": { + "android": [ + 40 + ], + "usb": 458804, + "linux": 40, + "xkb": 48, + "windows": 40, + "macos": 39, + "ios": 52 + } + }, + "Backquote": { + "names": { + "name": "Backquote", + "chromium": "Backquote" + }, + "scanCodes": { + "android": [ + 41 + ], + "usb": 458805, + "linux": 41, + "xkb": 49, + "windows": 41, + "macos": 50, + "ios": 53 + } + }, + "Comma": { + "names": { + "name": "Comma", + "chromium": "Comma" + }, + "scanCodes": { + "android": [ + 51 + ], + "usb": 458806, + "linux": 51, + "xkb": 59, + "windows": 51, + "macos": 43, + "ios": 54 + } + }, + "Period": { + "names": { + "name": "Period", + "chromium": "Period" + }, + "scanCodes": { + "android": [ + 52 + ], + "usb": 458807, + "linux": 52, + "xkb": 60, + "windows": 52, + "macos": 47, + "ios": 55 + } + }, + "Slash": { + "names": { + "name": "Slash", + "chromium": "Slash" + }, + "scanCodes": { + "android": [ + 53 + ], + "usb": 458808, + "linux": 53, + "xkb": 61, + "windows": 53, + "macos": 44, + "ios": 56 + } + }, + "CapsLock": { + "names": { + "name": "CapsLock", + "chromium": "CapsLock" + }, + "scanCodes": { + "android": [ + 58 + ], + "usb": 458809, + "linux": 58, + "xkb": 66, + "windows": 58, + "macos": 57, + "ios": 57 + } + }, + "F1": { + "names": { + "name": "F1", + "chromium": "F1" + }, + "scanCodes": { + "android": [ + 59 + ], + "usb": 458810, + "linux": 59, + "xkb": 67, + "windows": 59, + "macos": 122, + "ios": 58 + } + }, + "F2": { + "names": { + "name": "F2", + "chromium": "F2" + }, + "scanCodes": { + "android": [ + 60 + ], + "usb": 458811, + "linux": 60, + "xkb": 68, + "windows": 60, + "macos": 120, + "ios": 59 + } + }, + "F3": { + "names": { + "name": "F3", + "chromium": "F3" + }, + "scanCodes": { + "android": [ + 61 + ], + "usb": 458812, + "linux": 61, + "xkb": 69, + "windows": 61, + "macos": 99, + "ios": 60 + } + }, + "F4": { + "names": { + "name": "F4", + "chromium": "F4" + }, + "scanCodes": { + "android": [ + 62 + ], + "usb": 458813, + "linux": 62, + "xkb": 70, + "windows": 62, + "macos": 118, + "ios": 61 + } + }, + "F5": { + "names": { + "name": "F5", + "chromium": "F5" + }, + "scanCodes": { + "android": [ + 63 + ], + "usb": 458814, + "linux": 63, + "xkb": 71, + "windows": 63, + "macos": 96, + "ios": 62 + } + }, + "F6": { + "names": { + "name": "F6", + "chromium": "F6" + }, + "scanCodes": { + "android": [ + 64 + ], + "usb": 458815, + "linux": 64, + "xkb": 72, + "windows": 64, + "macos": 97, + "ios": 63 + } + }, + "F7": { + "names": { + "name": "F7", + "chromium": "F7" + }, + "scanCodes": { + "android": [ + 65 + ], + "usb": 458816, + "linux": 65, + "xkb": 73, + "windows": 65, + "macos": 98, + "ios": 64 + } + }, + "F8": { + "names": { + "name": "F8", + "chromium": "F8" + }, + "scanCodes": { + "android": [ + 66 + ], + "usb": 458817, + "linux": 66, + "xkb": 74, + "windows": 66, + "macos": 100, + "ios": 65 + } + }, + "F9": { + "names": { + "name": "F9", + "chromium": "F9" + }, + "scanCodes": { + "android": [ + 67 + ], + "usb": 458818, + "linux": 67, + "xkb": 75, + "windows": 67, + "macos": 101, + "ios": 66 + } + }, + "F10": { + "names": { + "name": "F10", + "chromium": "F10" + }, + "scanCodes": { + "android": [ + 68 + ], + "usb": 458819, + "linux": 68, + "xkb": 76, + "windows": 68, + "macos": 109, + "ios": 67 + } + }, + "F11": { + "names": { + "name": "F11", + "chromium": "F11" + }, + "scanCodes": { + "android": [ + 87 + ], + "usb": 458820, + "linux": 87, + "xkb": 95, + "windows": 87, + "macos": 103, + "ios": 68 + } + }, + "F12": { + "names": { + "name": "F12", + "chromium": "F12" + }, + "scanCodes": { + "android": [ + 88 + ], + "usb": 458821, + "linux": 88, + "xkb": 96, + "windows": 88, + "macos": 111, + "ios": 69 + } + }, + "PrintScreen": { + "names": { + "name": "PrintScreen", + "chromium": "PrintScreen" + }, + "scanCodes": { + "android": [ + 99 + ], + "usb": 458822, + "linux": 99, + "xkb": 107, + "windows": 57399, + "ios": 70 + } + }, + "ScrollLock": { + "names": { + "name": "ScrollLock", + "chromium": "ScrollLock" + }, + "scanCodes": { + "android": [ + 70 + ], + "usb": 458823, + "linux": 70, + "xkb": 78, + "windows": 70, + "ios": 71 + } + }, + "Pause": { + "names": { + "name": "Pause", + "chromium": "Pause" + }, + "scanCodes": { + "android": [ + 119, + 411 + ], + "usb": 458824, + "linux": 119, + "xkb": 127, + "windows": 69, + "ios": 72 + } + }, + "Insert": { + "names": { + "name": "Insert", + "chromium": "Insert" + }, + "scanCodes": { + "android": [ + 110 + ], + "usb": 458825, + "linux": 110, + "xkb": 118, + "windows": 57426, + "macos": 114, + "ios": 73 + } + }, + "Home": { + "names": { + "name": "Home", + "chromium": "Home" + }, + "scanCodes": { + "android": [ + 102 + ], + "usb": 458826, + "linux": 102, + "xkb": 110, + "windows": 57415, + "macos": 115, + "ios": 74 + } + }, + "PageUp": { + "names": { + "name": "PageUp", + "chromium": "PageUp" + }, + "scanCodes": { + "android": [ + 104, + 177 + ], + "usb": 458827, + "linux": 104, + "xkb": 112, + "windows": 57417, + "macos": 116, + "ios": 75 + } + }, + "Delete": { + "names": { + "name": "Delete", + "chromium": "Delete" + }, + "scanCodes": { + "android": [ + 111 + ], + "usb": 458828, + "linux": 111, + "xkb": 119, + "windows": 57427, + "macos": 117, + "ios": 76 + } + }, + "End": { + "names": { + "name": "End", + "chromium": "End" + }, + "scanCodes": { + "android": [ + 107 + ], + "usb": 458829, + "linux": 107, + "xkb": 115, + "windows": 57423, + "macos": 119, + "ios": 77 + } + }, + "PageDown": { + "names": { + "name": "PageDown", + "chromium": "PageDown" + }, + "scanCodes": { + "android": [ + 109, + 178 + ], + "usb": 458830, + "linux": 109, + "xkb": 117, + "windows": 57425, + "macos": 121, + "ios": 78 + } + }, + "ArrowRight": { + "names": { + "name": "ArrowRight", + "chromium": "ArrowRight" + }, + "scanCodes": { + "android": [ + 106 + ], + "usb": 458831, + "linux": 106, + "xkb": 114, + "windows": 57421, + "macos": 124, + "ios": 79 + } + }, + "ArrowLeft": { + "names": { + "name": "ArrowLeft", + "chromium": "ArrowLeft" + }, + "scanCodes": { + "android": [ + 105 + ], + "usb": 458832, + "linux": 105, + "xkb": 113, + "windows": 57419, + "macos": 123, + "ios": 80 + } + }, + "ArrowDown": { + "names": { + "name": "ArrowDown", + "chromium": "ArrowDown" + }, + "scanCodes": { + "android": [ + 108 + ], + "usb": 458833, + "linux": 108, + "xkb": 116, + "windows": 57424, + "macos": 125, + "ios": 81 + } + }, + "ArrowUp": { + "names": { + "name": "ArrowUp", + "chromium": "ArrowUp" + }, + "scanCodes": { + "android": [ + 103 + ], + "usb": 458834, + "linux": 103, + "xkb": 111, + "windows": 57416, + "macos": 126, + "ios": 82 + } + }, + "NumLock": { + "names": { + "name": "NumLock", + "chromium": "NumLock" + }, + "scanCodes": { + "android": [ + 69 + ], + "usb": 458835, + "linux": 69, + "xkb": 77, + "windows": 57413, + "macos": 71, + "ios": 83 + } + }, + "NumpadDivide": { + "names": { + "name": "NumpadDivide", + "chromium": "NumpadDivide" + }, + "scanCodes": { + "android": [ + 98 + ], + "usb": 458836, + "linux": 98, + "xkb": 106, + "windows": 57397, + "macos": 75, + "ios": 84 + } + }, + "NumpadMultiply": { + "names": { + "name": "NumpadMultiply", + "chromium": "NumpadMultiply" + }, + "scanCodes": { + "android": [ + 55 + ], + "usb": 458837, + "linux": 55, + "xkb": 63, + "windows": 55, + "macos": 67, + "ios": 85 + } + }, + "NumpadSubtract": { + "names": { + "name": "NumpadSubtract", + "chromium": "NumpadSubtract" + }, + "scanCodes": { + "android": [ + 74 + ], + "usb": 458838, + "linux": 74, + "xkb": 82, + "windows": 74, + "macos": 78, + "ios": 86 + } + }, + "NumpadAdd": { + "names": { + "name": "NumpadAdd", + "chromium": "NumpadAdd" + }, + "scanCodes": { + "android": [ + 78 + ], + "usb": 458839, + "linux": 78, + "xkb": 86, + "windows": 78, + "macos": 69, + "ios": 87 + } + }, + "NumpadEnter": { + "names": { + "name": "NumpadEnter", + "chromium": "NumpadEnter" + }, + "scanCodes": { + "android": [ + 96 + ], + "usb": 458840, + "linux": 96, + "xkb": 104, + "windows": 57372, + "macos": 76, + "ios": 88 + } + }, + "Numpad1": { + "names": { + "name": "Numpad1", + "chromium": "Numpad1" + }, + "scanCodes": { + "android": [ + 79 + ], + "usb": 458841, + "linux": 79, + "xkb": 87, + "windows": 79, + "macos": 83, + "ios": 89 + } + }, + "Numpad2": { + "names": { + "name": "Numpad2", + "chromium": "Numpad2" + }, + "scanCodes": { + "android": [ + 80 + ], + "usb": 458842, + "linux": 80, + "xkb": 88, + "windows": 80, + "macos": 84, + "ios": 90 + } + }, + "Numpad3": { + "names": { + "name": "Numpad3", + "chromium": "Numpad3" + }, + "scanCodes": { + "android": [ + 81 + ], + "usb": 458843, + "linux": 81, + "xkb": 89, + "windows": 81, + "macos": 85, + "ios": 91 + } + }, + "Numpad4": { + "names": { + "name": "Numpad4", + "chromium": "Numpad4" + }, + "scanCodes": { + "android": [ + 75 + ], + "usb": 458844, + "linux": 75, + "xkb": 83, + "windows": 75, + "macos": 86, + "ios": 92 + } + }, + "Numpad5": { + "names": { + "name": "Numpad5", + "chromium": "Numpad5" + }, + "scanCodes": { + "android": [ + 76 + ], + "usb": 458845, + "linux": 76, + "xkb": 84, + "windows": 76, + "macos": 87, + "ios": 93 + } + }, + "Numpad6": { + "names": { + "name": "Numpad6", + "chromium": "Numpad6" + }, + "scanCodes": { + "android": [ + 77 + ], + "usb": 458846, + "linux": 77, + "xkb": 85, + "windows": 77, + "macos": 88, + "ios": 94 + } + }, + "Numpad7": { + "names": { + "name": "Numpad7", + "chromium": "Numpad7" + }, + "scanCodes": { + "android": [ + 71 + ], + "usb": 458847, + "linux": 71, + "xkb": 79, + "windows": 71, + "macos": 89, + "ios": 95 + } + }, + "Numpad8": { + "names": { + "name": "Numpad8", + "chromium": "Numpad8" + }, + "scanCodes": { + "android": [ + 72 + ], + "usb": 458848, + "linux": 72, + "xkb": 80, + "windows": 72, + "macos": 91, + "ios": 96 + } + }, + "Numpad9": { + "names": { + "name": "Numpad9", + "chromium": "Numpad9" + }, + "scanCodes": { + "android": [ + 73 + ], + "usb": 458849, + "linux": 73, + "xkb": 81, + "windows": 73, + "macos": 92, + "ios": 97 + } + }, + "Numpad0": { + "names": { + "name": "Numpad0", + "chromium": "Numpad0" + }, + "scanCodes": { + "android": [ + 82 + ], + "usb": 458850, + "linux": 82, + "xkb": 90, + "windows": 82, + "macos": 82, + "ios": 98 + } + }, + "NumpadDecimal": { + "names": { + "name": "NumpadDecimal", + "chromium": "NumpadDecimal" + }, + "scanCodes": { + "android": [ + 83 + ], + "usb": 458851, + "linux": 83, + "xkb": 91, + "windows": 83, + "macos": 65, + "ios": 99 + } + }, + "IntlBackslash": { + "names": { + "name": "IntlBackslash", + "chromium": "IntlBackslash" + }, + "scanCodes": { + "usb": 458852, + "linux": 86, + "xkb": 94, + "windows": 86, + "macos": 10, + "ios": 100 + } + }, + "ContextMenu": { + "names": { + "name": "ContextMenu", + "chromium": "ContextMenu" + }, + "scanCodes": { + "android": [ + 127, + 139 + ], + "usb": 458853, + "linux": 127, + "xkb": 135, + "windows": 57437, + "macos": 110, + "ios": 101 + } + }, + "Power": { + "names": { + "name": "Power", + "chromium": "Power" + }, + "scanCodes": { + "android": [ + 116, + 152 + ], + "usb": 458854, + "linux": 116, + "xkb": 124, + "windows": 57438, + "ios": 102 + } + }, + "NumpadEqual": { + "names": { + "name": "NumpadEqual", + "chromium": "NumpadEqual" + }, + "scanCodes": { + "android": [ + 117 + ], + "usb": 458855, + "linux": 117, + "xkb": 125, + "windows": 89, + "macos": 81, + "ios": 103 + } + }, + "F13": { + "names": { + "name": "F13", + "chromium": "F13" + }, + "scanCodes": { + "android": [ + 183 + ], + "usb": 458856, + "linux": 183, + "xkb": 191, + "windows": 100, + "macos": 105, + "ios": 104 + } + }, + "F14": { + "names": { + "name": "F14", + "chromium": "F14" + }, + "scanCodes": { + "android": [ + 184 + ], + "usb": 458857, + "linux": 184, + "xkb": 192, + "windows": 101, + "macos": 107, + "ios": 105 + } + }, + "F15": { + "names": { + "name": "F15", + "chromium": "F15" + }, + "scanCodes": { + "android": [ + 185 + ], + "usb": 458858, + "linux": 185, + "xkb": 193, + "windows": 102, + "macos": 113, + "ios": 106 + } + }, + "F16": { + "names": { + "name": "F16", + "chromium": "F16" + }, + "scanCodes": { + "android": [ + 186 + ], + "usb": 458859, + "linux": 186, + "xkb": 194, + "windows": 103, + "macos": 106, + "ios": 107 + } + }, + "F17": { + "names": { + "name": "F17", + "chromium": "F17" + }, + "scanCodes": { + "android": [ + 187 + ], + "usb": 458860, + "linux": 187, + "xkb": 195, + "windows": 104, + "macos": 64, + "ios": 108 + } + }, + "F18": { + "names": { + "name": "F18", + "chromium": "F18" + }, + "scanCodes": { + "android": [ + 188 + ], + "usb": 458861, + "linux": 188, + "xkb": 196, + "windows": 105, + "macos": 79, + "ios": 109 + } + }, + "F19": { + "names": { + "name": "F19", + "chromium": "F19" + }, + "scanCodes": { + "android": [ + 189 + ], + "usb": 458862, + "linux": 189, + "xkb": 197, + "windows": 106, + "macos": 80, + "ios": 110 + } + }, + "F20": { + "names": { + "name": "F20", + "chromium": "F20" + }, + "scanCodes": { + "android": [ + 190 + ], + "usb": 458863, + "linux": 190, + "xkb": 198, + "windows": 107, + "macos": 90, + "ios": 111 + } + }, + "F21": { + "names": { + "name": "F21", + "chromium": "F21" + }, + "scanCodes": { + "android": [ + 191 + ], + "usb": 458864, + "linux": 191, + "xkb": 199, + "windows": 108, + "ios": 112 + } + }, + "F22": { + "names": { + "name": "F22", + "chromium": "F22" + }, + "scanCodes": { + "android": [ + 192 + ], + "usb": 458865, + "linux": 192, + "xkb": 200, + "windows": 109, + "ios": 113 + } + }, + "F23": { + "names": { + "name": "F23", + "chromium": "F23" + }, + "scanCodes": { + "android": [ + 193 + ], + "usb": 458866, + "linux": 193, + "xkb": 201, + "windows": 110, + "ios": 114 + } + }, + "F24": { + "names": { + "name": "F24", + "chromium": "F24" + }, + "scanCodes": { + "android": [ + 194 + ], + "usb": 458867, + "linux": 194, + "xkb": 202, + "windows": 118, + "ios": 115 + } + }, + "Open": { + "names": { + "name": "Open", + "chromium": "Open" + }, + "scanCodes": { + "android": [ + 134 + ], + "usb": 458868, + "linux": 134, + "xkb": 142, + "ios": 116 + } + }, + "Help": { + "names": { + "name": "Help", + "chromium": "Help" + }, + "scanCodes": { + "android": [ + 138 + ], + "usb": 458869, + "linux": 138, + "xkb": 146, + "windows": 57403, + "ios": 117 + } + }, + "Select": { + "names": { + "name": "Select", + "chromium": "Select" + }, + "scanCodes": { + "android": [ + 353 + ], + "usb": 458871, + "linux": 132, + "xkb": 140, + "ios": 119 + } + }, + "Again": { + "names": { + "name": "Again", + "chromium": "Again" + }, + "scanCodes": { + "android": [ + 129 + ], + "usb": 458873, + "linux": 129, + "xkb": 137, + "ios": 121 + } + }, + "Undo": { + "names": { + "name": "Undo", + "chromium": "Undo" + }, + "scanCodes": { + "android": [ + 131 + ], + "usb": 458874, + "linux": 131, + "xkb": 139, + "windows": 57352, + "ios": 122 + } + }, + "Cut": { + "names": { + "name": "Cut", + "chromium": "Cut" + }, + "scanCodes": { + "android": [ + 137 + ], + "usb": 458875, + "linux": 137, + "xkb": 145, + "windows": 57367, + "ios": 123 + } + }, + "Copy": { + "names": { + "name": "Copy", + "chromium": "Copy" + }, + "scanCodes": { + "android": [ + 133 + ], + "usb": 458876, + "linux": 133, + "xkb": 141, + "windows": 57368, + "ios": 124 + } + }, + "Paste": { + "names": { + "name": "Paste", + "chromium": "Paste" + }, + "scanCodes": { + "android": [ + 135 + ], + "usb": 458877, + "linux": 135, + "xkb": 143, + "windows": 57354, + "ios": 125 + } + }, + "Find": { + "names": { + "name": "Find", + "chromium": "Find" + }, + "scanCodes": { + "android": [ + 136 + ], + "usb": 458878, + "linux": 136, + "xkb": 144, + "ios": 126 + } + }, + "AudioVolumeMute": { + "names": { + "name": "AudioVolumeMute", + "chromium": "AudioVolumeMute" + }, + "scanCodes": { + "android": [ + 113 + ], + "usb": 458879, + "linux": 113, + "xkb": 121, + "windows": 57376, + "macos": 74, + "ios": 127 + } + }, + "AudioVolumeUp": { + "names": { + "name": "AudioVolumeUp", + "chromium": "AudioVolumeUp" + }, + "scanCodes": { + "android": [ + 115 + ], + "usb": 458880, + "linux": 115, + "xkb": 123, + "windows": 57392, + "macos": 72, + "ios": 128 + } + }, + "AudioVolumeDown": { + "names": { + "name": "AudioVolumeDown", + "chromium": "AudioVolumeDown" + }, + "scanCodes": { + "android": [ + 114 + ], + "usb": 458881, + "linux": 114, + "xkb": 122, + "windows": 57390, + "macos": 73, + "ios": 129 + } + }, + "NumpadComma": { + "names": { + "name": "NumpadComma", + "chromium": "NumpadComma" + }, + "scanCodes": { + "android": [ + 95, + 121 + ], + "usb": 458885, + "linux": 121, + "xkb": 129, + "windows": 126, + "macos": 95, + "ios": 133 + } + }, + "IntlRo": { + "names": { + "name": "IntlRo", + "chromium": "IntlRo" + }, + "scanCodes": { + "android": [ + 89 + ], + "usb": 458887, + "linux": 89, + "xkb": 97, + "windows": 115, + "macos": 94, + "ios": 135 + } + }, + "KanaMode": { + "names": { + "name": "KanaMode", + "chromium": "KanaMode" + }, + "scanCodes": { + "usb": 458888, + "linux": 93, + "xkb": 101, + "windows": 112, + "ios": 136 + } + }, + "IntlYen": { + "names": { + "name": "IntlYen", + "chromium": "IntlYen" + }, + "scanCodes": { + "android": [ + 124 + ], + "usb": 458889, + "linux": 124, + "xkb": 132, + "windows": 125, + "macos": 93, + "ios": 137 + } + }, + "Convert": { + "names": { + "name": "Convert", + "chromium": "Convert" + }, + "scanCodes": { + "android": [ + 92 + ], + "usb": 458890, + "linux": 92, + "xkb": 100, + "windows": 121, + "ios": 138 + } + }, + "NonConvert": { + "names": { + "name": "NonConvert", + "chromium": "NonConvert" + }, + "scanCodes": { + "android": [ + 94 + ], + "usb": 458891, + "linux": 94, + "xkb": 102, + "windows": 123, + "ios": 139 + } + }, + "Lang1": { + "names": { + "name": "Lang1", + "chromium": "Lang1" + }, + "scanCodes": { + "usb": 458896, + "linux": 122, + "xkb": 130, + "windows": 114, + "macos": 104, + "ios": 144 + } + }, + "Lang2": { + "names": { + "name": "Lang2", + "chromium": "Lang2" + }, + "scanCodes": { + "usb": 458897, + "linux": 123, + "xkb": 131, + "windows": 113, + "macos": 102, + "ios": 145 + } + }, + "Lang3": { + "names": { + "name": "Lang3", + "chromium": "Lang3" + }, + "scanCodes": { + "android": [ + 90 + ], + "usb": 458898, + "linux": 90, + "xkb": 98, + "windows": 120, + "ios": 146 + } + }, + "Lang4": { + "names": { + "name": "Lang4", + "chromium": "Lang4" + }, + "scanCodes": { + "android": [ + 91 + ], + "usb": 458899, + "linux": 91, + "xkb": 99, + "windows": 119, + "ios": 147 + } + }, + "Lang5": { + "names": { + "name": "Lang5", + "chromium": "Lang5" + }, + "scanCodes": { + "usb": 458900, + "linux": 85, + "xkb": 93, + "ios": 148 + } + }, + "Abort": { + "names": { + "name": "Abort", + "chromium": "Abort" + }, + "scanCodes": { + "usb": 458907, + "ios": 155 + } + }, + "Props": { + "names": { + "name": "Props", + "chromium": "Props" + }, + "scanCodes": { + "android": [ + 130 + ], + "usb": 458915, + "ios": 163 + } + }, + "NumpadParenLeft": { + "names": { + "name": "NumpadParenLeft", + "chromium": "NumpadParenLeft" + }, + "scanCodes": { + "android": [ + 179 + ], + "usb": 458934, + "linux": 179, + "xkb": 187, + "ios": 182 + } + }, + "NumpadParenRight": { + "names": { + "name": "NumpadParenRight", + "chromium": "NumpadParenRight" + }, + "scanCodes": { + "android": [ + 180 + ], + "usb": 458935, + "linux": 180, + "xkb": 188, + "ios": 183 + } + }, + "NumpadBackspace": { + "names": { + "name": "NumpadBackspace", + "chromium": "NumpadBackspace" + }, + "scanCodes": { + "usb": 458939, + "ios": 187 + } + }, + "NumpadMemoryStore": { + "names": { + "name": "NumpadMemoryStore", + "chromium": "NumpadMemoryStore" + }, + "scanCodes": { + "usb": 458960, + "ios": 208 + } + }, + "NumpadMemoryRecall": { + "names": { + "name": "NumpadMemoryRecall", + "chromium": "NumpadMemoryRecall" + }, + "scanCodes": { + "usb": 458961, + "ios": 209 + } + }, + "NumpadMemoryClear": { + "names": { + "name": "NumpadMemoryClear", + "chromium": "NumpadMemoryClear" + }, + "scanCodes": { + "usb": 458962, + "ios": 210 + } + }, + "NumpadMemoryAdd": { + "names": { + "name": "NumpadMemoryAdd", + "chromium": "NumpadMemoryAdd" + }, + "scanCodes": { + "usb": 458963, + "ios": 211 + } + }, + "NumpadMemorySubtract": { + "names": { + "name": "NumpadMemorySubtract", + "chromium": "NumpadMemorySubtract" + }, + "scanCodes": { + "usb": 458964, + "ios": 212 + } + }, + "NumpadSignChange": { + "names": { + "name": "NumpadSignChange" + }, + "scanCodes": { + "usb": 458967, + "linux": 118, + "xkb": 126, + "ios": 215 + } + }, + "NumpadClear": { + "names": { + "name": "NumpadClear", + "chromium": "NumpadClear" + }, + "scanCodes": { + "usb": 458968, + "ios": 216 + } + }, + "NumpadClearEntry": { + "names": { + "name": "NumpadClearEntry", + "chromium": "NumpadClearEntry" + }, + "scanCodes": { + "usb": 458969, + "ios": 217 + } + }, + "ControlLeft": { + "names": { + "name": "ControlLeft", + "chromium": "ControlLeft" + }, + "scanCodes": { + "android": [ + 29 + ], + "usb": 458976, + "linux": 29, + "xkb": 37, + "windows": 29, + "macos": 59, + "ios": 224 + } + }, + "ShiftLeft": { + "names": { + "name": "ShiftLeft", + "chromium": "ShiftLeft" + }, + "scanCodes": { + "android": [ + 42 + ], + "usb": 458977, + "linux": 42, + "xkb": 50, + "windows": 42, + "macos": 56, + "ios": 225 + } + }, + "AltLeft": { + "names": { + "name": "AltLeft", + "chromium": "AltLeft" + }, + "scanCodes": { + "android": [ + 56 + ], + "usb": 458978, + "linux": 56, + "xkb": 64, + "windows": 56, + "macos": 58, + "ios": 226 + } + }, + "MetaLeft": { + "names": { + "name": "MetaLeft", + "chromium": "MetaLeft" + }, + "scanCodes": { + "android": [ + 125 + ], + "usb": 458979, + "linux": 125, + "xkb": 133, + "windows": 57435, + "macos": 55, + "ios": 227 + } + }, + "ControlRight": { + "names": { + "name": "ControlRight", + "chromium": "ControlRight" + }, + "scanCodes": { + "android": [ + 97 + ], + "usb": 458980, + "linux": 97, + "xkb": 105, + "windows": 57373, + "macos": 62, + "ios": 228 + } + }, + "ShiftRight": { + "names": { + "name": "ShiftRight", + "chromium": "ShiftRight" + }, + "scanCodes": { + "android": [ + 54 + ], + "usb": 458981, + "linux": 54, + "xkb": 62, + "windows": 54, + "macos": 60, + "ios": 229 + } + }, + "AltRight": { + "names": { + "name": "AltRight", + "chromium": "AltRight" + }, + "scanCodes": { + "android": [ + 100 + ], + "usb": 458982, + "linux": 100, + "xkb": 108, + "windows": 57400, + "macos": 61, + "ios": 230 + } + }, + "MetaRight": { + "names": { + "name": "MetaRight", + "chromium": "MetaRight" + }, + "scanCodes": { + "android": [ + 126 + ], + "usb": 458983, + "linux": 126, + "xkb": 134, + "windows": 57436, + "macos": 54, + "ios": 231 + } + }, + "Info": { + "names": { + "name": "Info" + }, + "scanCodes": { + "android": [ + 358 + ], + "usb": 786528, + "linux": 358, + "xkb": 366 + } + }, + "ClosedCaptionToggle": { + "names": { + "name": "ClosedCaptionToggle" + }, + "scanCodes": { + "android": [ + 370 + ], + "usb": 786529, + "linux": 370, + "xkb": 378 + } + }, + "BrightnessUp": { + "names": { + "name": "BrightnessUp", + "chromium": "BrightnessUp" + }, + "scanCodes": { + "android": [ + 225 + ], + "usb": 786543, + "linux": 225, + "xkb": 233 + } + }, + "BrightnessDown": { + "names": { + "name": "BrightnessDown", + "chromium": "BrightnessDown" + }, + "scanCodes": { + "android": [ + 224 + ], + "usb": 786544, + "linux": 224, + "xkb": 232 + } + }, + "BrightnessToggle": { + "names": { + "name": "BrightnessToggle" + }, + "scanCodes": { + "usb": 786546, + "linux": 431, + "xkb": 439 + } + }, + "BrightnessMinimum": { + "names": { + "name": "BrightnessMinimum" + }, + "scanCodes": { + "usb": 786547, + "linux": 592, + "xkb": 600 + } + }, + "BrightnessMaximum": { + "names": { + "name": "BrightnessMaximum" + }, + "scanCodes": { + "usb": 786548, + "linux": 593, + "xkb": 601 + } + }, + "BrightnessAuto": { + "names": { + "name": "BrightnessAuto" + }, + "scanCodes": { + "usb": 786549, + "linux": 244, + "xkb": 252 + } + }, + "KbdIllumUp": { + "names": { + "name": "KbdIllumUp" + }, + "scanCodes": { + "usb": 786553, + "linux": 230, + "xkb": 238 + } + }, + "KbdIllumDown": { + "names": { + "name": "KbdIllumDown" + }, + "scanCodes": { + "usb": 786554, + "linux": 229, + "xkb": 237 + } + }, + "MediaLast": { + "names": { + "name": "MediaLast" + }, + "scanCodes": { + "android": [ + 405 + ], + "usb": 786563, + "linux": 405, + "xkb": 413 + } + }, + "LaunchPhone": { + "names": { + "name": "LaunchPhone" + }, + "scanCodes": { + "usb": 786572, + "linux": 169, + "xkb": 177 + } + }, + "ProgramGuide": { + "names": { + "name": "ProgramGuide" + }, + "scanCodes": { + "usb": 786573, + "linux": 362, + "xkb": 370 + } + }, + "Exit": { + "names": { + "name": "Exit" + }, + "scanCodes": { + "android": [ + 174 + ], + "usb": 786580, + "linux": 174, + "xkb": 182 + } + }, + "ChannelUp": { + "names": { + "name": "ChannelUp" + }, + "scanCodes": { + "android": [ + 402 + ], + "usb": 786588, + "linux": 410, + "xkb": 418 + } + }, + "ChannelDown": { + "names": { + "name": "ChannelDown" + }, + "scanCodes": { + "android": [ + 403 + ], + "usb": 786589, + "linux": 411, + "xkb": 419 + } + }, + "MediaPlay": { + "names": { + "name": "MediaPlay", + "chromium": "MediaPlay" + }, + "scanCodes": { + "android": [ + 200, + 207 + ], + "usb": 786608, + "linux": 207, + "xkb": 215 + } + }, + "MediaPause": { + "names": { + "name": "MediaPause", + "chromium": "MediaPause" + }, + "scanCodes": { + "android": [ + 201 + ], + "usb": 786609, + "linux": 201, + "xkb": 209 + } + }, + "MediaRecord": { + "names": { + "name": "MediaRecord", + "chromium": "MediaRecord" + }, + "scanCodes": { + "android": [ + 167 + ], + "usb": 786610, + "linux": 167, + "xkb": 175 + } + }, + "MediaFastForward": { + "names": { + "name": "MediaFastForward", + "chromium": "MediaFastForward" + }, + "scanCodes": { + "android": [ + 208 + ], + "usb": 786611, + "linux": 208, + "xkb": 216 + } + }, + "MediaRewind": { + "names": { + "name": "MediaRewind", + "chromium": "MediaRewind" + }, + "scanCodes": { + "android": [ + 168 + ], + "usb": 786612, + "linux": 168, + "xkb": 176 + } + }, + "MediaTrackNext": { + "names": { + "name": "MediaTrackNext", + "chromium": "MediaTrackNext" + }, + "scanCodes": { + "android": [ + 163 + ], + "usb": 786613, + "linux": 163, + "xkb": 171, + "windows": 57369 + } + }, + "MediaTrackPrevious": { + "names": { + "name": "MediaTrackPrevious", + "chromium": "MediaTrackPrevious" + }, + "scanCodes": { + "android": [ + 165 + ], + "usb": 786614, + "linux": 165, + "xkb": 173, + "windows": 57360 + } + }, + "MediaStop": { + "names": { + "name": "MediaStop", + "chromium": "MediaStop" + }, + "scanCodes": { + "android": [ + 128, + 166 + ], + "usb": 786615, + "linux": 166, + "xkb": 174, + "windows": 57380 + } + }, + "Eject": { + "names": { + "name": "Eject", + "chromium": "Eject" + }, + "scanCodes": { + "android": [ + 161, + 162 + ], + "usb": 786616, + "linux": 161, + "xkb": 169, + "windows": 57388 + } + }, + "MediaPlayPause": { + "names": { + "name": "MediaPlayPause", + "chromium": "MediaPlayPause" + }, + "scanCodes": { + "android": [ + 164 + ], + "usb": 786637, + "linux": 164, + "xkb": 172, + "windows": 57378 + } + }, + "SpeechInputToggle": { + "names": { + "name": "SpeechInputToggle" + }, + "scanCodes": { + "usb": 786639, + "linux": 582, + "xkb": 590 + } + }, + "BassBoost": { + "names": { + "name": "BassBoost" + }, + "scanCodes": { + "android": [ + 209 + ], + "usb": 786661, + "linux": 209, + "xkb": 217 + } + }, + "MediaSelect": { + "names": { + "name": "MediaSelect", + "chromium": "MediaSelect" + }, + "scanCodes": { + "usb": 786819, + "linux": 171, + "xkb": 179, + "windows": 57453 + } + }, + "LaunchWordProcessor": { + "names": { + "name": "LaunchWordProcessor" + }, + "scanCodes": { + "usb": 786820, + "linux": 421, + "xkb": 429 + } + }, + "LaunchSpreadsheet": { + "names": { + "name": "LaunchSpreadsheet" + }, + "scanCodes": { + "usb": 786822, + "linux": 423, + "xkb": 431 + } + }, + "LaunchMail": { + "names": { + "name": "LaunchMail", + "chromium": "LaunchMail" + }, + "scanCodes": { + "android": [ + 155, + 215 + ], + "usb": 786826, + "linux": 155, + "xkb": 163, + "windows": 57452 + } + }, + "LaunchContacts": { + "names": { + "name": "LaunchContacts" + }, + "scanCodes": { + "android": [ + 429 + ], + "usb": 786829, + "linux": 429, + "xkb": 437 + } + }, + "LaunchCalendar": { + "names": { + "name": "LaunchCalendar" + }, + "scanCodes": { + "android": [ + 397 + ], + "usb": 786830, + "linux": 397, + "xkb": 405 + } + }, + "LaunchApp2": { + "names": { + "name": "LaunchApp2", + "chromium": "LaunchApp2" + }, + "scanCodes": { + "usb": 786834, + "linux": 140, + "xkb": 148, + "windows": 57377 + } + }, + "LaunchApp1": { + "names": { + "name": "LaunchApp1", + "chromium": "LaunchApp1" + }, + "scanCodes": { + "usb": 786836, + "linux": 144, + "xkb": 152, + "windows": 57451 + } + }, + "LaunchInternetBrowser": { + "names": { + "name": "LaunchInternetBrowser" + }, + "scanCodes": { + "usb": 786838, + "linux": 150, + "xkb": 158 + } + }, + "LogOff": { + "names": { + "name": "LogOff" + }, + "scanCodes": { + "usb": 786844, + "linux": 433, + "xkb": 441 + } + }, + "LockScreen": { + "names": { + "name": "LockScreen" + }, + "scanCodes": { + "usb": 786846, + "linux": 152, + "xkb": 160 + } + }, + "LaunchControlPanel": { + "names": { + "name": "LaunchControlPanel", + "chromium": "LaunchControlPanel" + }, + "scanCodes": { + "usb": 786847, + "linux": 579, + "xkb": 587 + } + }, + "SelectTask": { + "names": { + "name": "SelectTask", + "chromium": "SelectTask" + }, + "scanCodes": { + "usb": 786850, + "linux": 580, + "xkb": 588 + } + }, + "LaunchDocuments": { + "names": { + "name": "LaunchDocuments" + }, + "scanCodes": { + "usb": 786855, + "linux": 235, + "xkb": 243 + } + }, + "SpellCheck": { + "names": { + "name": "SpellCheck" + }, + "scanCodes": { + "usb": 786859, + "linux": 432, + "xkb": 440 + } + }, + "LaunchKeyboardLayout": { + "names": { + "name": "LaunchKeyboardLayout" + }, + "scanCodes": { + "usb": 786862, + "linux": 374, + "xkb": 382 + } + }, + "LaunchScreenSaver": { + "names": { + "name": "LaunchScreenSaver", + "chromium": "LaunchScreenSaver" + }, + "scanCodes": { + "usb": 786865, + "linux": 581, + "xkb": 589 + } + }, + "LaunchAudioBrowser": { + "names": { + "name": "LaunchAudioBrowser" + }, + "scanCodes": { + "usb": 786871, + "linux": 392, + "xkb": 400 + } + }, + "LaunchAssistant": { + "names": { + "name": "LaunchAssistant", + "chromium": "LaunchAssistant" + }, + "scanCodes": { + "android": [ + 583 + ], + "usb": 786891, + "linux": 583, + "xkb": 591 + } + }, + "New": { + "names": { + "name": "New" + }, + "scanCodes": { + "usb": 786945, + "linux": 181, + "xkb": 189 + } + }, + "Close": { + "names": { + "name": "Close" + }, + "scanCodes": { + "android": [ + 160, + 206 + ], + "usb": 786947, + "linux": 206, + "xkb": 214 + } + }, + "Save": { + "names": { + "name": "Save" + }, + "scanCodes": { + "usb": 786951, + "linux": 234, + "xkb": 242 + } + }, + "Print": { + "names": { + "name": "Print" + }, + "scanCodes": { + "android": [ + 210 + ], + "usb": 786952, + "linux": 210, + "xkb": 218 + } + }, + "BrowserSearch": { + "names": { + "name": "BrowserSearch", + "chromium": "BrowserSearch" + }, + "scanCodes": { + "android": [ + 217 + ], + "usb": 786977, + "linux": 217, + "xkb": 225, + "windows": 57445 + } + }, + "BrowserHome": { + "names": { + "name": "BrowserHome", + "chromium": "BrowserHome" + }, + "scanCodes": { + "usb": 786979, + "linux": 172, + "xkb": 180, + "windows": 57394 + } + }, + "BrowserBack": { + "names": { + "name": "BrowserBack", + "chromium": "BrowserBack" + }, + "scanCodes": { + "usb": 786980, + "linux": 158, + "xkb": 166, + "windows": 57450 + } + }, + "BrowserForward": { + "names": { + "name": "BrowserForward", + "chromium": "BrowserForward" + }, + "scanCodes": { + "android": [ + 159 + ], + "usb": 786981, + "linux": 159, + "xkb": 167, + "windows": 57449 + } + }, + "BrowserStop": { + "names": { + "name": "BrowserStop", + "chromium": "BrowserStop" + }, + "scanCodes": { + "usb": 786982, + "linux": 128, + "xkb": 136, + "windows": 57448 + } + }, + "BrowserRefresh": { + "names": { + "name": "BrowserRefresh", + "chromium": "BrowserRefresh" + }, + "scanCodes": { + "usb": 786983, + "linux": 173, + "xkb": 181, + "windows": 57447 + } + }, + "BrowserFavorites": { + "names": { + "name": "BrowserFavorites", + "chromium": "BrowserFavorites" + }, + "scanCodes": { + "android": [ + 156 + ], + "usb": 786986, + "linux": 156, + "xkb": 164, + "windows": 57446 + } + }, + "ZoomIn": { + "names": { + "name": "ZoomIn" + }, + "scanCodes": { + "usb": 786989, + "linux": 418, + "xkb": 426 + } + }, + "ZoomOut": { + "names": { + "name": "ZoomOut" + }, + "scanCodes": { + "usb": 786990, + "linux": 419, + "xkb": 427 + } + }, + "ZoomToggle": { + "names": { + "name": "ZoomToggle", + "chromium": "ZoomToggle" + }, + "scanCodes": { + "usb": 786994, + "linux": 372, + "xkb": 380 + } + }, + "Redo": { + "names": { + "name": "Redo" + }, + "scanCodes": { + "android": [ + 182 + ], + "usb": 787065, + "linux": 182, + "xkb": 190 + } + }, + "MailReply": { + "names": { + "name": "MailReply", + "chromium": "MailReply" + }, + "scanCodes": { + "usb": 787081, + "linux": 232, + "xkb": 240 + } + }, + "MailForward": { + "names": { + "name": "MailForward", + "chromium": "MailForward" + }, + "scanCodes": { + "usb": 787083, + "linux": 233, + "xkb": 241 + } + }, + "MailSend": { + "names": { + "name": "MailSend", + "chromium": "MailSend" + }, + "scanCodes": { + "usb": 787084, + "linux": 231, + "xkb": 239 + } + }, + "KeyboardLayoutSelect": { + "names": { + "name": "KeyboardLayoutSelect", + "chromium": "KeyboardLayoutSelect" + }, + "scanCodes": { + "usb": 787101, + "linux": 584, + "xkb": 592 + } + }, + "ShowAllWindows": { + "names": { + "name": "ShowAllWindows", + "chromium": "ShowAllWindows" + }, + "scanCodes": { + "usb": 787103, + "linux": 120, + "xkb": 128 + } + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/printable.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/printable.json new file mode 100644 index 0000000000000000000000000000000000000000..98eba3e02056bb2e47c137131a53fa4e615e620f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/printable.json @@ -0,0 +1,69 @@ +{ + "Backquote": "`", + "Backslash": "\\", + "BracketLeft": "[", + "BracketRight": "]", + "Comma": ",", + "Digit0": "0", + "Digit1": "1", + "Digit2": "2", + "Digit3": "3", + "Digit4": "4", + "Digit5": "5", + "Digit6": "6", + "Digit7": "7", + "Digit8": "8", + "Digit9": "9", + "Equal": "=", + "KeyA": "a", + "KeyB": "b", + "KeyC": "c", + "KeyD": "d", + "KeyE": "e", + "KeyF": "f", + "KeyG": "g", + "KeyH": "h", + "KeyI": "i", + "KeyJ": "j", + "KeyK": "k", + "KeyL": "l", + "KeyM": "m", + "KeyN": "n", + "KeyO": "o", + "KeyP": "p", + "KeyQ": "q", + "KeyR": "r", + "KeyS": "s", + "KeyT": "t", + "KeyU": "u", + "KeyV": "v", + "KeyW": "w", + "KeyX": "x", + "KeyY": "y", + "KeyZ": "z", + "Minus": "-", + "Numpad0": "0", + "Numpad1": "1", + "Numpad2": "2", + "Numpad3": "3", + "Numpad4": "4", + "Numpad5": "5", + "Numpad6": "6", + "Numpad7": "7", + "Numpad8": "8", + "Numpad9": "9", + "NumpadAdd": "+", + "NumpadComma": ",", + "NumpadDecimal": ".", + "NumpadDivide": "/", + "NumpadEqual": "=", + "NumpadMultiply": "*", + "NumpadParenLeft": "(", + "NumpadParenRight": ")", + "NumpadSubtract": "-", + "Period": ".", + "Quote": "'", + "Semicolon": ";", + "Slash": "/", + "Space": " " +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/supplemental_hid_codes.inc b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/supplemental_hid_codes.inc new file mode 100644 index 0000000000000000000000000000000000000000..8b66cc6e71e687d7da3fdbf20d7e5b5883631433 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/supplemental_hid_codes.inc @@ -0,0 +1,66 @@ + // These are supplemental code data to be added to those that Chromium + // defines. + + // ============================================================ + // Game controller buttons + // ============================================================ + + // Since the web doesn't have game controller buttons defined in the + // same way, these map USB HID codes for game controller buttons to + // Android/Linux button names. + // + // The HID codes here are not real USB HID codes, because the USB HID standard + // doesn't define game controller buttons in this way. It defines only two + // button "collections" (fire/jump and trigger), with the button number for + // each collection sent as extra data. Since we're just using USB HID as a + // convenient namespace, and not using these HID codes for interfacing with a + // USB protocol, we can define new ones to enumerate the buttons. These don't + // collide with any currently defined HID codes. + // + // USB HID evdev XKB Win Mac DOMKey Code + DOM_CODE(0x05ff01, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton1", BUTTON_1), + DOM_CODE(0x05ff02, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton2", BUTTON_2), + DOM_CODE(0x05ff03, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton3", BUTTON_3), + DOM_CODE(0x05ff04, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton4", BUTTON_4), + DOM_CODE(0x05ff05, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton5", BUTTON_5), + DOM_CODE(0x05ff06, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton6", BUTTON_6), + DOM_CODE(0x05ff07, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton7", BUTTON_7), + DOM_CODE(0x05ff08, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton8", BUTTON_8), + DOM_CODE(0x05ff09, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton9", BUTTON_9), + DOM_CODE(0x05ff0a, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton10", BUTTON_10), + DOM_CODE(0x05ff0b, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton11", BUTTON_11), + DOM_CODE(0x05ff0c, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton12", BUTTON_12), + DOM_CODE(0x05ff0d, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton13", BUTTON_13), + DOM_CODE(0x05ff0e, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton14", BUTTON_14), + DOM_CODE(0x05ff0f, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton15", BUTTON_15), + DOM_CODE(0x05ff10, 0x0000, 0x0000, 0x0000, 0xffff, "GameButton16", BUTTON_16), + DOM_CODE(0x05ff11, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonA", BUTTON_A), + DOM_CODE(0x05ff12, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonB", BUTTON_B), + DOM_CODE(0x05ff13, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonC", BUTTON_C), + DOM_CODE(0x05ff14, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonLeft1", BUTTON_L1), + DOM_CODE(0x05ff15, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonLeft2", BUTTON_L2), + DOM_CODE(0x05ff16, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonMode", BUTTON_MODE), + DOM_CODE(0x05ff17, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonRight1", BUTTON_R1), + DOM_CODE(0x05ff18, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonRight2", BUTTON_R2), + DOM_CODE(0x05ff19, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonSelect", BUTTON_SELECT), + DOM_CODE(0x05ff1a, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonStart", BUTTON_START), + DOM_CODE(0x05ff1b, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonThumbLeft", BUTTON_THUMBL), + DOM_CODE(0x05ff1c, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonThumbRight", BUTTON_THUMBR), + DOM_CODE(0x05ff1d, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonX", BUTTON_X), + DOM_CODE(0x05ff1e, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonY", BUTTON_Y), + DOM_CODE(0x05ff1f, 0x0000, 0x0000, 0x0000, 0xffff, "GameButtonZ", BUTTON_Z), + + // Sometimes the Escape key produces "Esc" instead of "Escape". This includes + // older IE and Firefox browsers, and the current Cobalt browser. + // See: https://github.com/flutter/flutter/issues/106062 + DOM_CODE(0x070029, 0x0000, 0x0000, 0x0000, 0xffff, "Esc", ESCAPE), + + // ============================================================ + // Fn key for Mac + // ============================================================ + + // The Mac defines a key code for the Fn key on Mac keyboards, but it's not + // defined on other platforms. Chromium does define an "Fn" row, but doesn't + // give it a Mac keycode. This overrides their definition. + // USB HID evdev XKB Win Mac DOMKey Code + DOM_CODE(0x000012, 0x0000, 0x0000, 0x0000, 0x003f, "Fn", FN), diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/supplemental_key_data.inc b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/supplemental_key_data.inc new file mode 100644 index 0000000000000000000000000000000000000000..c928dc2f4253553c5e8d9a8c07a533fffcb40278 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/supplemental_key_data.inc @@ -0,0 +1,190 @@ + // This file contains supplemental key data to be added to those that + // Chromium defines. + + // ============================================================ + // Printable keys (Unicode plane) + // ============================================================ + + // Key Enum Unicode code point + DOM_KEY_UNI("Space", SPACE, ' '), + DOM_KEY_UNI("Exclamation", EXCLAMATION, '!'), + DOM_KEY_UNI("NumberSign", NUMBER_SIGN, '#'), + DOM_KEY_UNI("Dollar", DOLLAR, '$'), + DOM_KEY_UNI("Percent", PERCENT, '%'), + DOM_KEY_UNI("Ampersand", AMPERSAND, '&'), + DOM_KEY_UNI("QuoteSingle", QUOTE_SINGLE, 0x0027), + DOM_KEY_UNI("Quote", QUOTE, '"')", + DOM_KEY_UNI("ParenthesisLeft", PARENTHESIS_LEFT, '('), + DOM_KEY_UNI("ParenthesisRight", PARENTHESIS_RIGHT, ')'), + DOM_KEY_UNI("Asterisk", ASTERISK, '*'), + DOM_KEY_UNI("Add", ADD, '+'), + DOM_KEY_UNI("Comma", COMMA, ','), + DOM_KEY_UNI("Minus", MINUS, '-'), + DOM_KEY_UNI("Period", PERIOD, '.'), + DOM_KEY_UNI("Slash", SLASH, '/'), + DOM_KEY_UNI("Digit0", DIGIT0, '0'), + DOM_KEY_UNI("Digit1", DIGIT1, '1'), + DOM_KEY_UNI("Digit2", DIGIT2, '2'), + DOM_KEY_UNI("Digit3", DIGIT3, '3'), + DOM_KEY_UNI("Digit4", DIGIT4, '4'), + DOM_KEY_UNI("Digit5", DIGIT5, '5'), + DOM_KEY_UNI("Digit6", DIGIT6, '6'), + DOM_KEY_UNI("Digit7", DIGIT7, '7'), + DOM_KEY_UNI("Digit8", DIGIT8, '8'), + DOM_KEY_UNI("Digit9", DIGIT9, '9'), + DOM_KEY_UNI("Colon", COLON, ':'), + DOM_KEY_UNI("Semicolon", SEMICOLON, ';'), + DOM_KEY_UNI("Less", LESS, '<'), + DOM_KEY_UNI("Equal", EQUAL, '='), + DOM_KEY_UNI("Greater", GREATER, '>'), + DOM_KEY_UNI("Question", QUESTION, '?'), + DOM_KEY_UNI("At", AT, '@'), + DOM_KEY_UNI("BracketLeft", BRACKET_LEFT, '['), + DOM_KEY_UNI("Backslash", BACKSLASH, 0x005c), + DOM_KEY_UNI("BracketRight", BRACKET_RIGHT, ']'), + DOM_KEY_UNI("Caret", CARET, '^'), + DOM_KEY_UNI("Backquote", BACKQUOTE, '`'), + DOM_KEY_UNI("Underscore", UNDERSCORE, '_'), + DOM_KEY_UNI("KeyA", KEY_A, 'a'), + DOM_KEY_UNI("KeyB", KEY_B, 'b'), + DOM_KEY_UNI("KeyC", KEY_C, 'c'), + DOM_KEY_UNI("KeyD", KEY_D, 'd'), + DOM_KEY_UNI("KeyE", KEY_E, 'e'), + DOM_KEY_UNI("KeyF", KEY_F, 'f'), + DOM_KEY_UNI("KeyG", KEY_G, 'g'), + DOM_KEY_UNI("KeyH", KEY_H, 'h'), + DOM_KEY_UNI("KeyI", KEY_I, 'i'), + DOM_KEY_UNI("KeyJ", KEY_J, 'j'), + DOM_KEY_UNI("KeyK", KEY_K, 'k'), + DOM_KEY_UNI("KeyL", KEY_L, 'l'), + DOM_KEY_UNI("KeyM", KEY_M, 'm'), + DOM_KEY_UNI("KeyN", KEY_N, 'n'), + DOM_KEY_UNI("KeyO", KEY_O, 'o'), + DOM_KEY_UNI("KeyP", KEY_P, 'p'), + DOM_KEY_UNI("KeyQ", KEY_Q, 'q'), + DOM_KEY_UNI("KeyR", KEY_R, 'r'), + DOM_KEY_UNI("KeyS", KEY_S, 's'), + DOM_KEY_UNI("KeyT", KEY_T, 't'), + DOM_KEY_UNI("KeyU", KEY_U, 'u'), + DOM_KEY_UNI("KeyV", KEY_V, 'v'), + DOM_KEY_UNI("KeyW", KEY_W, 'w'), + DOM_KEY_UNI("KeyX", KEY_X, 'x'), + DOM_KEY_UNI("KeyY", KEY_Y, 'y'), + DOM_KEY_UNI("KeyZ", KEY_Z, 'z'), + DOM_KEY_UNI("BraceLeft", BRACE_LEFT, '{'), + DOM_KEY_UNI("BraceRight", BRACE_RIGHT, '}'), + DOM_KEY_UNI("Tilde", TILDE, '~'), + DOM_KEY_UNI("Bar", BAR, '|'), + + // ============================================================ + // Unprintable keys (Unicode plane) + // ============================================================ + + // Key Enum Value + // Sometimes the Escape key produces "Esc" instead of "Escape". This includes + // older IE and Firefox browsers, and the current Cobalt browser. + // See: https://github.com/flutter/flutter/issues/106062 + DOM_KEY_MAP("Esc", ESC, 0x1B), + + // The following keys reside in the Flutter plane (0x0100000000). + + // ============================================================ + // Miscellaneous (0x000__) + // ============================================================ + + // Key Enum Value + FLUTTER_KEY_MAP("Suspend", SUSPEND, 0x00000), + FLUTTER_KEY_MAP("Resume", RESUME, 0x00001), + FLUTTER_KEY_MAP("Sleep", SLEEP, 0x00002), + FLUTTER_KEY_MAP("Abort", ABORT, 0x00003), + FLUTTER_KEY_MAP("Lang1", LANG1, 0x00010), + FLUTTER_KEY_MAP("Lang2", LANG2, 0x00011), + FLUTTER_KEY_MAP("Lang3", LANG3, 0x00012), + FLUTTER_KEY_MAP("Lang4", LANG4, 0x00013), + FLUTTER_KEY_MAP("Lang5", LANG5, 0x00014), + FLUTTER_KEY_MAP("IntlBackslash", INTL_BACKSLASH, 0x00020), + FLUTTER_KEY_MAP("IntlRo", INTL_RO, 0x00021), + FLUTTER_KEY_MAP("IntlYen", INTL_YEN, 0x00022), + + // ============================================================ + // Modifiers (0x001__) + // ============================================================ + // Key Enum Value + FLUTTER_KEY_MAP("ControlLeft", CONTROL_LEFT, 0x00100), + FLUTTER_KEY_MAP("ControlRight", CONTROL_RIGHT, 0x00101), + FLUTTER_KEY_MAP("ShiftLeft", SHIFT_LEFT, 0x00102), + FLUTTER_KEY_MAP("ShiftRight", SHIFT_RIGHT, 0x00103), + FLUTTER_KEY_MAP("AltLeft", ALT_LEFT, 0x00104), + FLUTTER_KEY_MAP("AltRight", ALT_RIGHT, 0x00105), + FLUTTER_KEY_MAP("MetaLeft", META_LEFT, 0x00106), + FLUTTER_KEY_MAP("MetaRight", META_RIGHT, 0x00107), + // Synonym keys are added for compatibility and will be removed in the future. + FLUTTER_KEY_MAP("Control", CONTROL, 0x001F0), + FLUTTER_KEY_MAP("Shift", SHIFT, 0x001F2), + FLUTTER_KEY_MAP("Alt", ALT, 0x001F4), + FLUTTER_KEY_MAP("Meta", META, 0x001F6), + + // ============================================================ + // Number pad (0x002__) + // ============================================================ + // The value for number pad buttons are derived from their unicode code + // points. + FLUTTER_KEY_MAP("NumpadEnter", NUMPAD_ENTER, 0x0020D), + FLUTTER_KEY_MAP("NumpadParenLeft", NUMPAD_PAREN_LEFT, 0x00228), + FLUTTER_KEY_MAP("NumpadParenRight", NUMPAD_PAREN_RIGHT, 0x00229), + FLUTTER_KEY_MAP("NumpadMultiply", NUMPAD_MULTIPLY, 0x0022A), + FLUTTER_KEY_MAP("NumpadAdd", NUMPAD_ADD, 0x0022B), + FLUTTER_KEY_MAP("NumpadComma", NUMPAD_COMMA, 0x0022C), + FLUTTER_KEY_MAP("NumpadSubtract", NUMPAD_SUBTRACT, 0x0022D), + FLUTTER_KEY_MAP("NumpadDecimal", NUMPAD_DECIMAL, 0x0022E), + FLUTTER_KEY_MAP("NumpadDivide", NUMPAD_DIVIDE, 0x0022F), + FLUTTER_KEY_MAP("Numpad0", NUMPAD_0, 0x00230), + FLUTTER_KEY_MAP("Numpad1", NUMPAD_1, 0x00231), + FLUTTER_KEY_MAP("Numpad2", NUMPAD_2, 0x00232), + FLUTTER_KEY_MAP("Numpad3", NUMPAD_3, 0x00233), + FLUTTER_KEY_MAP("Numpad4", NUMPAD_4, 0x00234), + FLUTTER_KEY_MAP("Numpad5", NUMPAD_5, 0x00235), + FLUTTER_KEY_MAP("Numpad6", NUMPAD_6, 0x00236), + FLUTTER_KEY_MAP("Numpad7", NUMPAD_7, 0x00237), + FLUTTER_KEY_MAP("Numpad8", NUMPAD_8, 0x00238), + FLUTTER_KEY_MAP("Numpad9", NUMPAD_9, 0x00239), + FLUTTER_KEY_MAP("NumpadEqual", NUMPAD_EQUAL, 0x0023D), + + // ============================================================ + // Game controller buttons (0x003__) + // ============================================================ + + // The value for game controller buttons are derived from the last 8 bit + // of its USB HID usage. + // Key Enum Value + FLUTTER_KEY_MAP("GameButton1", GAME_BUTTON_1, 0x00301), + FLUTTER_KEY_MAP("GameButton2", GAME_BUTTON_2, 0x00302), + FLUTTER_KEY_MAP("GameButton3", GAME_BUTTON_3, 0x00303), + FLUTTER_KEY_MAP("GameButton4", GAME_BUTTON_4, 0x00304), + FLUTTER_KEY_MAP("GameButton5", GAME_BUTTON_5, 0x00305), + FLUTTER_KEY_MAP("GameButton6", GAME_BUTTON_6, 0x00306), + FLUTTER_KEY_MAP("GameButton7", GAME_BUTTON_7, 0x00307), + FLUTTER_KEY_MAP("GameButton8", GAME_BUTTON_8, 0x00308), + FLUTTER_KEY_MAP("GameButton9", GAME_BUTTON_9, 0x00309), + FLUTTER_KEY_MAP("GameButton10", GAME_BUTTON_10, 0x0030a), + FLUTTER_KEY_MAP("GameButton11", GAME_BUTTON_11, 0x0030b), + FLUTTER_KEY_MAP("GameButton12", GAME_BUTTON_12, 0x0030c), + FLUTTER_KEY_MAP("GameButton13", GAME_BUTTON_13, 0x0030d), + FLUTTER_KEY_MAP("GameButton14", GAME_BUTTON_14, 0x0030e), + FLUTTER_KEY_MAP("GameButton15", GAME_BUTTON_15, 0x0030f), + FLUTTER_KEY_MAP("GameButton16", GAME_BUTTON_16, 0x00310), + FLUTTER_KEY_MAP("GameButtonA", GAME_BUTTON_A, 0x00311), + FLUTTER_KEY_MAP("GameButtonB", GAME_BUTTON_B, 0x00312), + FLUTTER_KEY_MAP("GameButtonC", GAME_BUTTON_C, 0x00313), + FLUTTER_KEY_MAP("GameButtonLeft1", GAME_BUTTON_L1, 0x00314), + FLUTTER_KEY_MAP("GameButtonLeft2", GAME_BUTTON_L2, 0x00315), + FLUTTER_KEY_MAP("GameButtonMode", GAME_BUTTON_MODE, 0x00316), + FLUTTER_KEY_MAP("GameButtonRight1", GAME_BUTTON_R1, 0x00317), + FLUTTER_KEY_MAP("GameButtonRight2", GAME_BUTTON_R2, 0x00318), + FLUTTER_KEY_MAP("GameButtonSelect", GAME_BUTTON_SELECT, 0x00319), + FLUTTER_KEY_MAP("GameButtonStart", GAME_BUTTON_START, 0x0031a), + FLUTTER_KEY_MAP("GameButtonThumbLeft", GAME_BUTTON_THUMBL, 0x0031b), + FLUTTER_KEY_MAP("GameButtonThumbRight", GAME_BUTTON_THUMBR, 0x0031c), + FLUTTER_KEY_MAP("GameButtonX", GAME_BUTTON_X, 0x0031d), + FLUTTER_KEY_MAP("GameButtonY", GAME_BUTTON_Y, 0x0031e), + FLUTTER_KEY_MAP("GameButtonZ", GAME_BUTTON_Z, 0x0031f), diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/synonyms.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/synonyms.json new file mode 100644 index 0000000000000000000000000000000000000000..173bbbf734d920c796b05ae06352db00c0240f2f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/synonyms.json @@ -0,0 +1,6 @@ +{ + "Shift": ["ShiftLeft", "ShiftRight"], + "Meta": ["MetaLeft", "MetaRight"], + "Alt": ["AltLeft", "AltRight"], + "Control": ["ControlLeft", "ControlRight"] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/web_key_map_dart.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/web_key_map_dart.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..5a5eeec46395db1bd98ab681f17dda492d0b640d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/web_key_map_dart.tmpl @@ -0,0 +1,32 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by dev/tools/gen_keycodes/bin/gen_keycodes.dart and +// should not be edited directly. +// +// Edit the template dev/tools/gen_keycodes/data/web_key_map_dart.tmpl instead. +// See dev/tools/gen_keycodes/README.md for more information. + +/// Maps Web KeyboardEvent keys to the matching LogicalKeyboardKey id. +const Map kWebToLogicalKey = { +@@@WEB_LOGICAL_KEY_CODE_MAP@@@ +}; + +/// Maps Web KeyboardEvent codes to the matching PhysicalKeyboardKey USB HID code. +const Map kWebToPhysicalKey = { +@@@WEB_PHYSICAL_KEY_CODE_MAP@@@ +}; + +/// Maps Web KeyboardEvent keys to Flutter logical IDs that depend on locations. +/// +/// `KeyboardEvent.location` is defined as: +/// +/// * 0: Standard +/// * 1: Left +/// * 2: Right +/// * 3: Numpad +const Map> kWebLogicalLocationMap = >{ +@@@WEB_LOGICAL_LOCATION_MAP@@@ +}; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/web_logical_location_mapping.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/web_logical_location_mapping.json new file mode 100644 index 0000000000000000000000000000000000000000..cdc4e3bf5289daa69a8b5127a7c2553cdb7f32fe --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/web_logical_location_mapping.json @@ -0,0 +1,34 @@ +{ + "0": ["Digit0", null, null, "Numpad0"], + "1": ["Digit1", null, null, "Numpad1"], + "2": ["Digit2", null, null, "Numpad2"], + "3": ["Digit3", null, null, "Numpad3"], + "4": ["Digit4", null, null, "Numpad4"], + "5": ["Digit5", null, null, "Numpad5"], + "6": ["Digit6", null, null, "Numpad6"], + "7": ["Digit7", null, null, "Numpad7"], + "8": ["Digit8", null, null, "Numpad8"], + "9": ["Digit9", null, null, "Numpad9"], + ".": ["Period", null, null, "NumpadDecimal"], + "Insert": ["Insert", null, null, "Numpad0"], + "End": ["End", null, null, "Numpad1"], + "ArrowDown": ["ArrowDown", null, null, "Numpad2"], + "PageDown": ["PageDown", null, null, "Numpad3"], + "ArrowLeft": ["ArrowLeft", null, null, "Numpad4"], + "Clear": ["Clear", null, null, "Numpad5"], + "ArrowRight": ["ArrowRight", null, null, "Numpad6"], + "Home": ["Home", null, null, "Numpad7"], + "ArrowUp": ["ArrowUp", null, null, "Numpad8"], + "PageUp": ["PageUp", null, null, "Numpad9"], + "Delete": ["Delete", null, null, "NumpadDecimal"], + "/": ["Slash", null, null, "NumpadDivide"], + "*": ["Asterisk", null, null, "NumpadMultiply"], + "-": ["Minus", null, null, "NumpadSubtract"], + "+": ["Add", null, null, "NumpadAdd"], + "Enter": ["Enter", null, null, "NumpadEnter"], + "Shift": ["ShiftLeft", "ShiftLeft", "ShiftRight", null], + "Control": ["ControlLeft", "ControlLeft", "ControlRight", null], + "Alt": ["AltLeft", "AltLeft", "AltRight", null], + "AltGraph": ["AltGraph", null, "AltGraph", null], + "Meta": ["MetaLeft", "MetaLeft", "MetaRight", null] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl new file mode 100644 index 0000000000000000000000000000000000000000..91cbcc7085d9ca0a5cbff051e59fe985769194c6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl @@ -0,0 +1,39 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "flutter/shell/platform/windows/keyboard_key_embedder_handler.h" + +#include + +// DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT +// This file is generated by +// flutter/flutter:dev/tools/gen_keycodes/bin/gen_keycodes.dart and should not +// be edited directly. +// +// Edit the template +// flutter/flutter:dev/tools/gen_keycodes/data/windows_flutter_key_map_cc.tmpl +// instead. +// +// See flutter/flutter:dev/tools/gen_keycodes/README.md for more information. + +namespace flutter { + +std::map KeyboardKeyEmbedderHandler::windowsToPhysicalMap_ = + { +@@@WINDOWS_SCAN_CODE_MAP@@@ +}; + +std::map KeyboardKeyEmbedderHandler::windowsToLogicalMap_ = + { +@@@WINDOWS_KEY_CODE_MAP@@@ +}; + +std::map KeyboardKeyEmbedderHandler::scanCodeToLogicalMap_ = + { +@@@WINDOWS_SCAN_CODE_TO_LOGICAL_MAP@@@ +}; + +@@@MASK_CONSTANTS@@@ + +} // namespace flutter diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/windows_logical_to_window_vk.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/windows_logical_to_window_vk.json new file mode 100644 index 0000000000000000000000000000000000000000..5ab26b25e845d32c6d882d4e8cfd54ca08da720a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/windows_logical_to_window_vk.json @@ -0,0 +1,180 @@ +{ + "Cancel": ["CANCEL"], + "Backspace": ["BACK"], + "Tab": ["TAB"], + "Clear": ["CLEAR"], + "Enter": ["RETURN"], + "Menu": ["MENU"], + "Pause": ["PAUSE"], + "CapsLock": ["CAPITAL"], + "Lang1": ["HANGUL", "HANGEUL", "KANA"], + "JunjaMode": ["JUNJA"], + "FinalMode": ["FINAL"], + "KanjiMode": ["KANJI", "HANJA"], + "Escape": ["ESCAPE"], + "Convert": ["CONVERT"], + "Nonconvert": ["NONCONVERT"], + "Accept": ["ACCEPT"], + "ModeChange": ["MODECHANGE"], + "Space": ["SPACE"], + "Home": ["HOME"], + "End": ["END"], + "ArrowLeft": ["LEFT"], + "ArrowUp": ["UP"], + "ArrowRight": ["RIGHT"], + "ArrowDown": ["DOWN"], + "Sleep": ["SLEEP"], + "Select": ["SELECT"], + "Print": ["PRINT"], + "Execute": ["EXECUTE"], + "Insert": ["INSERT"], + "Delete": ["DELETE"], + "Help": ["HELP"], + "MetaLeft": ["LWIN"], + "MetaRight": ["RWIN"], + "ContextMenu": ["APPS"], + "PageDown": ["NEXT"], + "PageUp": ["PRIOR"], + "PrintScreen": ["SNAPSHOT"], + "Numpad0": ["NUMPAD0"], + "Numpad1": ["NUMPAD1"], + "Numpad2": ["NUMPAD2"], + "Numpad3": ["NUMPAD3"], + "Numpad4": ["NUMPAD4"], + "Numpad5": ["NUMPAD5"], + "Numpad6": ["NUMPAD6"], + "Numpad7": ["NUMPAD7"], + "Numpad8": ["NUMPAD8"], + "Numpad9": ["NUMPAD9"], + "NumpadMultiply": ["MULTIPLY"], + "NumpadAdd": ["ADD"], + "NumpadComma": ["SEPARATOR"], + "NumpadSubtract": ["SUBTRACT"], + "NumpadDecimal": ["DECIMAL"], + "NumpadDivide": ["DIVIDE"], + "F1": ["F1"], + "F2": ["F2"], + "F3": ["F3"], + "F4": ["F4"], + "F5": ["F5"], + "F6": ["F6"], + "F7": ["F7"], + "F8": ["F8"], + "F9": ["F9"], + "F10": ["F10"], + "F11": ["F11"], + "F12": ["F12"], + "F13": ["F13"], + "F14": ["F14"], + "F15": ["F15"], + "F16": ["F16"], + "F17": ["F17"], + "F18": ["F18"], + "F19": ["F19"], + "F20": ["F20"], + "F21": ["F21"], + "F22": ["F22"], + "F23": ["F23"], + "F24": ["F24"], + "NavigationView": ["NAVIGATION_VIEW"], + "NavigationMenu": ["NAVIGATION_MENU"], + "NavigationUp": ["NAVIGATION_UP"], + "NavigationDown": ["NAVIGATION_DOWN"], + "NavigationLeft": ["NAVIGATION_LEFT"], + "NavigationRight": ["NAVIGATION_RIGHT"], + "NavigationAccept": ["NAVIGATION_ACCEPT"], + "NavigationCancel": ["NAVIGATION_CANCEL"], + "NumLock": ["NUMLOCK"], + "ScrollLock": ["SCROLL"], + "NumpadEqual": ["OEM_NEC_EQUAL"], + "ShiftLeft": ["LSHIFT", "SHIFT"], + "ShiftRight": ["RSHIFT"], + "ShiftLock": ["OEM_SHIFT"], + "ControlLeft": ["LCONTROL", "CONTROL"], + "ControlRight": ["RCONTROL"], + "AltLeft": ["LMENU"], + "AltRight": ["RMENU"], + "BrowserBack": ["BROWSER_BACK"], + "BrowserForward": ["BROWSER_FORWARD"], + "BrowserRefresh": ["BROWSER_REFRESH"], + "BrowserStop": ["BROWSER_STOP"], + "BrowserSearch": ["BROWSER_SEARCH"], + "BrowserFavorites": ["BROWSER_FAVORITES"], + "BrowserHome": ["BROWSER_HOME"], + "AudioVolumeMute": ["VOLUME_MUTE"], + "AudioVolumeDown": ["VOLUME_DOWN"], + "AudioVolumeUp": ["VOLUME_UP"], + "MediaNextTrack": ["MEDIA_NEXT_TRACK"], + "MediaPrevTrack": ["MEDIA_PREV_TRACK"], + "MediaStop": ["MEDIA_STOP"], + "MediaPlayPause": ["MEDIA_PLAY_PAUSE"], + "LaunchMail": ["LAUNCH_MAIL"], + "LaunchMediaSelect": ["LAUNCH_MEDIA_SELECT"], + "LaunchApp1": ["LAUNCH_APP1"], + "LaunchApp2": ["LAUNCH_APP2"], + "Semicolon": ["OEM_1"], + "Equal": ["OEM_PLUS"], + "Comma": ["OEM_COMMA"], + "Minus": ["OEM_MINUS"], + "Period": ["OEM_PERIOD"], + "Slash": ["OEM_2"], + "Backquote": ["OEM_3"], + "GameButton8": ["GAMEPAD_A"], + "GameButton9": ["GAMEPAD_B"], + "GameButton10": ["GAMEPAD_X"], + "GameButton11": ["GAMEPAD_Y"], + "GameButton12": ["GAMEPAD_RIGHT_SHOULDER"], + "GameButton13": ["GAMEPAD_LEFT_SHOULDER"], + "GameButton14": ["GAMEPAD_LEFT_TRIGGER"], + "GameButton15": ["GAMEPAD_RIGHT_TRIGGER"], + "GameButton16": ["GAMEPAD_DPAD_UP"], + "GameButton17": ["GAMEPAD_DPAD_DOWN"], + "GameButton18": ["GAMEPAD_DPAD_LEFT"], + "GameButton19": ["GAMEPAD_DPAD_RIGHT"], + "GamepadMenu": ["GAMEPAD_MENU"], + "GamepadView": ["GAMEPAD_VIEW"], + "GamepadLeftThumbstickButton": ["GAMEPAD_LEFT_THUMBSTICK_BUTTON"], + "GamepadRightThumbstickButton": ["GAMEPAD_RIGHT_THUMBSTICK_BUTTON"], + "GamepadLeftThumbstickUp": ["GAMEPAD_LEFT_THUMBSTICK_UP"], + "GamepadLeftThumbstickDown": ["GAMEPAD_LEFT_THUMBSTICK_DOWN"], + "GamepadLeftThumbstickRight": ["GAMEPAD_LEFT_THUMBSTICK_RIGHT"], + "GamepadLeftThumbstickLeft": ["GAMEPAD_LEFT_THUMBSTICK_LEFT"], + "GamepadRightThumbstickUp": ["GAMEPAD_RIGHT_THUMBSTICK_UP"], + "GamepadRightThumbstickDown": ["GAMEPAD_RIGHT_THUMBSTICK_DOWN"], + "GamepadRightThumbstickRight": ["GAMEPAD_RIGHT_THUMBSTICK_RIGHT"], + "GamepadRightThumbstickLeft": ["GAMEPAD_RIGHT_THUMBSTICK_LEFT"], + "BracketLeft": ["OEM_4"], + "Backslash": ["OEM_5"], + "BracketRight": ["OEM_6"], + "Quote": ["OEM_7"], + "Oem8": ["OEM_8"], + "OemAx": ["OEM_AX"], + "Oem102": ["OEM_102"], + "IcoHelp": ["ICO_HELP"], + "Ico00": ["ICO_00"], + "Processkey": ["PROCESSKEY"], + "IcoClear": ["ICO_CLEAR"], + "Packet": ["PACKET"], + "OemReset": ["OEM_RESET"], + "OemJump": ["OEM_JUMP"], + "OemPa1": ["OEM_PA1"], + "OemPa2": ["OEM_PA2"], + "OemPa3": ["OEM_PA3"], + "OemWsctrl": ["OEM_WSCTRL"], + "OemCusel": ["OEM_CUSEL"], + "OemAttn": ["OEM_ATTN"], + "OemFinish": ["OEM_FINISH"], + "OemCopy": ["OEM_COPY"], + "OemAuto": ["OEM_AUTO"], + "OemEnlw": ["OEM_ENLW"], + "OemBacktab": ["OEM_BACKTAB"], + "Attn": ["ATTN"], + "Crsel": ["CRSEL"], + "Exsel": ["EXSEL"], + "Ereof": ["EREOF"], + "Play": ["PLAY"], + "Zoom": ["ZOOM"], + "Noname": ["NONAME"], + "Pa1": ["PA1"], + "OemClear": ["OEM_CLEAR"] +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/windows_scancode_logical_map.json b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/windows_scancode_logical_map.json new file mode 100644 index 0000000000000000000000000000000000000000..5462da282a14540637dbfe139ea989462d1ad0e2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/data/windows_scancode_logical_map.json @@ -0,0 +1,20 @@ +{ + "ControlRight": "ControlRight", + "AltRight": "AltRight", + "Numpad1": "Numpad1", + "Numpad2": "Numpad2", + "Numpad3": "Numpad3", + "Numpad4": "Numpad4", + "Numpad5": "Numpad5", + "Numpad6": "Numpad6", + "Numpad7": "Numpad7", + "Numpad8": "Numpad8", + "Numpad9": "Numpad9", + "Numpad0": "Numpad0", + "NumpadAdd": "NumpadAdd", + "NumpadDecimal": "NumpadDecimal", + "NumpadDivide": "NumpadDivide", + "NumpadEqual": "NumpadEqual", + "NumpadMultiply": "NumpadMultiply", + "NumpadSubtract": "NumpadSubtract" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/android_code_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/android_code_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..c39152618e44cdb795ab80ca20e8d6509add061e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/android_code_gen.dart @@ -0,0 +1,114 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:path/path.dart' as path; + +import 'base_code_gen.dart'; +import 'constants.dart'; +import 'logical_key_data.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + + +/// Generates the key mapping for Android, based on the information in the key +/// data structure given to it. +class AndroidCodeGenerator extends PlatformCodeGenerator { + AndroidCodeGenerator(super.keyData, super.logicalData); + + /// This generates the map of Android key codes to logical keys. + String get _androidKeyCodeMap { + final StringBuffer androidKeyCodeMap = StringBuffer(); + for (final LogicalKeyEntry entry in logicalData.entries) { + for (final int code in entry.androidValues) { + androidKeyCodeMap.writeln(' put(${toHex(code, digits: 10)}L, ${toHex(entry.value, digits: 10)}L); // ${entry.constantName}'); + } + } + return androidKeyCodeMap.toString().trimRight(); + } + + /// This generates the map of Android scan codes to physical keys. + String get _androidScanCodeMap { + final StringBuffer androidScanCodeMap = StringBuffer(); + for (final PhysicalKeyEntry entry in keyData.entries) { + for (final int code in entry.androidScanCodes.cast()) { + androidScanCodeMap.writeln(' put(${toHex(code, digits: 10)}L, ${toHex(entry.usbHidCode, digits: 10)}L); // ${entry.constantName}'); + } + } + return androidScanCodeMap.toString().trimRight(); + } + + String get _pressingGoals { + final OutputLines lines = OutputLines('Android pressing goals'); + const Map> goalsSource = >{ + 'SHIFT': ['ShiftLeft', 'ShiftRight'], + 'CTRL': ['ControlLeft', 'ControlRight'], + 'ALT': ['AltLeft', 'AltRight'], + }; + goalsSource.forEach((String flagName, List keys) { + int? lineId; + final List keysString = keys.map((String keyName) { + final PhysicalKeyEntry physicalKey = keyData.entryByName(keyName); + final LogicalKeyEntry logicalKey = logicalData.entryByName(keyName); + lineId ??= physicalKey.usbHidCode; + return ' new KeyPair(${toHex(physicalKey.usbHidCode)}L, ' + '${toHex(logicalKey.value, digits: 10)}L), // ${physicalKey.name}'; + }).toList(); + lines.add(lineId!, + ' new PressingGoal(\n' + ' KeyEvent.META_${flagName}_ON,\n' + ' new KeyPair[] {\n' + '${keysString.join('\n')}\n' + ' }),'); + }); + return lines.sortedJoin().trimRight(); + } + + String get _togglingGoals { + final OutputLines lines = OutputLines('Android toggling goals'); + const Map goalsSource = { + 'CAPS_LOCK': 'CapsLock', + }; + goalsSource.forEach((String flagName, String keyName) { + final PhysicalKeyEntry physicalKey = keyData.entryByName(keyName); + final LogicalKeyEntry logicalKey = logicalData.entryByName(keyName); + lines.add(physicalKey.usbHidCode, + ' new TogglingGoal(KeyEvent.META_${flagName}_ON, ' + '${toHex(physicalKey.usbHidCode)}L, ' + '${toHex(logicalKey.value, digits: 10)}L),'); + }); + return lines.sortedJoin().trimRight(); + } + + /// This generates the mask values for the part of a key code that defines its plane. + String get _maskConstants { + final StringBuffer buffer = StringBuffer(); + const List maskConstants = [ + kValueMask, + kUnicodePlane, + kAndroidPlane, + ]; + for (final MaskConstant constant in maskConstants) { + buffer.writeln(' public static final long k${constant.upperCamelName} = ${toHex(constant.value, digits: 11)}L;'); + } + return buffer.toString().trimRight(); + } + + @override + String get templatePath => path.join(dataRoot, 'android_keyboard_map_java.tmpl'); + + @override + String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot, 'shell', 'platform', + path.join('android', 'io', 'flutter', 'embedding', 'android', 'KeyboardMap.java')); + + @override + Map mappings() { + return { + 'ANDROID_SCAN_CODE_MAP': _androidScanCodeMap, + 'ANDROID_KEY_CODE_MAP': _androidKeyCodeMap, + 'PRESSING_GOALS': _pressingGoals, + 'TOGGLING_GOALS': _togglingGoals, + 'MASK_CONSTANTS': _maskConstants, + }; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/base_code_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/base_code_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..a49292ba85a4998ffcc28a736e930c8d39cee619 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/base_code_gen.dart @@ -0,0 +1,59 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; +import 'logical_key_data.dart'; + +import 'physical_key_data.dart'; + +String _injectDictionary(String template, Map dictionary) { + String result = template; + for (final String key in dictionary.keys) { + result = result.replaceAll('@@@$key@@@', dictionary[key] ?? '@@@$key@@@'); + } + return result; +} + +/// Generates a file based on the information in the key data structure given to +/// it. +/// +/// [BaseCodeGenerator] finds tokens in the template file that has the form of +/// `@@@TOKEN@@@`, and replace them by looking up the key `TOKEN` from the map +/// returned by [mappings]. +/// +/// Subclasses must implement [templatePath] and [mappings]. +abstract class BaseCodeGenerator { + /// Create a code generator while providing [keyData] to be used in [mappings]. + BaseCodeGenerator(this.keyData, this.logicalData); + + /// Absolute path to the template file that this file is generated on. + String get templatePath; + + /// A mapping from tokens to be replaced in the template to the result string. + Map mappings(); + + /// Substitutes the various platform specific maps into the template file for + /// keyboard_maps.g.dart. + String generate() { + final String template = File(templatePath).readAsStringSync(); + return _injectDictionary(template, mappings()); + } + + /// The database of keys loaded from disk. + final PhysicalKeyData keyData; + + final LogicalKeyData logicalData; +} + +/// A code generator which also defines platform-based behavior. +abstract class PlatformCodeGenerator extends BaseCodeGenerator { + PlatformCodeGenerator(super.keyData, super.logicalData); + + /// Absolute path to the output file. + /// + /// How this value will be used is based on the callee. + String outputPath(String platform); + + static String engineRoot = ''; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/constants.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/constants.dart new file mode 100644 index 0000000000000000000000000000000000000000..bb3a18191f58dd6f3796dfb8971c280d97188e1f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/constants.dart @@ -0,0 +1,108 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'utils.dart'; + +class MaskConstant { + const MaskConstant({required this.name, required this.value, required this.description}); + + const MaskConstant.platform({required String platform, required int value}) + : this( + name: '$platform Plane', + value: value, + description: 'The plane value for the private keys defined by the $platform embedding.' + ); + + final String name; + final int value; + final String description; + + String get upperCamelName { + return name + .split(' ') + .map((String word) => lowerCamelToUpperCamel(word.toLowerCase())) + .join(); + } + + String get lowerCamelName { + final String upperCamel = upperCamelName; + return upperCamel.substring(0, 1).toLowerCase() + upperCamel.substring(1); + } +} + +const MaskConstant kValueMask = MaskConstant( + name: 'Value Mask', + value: 0x00FFFFFFFF, + description: 'Mask for the 32-bit value portion of the key code.', +); + +const MaskConstant kPlaneMask = MaskConstant( + name: 'Plane Mask', + value: 0xFF00000000, + description: 'Mask for the plane prefix portion of the key code.', +); + +const MaskConstant kUnicodePlane = MaskConstant( + name: 'Unicode Plane', + value: 0x0000000000, + description: 'The plane value for keys which have a Unicode representation.', +); + +const MaskConstant kUnprintablePlane = MaskConstant( + name: 'Unprintable Plane', + value: 0x0100000000, + description: 'The plane value for keys defined by Chromium and does not have a Unicode representation.', +); + +const MaskConstant kFlutterPlane = MaskConstant( + name: 'Flutter Plane', + value: 0x0200000000, + description: 'The plane value for keys defined by Flutter.', +); + +const MaskConstant kStartOfPlatformPlanes = MaskConstant( + name: 'Start Of Platform Planes', + value: 0x1100000000, + description: 'The platform plane with the lowest mask value, beyond which the keys are considered autogenerated.', +); + +const MaskConstant kAndroidPlane = MaskConstant.platform( + platform: 'Android', + value: 0x1100000000, +); + +const MaskConstant kFuchsiaPlane = MaskConstant.platform( + platform: 'Fuchsia', + value: 0x1200000000, +); + +const MaskConstant kIosPlane = MaskConstant.platform( + platform: 'iOS', + value: 0x1300000000, +); + +const MaskConstant kMacosPlane = MaskConstant.platform( + platform: 'macOS', + value: 0x1400000000, +); + +const MaskConstant kGtkPlane = MaskConstant.platform( + platform: 'Gtk', + value: 0x1500000000, +); + +const MaskConstant kWindowsPlane = MaskConstant.platform( + platform: 'Windows', + value: 0x1600000000, +); + +const MaskConstant kWebPlane = MaskConstant.platform( + platform: 'Web', + value: 0x1700000000, +); + +const MaskConstant kGlfwPlane = MaskConstant.platform( + platform: 'GLFW', + value: 0x1800000000, +); diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/data.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/data.dart new file mode 100644 index 0000000000000000000000000000000000000000..faaf12b0d67c4229561a153f532e93cf148e1133 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/data.dart @@ -0,0 +1,30 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/// Maps iOS's special key labels to logical key names. +/// +/// See https://developer.apple.com/documentation/uikit/uikeycommand/input_strings_for_special_keys?language=objc +const Map kIosSpecialKeyMapping = { + 'UIKeyInputEscape': 'Escape', + 'UIKeyInputF1': 'F1', + 'UIKeyInputF2': 'F2', + 'UIKeyInputF3': 'F3', + 'UIKeyInputF4': 'F4', + 'UIKeyInputF5': 'F5', + 'UIKeyInputF6': 'F6', + 'UIKeyInputF7': 'F7', + 'UIKeyInputF8': 'F8', + 'UIKeyInputF9': 'F9', + 'UIKeyInputF10': 'F10', + 'UIKeyInputF11': 'F11', + 'UIKeyInputF12': 'F12', + 'UIKeyInputUpArrow': 'ArrowUp', + 'UIKeyInputDownArrow': 'ArrowDown', + 'UIKeyInputLeftArrow': 'ArrowLeft', + 'UIKeyInputRightArrow': 'ArrowRight', + 'UIKeyInputHome': 'Home', + 'UIKeyInputEnd': 'Enter', + 'UIKeyInputPageUp': 'PageUp', + 'UIKeyInputPageDown': 'PageDown', +}; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/gtk_code_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/gtk_code_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..983d8f25e6730c2260df827d31130e5df567fab3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/gtk_code_gen.dart @@ -0,0 +1,145 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:path/path.dart' as path; + +import 'base_code_gen.dart'; +import 'constants.dart'; +import 'logical_key_data.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + + +/// Generates the key mapping for GTK, based on the information in the key +/// data structure given to it. +class GtkCodeGenerator extends PlatformCodeGenerator { + GtkCodeGenerator( + super.keyData, + super.logicalData, + String modifierBitMapping, + String lockBitMapping, + this._layoutGoals, + ) : _modifierBitMapping = parseMapOfListOfString(modifierBitMapping), + _lockBitMapping = parseMapOfListOfString(lockBitMapping); + + /// This generates the map of XKB scan codes to Flutter physical keys. + String get _xkbScanCodeMap { + final OutputLines lines = OutputLines('GTK scancode map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + if (entry.xKbScanCode != null) { + lines.add(entry.xKbScanCode!, + ' {${toHex(entry.xKbScanCode)}, ${toHex(entry.usbHidCode)}}, // ${entry.constantName}'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of GTK keyval codes to Flutter logical keys. + String get _gtkKeyvalCodeMap { + final OutputLines lines = OutputLines('GTK keyval map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + zipStrict(entry.gtkValues, entry.gtkNames, (int value, String name) { + lines.add(value, + ' {${toHex(value)}, ${toHex(entry.value, digits: 11)}}, // $name'); + }); + } + return lines.sortedJoin().trimRight(); + } + + static String constructMapFromModToKeys( + Map> source, + PhysicalKeyData physicalData, + LogicalKeyData logicalData, + String debugFunctionName, + ) { + final StringBuffer result = StringBuffer(); + source.forEach((String modifierBitName, List keyNames) { + assert(keyNames.length == 2 || keyNames.length == 3); + final String primaryPhysicalName = keyNames[0]; + final String primaryLogicalName = keyNames[1]; + final String? secondaryLogicalName = keyNames.length == 3 ? keyNames[2] : null; + final PhysicalKeyEntry primaryPhysical = physicalData.entryByName(primaryPhysicalName); + final LogicalKeyEntry primaryLogical = logicalData.entryByName(primaryLogicalName); + final LogicalKeyEntry? secondaryLogical = secondaryLogicalName == null ? null : logicalData.entryByName(secondaryLogicalName); + if (secondaryLogical == null && secondaryLogicalName != null) { + print('Unrecognized secondary logical key $secondaryLogicalName specified for $debugFunctionName.'); + return; + } + final String pad = secondaryLogical == null ? '' : ' '; + result.writeln(''' + + data = g_new(FlKeyEmbedderCheckedKey, 1); + g_hash_table_insert(table, GUINT_TO_POINTER(GDK_${modifierBitName}_MASK), data); + data->is_caps_lock = ${primaryPhysicalName == 'CapsLock' ? 'true' : 'false'}; + data->primary_physical_key = ${toHex(primaryPhysical.usbHidCode, digits: 9)};$pad // ${primaryPhysical.constantName} + data->primary_logical_key = ${toHex(primaryLogical.value, digits: 11)};$pad // ${primaryLogical.constantName}'''); + if (secondaryLogical != null) { + result.writeln(''' + data->secondary_logical_key = ${toHex(secondaryLogical.value, digits: 11)}; // ${secondaryLogical.constantName}'''); + } + }); + return result.toString().trimRight(); + } + + String get _gtkModifierBitMap { + return constructMapFromModToKeys(_modifierBitMapping, keyData, logicalData, 'gtkModifierBitMap'); + } + final Map> _modifierBitMapping; + + String get _gtkModeBitMap { + return constructMapFromModToKeys(_lockBitMapping, keyData, logicalData, 'gtkModeBitMap'); + } + final Map> _lockBitMapping; + + final Map _layoutGoals; + String get _layoutGoalsString { + final OutputLines lines = OutputLines('GTK layout goals'); + _layoutGoals.forEach((String name, bool mandatory) { + final PhysicalKeyEntry physicalEntry = keyData.entryByName(name); + final LogicalKeyEntry logicalEntry = logicalData.entryByName(name); + final String line = 'LayoutGoal{' + '${toHex(physicalEntry.xKbScanCode, digits: 2)}, ' + '${toHex(logicalEntry.value, digits: 2)}, ' + '${mandatory ? 'true' : 'false'}' + '},'; + lines.add(logicalEntry.value, + ' ${line.padRight(39)}' + '// ${logicalEntry.name}'); + }); + return lines.sortedJoin().trimRight(); + } + + /// This generates the mask values for the part of a key code that defines its plane. + String get _maskConstants { + final StringBuffer buffer = StringBuffer(); + const List maskConstants = [ + kValueMask, + kUnicodePlane, + kGtkPlane, + ]; + for (final MaskConstant constant in maskConstants) { + buffer.writeln('const uint64_t k${constant.upperCamelName} = ${toHex(constant.value, digits: 11)};'); + } + return buffer.toString().trimRight(); + } + + @override + String get templatePath => path.join(dataRoot, 'gtk_key_mapping_cc.tmpl'); + + @override + String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot, + 'shell', 'platform', 'linux', 'key_mapping.g.cc'); + + @override + Map mappings() { + return { + 'XKB_SCAN_CODE_MAP': _xkbScanCodeMap, + 'GTK_KEYVAL_CODE_MAP': _gtkKeyvalCodeMap, + 'GTK_MODIFIER_BIT_MAP': _gtkModifierBitMap, + 'GTK_MODE_BIT_MAP': _gtkModeBitMap, + 'MASK_CONSTANTS': _maskConstants, + 'LAYOUT_GOALS': _layoutGoalsString, + }; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/ios_code_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/ios_code_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..58e53c990b53eaa18d3b4619ac165bb716ae3676 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/ios_code_gen.dart @@ -0,0 +1,153 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:path/path.dart' as path; + +import 'base_code_gen.dart'; +import 'constants.dart'; +import 'data.dart'; +import 'logical_key_data.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + +const List kModifiersOfInterest = [ + 'ShiftLeft', + 'ShiftRight', + 'ControlLeft', + 'ControlRight', + 'AltLeft', + 'AltRight', + 'MetaLeft', + 'MetaRight', +]; + +// The name of keys that require special attention. +const List kSpecialPhysicalKeys = ['CapsLock']; +const List kSpecialLogicalKeys = ['CapsLock']; + +/// Generates the key mapping for iOS, based on the information in the key +/// data structure given to it. +class IOSCodeGenerator extends PlatformCodeGenerator { + IOSCodeGenerator(super.keyData, super.logicalData); + + /// This generates the map of iOS key codes to physical keys. + String get _scanCodeMap { + final OutputLines lines = OutputLines('iOS scancode map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + if (entry.iOSScanCode != null) { + lines.add(entry.iOSScanCode!, + ' {${toHex(entry.iOSScanCode)}, ${toHex(entry.usbHidCode)}}, // ${entry.constantName}'); + } + } + return lines.sortedJoin().trimRight(); + } + + Iterable get _functionKeyData { + final RegExp functionKeyRe = RegExp(r'^f[0-9]+$'); + return keyData.entries.where((PhysicalKeyEntry entry) { + return functionKeyRe.hasMatch(entry.constantName); + }); + } + + String get _functionKeys { + final StringBuffer result = StringBuffer(); + for (final PhysicalKeyEntry entry in _functionKeyData) { + result.writeln(' ${toHex(entry.iOSScanCode)}, // ${entry.constantName}'); + } + return result.toString().trimRight(); + } + + String get _keyCodeToLogicalMap { + final OutputLines lines = OutputLines('iOS keycode map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + zipStrict(entry.iOSKeyCodeValues, entry.iOSKeyCodeNames, (int iOSValue, String iOSName) { + lines.add(iOSValue, ' {${toHex(iOSValue)}, ${toHex(entry.value, digits: 11)}}, // $iOSName'); + }); + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the mask values for the part of a key code that defines its plane. + String get _maskConstants { + final StringBuffer buffer = StringBuffer(); + const List maskConstants = [ + kValueMask, + kUnicodePlane, + kIosPlane, + ]; + for (final MaskConstant constant in maskConstants) { + buffer.writeln('/**'); + buffer.write(wrapString(constant.description, prefix: ' * ')); + buffer.writeln(' */'); + buffer.writeln('const uint64_t k${constant.upperCamelName} = ${toHex(constant.value, digits: 11)};'); + buffer.writeln(); + } + return buffer.toString().trimRight(); + } + + /// This generates a map from the key code to a modifier flag. + String get _keyToModifierFlagMap { + final StringBuffer modifierKeyMap = StringBuffer(); + for (final String name in kModifiersOfInterest) { + final String line = '{${toHex(logicalData.entryByName(name).iOSKeyCodeValues[0])}, kModifierFlag${lowerCamelToUpperCamel(name)}},'; + modifierKeyMap.writeln(' ${line.padRight(42)}// $name'); + } + return modifierKeyMap.toString().trimRight(); + } + + /// This generates a map from the modifier flag to the key code. + String get _modifierFlagToKeyMap { + final StringBuffer modifierKeyMap = StringBuffer(); + for (final String name in kModifiersOfInterest) { + final String line = '{kModifierFlag${lowerCamelToUpperCamel(name)}, ${toHex(logicalData.entryByName(name).iOSKeyCodeValues[0])}},'; + modifierKeyMap.writeln(' ${line.padRight(42)}// $name'); + } + return modifierKeyMap.toString().trimRight(); + } + + String get _specialKeyMapping { + final OutputLines lines = OutputLines('iOS special key mapping'); + kIosSpecialKeyMapping.forEach((String key, String logicalName) { + final int value = logicalData.entryByName(logicalName).value; + lines.add(value, ' @"$key" : @(${toHex(value)}),'); + }); + return lines.join().trimRight(); + } + + /// This generates some keys that needs special attention. + String get _specialKeyConstants { + final StringBuffer specialKeyConstants = StringBuffer(); + for (final String keyName in kSpecialPhysicalKeys) { + specialKeyConstants.writeln('const uint64_t k${keyName}PhysicalKey = ${toHex(keyData.entryByName(keyName).usbHidCode)};'); + } + for (final String keyName in kSpecialLogicalKeys) { + specialKeyConstants.writeln('const uint64_t k${lowerCamelToUpperCamel(keyName)}LogicalKey = ${toHex(logicalData.entryByName(keyName).value)};'); + } + return specialKeyConstants.toString().trimRight(); + } + + @override + String get templatePath => path.join(dataRoot, 'ios_key_code_map_mm.tmpl'); + + @override + String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot, + 'shell', 'platform', 'darwin', 'ios', 'framework', 'Source', 'KeyCodeMap.g.mm'); + + @override + Map mappings() { + // There is no iOS keycode map since iOS uses keycode to represent a physical key. + // The LogicalKeyboardKey is generated by raw_keyboard_ios.dart from the unmodified characters + // from NSEvent. + return { + 'MASK_CONSTANTS': _maskConstants, + 'IOS_SCAN_CODE_MAP': _scanCodeMap, + 'IOS_KEYCODE_LOGICAL_MAP': _keyCodeToLogicalMap, + 'IOS_FUNCTION_KEY_SET': _functionKeys, + 'KEYCODE_TO_MODIFIER_FLAG_MAP': _keyToModifierFlagMap, + 'MODIFIER_FLAG_TO_KEYCODE_MAP': _modifierFlagToKeyMap, + 'SPECIAL_KEY_CONSTANTS': _specialKeyConstants, + 'SPECIAL_KEY_MAPPING': _specialKeyMapping, + }; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/keyboard_keys_code_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/keyboard_keys_code_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..b01f3cc2abd8f756f97c63e0350102dfd62c0b7e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/keyboard_keys_code_gen.dart @@ -0,0 +1,204 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:path/path.dart' as path; + +import 'base_code_gen.dart'; +import 'constants.dart'; +import 'logical_key_data.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + +/// Given an [input] string, wraps the text at 80 characters and prepends each +/// line with the [prefix] string. Use for generated comments. +String _wrapString(String input) { + return wrapString(input, prefix: ' /// '); +} + +final List _maskConstants = [ + kValueMask, + kPlaneMask, + kUnicodePlane, + kUnprintablePlane, + kFlutterPlane, + kStartOfPlatformPlanes, + kAndroidPlane, + kFuchsiaPlane, + kIosPlane, + kMacosPlane, + kGtkPlane, + kWindowsPlane, + kWebPlane, + kGlfwPlane, +]; + +class SynonymKeyInfo { + SynonymKeyInfo(this.keys, this.name); + + final List keys; + final String name; + + // Use the first item in the synonyms as a template for the ID to use. + // It won't end up being the same value because it'll be in the pseudo-key + // plane. + LogicalKeyEntry get primaryKey => keys[0]; + String get constantName => upperCamelToLowerCamel(name); +} + +/// Generates the keyboard_key.g.dart based on the information in the key data +/// structure given to it. +class KeyboardKeysCodeGenerator extends BaseCodeGenerator { + KeyboardKeysCodeGenerator(super.keyData, super.logicalData); + + /// Gets the generated definitions of PhysicalKeyboardKeys. + String get _physicalDefinitions { + final OutputLines lines = OutputLines('Physical Key Definition'); + for (final PhysicalKeyEntry entry in keyData.entries) { + final String firstComment = _wrapString('Represents the location of the ' + '"${entry.commentName}" key on a generalized keyboard.'); + final String otherComments = _wrapString('See the function ' + '[RawKeyEvent.physicalKey] for more information.'); + lines.add(entry.usbHidCode, ''' +$firstComment /// +$otherComments static const PhysicalKeyboardKey ${entry.constantName} = PhysicalKeyboardKey(${toHex(entry.usbHidCode)}); +'''); + } + return lines.sortedJoin().trimRight(); + } + + String get _physicalDebugNames { + final OutputLines lines = OutputLines('Physical debug names'); + for (final PhysicalKeyEntry entry in keyData.entries) { + lines.add(entry.usbHidCode, ''' + ${toHex(entry.usbHidCode)}: '${entry.commentName}','''); + } + return lines.sortedJoin().trimRight(); + } + + /// Gets the generated definitions of LogicalKeyboardKeys. + String get _logicalDefinitions { + final OutputLines lines = OutputLines('Logical debug names', behavior: DeduplicateBehavior.kSkip); + void printKey(int flutterId, String constantName, String commentName, {String? otherComments}) { + final String firstComment = _wrapString('Represents the logical "$commentName" key on the keyboard.'); + otherComments ??= _wrapString('See the function [RawKeyEvent.logicalKey] for more information.'); + lines.add(flutterId, ''' +$firstComment /// +$otherComments static const LogicalKeyboardKey $constantName = LogicalKeyboardKey(${toHex(flutterId, digits: 11)}); +'''); + } + + for (final LogicalKeyEntry entry in logicalData.entries) { + printKey( + entry.value, + entry.constantName, + entry.commentName, + otherComments: _otherComments(entry.name), + ); + } + return lines.sortedJoin().trimRight(); + } + + String? _otherComments(String name) { + if (synonyms.containsKey(name)) { + final Set unionNames = synonyms[name]!.keys.map( + (LogicalKeyEntry entry) => entry.constantName).toSet(); + return _wrapString('This key represents the union of the keys ' + '$unionNames when comparing keys. This key will never be generated ' + 'directly, its main use is in defining key maps.'); + } + return null; + } + + String get _logicalSynonyms { + final StringBuffer result = StringBuffer(); + for (final SynonymKeyInfo synonymInfo in synonyms.values) { + for (final LogicalKeyEntry key in synonymInfo.keys) { + final LogicalKeyEntry synonym = logicalData.entryByName(synonymInfo.name); + result.writeln(' ${key.constantName}: {${synonym.constantName}},'); + } + } + return result.toString(); + } + + String get _logicalReverseSynonyms { + final StringBuffer result = StringBuffer(); + for (final SynonymKeyInfo synonymInfo in synonyms.values) { + final LogicalKeyEntry synonym = logicalData.entryByName(synonymInfo.name); + final List entries = synonymInfo.keys.map((LogicalKeyEntry entry) => entry.constantName).toList(); + result.writeln(' ${synonym.constantName}: {${entries.join(', ')}},'); + } + return result.toString(); + } + + String get _logicalKeyLabels { + final OutputLines lines = OutputLines('Logical key labels', behavior: DeduplicateBehavior.kSkip); + for (final LogicalKeyEntry entry in logicalData.entries) { + lines.add(entry.value, ''' + ${toHex(entry.value, digits: 11)}: '${entry.commentName}','''); + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of USB HID codes to physical keys. + String get _predefinedHidCodeMap { + final OutputLines lines = OutputLines('Physical key map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + lines.add(entry.usbHidCode, ' ${toHex(entry.usbHidCode)}: ${entry.constantName},'); + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Flutter key codes to logical keys. + String get _predefinedKeyCodeMap { + final OutputLines lines = OutputLines('Logical key map', behavior: DeduplicateBehavior.kSkip); + for (final LogicalKeyEntry entry in logicalData.entries) { + lines.add(entry.value, ' ${toHex(entry.value, digits: 11)}: ${entry.constantName},'); + } + return lines.sortedJoin().trimRight(); + } + + String get _maskConstantVariables { + final OutputLines lines = OutputLines('Mask constants', behavior: DeduplicateBehavior.kKeep); + for (final MaskConstant constant in _maskConstants) { + lines.add(constant.value, ''' +${_wrapString(constant.description)} /// + /// This is used by platform-specific code to generate Flutter key codes. + static const int ${constant.lowerCamelName} = ${toHex(constant.value, digits: 11)}; +'''); + } + return lines.join().trimRight(); + } + + @override + String get templatePath => path.join(dataRoot, 'keyboard_key.tmpl'); + + @override + Map mappings() { + return { + 'LOGICAL_KEY_MAP': _predefinedKeyCodeMap, + 'LOGICAL_KEY_DEFINITIONS': _logicalDefinitions, + 'LOGICAL_KEY_SYNONYMS': _logicalSynonyms, + 'LOGICAL_KEY_REVERSE_SYNONYMS': _logicalReverseSynonyms, + 'LOGICAL_KEY_KEY_LABELS': _logicalKeyLabels, + 'PHYSICAL_KEY_MAP': _predefinedHidCodeMap, + 'PHYSICAL_KEY_DEFINITIONS': _physicalDefinitions, + 'PHYSICAL_KEY_DEBUG_NAMES': _physicalDebugNames, + 'MASK_CONSTANTS': _maskConstantVariables, + }; + } + + late final Map synonyms = Map.fromEntries( + LogicalKeyData.synonyms.entries.map((MapEntry> synonymDefinition) { + final List entries = synonymDefinition.value.map( + (String name) => logicalData.entryByName(name)).toList(); + return MapEntry( + synonymDefinition.key, + SynonymKeyInfo( + entries, + synonymDefinition.key, + ), + ); + }), + ); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/keyboard_maps_code_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/keyboard_maps_code_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..1224887605c1706fdf8010d006e33a2c52a41d9b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/keyboard_maps_code_gen.dart @@ -0,0 +1,380 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +import 'package:path/path.dart' as path; + +import 'base_code_gen.dart'; +import 'data.dart'; +import 'logical_key_data.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + +bool _isAsciiLetter(String? char) { + if (char == null) { + return false; + } + const int charUpperA = 0x41; + const int charUpperZ = 0x5A; + const int charLowerA = 0x61; + const int charLowerZ = 0x7A; + assert(char.length == 1); + final int charCode = char.codeUnitAt(0); + return (charCode >= charUpperA && charCode <= charUpperZ) + || (charCode >= charLowerA && charCode <= charLowerZ); +} + +bool _isDigit(String? char) { + if (char == null) { + return false; + } + final int charDigit0 = '0'.codeUnitAt(0); + final int charDigit9 = '9'.codeUnitAt(0); + assert(char.length == 1); + final int charCode = char.codeUnitAt(0); + return charCode >= charDigit0 && charCode <= charDigit9; +} + +/// Generates the keyboard_maps.g.dart files, based on the information in the key +/// data structure given to it. +class KeyboardMapsCodeGenerator extends BaseCodeGenerator { + KeyboardMapsCodeGenerator(super.keyData, super.logicalData); + + List get _numpadKeyData { + return keyData.entries.where((PhysicalKeyEntry entry) { + return entry.constantName.startsWith('numpad') && LogicalKeyData.printable.containsKey(entry.name); + }).toList(); + } + + List get _functionKeyData { + final RegExp functionKeyRe = RegExp(r'^f[0-9]+$'); + return keyData.entries.where((PhysicalKeyEntry entry) { + return functionKeyRe.hasMatch(entry.constantName); + }).toList(); + } + + List get _numpadLogicalKeyData { + return logicalData.entries.where((LogicalKeyEntry entry) { + return entry.constantName.startsWith('numpad') && LogicalKeyData.printable.containsKey(entry.name); + }).toList(); + } + + /// This generates the map of GLFW number pad key codes to logical keys. + String get _glfwNumpadMap { + final OutputLines lines = OutputLines('GLFW numpad map'); + for (final PhysicalKeyEntry entry in _numpadKeyData) { + final LogicalKeyEntry logicalKey = logicalData.entryByName(entry.name); + for (final int code in logicalKey.glfwValues) { + lines.add(code, ' $code: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of GLFW key codes to logical keys. + String get _glfwKeyCodeMap { + final OutputLines lines = OutputLines('GLFW key code map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + for (final int value in entry.glfwValues) { + lines.add(value, ' $value: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of GTK number pad key codes to logical keys. + String get _gtkNumpadMap { + final OutputLines lines = OutputLines('GTK numpad map'); + for (final LogicalKeyEntry entry in _numpadLogicalKeyData) { + for (final int code in entry.gtkValues) { + lines.add(code, ' $code: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of GTK key codes to logical keys. + String get _gtkKeyCodeMap { + final OutputLines lines = OutputLines('GTK key code map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + for (final int code in entry.gtkValues) { + lines.add(code, ' $code: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of XKB USB HID codes to physical keys. + String get _xkbScanCodeMap { + final OutputLines lines = OutputLines('GTK scancode map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + if (entry.xKbScanCode != null) { + lines.add(entry.xKbScanCode!, + ' ${toHex(entry.xKbScanCode)}: PhysicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Android key codes to logical keys. + String get _androidKeyCodeMap { + final OutputLines lines = OutputLines('Android key code map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + for (final int code in entry.androidValues) { + lines.add(code, ' $code: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Android number pad key codes to logical keys. + String get _androidNumpadMap { + final OutputLines lines = OutputLines('Android numpad map'); + for (final LogicalKeyEntry entry in _numpadLogicalKeyData) { + for (final int code in entry.androidValues) { + lines.add(code, ' $code: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Android scan codes to physical keys. + String get _androidScanCodeMap { + final OutputLines lines = OutputLines('Android scancode map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + for (final int code in entry.androidScanCodes) { + lines.add(code, ' $code: PhysicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Windows scan codes to physical keys. + String get _windowsScanCodeMap { + final OutputLines lines = OutputLines('Windows scancode map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + if (entry.windowsScanCode != null) { + lines.add(entry.windowsScanCode!, ' ${entry.windowsScanCode}: PhysicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Windows number pad key codes to logical keys. + String get _windowsNumpadMap { + final OutputLines lines = OutputLines('Windows numpad map'); + for (final LogicalKeyEntry entry in _numpadLogicalKeyData) { + for (final int code in entry.windowsValues) { + lines.add(code, ' $code: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Windows key codes to logical keys. + String get _windowsKeyCodeMap { + final OutputLines lines = OutputLines('Windows key code map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + // Letter keys on Windows are not recorded in logical_key_data.g.json, + // because they are not used by the embedding. Add them manually. + final List? keyCodes = entry.windowsValues.isNotEmpty + ? entry.windowsValues + : (_isAsciiLetter(entry.keyLabel) ? [entry.keyLabel!.toUpperCase().codeUnitAt(0)] : + _isDigit(entry.keyLabel) ? [entry.keyLabel!.toUpperCase().codeUnitAt(0)] : + null); + if (keyCodes != null) { + for (final int code in keyCodes) { + lines.add(code, ' $code: LogicalKeyboardKey.${entry.constantName},'); + } + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of macOS key codes to physical keys. + String get _macOSScanCodeMap { + final OutputLines lines = OutputLines('macOS scancode map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + if (entry.macOSScanCode != null) { + lines.add(entry.macOSScanCode!, ' ${toHex(entry.macOSScanCode)}: PhysicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of macOS number pad key codes to logical keys. + String get _macOSNumpadMap { + final OutputLines lines = OutputLines('macOS numpad map'); + for (final PhysicalKeyEntry entry in _numpadKeyData) { + if (entry.macOSScanCode != null) { + lines.add(entry.macOSScanCode!, ' ${toHex(entry.macOSScanCode)}: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + String get _macOSFunctionKeyMap { + final OutputLines lines = OutputLines('macOS function key map'); + for (final PhysicalKeyEntry entry in _functionKeyData) { + if (entry.macOSScanCode != null) { + lines.add(entry.macOSScanCode!, ' ${toHex(entry.macOSScanCode)}: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of macOS key codes to physical keys. + String get _macOSKeyCodeMap { + final OutputLines lines = OutputLines('MacOS key code map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + for (final int code in entry.macOSKeyCodeValues) { + lines.add(code, ' $code: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of iOS key codes to physical keys. + String get _iOSScanCodeMap { + final OutputLines lines = OutputLines('iOS scancode map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + if (entry.iOSScanCode != null) { + lines.add(entry.iOSScanCode!, ' ${toHex(entry.iOSScanCode)}: PhysicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of iOS key label to logical keys for special keys. + String get _iOSSpecialMap { + final OutputLines lines = OutputLines('iOS special key mapping'); + kIosSpecialKeyMapping.forEach((String key, String logicalName) { + final LogicalKeyEntry entry = logicalData.entryByName(logicalName); + lines.add(entry.value, " '$key': LogicalKeyboardKey.${entry.constantName},"); + }); + return lines.join().trimRight(); + } + + /// This generates the map of iOS number pad key codes to logical keys. + String get _iOSNumpadMap { + final OutputLines lines = OutputLines('iOS numpad map'); + for (final PhysicalKeyEntry entry in _numpadKeyData) { + if (entry.iOSScanCode != null) { + lines.add(entry.iOSScanCode!,' ${toHex(entry.iOSScanCode)}: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of macOS key codes to physical keys. + String get _iOSKeyCodeMap { + final OutputLines lines = OutputLines('iOS key code map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + for (final int code in entry.iOSKeyCodeValues) { + lines.add(code, ' $code: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Fuchsia key codes to logical keys. + String get _fuchsiaKeyCodeMap { + final OutputLines lines = OutputLines('Fuchsia key code map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + for (final int value in entry.fuchsiaValues) { + lines.add(value, ' ${toHex(value)}: LogicalKeyboardKey.${entry.constantName},'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Fuchsia USB HID codes to physical keys. + String get _fuchsiaHidCodeMap { + final StringBuffer fuchsiaScanCodeMap = StringBuffer(); + for (final PhysicalKeyEntry entry in keyData.entries) { + fuchsiaScanCodeMap.writeln(' ${toHex(entry.usbHidCode)}: PhysicalKeyboardKey.${entry.constantName},'); + } + return fuchsiaScanCodeMap.toString().trimRight(); + } + + /// This generates the map of Web KeyboardEvent codes to logical keys. + String get _webLogicalKeyMap { + final OutputLines lines = OutputLines('Web logical key map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + for (final String name in entry.webNames) { + lines.add(name, " '$name': LogicalKeyboardKey.${entry.constantName},"); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Web KeyboardEvent codes to physical keys. + String get _webPhysicalKeyMap { + final OutputLines lines = OutputLines('Web physical key map', behavior: DeduplicateBehavior.kKeep); + for (final PhysicalKeyEntry entry in keyData.entries) { + for (final String webCodes in entry.webCodes()) { + lines.add(entry.name, " '$webCodes': PhysicalKeyboardKey.${entry.constantName},"); + } + } + return lines.sortedJoin().trimRight(); + } + + String get _webNumpadMap { + final OutputLines lines = OutputLines('Web numpad map'); + for (final LogicalKeyEntry entry in _numpadLogicalKeyData) { + lines.add(entry.name, " '${entry.name}': LogicalKeyboardKey.${entry.constantName},"); + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Web number pad codes to logical keys. + String get _webLocationMap { + final String jsonRaw = File(path.join(dataRoot, 'web_logical_location_mapping.json')).readAsStringSync(); + final Map> locationMap = parseMapOfListOfNullableString(jsonRaw); + final OutputLines lines = OutputLines('Web location map'); + locationMap.forEach((String key, List keyNames) { + final String keyStrings = keyNames.map((String? keyName) { + final String? constantName = keyName == null ? null : logicalData.entryByName(keyName).constantName; + return constantName != null ? 'LogicalKeyboardKey.$constantName' : 'null'; + }).join(', '); + lines.add(key, " '$key': [$keyStrings],"); + }); + return lines.sortedJoin().trimRight(); + } + + @override + String get templatePath => path.join(dataRoot, 'keyboard_maps.tmpl'); + + @override + Map mappings() { + return { + 'ANDROID_SCAN_CODE_MAP': _androidScanCodeMap, + 'ANDROID_KEY_CODE_MAP': _androidKeyCodeMap, + 'ANDROID_NUMPAD_MAP': _androidNumpadMap, + 'FUCHSIA_SCAN_CODE_MAP': _fuchsiaHidCodeMap, + 'FUCHSIA_KEY_CODE_MAP': _fuchsiaKeyCodeMap, + 'MACOS_SCAN_CODE_MAP': _macOSScanCodeMap, + 'MACOS_NUMPAD_MAP': _macOSNumpadMap, + 'MACOS_FUNCTION_KEY_MAP': _macOSFunctionKeyMap, + 'MACOS_KEY_CODE_MAP': _macOSKeyCodeMap, + 'IOS_SCAN_CODE_MAP': _iOSScanCodeMap, + 'IOS_SPECIAL_MAP': _iOSSpecialMap, + 'IOS_NUMPAD_MAP': _iOSNumpadMap, + 'IOS_KEY_CODE_MAP': _iOSKeyCodeMap, + 'GLFW_KEY_CODE_MAP': _glfwKeyCodeMap, + 'GLFW_NUMPAD_MAP': _glfwNumpadMap, + 'GTK_KEY_CODE_MAP': _gtkKeyCodeMap, + 'GTK_NUMPAD_MAP': _gtkNumpadMap, + 'XKB_SCAN_CODE_MAP': _xkbScanCodeMap, + 'WEB_LOGICAL_KEY_MAP': _webLogicalKeyMap, + 'WEB_PHYSICAL_KEY_MAP': _webPhysicalKeyMap, + 'WEB_NUMPAD_MAP': _webNumpadMap, + 'WEB_LOCATION_MAP': _webLocationMap, + 'WINDOWS_LOGICAL_KEY_MAP': _windowsKeyCodeMap, + 'WINDOWS_PHYSICAL_KEY_MAP': _windowsScanCodeMap, + 'WINDOWS_NUMPAD_MAP': _windowsNumpadMap, + }; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/logical_key_data.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/logical_key_data.dart new file mode 100644 index 0000000000000000000000000000000000000000..4585c7f6e13294a9b1133dbc40c7284c34ae5904 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/logical_key_data.dart @@ -0,0 +1,659 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:io'; + +import 'package:path/path.dart' as path; + +import 'constants.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + +bool _isControlCharacter(int codeUnit) { + return (codeUnit <= 0x1f && codeUnit >= 0x00) || (codeUnit >= 0x7f && codeUnit <= 0x9f); +} + +/// A pair of strings that represents left and right modifiers. +class _ModifierPair { + const _ModifierPair(this.left, this.right); + + final String left; + final String right; +} + +// Return map[key1][key2] as a non-nullable List, where both map[key1] or +// map[key1][key2] might be null. +List _getGrandchildList(Map map, String key1, String key2) { + final dynamic value = (map[key1] as Map?)?[key2]; + final List? dynamicNullableList = value as List?; + final List dynamicList = dynamicNullableList ?? []; + return dynamicList.cast(); +} + +/// The data structure used to manage keyboard key entries. +/// +/// The main constructor parses the given input data into the data structure. +/// +/// The data structure can be also loaded and saved to JSON, with the +/// [LogicalKeyData.fromJson] constructor and [toJson] method, respectively. +class LogicalKeyData { + factory LogicalKeyData( + String chromiumKeys, + String gtkKeyCodeHeader, + String gtkNameMap, + String windowsKeyCodeHeader, + String windowsNameMap, + String androidKeyCodeHeader, + String androidNameMap, + String macosLogicalToPhysical, + String iosLogicalToPhysical, + String glfwHeaderFile, + String glfwNameMap, + PhysicalKeyData physicalKeyData, + ) { + final Map data = _readKeyEntries(chromiumKeys); + _readWindowsKeyCodes(data, windowsKeyCodeHeader, parseMapOfListOfString(windowsNameMap)); + _readGtkKeyCodes(data, gtkKeyCodeHeader, parseMapOfListOfString(gtkNameMap)); + _readAndroidKeyCodes(data, androidKeyCodeHeader, parseMapOfListOfString(androidNameMap)); + _readMacOsKeyCodes(data, physicalKeyData, parseMapOfListOfString(macosLogicalToPhysical)); + _readIosKeyCodes(data, physicalKeyData, parseMapOfListOfString(iosLogicalToPhysical)); + _readFuchsiaKeyCodes(data, physicalKeyData); + _readGlfwKeyCodes(data, glfwHeaderFile, parseMapOfListOfString(glfwNameMap)); + // Sort entries by value + final List> sortedEntries = data.entries.toList()..sort( + (MapEntry a, MapEntry b) => + LogicalKeyEntry.compareByValue(a.value, b.value), + ); + data + ..clear() + ..addEntries(sortedEntries); + return LogicalKeyData._(data); + } + + /// Parses the given JSON data and populates the data structure from it. + factory LogicalKeyData.fromJson(Map contentMap) { + final Map data = {}; + data.addEntries(contentMap.values.map((dynamic value) { + final LogicalKeyEntry entry = LogicalKeyEntry.fromJsonMapEntry(value as Map); + return MapEntry(entry.name, entry); + })); + return LogicalKeyData._(data); + } + + /// Parses the input data given in from the various data source files, + /// populating the data structure. + /// + /// None of the parameters may be null. + LogicalKeyData._(this._data); + + /// Converts the data structure into a JSON structure that can be parsed by + /// [LogicalKeyData.fromJson]. + Map toJson() { + final Map outputMap = {}; + for (final LogicalKeyEntry entry in _data.values) { + outputMap[entry.name] = entry.toJson(); + } + return outputMap; + } + + /// Find an entry from name. + /// + /// Asserts if the name is not found. + LogicalKeyEntry entryByName(String name) { + assert(_data.containsKey(name), + 'Unable to find logical entry by name $name.'); + return _data[name]!; + } + + /// All entries. + Iterable get entries => _data.values; + + // Keys mapped from their names. + final Map _data; + + /// Parses entries from Chromium's key mapping header file. + /// + /// Lines in this file look like either of these (without the ///): + /// Key Enum Unicode code point + /// DOM_KEY_UNI("Backspace", BACKSPACE, 0x0008), + /// Key Enum Value + /// DOM_KEY_MAP("Accel", ACCEL, 0x0101), + /// + /// Flutter's supplemental_key_data.inc also has some new formats. + /// The following format uses a character as the 3rd argument. + /// Key Enum Character + /// DOM_KEY_UNI("KeyB", KEY_B, 'b'), + /// + /// The following format should be mapped to the Flutter plane. + /// Key Enum Character + /// FLUTTER_KEY_MAP("Lang4", LANG4, 0x00013), + static Map _readKeyEntries(String input) { + final Map dataByValue = {}; + final RegExp domKeyRegExp = RegExp( + r'(?DOM|FLUTTER)_KEY_(?UNI|MAP)\s*\(\s*' + r'"(?[^\s]+?)",\s*' + r'(?[^\s]+?),\s*' + r"(?:0[xX](?[a-fA-F0-9]+)|'(?.)')\s*" + r'\)', + // Multiline is necessary because some definitions spread across + // multiple lines. + multiLine: true, + ); + final RegExp commentRegExp = RegExp(r'//.*$', multiLine: true); + input = input.replaceAll(commentRegExp, ''); + for (final RegExpMatch match in domKeyRegExp.allMatches(input)) { + final String source = match.namedGroup('source')!; + final String webName = match.namedGroup('name')!; + // ".AltGraphLatch" is consumed internally and not expressed to the Web. + if (webName.startsWith('.')) { + continue; + } + final String name = LogicalKeyEntry.computeName(webName.replaceAll(RegExp('[^A-Za-z0-9]'), '')); + final int value = match.namedGroup('unicode') != null ? + getHex(match.namedGroup('unicode')!) : + match.namedGroup('char')!.codeUnitAt(0); + final String? keyLabel = (match.namedGroup('kind')! == 'UNI' && !_isControlCharacter(value)) ? + String.fromCharCode(value) : null; + // Skip modifier keys from DOM. They will be added with supplemental data. + if (_chromeModifiers.containsKey(name) && source == 'DOM') { + continue; + } + + final bool isPrintable = keyLabel != null; + final int entryValue = toPlane(value, _sourceToPlane(source, isPrintable)); + final LogicalKeyEntry entry = dataByValue.putIfAbsent(entryValue, () => + LogicalKeyEntry.fromName( + value: entryValue, + name: name, + keyLabel: keyLabel, + ), + ); + if (source == 'DOM' && !isPrintable) { + entry.webNames.add(webName); + } + } + return Map.fromEntries( + dataByValue.values.map((LogicalKeyEntry entry) => + MapEntry(entry.name, entry), + ), + ); + } + + static void _readMacOsKeyCodes( + Map data, + PhysicalKeyData physicalKeyData, + Map> logicalToPhysical, + ) { + final Map physicalToLogical = reverseMapOfListOfString(logicalToPhysical, + (String logicalKeyName, String physicalKeyName) { print('Duplicate logical key name $logicalKeyName for macOS'); }); + + physicalToLogical.forEach((String physicalKeyName, String logicalKeyName) { + final PhysicalKeyEntry physicalEntry = physicalKeyData.entryByName(physicalKeyName); + assert(physicalEntry.macOSScanCode != null, + 'Physical entry $physicalKeyName does not have a macOSScanCode.'); + final LogicalKeyEntry? logicalEntry = data[logicalKeyName]; + assert(logicalEntry != null, + 'Unable to find logical entry by name $logicalKeyName.'); + logicalEntry!.macOSKeyCodeNames.add(physicalEntry.name); + logicalEntry.macOSKeyCodeValues.add(physicalEntry.macOSScanCode!); + }); + } + + static void _readIosKeyCodes( + Map data, + PhysicalKeyData physicalKeyData, + Map> logicalToPhysical, + ) { + final Map physicalToLogical = reverseMapOfListOfString(logicalToPhysical, + (String logicalKeyName, String physicalKeyName) { print('Duplicate logical key name $logicalKeyName for iOS'); }); + + physicalToLogical.forEach((String physicalKeyName, String logicalKeyName) { + final PhysicalKeyEntry physicalEntry = physicalKeyData.entryByName(physicalKeyName); + assert(physicalEntry.iOSScanCode != null, + 'Physical entry $physicalKeyName does not have an iosScanCode.'); + final LogicalKeyEntry? logicalEntry = data[logicalKeyName]; + assert(logicalEntry != null, + 'Unable to find logical entry by name $logicalKeyName.'); + logicalEntry!.iOSKeyCodeNames.add(physicalEntry.name); + logicalEntry.iOSKeyCodeValues.add(physicalEntry.iOSScanCode!); + }); + } + + /// Parses entries from GTK's gdkkeysyms.h key code data file. + /// + /// Lines in this file look like this (without the ///): + /// /** Space key. */ + /// #define GDK_KEY_space 0x020 + static void _readGtkKeyCodes(Map data, String headerFile, Map> nameToGtkName) { + final RegExp definedCodes = RegExp( + r'#define ' + r'GDK_KEY_(?[a-zA-Z0-9_]+)\s*' + r'0x(?[0-9a-f]+),?', + ); + final Map gtkNameToFlutterName = reverseMapOfListOfString(nameToGtkName, + (String flutterName, String gtkName) { print('Duplicate GTK logical name $gtkName'); }); + + for (final RegExpMatch match in definedCodes.allMatches(headerFile)) { + final String gtkName = match.namedGroup('name')!; + final String? name = gtkNameToFlutterName[gtkName]; + final int value = int.parse(match.namedGroup('value')!, radix: 16); + if (name == null) { + // print('Unmapped GTK logical entry $gtkName'); + continue; + } + + final LogicalKeyEntry? entry = data[name]; + if (entry == null) { + print('Invalid logical entry by name $name (from GTK $gtkName)'); + continue; + } + entry + ..gtkNames.add(gtkName) + ..gtkValues.add(value); + } + } + + static void _readWindowsKeyCodes(Map data, String headerFile, Map> nameMap) { + // The mapping from the Flutter name (e.g. "enter") to the Windows name (e.g. + // "RETURN"). + final Map nameToFlutterName = reverseMapOfListOfString(nameMap, + (String flutterName, String windowsName) { print('Duplicate Windows logical name $windowsName'); }); + + final RegExp definedCodes = RegExp( + r'define ' + r'VK_(?[A-Z0-9_]+)\s*' + r'(?[A-Z0-9_x]+),?', + ); + for (final RegExpMatch match in definedCodes.allMatches(headerFile)) { + final String windowsName = match.namedGroup('name')!; + final String? name = nameToFlutterName[windowsName]; + final int value = int.tryParse(match.namedGroup('value')!)!; + if (name == null) { + print('Unmapped Windows logical entry $windowsName'); + continue; + } + final LogicalKeyEntry? entry = data[name]; + if (entry == null) { + print('Invalid logical entry by name $name (from Windows $windowsName)'); + continue; + } + addNameValue( + entry.windowsNames, + entry.windowsValues, + windowsName, + value, + ); + } + } + + /// Parses entries from Android's keycodes.h key code data file. + /// + /// Lines in this file look like this (without the ///): + /// /** Left Control modifier key. */ + /// AKEYCODE_CTRL_LEFT = 113, + static void _readAndroidKeyCodes(Map data, String headerFile, Map> nameMap) { + final Map nameToFlutterName = reverseMapOfListOfString(nameMap, + (String flutterName, String androidName) { print('Duplicate Android logical name $androidName'); }); + + final RegExp enumBlock = RegExp(r'enum\s*\{(.*)\};', multiLine: true); + // Eliminate everything outside of the enum block. + headerFile = headerFile.replaceAllMapped(enumBlock, (Match match) => match.group(1)!); + final RegExp enumEntry = RegExp( + r'AKEYCODE_(?[A-Z0-9_]+)\s*' + r'=\s*' + r'(?[0-9]+),?', + ); + for (final RegExpMatch match in enumEntry.allMatches(headerFile)) { + final String androidName = match.namedGroup('name')!; + final String? name = nameToFlutterName[androidName]; + final int value = int.tryParse(match.namedGroup('value')!)!; + if (name == null) { + print('Unmapped Android logical entry $androidName'); + continue; + } + final LogicalKeyEntry? entry = data[name]; + if (entry == null) { + print('Invalid logical entry by name $name (from Android $androidName)'); + continue; + } + entry + ..androidNames.add(androidName) + ..androidValues.add(value); + } + } + + static void _readFuchsiaKeyCodes(Map data, PhysicalKeyData physicalData) { + for (final LogicalKeyEntry entry in data.values) { + final int? value = (() { + if (entry.value == 0) { + return 0; + } + final String? keyLabel = printable[entry.constantName]; + if (keyLabel != null && !entry.constantName.startsWith('numpad')) { + return toPlane(keyLabel.codeUnitAt(0), kUnicodePlane.value); + } else { + final PhysicalKeyEntry? physicalEntry = physicalData.tryEntryByName(entry.name); + if (physicalEntry != null) { + return toPlane(physicalEntry.usbHidCode, kFuchsiaPlane.value); + } + } + })(); + if (value != null) { + entry.fuchsiaValues.add(value); + } + } + } + + /// Parses entries from GLFW's keycodes.h key code data file. + /// + /// Lines in this file look like this (without the ///): + /// /** Space key. */ + /// #define GLFW_KEY_SPACE 32, + /// #define GLFW_KEY_LAST GLFW_KEY_MENU + static void _readGlfwKeyCodes(Map data, String headerFile, Map> nameMap) { + final Map nameToFlutterName = reverseMapOfListOfString(nameMap, + (String flutterName, String glfwName) { print('Duplicate GLFW logical name $glfwName'); }); + + // Only get the KEY definitions, ignore the rest (mouse, joystick, etc). + final RegExp definedCodes = RegExp( + r'define\s+' + r'GLFW_KEY_(?[A-Z0-9_]+)\s+' + r'(?[A-Z0-9_]+),?', + ); + final Map replaced = {}; + for (final RegExpMatch match in definedCodes.allMatches(headerFile)) { + final String name = match.namedGroup('name')!; + final String value = match.namedGroup('value')!; + replaced[name] = int.tryParse(value) ?? value.replaceAll('GLFW_KEY_', ''); + } + final Map glfwNameToKeyCode = {}; + replaced.forEach((String key, dynamic value) { + // Some definition values point to other definitions (e.g #define GLFW_KEY_LAST GLFW_KEY_MENU). + if (value is String) { + glfwNameToKeyCode[key] = replaced[value] as int; + } else { + glfwNameToKeyCode[key] = value as int; + } + }); + + glfwNameToKeyCode.forEach((String glfwName, int value) { + final String? name = nameToFlutterName[glfwName]; + if (name == null) { + return; + } + final LogicalKeyEntry? entry = data[nameToFlutterName[glfwName]]; + if (entry == null) { + print('Invalid logical entry by name $name (from GLFW $glfwName)'); + return; + } + addNameValue( + entry.glfwNames, + entry.glfwValues, + glfwName, + value, + ); + }); + } + + // Map Web key to the pair of key names + static final Map _chromeModifiers = () { + final String rawJson = File(path.join(dataRoot, 'chromium_modifiers.json',)).readAsStringSync(); + return (json.decode(rawJson) as Map).map((String key, dynamic value) { + final List pair = value as List; + return MapEntry(key, _ModifierPair(pair[0] as String, pair[1] as String)); + }); + }(); + + /// Returns the static map of printable representations. + static final Map printable = (() { + final String printableKeys = File(path.join(dataRoot, 'printable.json',)).readAsStringSync(); + return (json.decode(printableKeys) as Map) + .cast(); + })(); + + /// Returns the static map of synonym representations. + /// + /// These include synonyms for keys which don't have printable + /// representations, and appear in more than one place on the keyboard (e.g. + /// SHIFT, ALT, etc.). + static final Map> synonyms = (() { + final String synonymKeys = File(path.join(dataRoot, 'synonyms.json',)).readAsStringSync(); + final Map dynamicSynonym = json.decode(synonymKeys) as Map; + return dynamicSynonym.map((String name, dynamic values) { + // The keygen and algorithm of macOS relies on synonyms being pairs. + // See siblingKeyMap in macos_code_gen.dart. + final List names = (values as List).whereType().toList(); + assert(names.length == 2); + return MapEntry>(name, names); + }); + })(); + + static int _sourceToPlane(String source, bool isPrintable) { + if (isPrintable) { + return kUnicodePlane.value; + } + switch (source) { + case 'DOM': + return kUnprintablePlane.value; + case 'FLUTTER': + return kFlutterPlane.value; + default: + assert(false, 'Unrecognized logical key source $source'); + return kFlutterPlane.value; + } + } +} + + +/// A single entry in the key data structure. +/// +/// Can be read from JSON with the [LogicalKeyEntry.fromJsonMapEntry] constructor, or +/// written with the [toJson] method. +class LogicalKeyEntry { + /// Creates a single key entry from available data. + LogicalKeyEntry({ + required this.value, + required this.name, + this.keyLabel, + }) : webNames = [], + macOSKeyCodeNames = [], + macOSKeyCodeValues = [], + iOSKeyCodeNames = [], + iOSKeyCodeValues = [], + gtkNames = [], + gtkValues = [], + windowsNames = [], + windowsValues = [], + androidNames = [], + androidValues = [], + fuchsiaValues = [], + glfwNames = [], + glfwValues = []; + + LogicalKeyEntry.fromName({ + required int value, + required String name, + String? keyLabel, + }) : this( + value: value, + name: name, + keyLabel: keyLabel, + ); + + /// Populates the key from a JSON map. + LogicalKeyEntry.fromJsonMapEntry(Map map) + : value = map['value'] as int, + name = map['name'] as String, + webNames = _getGrandchildList(map, 'names', 'web'), + macOSKeyCodeNames = _getGrandchildList(map, 'names', 'macos'), + macOSKeyCodeValues = _getGrandchildList(map, 'values', 'macos'), + iOSKeyCodeNames = _getGrandchildList(map, 'names', 'ios'), + iOSKeyCodeValues = _getGrandchildList(map, 'values', 'ios'), + gtkNames = _getGrandchildList(map, 'names', 'gtk'), + gtkValues = _getGrandchildList(map, 'values', 'gtk'), + windowsNames = _getGrandchildList(map, 'names', 'windows'), + windowsValues = _getGrandchildList(map, 'values', 'windows'), + androidNames = _getGrandchildList(map, 'names', 'android'), + androidValues = _getGrandchildList(map, 'values', 'android'), + fuchsiaValues = _getGrandchildList(map, 'values', 'fuchsia'), + glfwNames = _getGrandchildList(map, 'names', 'glfw'), + glfwValues = _getGrandchildList(map, 'values', 'glfw'), + keyLabel = map['keyLabel'] as String?; + + final int value; + + final String name; + + /// The name of the key suitable for placing in comments. + String get commentName => computeCommentName(name); + + String get constantName => computeConstantName(commentName); + + /// The name of the key, mostly derived from the DomKey name in Chromium, + /// but where there was no DomKey representation, derived from the Chromium + /// symbol name. + final List webNames; + + /// The names of the key codes that corresponds to this logical key on macOS, + /// created from the corresponding physical keys. + final List macOSKeyCodeNames; + + /// The key codes that corresponds to this logical key on macOS, created from + /// the physical key list substituted with the key mapping. + final List macOSKeyCodeValues; + + /// The names of the key codes that corresponds to this logical key on iOS, + /// created from the corresponding physical keys. + final List iOSKeyCodeNames; + + /// The key codes that corresponds to this logical key on iOS, created from the + /// physical key list substituted with the key mapping. + final List iOSKeyCodeValues; + + /// The list of names that GTK gives to this key (symbol names minus the + /// prefix). + final List gtkNames; + + /// The list of GTK key codes matching this key, created by looking up the + /// Linux name in the GTK data, and substituting the GTK key code + /// value. + final List gtkValues; + + /// The list of names that Windows gives to this key (symbol names minus the + /// prefix). + final List windowsNames; + + /// The list of Windows key codes matching this key, created by looking up the + /// Windows name in the Chromium data, and substituting the Windows key code + /// value. + final List windowsValues; + + /// The list of names that Android gives to this key (symbol names minus the + /// prefix). + final List androidNames; + + /// The list of Android key codes matching this key, created by looking up the + /// Android name in the Chromium data, and substituting the Android key code + /// value. + final List androidValues; + + final List fuchsiaValues; + + /// The list of names that GLFW gives to this key (symbol names minus the + /// prefix). + final List glfwNames; + + /// The list of GLFW key codes matching this key, created by looking up the + /// GLFW name in the Chromium data, and substituting the GLFW key code + /// value. + final List glfwValues; + + /// A string indicating the letter on the keycap of a letter key. + /// + /// This is only used to generate the key label mapping in keyboard_maps.g.dart. + /// [LogicalKeyboardKey.keyLabel] uses a different definition and is generated + /// differently. + final String? keyLabel; + + /// Creates a JSON map from the key data. + Map toJson() { + return removeEmptyValues({ + 'name': name, + 'value': value, + 'keyLabel': keyLabel, + 'names': { + 'web': webNames, + 'macos': macOSKeyCodeNames, + 'ios': iOSKeyCodeNames, + 'gtk': gtkNames, + 'windows': windowsNames, + 'android': androidNames, + 'glfw': glfwNames, + }, + 'values': >{ + 'macos': macOSKeyCodeValues, + 'ios': iOSKeyCodeValues, + 'gtk': gtkValues, + 'windows': windowsValues, + 'android': androidValues, + 'fuchsia': fuchsiaValues, + 'glfw': glfwValues, + }, + }); + } + + @override + String toString() { + return "'$name': (value: ${toHex(value)}) "; + } + + /// Gets the named used for the key constant in the definitions in + /// keyboard_key.g.dart. + /// + /// If set by the constructor, returns the name set, but otherwise constructs + /// the name from the various different names available, making sure that the + /// name isn't a Dart reserved word (if it is, then it adds the word "Key" to + /// the end of the name). + static String computeName(String rawName) { + final String result = rawName.replaceAll('PinP', 'PInP'); + if (kDartReservedWords.contains(result)) { + return '${result}Key'; + } + return result; + } + + /// Takes the [name] and converts it from lower camel case to capitalized + /// separate words (e.g. "wakeUp" converts to "Wake Up"). + static String computeCommentName(String name) { + final String replaced = name.replaceAllMapped( + RegExp(r'(Digit|Numpad|Lang|Button|Left|Right)([0-9]+)'), (Match match) => '${match.group(1)} ${match.group(2)}', + ); + return replaced + // 'fooBar' => 'foo Bar', 'fooBAR' => 'foo BAR' + .replaceAllMapped(RegExp(r'([^A-Z])([A-Z])'), (Match match) => '${match.group(1)} ${match.group(2)}') + // 'ABCDoo' => 'ABC Doo' + .replaceAllMapped(RegExp(r'([A-Z])([A-Z])([a-z])'), (Match match) => '${match.group(1)} ${match.group(2)}${match.group(3)}') + // 'AB1' => 'AB 1', 'F1' => 'F1' + .replaceAllMapped(RegExp(r'([A-Z]{2,})([0-9])'), (Match match) => '${match.group(1)} ${match.group(2)}') + // 'Foo1' => 'Foo 1' + .replaceAllMapped(RegExp(r'([a-z])([0-9])'), (Match match) => '${match.group(1)} ${match.group(2)}') + .trim(); + } + + static String computeConstantName(String commentName) { + // Convert the first word in the comment name. + final String lowerCamelSpace = commentName.replaceFirstMapped(RegExp(r'^[^ ]+'), + (Match match) => match[0]!.toLowerCase(), + ); + final String result = lowerCamelSpace.replaceAll(' ', ''); + if (kDartReservedWords.contains(result)) { + return '${result}Key'; + } + return result; + } + + static int compareByValue(LogicalKeyEntry a, LogicalKeyEntry b) => + a.value.compareTo(b.value); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/macos_code_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/macos_code_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..75ffab6548a14c235abae7ca46e2335080c1813e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/macos_code_gen.dart @@ -0,0 +1,139 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:path/path.dart' as path; + +import 'base_code_gen.dart'; +import 'constants.dart'; +import 'logical_key_data.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + +const List kModifiersOfInterest = [ + 'ShiftLeft', + 'ShiftRight', + 'ControlLeft', + 'ControlRight', + 'AltLeft', + 'AltRight', + 'MetaLeft', + 'MetaRight', +]; + +// The name of keys that require special attention. +const List kSpecialPhysicalKeys = ['CapsLock']; +const List kSpecialLogicalKeys = ['CapsLock']; + +/// Generates the key mapping for macOS, based on the information in the key +/// data structure given to it. +class MacOSCodeGenerator extends PlatformCodeGenerator { + MacOSCodeGenerator(super.keyData, super.logicalData, this._layoutGoals); + + /// This generates the map of macOS key codes to physical keys. + String get _scanCodeMap { + final OutputLines lines = OutputLines('macOS scancode map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + if (entry.macOSScanCode != null) { + lines.add(entry.macOSScanCode!, ' @${toHex(entry.macOSScanCode)} : @${toHex(entry.usbHidCode)}, // ${entry.constantName}'); + } + } + return lines.sortedJoin().trimRight(); + } + + String get _keyCodeToLogicalMap { + final OutputLines lines = OutputLines('macOS keycode map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + zipStrict(entry.macOSKeyCodeValues, entry.macOSKeyCodeNames, (int macOSValue, String macOSName) { + lines.add(macOSValue, + ' @${toHex(macOSValue)} : @${toHex(entry.value, digits: 11)}, // $macOSName -> ${entry.constantName}'); + }); + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the mask values for the part of a key code that defines its plane. + String get _maskConstants { + final StringBuffer buffer = StringBuffer(); + const List maskConstants = [ + kValueMask, + kUnicodePlane, + kMacosPlane, + ]; + for (final MaskConstant constant in maskConstants) { + buffer.writeln('const uint64_t k${constant.upperCamelName} = ${toHex(constant.value, digits: 11)};'); + } + return buffer.toString().trimRight(); + } + + /// This generates a map from the key code to a modifier flag. + String get _keyToModifierFlagMap { + final StringBuffer modifierKeyMap = StringBuffer(); + for (final String name in kModifiersOfInterest) { + modifierKeyMap.writeln(' @${toHex(logicalData.entryByName(name).macOSKeyCodeValues[0])} : @(kModifierFlag${lowerCamelToUpperCamel(name)}),'); + } + return modifierKeyMap.toString().trimRight(); + } + + /// This generates a map from the modifier flag to the key code. + String get _modifierFlagToKeyMap { + final StringBuffer modifierKeyMap = StringBuffer(); + for (final String name in kModifiersOfInterest) { + modifierKeyMap.writeln(' @(kModifierFlag${lowerCamelToUpperCamel(name)}) : @${toHex(logicalData.entryByName(name).macOSKeyCodeValues[0])},'); + } + return modifierKeyMap.toString().trimRight(); + } + + /// This generates some keys that needs special attention. + String get _specialKeyConstants { + final StringBuffer specialKeyConstants = StringBuffer(); + for (final String keyName in kSpecialPhysicalKeys) { + specialKeyConstants.writeln('const uint64_t k${keyName}PhysicalKey = ${toHex(keyData.entryByName(keyName).usbHidCode)};'); + } + for (final String keyName in kSpecialLogicalKeys) { + specialKeyConstants.writeln('const uint64_t k${lowerCamelToUpperCamel(keyName)}LogicalKey = ${toHex(logicalData.entryByName(keyName).value)};'); + } + return specialKeyConstants.toString().trimRight(); + } + + final Map _layoutGoals; + String get _layoutGoalsString { + final OutputLines lines = OutputLines('macOS layout goals'); + _layoutGoals.forEach((String name, bool mandatory) { + final PhysicalKeyEntry physicalEntry = keyData.entryByName(name); + final LogicalKeyEntry logicalEntry = logicalData.entryByName(name); + final String line = 'LayoutGoal{' + '${toHex(physicalEntry.macOSScanCode, digits: 2)}, ' + '${toHex(logicalEntry.value, digits: 2)}, ' + '${mandatory ? 'true' : 'false'}' + '},'; + lines.add(logicalEntry.value, + ' ${line.padRight(32)}' + '// ${logicalEntry.name}'); + }); + return lines.sortedJoin().trimRight(); + } + + @override + String get templatePath => path.join(dataRoot, 'macos_key_code_map_cc.tmpl'); + + @override + String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot, + 'shell', 'platform', 'darwin', 'macos', 'framework', 'Source', 'KeyCodeMap.g.mm'); + + @override + Map mappings() { + // There is no macOS keycode map since macOS uses keycode to represent a physical key. + // The LogicalKeyboardKey is generated by raw_keyboard_macos.dart from the unmodified characters + // from NSEvent. + return { + 'MACOS_SCAN_CODE_MAP': _scanCodeMap, + 'MACOS_KEYCODE_LOGICAL_MAP': _keyCodeToLogicalMap, + 'MASK_CONSTANTS': _maskConstants, + 'KEYCODE_TO_MODIFIER_FLAG_MAP': _keyToModifierFlagMap, + 'MODIFIER_FLAG_TO_KEYCODE_MAP': _modifierFlagToKeyMap, + 'SPECIAL_KEY_CONSTANTS': _specialKeyConstants, + 'LAYOUT_GOALS': _layoutGoalsString, + }; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/physical_key_data.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/physical_key_data.dart new file mode 100644 index 0000000000000000000000000000000000000000..b71a7cba1510a353b2487a39b12fc3bcadeb9214 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/physical_key_data.dart @@ -0,0 +1,352 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; + +import 'utils.dart'; + +/// The data structure used to manage keyboard key entries. +/// +/// The main constructor parses the given input data into the data structure. +/// +/// The data structure can be also loaded and saved to JSON, with the +/// [PhysicalKeyData.fromJson] constructor and [toJson] method, respectively. +class PhysicalKeyData { + factory PhysicalKeyData( + String chromiumHidCodes, + String androidKeyboardLayout, + String androidNameMap, + ) { + final Map> nameToAndroidScanCodes = _readAndroidScanCodes(androidKeyboardLayout, androidNameMap); + final Map data = _readHidEntries( + chromiumHidCodes, + nameToAndroidScanCodes, + ); + final List> sortedEntries = data.entries.toList()..sort( + (MapEntry a, MapEntry b) => + PhysicalKeyEntry.compareByUsbHidCode(a.value, b.value), + ); + data + ..clear() + ..addEntries(sortedEntries); + return PhysicalKeyData._(data); + } + + /// Parses the given JSON data and populates the data structure from it. + factory PhysicalKeyData.fromJson(Map contentMap) { + final Map data = {}; + for (final MapEntry jsonEntry in contentMap.entries) { + final PhysicalKeyEntry entry = PhysicalKeyEntry.fromJsonMapEntry(jsonEntry.value as Map); + data[entry.name] = entry; + } + return PhysicalKeyData._(data); + } + + PhysicalKeyData._(this._data); + + /// Find an entry from name, or null if not found. + PhysicalKeyEntry? tryEntryByName(String name) { + return _data[name]; + } + + /// Find an entry from name. + /// + /// Asserts if the name is not found. + PhysicalKeyEntry entryByName(String name) { + final PhysicalKeyEntry? entry = tryEntryByName(name); + assert(entry != null, + 'Unable to find logical entry by name $name.'); + return entry!; + } + + /// All entries. + Iterable get entries => _data.values; + + // Keys mapped from their names. + final Map _data; + + /// Converts the data structure into a JSON structure that can be parsed by + /// [PhysicalKeyData.fromJson]. + Map toJson() { + final Map outputMap = {}; + for (final PhysicalKeyEntry entry in _data.values) { + outputMap[entry.name] = entry.toJson(); + } + return outputMap; + } + + /// Parses entries from Android's `Generic.kl` scan code data file. + /// + /// Lines in this file look like this (without the ///): + /// + /// ``` + /// key 100 ALT_RIGHT + /// # key 101 "KEY_LINEFEED" + /// key 477 F12 FUNCTION + /// ``` + /// + /// We parse the commented out lines as well as the non-commented lines, so + /// that we can get names for all of the available scan codes, not just ones + /// defined for the generic profile. + /// + /// Some keys (notably `MEDIA_EJECT`) can be mapped to more than + /// one scan code, so the mapping can't just be 1:1, it has to be 1:many. + static Map> _readAndroidScanCodes(String keyboardLayout, String nameMap) { + final RegExp keyEntry = RegExp( + r'#?\s*' // Optional comment mark + r'key\s+' // Literal "key" + r'(?[0-9]+)\s*' // ID section + r'"?(?:KEY_)?(?[0-9A-Z_]+|\(undefined\))"?\s*' // Name section + r'(?FUNCTION)?' // Optional literal "FUNCTION" + ); + final Map> androidNameToScanCodes = >{}; + for (final RegExpMatch match in keyEntry.allMatches(keyboardLayout)) { + if (match.namedGroup('function') == 'FUNCTION') { + // Skip odd duplicate Android FUNCTION keys (F1-F12 are already defined). + continue; + } + final String name = match.namedGroup('name')!; + if (name == '(undefined)') { + // Skip undefined scan codes. + continue; + } + androidNameToScanCodes.putIfAbsent(name, () => []) + .add(int.parse(match.namedGroup('id')!)); + } + + // Cast Android dom map + final Map> nameToAndroidNames = (json.decode(nameMap) as Map) + .cast>() + .map>((String key, List value) { + return MapEntry>(key, value.cast()); + }); + + final Map> result = nameToAndroidNames.map((String name, List androidNames) { + final Set scanCodes = {}; + for (final String androidName in androidNames) { + scanCodes.addAll(androidNameToScanCodes[androidName] ?? []); + } + return MapEntry>(name, scanCodes.toList()..sort()); + }); + + return result; + } + + /// Parses entries from Chromium's HID code mapping header file. + /// + /// Lines in this file look like this (without the ///): + /// USB evdev XKB Win Mac Code Enum + /// DOM_CODE(0x000010, 0x0000, 0x0000, 0x0000, 0xffff, "Hyper", HYPER), + static Map _readHidEntries( + String input, + Map> nameToAndroidScanCodes, + ) { + final Map entries = {}; + final RegExp usbMapRegExp = RegExp( + r'DOM_CODE\s*\(\s*' + r'0[xX](?[a-fA-F0-9]+),\s*' + r'0[xX](?[a-fA-F0-9]+),\s*' + r'0[xX](?[a-fA-F0-9]+),\s*' + r'0[xX](?[a-fA-F0-9]+),\s*' + r'0[xX](?[a-fA-F0-9]+),\s*' + r'(?:"(?[^\s]+)")?[^")]*?,' + r'\s*(?[^\s]+?)\s*' + r'\)', + // Multiline is necessary because some definitions spread across + // multiple lines. + multiLine: true, + ); + final RegExp commentRegExp = RegExp(r'//.*$', multiLine: true); + input = input.replaceAll(commentRegExp, ''); + for (final RegExpMatch match in usbMapRegExp.allMatches(input)) { + final int usbHidCode = getHex(match.namedGroup('usb')!); + final int evdevCode = getHex(match.namedGroup('evdev')!); + final int xKbScanCode = getHex(match.namedGroup('xkb')!); + final int windowsScanCode = getHex(match.namedGroup('win')!); + final int macScanCode = getHex(match.namedGroup('mac')!); + final String? chromiumCode = match.namedGroup('code'); + // The input data has a typo... + final String enumName = match.namedGroup('enum')!.replaceAll('MINIMIUM', 'MINIMUM'); + + final String name = chromiumCode ?? shoutingToUpperCamel(enumName); + if (name == 'IntlHash' || name == 'None') { + // Skip key that is not actually generated by any keyboard. + continue; + } + final PhysicalKeyEntry? existing = entries[usbHidCode]; + // Allow duplicate entries for Fn, which overwrites. + if (existing != null && existing.name != 'Fn') { + // If it's an existing entry, the only thing we currently support is + // to insert an extra DOMKey. The other entries must be empty. + assert(evdevCode == 0 + && xKbScanCode == 0 + && windowsScanCode == 0 + && macScanCode == 0xffff + && chromiumCode != null + && chromiumCode.isNotEmpty, + 'Duplicate usbHidCode ${existing.usbHidCode} of key ${existing.name} ' + 'conflicts with existing ${entries[existing.usbHidCode]!.name}.'); + existing.otherWebCodes.add(chromiumCode!); + continue; + } + final PhysicalKeyEntry newEntry = PhysicalKeyEntry( + usbHidCode: usbHidCode, + androidScanCodes: nameToAndroidScanCodes[name] ?? [], + evdevCode: evdevCode == 0 ? null : evdevCode, + xKbScanCode: xKbScanCode == 0 ? null : xKbScanCode, + windowsScanCode: windowsScanCode == 0 ? null : windowsScanCode, + macOSScanCode: macScanCode == 0xffff ? null : macScanCode, + iOSScanCode: (usbHidCode & 0x070000) == 0x070000 ? (usbHidCode ^ 0x070000) : null, + name: name, + chromiumCode: chromiumCode, + ); + entries[newEntry.usbHidCode] = newEntry; + } + return entries.map((int code, PhysicalKeyEntry entry) => + MapEntry(entry.name, entry)); + } +} + +/// A single entry in the key data structure. +/// +/// Can be read from JSON with the [PhysicalKeyEntry.fromJsonMapEntry] constructor, or +/// written with the [toJson] method. +class PhysicalKeyEntry { + /// Creates a single key entry from available data. + PhysicalKeyEntry({ + required this.usbHidCode, + required this.name, + required this.androidScanCodes, + required this.evdevCode, + required this.xKbScanCode, + required this.windowsScanCode, + required this.macOSScanCode, + required this.iOSScanCode, + required this.chromiumCode, + List? otherWebCodes, + }) : otherWebCodes = otherWebCodes ?? []; + + /// Populates the key from a JSON map. + factory PhysicalKeyEntry.fromJsonMapEntry(Map map) { + final Map names = map['names'] as Map; + final Map scanCodes = map['scanCodes'] as Map; + return PhysicalKeyEntry( + name: names['name'] as String, + chromiumCode: names['chromium'] as String?, + usbHidCode: scanCodes['usb'] as int, + androidScanCodes: (scanCodes['android'] as List?)?.cast() ?? [], + evdevCode: scanCodes['linux'] as int?, + xKbScanCode: scanCodes['xkb'] as int?, + windowsScanCode: scanCodes['windows'] as int?, + macOSScanCode: scanCodes['macos'] as int?, + iOSScanCode: scanCodes['ios'] as int?, + otherWebCodes: (map['otherWebCodes'] as List?)?.cast(), + ); + } + + /// The USB HID code of the key + final int usbHidCode; + + /// The Evdev scan code of the key, from Chromium's header file. + final int? evdevCode; + /// The XKb scan code of the key from Chromium's header file. + final int? xKbScanCode; + /// The Windows scan code of the key from Chromium's header file. + final int? windowsScanCode; + /// The macOS scan code of the key from Chromium's header file. + final int? macOSScanCode; + /// The iOS scan code of the key from UIKey's documentation (USB Hid table) + final int? iOSScanCode; + /// The list of Android scan codes matching this key, created by looking up + /// the Android name in the Chromium data, and substituting the Android scan + /// code value. + final List androidScanCodes; + /// The name of the key, mostly derived from the DomKey name in Chromium, + /// but where there was no DomKey representation, derived from the Chromium + /// symbol name. + final String name; + /// The Chromium event code for the key. + final String? chromiumCode; + /// Other codes used by Web besides chromiumCode. + final List otherWebCodes; + + Iterable webCodes() sync* { + if (chromiumCode != null) { + yield chromiumCode!; + } + yield* otherWebCodes; + } + + /// Creates a JSON map from the key data. + Map toJson() { + return removeEmptyValues({ + 'names': { + 'name': name, + 'chromium': chromiumCode, + }, + 'otherWebCodes': otherWebCodes, + 'scanCodes': { + 'android': androidScanCodes, + 'usb': usbHidCode, + 'linux': evdevCode, + 'xkb': xKbScanCode, + 'windows': windowsScanCode, + 'macos': macOSScanCode, + 'ios': iOSScanCode, + }, + }); + } + + static String getCommentName(String constantName) { + String upperCamel = lowerCamelToUpperCamel(constantName); + upperCamel = upperCamel.replaceAllMapped( + RegExp(r'(Digit|Numpad|Lang|Button|Left|Right)([0-9]+)'), + (Match match) => '${match.group(1)} ${match.group(2)}', + ); + return upperCamel.replaceAllMapped(RegExp(r'([A-Z])'), (Match match) => ' ${match.group(1)}').trim(); + } + + /// Gets the name of the key suitable for placing in comments. + /// + /// Takes the [constantName] and converts it from lower camel case to capitalized + /// separate words (e.g. "wakeUp" converts to "Wake Up"). + String get commentName => getCommentName(constantName); + + /// Gets the named used for the key constant in the definitions in + /// keyboard_key.g.dart. + /// + /// If set by the constructor, returns the name set, but otherwise constructs + /// the name from the various different names available, making sure that the + /// name isn't a Dart reserved word (if it is, then it adds the word "Key" to + /// the end of the name). + late final String constantName = (() { + String? result; + if (name.isEmpty) { + // If it doesn't have a DomKey name then use the Chromium symbol name. + result = chromiumCode; + } else { + result = upperCamelToLowerCamel(name); + } + result ??= 'Key${toHex(usbHidCode)}'; + if (kDartReservedWords.contains(result)) { + return '${result}Key'; + } + return result; + })(); + + @override + String toString() { + final String otherWebStr = otherWebCodes.isEmpty + ? '' + : ', otherWebCodes: [${otherWebCodes.join(', ')}]'; + return """'$constantName': (name: "$name", usbHidCode: ${toHex(usbHidCode)}, """ + 'linuxScanCode: ${toHex(evdevCode)}, xKbScanCode: ${toHex(xKbScanCode)}, ' + 'windowsKeyCode: ${toHex(windowsScanCode)}, macOSScanCode: ${toHex(macOSScanCode)}, ' + 'windowsScanCode: ${toHex(windowsScanCode)}, chromiumSymbolName: $chromiumCode ' + 'iOSScanCode: ${toHex(iOSScanCode)})$otherWebStr'; + } + + static int compareByUsbHidCode(PhysicalKeyEntry a, PhysicalKeyEntry b) => + a.usbHidCode.compareTo(b.usbHidCode); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/testing_key_codes_cc_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/testing_key_codes_cc_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..24d49abf7f236f4cd7ed8a17b87bb06c9c3754a0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/testing_key_codes_cc_gen.dart @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:path/path.dart' as path; + +import 'base_code_gen.dart'; +import 'logical_key_data.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + +String _toUpperCamel(String lowerCamel) { + return lowerCamel.substring(0, 1).toUpperCase() + lowerCamel.substring(1); +} + +/// Generates the common/testing/key_codes.h based on the information in the key +/// data structure given to it. +class KeyCodesCcGenerator extends BaseCodeGenerator { + KeyCodesCcGenerator(super.keyData, super.logicalData); + + /// Gets the generated definitions of PhysicalKeyboardKeys. + String get _physicalDefinitions { + final OutputLines lines = OutputLines('Physical Key list'); + for (final PhysicalKeyEntry entry in keyData.entries) { + lines.add(entry.usbHidCode, ''' +constexpr uint64_t kPhysical${_toUpperCamel(entry.constantName)} = ${toHex(entry.usbHidCode)};'''); + } + return lines.sortedJoin().trimRight(); + } + + /// Gets the generated definitions of PhysicalKeyboardKeys. + String get _logicalDefinitions { + final OutputLines lines = OutputLines('Logical Key list', behavior: DeduplicateBehavior.kSkip); + for (final LogicalKeyEntry entry in logicalData.entries) { + lines.add(entry.value, ''' +constexpr uint64_t kLogical${_toUpperCamel(entry.constantName)} = ${toHex(entry.value, digits: 11)};'''); + } + return lines.sortedJoin().trimRight(); + } + + @override + String get templatePath => path.join(dataRoot, 'key_codes_h.tmpl'); + + @override + Map mappings() { + return { + 'LOGICAL_KEY_DEFINITIONS': _logicalDefinitions, + 'PHYSICAL_KEY_DEFINITIONS': _physicalDefinitions, + }; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/testing_key_codes_java_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/testing_key_codes_java_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..91e808afa054be452a7d43a7b76746a558e98870 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/testing_key_codes_java_gen.dart @@ -0,0 +1,63 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:path/path.dart' as path; + +import 'base_code_gen.dart'; +import 'logical_key_data.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + +String _toUpperSnake(String lowerCamel) { + // Converts 'myTVFoo' to 'myTvFoo'. + final String trueUpperCamel = lowerCamel.replaceAllMapped( + RegExp(r'([A-Z]{3,})'), + (Match match) { + final String matched = match.group(1)!; + return matched.substring(0, 1) + + matched.substring(1, matched.length - 2).toLowerCase() + + matched.substring(matched.length - 2, matched.length - 1); + }); + // Converts 'myTvFoo' to 'MY_TV_FOO'. + return trueUpperCamel.replaceAllMapped( + RegExp(r'([A-Z])'), + (Match match) => '_${match.group(1)!}').toUpperCase(); +} + +/// Generates the common/testing/key_codes.h based on the information in the key +/// data structure given to it. +class KeyCodesJavaGenerator extends BaseCodeGenerator { + KeyCodesJavaGenerator(super.keyData, super.logicalData); + + /// Gets the generated definitions of PhysicalKeyboardKeys. + String get _physicalDefinitions { + final OutputLines lines = OutputLines('Physical Key list'); + for (final PhysicalKeyEntry entry in keyData.entries) { + lines.add(entry.usbHidCode, ''' + public static final long PHYSICAL_${_toUpperSnake(entry.constantName)} = ${toHex(entry.usbHidCode)}L;'''); + } + return lines.sortedJoin().trimRight(); + } + + /// Gets the generated definitions of PhysicalKeyboardKeys. + String get _logicalDefinitions { + final OutputLines lines = OutputLines('Logical Key list', behavior: DeduplicateBehavior.kSkip); + for (final LogicalKeyEntry entry in logicalData.entries) { + lines.add(entry.value, ''' + public static final long LOGICAL_${_toUpperSnake(entry.constantName)} = ${toHex(entry.value, digits: 11)}L;'''); + } + return lines.sortedJoin().trimRight(); + } + + @override + String get templatePath => path.join(dataRoot, 'key_codes_java.tmpl'); + + @override + Map mappings() { + return { + 'LOGICAL_KEY_DEFINITIONS': _logicalDefinitions, + 'PHYSICAL_KEY_DEFINITIONS': _physicalDefinitions, + }; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/utils.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/utils.dart new file mode 100644 index 0000000000000000000000000000000000000000..802dd69ff8721271e5f8999cb06a821479d6fe06 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/utils.dart @@ -0,0 +1,308 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:io'; + +import 'package:meta/meta.dart'; +import 'package:path/path.dart' as path; + +import 'constants.dart'; + +/// The location of the Flutter root directory, based on the known location of +/// this script. +final Directory flutterRoot = Directory(path.dirname(Platform.script.toFilePath())).parent.parent.parent.parent; +String get dataRoot => testDataRoot ?? _dataRoot; +String _dataRoot = path.join(flutterRoot.path, 'dev', 'tools', 'gen_keycodes', 'data'); + +/// Allows overriding of the [dataRoot] for testing purposes. +@visibleForTesting +String? testDataRoot; + +/// Converts `FOO_BAR` to `FooBar`. +String shoutingToUpperCamel(String shouting) { + final RegExp initialLetter = RegExp(r'(?:_|^)([^_])([^_]*)'); + final String snake = shouting.toLowerCase(); + final String result = snake.replaceAllMapped(initialLetter, (Match match) { + return match.group(1)!.toUpperCase() + match.group(2)!.toLowerCase(); + }); + return result; +} + +/// Converts 'FooBar' to 'fooBar'. +/// +/// 'TVFoo' should be convert to 'tvFoo'. +/// 'KeyX' should be convert to 'keyX'. +String upperCamelToLowerCamel(String upperCamel) { + final RegExp initialGroup = RegExp(r'^([A-Z]([A-Z]*|[^A-Z]*))([A-Z]([^A-Z]|$)|$)'); + return upperCamel.replaceFirstMapped(initialGroup, (Match match) { + return match.group(1)!.toLowerCase() + (match.group(3) ?? ''); + }); +} + +/// Converts 'fooBar' to 'FooBar'. +String lowerCamelToUpperCamel(String lowerCamel) { + return lowerCamel.substring(0, 1).toUpperCase() + lowerCamel.substring(1); +} + +/// A list of Dart reserved words. +/// +/// Since these are Dart reserved words, we can't use them as-is for enum names. +const List kDartReservedWords = [ + 'abstract', + 'as', + 'assert', + 'async', + 'await', + 'break', + 'case', + 'catch', + 'class', + 'const', + 'continue', + 'covariant', + 'default', + 'deferred', + 'do', + 'dynamic', + 'else', + 'enum', + 'export', + 'extends', + 'external', + 'factory', + 'false', + 'final', + 'finally', + 'for', + 'Function', + 'get', + 'hide', + 'if', + 'implements', + 'import', + 'in', + 'interface', + 'is', + 'library', + 'mixin', + 'new', + 'null', + 'on', + 'operator', + 'part', + 'rethrow', + 'return', + 'set', + 'show', + 'static', + 'super', + 'switch', + 'sync', + 'this', + 'throw', + 'true', + 'try', + 'typedef', + 'var', + 'void', + 'while', + 'with', + 'yield', +]; + +/// Converts an integer into a hex string with the given number of digits. +String toHex(int? value, {int digits = 8}) { + if (value == null) { + return 'null'; + } + return '0x${value.toRadixString(16).padLeft(digits, '0')}'; +} + +/// Parses an integer from a hex string. +int getHex(String input) { + return int.parse(input, radix: 16); +} + +/// Given an [input] string, wraps the text at 80 characters and prepends each +/// line with the [prefix] string. Use for generated comments. +String wrapString(String input, {required String prefix}) { + final int wrapWidth = 80 - prefix.length; + final StringBuffer result = StringBuffer(); + final List words = input.split(RegExp(r'\s+')); + String currentLine = words.removeAt(0); + for (final String word in words) { + if ((currentLine.length + word.length) < wrapWidth) { + currentLine += ' $word'; + } else { + result.writeln('$prefix$currentLine'); + currentLine = word; + } + } + if (currentLine.isNotEmpty) { + result.writeln('$prefix$currentLine'); + } + return result.toString(); +} + +/// Run `fn` with each corresponding element from list1 and list2. +/// +/// If `list1` has a different length from `list2`, the execution is aborted +/// after printing an error. +/// +/// An null list is considered a list with length 0. +void zipStrict(Iterable list1, Iterable list2, void Function(T1, T2) fn) { + assert(list1.length == list2.length); + final Iterator it1 = list1.iterator; + final Iterator it2 = list2.iterator; + while (it1.moveNext()) { + it2.moveNext(); + fn(it1.current, it2.current); + } +} + +/// Read a Map out of its string representation in JSON. +Map parseMapOfString(String jsonString) { + return (json.decode(jsonString) as Map).cast(); +} + +/// Read a Map> out of its string representation in JSON. +Map> parseMapOfListOfString(String jsonString) { + final Map> dynamicMap = (json.decode(jsonString) as Map).cast>(); + return dynamicMap.map>((String key, List value) { + return MapEntry>(key, value.cast()); + }); +} + +Map> parseMapOfListOfNullableString(String jsonString) { + final Map> dynamicMap = (json.decode(jsonString) as Map).cast>(); + return dynamicMap.map>((String key, List value) { + return MapEntry>(key, value.cast()); + }); +} + +Map parseMapOfBool(String jsonString) { + return (json.decode(jsonString) as Map).cast(); +} + +/// Reverse the map of { fromValue -> list of toValue } to { toValue -> fromValue } and return. +Map reverseMapOfListOfString(Map> inMap, void Function(String fromValue, String newToValue) onDuplicate) { + final Map result = {}; + inMap.forEach((String fromValue, List toValues) { + for (final String toValue in toValues) { + if (result.containsKey(toValue)) { + onDuplicate(fromValue, toValue); + continue; + } + result[toValue] = fromValue; + } + }); + return result; +} + +/// Remove entries whose value `isEmpty` or is null, and return the map. +/// +/// Will modify the input map. +Map removeEmptyValues(Map map) { + return map..removeWhere((String key, dynamic value) { + if (value == null) { + return true; + } + if (value is Map) { + final Map regularizedMap = removeEmptyValues(value); + return regularizedMap.isEmpty; + } + if (value is Iterable) { + return value.isEmpty; + } + return false; + }); +} + +void addNameValue(List names, List values, String name, int value) { + final int foundIndex = values.indexOf(value); + if (foundIndex == -1) { + names.add(name); + values.add(value); + } else { + if (!RegExp(r'(^|, )abc1($|, )').hasMatch(name)) { + names[foundIndex] = '${names[foundIndex]}, $name'; + } + } +} + +enum DeduplicateBehavior { + // Warn the duplicate entry. + kWarn, + + // Skip the latter duplicate entry. + kSkip, + + // Keep all duplicate entries. + kKeep, +} + +/// The information for a line used by [OutputLines]. +class OutputLine> { + OutputLine(this.key, String value) + : values = [value]; + + final T key; + final List values; +} + +/// A utility class to build join a number of lines in a sorted order. +/// +/// Use [add] to add a line and associate it with an index. Use [sortedJoin] to +/// get the joined string of these lines joined sorting them in the order of the +/// index. +class OutputLines> { + OutputLines(this.mapName, {this.behavior = DeduplicateBehavior.kWarn}); + + /// What to do if there are entries with the same key. + final DeduplicateBehavior behavior; + + /// The name for this map. + /// + /// Used in warning messages. + final String mapName; + + final Map> lines = >{}; + + void add(T key, String line) { + final OutputLine? existing = lines[key]; + if (existing != null) { + switch (behavior) { + case DeduplicateBehavior.kWarn: + print('Warn: Request to add $key to map "$mapName" as:\n $line\n but it already exists as:\n ${existing.values[0]}'); + return; + case DeduplicateBehavior.kSkip: + return; + case DeduplicateBehavior.kKeep: + existing.values.add(line); + return; + } + } + lines[key] = OutputLine(key, line); + } + + String join() { + return lines.values.map((OutputLine line) => line.values.join('\n')).join('\n'); + } + + String sortedJoin() { + return (lines.values.toList() + ..sort((OutputLine a, OutputLine b) => a.key.compareTo(b.key))) + .map((OutputLine line) => line.values.join('\n')) + .join('\n'); + } +} + +int toPlane(int value, int plane) { + return (value & kValueMask.value) + (plane & kPlaneMask.value); +} + +int getPlane(int value) { + return value & kPlaneMask.value; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/web_code_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/web_code_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..37a2898bac9f2d899bc107481063407756d94022 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/web_code_gen.dart @@ -0,0 +1,79 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:path/path.dart' as path; + +import 'base_code_gen.dart'; +import 'constants.dart'; +import 'logical_key_data.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + +/// Generates the key mapping for Web, based on the information in the key +/// data structure given to it. +class WebCodeGenerator extends PlatformCodeGenerator { + WebCodeGenerator( + super.keyData, + super.logicalData, + String logicalLocationMap, + ) : _logicalLocationMap = parseMapOfListOfNullableString(logicalLocationMap); + + /// This generates the map of Web KeyboardEvent codes to logical key ids. + String get _webLogicalKeyCodeMap { + final OutputLines lines = OutputLines('Web logical map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + final int plane = getPlane(entry.value); + if (plane == kUnprintablePlane.value) { + for (final String name in entry.webNames) { + lines.add(name, " '$name': ${toHex(entry.value, digits: 11)},"); + } + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Web KeyboardEvent codes to physical key USB HID codes. + String get _webPhysicalKeyCodeMap { + final OutputLines lines = OutputLines('Web physical map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + for (final String webCode in entry.webCodes()) { + lines.add(webCode, + " '$webCode': ${toHex(entry.usbHidCode)}, // ${entry.constantName}"); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Web number pad codes to logical key ids. + String get _webLogicalLocationMap { + final OutputLines lines = OutputLines('Web logical location map'); + _logicalLocationMap.forEach((String webKey, List locations) { + final String valuesString = locations.map((String? value) { + return value == null ? 'null' : toHex(logicalData.entryByName(value).value, digits: 11); + }).join(', '); + final String namesString = locations.map((String? value) { + return value == null ? 'null' : logicalData.entryByName(value).constantName; + }).join(', '); + lines.add(webKey, " '$webKey': [$valuesString], // $namesString"); + }); + return lines.sortedJoin().trimRight(); + } + final Map> _logicalLocationMap; + + @override + String get templatePath => path.join(dataRoot, 'web_key_map_dart.tmpl'); + + @override + String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot, + 'lib', 'web_ui', 'lib', 'src', 'engine', 'key_map.g.dart'); + + @override + Map mappings() { + return { + 'WEB_LOGICAL_KEY_CODE_MAP': _webLogicalKeyCodeMap, + 'WEB_PHYSICAL_KEY_CODE_MAP': _webPhysicalKeyCodeMap, + 'WEB_LOGICAL_LOCATION_MAP': _webLogicalLocationMap, + }; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/windows_code_gen.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/windows_code_gen.dart new file mode 100644 index 0000000000000000000000000000000000000000..4ef32c08a70e93e8c074c98b9f78bc6805498884 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/lib/windows_code_gen.dart @@ -0,0 +1,97 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:path/path.dart' as path; + +import 'base_code_gen.dart'; +import 'constants.dart'; +import 'logical_key_data.dart'; +import 'physical_key_data.dart'; +import 'utils.dart'; + +/// Generates the key mapping for Windows, based on the information in the key +/// data structure given to it. +class WindowsCodeGenerator extends PlatformCodeGenerator { + WindowsCodeGenerator( + super.keyData, + super.logicalData, + String scancodeToLogical, + ) : _scancodeToLogical = parseMapOfString(scancodeToLogical); + + /// This generates the map of Windows scan codes to physical keys. + String get _windowsScanCodeMap { + final OutputLines lines = OutputLines('Windows scancode map'); + for (final PhysicalKeyEntry entry in keyData.entries) { + if (entry.windowsScanCode != null) { + lines.add(entry.windowsScanCode!, + ' {${toHex(entry.windowsScanCode)}, ${toHex(entry.usbHidCode)}}, // ${entry.constantName}'); + } + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map of Windows key codes to logical keys. + String get _windowsLogicalKeyCodeMap { + final OutputLines lines = OutputLines('Windows logical map'); + for (final LogicalKeyEntry entry in logicalData.entries) { + zipStrict(entry.windowsValues, entry.windowsNames, + (int windowsValue, String windowsName) { + lines.add(windowsValue, + ' {${toHex(windowsValue)}, ${toHex(entry.value, digits: 11)}}, ' + '// $windowsName -> ${entry.constantName}'); + }, + ); + } + return lines.sortedJoin().trimRight(); + } + + /// This generates the map from scan code to logical keys. + /// + /// Normally logical keys should only be derived from key codes, but since some + /// key codes are either 0 or ambiguous (multiple keys using the same key + /// code), these keys are resolved by scan codes. + String get _scanCodeToLogicalMap { + final OutputLines lines = OutputLines('Windows scancode to logical map'); + _scancodeToLogical.forEach((String scanCodeName, String logicalName) { + final PhysicalKeyEntry physicalEntry = keyData.entryByName(scanCodeName); + final LogicalKeyEntry logicalEntry = logicalData.entryByName(logicalName); + lines.add(physicalEntry.windowsScanCode!, + ' {${toHex(physicalEntry.windowsScanCode)}, ${toHex(logicalEntry.value, digits: 11)}}, ' + '// ${physicalEntry.constantName} -> ${logicalEntry.constantName}'); + }); + return lines.sortedJoin().trimRight(); + } + final Map _scancodeToLogical; + + /// This generates the mask values for the part of a key code that defines its plane. + String get _maskConstants { + final StringBuffer buffer = StringBuffer(); + const List maskConstants = [ + kValueMask, + kUnicodePlane, + kWindowsPlane, + ]; + for (final MaskConstant constant in maskConstants) { + buffer.writeln('const uint64_t KeyboardKeyEmbedderHandler::${constant.lowerCamelName} = ${toHex(constant.value, digits: 11)};'); + } + return buffer.toString().trimRight(); + } + + @override + String get templatePath => path.join(dataRoot, 'windows_flutter_key_map_cc.tmpl'); + + @override + String outputPath(String platform) => path.join(PlatformCodeGenerator.engineRoot, + 'shell', 'platform', 'windows', 'flutter_key_map.g.cc'); + + @override + Map mappings() { + return { + 'WINDOWS_SCAN_CODE_MAP': _windowsScanCodeMap, + 'WINDOWS_SCAN_CODE_TO_LOGICAL_MAP': _scanCodeToLogicalMap, + 'WINDOWS_KEY_CODE_MAP': _windowsLogicalKeyCodeMap, + 'MASK_CONSTANTS': _maskConstants, + }; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..040f740f883ab2d1620323b4c6bde33886459074 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/pubspec.lock @@ -0,0 +1,389 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct dev" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct dev" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct dev" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct dev" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct dev" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + file: + dependency: "direct dev" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + frontend_server_client: + dependency: "direct dev" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + glob: + dependency: "direct dev" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + http: + dependency: "direct main" + description: + name: http + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + url: "https://pub.dev" + source: hosted + version: "0.13.6" + http_multi_server: + dependency: "direct dev" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct main" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + io: + dependency: "direct dev" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct dev" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + logging: + dependency: "direct dev" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mime: + dependency: "direct dev" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct dev" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct dev" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: "direct main" + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + pool: + dependency: "direct dev" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + pub_semver: + dependency: "direct dev" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + shelf: + dependency: "direct dev" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct dev" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct dev" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct dev" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + source_map_stack_trace: + dependency: "direct dev" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct dev" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct dev" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct dev" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct main" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct dev" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct dev" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct dev" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webkit_inspection_protocol: + dependency: "direct dev" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + yaml: + dependency: "direct dev" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..131fdeae068ab7ed28587a6201130de116bf50f7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/pubspec.yaml @@ -0,0 +1,61 @@ +name: gen_keycodes +description: Generates keycode source files from various resources. + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + args: 2.4.2 + http: 0.13.6 + meta: 1.11.0 + path: 1.9.0 + platform: 3.1.4 + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + test: 1.24.9 + test_api: 0.6.1 + + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pub_semver: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: a95b diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/test/gen_keycodes_test.dart b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/test/gen_keycodes_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..7a228343160c5cf65c07141f0485a7489bc38a2d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/gen_keycodes/test/gen_keycodes_test.dart @@ -0,0 +1,171 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:io'; + +import 'package:gen_keycodes/android_code_gen.dart'; +import 'package:gen_keycodes/base_code_gen.dart'; +import 'package:gen_keycodes/gtk_code_gen.dart'; +import 'package:gen_keycodes/ios_code_gen.dart'; +import 'package:gen_keycodes/logical_key_data.dart'; +import 'package:gen_keycodes/macos_code_gen.dart'; +import 'package:gen_keycodes/physical_key_data.dart'; +import 'package:gen_keycodes/utils.dart'; +import 'package:gen_keycodes/web_code_gen.dart'; +import 'package:gen_keycodes/windows_code_gen.dart'; +import 'package:path/path.dart' as path; +import 'package:test/test.dart' hide TypeMatcher, isInstanceOf; + +String readDataFile(String fileName) { + return File(path.join(dataRoot, fileName)).readAsStringSync(); +} + +final PhysicalKeyData physicalData = PhysicalKeyData.fromJson( + json.decode(readDataFile('physical_key_data.g.json')) as Map); +final LogicalKeyData logicalData = LogicalKeyData.fromJson( + json.decode(readDataFile('logical_key_data.g.json')) as Map); +final Map keyGoals = parseMapOfBool( + readDataFile('layout_goals.json')); + +void main() { + setUp(() { + testDataRoot = path.canonicalize(path.join(Directory.current.absolute.path, 'data')); + }); + + tearDown((){ + testDataRoot = null; + }); + + void checkCommonOutput(String output) { + expect(output, contains(RegExp('Copyright 201[34]'))); + expect(output, contains('DO NOT EDIT')); + expect(output, contains(RegExp(r'\b[kK]eyA\b'))); + expect(output, contains(RegExp(r'\b[Dd]igit1\b'))); + expect(output, contains(RegExp(r'\b[Ff]1\b'))); + expect(output, contains(RegExp(r'\b[Nn]umpad1\b'))); + expect(output, contains(RegExp(r'\b[Ss]hiftLeft\b'))); + } + + test('Generate Keycodes for Android', () { + const String platform = 'android'; + final PlatformCodeGenerator codeGenerator = AndroidCodeGenerator( + physicalData, + logicalData, + ); + final String output = codeGenerator.generate(); + + expect(codeGenerator.outputPath(platform), endsWith('KeyboardMap.java')); + expect(output, contains('class KeyboardMap')); + expect(output, contains('scanCodeToPhysical')); + expect(output, contains('keyCodeToLogical')); + checkCommonOutput(output); + }); + test('Generate Keycodes for macOS', () { + const String platform = 'macos'; + final PlatformCodeGenerator codeGenerator = MacOSCodeGenerator( + physicalData, + logicalData, + keyGoals, + ); + final String output = codeGenerator.generate(); + + expect(codeGenerator.outputPath(platform), endsWith('KeyCodeMap.g.mm')); + expect(output, contains('kValueMask')); + expect(output, contains('keyCodeToPhysicalKey')); + expect(output, contains('keyCodeToLogicalKey')); + expect(output, contains('keyCodeToModifierFlag')); + expect(output, contains('modifierFlagToKeyCode')); + expect(output, contains('kCapsLockPhysicalKey')); + expect(output, contains('kCapsLockLogicalKey')); + expect(output, contains('kLayoutGoals')); + checkCommonOutput(output); + }); + test('Generate Keycodes for iOS', () { + const String platform = 'ios'; + final PlatformCodeGenerator codeGenerator = IOSCodeGenerator( + physicalData, + logicalData, + ); + final String output = codeGenerator.generate(); + + expect(codeGenerator.outputPath(platform), endsWith('KeyCodeMap.g.mm')); + expect(output, contains('kValueMask')); + expect(output, contains('keyCodeToPhysicalKey')); + expect(output, contains('keyCodeToLogicalKey')); + expect(output, contains('keyCodeToModifierFlag')); + expect(output, contains('modifierFlagToKeyCode')); + expect(output, contains('functionKeyCodes')); + expect(output, contains('kCapsLockPhysicalKey')); + expect(output, contains('kCapsLockLogicalKey')); + checkCommonOutput(output); + }); + test('Generate Keycodes for Windows', () { + const String platform = 'windows'; + final PlatformCodeGenerator codeGenerator = WindowsCodeGenerator( + physicalData, + logicalData, + readDataFile(path.join(dataRoot, 'windows_scancode_logical_map.json')), + ); + final String output = codeGenerator.generate(); + + expect(codeGenerator.outputPath(platform), endsWith('flutter_key_map.g.cc')); + expect(output, contains('KeyboardKeyEmbedderHandler::windowsToPhysicalMap_')); + expect(output, contains('KeyboardKeyEmbedderHandler::windowsToLogicalMap_')); + expect(output, contains('KeyboardKeyEmbedderHandler::scanCodeToLogicalMap_')); + checkCommonOutput(output); + }); + test('Generate Keycodes for Linux', () { + const String platform = 'gtk'; + final PlatformCodeGenerator codeGenerator = GtkCodeGenerator( + physicalData, + logicalData, + readDataFile(path.join(dataRoot, 'gtk_modifier_bit_mapping.json')), + readDataFile(path.join(dataRoot, 'gtk_lock_bit_mapping.json')), + keyGoals, + ); + final String output = codeGenerator.generate(); + + expect(codeGenerator.outputPath(platform), endsWith('key_mapping.g.cc')); + expect(output, contains('initialize_modifier_bit_to_checked_keys')); + expect(output, contains('initialize_lock_bit_to_checked_keys')); + checkCommonOutput(output); + }); + test('Generate Keycodes for Web', () { + const String platform = 'web'; + final PlatformCodeGenerator codeGenerator = WebCodeGenerator( + physicalData, + logicalData, + readDataFile(path.join(dataRoot, 'web_logical_location_mapping.json')), + ); + final String output = codeGenerator.generate(); + + expect(codeGenerator.outputPath(platform), endsWith('key_map.g.dart')); + expect(output, contains('kWebToLogicalKey')); + expect(output, contains('kWebToPhysicalKey')); + expect(output, contains('kWebLogicalLocationMap')); + checkCommonOutput(output); + }); + test('LogicalKeyData', () async { + final List entries = logicalData.entries.toList(); + + // Regression tests for https://github.com/flutter/flutter/pull/87098 + + expect( + entries.indexWhere((LogicalKeyEntry entry) => entry.name == 'ShiftLeft'), + isNot(-1)); + expect( + entries.indexWhere((LogicalKeyEntry entry) => entry.webNames.contains('ShiftLeft')), + -1); + // 'Shift' maps to both 'ShiftLeft' and 'ShiftRight', and should be resolved + // by other ways. + expect( + entries.indexWhere((LogicalKeyEntry entry) => entry.webNames.contains('Shift')), + -1); + // Printable keys must not be added with Web key of their names. + expect( + entries.indexWhere((LogicalKeyEntry entry) => entry.webNames.contains('Slash')), + -1); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/encode_kn_arb_files.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/encode_kn_arb_files.dart new file mode 100644 index 0000000000000000000000000000000000000000..ae20dcca7da30e0feb2fe0895457c2f07747f62a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/encode_kn_arb_files.dart @@ -0,0 +1,91 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// The utility function `encodeKnArbFiles` replaces the material_kn.arb +// and cupertino_kn.arb files in flutter_localizations/packages/lib/src/l10n +// with versions where the contents of the localized strings have been +// replaced by JSON escapes. This is done because some of those strings +// contain characters that can crash Emacs on Linux. There is more information +// here: https://github.com/flutter/flutter/issues/36704 and in the README +// in flutter_localizations/packages/lib/src/l10n. +// +// This utility is run by `gen_localizations.dart` if --overwrite is passed +// in as an option. + +import 'dart:convert'; +import 'dart:io'; + +import 'package:path/path.dart' as path; + +import '../localizations_utils.dart'; + +Map _loadBundle(File file) { + if (!FileSystemEntity.isFileSync(file.path)) { + exitWithError('Unable to find input file: ${file.path}'); + } + return json.decode(file.readAsStringSync()) as Map; +} + +void _encodeBundleTranslations(Map bundle) { + for (final String key in bundle.keys) { + // The ARB file resource "attributes" for foo are called @foo. Don't need + // to encode them. + if (key.startsWith('@')) { + continue; + } + final String translation = bundle[key] as String; + // Rewrite the string as a series of unicode characters in JSON format. + // Like "\u0012\u0123\u1234". + bundle[key] = translation.runes.map((int code) { + final String codeString = '00${code.toRadixString(16)}'; + return '\\u${codeString.substring(codeString.length - 4)}'; + }).join(); + } +} + +void _checkEncodedTranslations(Map encodedBundle, Map bundle) { + bool errorFound = false; + const JsonDecoder decoder = JsonDecoder(); + for (final String key in bundle.keys) { + if (decoder.convert('"${encodedBundle[key]}"') != bundle[key]) { + stderr.writeln(' encodedTranslation for $key does not match original value "${bundle[key]}"'); + errorFound = true; + } + } + if (errorFound) { + exitWithError('JSON unicode translation encoding failed'); + } +} + +void _rewriteBundle(File file, Map bundle) { + final StringBuffer contents = StringBuffer(); + contents.writeln('{'); + for (final String key in bundle.keys) { + contents.writeln(' "$key": "${bundle[key]}"${key == bundle.keys.last ? '' : ','}'); + } + contents.writeln('}'); + file.writeAsStringSync(contents.toString()); +} + +void encodeKnArbFiles(Directory directory) { + final File widgetsArbFile = File(path.join(directory.path, 'widgets_kn.arb')); + final File materialArbFile = File(path.join(directory.path, 'material_kn.arb')); + final File cupertinoArbFile = File(path.join(directory.path, 'cupertino_kn.arb')); + + final Map widgetsBundle = _loadBundle(widgetsArbFile); + final Map materialBundle = _loadBundle(materialArbFile); + final Map cupertinoBundle = _loadBundle(cupertinoArbFile); + + _encodeBundleTranslations(widgetsBundle); + _encodeBundleTranslations(materialBundle); + _encodeBundleTranslations(cupertinoBundle); + + _checkEncodedTranslations(widgetsBundle, _loadBundle(widgetsArbFile)); + _checkEncodedTranslations(materialBundle, _loadBundle(materialArbFile)); + _checkEncodedTranslations(cupertinoBundle, _loadBundle(cupertinoArbFile)); + + _rewriteBundle(widgetsArbFile, widgetsBundle); + _rewriteBundle(materialArbFile, materialBundle); + _rewriteBundle(cupertinoArbFile, cupertinoBundle); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_date_localizations.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_date_localizations.dart new file mode 100644 index 0000000000000000000000000000000000000000..b0c410a63784e785ac4f861f4854551d42c2b24c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_date_localizations.dart @@ -0,0 +1,262 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:convert'; +import 'dart:io'; + +import 'package:path/path.dart' as path; + +import '../localizations_utils.dart'; + +const String _kCommandName = 'gen_date_localizations.dart'; + +// Used to let _jsonToMap know what locale it's date symbols converting for. +// Date symbols for the Kannada locale ('kn') are handled specially because +// some of the strings contain characters that can crash Emacs on Linux. +// See packages/flutter_localizations/lib/src/l10n/README for more information. +String? currentLocale; + +/// This program extracts localized date symbols and patterns from the intl +/// package for the subset of locales supported by the flutter_localizations +/// package. +/// +/// The extracted data is written into: +/// packages/flutter_localizations/lib/src/l10n/generated_date_localizations.dart +/// +/// ## Usage +/// +/// Run this program from the root of the git repository. +/// +/// The following outputs the generated Dart code to the console as a dry run: +/// +/// ``` +/// dart dev/tools/localization/bin/gen_date_localizations.dart +/// ``` +/// +/// If the data looks good, use the `--overwrite` option to overwrite the +/// lib/src/l10n/date_localizations.dart file: +/// +/// ``` +/// dart dev/tools/localization/bin/gen_date_localizations.dart --overwrite +/// ``` +Future main(List rawArgs) async { + checkCwdIsRepoRoot(_kCommandName); + + final bool writeToFile = parseArgs(rawArgs).writeToFile; + + final File packageConfigFile = File(path.join('packages', 'flutter_localizations', '.dart_tool', 'package_config.json')); + final bool packageConfigExists = packageConfigFile.existsSync(); + + if (!packageConfigExists) { + exitWithError( + 'File not found: ${packageConfigFile.path}. $_kCommandName must be run ' + 'after a successful "flutter update-packages".' + ); + } + + final List packages = ( + json.decode(packageConfigFile.readAsStringSync()) as Map + )['packages']! as List; + + String? pathToIntl; + for (final Object? package in packages) { + final Map packageAsMap = package! as Map; + if (packageAsMap['name'] == 'intl') { + pathToIntl = Uri.parse(packageAsMap['rootUri']! as String).toFilePath(); + break; + } + } + + if (pathToIntl == null) { + exitWithError( + 'Could not find "intl" package. $_kCommandName must be run ' + 'after a successful "flutter update-packages".' + ); + } + + final Directory dateSymbolsDirectory = Directory(path.join(pathToIntl!, 'lib', 'src', 'data', 'dates', 'symbols')); + final Map symbolFiles = _listIntlData(dateSymbolsDirectory); + final Directory datePatternsDirectory = Directory(path.join(pathToIntl, 'lib', 'src', 'data', 'dates', 'patterns')); + final Map patternFiles = _listIntlData(datePatternsDirectory); + final StringBuffer buffer = StringBuffer(); + final Set supportedLocales = _supportedLocales(); + + buffer.writeln( +''' +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file has been automatically generated. Please do not edit it manually. +// To regenerate run (omit --overwrite to print to console instead of the file): +// dart --enable-asserts dev/tools/localization/bin/gen_date_localizations.dart --overwrite + +import 'package:intl/date_symbols.dart' as intl; + +''' +); + buffer.writeln(''' +/// The subset of date symbols supported by the intl package which are also +/// supported by flutter_localizations.'''); + buffer.writeln('final Map dateSymbols = {'); + symbolFiles.forEach((String locale, File data) { + currentLocale = locale; + if (supportedLocales.contains(locale)) { + final Map objData = json.decode(data.readAsStringSync()) as Map; + buffer.writeln("'$locale': intl.DateSymbols("); + objData.forEach((String key, Object? value) { + if (value == null) { + return; + } + buffer.writeln(_jsonToConstructorEntry(key, value)); + }); + buffer.writeln('),'); + } + }); + currentLocale = null; + buffer.writeln('};'); + + // Code that uses datePatterns expects it to contain values of type + // Map not Map. + buffer.writeln(''' +/// The subset of date patterns supported by the intl package which are also +/// supported by flutter_localizations.'''); + buffer.writeln('const Map> datePatterns = > {'); + patternFiles.forEach((String locale, File data) { + if (supportedLocales.contains(locale)) { + final Map patterns = json.decode(data.readAsStringSync()) as Map; + buffer.writeln("'$locale': {"); + patterns.forEach((String key, dynamic value) { + assert(value is String); + buffer.writeln(_jsonToMapEntry(key, value)); + }); + buffer.writeln('},'); + } + }); + buffer.writeln('};'); + + if (writeToFile) { + final File dateLocalizationsFile = File(path.join('packages', 'flutter_localizations', 'lib', 'src', 'l10n', 'generated_date_localizations.dart')); + dateLocalizationsFile.writeAsStringSync(buffer.toString()); + final String extension = Platform.isWindows ? '.exe' : ''; + final ProcessResult result = Process.runSync(path.join('bin', 'cache', 'dart-sdk', 'bin', 'dart$extension'), [ + 'format', + dateLocalizationsFile.path, + ]); + if (result.exitCode != 0) { + print(result.exitCode); + print(result.stdout); + print(result.stderr); + } + } else { + print(buffer); + } +} + +String _jsonToConstructorEntry(String key, dynamic value) { + return '$key: ${_jsonToObject(value)},'; +} + +String _jsonToMapEntry(String key, dynamic value) { + return "'$key': ${_jsonToMap(value)},"; +} + +String _jsonToObject(dynamic json) { + if (json == null || json is num || json is bool) { + return '$json'; + } + + if (json is String) { + return generateEncodedString(currentLocale, json); + } + + if (json is Iterable) { + final String type = json.first.runtimeType.toString(); + final StringBuffer buffer = StringBuffer('const <$type>['); + for (final dynamic value in json) { + buffer.writeln('${_jsonToMap(value)},'); + } + buffer.write(']'); + return buffer.toString(); + } + + if (json is Map) { + final StringBuffer buffer = StringBuffer('{'); + json.forEach((String key, dynamic value) { + buffer.writeln(_jsonToMapEntry(key, value)); + }); + buffer.write('}'); + return buffer.toString(); + } + + throw 'Unsupported JSON type ${json.runtimeType} of value $json.'; +} + +String _jsonToMap(dynamic json) { + if (json == null || json is num || json is bool) { + return '$json'; + } + + if (json is String) { + return generateEncodedString(currentLocale, json); + } + + if (json is Iterable) { + final StringBuffer buffer = StringBuffer('['); + for (final dynamic value in json) { + buffer.writeln('${_jsonToMap(value)},'); + } + buffer.write(']'); + return buffer.toString(); + } + + if (json is Map) { + final StringBuffer buffer = StringBuffer('{'); + json.forEach((String key, dynamic value) { + buffer.writeln(_jsonToMapEntry(key, value)); + }); + buffer.write('}'); + return buffer.toString(); + } + + throw 'Unsupported JSON type ${json.runtimeType} of value $json.'; +} + +Set _supportedLocales() { + // Assumes that en_US is a supported locale by default. Without this, usage + // of the intl package APIs before Flutter populates its set of supported i18n + // date patterns and symbols may cause problems. + // + // For more context, see https://github.com/flutter/flutter/issues/67644. + final Set supportedLocales = { + 'en_US', + }; + final RegExp filenameRE = RegExp(r'(?:material|cupertino)_(\w+)\.arb$'); + final Directory supportedLocalesDirectory = Directory(path.join('packages', 'flutter_localizations', 'lib', 'src', 'l10n')); + for (final FileSystemEntity entity in supportedLocalesDirectory.listSync()) { + final String filePath = entity.path; + if (FileSystemEntity.isFileSync(filePath) && filenameRE.hasMatch(filePath)) { + supportedLocales.add(filenameRE.firstMatch(filePath)![1]!); + } + } + + return supportedLocales; +} + +Map _listIntlData(Directory directory) { + final Map localeFiles = {}; + final Iterable files = directory + .listSync() + .whereType() + .where((File file) => file.path.endsWith('.json')); + for (final File file in files) { + final String locale = path.basenameWithoutExtension(file.path); + localeFiles[locale] = file; + } + + final List locales = localeFiles.keys.toList(growable: false); + locales.sort(); + return Map.fromIterable(locales, value: (dynamic locale) => localeFiles[locale]!); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_localizations.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_localizations.dart new file mode 100644 index 0000000000000000000000000000000000000000..af70e2368955f6aa4fe1e1a42355bd06255dd4aa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_localizations.dart @@ -0,0 +1,664 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This program generates getMaterialTranslation(), getCupertinoTranslation(), +// and getWidgetsTranslation() functions that look up the translations provided by +// the arb files. The returned value is a generated instance of a +// GlobalMaterialLocalizations, GlobalCupertinoLocalizations, or +// GlobalWidgetsLocalizations object that corresponds to a single locale. +// +// The *.arb files are in packages/flutter_localizations/lib/src/l10n. +// +// The arb (JSON) format files must contain a single map indexed by locale. +// Each map value is itself a map with resource identifier keys and localized +// resource string values. +// +// The arb filenames are expected to have the form "material_(\w+)\.arb" or +// "cupertino_(\w+)\.arb" where the group following "_" identifies the language +// code and the country code, e.g. "material_en.arb" or "material_en_GB.arb". +// In most cases both codes are just two characters. +// +// This app is typically run by hand when a module's .arb files have been +// updated. +// +// ## Usage +// +// Run this program from the root of the git repository. +// +// The following outputs the generated Dart code to the console as a dry run: +// +// ``` +// dart dev/tools/localization/bin/gen_localizations.dart +// ``` +// +// If you have removed localizations from the canonical localizations, then +// add the '--remove-undefined' flag to also remove them from the other files. +// +// ``` +// dart dev/tools/localization/bin/gen_localizations.dart --remove-undefined +// ``` +// +// If the data looks good, use the `-w` or `--overwrite` option to overwrite the +// generated_material_localizations.dart, generated_cupertino_localizations.dart, +// and generated_widgets_localizations.dart files in packages/flutter_localizations/lib/src/l10n/: +// +// ``` +// dart dev/tools/localization/bin/gen_localizations.dart --overwrite +// ``` + +import 'dart:io'; + +import 'package:path/path.dart' as path; + +import '../gen_cupertino_localizations.dart'; +import '../gen_material_localizations.dart'; +import '../gen_widgets_localizations.dart'; +import '../localizations_utils.dart'; +import '../localizations_validator.dart'; +import 'encode_kn_arb_files.dart'; + +/// This is the core of this script; it generates the code used for translations. +String generateArbBasedLocalizationSubclasses({ + required Map> localeToResources, + required Map> localeToResourceAttributes, + required String generatedClassPrefix, + required String baseClass, + required HeaderGenerator generateHeader, + required ConstructorGenerator generateConstructor, + ConstructorGenerator? generateConstructorForCountrySubClass, + required String factoryName, + required String factoryDeclaration, + required bool callsFactoryWithConst, + required String factoryArguments, + required String supportedLanguagesConstant, + required String supportedLanguagesDocMacro, +}) { + assert(generatedClassPrefix.isNotEmpty); + assert(baseClass.isNotEmpty); + assert(factoryName.isNotEmpty); + assert(factoryDeclaration.isNotEmpty); + assert(factoryArguments.isNotEmpty); + assert(supportedLanguagesConstant.isNotEmpty); + assert(supportedLanguagesDocMacro.isNotEmpty); + generateConstructorForCountrySubClass ??= generateConstructor; + final StringBuffer output = StringBuffer(); + output.writeln(generateHeader('dart dev/tools/localization/bin/gen_localizations.dart --overwrite')); + + final StringBuffer supportedLocales = StringBuffer(); + + final Map> languageToLocales = >{}; + final Map> languageToScriptCodes = >{}; + // Used to calculate if there are any corresponding countries for a given language and script. + final Map> languageAndScriptToCountryCodes = >{}; + final Set allResourceIdentifiers = {}; + for (final LocaleInfo locale in localeToResources.keys.toList()..sort()) { + if (locale.scriptCode != null) { + languageToScriptCodes[locale.languageCode] ??= {}; + languageToScriptCodes[locale.languageCode]!.add(locale.scriptCode!); + } + if (locale.countryCode != null && locale.scriptCode != null) { + final LocaleInfo key = LocaleInfo.fromString('${locale.languageCode}_${locale.scriptCode}'); + languageAndScriptToCountryCodes[key] ??= {}; + languageAndScriptToCountryCodes[key]!.add(locale.countryCode!); + } + languageToLocales[locale.languageCode] ??= []; + languageToLocales[locale.languageCode]!.add(locale); + allResourceIdentifiers.addAll(localeToResources[locale]!.keys.toList()..sort()); + } + + // We generate one class per supported language (e.g. + // `MaterialLocalizationEn`). These implement everything that is needed by the + // superclass (e.g. GlobalMaterialLocalizations). + + // We also generate one subclass for each locale with a script code (e.g. + // `MaterialLocalizationZhHant`). Their superclasses are the aforementioned + // language classes for the same locale but without a script code (e.g. + // `MaterialLocalizationZh`). + + // We also generate one subclass for each locale with a country code (e.g. + // `MaterialLocalizationEnGb`). Their superclasses are the aforementioned + // language classes for the same locale but without a country code (e.g. + // `MaterialLocalizationEn`). + + // If scriptCodes for a language are defined, we expect a scriptCode to be + // defined for locales that contain a countryCode. The superclass becomes + // the script subclass (e.g. `MaterialLocalizationZhHant`) and the generated + // subclass will also contain the script code (e.g. `MaterialLocalizationZhHantTW`). + + // When scriptCodes are not defined for languages that use scriptCodes to distinguish + // between significantly differing scripts, we assume the scriptCodes in the + // [LocaleInfo.fromString] factory and add it to the [LocaleInfo]. We then generate + // the script classes based on the first locale that we assume to use the script. + + final List allKeys = allResourceIdentifiers.toList()..sort(); + final List languageCodes = languageToLocales.keys.toList()..sort(); + final LocaleInfo canonicalLocale = LocaleInfo.fromString('en'); + for (final String languageName in languageCodes) { + final LocaleInfo languageLocale = LocaleInfo.fromString(languageName); + output.writeln(generateClassDeclaration(languageLocale, generatedClassPrefix, baseClass)); + output.writeln(generateConstructor(languageLocale)); + + final Map languageResources = localeToResources[languageLocale]!; + for (final String key in allKeys) { + final Map? attributes = localeToResourceAttributes[canonicalLocale]![key] as Map?; + output.writeln(generateGetter(key, languageResources[key], attributes, languageLocale)); + } + output.writeln('}'); + int countryCodeCount = 0; + int scriptCodeCount = 0; + if (languageToScriptCodes.containsKey(languageName)) { + scriptCodeCount = languageToScriptCodes[languageName]!.length; + // Language has scriptCodes, so we need to properly fallback countries to corresponding + // script default values before language default values. + for (final String scriptCode in languageToScriptCodes[languageName]!) { + final LocaleInfo scriptBaseLocale = LocaleInfo.fromString('${languageName}_$scriptCode'); + output.writeln(generateClassDeclaration( + scriptBaseLocale, + generatedClassPrefix, + '$generatedClassPrefix${languageLocale.camelCase()}', + )); + output.writeln(generateConstructorForCountrySubClass(scriptBaseLocale)); + final Map scriptResources = localeToResources[scriptBaseLocale]!; + for (final String key in scriptResources.keys.toList()..sort()) { + if (languageResources[key] == scriptResources[key]) { + continue; + } + final Map? attributes = localeToResourceAttributes[canonicalLocale]![key] as Map?; + output.writeln(generateGetter(key, scriptResources[key], attributes, languageLocale)); + } + output.writeln('}'); + + final List localeCodes = languageToLocales[languageName]!..sort(); + for (final LocaleInfo locale in localeCodes) { + if (locale.originalString == languageName) { + continue; + } + if (locale.originalString == '${languageName}_$scriptCode') { + continue; + } + if (locale.scriptCode != scriptCode) { + continue; + } + countryCodeCount += 1; + output.writeln(generateClassDeclaration( + locale, + generatedClassPrefix, + '$generatedClassPrefix${scriptBaseLocale.camelCase()}', + )); + output.writeln(generateConstructorForCountrySubClass(locale)); + final Map localeResources = localeToResources[locale]!; + for (final String key in localeResources.keys) { + // When script fallback contains the key, we compare to it instead of language fallback. + if (scriptResources.containsKey(key) ? scriptResources[key] == localeResources[key] : languageResources[key] == localeResources[key]) { + continue; + } + final Map? attributes = localeToResourceAttributes[canonicalLocale]![key] as Map?; + output.writeln(generateGetter(key, localeResources[key], attributes, languageLocale)); + } + output.writeln('}'); + } + } + } else { + // No scriptCode. Here, we do not compare against script default (because it + // doesn't exist). + final List localeCodes = languageToLocales[languageName]!..sort(); + for (final LocaleInfo locale in localeCodes) { + if (locale.originalString == languageName) { + continue; + } + countryCodeCount += 1; + final Map localeResources = localeToResources[locale]!; + output.writeln(generateClassDeclaration( + locale, + generatedClassPrefix, + '$generatedClassPrefix${languageLocale.camelCase()}', + )); + output.writeln(generateConstructorForCountrySubClass(locale)); + for (final String key in localeResources.keys) { + if (languageResources[key] == localeResources[key]) { + continue; + } + final Map? attributes = localeToResourceAttributes[canonicalLocale]![key] as Map?; + output.writeln(generateGetter(key, localeResources[key], attributes, languageLocale)); + } + output.writeln('}'); + } + } + + final String scriptCodeMessage = scriptCodeCount == 0 ? '' : ' and $scriptCodeCount script${scriptCodeCount == 1 ? '' : 's'}'; + if (countryCodeCount == 0) { + if (scriptCodeCount == 0) { + supportedLocales.writeln('/// * `$languageName` - ${describeLocale(languageName)}'); + } else { + supportedLocales.writeln('/// * `$languageName` - ${describeLocale(languageName)} (plus $scriptCodeCount script${scriptCodeCount == 1 ? '' : 's'})'); + } + + } else if (countryCodeCount == 1) { + supportedLocales.writeln('/// * `$languageName` - ${describeLocale(languageName)} (plus one country variation$scriptCodeMessage)'); + } else { + supportedLocales.writeln('/// * `$languageName` - ${describeLocale(languageName)} (plus $countryCodeCount country variations$scriptCodeMessage)'); + } + } + + // Generate the factory function. Given a Locale it returns the corresponding + // base class implementation. + output.writeln(''' + +/// The set of supported languages, as language code strings. +/// +/// The [$baseClass.delegate] can generate localizations for +/// any [Locale] with a language code from this set, regardless of the region. +/// Some regions have specific support (e.g. `de` covers all forms of German, +/// but there is support for `de-CH` specifically to override some of the +/// translations for Switzerland). +/// +/// See also: +/// +/// * [$factoryName], whose documentation describes these values. +final Set $supportedLanguagesConstant = HashSet.from(const [ +${languageCodes.map((String value) => " '$value', // ${describeLocale(value)}").toList().join('\n')} +]); + +/// Creates a [$baseClass] instance for the given `locale`. +/// +/// All of the function's arguments except `locale` will be passed to the [ +/// $baseClass] constructor. (The `localeName` argument of that +/// constructor is specified by the actual subclass constructor by this +/// function.) +/// +/// The following locales are supported by this package: +/// +/// {@template $supportedLanguagesDocMacro} +$supportedLocales/// {@endtemplate} +/// +/// Generally speaking, this method is only intended to be used by +/// [$baseClass.delegate]. +$factoryDeclaration + switch (locale.languageCode) {'''); + for (final String language in languageToLocales.keys) { + // Only one instance of the language. + if (languageToLocales[language]!.length == 1) { + output.writeln(''' + case '$language': + return ${callsFactoryWithConst ? 'const ': ''}$generatedClassPrefix${languageToLocales[language]![0].camelCase()}($factoryArguments);'''); + } else if (!languageToScriptCodes.containsKey(language)) { // Does not distinguish between scripts. Switch on countryCode directly. + output.writeln(''' + case '$language': { + switch (locale.countryCode) {'''); + for (final LocaleInfo locale in languageToLocales[language]!) { + if (locale.originalString == language) { + continue; + } + assert(locale.length > 1); + final String countryCode = locale.countryCode!; + output.writeln(''' + case '$countryCode': + return ${callsFactoryWithConst ? 'const ': ''}$generatedClassPrefix${locale.camelCase()}($factoryArguments);'''); + } + output.writeln(''' + } + return ${callsFactoryWithConst ? 'const ': ''}$generatedClassPrefix${LocaleInfo.fromString(language).camelCase()}($factoryArguments); + }'''); + } else { // Language has scriptCode, add additional switch logic. + bool hasCountryCode = false; + output.writeln(''' + case '$language': { + switch (locale.scriptCode) {'''); + for (final String scriptCode in languageToScriptCodes[language]!) { + final LocaleInfo scriptLocale = LocaleInfo.fromString('${language}_$scriptCode'); + output.writeln(''' + case '$scriptCode': {'''); + if (languageAndScriptToCountryCodes.containsKey(scriptLocale)) { + output.writeln(''' + switch (locale.countryCode) {'''); + for (final LocaleInfo locale in languageToLocales[language]!) { + if (locale.countryCode == null) { + continue; + } else { + hasCountryCode = true; + } + if (locale.originalString == language) { + continue; + } + if (locale.scriptCode != scriptCode && locale.scriptCode != null) { + continue; + } + final String countryCode = locale.countryCode!; + output.writeln(''' + case '$countryCode': + return ${callsFactoryWithConst ? 'const ': ''}$generatedClassPrefix${locale.camelCase()}($factoryArguments);'''); + } + } + // Return a fallback locale that matches scriptCode, but not countryCode. + // + // Explicitly defined scriptCode fallback: + if (languageToLocales[language]!.contains(scriptLocale)) { + if (languageAndScriptToCountryCodes.containsKey(scriptLocale)) { + output.writeln(''' + }'''); + } + output.writeln(''' + return ${callsFactoryWithConst ? 'const ': ''}$generatedClassPrefix${scriptLocale.camelCase()}($factoryArguments); + }'''); + } else { + // Not Explicitly defined, fallback to first locale with the same language and + // script: + for (final LocaleInfo locale in languageToLocales[language]!) { + if (locale.scriptCode != scriptCode) { + continue; + } + if (languageAndScriptToCountryCodes.containsKey(scriptLocale)) { + output.writeln(''' + }'''); + } + output.writeln(''' + return ${callsFactoryWithConst ? 'const ': ''}$generatedClassPrefix${scriptLocale.camelCase()}($factoryArguments); + }'''); + break; + } + } + } + output.writeln(''' + }'''); + if (hasCountryCode) { + output.writeln(''' + switch (locale.countryCode) {'''); + for (final LocaleInfo locale in languageToLocales[language]!) { + if (locale.originalString == language) { + continue; + } + assert(locale.length > 1); + if (locale.countryCode == null) { + continue; + } + final String countryCode = locale.countryCode!; + output.writeln(''' + case '$countryCode': + return ${callsFactoryWithConst ? 'const ': ''}$generatedClassPrefix${locale.camelCase()}($factoryArguments);'''); + } + output.writeln(''' + }'''); + } + output.writeln(''' + return ${callsFactoryWithConst ? 'const ': ''}$generatedClassPrefix${LocaleInfo.fromString(language).camelCase()}($factoryArguments); + }'''); + } + } + output.writeln(''' + } + assert(false, '$factoryName() called for unsupported locale "\$locale"'); + return null; +}'''); + + return output.toString(); +} + +/// Returns the appropriate type for getters with the given attributes. +/// +/// Typically "String", but some (e.g. "timeOfDayFormat") return enums. +/// +/// Used by [generateGetter] below. +String generateType(Map? attributes) { + bool optional = false; + String type = 'String'; + if (attributes != null) { + optional = attributes.containsKey('optional'); + switch (attributes['x-flutter-type'] as String?) { + case 'icuShortTimePattern': + type = 'TimeOfDayFormat'; + case 'scriptCategory': + type = 'ScriptCategory'; + } + } + return type + (optional ? '?' : ''); +} + +/// Returns the appropriate name for getters with the given attributes. +/// +/// Typically this is the key unmodified, but some have parameters, and +/// the GlobalMaterialLocalizations class does the substitution, and for +/// those we have to therefore provide an alternate name. +/// +/// Used by [generateGetter] below. +String generateKey(String key, Map? attributes) { + if (attributes != null) { + if (attributes.containsKey('parameters')) { + return '${key}Raw'; + } + switch (attributes['x-flutter-type'] as String?) { + case 'icuShortTimePattern': + return '${key}Raw'; + } + } + if (key == 'datePickerDateOrder') { + return 'datePickerDateOrderString'; + } + if (key == 'datePickerDateTimeOrder') { + return 'datePickerDateTimeOrderString'; + } + return key; +} + +const Map _icuTimeOfDayToEnum = { + 'HH:mm': 'TimeOfDayFormat.HH_colon_mm', + 'HH.mm': 'TimeOfDayFormat.HH_dot_mm', + "HH 'h' mm": 'TimeOfDayFormat.frenchCanadian', + 'HH:mm น.': 'TimeOfDayFormat.HH_colon_mm', + 'H:mm': 'TimeOfDayFormat.H_colon_mm', + 'h:mm a': 'TimeOfDayFormat.h_colon_mm_space_a', + 'a h:mm': 'TimeOfDayFormat.a_space_h_colon_mm', + 'ah:mm': 'TimeOfDayFormat.a_space_h_colon_mm', +}; + +const Map _scriptCategoryToEnum = { + 'English-like': 'ScriptCategory.englishLike', + 'dense': 'ScriptCategory.dense', + 'tall': 'ScriptCategory.tall', +}; + +/// Returns the literal that describes the value returned by getters +/// with the given attributes. +/// +/// This handles cases like the value being a literal `null`, an enum, and so +/// on. The default is to treat the value as a string and escape it and quote +/// it. +/// +/// Used by [generateGetter] below. +String? generateValue(String? value, Map? attributes, LocaleInfo locale) { + if (value == null) { + return null; + } + // cupertino_en.arb doesn't use x-flutter-type. + if (attributes != null) { + switch (attributes['x-flutter-type'] as String?) { + case 'icuShortTimePattern': + if (!_icuTimeOfDayToEnum.containsKey(value)) { + throw Exception( + '"$value" is not one of the ICU short time patterns supported ' + 'by the material library. Here is the list of supported ' + 'patterns:\n ${_icuTimeOfDayToEnum.keys.join('\n ')}' + ); + } + return _icuTimeOfDayToEnum[value]; + case 'scriptCategory': + if (!_scriptCategoryToEnum.containsKey(value)) { + throw Exception( + '"$value" is not one of the scriptCategory values supported ' + 'by the material library. Here is the list of supported ' + 'values:\n ${_scriptCategoryToEnum.keys.join('\n ')}' + ); + } + return _scriptCategoryToEnum[value]; + } + } + return generateEncodedString(locale.languageCode, value); +} + +/// Combines [generateType], [generateKey], and [generateValue] to return +/// the source of getters for the GlobalMaterialLocalizations subclass. +/// The locale is the locale for which the getter is being generated. +String generateGetter(String key, String? value, Map? attributes, LocaleInfo locale) { + final String type = generateType(attributes); + key = generateKey(key, attributes); + final String? generatedValue = generateValue(value, attributes, locale); + return ''' + + @override + $type get $key => $generatedValue;'''; +} + +void main(List rawArgs) { + checkCwdIsRepoRoot('gen_localizations'); + final GeneratorOptions options = parseArgs(rawArgs); + + // filenames are assumed to end in "prefix_lc.arb" or "prefix_lc_cc.arb", where prefix + // is the 2nd command line argument, lc is a language code and cc is the country + // code. In most cases both codes are just two characters. + + final Directory directory = Directory(path.join('packages', 'flutter_localizations', 'lib', 'src', 'l10n')); + final RegExp widgetsFilenameRE = RegExp(r'widgets_(\w+)\.arb$'); + final RegExp materialFilenameRE = RegExp(r'material_(\w+)\.arb$'); + final RegExp cupertinoFilenameRE = RegExp(r'cupertino_(\w+)\.arb$'); + + try { + validateEnglishLocalizations(File(path.join(directory.path, 'widgets_en.arb'))); + validateEnglishLocalizations(File(path.join(directory.path, 'material_en.arb'))); + validateEnglishLocalizations(File(path.join(directory.path, 'cupertino_en.arb'))); + } on ValidationError catch (exception) { + exitWithError('$exception'); + } + + // Only rewrite material_kn.arb and cupertino_en.arb if overwriting the + // Material and Cupertino localizations files. + if (options.writeToFile) { + // Encodes the material_kn.arb file and the cupertino_en.arb files before + // generating localizations. This prevents a subset of Emacs users from + // crashing when opening up the Flutter source code. + // See https://github.com/flutter/flutter/issues/36704 for more context. + encodeKnArbFiles(directory); + } + + precacheLanguageAndRegionTags(); + + // Maps of locales to resource key/value pairs for Widgets ARBs. + final Map> widgetsLocaleToResources = >{}; + // Maps of locales to resource key/attributes pairs for Widgets ARBs. + // https://github.com/googlei18n/app-resource-bundle/wiki/ApplicationResourceBundleSpecification#resource-attributes + final Map> widgetsLocaleToResourceAttributes = >{}; + + // Maps of locales to resource key/value pairs for Material ARBs. + final Map> materialLocaleToResources = >{}; + // Maps of locales to resource key/attributes pairs for Material ARBs. + // https://github.com/googlei18n/app-resource-bundle/wiki/ApplicationResourceBundleSpecification#resource-attributes + final Map> materialLocaleToResourceAttributes = >{}; + + // Maps of locales to resource key/value pairs for Cupertino ARBs. + final Map> cupertinoLocaleToResources = >{}; + // Maps of locales to resource key/attributes pairs for Cupertino ARBs. + // https://github.com/googlei18n/app-resource-bundle/wiki/ApplicationResourceBundleSpecification#resource-attributes + final Map> cupertinoLocaleToResourceAttributes = >{}; + + loadMatchingArbsIntoBundleMaps( + directory: directory, + filenamePattern: widgetsFilenameRE, + localeToResources: widgetsLocaleToResources, + localeToResourceAttributes: widgetsLocaleToResourceAttributes, + ); + loadMatchingArbsIntoBundleMaps( + directory: directory, + filenamePattern: materialFilenameRE, + localeToResources: materialLocaleToResources, + localeToResourceAttributes: materialLocaleToResourceAttributes, + ); + loadMatchingArbsIntoBundleMaps( + directory: directory, + filenamePattern: cupertinoFilenameRE, + localeToResources: cupertinoLocaleToResources, + localeToResourceAttributes: cupertinoLocaleToResourceAttributes, + ); + + try { + validateLocalizations(widgetsLocaleToResources, widgetsLocaleToResourceAttributes, removeUndefined: options.removeUndefined); + validateLocalizations(materialLocaleToResources, materialLocaleToResourceAttributes, removeUndefined: options.removeUndefined); + validateLocalizations(cupertinoLocaleToResources, cupertinoLocaleToResourceAttributes, removeUndefined: options.removeUndefined); + } on ValidationError catch (exception) { + exitWithError('$exception'); + } + if (options.removeUndefined) { + removeUndefinedLocalizations(widgetsLocaleToResources); + removeUndefinedLocalizations(materialLocaleToResources); + removeUndefinedLocalizations(cupertinoLocaleToResources); + } + + final String? widgetsLocalizations = options.writeToFile || !options.cupertinoOnly + ? generateArbBasedLocalizationSubclasses( + localeToResources: widgetsLocaleToResources, + localeToResourceAttributes: widgetsLocaleToResourceAttributes, + generatedClassPrefix: 'WidgetsLocalization', + baseClass: 'GlobalWidgetsLocalizations', + generateHeader: generateWidgetsHeader, + generateConstructor: generateWidgetsConstructor, + generateConstructorForCountrySubClass: generateWidgetsConstructorForCountrySubclass, + factoryName: widgetsFactoryName, + factoryDeclaration: widgetsFactoryDeclaration, + callsFactoryWithConst: true, + factoryArguments: widgetsFactoryArguments, + supportedLanguagesConstant: widgetsSupportedLanguagesConstant, + supportedLanguagesDocMacro: widgetsSupportedLanguagesDocMacro, + ) + : null; + final String? materialLocalizations = options.writeToFile || !options.cupertinoOnly + ? generateArbBasedLocalizationSubclasses( + localeToResources: materialLocaleToResources, + localeToResourceAttributes: materialLocaleToResourceAttributes, + generatedClassPrefix: 'MaterialLocalization', + baseClass: 'GlobalMaterialLocalizations', + generateHeader: generateMaterialHeader, + generateConstructor: generateMaterialConstructor, + factoryName: materialFactoryName, + factoryDeclaration: materialFactoryDeclaration, + callsFactoryWithConst: false, + factoryArguments: materialFactoryArguments, + supportedLanguagesConstant: materialSupportedLanguagesConstant, + supportedLanguagesDocMacro: materialSupportedLanguagesDocMacro, + ) + : null; + final String? cupertinoLocalizations = options.writeToFile || !options.materialOnly + ? generateArbBasedLocalizationSubclasses( + localeToResources: cupertinoLocaleToResources, + localeToResourceAttributes: cupertinoLocaleToResourceAttributes, + generatedClassPrefix: 'CupertinoLocalization', + baseClass: 'GlobalCupertinoLocalizations', + generateHeader: generateCupertinoHeader, + generateConstructor: generateCupertinoConstructor, + factoryName: cupertinoFactoryName, + factoryDeclaration: cupertinoFactoryDeclaration, + callsFactoryWithConst: false, + factoryArguments: cupertinoFactoryArguments, + supportedLanguagesConstant: cupertinoSupportedLanguagesConstant, + supportedLanguagesDocMacro: cupertinoSupportedLanguagesDocMacro, + ) + : null; + + if (options.writeToFile) { + final File widgetsLocalizationsFile = File(path.join(directory.path, 'generated_widgets_localizations.dart')); + widgetsLocalizationsFile.writeAsStringSync(widgetsLocalizations!, flush: true); + final File materialLocalizationsFile = File(path.join(directory.path, 'generated_material_localizations.dart')); + materialLocalizationsFile.writeAsStringSync(materialLocalizations!, flush: true); + final File cupertinoLocalizationsFile = File(path.join(directory.path, 'generated_cupertino_localizations.dart')); + cupertinoLocalizationsFile.writeAsStringSync(cupertinoLocalizations!, flush: true); + } else { + if (options.cupertinoOnly) { + stdout.write(cupertinoLocalizations); + } else if (options.materialOnly) { + stdout.write(materialLocalizations); + } else if (options.widgetsOnly) { + stdout.write(widgetsLocalizations); + } else { + stdout.write(widgetsLocalizations); + stdout.write(materialLocalizations); + stdout.write(cupertinoLocalizations); + } + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_missing_localizations.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_missing_localizations.dart new file mode 100644 index 0000000000000000000000000000000000000000..12ddec762d712bb981cb27eea69795d69af1a8ca --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_missing_localizations.dart @@ -0,0 +1,150 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This program updates the language locale arb files with any missing resource +// entries that are included in the English arb files. This is useful when +// adding new resources for localization. You can just add the appropriate +// entries to the English arb file and then run this script. It will then check +// all of the other language locale arb files and update them with the English +// source for any missing resources. These will be picked up by the localization +// team and then translated. +// +// ## Usage +// +// Run this program from the root of the git repository. +// +// ``` +// dart dev/tools/localization/bin/gen_missing_localizations.dart +// ``` + +import 'dart:convert'; +import 'dart:io'; + +import 'package:path/path.dart' as path; + +import '../localizations_utils.dart'; +import '../localizations_validator.dart'; + +Future main(List rawArgs) async { + bool removeUndefined = false; + if (rawArgs.contains('--remove-undefined')) { + removeUndefined = true; + } + checkCwdIsRepoRoot('gen_missing_localizations'); + + final String localizationPath = path.join('packages', 'flutter_localizations', 'lib', 'src', 'l10n'); + updateMissingResources(localizationPath, 'material', removeUndefined: removeUndefined); + updateMissingResources(localizationPath, 'cupertino', removeUndefined: removeUndefined); +} + +Map loadBundle(File file) { + if (!FileSystemEntity.isFileSync(file.path)) { + exitWithError('Unable to find input file: ${file.path}'); + } + return json.decode(file.readAsStringSync()) as Map; +} + +void writeBundle(File file, Map bundle) { + final StringBuffer contents = StringBuffer(); + contents.writeln('{'); + for (final String key in bundle.keys) { + contents.writeln(' "$key": ${json.encode(bundle[key])}${key == bundle.keys.last ? '' : ','}'); + } + contents.writeln('}'); + file.writeAsStringSync(contents.toString()); +} + +Set resourceKeys(Map bundle) { + return Set.from( + // Skip any attribute keys + bundle.keys.where((String key) => !key.startsWith('@')) + ); +} + +bool intentionallyOmitted(String key, Map bundle) { + final String attributeKey = '@$key'; + final dynamic attribute = bundle[attributeKey]; + return attribute is Map && attribute.containsKey('notUsed'); +} + +/// Whether `key` corresponds to one of the plural variations of a key with +/// the same prefix and suffix "Other". +bool isPluralVariation(String key, Map bundle) { + final Match? pluralMatch = kPluralRegexp.firstMatch(key); + if (pluralMatch == null) { + return false; + } + final String prefix = pluralMatch[1]!; + return bundle.containsKey('${prefix}Other'); +} + +void updateMissingResources(String localizationPath, String groupPrefix, {bool removeUndefined = false}) { + final Directory localizationDir = Directory(localizationPath); + final RegExp filenamePattern = RegExp('${groupPrefix}_(\\w+)\\.arb'); + + final Map englishBundle = loadBundle(File(path.join(localizationPath, '${groupPrefix}_en.arb'))); + final Set requiredKeys = resourceKeys(englishBundle); + + for (final FileSystemEntity entity in localizationDir.listSync().toList()..sort(sortFilesByPath)) { + final String entityPath = entity.path; + if (FileSystemEntity.isFileSync(entityPath) && filenamePattern.hasMatch(entityPath)) { + final String localeString = filenamePattern.firstMatch(entityPath)![1]!; + final LocaleInfo locale = LocaleInfo.fromString(localeString); + + // Only look at top-level language locales + if (locale.length == 1) { + final File arbFile = File(entityPath); + final Map localeBundle = loadBundle(arbFile); + final Set localeResources = resourceKeys(localeBundle); + // Whether or not the resources were modified and need to be updated. + bool shouldWrite = false; + + // Remove any localizations that are not defined in the canonical + // locale. This allows unused localizations to be removed if + // --remove-undefined is passed. + if (removeUndefined) { + bool isIncluded(String key) { + return !isPluralVariation(key, localeBundle) + && !intentionallyOmitted(key, localeBundle); + } + + // Find any resources in this locale that don't appear in the + // canonical locale, and skipping any which should not be included + // (plurals and intentionally omitted). + final Set extraResources = localeResources + .difference(requiredKeys) + .where(isIncluded) + .toSet(); + + // Remove them. + localeBundle.removeWhere((String key, dynamic value) { + final bool found = extraResources.contains(key); + if (found) { + shouldWrite = true; + } + return found; + }); + if (shouldWrite) { + print('Updating $entityPath by removing extra entries for $extraResources'); + } + } + + // Add in any resources that are in the canonical locale and not present + // in this locale. + final Set missingResources = requiredKeys.difference(localeResources).where( + (String key) => !isPluralVariation(key, localeBundle) && !intentionallyOmitted(key, localeBundle) + ).toSet(); + if (missingResources.isNotEmpty) { + localeBundle.addEntries(missingResources.map((String k) => + MapEntry(k, englishBundle[k].toString()))); + shouldWrite = true; + print('Updating $entityPath with missing entries for $missingResources'); + } + if (shouldWrite) { + writeBundle(arbFile, localeBundle); + } + } + } + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_subtag_registry.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_subtag_registry.dart new file mode 100644 index 0000000000000000000000000000000000000000..5205432c272afa9fc472766a77b951de93567b6f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/bin/gen_subtag_registry.dart @@ -0,0 +1,35 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:io'; + +const String registry = 'https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry'; + +/// A script to generate a Dart cache of https://www.iana.org. This should be +/// run occasionally. It was created since iana.org was found to be flakey. +/// +/// To execute: dart gen_subtag_registry.dart > language_subtag_registry.dart +Future main() async { + final HttpClient client = HttpClient(); + final HttpClientRequest request = await client.getUrl(Uri.parse(registry)); + final HttpClientResponse response = await request.close(); + final String body = (await response.cast>().transform(utf8.decoder).toList()).join(); + final File subtagRegistry = File('../language_subtag_registry.dart'); + final File subtagRegistryFlutterTools = File('../../../../packages/flutter_tools/lib/src/localizations/language_subtag_registry.dart'); + + final String content = ''' +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/// Cache of $registry. +const String languageSubtagRegistry = \'\'\'$body\'\'\';'''; + + + subtagRegistry.writeAsStringSync(content); + subtagRegistryFlutterTools.writeAsStringSync(content); + + client.close(force: true); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/gen_cupertino_localizations.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/gen_cupertino_localizations.dart new file mode 100644 index 0000000000000000000000000000000000000000..26408bdaca7c8557149a4a523ad95602c0437b2d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/gen_cupertino_localizations.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'localizations_utils.dart'; + +String generateCupertinoHeader(String regenerateInstructions) { + return ''' +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file has been automatically generated. Please do not edit it manually. +// To regenerate the file, use: +// $regenerateInstructions + +import 'dart:collection'; + +import 'package:flutter/cupertino.dart'; +import 'package:intl/intl.dart' as intl; + +import '../cupertino_localizations.dart'; + +// The classes defined here encode all of the translations found in the +// `flutter_localizations/lib/src/l10n/*.arb` files. +// +// These classes are constructed by the [getCupertinoTranslation] method at the +// bottom of this file, and used by the [_GlobalCupertinoLocalizationsDelegate.load] +// method defined in `flutter_localizations/lib/src/cupertino_localizations.dart`.'''; +} + +/// Returns the source of the constructor for a GlobalCupertinoLocalizations +/// subclass. +String generateCupertinoConstructor(LocaleInfo locale) { + final String localeName = locale.originalString; + return ''' + /// Create an instance of the translation bundle for ${describeLocale(localeName)}. + /// + /// For details on the meaning of the arguments, see [GlobalCupertinoLocalizations]. + const CupertinoLocalization${locale.camelCase()}({ + super.localeName = '$localeName', + required super.fullYearFormat, + required super.dayFormat, + required super.mediumDateFormat, + required super.singleDigitHourFormat, + required super.singleDigitMinuteFormat, + required super.doubleDigitMinuteFormat, + required super.singleDigitSecondFormat, + required super.decimalFormat, + });'''; +} + +const String cupertinoFactoryName = 'getCupertinoTranslation'; + +const String cupertinoFactoryDeclaration = ''' +GlobalCupertinoLocalizations? getCupertinoTranslation( + Locale locale, + intl.DateFormat fullYearFormat, + intl.DateFormat dayFormat, + intl.DateFormat mediumDateFormat, + intl.DateFormat singleDigitHourFormat, + intl.DateFormat singleDigitMinuteFormat, + intl.DateFormat doubleDigitMinuteFormat, + intl.DateFormat singleDigitSecondFormat, + intl.NumberFormat decimalFormat, +) {'''; + +const String cupertinoFactoryArguments = + 'fullYearFormat: fullYearFormat, dayFormat: dayFormat, mediumDateFormat: mediumDateFormat, singleDigitHourFormat: singleDigitHourFormat, singleDigitMinuteFormat: singleDigitMinuteFormat, doubleDigitMinuteFormat: doubleDigitMinuteFormat, singleDigitSecondFormat: singleDigitSecondFormat, decimalFormat: decimalFormat'; + +const String cupertinoSupportedLanguagesConstant = 'kCupertinoSupportedLanguages'; + +const String cupertinoSupportedLanguagesDocMacro = 'flutter.localizations.cupertino.languages'; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/gen_material_localizations.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/gen_material_localizations.dart new file mode 100644 index 0000000000000000000000000000000000000000..dfd2daebd52d986ffe11970119ec792ca2256cde --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/gen_material_localizations.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'localizations_utils.dart'; + +String generateMaterialHeader(String regenerateInstructions) { + return ''' +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file has been automatically generated. Please do not edit it manually. +// To regenerate the file, use: +// $regenerateInstructions + +import 'dart:collection'; + +import 'package:flutter/material.dart'; +import 'package:intl/intl.dart' as intl; + +import '../material_localizations.dart'; + +// The classes defined here encode all of the translations found in the +// `flutter_localizations/lib/src/l10n/*.arb` files. +// +// These classes are constructed by the [getMaterialTranslation] method at the +// bottom of this file, and used by the [_MaterialLocalizationsDelegate.load] +// method defined in `flutter_localizations/lib/src/material_localizations.dart`.'''; +} + +/// Returns the source of the constructor for a GlobalMaterialLocalizations +/// subclass. +String generateMaterialConstructor(LocaleInfo locale) { + final String localeName = locale.originalString; + return ''' + /// Create an instance of the translation bundle for ${describeLocale(localeName)}. + /// + /// For details on the meaning of the arguments, see [GlobalMaterialLocalizations]. + const MaterialLocalization${locale.camelCase()}({ + super.localeName = '$localeName', + required super.fullYearFormat, + required super.compactDateFormat, + required super.shortDateFormat, + required super.mediumDateFormat, + required super.longDateFormat, + required super.yearMonthFormat, + required super.shortMonthDayFormat, + required super.decimalFormat, + required super.twoDigitZeroPaddedFormat, + });'''; +} + +const String materialFactoryName = 'getMaterialTranslation'; + +const String materialFactoryDeclaration = ''' +GlobalMaterialLocalizations? getMaterialTranslation( + Locale locale, + intl.DateFormat fullYearFormat, + intl.DateFormat compactDateFormat, + intl.DateFormat shortDateFormat, + intl.DateFormat mediumDateFormat, + intl.DateFormat longDateFormat, + intl.DateFormat yearMonthFormat, + intl.DateFormat shortMonthDayFormat, + intl.NumberFormat decimalFormat, + intl.NumberFormat twoDigitZeroPaddedFormat, +) {'''; + +const String materialFactoryArguments = + 'fullYearFormat: fullYearFormat, compactDateFormat: compactDateFormat, shortDateFormat: shortDateFormat, mediumDateFormat: mediumDateFormat, longDateFormat: longDateFormat, yearMonthFormat: yearMonthFormat, shortMonthDayFormat: shortMonthDayFormat, decimalFormat: decimalFormat, twoDigitZeroPaddedFormat: twoDigitZeroPaddedFormat'; + +const String materialSupportedLanguagesConstant = 'kMaterialSupportedLanguages'; + +const String materialSupportedLanguagesDocMacro = 'flutter.localizations.material.languages'; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/gen_widgets_localizations.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/gen_widgets_localizations.dart new file mode 100644 index 0000000000000000000000000000000000000000..4a3e735775bf456e0aa14f69a6acdec8bb1eb5b5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/gen_widgets_localizations.dart @@ -0,0 +1,74 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'localizations_utils.dart'; + +// See http://en.wikipedia.org/wiki/Right-to-left +const List _rtlLanguages = [ + 'ar', // Arabic + 'fa', // Farsi + 'he', // Hebrew + 'ps', // Pashto + 'ur', // Urdu +]; + +String generateWidgetsHeader(String regenerateInstructions) { + return ''' +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file has been automatically generated. Please do not edit it manually. +// To regenerate the file, use: +// $regenerateInstructions + +import 'dart:collection'; +import 'dart:ui'; + +import '../widgets_localizations.dart'; + +// The classes defined here encode all of the translations found in the +// `flutter_localizations/lib/src/l10n/*.arb` files. +// +// These classes are constructed by the [getWidgetsTranslation] method at the +// bottom of this file, and used by the [_WidgetsLocalizationsDelegate.load] +// method defined in `flutter_localizations/lib/src/widgets_localizations.dart`.'''; +} + +/// Returns the source of the constructor for a GlobalWidgetsLocalizations +/// subclass. +String generateWidgetsConstructor(LocaleInfo locale) { + final String localeName = locale.originalString; + final String language = locale.languageCode.toLowerCase(); + final String textDirection = _rtlLanguages.contains(language) ? 'TextDirection.rtl' : 'TextDirection.ltr'; + return ''' + /// Create an instance of the translation bundle for ${describeLocale(localeName)}. + /// + /// For details on the meaning of the arguments, see [GlobalWidgetsLocalizations]. + const WidgetsLocalization${locale.camelCase()}() : super($textDirection);'''; +} + +/// Returns the source of the constructor for a GlobalWidgetsLocalizations +/// subclass. +String generateWidgetsConstructorForCountrySubclass(LocaleInfo locale) { + final String localeName = locale.originalString; + return ''' + /// Create an instance of the translation bundle for ${describeLocale(localeName)}. + /// + /// For details on the meaning of the arguments, see [GlobalWidgetsLocalizations]. + const WidgetsLocalization${locale.camelCase()}();'''; +} + +const String widgetsFactoryName = 'getWidgetsTranslation'; + +const String widgetsFactoryDeclaration = ''' +GlobalWidgetsLocalizations? getWidgetsTranslation( + Locale locale, +) {'''; + +const String widgetsFactoryArguments = ''; + +const String widgetsSupportedLanguagesConstant = 'kWidgetsSupportedLanguages'; + +const String widgetsSupportedLanguagesDocMacro = 'flutter.localizations.widgets.languages'; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/language_subtag_registry.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/language_subtag_registry.dart new file mode 100644 index 0000000000000000000000000000000000000000..6372d6dfca6f0cf3fbf906a180e24c1f2329dec2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/language_subtag_registry.dart @@ -0,0 +1,47918 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +/// Cache of https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry. +const String languageSubtagRegistry = ''' +File-Date: 2020-03-16 +%% +Type: language +Subtag: aa +Description: Afar +Added: 2005-10-16 +%% +Type: language +Subtag: ab +Description: Abkhazian +Added: 2005-10-16 +Suppress-Script: Cyrl +%% +Type: language +Subtag: ae +Description: Avestan +Added: 2005-10-16 +%% +Type: language +Subtag: af +Description: Afrikaans +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ak +Description: Akan +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: am +Description: Amharic +Added: 2005-10-16 +Suppress-Script: Ethi +%% +Type: language +Subtag: an +Description: Aragonese +Added: 2005-10-16 +%% +Type: language +Subtag: ar +Description: Arabic +Added: 2005-10-16 +Suppress-Script: Arab +Scope: macrolanguage +%% +Type: language +Subtag: as +Description: Assamese +Added: 2005-10-16 +Suppress-Script: Beng +%% +Type: language +Subtag: av +Description: Avaric +Added: 2005-10-16 +%% +Type: language +Subtag: ay +Description: Aymara +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: az +Description: Azerbaijani +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: ba +Description: Bashkir +Added: 2005-10-16 +%% +Type: language +Subtag: be +Description: Belarusian +Added: 2005-10-16 +Suppress-Script: Cyrl +%% +Type: language +Subtag: bg +Description: Bulgarian +Added: 2005-10-16 +Suppress-Script: Cyrl +%% +Type: language +Subtag: bh +Description: Bihari languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: bi +Description: Bislama +Added: 2005-10-16 +%% +Type: language +Subtag: bm +Description: Bambara +Added: 2005-10-16 +%% +Type: language +Subtag: bn +Description: Bengali +Description: Bangla +Added: 2005-10-16 +Suppress-Script: Beng +%% +Type: language +Subtag: bo +Description: Tibetan +Added: 2005-10-16 +%% +Type: language +Subtag: br +Description: Breton +Added: 2005-10-16 +%% +Type: language +Subtag: bs +Description: Bosnian +Added: 2005-10-16 +Suppress-Script: Latn +Macrolanguage: sh +%% +Type: language +Subtag: ca +Description: Catalan +Description: Valencian +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ce +Description: Chechen +Added: 2005-10-16 +%% +Type: language +Subtag: ch +Description: Chamorro +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: co +Description: Corsican +Added: 2005-10-16 +%% +Type: language +Subtag: cr +Description: Cree +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: cs +Description: Czech +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: cu +Description: Church Slavic +Description: Church Slavonic +Description: Old Bulgarian +Description: Old Church Slavonic +Description: Old Slavonic +Added: 2005-10-16 +%% +Type: language +Subtag: cv +Description: Chuvash +Added: 2005-10-16 +%% +Type: language +Subtag: cy +Description: Welsh +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: da +Description: Danish +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: de +Description: German +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: dv +Description: Dhivehi +Description: Divehi +Description: Maldivian +Added: 2005-10-16 +Suppress-Script: Thaa +%% +Type: language +Subtag: dz +Description: Dzongkha +Added: 2005-10-16 +Suppress-Script: Tibt +%% +Type: language +Subtag: ee +Description: Ewe +Added: 2005-10-16 +%% +Type: language +Subtag: el +Description: Modern Greek (1453-) +Added: 2005-10-16 +Suppress-Script: Grek +%% +Type: language +Subtag: en +Description: English +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: eo +Description: Esperanto +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: es +Description: Spanish +Description: Castilian +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: et +Description: Estonian +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: eu +Description: Basque +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: fa +Description: Persian +Added: 2005-10-16 +Suppress-Script: Arab +Scope: macrolanguage +%% +Type: language +Subtag: ff +Description: Fulah +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: fi +Description: Finnish +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: fj +Description: Fijian +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: fo +Description: Faroese +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: fr +Description: French +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: fy +Description: Western Frisian +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ga +Description: Irish +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: gd +Description: Scottish Gaelic +Description: Gaelic +Added: 2005-10-16 +%% +Type: language +Subtag: gl +Description: Galician +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: gn +Description: Guarani +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: gu +Description: Gujarati +Added: 2005-10-16 +Suppress-Script: Gujr +%% +Type: language +Subtag: gv +Description: Manx +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ha +Description: Hausa +Added: 2005-10-16 +%% +Type: language +Subtag: he +Description: Hebrew +Added: 2005-10-16 +Suppress-Script: Hebr +%% +Type: language +Subtag: hi +Description: Hindi +Added: 2005-10-16 +Suppress-Script: Deva +%% +Type: language +Subtag: ho +Description: Hiri Motu +Added: 2005-10-16 +%% +Type: language +Subtag: hr +Description: Croatian +Added: 2005-10-16 +Suppress-Script: Latn +Macrolanguage: sh +%% +Type: language +Subtag: ht +Description: Haitian +Description: Haitian Creole +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: hu +Description: Hungarian +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: hy +Description: Armenian +Added: 2005-10-16 +Suppress-Script: Armn +Comments: see also hyw +%% +Type: language +Subtag: hz +Description: Herero +Added: 2005-10-16 +%% +Type: language +Subtag: ia +Description: Interlingua (International Auxiliary Language + Association) +Added: 2005-10-16 +%% +Type: language +Subtag: id +Description: Indonesian +Added: 2005-10-16 +Suppress-Script: Latn +Macrolanguage: ms +%% +Type: language +Subtag: ie +Description: Interlingue +Description: Occidental +Added: 2005-10-16 +%% +Type: language +Subtag: ig +Description: Igbo +Added: 2005-10-16 +%% +Type: language +Subtag: ii +Description: Sichuan Yi +Description: Nuosu +Added: 2005-10-16 +%% +Type: language +Subtag: ik +Description: Inupiaq +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: in +Description: Indonesian +Added: 2005-10-16 +Deprecated: 1989-01-01 +Preferred-Value: id +Suppress-Script: Latn +Macrolanguage: ms +%% +Type: language +Subtag: io +Description: Ido +Added: 2005-10-16 +%% +Type: language +Subtag: is +Description: Icelandic +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: it +Description: Italian +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: iu +Description: Inuktitut +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: iw +Description: Hebrew +Added: 2005-10-16 +Deprecated: 1989-01-01 +Preferred-Value: he +Suppress-Script: Hebr +%% +Type: language +Subtag: ja +Description: Japanese +Added: 2005-10-16 +Suppress-Script: Jpan +%% +Type: language +Subtag: ji +Description: Yiddish +Added: 2005-10-16 +Deprecated: 1989-01-01 +Preferred-Value: yi +%% +Type: language +Subtag: jv +Description: Javanese +Added: 2005-10-16 +%% +Type: language +Subtag: jw +Description: Javanese +Added: 2005-10-16 +Deprecated: 2001-08-13 +Preferred-Value: jv +Comments: published by error in Table 1 of ISO 639:1988 +%% +Type: language +Subtag: ka +Description: Georgian +Added: 2005-10-16 +Suppress-Script: Geor +%% +Type: language +Subtag: kg +Description: Kongo +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: ki +Description: Kikuyu +Description: Gikuyu +Added: 2005-10-16 +%% +Type: language +Subtag: kj +Description: Kuanyama +Description: Kwanyama +Added: 2005-10-16 +%% +Type: language +Subtag: kk +Description: Kazakh +Added: 2005-10-16 +Suppress-Script: Cyrl +%% +Type: language +Subtag: kl +Description: Kalaallisut +Description: Greenlandic +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: km +Description: Khmer +Description: Central Khmer +Added: 2005-10-16 +Suppress-Script: Khmr +%% +Type: language +Subtag: kn +Description: Kannada +Added: 2005-10-16 +Suppress-Script: Knda +%% +Type: language +Subtag: ko +Description: Korean +Added: 2005-10-16 +Suppress-Script: Kore +%% +Type: language +Subtag: kr +Description: Kanuri +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: ks +Description: Kashmiri +Added: 2005-10-16 +%% +Type: language +Subtag: ku +Description: Kurdish +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: kv +Description: Komi +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: kw +Description: Cornish +Added: 2005-10-16 +%% +Type: language +Subtag: ky +Description: Kirghiz +Description: Kyrgyz +Added: 2005-10-16 +%% +Type: language +Subtag: la +Description: Latin +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: lb +Description: Luxembourgish +Description: Letzeburgesch +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: lg +Description: Ganda +Description: Luganda +Added: 2005-10-16 +%% +Type: language +Subtag: li +Description: Limburgan +Description: Limburger +Description: Limburgish +Added: 2005-10-16 +%% +Type: language +Subtag: ln +Description: Lingala +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: lo +Description: Lao +Added: 2005-10-16 +Suppress-Script: Laoo +%% +Type: language +Subtag: lt +Description: Lithuanian +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: lu +Description: Luba-Katanga +Added: 2005-10-16 +%% +Type: language +Subtag: lv +Description: Latvian +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: mg +Description: Malagasy +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: mh +Description: Marshallese +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: mi +Description: Maori +Added: 2005-10-16 +%% +Type: language +Subtag: mk +Description: Macedonian +Added: 2005-10-16 +Suppress-Script: Cyrl +%% +Type: language +Subtag: ml +Description: Malayalam +Added: 2005-10-16 +Suppress-Script: Mlym +%% +Type: language +Subtag: mn +Description: Mongolian +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: mo +Description: Moldavian +Description: Moldovan +Added: 2005-10-16 +Deprecated: 2008-11-22 +Preferred-Value: ro +Suppress-Script: Latn +%% +Type: language +Subtag: mr +Description: Marathi +Added: 2005-10-16 +Suppress-Script: Deva +%% +Type: language +Subtag: ms +Description: Malay (macrolanguage) +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: mt +Description: Maltese +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: my +Description: Burmese +Added: 2005-10-16 +Suppress-Script: Mymr +%% +Type: language +Subtag: na +Description: Nauru +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: nb +Description: Norwegian Bokmål +Added: 2005-10-16 +Suppress-Script: Latn +Macrolanguage: no +%% +Type: language +Subtag: nd +Description: North Ndebele +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ne +Description: Nepali (macrolanguage) +Added: 2005-10-16 +Suppress-Script: Deva +Scope: macrolanguage +%% +Type: language +Subtag: ng +Description: Ndonga +Added: 2005-10-16 +%% +Type: language +Subtag: nl +Description: Dutch +Description: Flemish +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: nn +Description: Norwegian Nynorsk +Added: 2005-10-16 +Suppress-Script: Latn +Macrolanguage: no +%% +Type: language +Subtag: no +Description: Norwegian +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: nr +Description: South Ndebele +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: nv +Description: Navajo +Description: Navaho +Added: 2005-10-16 +%% +Type: language +Subtag: ny +Description: Nyanja +Description: Chewa +Description: Chichewa +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: oc +Description: Occitan (post 1500) +Added: 2005-10-16 +%% +Type: language +Subtag: oj +Description: Ojibwa +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: om +Description: Oromo +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: or +Description: Oriya (macrolanguage) +Description: Odia (macrolanguage) +Added: 2005-10-16 +Suppress-Script: Orya +Scope: macrolanguage +%% +Type: language +Subtag: os +Description: Ossetian +Description: Ossetic +Added: 2005-10-16 +%% +Type: language +Subtag: pa +Description: Panjabi +Description: Punjabi +Added: 2005-10-16 +Suppress-Script: Guru +%% +Type: language +Subtag: pi +Description: Pali +Added: 2005-10-16 +%% +Type: language +Subtag: pl +Description: Polish +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ps +Description: Pushto +Description: Pashto +Added: 2005-10-16 +Suppress-Script: Arab +Scope: macrolanguage +%% +Type: language +Subtag: pt +Description: Portuguese +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: qu +Description: Quechua +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: rm +Description: Romansh +Suppress-Script: Latn +Added: 2005-10-16 +%% +Type: language +Subtag: rn +Description: Rundi +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ro +Description: Romanian +Description: Moldavian +Description: Moldovan +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ru +Description: Russian +Added: 2005-10-16 +Suppress-Script: Cyrl +%% +Type: language +Subtag: rw +Description: Kinyarwanda +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: sa +Description: Sanskrit +Added: 2005-10-16 +%% +Type: language +Subtag: sc +Description: Sardinian +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: sd +Description: Sindhi +Added: 2005-10-16 +%% +Type: language +Subtag: se +Description: Northern Sami +Added: 2005-10-16 +%% +Type: language +Subtag: sg +Description: Sango +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: sh +Description: Serbo-Croatian +Added: 2005-10-16 +Scope: macrolanguage +Comments: sr, hr, bs are preferred for most modern uses +%% +Type: language +Subtag: si +Description: Sinhala +Description: Sinhalese +Added: 2005-10-16 +Suppress-Script: Sinh +%% +Type: language +Subtag: sk +Description: Slovak +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: sl +Description: Slovenian +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: sm +Description: Samoan +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: sn +Description: Shona +Added: 2005-10-16 +%% +Type: language +Subtag: so +Description: Somali +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: sq +Description: Albanian +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: sr +Description: Serbian +Added: 2005-10-16 +Macrolanguage: sh +Comments: see cnr for Montenegrin +%% +Type: language +Subtag: ss +Description: Swati +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: st +Description: Southern Sotho +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: su +Description: Sundanese +Added: 2005-10-16 +%% +Type: language +Subtag: sv +Description: Swedish +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: sw +Description: Swahili (macrolanguage) +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: ta +Description: Tamil +Added: 2005-10-16 +Suppress-Script: Taml +%% +Type: language +Subtag: te +Description: Telugu +Added: 2005-10-16 +Suppress-Script: Telu +%% +Type: language +Subtag: tg +Description: Tajik +Added: 2005-10-16 +%% +Type: language +Subtag: th +Description: Thai +Added: 2005-10-16 +Suppress-Script: Thai +%% +Type: language +Subtag: ti +Description: Tigrinya +Added: 2005-10-16 +Suppress-Script: Ethi +%% +Type: language +Subtag: tk +Description: Turkmen +Added: 2005-10-16 +%% +Type: language +Subtag: tl +Description: Tagalog +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: tn +Description: Tswana +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: to +Description: Tonga (Tonga Islands) +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: tr +Description: Turkish +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ts +Description: Tsonga +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: tt +Description: Tatar +Added: 2005-10-16 +%% +Type: language +Subtag: tw +Description: Twi +Added: 2005-10-16 +Macrolanguage: ak +%% +Type: language +Subtag: ty +Description: Tahitian +Added: 2005-10-16 +%% +Type: language +Subtag: ug +Description: Uighur +Description: Uyghur +Added: 2005-10-16 +%% +Type: language +Subtag: uk +Description: Ukrainian +Added: 2005-10-16 +Suppress-Script: Cyrl +%% +Type: language +Subtag: ur +Description: Urdu +Added: 2005-10-16 +Suppress-Script: Arab +%% +Type: language +Subtag: uz +Description: Uzbek +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: ve +Description: Venda +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: vi +Description: Vietnamese +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: vo +Description: Volapük +Added: 2005-10-16 +%% +Type: language +Subtag: wa +Description: Walloon +Added: 2005-10-16 +%% +Type: language +Subtag: wo +Description: Wolof +Added: 2005-10-16 +%% +Type: language +Subtag: xh +Description: Xhosa +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: yi +Description: Yiddish +Added: 2005-10-16 +Suppress-Script: Hebr +Scope: macrolanguage +%% +Type: language +Subtag: yo +Description: Yoruba +Added: 2005-10-16 +%% +Type: language +Subtag: za +Description: Zhuang +Description: Chuang +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: zh +Description: Chinese +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: zu +Description: Zulu +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: aaa +Description: Ghotuo +Added: 2009-07-29 +%% +Type: language +Subtag: aab +Description: Alumu-Tesu +Added: 2009-07-29 +%% +Type: language +Subtag: aac +Description: Ari +Added: 2009-07-29 +%% +Type: language +Subtag: aad +Description: Amal +Added: 2009-07-29 +%% +Type: language +Subtag: aae +Description: Arbëreshë Albanian +Added: 2009-07-29 +Macrolanguage: sq +%% +Type: language +Subtag: aaf +Description: Aranadan +Added: 2009-07-29 +%% +Type: language +Subtag: aag +Description: Ambrak +Added: 2009-07-29 +%% +Type: language +Subtag: aah +Description: Abu' Arapesh +Added: 2009-07-29 +%% +Type: language +Subtag: aai +Description: Arifama-Miniafia +Added: 2009-07-29 +%% +Type: language +Subtag: aak +Description: Ankave +Added: 2009-07-29 +%% +Type: language +Subtag: aal +Description: Afade +Added: 2009-07-29 +%% +Type: language +Subtag: aam +Description: Aramanik +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: aas +%% +Type: language +Subtag: aan +Description: Anambé +Added: 2009-07-29 +%% +Type: language +Subtag: aao +Description: Algerian Saharan Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: aap +Description: Pará Arára +Added: 2009-07-29 +%% +Type: language +Subtag: aaq +Description: Eastern Abnaki +Added: 2009-07-29 +%% +Type: language +Subtag: aas +Description: Aasáx +Added: 2009-07-29 +%% +Type: language +Subtag: aat +Description: Arvanitika Albanian +Added: 2009-07-29 +Macrolanguage: sq +%% +Type: language +Subtag: aau +Description: Abau +Added: 2009-07-29 +%% +Type: language +Subtag: aav +Description: Austro-Asiatic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: aaw +Description: Solong +Added: 2009-07-29 +%% +Type: language +Subtag: aax +Description: Mandobo Atas +Added: 2009-07-29 +%% +Type: language +Subtag: aaz +Description: Amarasi +Added: 2009-07-29 +%% +Type: language +Subtag: aba +Description: Abé +Added: 2009-07-29 +%% +Type: language +Subtag: abb +Description: Bankon +Added: 2009-07-29 +%% +Type: language +Subtag: abc +Description: Ambala Ayta +Added: 2009-07-29 +%% +Type: language +Subtag: abd +Description: Manide +Added: 2009-07-29 +%% +Type: language +Subtag: abe +Description: Western Abnaki +Added: 2009-07-29 +%% +Type: language +Subtag: abf +Description: Abai Sungai +Added: 2009-07-29 +%% +Type: language +Subtag: abg +Description: Abaga +Added: 2009-07-29 +%% +Type: language +Subtag: abh +Description: Tajiki Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: abi +Description: Abidji +Added: 2009-07-29 +%% +Type: language +Subtag: abj +Description: Aka-Bea +Added: 2009-07-29 +%% +Type: language +Subtag: abl +Description: Lampung Nyo +Added: 2009-07-29 +%% +Type: language +Subtag: abm +Description: Abanyom +Added: 2009-07-29 +%% +Type: language +Subtag: abn +Description: Abua +Added: 2009-07-29 +%% +Type: language +Subtag: abo +Description: Abon +Added: 2009-07-29 +%% +Type: language +Subtag: abp +Description: Abellen Ayta +Added: 2009-07-29 +%% +Type: language +Subtag: abq +Description: Abaza +Added: 2009-07-29 +%% +Type: language +Subtag: abr +Description: Abron +Added: 2009-07-29 +%% +Type: language +Subtag: abs +Description: Ambonese Malay +Added: 2009-07-29 +%% +Type: language +Subtag: abt +Description: Ambulas +Added: 2009-07-29 +%% +Type: language +Subtag: abu +Description: Abure +Added: 2009-07-29 +%% +Type: language +Subtag: abv +Description: Baharna Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: abw +Description: Pal +Added: 2009-07-29 +%% +Type: language +Subtag: abx +Description: Inabaknon +Added: 2009-07-29 +%% +Type: language +Subtag: aby +Description: Aneme Wake +Added: 2009-07-29 +%% +Type: language +Subtag: abz +Description: Abui +Added: 2009-07-29 +%% +Type: language +Subtag: aca +Description: Achagua +Added: 2009-07-29 +%% +Type: language +Subtag: acb +Description: Áncá +Added: 2009-07-29 +%% +Type: language +Subtag: acd +Description: Gikyode +Added: 2009-07-29 +%% +Type: language +Subtag: ace +Description: Achinese +Added: 2005-10-16 +%% +Type: language +Subtag: acf +Description: Saint Lucian Creole French +Added: 2009-07-29 +%% +Type: language +Subtag: ach +Description: Acoli +Added: 2005-10-16 +%% +Type: language +Subtag: aci +Description: Aka-Cari +Added: 2009-07-29 +%% +Type: language +Subtag: ack +Description: Aka-Kora +Added: 2009-07-29 +%% +Type: language +Subtag: acl +Description: Akar-Bale +Added: 2009-07-29 +%% +Type: language +Subtag: acm +Description: Mesopotamian Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: acn +Description: Achang +Added: 2009-07-29 +%% +Type: language +Subtag: acp +Description: Eastern Acipa +Added: 2009-07-29 +%% +Type: language +Subtag: acq +Description: Ta'izzi-Adeni Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: acr +Description: Achi +Added: 2009-07-29 +%% +Type: language +Subtag: acs +Description: Acroá +Added: 2009-07-29 +%% +Type: language +Subtag: act +Description: Achterhoeks +Added: 2009-07-29 +%% +Type: language +Subtag: acu +Description: Achuar-Shiwiar +Added: 2009-07-29 +%% +Type: language +Subtag: acv +Description: Achumawi +Added: 2009-07-29 +%% +Type: language +Subtag: acw +Description: Hijazi Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: acx +Description: Omani Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: acy +Description: Cypriot Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: acz +Description: Acheron +Added: 2009-07-29 +%% +Type: language +Subtag: ada +Description: Adangme +Added: 2005-10-16 +%% +Type: language +Subtag: adb +Description: Adabe +Added: 2009-07-29 +%% +Type: language +Subtag: add +Description: Lidzonka +Description: Dzodinka +Added: 2009-07-29 +%% +Type: language +Subtag: ade +Description: Adele +Added: 2009-07-29 +%% +Type: language +Subtag: adf +Description: Dhofari Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: adg +Description: Andegerebinha +Added: 2009-07-29 +%% +Type: language +Subtag: adh +Description: Adhola +Added: 2009-07-29 +%% +Type: language +Subtag: adi +Description: Adi +Added: 2009-07-29 +%% +Type: language +Subtag: adj +Description: Adioukrou +Added: 2009-07-29 +%% +Type: language +Subtag: adl +Description: Galo +Added: 2009-07-29 +%% +Type: language +Subtag: adn +Description: Adang +Added: 2009-07-29 +%% +Type: language +Subtag: ado +Description: Abu +Added: 2009-07-29 +%% +Type: language +Subtag: adp +Description: Adap +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: dz +%% +Type: language +Subtag: adq +Description: Adangbe +Added: 2009-07-29 +%% +Type: language +Subtag: adr +Description: Adonara +Added: 2009-07-29 +%% +Type: language +Subtag: ads +Description: Adamorobe Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: adt +Description: Adnyamathanha +Added: 2009-07-29 +%% +Type: language +Subtag: adu +Description: Aduge +Added: 2009-07-29 +%% +Type: language +Subtag: adw +Description: Amundava +Added: 2009-07-29 +%% +Type: language +Subtag: adx +Description: Amdo Tibetan +Added: 2009-07-29 +%% +Type: language +Subtag: ady +Description: Adyghe +Description: Adygei +Added: 2005-10-16 +%% +Type: language +Subtag: adz +Description: Adzera +Added: 2009-07-29 +%% +Type: language +Subtag: aea +Description: Areba +Added: 2009-07-29 +%% +Type: language +Subtag: aeb +Description: Tunisian Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: aec +Description: Saidi Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: aed +Description: Argentine Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: aee +Description: Northeast Pashai +Description: Northeast Pashayi +Added: 2009-07-29 +%% +Type: language +Subtag: aek +Description: Haeke +Added: 2009-07-29 +%% +Type: language +Subtag: ael +Description: Ambele +Added: 2009-07-29 +%% +Type: language +Subtag: aem +Description: Arem +Added: 2009-07-29 +%% +Type: language +Subtag: aen +Description: Armenian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: aeq +Description: Aer +Added: 2009-07-29 +%% +Type: language +Subtag: aer +Description: Eastern Arrernte +Added: 2009-07-29 +%% +Type: language +Subtag: aes +Description: Alsea +Added: 2009-07-29 +%% +Type: language +Subtag: aeu +Description: Akeu +Added: 2009-07-29 +%% +Type: language +Subtag: aew +Description: Ambakich +Added: 2009-07-29 +%% +Type: language +Subtag: aey +Description: Amele +Added: 2009-07-29 +%% +Type: language +Subtag: aez +Description: Aeka +Added: 2009-07-29 +%% +Type: language +Subtag: afa +Description: Afro-Asiatic languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: afb +Description: Gulf Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: afd +Description: Andai +Added: 2009-07-29 +%% +Type: language +Subtag: afe +Description: Putukwam +Added: 2009-07-29 +%% +Type: language +Subtag: afg +Description: Afghan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: afh +Description: Afrihili +Added: 2005-10-16 +%% +Type: language +Subtag: afi +Description: Akrukay +Description: Chini +Added: 2009-07-29 +%% +Type: language +Subtag: afk +Description: Nanubae +Added: 2009-07-29 +%% +Type: language +Subtag: afn +Description: Defaka +Added: 2009-07-29 +%% +Type: language +Subtag: afo +Description: Eloyi +Added: 2009-07-29 +%% +Type: language +Subtag: afp +Description: Tapei +Added: 2009-07-29 +%% +Type: language +Subtag: afs +Description: Afro-Seminole Creole +Added: 2009-07-29 +%% +Type: language +Subtag: aft +Description: Afitti +Added: 2009-07-29 +%% +Type: language +Subtag: afu +Description: Awutu +Added: 2009-07-29 +%% +Type: language +Subtag: afz +Description: Obokuitai +Added: 2009-07-29 +%% +Type: language +Subtag: aga +Description: Aguano +Added: 2009-07-29 +%% +Type: language +Subtag: agb +Description: Legbo +Added: 2009-07-29 +%% +Type: language +Subtag: agc +Description: Agatu +Added: 2009-07-29 +%% +Type: language +Subtag: agd +Description: Agarabi +Added: 2009-07-29 +%% +Type: language +Subtag: age +Description: Angal +Added: 2009-07-29 +%% +Type: language +Subtag: agf +Description: Arguni +Added: 2009-07-29 +%% +Type: language +Subtag: agg +Description: Angor +Added: 2009-07-29 +%% +Type: language +Subtag: agh +Description: Ngelima +Added: 2009-07-29 +%% +Type: language +Subtag: agi +Description: Agariya +Added: 2009-07-29 +%% +Type: language +Subtag: agj +Description: Argobba +Added: 2009-07-29 +%% +Type: language +Subtag: agk +Description: Isarog Agta +Added: 2009-07-29 +%% +Type: language +Subtag: agl +Description: Fembe +Added: 2009-07-29 +%% +Type: language +Subtag: agm +Description: Angaataha +Added: 2009-07-29 +%% +Type: language +Subtag: agn +Description: Agutaynen +Added: 2009-07-29 +%% +Type: language +Subtag: ago +Description: Tainae +Added: 2009-07-29 +%% +Type: language +Subtag: agp +Description: Paranan +Added: 2009-07-29 +Deprecated: 2010-03-11 +Comments: see apf, prf +%% +Type: language +Subtag: agq +Description: Aghem +Added: 2009-07-29 +%% +Type: language +Subtag: agr +Description: Aguaruna +Added: 2009-07-29 +%% +Type: language +Subtag: ags +Description: Esimbi +Added: 2009-07-29 +%% +Type: language +Subtag: agt +Description: Central Cagayan Agta +Added: 2009-07-29 +%% +Type: language +Subtag: agu +Description: Aguacateco +Added: 2009-07-29 +%% +Type: language +Subtag: agv +Description: Remontado Dumagat +Added: 2009-07-29 +%% +Type: language +Subtag: agw +Description: Kahua +Added: 2009-07-29 +%% +Type: language +Subtag: agx +Description: Aghul +Added: 2009-07-29 +%% +Type: language +Subtag: agy +Description: Southern Alta +Added: 2009-07-29 +%% +Type: language +Subtag: agz +Description: Mt. Iriga Agta +Added: 2009-07-29 +%% +Type: language +Subtag: aha +Description: Ahanta +Added: 2009-07-29 +%% +Type: language +Subtag: ahb +Description: Axamb +Added: 2009-07-29 +%% +Type: language +Subtag: ahg +Description: Qimant +Added: 2009-07-29 +%% +Type: language +Subtag: ahh +Description: Aghu +Added: 2009-07-29 +%% +Type: language +Subtag: ahi +Description: Tiagbamrin Aizi +Added: 2009-07-29 +%% +Type: language +Subtag: ahk +Description: Akha +Added: 2009-07-29 +%% +Type: language +Subtag: ahl +Description: Igo +Added: 2009-07-29 +%% +Type: language +Subtag: ahm +Description: Mobumrin Aizi +Added: 2009-07-29 +%% +Type: language +Subtag: ahn +Description: Àhàn +Added: 2009-07-29 +%% +Type: language +Subtag: aho +Description: Ahom +Added: 2009-07-29 +%% +Type: language +Subtag: ahp +Description: Aproumu Aizi +Added: 2009-07-29 +%% +Type: language +Subtag: ahr +Description: Ahirani +Added: 2009-07-29 +%% +Type: language +Subtag: ahs +Description: Ashe +Added: 2009-07-29 +%% +Type: language +Subtag: aht +Description: Ahtena +Added: 2009-07-29 +%% +Type: language +Subtag: aia +Description: Arosi +Added: 2009-07-29 +%% +Type: language +Subtag: aib +Description: Ainu (China) +Added: 2009-07-29 +%% +Type: language +Subtag: aic +Description: Ainbai +Added: 2009-07-29 +%% +Type: language +Subtag: aid +Description: Alngith +Added: 2009-07-29 +%% +Type: language +Subtag: aie +Description: Amara +Added: 2009-07-29 +%% +Type: language +Subtag: aif +Description: Agi +Added: 2009-07-29 +%% +Type: language +Subtag: aig +Description: Antigua and Barbuda Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: aih +Description: Ai-Cham +Added: 2009-07-29 +%% +Type: language +Subtag: aii +Description: Assyrian Neo-Aramaic +Added: 2009-07-29 +Macrolanguage: syr +%% +Type: language +Subtag: aij +Description: Lishanid Noshan +Added: 2009-07-29 +%% +Type: language +Subtag: aik +Description: Ake +Added: 2009-07-29 +%% +Type: language +Subtag: ail +Description: Aimele +Added: 2009-07-29 +%% +Type: language +Subtag: aim +Description: Aimol +Added: 2009-07-29 +%% +Type: language +Subtag: ain +Description: Ainu (Japan) +Added: 2005-10-16 +%% +Type: language +Subtag: aio +Description: Aiton +Added: 2009-07-29 +%% +Type: language +Subtag: aip +Description: Burumakok +Added: 2009-07-29 +%% +Type: language +Subtag: aiq +Description: Aimaq +Added: 2009-07-29 +%% +Type: language +Subtag: air +Description: Airoran +Added: 2009-07-29 +%% +Type: language +Subtag: ais +Description: Nataoran Amis +Added: 2009-07-29 +Deprecated: 2019-04-16 +Comments: see ami, szy +%% +Type: language +Subtag: ait +Description: Arikem +Added: 2009-07-29 +%% +Type: language +Subtag: aiw +Description: Aari +Added: 2009-07-29 +%% +Type: language +Subtag: aix +Description: Aighon +Added: 2009-07-29 +%% +Type: language +Subtag: aiy +Description: Ali +Added: 2009-07-29 +%% +Type: language +Subtag: aja +Description: Aja (South Sudan) +Added: 2009-07-29 +%% +Type: language +Subtag: ajg +Description: Aja (Benin) +Added: 2009-07-29 +%% +Type: language +Subtag: aji +Description: Ajië +Added: 2009-07-29 +%% +Type: language +Subtag: ajn +Description: Andajin +Added: 2012-08-12 +%% +Type: language +Subtag: ajp +Description: South Levantine Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: ajt +Description: Judeo-Tunisian Arabic +Added: 2009-07-29 +Macrolanguage: jrb +%% +Type: language +Subtag: aju +Description: Judeo-Moroccan Arabic +Added: 2009-07-29 +Macrolanguage: jrb +%% +Type: language +Subtag: ajw +Description: Ajawa +Added: 2009-07-29 +%% +Type: language +Subtag: ajz +Description: Amri Karbi +Added: 2009-07-29 +%% +Type: language +Subtag: akb +Description: Batak Angkola +Added: 2009-07-29 +%% +Type: language +Subtag: akc +Description: Mpur +Added: 2009-07-29 +%% +Type: language +Subtag: akd +Description: Ukpet-Ehom +Added: 2009-07-29 +%% +Type: language +Subtag: ake +Description: Akawaio +Added: 2009-07-29 +%% +Type: language +Subtag: akf +Description: Akpa +Added: 2009-07-29 +%% +Type: language +Subtag: akg +Description: Anakalangu +Added: 2009-07-29 +%% +Type: language +Subtag: akh +Description: Angal Heneng +Added: 2009-07-29 +%% +Type: language +Subtag: aki +Description: Aiome +Added: 2009-07-29 +%% +Type: language +Subtag: akj +Description: Aka-Jeru +Added: 2009-07-29 +%% +Type: language +Subtag: akk +Description: Akkadian +Added: 2005-10-16 +%% +Type: language +Subtag: akl +Description: Aklanon +Added: 2009-07-29 +%% +Type: language +Subtag: akm +Description: Aka-Bo +Added: 2009-07-29 +%% +Type: language +Subtag: ako +Description: Akurio +Added: 2009-07-29 +%% +Type: language +Subtag: akp +Description: Siwu +Added: 2009-07-29 +%% +Type: language +Subtag: akq +Description: Ak +Added: 2009-07-29 +%% +Type: language +Subtag: akr +Description: Araki +Added: 2009-07-29 +%% +Type: language +Subtag: aks +Description: Akaselem +Added: 2009-07-29 +%% +Type: language +Subtag: akt +Description: Akolet +Added: 2009-07-29 +%% +Type: language +Subtag: aku +Description: Akum +Added: 2009-07-29 +%% +Type: language +Subtag: akv +Description: Akhvakh +Added: 2009-07-29 +%% +Type: language +Subtag: akw +Description: Akwa +Added: 2009-07-29 +%% +Type: language +Subtag: akx +Description: Aka-Kede +Added: 2009-07-29 +%% +Type: language +Subtag: aky +Description: Aka-Kol +Added: 2009-07-29 +%% +Type: language +Subtag: akz +Description: Alabama +Added: 2009-07-29 +%% +Type: language +Subtag: ala +Description: Alago +Added: 2009-07-29 +%% +Type: language +Subtag: alc +Description: Qawasqar +Added: 2009-07-29 +%% +Type: language +Subtag: ald +Description: Alladian +Added: 2009-07-29 +%% +Type: language +Subtag: ale +Description: Aleut +Added: 2005-10-16 +%% +Type: language +Subtag: alf +Description: Alege +Added: 2009-07-29 +%% +Type: language +Subtag: alg +Description: Algonquian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: alh +Description: Alawa +Added: 2009-07-29 +%% +Type: language +Subtag: ali +Description: Amaimon +Added: 2009-07-29 +%% +Type: language +Subtag: alj +Description: Alangan +Added: 2009-07-29 +%% +Type: language +Subtag: alk +Description: Alak +Added: 2009-07-29 +%% +Type: language +Subtag: all +Description: Allar +Added: 2009-07-29 +%% +Type: language +Subtag: alm +Description: Amblong +Added: 2009-07-29 +%% +Type: language +Subtag: aln +Description: Gheg Albanian +Added: 2009-07-29 +Macrolanguage: sq +%% +Type: language +Subtag: alo +Description: Larike-Wakasihu +Added: 2009-07-29 +%% +Type: language +Subtag: alp +Description: Alune +Added: 2009-07-29 +%% +Type: language +Subtag: alq +Description: Algonquin +Added: 2009-07-29 +%% +Type: language +Subtag: alr +Description: Alutor +Added: 2009-07-29 +%% +Type: language +Subtag: als +Description: Tosk Albanian +Added: 2009-07-29 +Macrolanguage: sq +%% +Type: language +Subtag: alt +Description: Southern Altai +Added: 2005-10-16 +%% +Type: language +Subtag: alu +Description: 'Are'are +Added: 2009-07-29 +%% +Type: language +Subtag: alv +Description: Atlantic-Congo languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: alw +Description: Alaba-K’abeena +Description: Wanbasana +Added: 2009-07-29 +%% +Type: language +Subtag: alx +Description: Amol +Added: 2009-07-29 +%% +Type: language +Subtag: aly +Description: Alyawarr +Added: 2009-07-29 +%% +Type: language +Subtag: alz +Description: Alur +Added: 2009-07-29 +%% +Type: language +Subtag: ama +Description: Amanayé +Added: 2009-07-29 +%% +Type: language +Subtag: amb +Description: Ambo +Added: 2009-07-29 +%% +Type: language +Subtag: amc +Description: Amahuaca +Added: 2009-07-29 +%% +Type: language +Subtag: ame +Description: Yanesha' +Added: 2009-07-29 +%% +Type: language +Subtag: amf +Description: Hamer-Banna +Added: 2009-07-29 +%% +Type: language +Subtag: amg +Description: Amurdak +Added: 2009-07-29 +%% +Type: language +Subtag: ami +Description: Amis +Added: 2009-07-29 +%% +Type: language +Subtag: amj +Description: Amdang +Added: 2009-07-29 +%% +Type: language +Subtag: amk +Description: Ambai +Added: 2009-07-29 +%% +Type: language +Subtag: aml +Description: War-Jaintia +Added: 2009-07-29 +%% +Type: language +Subtag: amm +Description: Ama (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: amn +Description: Amanab +Added: 2009-07-29 +%% +Type: language +Subtag: amo +Description: Amo +Added: 2009-07-29 +%% +Type: language +Subtag: amp +Description: Alamblak +Added: 2009-07-29 +%% +Type: language +Subtag: amq +Description: Amahai +Added: 2009-07-29 +%% +Type: language +Subtag: amr +Description: Amarakaeri +Added: 2009-07-29 +%% +Type: language +Subtag: ams +Description: Southern Amami-Oshima +Added: 2009-07-29 +%% +Type: language +Subtag: amt +Description: Amto +Added: 2009-07-29 +%% +Type: language +Subtag: amu +Description: Guerrero Amuzgo +Added: 2009-07-29 +%% +Type: language +Subtag: amv +Description: Ambelau +Added: 2009-07-29 +%% +Type: language +Subtag: amw +Description: Western Neo-Aramaic +Added: 2009-07-29 +%% +Type: language +Subtag: amx +Description: Anmatyerre +Added: 2009-07-29 +%% +Type: language +Subtag: amy +Description: Ami +Added: 2009-07-29 +%% +Type: language +Subtag: amz +Description: Atampaya +Added: 2009-07-29 +%% +Type: language +Subtag: ana +Description: Andaqui +Added: 2009-07-29 +%% +Type: language +Subtag: anb +Description: Andoa +Added: 2009-07-29 +%% +Type: language +Subtag: anc +Description: Ngas +Added: 2009-07-29 +%% +Type: language +Subtag: and +Description: Ansus +Added: 2009-07-29 +%% +Type: language +Subtag: ane +Description: Xârâcùù +Added: 2009-07-29 +%% +Type: language +Subtag: anf +Description: Animere +Added: 2009-07-29 +%% +Type: language +Subtag: ang +Description: Old English (ca. 450-1100) +Added: 2005-10-16 +%% +Type: language +Subtag: anh +Description: Nend +Added: 2009-07-29 +%% +Type: language +Subtag: ani +Description: Andi +Added: 2009-07-29 +%% +Type: language +Subtag: anj +Description: Anor +Added: 2009-07-29 +%% +Type: language +Subtag: ank +Description: Goemai +Added: 2009-07-29 +%% +Type: language +Subtag: anl +Description: Anu-Hkongso Chin +Added: 2009-07-29 +%% +Type: language +Subtag: anm +Description: Anal +Added: 2009-07-29 +%% +Type: language +Subtag: ann +Description: Obolo +Added: 2009-07-29 +%% +Type: language +Subtag: ano +Description: Andoque +Added: 2009-07-29 +%% +Type: language +Subtag: anp +Description: Angika +Added: 2006-03-08 +%% +Type: language +Subtag: anq +Description: Jarawa (India) +Added: 2009-07-29 +%% +Type: language +Subtag: anr +Description: Andh +Added: 2009-07-29 +%% +Type: language +Subtag: ans +Description: Anserma +Added: 2009-07-29 +%% +Type: language +Subtag: ant +Description: Antakarinya +Description: Antikarinya +Added: 2009-07-29 +%% +Type: language +Subtag: anu +Description: Anuak +Added: 2009-07-29 +%% +Type: language +Subtag: anv +Description: Denya +Added: 2009-07-29 +%% +Type: language +Subtag: anw +Description: Anaang +Added: 2009-07-29 +%% +Type: language +Subtag: anx +Description: Andra-Hus +Added: 2009-07-29 +%% +Type: language +Subtag: any +Description: Anyin +Added: 2009-07-29 +%% +Type: language +Subtag: anz +Description: Anem +Added: 2009-07-29 +%% +Type: language +Subtag: aoa +Description: Angolar +Added: 2009-07-29 +%% +Type: language +Subtag: aob +Description: Abom +Added: 2009-07-29 +%% +Type: language +Subtag: aoc +Description: Pemon +Added: 2009-07-29 +%% +Type: language +Subtag: aod +Description: Andarum +Added: 2009-07-29 +%% +Type: language +Subtag: aoe +Description: Angal Enen +Added: 2009-07-29 +%% +Type: language +Subtag: aof +Description: Bragat +Added: 2009-07-29 +%% +Type: language +Subtag: aog +Description: Angoram +Added: 2009-07-29 +%% +Type: language +Subtag: aoh +Description: Arma +Added: 2009-07-29 +%% +Type: language +Subtag: aoi +Description: Anindilyakwa +Added: 2009-07-29 +%% +Type: language +Subtag: aoj +Description: Mufian +Added: 2009-07-29 +%% +Type: language +Subtag: aok +Description: Arhö +Added: 2009-07-29 +%% +Type: language +Subtag: aol +Description: Alor +Added: 2009-07-29 +%% +Type: language +Subtag: aom +Description: Ömie +Added: 2009-07-29 +%% +Type: language +Subtag: aon +Description: Bumbita Arapesh +Added: 2009-07-29 +%% +Type: language +Subtag: aor +Description: Aore +Added: 2009-07-29 +%% +Type: language +Subtag: aos +Description: Taikat +Added: 2009-07-29 +%% +Type: language +Subtag: aot +Description: Atong (India) +Description: A'tong +Added: 2009-07-29 +%% +Type: language +Subtag: aou +Description: A'ou +Added: 2012-08-12 +%% +Type: language +Subtag: aox +Description: Atorada +Added: 2009-07-29 +%% +Type: language +Subtag: aoz +Description: Uab Meto +Added: 2009-07-29 +%% +Type: language +Subtag: apa +Description: Apache languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: apb +Description: Sa'a +Added: 2009-07-29 +%% +Type: language +Subtag: apc +Description: North Levantine Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: apd +Description: Sudanese Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: ape +Description: Bukiyip +Added: 2009-07-29 +%% +Type: language +Subtag: apf +Description: Pahanan Agta +Added: 2010-03-11 +%% +Type: language +Subtag: apg +Description: Ampanang +Added: 2009-07-29 +%% +Type: language +Subtag: aph +Description: Athpariya +Added: 2009-07-29 +%% +Type: language +Subtag: api +Description: Apiaká +Added: 2009-07-29 +%% +Type: language +Subtag: apj +Description: Jicarilla Apache +Added: 2009-07-29 +%% +Type: language +Subtag: apk +Description: Kiowa Apache +Added: 2009-07-29 +%% +Type: language +Subtag: apl +Description: Lipan Apache +Added: 2009-07-29 +%% +Type: language +Subtag: apm +Description: Mescalero-Chiricahua Apache +Added: 2009-07-29 +%% +Type: language +Subtag: apn +Description: Apinayé +Added: 2009-07-29 +%% +Type: language +Subtag: apo +Description: Ambul +Added: 2009-07-29 +%% +Type: language +Subtag: app +Description: Apma +Added: 2009-07-29 +%% +Type: language +Subtag: apq +Description: A-Pucikwar +Added: 2009-07-29 +%% +Type: language +Subtag: apr +Description: Arop-Lokep +Added: 2009-07-29 +%% +Type: language +Subtag: aps +Description: Arop-Sissano +Added: 2009-07-29 +%% +Type: language +Subtag: apt +Description: Apatani +Added: 2009-07-29 +%% +Type: language +Subtag: apu +Description: Apurinã +Added: 2009-07-29 +%% +Type: language +Subtag: apv +Description: Alapmunte +Added: 2009-07-29 +%% +Type: language +Subtag: apw +Description: Western Apache +Added: 2009-07-29 +%% +Type: language +Subtag: apx +Description: Aputai +Added: 2009-07-29 +%% +Type: language +Subtag: apy +Description: Apalaí +Added: 2009-07-29 +%% +Type: language +Subtag: apz +Description: Safeyoka +Added: 2009-07-29 +%% +Type: language +Subtag: aqa +Description: Alacalufan languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: aqc +Description: Archi +Added: 2009-07-29 +%% +Type: language +Subtag: aqd +Description: Ampari Dogon +Added: 2011-08-16 +%% +Type: language +Subtag: aqg +Description: Arigidi +Added: 2009-07-29 +%% +Type: language +Subtag: aql +Description: Algic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: aqm +Description: Atohwaim +Added: 2009-07-29 +%% +Type: language +Subtag: aqn +Description: Northern Alta +Added: 2009-07-29 +%% +Type: language +Subtag: aqp +Description: Atakapa +Added: 2009-07-29 +%% +Type: language +Subtag: aqr +Description: Arhâ +Added: 2009-07-29 +%% +Type: language +Subtag: aqt +Description: Angaité +Added: 2014-02-28 +%% +Type: language +Subtag: aqz +Description: Akuntsu +Added: 2010-03-11 +%% +Type: language +Subtag: arb +Description: Standard Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: arc +Description: Official Aramaic (700-300 BCE) +Description: Imperial Aramaic (700-300 BCE) +Added: 2005-10-16 +%% +Type: language +Subtag: ard +Description: Arabana +Added: 2009-07-29 +%% +Type: language +Subtag: are +Description: Western Arrarnta +Added: 2009-07-29 +%% +Type: language +Subtag: arh +Description: Arhuaco +Added: 2009-07-29 +%% +Type: language +Subtag: ari +Description: Arikara +Added: 2009-07-29 +%% +Type: language +Subtag: arj +Description: Arapaso +Added: 2009-07-29 +%% +Type: language +Subtag: ark +Description: Arikapú +Added: 2009-07-29 +%% +Type: language +Subtag: arl +Description: Arabela +Added: 2009-07-29 +%% +Type: language +Subtag: arn +Description: Mapudungun +Description: Mapuche +Added: 2005-10-16 +%% +Type: language +Subtag: aro +Description: Araona +Added: 2009-07-29 +%% +Type: language +Subtag: arp +Description: Arapaho +Added: 2005-10-16 +%% +Type: language +Subtag: arq +Description: Algerian Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: arr +Description: Karo (Brazil) +Added: 2009-07-29 +%% +Type: language +Subtag: ars +Description: Najdi Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: art +Description: Artificial languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: aru +Description: Aruá (Amazonas State) +Description: Arawá +Added: 2009-07-29 +%% +Type: language +Subtag: arv +Description: Arbore +Added: 2009-07-29 +%% +Type: language +Subtag: arw +Description: Arawak +Added: 2005-10-16 +%% +Type: language +Subtag: arx +Description: Aruá (Rodonia State) +Added: 2009-07-29 +%% +Type: language +Subtag: ary +Description: Moroccan Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: arz +Description: Egyptian Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: asa +Description: Asu (Tanzania) +Added: 2009-07-29 +%% +Type: language +Subtag: asb +Description: Assiniboine +Added: 2009-07-29 +%% +Type: language +Subtag: asc +Description: Casuarina Coast Asmat +Added: 2009-07-29 +%% +Type: language +Subtag: asd +Description: Asas +Added: 2009-07-29 +Deprecated: 2019-04-16 +Preferred-Value: snz +%% +Type: language +Subtag: ase +Description: American Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: asf +Description: Auslan +Description: Australian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: asg +Description: Cishingini +Added: 2009-07-29 +%% +Type: language +Subtag: ash +Description: Abishira +Added: 2009-07-29 +%% +Type: language +Subtag: asi +Description: Buruwai +Added: 2009-07-29 +%% +Type: language +Subtag: asj +Description: Sari +Added: 2009-07-29 +%% +Type: language +Subtag: ask +Description: Ashkun +Added: 2009-07-29 +%% +Type: language +Subtag: asl +Description: Asilulu +Added: 2009-07-29 +%% +Type: language +Subtag: asn +Description: Xingú Asuriní +Added: 2009-07-29 +%% +Type: language +Subtag: aso +Description: Dano +Added: 2009-07-29 +%% +Type: language +Subtag: asp +Description: Algerian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: asq +Description: Austrian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: asr +Description: Asuri +Added: 2009-07-29 +%% +Type: language +Subtag: ass +Description: Ipulo +Added: 2009-07-29 +%% +Type: language +Subtag: ast +Description: Asturian +Description: Asturleonese +Description: Bable +Description: Leonese +Added: 2005-10-16 +%% +Type: language +Subtag: asu +Description: Tocantins Asurini +Added: 2009-07-29 +%% +Type: language +Subtag: asv +Description: Asoa +Added: 2009-07-29 +%% +Type: language +Subtag: asw +Description: Australian Aborigines Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: asx +Description: Muratayak +Added: 2009-07-29 +%% +Type: language +Subtag: asy +Description: Yaosakor Asmat +Added: 2009-07-29 +%% +Type: language +Subtag: asz +Description: As +Added: 2009-07-29 +%% +Type: language +Subtag: ata +Description: Pele-Ata +Added: 2009-07-29 +%% +Type: language +Subtag: atb +Description: Zaiwa +Added: 2009-07-29 +%% +Type: language +Subtag: atc +Description: Atsahuaca +Added: 2009-07-29 +%% +Type: language +Subtag: atd +Description: Ata Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: ate +Description: Atemble +Added: 2009-07-29 +%% +Type: language +Subtag: atg +Description: Ivbie North-Okpela-Arhe +Added: 2009-07-29 +%% +Type: language +Subtag: ath +Description: Athapascan languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: ati +Description: Attié +Added: 2009-07-29 +%% +Type: language +Subtag: atj +Description: Atikamekw +Added: 2009-07-29 +%% +Type: language +Subtag: atk +Description: Ati +Added: 2009-07-29 +%% +Type: language +Subtag: atl +Description: Mt. Iraya Agta +Added: 2009-07-29 +%% +Type: language +Subtag: atm +Description: Ata +Added: 2009-07-29 +%% +Type: language +Subtag: atn +Description: Ashtiani +Added: 2009-07-29 +%% +Type: language +Subtag: ato +Description: Atong (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: atp +Description: Pudtol Atta +Added: 2009-07-29 +%% +Type: language +Subtag: atq +Description: Aralle-Tabulahan +Added: 2009-07-29 +%% +Type: language +Subtag: atr +Description: Waimiri-Atroari +Added: 2009-07-29 +%% +Type: language +Subtag: ats +Description: Gros Ventre +Added: 2009-07-29 +%% +Type: language +Subtag: att +Description: Pamplona Atta +Added: 2009-07-29 +%% +Type: language +Subtag: atu +Description: Reel +Added: 2009-07-29 +%% +Type: language +Subtag: atv +Description: Northern Altai +Added: 2009-07-29 +%% +Type: language +Subtag: atw +Description: Atsugewi +Added: 2009-07-29 +%% +Type: language +Subtag: atx +Description: Arutani +Added: 2009-07-29 +%% +Type: language +Subtag: aty +Description: Aneityum +Added: 2009-07-29 +%% +Type: language +Subtag: atz +Description: Arta +Added: 2009-07-29 +%% +Type: language +Subtag: aua +Description: Asumboa +Added: 2009-07-29 +%% +Type: language +Subtag: aub +Description: Alugu +Added: 2009-07-29 +%% +Type: language +Subtag: auc +Description: Waorani +Added: 2009-07-29 +%% +Type: language +Subtag: aud +Description: Anuta +Added: 2009-07-29 +%% +Type: language +Subtag: aue +Description: ǂKxʼauǁʼein +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: ktz +%% +Type: language +Subtag: auf +Description: Arauan languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: aug +Description: Aguna +Added: 2009-07-29 +%% +Type: language +Subtag: auh +Description: Aushi +Added: 2009-07-29 +%% +Type: language +Subtag: aui +Description: Anuki +Added: 2009-07-29 +%% +Type: language +Subtag: auj +Description: Awjilah +Added: 2009-07-29 +%% +Type: language +Subtag: auk +Description: Heyo +Added: 2009-07-29 +%% +Type: language +Subtag: aul +Description: Aulua +Added: 2009-07-29 +%% +Type: language +Subtag: aum +Description: Asu (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: aun +Description: Molmo One +Added: 2009-07-29 +%% +Type: language +Subtag: auo +Description: Auyokawa +Added: 2009-07-29 +%% +Type: language +Subtag: aup +Description: Makayam +Added: 2009-07-29 +%% +Type: language +Subtag: auq +Description: Anus +Description: Korur +Added: 2009-07-29 +%% +Type: language +Subtag: aur +Description: Aruek +Added: 2009-07-29 +%% +Type: language +Subtag: aus +Description: Australian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: aut +Description: Austral +Added: 2009-07-29 +%% +Type: language +Subtag: auu +Description: Auye +Added: 2009-07-29 +%% +Type: language +Subtag: auw +Description: Awyi +Added: 2009-07-29 +%% +Type: language +Subtag: aux +Description: Aurá +Added: 2009-07-29 +%% +Type: language +Subtag: auy +Description: Awiyaana +Added: 2009-07-29 +%% +Type: language +Subtag: auz +Description: Uzbeki Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: avb +Description: Avau +Added: 2009-07-29 +%% +Type: language +Subtag: avd +Description: Alviri-Vidari +Added: 2009-07-29 +%% +Type: language +Subtag: avi +Description: Avikam +Added: 2009-07-29 +%% +Type: language +Subtag: avk +Description: Kotava +Added: 2009-07-29 +%% +Type: language +Subtag: avl +Description: Eastern Egyptian Bedawi Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: avm +Description: Angkamuthi +Added: 2012-08-12 +%% +Type: language +Subtag: avn +Description: Avatime +Added: 2009-07-29 +%% +Type: language +Subtag: avo +Description: Agavotaguerra +Added: 2009-07-29 +%% +Type: language +Subtag: avs +Description: Aushiri +Added: 2009-07-29 +%% +Type: language +Subtag: avt +Description: Au +Added: 2009-07-29 +%% +Type: language +Subtag: avu +Description: Avokaya +Added: 2009-07-29 +%% +Type: language +Subtag: avv +Description: Avá-Canoeiro +Added: 2009-07-29 +%% +Type: language +Subtag: awa +Description: Awadhi +Added: 2005-10-16 +%% +Type: language +Subtag: awb +Description: Awa (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: awc +Description: Cicipu +Added: 2009-07-29 +%% +Type: language +Subtag: awd +Description: Arawakan languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: awe +Description: Awetí +Added: 2009-07-29 +%% +Type: language +Subtag: awg +Description: Anguthimri +Added: 2012-08-12 +%% +Type: language +Subtag: awh +Description: Awbono +Added: 2009-07-29 +%% +Type: language +Subtag: awi +Description: Aekyom +Added: 2009-07-29 +%% +Type: language +Subtag: awk +Description: Awabakal +Added: 2009-07-29 +%% +Type: language +Subtag: awm +Description: Arawum +Added: 2009-07-29 +%% +Type: language +Subtag: awn +Description: Awngi +Added: 2009-07-29 +%% +Type: language +Subtag: awo +Description: Awak +Added: 2009-07-29 +%% +Type: language +Subtag: awr +Description: Awera +Added: 2009-07-29 +%% +Type: language +Subtag: aws +Description: South Awyu +Added: 2009-07-29 +%% +Type: language +Subtag: awt +Description: Araweté +Added: 2009-07-29 +%% +Type: language +Subtag: awu +Description: Central Awyu +Added: 2009-07-29 +%% +Type: language +Subtag: awv +Description: Jair Awyu +Added: 2009-07-29 +%% +Type: language +Subtag: aww +Description: Awun +Added: 2009-07-29 +%% +Type: language +Subtag: awx +Description: Awara +Added: 2009-07-29 +%% +Type: language +Subtag: awy +Description: Edera Awyu +Added: 2009-07-29 +%% +Type: language +Subtag: axb +Description: Abipon +Added: 2009-07-29 +%% +Type: language +Subtag: axe +Description: Ayerrerenge +Added: 2012-08-12 +%% +Type: language +Subtag: axg +Description: Mato Grosso Arára +Added: 2009-07-29 +%% +Type: language +Subtag: axk +Description: Yaka (Central African Republic) +Added: 2009-07-29 +%% +Type: language +Subtag: axl +Description: Lower Southern Aranda +Added: 2013-09-10 +%% +Type: language +Subtag: axm +Description: Middle Armenian +Added: 2009-07-29 +%% +Type: language +Subtag: axx +Description: Xârâgurè +Added: 2009-07-29 +%% +Type: language +Subtag: aya +Description: Awar +Added: 2009-07-29 +%% +Type: language +Subtag: ayb +Description: Ayizo Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: ayc +Description: Southern Aymara +Added: 2009-07-29 +Macrolanguage: ay +%% +Type: language +Subtag: ayd +Description: Ayabadhu +Added: 2009-07-29 +%% +Type: language +Subtag: aye +Description: Ayere +Added: 2009-07-29 +%% +Type: language +Subtag: ayg +Description: Ginyanga +Added: 2009-07-29 +%% +Type: language +Subtag: ayh +Description: Hadrami Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: ayi +Description: Leyigha +Added: 2009-07-29 +%% +Type: language +Subtag: ayk +Description: Akuku +Added: 2009-07-29 +%% +Type: language +Subtag: ayl +Description: Libyan Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: ayn +Description: Sanaani Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: ayo +Description: Ayoreo +Added: 2009-07-29 +%% +Type: language +Subtag: ayp +Description: North Mesopotamian Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: ayq +Description: Ayi (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: ayr +Description: Central Aymara +Added: 2009-07-29 +Macrolanguage: ay +%% +Type: language +Subtag: ays +Description: Sorsogon Ayta +Added: 2009-07-29 +%% +Type: language +Subtag: ayt +Description: Magbukun Ayta +Added: 2009-07-29 +%% +Type: language +Subtag: ayu +Description: Ayu +Added: 2009-07-29 +%% +Type: language +Subtag: ayx +Description: Ayi (China) +Added: 2009-07-29 +Deprecated: 2011-08-16 +Preferred-Value: nun +%% +Type: language +Subtag: ayy +Description: Tayabas Ayta +Added: 2009-07-29 +%% +Type: language +Subtag: ayz +Description: Mai Brat +Added: 2009-07-29 +%% +Type: language +Subtag: aza +Description: Azha +Added: 2009-07-29 +%% +Type: language +Subtag: azb +Description: South Azerbaijani +Added: 2009-07-29 +Macrolanguage: az +%% +Type: language +Subtag: azc +Description: Uto-Aztecan languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: azd +Description: Eastern Durango Nahuatl +Added: 2012-08-12 +%% +Type: language +Subtag: azg +Description: San Pedro Amuzgos Amuzgo +Added: 2009-07-29 +%% +Type: language +Subtag: azj +Description: North Azerbaijani +Added: 2009-07-29 +Macrolanguage: az +%% +Type: language +Subtag: azm +Description: Ipalapa Amuzgo +Added: 2009-07-29 +%% +Type: language +Subtag: azn +Description: Western Durango Nahuatl +Added: 2012-08-12 +%% +Type: language +Subtag: azo +Description: Awing +Added: 2009-07-29 +%% +Type: language +Subtag: azt +Description: Faire Atta +Added: 2009-07-29 +%% +Type: language +Subtag: azz +Description: Highland Puebla Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: baa +Description: Babatana +Added: 2009-07-29 +%% +Type: language +Subtag: bab +Description: Bainouk-Gunyuño +Added: 2009-07-29 +%% +Type: language +Subtag: bac +Description: Badui +Added: 2009-07-29 +%% +Type: language +Subtag: bad +Description: Banda languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: bae +Description: Baré +Added: 2009-07-29 +%% +Type: language +Subtag: baf +Description: Nubaca +Added: 2009-07-29 +%% +Type: language +Subtag: bag +Description: Tuki +Added: 2009-07-29 +%% +Type: language +Subtag: bah +Description: Bahamas Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: bai +Description: Bamileke languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: baj +Description: Barakai +Added: 2009-07-29 +%% +Type: language +Subtag: bal +Description: Baluchi +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: ban +Description: Balinese +Added: 2005-10-16 +%% +Type: language +Subtag: bao +Description: Waimaha +Added: 2009-07-29 +%% +Type: language +Subtag: bap +Description: Bantawa +Added: 2009-07-29 +%% +Type: language +Subtag: bar +Description: Bavarian +Added: 2009-07-29 +%% +Type: language +Subtag: bas +Description: Basa (Cameroon) +Added: 2005-10-16 +%% +Type: language +Subtag: bat +Description: Baltic languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: bau +Description: Bada (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: bav +Description: Vengo +Added: 2009-07-29 +%% +Type: language +Subtag: baw +Description: Bambili-Bambui +Added: 2009-07-29 +%% +Type: language +Subtag: bax +Description: Bamun +Added: 2009-07-29 +%% +Type: language +Subtag: bay +Description: Batuley +Added: 2009-07-29 +%% +Type: language +Subtag: baz +Description: Tunen +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see nvo, tvu +%% +Type: language +Subtag: bba +Description: Baatonum +Added: 2009-07-29 +%% +Type: language +Subtag: bbb +Description: Barai +Added: 2009-07-29 +%% +Type: language +Subtag: bbc +Description: Batak Toba +Added: 2009-07-29 +%% +Type: language +Subtag: bbd +Description: Bau +Added: 2009-07-29 +%% +Type: language +Subtag: bbe +Description: Bangba +Added: 2009-07-29 +%% +Type: language +Subtag: bbf +Description: Baibai +Added: 2009-07-29 +%% +Type: language +Subtag: bbg +Description: Barama +Added: 2009-07-29 +%% +Type: language +Subtag: bbh +Description: Bugan +Added: 2009-07-29 +%% +Type: language +Subtag: bbi +Description: Barombi +Added: 2009-07-29 +%% +Type: language +Subtag: bbj +Description: Ghomálá' +Added: 2009-07-29 +%% +Type: language +Subtag: bbk +Description: Babanki +Added: 2009-07-29 +%% +Type: language +Subtag: bbl +Description: Bats +Added: 2009-07-29 +%% +Type: language +Subtag: bbm +Description: Babango +Added: 2009-07-29 +%% +Type: language +Subtag: bbn +Description: Uneapa +Added: 2009-07-29 +%% +Type: language +Subtag: bbo +Description: Northern Bobo Madaré +Description: Konabéré +Added: 2009-07-29 +%% +Type: language +Subtag: bbp +Description: West Central Banda +Added: 2009-07-29 +%% +Type: language +Subtag: bbq +Description: Bamali +Added: 2009-07-29 +%% +Type: language +Subtag: bbr +Description: Girawa +Added: 2009-07-29 +%% +Type: language +Subtag: bbs +Description: Bakpinka +Added: 2009-07-29 +%% +Type: language +Subtag: bbt +Description: Mburku +Added: 2009-07-29 +%% +Type: language +Subtag: bbu +Description: Kulung (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: bbv +Description: Karnai +Added: 2009-07-29 +%% +Type: language +Subtag: bbw +Description: Baba +Added: 2009-07-29 +%% +Type: language +Subtag: bbx +Description: Bubia +Added: 2009-07-29 +%% +Type: language +Subtag: bby +Description: Befang +Added: 2009-07-29 +%% +Type: language +Subtag: bbz +Description: Babalia Creole Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: bca +Description: Central Bai +Added: 2009-07-29 +%% +Type: language +Subtag: bcb +Description: Bainouk-Samik +Added: 2009-07-29 +%% +Type: language +Subtag: bcc +Description: Southern Balochi +Added: 2009-07-29 +Macrolanguage: bal +%% +Type: language +Subtag: bcd +Description: North Babar +Added: 2009-07-29 +%% +Type: language +Subtag: bce +Description: Bamenyam +Added: 2009-07-29 +%% +Type: language +Subtag: bcf +Description: Bamu +Added: 2009-07-29 +%% +Type: language +Subtag: bcg +Description: Baga Pokur +Added: 2009-07-29 +%% +Type: language +Subtag: bch +Description: Bariai +Added: 2009-07-29 +%% +Type: language +Subtag: bci +Description: Baoulé +Added: 2009-07-29 +%% +Type: language +Subtag: bcj +Description: Bardi +Added: 2009-07-29 +%% +Type: language +Subtag: bck +Description: Bunuba +Added: 2009-07-29 +%% +Type: language +Subtag: bcl +Description: Central Bikol +Added: 2009-07-29 +Macrolanguage: bik +%% +Type: language +Subtag: bcm +Description: Bannoni +Added: 2009-07-29 +%% +Type: language +Subtag: bcn +Description: Bali (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: bco +Description: Kaluli +Added: 2009-07-29 +%% +Type: language +Subtag: bcp +Description: Bali (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: bcq +Description: Bench +Added: 2009-07-29 +%% +Type: language +Subtag: bcr +Description: Babine +Added: 2009-07-29 +%% +Type: language +Subtag: bcs +Description: Kohumono +Added: 2009-07-29 +%% +Type: language +Subtag: bct +Description: Bendi +Added: 2009-07-29 +%% +Type: language +Subtag: bcu +Description: Awad Bing +Added: 2009-07-29 +%% +Type: language +Subtag: bcv +Description: Shoo-Minda-Nye +Added: 2009-07-29 +%% +Type: language +Subtag: bcw +Description: Bana +Added: 2009-07-29 +%% +Type: language +Subtag: bcy +Description: Bacama +Added: 2009-07-29 +%% +Type: language +Subtag: bcz +Description: Bainouk-Gunyaamolo +Added: 2009-07-29 +%% +Type: language +Subtag: bda +Description: Bayot +Added: 2009-07-29 +%% +Type: language +Subtag: bdb +Description: Basap +Added: 2009-07-29 +%% +Type: language +Subtag: bdc +Description: Emberá-Baudó +Added: 2009-07-29 +%% +Type: language +Subtag: bdd +Description: Bunama +Added: 2009-07-29 +%% +Type: language +Subtag: bde +Description: Bade +Added: 2009-07-29 +%% +Type: language +Subtag: bdf +Description: Biage +Added: 2010-03-11 +%% +Type: language +Subtag: bdg +Description: Bonggi +Added: 2009-07-29 +%% +Type: language +Subtag: bdh +Description: Baka (South Sudan) +Added: 2009-07-29 +%% +Type: language +Subtag: bdi +Description: Burun +Added: 2009-07-29 +%% +Type: language +Subtag: bdj +Description: Bai (South Sudan) +Description: Bai +Added: 2009-07-29 +%% +Type: language +Subtag: bdk +Description: Budukh +Added: 2009-07-29 +%% +Type: language +Subtag: bdl +Description: Indonesian Bajau +Added: 2009-07-29 +%% +Type: language +Subtag: bdm +Description: Buduma +Added: 2009-07-29 +%% +Type: language +Subtag: bdn +Description: Baldemu +Added: 2009-07-29 +%% +Type: language +Subtag: bdo +Description: Morom +Added: 2009-07-29 +%% +Type: language +Subtag: bdp +Description: Bende +Added: 2009-07-29 +%% +Type: language +Subtag: bdq +Description: Bahnar +Added: 2009-07-29 +%% +Type: language +Subtag: bdr +Description: West Coast Bajau +Added: 2009-07-29 +%% +Type: language +Subtag: bds +Description: Burunge +Added: 2009-07-29 +%% +Type: language +Subtag: bdt +Description: Bokoto +Added: 2009-07-29 +Macrolanguage: gba +%% +Type: language +Subtag: bdu +Description: Oroko +Added: 2009-07-29 +%% +Type: language +Subtag: bdv +Description: Bodo Parja +Added: 2009-07-29 +%% +Type: language +Subtag: bdw +Description: Baham +Added: 2009-07-29 +%% +Type: language +Subtag: bdx +Description: Budong-Budong +Added: 2009-07-29 +%% +Type: language +Subtag: bdy +Description: Bandjalang +Added: 2009-07-29 +%% +Type: language +Subtag: bdz +Description: Badeshi +Added: 2009-07-29 +%% +Type: language +Subtag: bea +Description: Beaver +Added: 2009-07-29 +%% +Type: language +Subtag: beb +Description: Bebele +Added: 2009-07-29 +%% +Type: language +Subtag: bec +Description: Iceve-Maci +Added: 2009-07-29 +%% +Type: language +Subtag: bed +Description: Bedoanas +Added: 2009-07-29 +%% +Type: language +Subtag: bee +Description: Byangsi +Added: 2009-07-29 +%% +Type: language +Subtag: bef +Description: Benabena +Added: 2009-07-29 +%% +Type: language +Subtag: beg +Description: Belait +Added: 2009-07-29 +%% +Type: language +Subtag: beh +Description: Biali +Added: 2009-07-29 +%% +Type: language +Subtag: bei +Description: Bekati' +Added: 2009-07-29 +%% +Type: language +Subtag: bej +Description: Beja +Description: Bedawiyet +Added: 2005-10-16 +%% +Type: language +Subtag: bek +Description: Bebeli +Added: 2009-07-29 +%% +Type: language +Subtag: bem +Description: Bemba (Zambia) +Added: 2005-10-16 +%% +Type: language +Subtag: beo +Description: Beami +Added: 2009-07-29 +%% +Type: language +Subtag: bep +Description: Besoa +Added: 2009-07-29 +%% +Type: language +Subtag: beq +Description: Beembe +Added: 2009-07-29 +%% +Type: language +Subtag: ber +Description: Berber languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: bes +Description: Besme +Added: 2009-07-29 +%% +Type: language +Subtag: bet +Description: Guiberoua Béte +Added: 2009-07-29 +%% +Type: language +Subtag: beu +Description: Blagar +Added: 2009-07-29 +%% +Type: language +Subtag: bev +Description: Daloa Bété +Added: 2009-07-29 +%% +Type: language +Subtag: bew +Description: Betawi +Added: 2009-07-29 +%% +Type: language +Subtag: bex +Description: Jur Modo +Added: 2009-07-29 +%% +Type: language +Subtag: bey +Description: Beli (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: bez +Description: Bena (Tanzania) +Added: 2009-07-29 +%% +Type: language +Subtag: bfa +Description: Bari +Added: 2009-07-29 +%% +Type: language +Subtag: bfb +Description: Pauri Bareli +Added: 2009-07-29 +%% +Type: language +Subtag: bfc +Description: Panyi Bai +Description: Northern Bai +Added: 2009-07-29 +%% +Type: language +Subtag: bfd +Description: Bafut +Added: 2009-07-29 +%% +Type: language +Subtag: bfe +Description: Betaf +Description: Tena +Added: 2009-07-29 +%% +Type: language +Subtag: bff +Description: Bofi +Added: 2009-07-29 +%% +Type: language +Subtag: bfg +Description: Busang Kayan +Added: 2009-07-29 +%% +Type: language +Subtag: bfh +Description: Blafe +Added: 2009-07-29 +%% +Type: language +Subtag: bfi +Description: British Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: bfj +Description: Bafanji +Added: 2009-07-29 +%% +Type: language +Subtag: bfk +Description: Ban Khor Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: bfl +Description: Banda-Ndélé +Added: 2009-07-29 +%% +Type: language +Subtag: bfm +Description: Mmen +Added: 2009-07-29 +%% +Type: language +Subtag: bfn +Description: Bunak +Added: 2009-07-29 +%% +Type: language +Subtag: bfo +Description: Malba Birifor +Added: 2009-07-29 +%% +Type: language +Subtag: bfp +Description: Beba +Added: 2009-07-29 +%% +Type: language +Subtag: bfq +Description: Badaga +Added: 2009-07-29 +%% +Type: language +Subtag: bfr +Description: Bazigar +Added: 2009-07-29 +%% +Type: language +Subtag: bfs +Description: Southern Bai +Added: 2009-07-29 +%% +Type: language +Subtag: bft +Description: Balti +Added: 2009-07-29 +%% +Type: language +Subtag: bfu +Description: Gahri +Added: 2009-07-29 +%% +Type: language +Subtag: bfw +Description: Bondo +Added: 2009-07-29 +%% +Type: language +Subtag: bfx +Description: Bantayanon +Added: 2010-03-11 +%% +Type: language +Subtag: bfy +Description: Bagheli +Added: 2009-07-29 +%% +Type: language +Subtag: bfz +Description: Mahasu Pahari +Added: 2009-07-29 +%% +Type: language +Subtag: bga +Description: Gwamhi-Wuri +Added: 2009-07-29 +%% +Type: language +Subtag: bgb +Description: Bobongko +Added: 2009-07-29 +%% +Type: language +Subtag: bgc +Description: Haryanvi +Added: 2009-07-29 +%% +Type: language +Subtag: bgd +Description: Rathwi Bareli +Added: 2009-07-29 +%% +Type: language +Subtag: bge +Description: Bauria +Added: 2009-07-29 +%% +Type: language +Subtag: bgf +Description: Bangandu +Added: 2009-07-29 +%% +Type: language +Subtag: bgg +Description: Bugun +Added: 2009-07-29 +%% +Type: language +Subtag: bgi +Description: Giangan +Added: 2009-07-29 +%% +Type: language +Subtag: bgj +Description: Bangolan +Added: 2009-07-29 +%% +Type: language +Subtag: bgk +Description: Bit +Description: Buxinhua +Added: 2009-07-29 +%% +Type: language +Subtag: bgl +Description: Bo (Laos) +Added: 2009-07-29 +%% +Type: language +Subtag: bgm +Description: Baga Mboteni +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: bcg +%% +Type: language +Subtag: bgn +Description: Western Balochi +Added: 2009-07-29 +Macrolanguage: bal +%% +Type: language +Subtag: bgo +Description: Baga Koga +Added: 2009-07-29 +%% +Type: language +Subtag: bgp +Description: Eastern Balochi +Added: 2009-07-29 +Macrolanguage: bal +%% +Type: language +Subtag: bgq +Description: Bagri +Added: 2009-07-29 +Macrolanguage: raj +%% +Type: language +Subtag: bgr +Description: Bawm Chin +Added: 2009-07-29 +%% +Type: language +Subtag: bgs +Description: Tagabawa +Added: 2009-07-29 +%% +Type: language +Subtag: bgt +Description: Bughotu +Added: 2009-07-29 +%% +Type: language +Subtag: bgu +Description: Mbongno +Added: 2009-07-29 +%% +Type: language +Subtag: bgv +Description: Warkay-Bipim +Added: 2009-07-29 +%% +Type: language +Subtag: bgw +Description: Bhatri +Added: 2009-07-29 +%% +Type: language +Subtag: bgx +Description: Balkan Gagauz Turkish +Added: 2009-07-29 +%% +Type: language +Subtag: bgy +Description: Benggoi +Added: 2009-07-29 +%% +Type: language +Subtag: bgz +Description: Banggai +Added: 2009-07-29 +%% +Type: language +Subtag: bha +Description: Bharia +Added: 2009-07-29 +%% +Type: language +Subtag: bhb +Description: Bhili +Added: 2009-07-29 +%% +Type: language +Subtag: bhc +Description: Biga +Added: 2009-07-29 +%% +Type: language +Subtag: bhd +Description: Bhadrawahi +Added: 2009-07-29 +%% +Type: language +Subtag: bhe +Description: Bhaya +Added: 2009-07-29 +%% +Type: language +Subtag: bhf +Description: Odiai +Added: 2009-07-29 +%% +Type: language +Subtag: bhg +Description: Binandere +Added: 2009-07-29 +%% +Type: language +Subtag: bhh +Description: Bukharic +Added: 2009-07-29 +%% +Type: language +Subtag: bhi +Description: Bhilali +Added: 2009-07-29 +%% +Type: language +Subtag: bhj +Description: Bahing +Added: 2009-07-29 +%% +Type: language +Subtag: bhk +Description: Albay Bicolano +Added: 2009-07-29 +Deprecated: 2010-03-11 +Macrolanguage: bik +Comments: see fbl, lbl, rbl, ubl +%% +Type: language +Subtag: bhl +Description: Bimin +Added: 2009-07-29 +%% +Type: language +Subtag: bhm +Description: Bathari +Added: 2009-07-29 +%% +Type: language +Subtag: bhn +Description: Bohtan Neo-Aramaic +Added: 2009-07-29 +%% +Type: language +Subtag: bho +Description: Bhojpuri +Added: 2005-10-16 +%% +Type: language +Subtag: bhp +Description: Bima +Added: 2009-07-29 +%% +Type: language +Subtag: bhq +Description: Tukang Besi South +Added: 2009-07-29 +%% +Type: language +Subtag: bhr +Description: Bara Malagasy +Added: 2009-07-29 +Macrolanguage: mg +%% +Type: language +Subtag: bhs +Description: Buwal +Added: 2009-07-29 +%% +Type: language +Subtag: bht +Description: Bhattiyali +Added: 2009-07-29 +%% +Type: language +Subtag: bhu +Description: Bhunjia +Added: 2009-07-29 +%% +Type: language +Subtag: bhv +Description: Bahau +Added: 2009-07-29 +%% +Type: language +Subtag: bhw +Description: Biak +Added: 2009-07-29 +%% +Type: language +Subtag: bhx +Description: Bhalay +Added: 2009-07-29 +%% +Type: language +Subtag: bhy +Description: Bhele +Added: 2009-07-29 +%% +Type: language +Subtag: bhz +Description: Bada (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: bia +Description: Badimaya +Added: 2009-07-29 +%% +Type: language +Subtag: bib +Description: Bissa +Description: Bisa +Added: 2009-07-29 +%% +Type: language +Subtag: bic +Description: Bikaru +Added: 2009-07-29 +%% +Type: language +Subtag: bid +Description: Bidiyo +Added: 2009-07-29 +%% +Type: language +Subtag: bie +Description: Bepour +Added: 2009-07-29 +%% +Type: language +Subtag: bif +Description: Biafada +Added: 2009-07-29 +%% +Type: language +Subtag: big +Description: Biangai +Added: 2009-07-29 +%% +Type: language +Subtag: bij +Description: Vaghat-Ya-Bijim-Legeri +Added: 2009-07-29 +%% +Type: language +Subtag: bik +Description: Bikol +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: bil +Description: Bile +Added: 2009-07-29 +%% +Type: language +Subtag: bim +Description: Bimoba +Added: 2009-07-29 +%% +Type: language +Subtag: bin +Description: Bini +Description: Edo +Added: 2005-10-16 +%% +Type: language +Subtag: bio +Description: Nai +Added: 2009-07-29 +%% +Type: language +Subtag: bip +Description: Bila +Added: 2009-07-29 +%% +Type: language +Subtag: biq +Description: Bipi +Added: 2009-07-29 +%% +Type: language +Subtag: bir +Description: Bisorio +Added: 2009-07-29 +%% +Type: language +Subtag: bit +Description: Berinomo +Added: 2009-07-29 +%% +Type: language +Subtag: biu +Description: Biete +Added: 2009-07-29 +%% +Type: language +Subtag: biv +Description: Southern Birifor +Added: 2009-07-29 +%% +Type: language +Subtag: biw +Description: Kol (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: bix +Description: Bijori +Added: 2009-07-29 +%% +Type: language +Subtag: biy +Description: Birhor +Added: 2009-07-29 +%% +Type: language +Subtag: biz +Description: Baloi +Added: 2009-07-29 +%% +Type: language +Subtag: bja +Description: Budza +Added: 2009-07-29 +%% +Type: language +Subtag: bjb +Description: Banggarla +Added: 2009-07-29 +%% +Type: language +Subtag: bjc +Description: Bariji +Added: 2009-07-29 +%% +Type: language +Subtag: bjd +Description: Bandjigali +Added: 2009-07-29 +Deprecated: 2012-08-12 +Preferred-Value: drl +%% +Type: language +Subtag: bje +Description: Biao-Jiao Mien +Added: 2009-07-29 +%% +Type: language +Subtag: bjf +Description: Barzani Jewish Neo-Aramaic +Added: 2009-07-29 +%% +Type: language +Subtag: bjg +Description: Bidyogo +Added: 2009-07-29 +%% +Type: language +Subtag: bjh +Description: Bahinemo +Added: 2009-07-29 +%% +Type: language +Subtag: bji +Description: Burji +Added: 2009-07-29 +%% +Type: language +Subtag: bjj +Description: Kanauji +Added: 2009-07-29 +%% +Type: language +Subtag: bjk +Description: Barok +Added: 2009-07-29 +%% +Type: language +Subtag: bjl +Description: Bulu (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: bjm +Description: Bajelani +Added: 2009-07-29 +%% +Type: language +Subtag: bjn +Description: Banjar +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: bjo +Description: Mid-Southern Banda +Added: 2009-07-29 +%% +Type: language +Subtag: bjp +Description: Fanamaket +Added: 2013-09-10 +%% +Type: language +Subtag: bjq +Description: Southern Betsimisaraka Malagasy +Added: 2009-07-29 +Deprecated: 2011-08-16 +Macrolanguage: mg +Comments: see bzc, tkg +%% +Type: language +Subtag: bjr +Description: Binumarien +Added: 2009-07-29 +%% +Type: language +Subtag: bjs +Description: Bajan +Added: 2009-07-29 +%% +Type: language +Subtag: bjt +Description: Balanta-Ganja +Added: 2009-07-29 +%% +Type: language +Subtag: bju +Description: Busuu +Added: 2009-07-29 +%% +Type: language +Subtag: bjv +Description: Bedjond +Added: 2009-07-29 +%% +Type: language +Subtag: bjw +Description: Bakwé +Added: 2009-07-29 +%% +Type: language +Subtag: bjx +Description: Banao Itneg +Added: 2009-07-29 +%% +Type: language +Subtag: bjy +Description: Bayali +Added: 2009-07-29 +%% +Type: language +Subtag: bjz +Description: Baruga +Added: 2009-07-29 +%% +Type: language +Subtag: bka +Description: Kyak +Added: 2009-07-29 +%% +Type: language +Subtag: bkb +Description: Finallig +Added: 2009-07-29 +Deprecated: 2010-03-11 +Comments: see ebk, obk +%% +Type: language +Subtag: bkc +Description: Baka (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: bkd +Description: Binukid +Description: Talaandig +Added: 2009-07-29 +%% +Type: language +Subtag: bkf +Description: Beeke +Added: 2009-07-29 +%% +Type: language +Subtag: bkg +Description: Buraka +Added: 2009-07-29 +%% +Type: language +Subtag: bkh +Description: Bakoko +Added: 2009-07-29 +%% +Type: language +Subtag: bki +Description: Baki +Added: 2009-07-29 +%% +Type: language +Subtag: bkj +Description: Pande +Added: 2009-07-29 +%% +Type: language +Subtag: bkk +Description: Brokskat +Added: 2009-07-29 +%% +Type: language +Subtag: bkl +Description: Berik +Added: 2009-07-29 +%% +Type: language +Subtag: bkm +Description: Kom (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: bkn +Description: Bukitan +Added: 2009-07-29 +%% +Type: language +Subtag: bko +Description: Kwa' +Added: 2009-07-29 +%% +Type: language +Subtag: bkp +Description: Boko (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: bkq +Description: Bakairí +Added: 2009-07-29 +%% +Type: language +Subtag: bkr +Description: Bakumpai +Added: 2009-07-29 +%% +Type: language +Subtag: bks +Description: Northern Sorsoganon +Added: 2009-07-29 +%% +Type: language +Subtag: bkt +Description: Boloki +Added: 2009-07-29 +%% +Type: language +Subtag: bku +Description: Buhid +Added: 2009-07-29 +%% +Type: language +Subtag: bkv +Description: Bekwarra +Added: 2009-07-29 +%% +Type: language +Subtag: bkw +Description: Bekwel +Added: 2009-07-29 +%% +Type: language +Subtag: bkx +Description: Baikeno +Added: 2009-07-29 +%% +Type: language +Subtag: bky +Description: Bokyi +Added: 2009-07-29 +%% +Type: language +Subtag: bkz +Description: Bungku +Added: 2009-07-29 +%% +Type: language +Subtag: bla +Description: Siksika +Added: 2005-10-16 +%% +Type: language +Subtag: blb +Description: Bilua +Added: 2009-07-29 +%% +Type: language +Subtag: blc +Description: Bella Coola +Added: 2009-07-29 +%% +Type: language +Subtag: bld +Description: Bolango +Added: 2009-07-29 +%% +Type: language +Subtag: ble +Description: Balanta-Kentohe +Added: 2009-07-29 +%% +Type: language +Subtag: blf +Description: Buol +Added: 2009-07-29 +%% +Type: language +Subtag: blg +Description: Balau +Added: 2009-07-29 +%% +Type: language +Subtag: blh +Description: Kuwaa +Added: 2009-07-29 +%% +Type: language +Subtag: bli +Description: Bolia +Added: 2009-07-29 +%% +Type: language +Subtag: blj +Description: Bolongan +Added: 2009-07-29 +%% +Type: language +Subtag: blk +Description: Pa'o Karen +Description: Pa'O +Added: 2009-07-29 +%% +Type: language +Subtag: bll +Description: Biloxi +Added: 2009-07-29 +%% +Type: language +Subtag: blm +Description: Beli (South Sudan) +Added: 2009-07-29 +%% +Type: language +Subtag: bln +Description: Southern Catanduanes Bikol +Added: 2009-07-29 +Macrolanguage: bik +%% +Type: language +Subtag: blo +Description: Anii +Added: 2009-07-29 +%% +Type: language +Subtag: blp +Description: Blablanga +Added: 2009-07-29 +%% +Type: language +Subtag: blq +Description: Baluan-Pam +Added: 2009-07-29 +%% +Type: language +Subtag: blr +Description: Blang +Added: 2009-07-29 +%% +Type: language +Subtag: bls +Description: Balaesang +Added: 2009-07-29 +%% +Type: language +Subtag: blt +Description: Tai Dam +Added: 2009-07-29 +%% +Type: language +Subtag: blv +Description: Kibala +Description: Bolo +Added: 2009-07-29 +%% +Type: language +Subtag: blw +Description: Balangao +Added: 2009-07-29 +%% +Type: language +Subtag: blx +Description: Mag-Indi Ayta +Added: 2009-07-29 +%% +Type: language +Subtag: bly +Description: Notre +Added: 2009-07-29 +%% +Type: language +Subtag: blz +Description: Balantak +Added: 2009-07-29 +%% +Type: language +Subtag: bma +Description: Lame +Added: 2009-07-29 +%% +Type: language +Subtag: bmb +Description: Bembe +Added: 2009-07-29 +%% +Type: language +Subtag: bmc +Description: Biem +Added: 2009-07-29 +%% +Type: language +Subtag: bmd +Description: Baga Manduri +Added: 2009-07-29 +%% +Type: language +Subtag: bme +Description: Limassa +Added: 2009-07-29 +%% +Type: language +Subtag: bmf +Description: Bom-Kim +Added: 2009-07-29 +%% +Type: language +Subtag: bmg +Description: Bamwe +Added: 2009-07-29 +%% +Type: language +Subtag: bmh +Description: Kein +Added: 2009-07-29 +%% +Type: language +Subtag: bmi +Description: Bagirmi +Added: 2009-07-29 +%% +Type: language +Subtag: bmj +Description: Bote-Majhi +Added: 2009-07-29 +%% +Type: language +Subtag: bmk +Description: Ghayavi +Added: 2009-07-29 +%% +Type: language +Subtag: bml +Description: Bomboli +Added: 2009-07-29 +%% +Type: language +Subtag: bmm +Description: Northern Betsimisaraka Malagasy +Added: 2009-07-29 +Macrolanguage: mg +%% +Type: language +Subtag: bmn +Description: Bina (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: bmo +Description: Bambalang +Added: 2009-07-29 +%% +Type: language +Subtag: bmp +Description: Bulgebi +Added: 2009-07-29 +%% +Type: language +Subtag: bmq +Description: Bomu +Added: 2009-07-29 +%% +Type: language +Subtag: bmr +Description: Muinane +Added: 2009-07-29 +%% +Type: language +Subtag: bms +Description: Bilma Kanuri +Added: 2009-07-29 +%% +Type: language +Subtag: bmt +Description: Biao Mon +Added: 2009-07-29 +%% +Type: language +Subtag: bmu +Description: Somba-Siawari +Added: 2009-07-29 +%% +Type: language +Subtag: bmv +Description: Bum +Added: 2009-07-29 +%% +Type: language +Subtag: bmw +Description: Bomwali +Added: 2009-07-29 +%% +Type: language +Subtag: bmx +Description: Baimak +Added: 2009-07-29 +%% +Type: language +Subtag: bmy +Description: Bemba (Democratic Republic of Congo) +Added: 2009-07-29 +Deprecated: 2015-02-12 +%% +Type: language +Subtag: bmz +Description: Baramu +Added: 2009-07-29 +%% +Type: language +Subtag: bna +Description: Bonerate +Added: 2009-07-29 +%% +Type: language +Subtag: bnb +Description: Bookan +Added: 2009-07-29 +%% +Type: language +Subtag: bnc +Description: Bontok +Added: 2009-07-29 +Scope: macrolanguage +%% +Type: language +Subtag: bnd +Description: Banda (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: bne +Description: Bintauna +Added: 2009-07-29 +%% +Type: language +Subtag: bnf +Description: Masiwang +Added: 2009-07-29 +%% +Type: language +Subtag: bng +Description: Benga +Added: 2009-07-29 +%% +Type: language +Subtag: bni +Description: Bangi +Added: 2009-07-29 +%% +Type: language +Subtag: bnj +Description: Eastern Tawbuid +Added: 2009-07-29 +%% +Type: language +Subtag: bnk +Description: Bierebo +Added: 2009-07-29 +%% +Type: language +Subtag: bnl +Description: Boon +Added: 2009-07-29 +%% +Type: language +Subtag: bnm +Description: Batanga +Added: 2009-07-29 +%% +Type: language +Subtag: bnn +Description: Bunun +Added: 2009-07-29 +%% +Type: language +Subtag: bno +Description: Bantoanon +Added: 2009-07-29 +%% +Type: language +Subtag: bnp +Description: Bola +Added: 2009-07-29 +%% +Type: language +Subtag: bnq +Description: Bantik +Added: 2009-07-29 +%% +Type: language +Subtag: bnr +Description: Butmas-Tur +Added: 2009-07-29 +%% +Type: language +Subtag: bns +Description: Bundeli +Added: 2009-07-29 +%% +Type: language +Subtag: bnt +Description: Bantu languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: bnu +Description: Bentong +Added: 2009-07-29 +%% +Type: language +Subtag: bnv +Description: Bonerif +Description: Beneraf +Description: Edwas +Added: 2009-07-29 +%% +Type: language +Subtag: bnw +Description: Bisis +Added: 2009-07-29 +%% +Type: language +Subtag: bnx +Description: Bangubangu +Added: 2009-07-29 +%% +Type: language +Subtag: bny +Description: Bintulu +Added: 2009-07-29 +%% +Type: language +Subtag: bnz +Description: Beezen +Added: 2009-07-29 +%% +Type: language +Subtag: boa +Description: Bora +Added: 2009-07-29 +%% +Type: language +Subtag: bob +Description: Aweer +Added: 2009-07-29 +%% +Type: language +Subtag: boe +Description: Mundabli +Added: 2009-07-29 +%% +Type: language +Subtag: bof +Description: Bolon +Added: 2009-07-29 +%% +Type: language +Subtag: bog +Description: Bamako Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: boh +Description: Boma +Added: 2009-07-29 +%% +Type: language +Subtag: boi +Description: Barbareño +Added: 2009-07-29 +%% +Type: language +Subtag: boj +Description: Anjam +Added: 2009-07-29 +%% +Type: language +Subtag: bok +Description: Bonjo +Added: 2009-07-29 +%% +Type: language +Subtag: bol +Description: Bole +Added: 2009-07-29 +%% +Type: language +Subtag: bom +Description: Berom +Added: 2009-07-29 +%% +Type: language +Subtag: bon +Description: Bine +Added: 2009-07-29 +%% +Type: language +Subtag: boo +Description: Tiemacèwè Bozo +Added: 2009-07-29 +%% +Type: language +Subtag: bop +Description: Bonkiman +Added: 2009-07-29 +%% +Type: language +Subtag: boq +Description: Bogaya +Added: 2009-07-29 +%% +Type: language +Subtag: bor +Description: Borôro +Added: 2009-07-29 +%% +Type: language +Subtag: bot +Description: Bongo +Added: 2009-07-29 +%% +Type: language +Subtag: bou +Description: Bondei +Added: 2009-07-29 +%% +Type: language +Subtag: bov +Description: Tuwuli +Added: 2009-07-29 +%% +Type: language +Subtag: bow +Description: Rema +Added: 2009-07-29 +%% +Type: language +Subtag: box +Description: Buamu +Added: 2009-07-29 +%% +Type: language +Subtag: boy +Description: Bodo (Central African Republic) +Added: 2009-07-29 +%% +Type: language +Subtag: boz +Description: Tiéyaxo Bozo +Added: 2009-07-29 +%% +Type: language +Subtag: bpa +Description: Daakaka +Added: 2009-07-29 +%% +Type: language +Subtag: bpb +Description: Barbacoas +Added: 2009-07-29 +%% +Type: language +Subtag: bpd +Description: Banda-Banda +Added: 2009-07-29 +%% +Type: language +Subtag: bpg +Description: Bonggo +Added: 2009-07-29 +%% +Type: language +Subtag: bph +Description: Botlikh +Added: 2009-07-29 +%% +Type: language +Subtag: bpi +Description: Bagupi +Added: 2009-07-29 +%% +Type: language +Subtag: bpj +Description: Binji +Added: 2009-07-29 +%% +Type: language +Subtag: bpk +Description: Orowe +Description: 'Ôrôê +Added: 2009-07-29 +%% +Type: language +Subtag: bpl +Description: Broome Pearling Lugger Pidgin +Added: 2009-07-29 +%% +Type: language +Subtag: bpm +Description: Biyom +Added: 2009-07-29 +%% +Type: language +Subtag: bpn +Description: Dzao Min +Added: 2009-07-29 +%% +Type: language +Subtag: bpo +Description: Anasi +Added: 2009-07-29 +%% +Type: language +Subtag: bpp +Description: Kaure +Added: 2009-07-29 +%% +Type: language +Subtag: bpq +Description: Banda Malay +Added: 2009-07-29 +%% +Type: language +Subtag: bpr +Description: Koronadal Blaan +Added: 2009-07-29 +%% +Type: language +Subtag: bps +Description: Sarangani Blaan +Added: 2009-07-29 +%% +Type: language +Subtag: bpt +Description: Barrow Point +Added: 2009-07-29 +%% +Type: language +Subtag: bpu +Description: Bongu +Added: 2009-07-29 +%% +Type: language +Subtag: bpv +Description: Bian Marind +Added: 2009-07-29 +%% +Type: language +Subtag: bpw +Description: Bo (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: bpx +Description: Palya Bareli +Added: 2009-07-29 +%% +Type: language +Subtag: bpy +Description: Bishnupriya +Added: 2009-07-29 +%% +Type: language +Subtag: bpz +Description: Bilba +Added: 2009-07-29 +%% +Type: language +Subtag: bqa +Description: Tchumbuli +Added: 2009-07-29 +%% +Type: language +Subtag: bqb +Description: Bagusa +Added: 2009-07-29 +%% +Type: language +Subtag: bqc +Description: Boko (Benin) +Description: Boo +Added: 2009-07-29 +%% +Type: language +Subtag: bqd +Description: Bung +Added: 2009-07-29 +%% +Type: language +Subtag: bqf +Description: Baga Kaloum +Added: 2009-07-29 +%% +Type: language +Subtag: bqg +Description: Bago-Kusuntu +Added: 2009-07-29 +%% +Type: language +Subtag: bqh +Description: Baima +Added: 2009-07-29 +%% +Type: language +Subtag: bqi +Description: Bakhtiari +Added: 2009-07-29 +%% +Type: language +Subtag: bqj +Description: Bandial +Added: 2009-07-29 +%% +Type: language +Subtag: bqk +Description: Banda-Mbrès +Added: 2009-07-29 +%% +Type: language +Subtag: bql +Description: Bilakura +Added: 2009-07-29 +%% +Type: language +Subtag: bqm +Description: Wumboko +Added: 2009-07-29 +%% +Type: language +Subtag: bqn +Description: Bulgarian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: bqo +Description: Balo +Added: 2009-07-29 +%% +Type: language +Subtag: bqp +Description: Busa +Added: 2009-07-29 +%% +Type: language +Subtag: bqq +Description: Biritai +Added: 2009-07-29 +%% +Type: language +Subtag: bqr +Description: Burusu +Added: 2009-07-29 +%% +Type: language +Subtag: bqs +Description: Bosngun +Added: 2009-07-29 +%% +Type: language +Subtag: bqt +Description: Bamukumbit +Added: 2009-07-29 +%% +Type: language +Subtag: bqu +Description: Boguru +Added: 2009-07-29 +%% +Type: language +Subtag: bqv +Description: Koro Wachi +Description: Begbere-Ejar +Added: 2009-07-29 +%% +Type: language +Subtag: bqw +Description: Buru (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: bqx +Description: Baangi +Added: 2009-07-29 +%% +Type: language +Subtag: bqy +Description: Bengkala Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: bqz +Description: Bakaka +Added: 2009-07-29 +%% +Type: language +Subtag: bra +Description: Braj +Added: 2005-10-16 +%% +Type: language +Subtag: brb +Description: Lave +Added: 2009-07-29 +%% +Type: language +Subtag: brc +Description: Berbice Creole Dutch +Added: 2009-07-29 +%% +Type: language +Subtag: brd +Description: Baraamu +Added: 2009-07-29 +%% +Type: language +Subtag: brf +Description: Bera +Added: 2009-07-29 +%% +Type: language +Subtag: brg +Description: Baure +Added: 2009-07-29 +%% +Type: language +Subtag: brh +Description: Brahui +Added: 2009-07-29 +%% +Type: language +Subtag: bri +Description: Mokpwe +Added: 2009-07-29 +%% +Type: language +Subtag: brj +Description: Bieria +Added: 2009-07-29 +%% +Type: language +Subtag: brk +Description: Birked +Added: 2009-07-29 +%% +Type: language +Subtag: brl +Description: Birwa +Added: 2009-07-29 +%% +Type: language +Subtag: brm +Description: Barambu +Added: 2009-07-29 +%% +Type: language +Subtag: brn +Description: Boruca +Added: 2009-07-29 +%% +Type: language +Subtag: bro +Description: Brokkat +Added: 2009-07-29 +%% +Type: language +Subtag: brp +Description: Barapasi +Added: 2009-07-29 +%% +Type: language +Subtag: brq +Description: Breri +Added: 2009-07-29 +%% +Type: language +Subtag: brr +Description: Birao +Added: 2009-07-29 +%% +Type: language +Subtag: brs +Description: Baras +Added: 2009-07-29 +%% +Type: language +Subtag: brt +Description: Bitare +Added: 2009-07-29 +%% +Type: language +Subtag: bru +Description: Eastern Bru +Added: 2009-07-29 +%% +Type: language +Subtag: brv +Description: Western Bru +Added: 2009-07-29 +%% +Type: language +Subtag: brw +Description: Bellari +Added: 2009-07-29 +%% +Type: language +Subtag: brx +Description: Bodo (India) +Added: 2009-07-29 +%% +Type: language +Subtag: bry +Description: Burui +Added: 2009-07-29 +%% +Type: language +Subtag: brz +Description: Bilbil +Added: 2009-07-29 +%% +Type: language +Subtag: bsa +Description: Abinomn +Added: 2009-07-29 +%% +Type: language +Subtag: bsb +Description: Brunei Bisaya +Added: 2009-07-29 +%% +Type: language +Subtag: bsc +Description: Bassari +Description: Oniyan +Added: 2009-07-29 +%% +Type: language +Subtag: bse +Description: Wushi +Added: 2009-07-29 +%% +Type: language +Subtag: bsf +Description: Bauchi +Added: 2009-07-29 +%% +Type: language +Subtag: bsg +Description: Bashkardi +Added: 2009-07-29 +%% +Type: language +Subtag: bsh +Description: Kati +Added: 2009-07-29 +%% +Type: language +Subtag: bsi +Description: Bassossi +Added: 2009-07-29 +%% +Type: language +Subtag: bsj +Description: Bangwinji +Added: 2009-07-29 +%% +Type: language +Subtag: bsk +Description: Burushaski +Added: 2009-07-29 +%% +Type: language +Subtag: bsl +Description: Basa-Gumna +Added: 2009-07-29 +%% +Type: language +Subtag: bsm +Description: Busami +Added: 2009-07-29 +%% +Type: language +Subtag: bsn +Description: Barasana-Eduria +Added: 2009-07-29 +%% +Type: language +Subtag: bso +Description: Buso +Added: 2009-07-29 +%% +Type: language +Subtag: bsp +Description: Baga Sitemu +Added: 2009-07-29 +%% +Type: language +Subtag: bsq +Description: Bassa +Added: 2009-07-29 +%% +Type: language +Subtag: bsr +Description: Bassa-Kontagora +Added: 2009-07-29 +%% +Type: language +Subtag: bss +Description: Akoose +Added: 2009-07-29 +%% +Type: language +Subtag: bst +Description: Basketo +Added: 2009-07-29 +%% +Type: language +Subtag: bsu +Description: Bahonsuai +Added: 2009-07-29 +%% +Type: language +Subtag: bsv +Description: Baga Sobané +Added: 2009-07-29 +%% +Type: language +Subtag: bsw +Description: Baiso +Added: 2009-07-29 +%% +Type: language +Subtag: bsx +Description: Yangkam +Added: 2009-07-29 +%% +Type: language +Subtag: bsy +Description: Sabah Bisaya +Added: 2009-07-29 +%% +Type: language +Subtag: bta +Description: Bata +Added: 2009-07-29 +%% +Type: language +Subtag: btb +Description: Beti (Cameroon) +Added: 2009-07-29 +Deprecated: 2010-03-11 +Comments: see beb, bum, bxp, eto, ewo, fan, mct +%% +Type: language +Subtag: btc +Description: Bati (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: btd +Description: Batak Dairi +Added: 2009-07-29 +%% +Type: language +Subtag: bte +Description: Gamo-Ningi +Added: 2009-07-29 +%% +Type: language +Subtag: btf +Description: Birgit +Added: 2009-07-29 +%% +Type: language +Subtag: btg +Description: Gagnoa Bété +Added: 2009-07-29 +%% +Type: language +Subtag: bth +Description: Biatah Bidayuh +Added: 2009-07-29 +%% +Type: language +Subtag: bti +Description: Burate +Added: 2009-07-29 +%% +Type: language +Subtag: btj +Description: Bacanese Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: btk +Description: Batak languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: btl +Description: Bhatola +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: btm +Description: Batak Mandailing +Added: 2009-07-29 +%% +Type: language +Subtag: btn +Description: Ratagnon +Added: 2009-07-29 +%% +Type: language +Subtag: bto +Description: Rinconada Bikol +Added: 2009-07-29 +Macrolanguage: bik +%% +Type: language +Subtag: btp +Description: Budibud +Added: 2009-07-29 +%% +Type: language +Subtag: btq +Description: Batek +Added: 2009-07-29 +%% +Type: language +Subtag: btr +Description: Baetora +Added: 2009-07-29 +%% +Type: language +Subtag: bts +Description: Batak Simalungun +Added: 2009-07-29 +%% +Type: language +Subtag: btt +Description: Bete-Bendi +Added: 2009-07-29 +%% +Type: language +Subtag: btu +Description: Batu +Added: 2009-07-29 +%% +Type: language +Subtag: btv +Description: Bateri +Added: 2009-07-29 +%% +Type: language +Subtag: btw +Description: Butuanon +Added: 2009-07-29 +%% +Type: language +Subtag: btx +Description: Batak Karo +Added: 2009-07-29 +%% +Type: language +Subtag: bty +Description: Bobot +Added: 2009-07-29 +%% +Type: language +Subtag: btz +Description: Batak Alas-Kluet +Added: 2009-07-29 +%% +Type: language +Subtag: bua +Description: Buriat +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: bub +Description: Bua +Added: 2009-07-29 +%% +Type: language +Subtag: buc +Description: Bushi +Added: 2009-07-29 +%% +Type: language +Subtag: bud +Description: Ntcham +Added: 2009-07-29 +%% +Type: language +Subtag: bue +Description: Beothuk +Added: 2009-07-29 +%% +Type: language +Subtag: buf +Description: Bushoong +Added: 2009-07-29 +%% +Type: language +Subtag: bug +Description: Buginese +Added: 2005-10-16 +%% +Type: language +Subtag: buh +Description: Younuo Bunu +Added: 2009-07-29 +%% +Type: language +Subtag: bui +Description: Bongili +Added: 2009-07-29 +%% +Type: language +Subtag: buj +Description: Basa-Gurmana +Added: 2009-07-29 +%% +Type: language +Subtag: buk +Description: Bugawac +Added: 2009-07-29 +%% +Type: language +Subtag: bum +Description: Bulu (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: bun +Description: Sherbro +Added: 2009-07-29 +%% +Type: language +Subtag: buo +Description: Terei +Added: 2009-07-29 +%% +Type: language +Subtag: bup +Description: Busoa +Added: 2009-07-29 +%% +Type: language +Subtag: buq +Description: Brem +Added: 2009-07-29 +%% +Type: language +Subtag: bus +Description: Bokobaru +Added: 2009-07-29 +%% +Type: language +Subtag: but +Description: Bungain +Added: 2009-07-29 +%% +Type: language +Subtag: buu +Description: Budu +Added: 2009-07-29 +%% +Type: language +Subtag: buv +Description: Bun +Added: 2009-07-29 +%% +Type: language +Subtag: buw +Description: Bubi +Added: 2009-07-29 +%% +Type: language +Subtag: bux +Description: Boghom +Added: 2009-07-29 +%% +Type: language +Subtag: buy +Description: Bullom So +Added: 2009-07-29 +%% +Type: language +Subtag: buz +Description: Bukwen +Added: 2009-07-29 +%% +Type: language +Subtag: bva +Description: Barein +Added: 2009-07-29 +%% +Type: language +Subtag: bvb +Description: Bube +Added: 2009-07-29 +%% +Type: language +Subtag: bvc +Description: Baelelea +Added: 2009-07-29 +%% +Type: language +Subtag: bvd +Description: Baeggu +Added: 2009-07-29 +%% +Type: language +Subtag: bve +Description: Berau Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: bvf +Description: Boor +Added: 2009-07-29 +%% +Type: language +Subtag: bvg +Description: Bonkeng +Added: 2009-07-29 +%% +Type: language +Subtag: bvh +Description: Bure +Added: 2009-07-29 +%% +Type: language +Subtag: bvi +Description: Belanda Viri +Added: 2009-07-29 +%% +Type: language +Subtag: bvj +Description: Baan +Added: 2009-07-29 +%% +Type: language +Subtag: bvk +Description: Bukat +Added: 2009-07-29 +%% +Type: language +Subtag: bvl +Description: Bolivian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: bvm +Description: Bamunka +Added: 2009-07-29 +%% +Type: language +Subtag: bvn +Description: Buna +Added: 2009-07-29 +%% +Type: language +Subtag: bvo +Description: Bolgo +Added: 2009-07-29 +%% +Type: language +Subtag: bvp +Description: Bumang +Added: 2013-09-10 +%% +Type: language +Subtag: bvq +Description: Birri +Added: 2009-07-29 +%% +Type: language +Subtag: bvr +Description: Burarra +Added: 2009-07-29 +%% +Type: language +Subtag: bvt +Description: Bati (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: bvu +Description: Bukit Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: bvv +Description: Baniva +Added: 2009-07-29 +%% +Type: language +Subtag: bvw +Description: Boga +Added: 2009-07-29 +%% +Type: language +Subtag: bvx +Description: Dibole +Added: 2009-07-29 +%% +Type: language +Subtag: bvy +Description: Baybayanon +Added: 2010-03-11 +%% +Type: language +Subtag: bvz +Description: Bauzi +Added: 2009-07-29 +%% +Type: language +Subtag: bwa +Description: Bwatoo +Added: 2009-07-29 +%% +Type: language +Subtag: bwb +Description: Namosi-Naitasiri-Serua +Added: 2009-07-29 +%% +Type: language +Subtag: bwc +Description: Bwile +Added: 2009-07-29 +%% +Type: language +Subtag: bwd +Description: Bwaidoka +Added: 2009-07-29 +%% +Type: language +Subtag: bwe +Description: Bwe Karen +Added: 2009-07-29 +%% +Type: language +Subtag: bwf +Description: Boselewa +Added: 2009-07-29 +%% +Type: language +Subtag: bwg +Description: Barwe +Added: 2009-07-29 +%% +Type: language +Subtag: bwh +Description: Bishuo +Added: 2009-07-29 +%% +Type: language +Subtag: bwi +Description: Baniwa +Added: 2009-07-29 +%% +Type: language +Subtag: bwj +Description: Láá Láá Bwamu +Added: 2009-07-29 +%% +Type: language +Subtag: bwk +Description: Bauwaki +Added: 2009-07-29 +%% +Type: language +Subtag: bwl +Description: Bwela +Added: 2009-07-29 +%% +Type: language +Subtag: bwm +Description: Biwat +Added: 2009-07-29 +%% +Type: language +Subtag: bwn +Description: Wunai Bunu +Added: 2009-07-29 +%% +Type: language +Subtag: bwo +Description: Boro (Ethiopia) +Description: Borna (Ethiopia) +Added: 2009-07-29 +%% +Type: language +Subtag: bwp +Description: Mandobo Bawah +Added: 2009-07-29 +%% +Type: language +Subtag: bwq +Description: Southern Bobo Madaré +Added: 2009-07-29 +%% +Type: language +Subtag: bwr +Description: Bura-Pabir +Added: 2009-07-29 +%% +Type: language +Subtag: bws +Description: Bomboma +Added: 2009-07-29 +%% +Type: language +Subtag: bwt +Description: Bafaw-Balong +Added: 2009-07-29 +%% +Type: language +Subtag: bwu +Description: Buli (Ghana) +Added: 2009-07-29 +%% +Type: language +Subtag: bww +Description: Bwa +Added: 2009-07-29 +%% +Type: language +Subtag: bwx +Description: Bu-Nao Bunu +Added: 2009-07-29 +%% +Type: language +Subtag: bwy +Description: Cwi Bwamu +Added: 2009-07-29 +%% +Type: language +Subtag: bwz +Description: Bwisi +Added: 2009-07-29 +%% +Type: language +Subtag: bxa +Description: Tairaha +Added: 2009-07-29 +%% +Type: language +Subtag: bxb +Description: Belanda Bor +Added: 2009-07-29 +%% +Type: language +Subtag: bxc +Description: Molengue +Added: 2009-07-29 +%% +Type: language +Subtag: bxd +Description: Pela +Added: 2009-07-29 +%% +Type: language +Subtag: bxe +Description: Birale +Added: 2009-07-29 +%% +Type: language +Subtag: bxf +Description: Bilur +Description: Minigir +Added: 2009-07-29 +Comments: see also vmg +%% +Type: language +Subtag: bxg +Description: Bangala +Added: 2009-07-29 +%% +Type: language +Subtag: bxh +Description: Buhutu +Added: 2009-07-29 +%% +Type: language +Subtag: bxi +Description: Pirlatapa +Added: 2009-07-29 +%% +Type: language +Subtag: bxj +Description: Bayungu +Added: 2009-07-29 +%% +Type: language +Subtag: bxk +Description: Bukusu +Description: Lubukusu +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: bxl +Description: Jalkunan +Added: 2009-07-29 +%% +Type: language +Subtag: bxm +Description: Mongolia Buriat +Added: 2009-07-29 +Macrolanguage: bua +%% +Type: language +Subtag: bxn +Description: Burduna +Added: 2009-07-29 +%% +Type: language +Subtag: bxo +Description: Barikanchi +Added: 2009-07-29 +%% +Type: language +Subtag: bxp +Description: Bebil +Added: 2009-07-29 +%% +Type: language +Subtag: bxq +Description: Beele +Added: 2009-07-29 +%% +Type: language +Subtag: bxr +Description: Russia Buriat +Added: 2009-07-29 +Macrolanguage: bua +%% +Type: language +Subtag: bxs +Description: Busam +Added: 2009-07-29 +%% +Type: language +Subtag: bxu +Description: China Buriat +Added: 2009-07-29 +Macrolanguage: bua +%% +Type: language +Subtag: bxv +Description: Berakou +Added: 2009-07-29 +%% +Type: language +Subtag: bxw +Description: Bankagooma +Added: 2009-07-29 +%% +Type: language +Subtag: bxx +Description: Borna (Democratic Republic of Congo) +Added: 2009-07-29 +Deprecated: 2015-02-12 +%% +Type: language +Subtag: bxz +Description: Binahari +Added: 2009-07-29 +%% +Type: language +Subtag: bya +Description: Batak +Added: 2009-07-29 +%% +Type: language +Subtag: byb +Description: Bikya +Added: 2009-07-29 +%% +Type: language +Subtag: byc +Description: Ubaghara +Added: 2009-07-29 +%% +Type: language +Subtag: byd +Description: Benyadu' +Added: 2009-07-29 +%% +Type: language +Subtag: bye +Description: Pouye +Added: 2009-07-29 +%% +Type: language +Subtag: byf +Description: Bete +Added: 2009-07-29 +%% +Type: language +Subtag: byg +Description: Baygo +Added: 2009-07-29 +%% +Type: language +Subtag: byh +Description: Bhujel +Added: 2009-07-29 +%% +Type: language +Subtag: byi +Description: Buyu +Added: 2009-07-29 +%% +Type: language +Subtag: byj +Description: Bina (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: byk +Description: Biao +Added: 2009-07-29 +%% +Type: language +Subtag: byl +Description: Bayono +Added: 2009-07-29 +%% +Type: language +Subtag: bym +Description: Bidjara +Added: 2009-07-29 +%% +Type: language +Subtag: byn +Description: Bilin +Description: Blin +Added: 2005-10-16 +%% +Type: language +Subtag: byo +Description: Biyo +Added: 2009-07-29 +%% +Type: language +Subtag: byp +Description: Bumaji +Added: 2009-07-29 +%% +Type: language +Subtag: byq +Description: Basay +Added: 2009-07-29 +%% +Type: language +Subtag: byr +Description: Baruya +Description: Yipma +Added: 2009-07-29 +%% +Type: language +Subtag: bys +Description: Burak +Added: 2009-07-29 +%% +Type: language +Subtag: byt +Description: Berti +Added: 2009-07-29 +%% +Type: language +Subtag: byv +Description: Medumba +Added: 2009-07-29 +%% +Type: language +Subtag: byw +Description: Belhariya +Added: 2009-07-29 +%% +Type: language +Subtag: byx +Description: Qaqet +Added: 2009-07-29 +%% +Type: language +Subtag: byy +Description: Buya +Added: 2009-07-29 +Deprecated: 2015-02-12 +%% +Type: language +Subtag: byz +Description: Banaro +Added: 2009-07-29 +%% +Type: language +Subtag: bza +Description: Bandi +Added: 2009-07-29 +%% +Type: language +Subtag: bzb +Description: Andio +Added: 2009-07-29 +%% +Type: language +Subtag: bzc +Description: Southern Betsimisaraka Malagasy +Added: 2011-08-16 +Macrolanguage: mg +%% +Type: language +Subtag: bzd +Description: Bribri +Added: 2009-07-29 +%% +Type: language +Subtag: bze +Description: Jenaama Bozo +Added: 2009-07-29 +%% +Type: language +Subtag: bzf +Description: Boikin +Added: 2009-07-29 +%% +Type: language +Subtag: bzg +Description: Babuza +Added: 2009-07-29 +%% +Type: language +Subtag: bzh +Description: Mapos Buang +Added: 2009-07-29 +%% +Type: language +Subtag: bzi +Description: Bisu +Added: 2009-07-29 +%% +Type: language +Subtag: bzj +Description: Belize Kriol English +Added: 2009-07-29 +%% +Type: language +Subtag: bzk +Description: Nicaragua Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: bzl +Description: Boano (Sulawesi) +Added: 2009-07-29 +%% +Type: language +Subtag: bzm +Description: Bolondo +Added: 2009-07-29 +%% +Type: language +Subtag: bzn +Description: Boano (Maluku) +Added: 2009-07-29 +%% +Type: language +Subtag: bzo +Description: Bozaba +Added: 2009-07-29 +%% +Type: language +Subtag: bzp +Description: Kemberano +Added: 2009-07-29 +%% +Type: language +Subtag: bzq +Description: Buli (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: bzr +Description: Biri +Added: 2009-07-29 +%% +Type: language +Subtag: bzs +Description: Brazilian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: bzt +Description: Brithenig +Added: 2009-07-29 +%% +Type: language +Subtag: bzu +Description: Burmeso +Added: 2009-07-29 +%% +Type: language +Subtag: bzv +Description: Naami +Added: 2009-07-29 +%% +Type: language +Subtag: bzw +Description: Basa (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: bzx +Description: Kɛlɛngaxo Bozo +Added: 2009-07-29 +%% +Type: language +Subtag: bzy +Description: Obanliku +Added: 2009-07-29 +%% +Type: language +Subtag: bzz +Description: Evant +Added: 2009-07-29 +%% +Type: language +Subtag: caa +Description: Chortí +Added: 2009-07-29 +%% +Type: language +Subtag: cab +Description: Garifuna +Added: 2009-07-29 +%% +Type: language +Subtag: cac +Description: Chuj +Added: 2009-07-29 +%% +Type: language +Subtag: cad +Description: Caddo +Added: 2005-10-16 +%% +Type: language +Subtag: cae +Description: Lehar +Description: Laalaa +Added: 2009-07-29 +%% +Type: language +Subtag: caf +Description: Southern Carrier +Added: 2009-07-29 +%% +Type: language +Subtag: cag +Description: Nivaclé +Added: 2009-07-29 +%% +Type: language +Subtag: cah +Description: Cahuarano +Added: 2009-07-29 +%% +Type: language +Subtag: cai +Description: Central American Indian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: caj +Description: Chané +Added: 2009-07-29 +%% +Type: language +Subtag: cak +Description: Kaqchikel +Description: Cakchiquel +Added: 2009-07-29 +%% +Type: language +Subtag: cal +Description: Carolinian +Added: 2009-07-29 +%% +Type: language +Subtag: cam +Description: Cemuhî +Added: 2009-07-29 +%% +Type: language +Subtag: can +Description: Chambri +Added: 2009-07-29 +%% +Type: language +Subtag: cao +Description: Chácobo +Added: 2009-07-29 +%% +Type: language +Subtag: cap +Description: Chipaya +Added: 2009-07-29 +%% +Type: language +Subtag: caq +Description: Car Nicobarese +Added: 2009-07-29 +%% +Type: language +Subtag: car +Description: Galibi Carib +Added: 2005-10-16 +%% +Type: language +Subtag: cas +Description: Tsimané +Added: 2009-07-29 +%% +Type: language +Subtag: cau +Description: Caucasian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: cav +Description: Cavineña +Added: 2009-07-29 +%% +Type: language +Subtag: caw +Description: Callawalla +Added: 2009-07-29 +%% +Type: language +Subtag: cax +Description: Chiquitano +Added: 2009-07-29 +%% +Type: language +Subtag: cay +Description: Cayuga +Added: 2009-07-29 +%% +Type: language +Subtag: caz +Description: Canichana +Added: 2009-07-29 +%% +Type: language +Subtag: cba +Description: Chibchan languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: cbb +Description: Cabiyarí +Added: 2009-07-29 +%% +Type: language +Subtag: cbc +Description: Carapana +Added: 2009-07-29 +%% +Type: language +Subtag: cbd +Description: Carijona +Added: 2009-07-29 +%% +Type: language +Subtag: cbe +Description: Chipiajes +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: cbg +Description: Chimila +Added: 2009-07-29 +%% +Type: language +Subtag: cbh +Description: Cagua +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: cbi +Description: Chachi +Added: 2009-07-29 +%% +Type: language +Subtag: cbj +Description: Ede Cabe +Added: 2009-07-29 +%% +Type: language +Subtag: cbk +Description: Chavacano +Added: 2009-07-29 +%% +Type: language +Subtag: cbl +Description: Bualkhaw Chin +Added: 2009-07-29 +%% +Type: language +Subtag: cbn +Description: Nyahkur +Added: 2009-07-29 +%% +Type: language +Subtag: cbo +Description: Izora +Added: 2009-07-29 +%% +Type: language +Subtag: cbq +Description: Tsucuba +Description: Cuba +Added: 2015-02-12 +%% +Type: language +Subtag: cbr +Description: Cashibo-Cacataibo +Added: 2009-07-29 +%% +Type: language +Subtag: cbs +Description: Cashinahua +Added: 2009-07-29 +%% +Type: language +Subtag: cbt +Description: Chayahuita +Added: 2009-07-29 +%% +Type: language +Subtag: cbu +Description: Candoshi-Shapra +Added: 2009-07-29 +%% +Type: language +Subtag: cbv +Description: Cacua +Added: 2009-07-29 +%% +Type: language +Subtag: cbw +Description: Kinabalian +Added: 2010-03-11 +%% +Type: language +Subtag: cby +Description: Carabayo +Added: 2009-07-29 +%% +Type: language +Subtag: cca +Description: Cauca +Added: 2009-07-29 +%% +Type: language +Subtag: ccc +Description: Chamicuro +Added: 2009-07-29 +%% +Type: language +Subtag: ccd +Description: Cafundo Creole +Added: 2009-07-29 +%% +Type: language +Subtag: cce +Description: Chopi +Added: 2009-07-29 +%% +Type: language +Subtag: ccg +Description: Samba Daka +Added: 2009-07-29 +%% +Type: language +Subtag: cch +Description: Atsam +Added: 2009-07-29 +%% +Type: language +Subtag: ccj +Description: Kasanga +Added: 2009-07-29 +%% +Type: language +Subtag: ccl +Description: Cutchi-Swahili +Added: 2009-07-29 +%% +Type: language +Subtag: ccm +Description: Malaccan Creole Malay +Added: 2009-07-29 +%% +Type: language +Subtag: ccn +Description: North Caucasian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: cco +Description: Comaltepec Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: ccp +Description: Chakma +Added: 2009-07-29 +%% +Type: language +Subtag: ccq +Description: Chaungtha +Added: 2009-07-29 +Deprecated: 2012-08-12 +Preferred-Value: rki +%% +Type: language +Subtag: ccr +Description: Cacaopera +Added: 2009-07-29 +%% +Type: language +Subtag: ccs +Description: South Caucasian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: cda +Description: Choni +Added: 2009-07-29 +%% +Type: language +Subtag: cdc +Description: Chadic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: cdd +Description: Caddoan languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: cde +Description: Chenchu +Added: 2009-07-29 +%% +Type: language +Subtag: cdf +Description: Chiru +Added: 2009-07-29 +%% +Type: language +Subtag: cdg +Description: Chamari +Added: 2009-07-29 +%% +Type: language +Subtag: cdh +Description: Chambeali +Added: 2009-07-29 +%% +Type: language +Subtag: cdi +Description: Chodri +Added: 2009-07-29 +%% +Type: language +Subtag: cdj +Description: Churahi +Added: 2009-07-29 +%% +Type: language +Subtag: cdm +Description: Chepang +Added: 2009-07-29 +%% +Type: language +Subtag: cdn +Description: Chaudangsi +Added: 2009-07-29 +%% +Type: language +Subtag: cdo +Description: Min Dong Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: cdr +Description: Cinda-Regi-Tiyal +Added: 2009-07-29 +%% +Type: language +Subtag: cds +Description: Chadian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: cdy +Description: Chadong +Added: 2009-07-29 +%% +Type: language +Subtag: cdz +Description: Koda +Added: 2009-07-29 +%% +Type: language +Subtag: cea +Description: Lower Chehalis +Added: 2009-07-29 +%% +Type: language +Subtag: ceb +Description: Cebuano +Added: 2005-10-16 +%% +Type: language +Subtag: ceg +Description: Chamacoco +Added: 2009-07-29 +%% +Type: language +Subtag: cek +Description: Eastern Khumi Chin +Added: 2012-08-12 +%% +Type: language +Subtag: cel +Description: Celtic languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: cen +Description: Cen +Added: 2009-07-29 +%% +Type: language +Subtag: cet +Description: Centúúm +Added: 2009-07-29 +%% +Type: language +Subtag: cey +Description: Ekai Chin +Added: 2019-04-16 +%% +Type: language +Subtag: cfa +Description: Dijim-Bwilim +Added: 2009-07-29 +%% +Type: language +Subtag: cfd +Description: Cara +Added: 2009-07-29 +%% +Type: language +Subtag: cfg +Description: Como Karim +Added: 2009-07-29 +%% +Type: language +Subtag: cfm +Description: Falam Chin +Added: 2009-07-29 +%% +Type: language +Subtag: cga +Description: Changriwa +Added: 2009-07-29 +%% +Type: language +Subtag: cgc +Description: Kagayanen +Added: 2009-07-29 +%% +Type: language +Subtag: cgg +Description: Chiga +Added: 2009-07-29 +%% +Type: language +Subtag: cgk +Description: Chocangacakha +Added: 2009-07-29 +%% +Type: language +Subtag: chb +Description: Chibcha +Added: 2005-10-16 +%% +Type: language +Subtag: chc +Description: Catawba +Added: 2009-07-29 +%% +Type: language +Subtag: chd +Description: Highland Oaxaca Chontal +Added: 2009-07-29 +%% +Type: language +Subtag: chf +Description: Tabasco Chontal +Added: 2009-07-29 +%% +Type: language +Subtag: chg +Description: Chagatai +Added: 2005-10-16 +%% +Type: language +Subtag: chh +Description: Chinook +Added: 2009-07-29 +%% +Type: language +Subtag: chj +Description: Ojitlán Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: chk +Description: Chuukese +Added: 2005-10-16 +%% +Type: language +Subtag: chl +Description: Cahuilla +Added: 2009-07-29 +%% +Type: language +Subtag: chm +Description: Mari (Russia) +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: chn +Description: Chinook jargon +Added: 2005-10-16 +%% +Type: language +Subtag: cho +Description: Choctaw +Added: 2005-10-16 +%% +Type: language +Subtag: chp +Description: Chipewyan +Description: Dene Suline +Added: 2005-10-16 +%% +Type: language +Subtag: chq +Description: Quiotepec Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: chr +Description: Cherokee +Added: 2005-10-16 +%% +Type: language +Subtag: cht +Description: Cholón +Added: 2009-07-29 +%% +Type: language +Subtag: chw +Description: Chuwabu +Added: 2009-07-29 +%% +Type: language +Subtag: chx +Description: Chantyal +Added: 2009-07-29 +%% +Type: language +Subtag: chy +Description: Cheyenne +Added: 2005-10-16 +%% +Type: language +Subtag: chz +Description: Ozumacín Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: cia +Description: Cia-Cia +Added: 2009-07-29 +%% +Type: language +Subtag: cib +Description: Ci Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: cic +Description: Chickasaw +Added: 2009-07-29 +%% +Type: language +Subtag: cid +Description: Chimariko +Added: 2009-07-29 +%% +Type: language +Subtag: cie +Description: Cineni +Added: 2009-07-29 +%% +Type: language +Subtag: cih +Description: Chinali +Added: 2009-07-29 +%% +Type: language +Subtag: cik +Description: Chitkuli Kinnauri +Added: 2009-07-29 +%% +Type: language +Subtag: cim +Description: Cimbrian +Added: 2009-07-29 +%% +Type: language +Subtag: cin +Description: Cinta Larga +Added: 2009-07-29 +%% +Type: language +Subtag: cip +Description: Chiapanec +Added: 2009-07-29 +%% +Type: language +Subtag: cir +Description: Tiri +Description: Haméa +Description: Méa +Added: 2009-07-29 +%% +Type: language +Subtag: ciw +Description: Chippewa +Added: 2009-07-29 +Macrolanguage: oj +%% +Type: language +Subtag: ciy +Description: Chaima +Added: 2009-07-29 +%% +Type: language +Subtag: cja +Description: Western Cham +Added: 2009-07-29 +%% +Type: language +Subtag: cje +Description: Chru +Added: 2009-07-29 +%% +Type: language +Subtag: cjh +Description: Upper Chehalis +Added: 2009-07-29 +%% +Type: language +Subtag: cji +Description: Chamalal +Added: 2009-07-29 +%% +Type: language +Subtag: cjk +Description: Chokwe +Added: 2009-07-29 +%% +Type: language +Subtag: cjm +Description: Eastern Cham +Added: 2009-07-29 +%% +Type: language +Subtag: cjn +Description: Chenapian +Added: 2009-07-29 +%% +Type: language +Subtag: cjo +Description: Ashéninka Pajonal +Added: 2009-07-29 +%% +Type: language +Subtag: cjp +Description: Cabécar +Added: 2009-07-29 +%% +Type: language +Subtag: cjr +Description: Chorotega +Added: 2009-07-29 +Deprecated: 2010-03-11 +Preferred-Value: mom +%% +Type: language +Subtag: cjs +Description: Shor +Added: 2009-07-29 +%% +Type: language +Subtag: cjv +Description: Chuave +Added: 2009-07-29 +%% +Type: language +Subtag: cjy +Description: Jinyu Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: cka +Description: Khumi Awa Chin +Added: 2009-07-29 +Deprecated: 2012-08-12 +Preferred-Value: cmr +%% +Type: language +Subtag: ckb +Description: Central Kurdish +Added: 2009-07-29 +Macrolanguage: ku +%% +Type: language +Subtag: ckh +Description: Chak +Added: 2009-07-29 +%% +Type: language +Subtag: ckl +Description: Cibak +Added: 2009-07-29 +%% +Type: language +Subtag: ckn +Description: Kaang Chin +Added: 2013-09-10 +%% +Type: language +Subtag: cko +Description: Anufo +Added: 2009-07-29 +%% +Type: language +Subtag: ckq +Description: Kajakse +Added: 2009-07-29 +%% +Type: language +Subtag: ckr +Description: Kairak +Added: 2009-07-29 +%% +Type: language +Subtag: cks +Description: Tayo +Added: 2009-07-29 +%% +Type: language +Subtag: ckt +Description: Chukot +Added: 2009-07-29 +%% +Type: language +Subtag: cku +Description: Koasati +Added: 2009-07-29 +%% +Type: language +Subtag: ckv +Description: Kavalan +Added: 2009-07-29 +%% +Type: language +Subtag: ckx +Description: Caka +Added: 2009-07-29 +%% +Type: language +Subtag: cky +Description: Cakfem-Mushere +Added: 2009-07-29 +%% +Type: language +Subtag: ckz +Description: Cakchiquel-Quiché Mixed Language +Added: 2009-07-29 +%% +Type: language +Subtag: cla +Description: Ron +Added: 2009-07-29 +%% +Type: language +Subtag: clc +Description: Chilcotin +Added: 2009-07-29 +%% +Type: language +Subtag: cld +Description: Chaldean Neo-Aramaic +Added: 2009-07-29 +Macrolanguage: syr +%% +Type: language +Subtag: cle +Description: Lealao Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: clh +Description: Chilisso +Added: 2009-07-29 +%% +Type: language +Subtag: cli +Description: Chakali +Added: 2009-07-29 +%% +Type: language +Subtag: clj +Description: Laitu Chin +Added: 2012-08-12 +%% +Type: language +Subtag: clk +Description: Idu-Mishmi +Added: 2009-07-29 +%% +Type: language +Subtag: cll +Description: Chala +Added: 2009-07-29 +%% +Type: language +Subtag: clm +Description: Clallam +Added: 2009-07-29 +%% +Type: language +Subtag: clo +Description: Lowland Oaxaca Chontal +Added: 2009-07-29 +%% +Type: language +Subtag: clt +Description: Lautu Chin +Added: 2012-08-12 +%% +Type: language +Subtag: clu +Description: Caluyanun +Added: 2009-07-29 +%% +Type: language +Subtag: clw +Description: Chulym +Added: 2009-07-29 +%% +Type: language +Subtag: cly +Description: Eastern Highland Chatino +Added: 2009-07-29 +%% +Type: language +Subtag: cma +Description: Maa +Added: 2009-07-29 +%% +Type: language +Subtag: cmc +Description: Chamic languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: cme +Description: Cerma +Added: 2009-07-29 +%% +Type: language +Subtag: cmg +Description: Classical Mongolian +Added: 2009-07-29 +%% +Type: language +Subtag: cmi +Description: Emberá-Chamí +Added: 2009-07-29 +%% +Type: language +Subtag: cmk +Description: Chimakum +Added: 2009-07-29 +Deprecated: 2010-03-11 +Preferred-Value: xch +%% +Type: language +Subtag: cml +Description: Campalagian +Added: 2009-07-29 +%% +Type: language +Subtag: cmm +Description: Michigamea +Added: 2009-07-29 +%% +Type: language +Subtag: cmn +Description: Mandarin Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: cmo +Description: Central Mnong +Added: 2009-07-29 +%% +Type: language +Subtag: cmr +Description: Mro-Khimi Chin +Added: 2009-07-29 +%% +Type: language +Subtag: cms +Description: Messapic +Added: 2009-07-29 +%% +Type: language +Subtag: cmt +Description: Camtho +Added: 2009-07-29 +%% +Type: language +Subtag: cna +Description: Changthang +Added: 2009-07-29 +%% +Type: language +Subtag: cnb +Description: Chinbon Chin +Added: 2009-07-29 +%% +Type: language +Subtag: cnc +Description: Côông +Added: 2009-07-29 +%% +Type: language +Subtag: cng +Description: Northern Qiang +Added: 2009-07-29 +%% +Type: language +Subtag: cnh +Description: Hakha Chin +Description: Haka Chin +Added: 2009-07-29 +%% +Type: language +Subtag: cni +Description: Asháninka +Added: 2009-07-29 +%% +Type: language +Subtag: cnk +Description: Khumi Chin +Added: 2009-07-29 +%% +Type: language +Subtag: cnl +Description: Lalana Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: cno +Description: Con +Added: 2009-07-29 +%% +Type: language +Subtag: cnr +Description: Montenegrin +Added: 2018-01-23 +Macrolanguage: sh +Comments: see sr for Serbian +%% +Type: language +Subtag: cns +Description: Central Asmat +Added: 2009-07-29 +%% +Type: language +Subtag: cnt +Description: Tepetotutla Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: cnu +Description: Chenoua +Added: 2009-07-29 +%% +Type: language +Subtag: cnw +Description: Ngawn Chin +Added: 2009-07-29 +%% +Type: language +Subtag: cnx +Description: Middle Cornish +Added: 2009-07-29 +%% +Type: language +Subtag: coa +Description: Cocos Islands Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: cob +Description: Chicomuceltec +Added: 2009-07-29 +%% +Type: language +Subtag: coc +Description: Cocopa +Added: 2009-07-29 +%% +Type: language +Subtag: cod +Description: Cocama-Cocamilla +Added: 2009-07-29 +%% +Type: language +Subtag: coe +Description: Koreguaje +Added: 2009-07-29 +%% +Type: language +Subtag: cof +Description: Colorado +Added: 2009-07-29 +%% +Type: language +Subtag: cog +Description: Chong +Added: 2009-07-29 +%% +Type: language +Subtag: coh +Description: Chonyi-Dzihana-Kauma +Description: Chichonyi-Chidzihana-Chikauma +Added: 2009-07-29 +%% +Type: language +Subtag: coj +Description: Cochimi +Added: 2009-07-29 +%% +Type: language +Subtag: cok +Description: Santa Teresa Cora +Added: 2009-07-29 +%% +Type: language +Subtag: col +Description: Columbia-Wenatchi +Added: 2009-07-29 +%% +Type: language +Subtag: com +Description: Comanche +Added: 2009-07-29 +%% +Type: language +Subtag: con +Description: Cofán +Added: 2009-07-29 +%% +Type: language +Subtag: coo +Description: Comox +Added: 2009-07-29 +%% +Type: language +Subtag: cop +Description: Coptic +Added: 2005-10-16 +%% +Type: language +Subtag: coq +Description: Coquille +Added: 2009-07-29 +%% +Type: language +Subtag: cot +Description: Caquinte +Added: 2009-07-29 +%% +Type: language +Subtag: cou +Description: Wamey +Added: 2009-07-29 +%% +Type: language +Subtag: cov +Description: Cao Miao +Added: 2009-07-29 +%% +Type: language +Subtag: cow +Description: Cowlitz +Added: 2009-07-29 +%% +Type: language +Subtag: cox +Description: Nanti +Added: 2009-07-29 +%% +Type: language +Subtag: coy +Description: Coyaima +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: pij +%% +Type: language +Subtag: coz +Description: Chochotec +Added: 2009-07-29 +%% +Type: language +Subtag: cpa +Description: Palantla Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: cpb +Description: Ucayali-Yurúa Ashéninka +Added: 2009-07-29 +%% +Type: language +Subtag: cpc +Description: Ajyíninka Apurucayali +Added: 2009-07-29 +%% +Type: language +Subtag: cpe +Description: English-based creoles and pidgins +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: cpf +Description: French-based creoles and pidgins +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: cpg +Description: Cappadocian Greek +Added: 2009-07-29 +%% +Type: language +Subtag: cpi +Description: Chinese Pidgin English +Added: 2009-07-29 +%% +Type: language +Subtag: cpn +Description: Cherepon +Added: 2009-07-29 +%% +Type: language +Subtag: cpo +Description: Kpeego +Added: 2013-09-10 +%% +Type: language +Subtag: cpp +Description: Portuguese-based creoles and pidgins +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: cps +Description: Capiznon +Added: 2009-07-29 +%% +Type: language +Subtag: cpu +Description: Pichis Ashéninka +Added: 2009-07-29 +%% +Type: language +Subtag: cpx +Description: Pu-Xian Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: cpy +Description: South Ucayali Ashéninka +Added: 2009-07-29 +%% +Type: language +Subtag: cqd +Description: Chuanqiandian Cluster Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: cqu +Description: Chilean Quechua +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: quh +Macrolanguage: qu +%% +Type: language +Subtag: cra +Description: Chara +Added: 2009-07-29 +%% +Type: language +Subtag: crb +Description: Island Carib +Added: 2009-07-29 +%% +Type: language +Subtag: crc +Description: Lonwolwol +Added: 2009-07-29 +%% +Type: language +Subtag: crd +Description: Coeur d'Alene +Added: 2009-07-29 +%% +Type: language +Subtag: crf +Description: Caramanta +Added: 2009-07-29 +%% +Type: language +Subtag: crg +Description: Michif +Added: 2009-07-29 +%% +Type: language +Subtag: crh +Description: Crimean Tatar +Description: Crimean Turkish +Added: 2005-10-16 +%% +Type: language +Subtag: cri +Description: Sãotomense +Added: 2009-07-29 +%% +Type: language +Subtag: crj +Description: Southern East Cree +Added: 2009-07-29 +Macrolanguage: cr +%% +Type: language +Subtag: crk +Description: Plains Cree +Added: 2009-07-29 +Macrolanguage: cr +%% +Type: language +Subtag: crl +Description: Northern East Cree +Added: 2009-07-29 +Macrolanguage: cr +%% +Type: language +Subtag: crm +Description: Moose Cree +Added: 2009-07-29 +Macrolanguage: cr +%% +Type: language +Subtag: crn +Description: El Nayar Cora +Added: 2009-07-29 +%% +Type: language +Subtag: cro +Description: Crow +Added: 2009-07-29 +%% +Type: language +Subtag: crp +Description: Creoles and pidgins +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: crq +Description: Iyo'wujwa Chorote +Added: 2009-07-29 +%% +Type: language +Subtag: crr +Description: Carolina Algonquian +Added: 2009-07-29 +%% +Type: language +Subtag: crs +Description: Seselwa Creole French +Added: 2009-07-29 +%% +Type: language +Subtag: crt +Description: Iyojwa'ja Chorote +Added: 2009-07-29 +%% +Type: language +Subtag: crv +Description: Chaura +Added: 2009-07-29 +%% +Type: language +Subtag: crw +Description: Chrau +Added: 2009-07-29 +%% +Type: language +Subtag: crx +Description: Carrier +Added: 2009-07-29 +%% +Type: language +Subtag: cry +Description: Cori +Added: 2009-07-29 +%% +Type: language +Subtag: crz +Description: Cruzeño +Added: 2009-07-29 +%% +Type: language +Subtag: csa +Description: Chiltepec Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: csb +Description: Kashubian +Added: 2005-10-16 +%% +Type: language +Subtag: csc +Description: Catalan Sign Language +Description: Lengua de señas catalana +Description: Llengua de Signes Catalana +Added: 2009-07-29 +%% +Type: language +Subtag: csd +Description: Chiangmai Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: cse +Description: Czech Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: csf +Description: Cuba Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: csg +Description: Chilean Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: csh +Description: Asho Chin +Added: 2009-07-29 +%% +Type: language +Subtag: csi +Description: Coast Miwok +Added: 2009-07-29 +%% +Type: language +Subtag: csj +Description: Songlai Chin +Added: 2013-09-10 +%% +Type: language +Subtag: csk +Description: Jola-Kasa +Added: 2009-07-29 +%% +Type: language +Subtag: csl +Description: Chinese Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: csm +Description: Central Sierra Miwok +Added: 2009-07-29 +%% +Type: language +Subtag: csn +Description: Colombian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: cso +Description: Sochiapam Chinantec +Description: Sochiapan Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: csq +Description: Croatia Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: csr +Description: Costa Rican Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: css +Description: Southern Ohlone +Added: 2009-07-29 +%% +Type: language +Subtag: cst +Description: Northern Ohlone +Added: 2009-07-29 +%% +Type: language +Subtag: csu +Description: Central Sudanic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: csv +Description: Sumtu Chin +Added: 2012-08-12 +%% +Type: language +Subtag: csw +Description: Swampy Cree +Added: 2009-07-29 +Macrolanguage: cr +%% +Type: language +Subtag: csy +Description: Siyin Chin +Added: 2009-07-29 +%% +Type: language +Subtag: csz +Description: Coos +Added: 2009-07-29 +%% +Type: language +Subtag: cta +Description: Tataltepec Chatino +Added: 2009-07-29 +%% +Type: language +Subtag: ctc +Description: Chetco +Added: 2009-07-29 +%% +Type: language +Subtag: ctd +Description: Tedim Chin +Added: 2009-07-29 +%% +Type: language +Subtag: cte +Description: Tepinapa Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: ctg +Description: Chittagonian +Added: 2009-07-29 +%% +Type: language +Subtag: cth +Description: Thaiphum Chin +Added: 2012-08-12 +%% +Type: language +Subtag: ctl +Description: Tlacoatzintepec Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: ctm +Description: Chitimacha +Added: 2009-07-29 +%% +Type: language +Subtag: ctn +Description: Chhintange +Added: 2009-07-29 +%% +Type: language +Subtag: cto +Description: Emberá-Catío +Added: 2009-07-29 +%% +Type: language +Subtag: ctp +Description: Western Highland Chatino +Added: 2009-07-29 +%% +Type: language +Subtag: cts +Description: Northern Catanduanes Bikol +Added: 2009-07-29 +Macrolanguage: bik +%% +Type: language +Subtag: ctt +Description: Wayanad Chetti +Added: 2009-07-29 +%% +Type: language +Subtag: ctu +Description: Chol +Added: 2009-07-29 +%% +Type: language +Subtag: ctz +Description: Zacatepec Chatino +Added: 2009-07-29 +%% +Type: language +Subtag: cua +Description: Cua +Added: 2009-07-29 +%% +Type: language +Subtag: cub +Description: Cubeo +Added: 2009-07-29 +%% +Type: language +Subtag: cuc +Description: Usila Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: cug +Description: Chungmboko +Description: Cung +Added: 2009-07-29 +%% +Type: language +Subtag: cuh +Description: Chuka +Description: Gichuka +Added: 2009-07-29 +%% +Type: language +Subtag: cui +Description: Cuiba +Added: 2009-07-29 +%% +Type: language +Subtag: cuj +Description: Mashco Piro +Added: 2009-07-29 +%% +Type: language +Subtag: cuk +Description: San Blas Kuna +Added: 2009-07-29 +%% +Type: language +Subtag: cul +Description: Culina +Description: Kulina +Added: 2009-07-29 +%% +Type: language +Subtag: cum +Description: Cumeral +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: cuo +Description: Cumanagoto +Added: 2009-07-29 +%% +Type: language +Subtag: cup +Description: Cupeño +Added: 2009-07-29 +%% +Type: language +Subtag: cuq +Description: Cun +Added: 2009-07-29 +%% +Type: language +Subtag: cur +Description: Chhulung +Added: 2009-07-29 +%% +Type: language +Subtag: cus +Description: Cushitic languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: cut +Description: Teutila Cuicatec +Added: 2009-07-29 +%% +Type: language +Subtag: cuu +Description: Tai Ya +Added: 2009-07-29 +%% +Type: language +Subtag: cuv +Description: Cuvok +Added: 2009-07-29 +%% +Type: language +Subtag: cuw +Description: Chukwa +Added: 2009-07-29 +%% +Type: language +Subtag: cux +Description: Tepeuxila Cuicatec +Added: 2009-07-29 +%% +Type: language +Subtag: cuy +Description: Cuitlatec +Added: 2018-03-08 +%% +Type: language +Subtag: cvg +Description: Chug +Added: 2009-07-29 +%% +Type: language +Subtag: cvn +Description: Valle Nacional Chinantec +Added: 2009-07-29 +%% +Type: language +Subtag: cwa +Description: Kabwa +Added: 2009-07-29 +%% +Type: language +Subtag: cwb +Description: Maindo +Added: 2009-07-29 +%% +Type: language +Subtag: cwd +Description: Woods Cree +Added: 2009-07-29 +Macrolanguage: cr +%% +Type: language +Subtag: cwe +Description: Kwere +Added: 2009-07-29 +%% +Type: language +Subtag: cwg +Description: Chewong +Description: Cheq Wong +Added: 2009-07-29 +%% +Type: language +Subtag: cwt +Description: Kuwaataay +Added: 2009-07-29 +%% +Type: language +Subtag: cya +Description: Nopala Chatino +Added: 2009-07-29 +%% +Type: language +Subtag: cyb +Description: Cayubaba +Added: 2009-07-29 +%% +Type: language +Subtag: cyo +Description: Cuyonon +Added: 2009-07-29 +%% +Type: language +Subtag: czh +Description: Huizhou Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: czk +Description: Knaanic +Added: 2009-07-29 +%% +Type: language +Subtag: czn +Description: Zenzontepec Chatino +Added: 2009-07-29 +%% +Type: language +Subtag: czo +Description: Min Zhong Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: czt +Description: Zotung Chin +Added: 2009-07-29 +%% +Type: language +Subtag: daa +Description: Dangaléat +Added: 2009-07-29 +%% +Type: language +Subtag: dac +Description: Dambi +Added: 2009-07-29 +%% +Type: language +Subtag: dad +Description: Marik +Added: 2009-07-29 +%% +Type: language +Subtag: dae +Description: Duupa +Added: 2009-07-29 +%% +Type: language +Subtag: daf +Description: Dan +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see dnj, lda +%% +Type: language +Subtag: dag +Description: Dagbani +Added: 2009-07-29 +%% +Type: language +Subtag: dah +Description: Gwahatike +Added: 2009-07-29 +%% +Type: language +Subtag: dai +Description: Day +Added: 2009-07-29 +%% +Type: language +Subtag: daj +Description: Dar Fur Daju +Added: 2009-07-29 +%% +Type: language +Subtag: dak +Description: Dakota +Added: 2005-10-16 +%% +Type: language +Subtag: dal +Description: Dahalo +Added: 2009-07-29 +%% +Type: language +Subtag: dam +Description: Damakawa +Added: 2009-07-29 +%% +Type: language +Subtag: dao +Description: Daai Chin +Added: 2009-07-29 +%% +Type: language +Subtag: dap +Description: Nisi (India) +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see njz, tgj +%% +Type: language +Subtag: daq +Description: Dandami Maria +Added: 2009-07-29 +%% +Type: language +Subtag: dar +Description: Dargwa +Added: 2005-10-16 +%% +Type: language +Subtag: das +Description: Daho-Doo +Added: 2009-07-29 +%% +Type: language +Subtag: dau +Description: Dar Sila Daju +Added: 2009-07-29 +%% +Type: language +Subtag: dav +Description: Taita +Description: Dawida +Added: 2009-07-29 +%% +Type: language +Subtag: daw +Description: Davawenyo +Added: 2009-07-29 +%% +Type: language +Subtag: dax +Description: Dayi +Added: 2009-07-29 +%% +Type: language +Subtag: day +Description: Land Dayak languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: daz +Description: Dao +Added: 2009-07-29 +%% +Type: language +Subtag: dba +Description: Bangime +Added: 2009-07-29 +%% +Type: language +Subtag: dbb +Description: Deno +Added: 2009-07-29 +%% +Type: language +Subtag: dbd +Description: Dadiya +Added: 2009-07-29 +%% +Type: language +Subtag: dbe +Description: Dabe +Added: 2009-07-29 +%% +Type: language +Subtag: dbf +Description: Edopi +Added: 2009-07-29 +%% +Type: language +Subtag: dbg +Description: Dogul Dom Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: dbi +Description: Doka +Added: 2009-07-29 +%% +Type: language +Subtag: dbj +Description: Ida'an +Added: 2009-07-29 +%% +Type: language +Subtag: dbl +Description: Dyirbal +Added: 2009-07-29 +%% +Type: language +Subtag: dbm +Description: Duguri +Added: 2009-07-29 +%% +Type: language +Subtag: dbn +Description: Duriankere +Added: 2009-07-29 +%% +Type: language +Subtag: dbo +Description: Dulbu +Added: 2009-07-29 +%% +Type: language +Subtag: dbp +Description: Duwai +Added: 2009-07-29 +%% +Type: language +Subtag: dbq +Description: Daba +Added: 2009-07-29 +%% +Type: language +Subtag: dbr +Description: Dabarre +Added: 2009-07-29 +%% +Type: language +Subtag: dbt +Description: Ben Tey Dogon +Added: 2012-08-12 +%% +Type: language +Subtag: dbu +Description: Bondum Dom Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: dbv +Description: Dungu +Added: 2009-07-29 +%% +Type: language +Subtag: dbw +Description: Bankan Tey Dogon +Added: 2012-08-12 +%% +Type: language +Subtag: dby +Description: Dibiyaso +Added: 2009-07-29 +%% +Type: language +Subtag: dcc +Description: Deccan +Added: 2009-07-29 +%% +Type: language +Subtag: dcr +Description: Negerhollands +Added: 2009-07-29 +%% +Type: language +Subtag: dda +Description: Dadi Dadi +Added: 2012-08-12 +%% +Type: language +Subtag: ddd +Description: Dongotono +Added: 2009-07-29 +%% +Type: language +Subtag: dde +Description: Doondo +Added: 2009-07-29 +%% +Type: language +Subtag: ddg +Description: Fataluku +Added: 2009-07-29 +%% +Type: language +Subtag: ddi +Description: West Goodenough +Added: 2009-07-29 +%% +Type: language +Subtag: ddj +Description: Jaru +Added: 2009-07-29 +%% +Type: language +Subtag: ddn +Description: Dendi (Benin) +Added: 2009-07-29 +%% +Type: language +Subtag: ddo +Description: Dido +Added: 2009-07-29 +%% +Type: language +Subtag: ddr +Description: Dhudhuroa +Added: 2012-08-12 +%% +Type: language +Subtag: dds +Description: Donno So Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: ddw +Description: Dawera-Daweloor +Added: 2009-07-29 +%% +Type: language +Subtag: dec +Description: Dagik +Added: 2009-07-29 +%% +Type: language +Subtag: ded +Description: Dedua +Added: 2009-07-29 +%% +Type: language +Subtag: dee +Description: Dewoin +Added: 2009-07-29 +%% +Type: language +Subtag: def +Description: Dezfuli +Added: 2009-07-29 +%% +Type: language +Subtag: deg +Description: Degema +Added: 2009-07-29 +%% +Type: language +Subtag: deh +Description: Dehwari +Added: 2009-07-29 +%% +Type: language +Subtag: dei +Description: Demisa +Added: 2009-07-29 +%% +Type: language +Subtag: dek +Description: Dek +Added: 2009-07-29 +%% +Type: language +Subtag: del +Description: Delaware +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: dem +Description: Dem +Added: 2009-07-29 +%% +Type: language +Subtag: den +Description: Slave (Athapascan) +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: dep +Description: Pidgin Delaware +Added: 2009-07-29 +%% +Type: language +Subtag: deq +Description: Dendi (Central African Republic) +Added: 2009-07-29 +%% +Type: language +Subtag: der +Description: Deori +Added: 2009-07-29 +%% +Type: language +Subtag: des +Description: Desano +Added: 2009-07-29 +%% +Type: language +Subtag: dev +Description: Domung +Added: 2009-07-29 +%% +Type: language +Subtag: dez +Description: Dengese +Added: 2009-07-29 +%% +Type: language +Subtag: dga +Description: Southern Dagaare +Added: 2009-07-29 +%% +Type: language +Subtag: dgb +Description: Bunoge Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: dgc +Description: Casiguran Dumagat Agta +Added: 2009-07-29 +%% +Type: language +Subtag: dgd +Description: Dagaari Dioula +Added: 2009-07-29 +%% +Type: language +Subtag: dge +Description: Degenan +Added: 2009-07-29 +%% +Type: language +Subtag: dgg +Description: Doga +Added: 2009-07-29 +%% +Type: language +Subtag: dgh +Description: Dghwede +Added: 2009-07-29 +%% +Type: language +Subtag: dgi +Description: Northern Dagara +Added: 2009-07-29 +%% +Type: language +Subtag: dgk +Description: Dagba +Added: 2009-07-29 +%% +Type: language +Subtag: dgl +Description: Andaandi +Description: Dongolawi +Added: 2012-08-12 +%% +Type: language +Subtag: dgn +Description: Dagoman +Added: 2009-07-29 +%% +Type: language +Subtag: dgo +Description: Dogri (individual language) +Added: 2009-07-29 +Macrolanguage: doi +%% +Type: language +Subtag: dgr +Description: Dogrib +Added: 2005-10-16 +%% +Type: language +Subtag: dgs +Description: Dogoso +Added: 2009-07-29 +%% +Type: language +Subtag: dgt +Description: Ndra'ngith +Added: 2012-08-12 +%% +Type: language +Subtag: dgu +Description: Degaru +Added: 2009-07-29 +%% +Type: language +Subtag: dgw +Description: Daungwurrung +Added: 2012-08-12 +%% +Type: language +Subtag: dgx +Description: Doghoro +Added: 2009-07-29 +%% +Type: language +Subtag: dgz +Description: Daga +Added: 2009-07-29 +%% +Type: language +Subtag: dha +Description: Dhanwar (India) +Added: 2009-07-29 +Deprecated: 2011-08-16 +%% +Type: language +Subtag: dhd +Description: Dhundari +Added: 2009-07-29 +Macrolanguage: mwr +%% +Type: language +Subtag: dhg +Description: Dhangu-Djangu +Description: Dhangu +Description: Djangu +Added: 2009-07-29 +%% +Type: language +Subtag: dhi +Description: Dhimal +Added: 2009-07-29 +%% +Type: language +Subtag: dhl +Description: Dhalandji +Added: 2009-07-29 +%% +Type: language +Subtag: dhm +Description: Zemba +Added: 2009-07-29 +%% +Type: language +Subtag: dhn +Description: Dhanki +Added: 2009-07-29 +%% +Type: language +Subtag: dho +Description: Dhodia +Added: 2009-07-29 +%% +Type: language +Subtag: dhr +Description: Dhargari +Added: 2009-07-29 +%% +Type: language +Subtag: dhs +Description: Dhaiso +Added: 2009-07-29 +%% +Type: language +Subtag: dhu +Description: Dhurga +Added: 2009-07-29 +%% +Type: language +Subtag: dhv +Description: Dehu +Description: Drehu +Added: 2009-07-29 +%% +Type: language +Subtag: dhw +Description: Dhanwar (Nepal) +Added: 2009-07-29 +%% +Type: language +Subtag: dhx +Description: Dhungaloo +Added: 2013-09-10 +%% +Type: language +Subtag: dia +Description: Dia +Added: 2009-07-29 +%% +Type: language +Subtag: dib +Description: South Central Dinka +Added: 2009-07-29 +Macrolanguage: din +%% +Type: language +Subtag: dic +Description: Lakota Dida +Added: 2009-07-29 +%% +Type: language +Subtag: did +Description: Didinga +Added: 2009-07-29 +%% +Type: language +Subtag: dif +Description: Dieri +Description: Diyari +Added: 2009-07-29 +%% +Type: language +Subtag: dig +Description: Digo +Description: Chidigo +Added: 2009-07-29 +%% +Type: language +Subtag: dih +Description: Kumiai +Added: 2009-07-29 +%% +Type: language +Subtag: dii +Description: Dimbong +Added: 2009-07-29 +%% +Type: language +Subtag: dij +Description: Dai +Added: 2009-07-29 +%% +Type: language +Subtag: dik +Description: Southwestern Dinka +Added: 2009-07-29 +Macrolanguage: din +%% +Type: language +Subtag: dil +Description: Dilling +Added: 2009-07-29 +%% +Type: language +Subtag: dim +Description: Dime +Added: 2009-07-29 +%% +Type: language +Subtag: din +Description: Dinka +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: dio +Description: Dibo +Added: 2009-07-29 +%% +Type: language +Subtag: dip +Description: Northeastern Dinka +Added: 2009-07-29 +Macrolanguage: din +%% +Type: language +Subtag: diq +Description: Dimli (individual language) +Added: 2009-07-29 +Macrolanguage: zza +%% +Type: language +Subtag: dir +Description: Dirim +Added: 2009-07-29 +%% +Type: language +Subtag: dis +Description: Dimasa +Added: 2009-07-29 +%% +Type: language +Subtag: dit +Description: Dirari +Added: 2009-07-29 +Deprecated: 2019-04-29 +Preferred-Value: dif +%% +Type: language +Subtag: diu +Description: Diriku +Added: 2009-07-29 +%% +Type: language +Subtag: diw +Description: Northwestern Dinka +Added: 2009-07-29 +Macrolanguage: din +%% +Type: language +Subtag: dix +Description: Dixon Reef +Added: 2009-07-29 +%% +Type: language +Subtag: diy +Description: Diuwe +Added: 2009-07-29 +%% +Type: language +Subtag: diz +Description: Ding +Added: 2009-07-29 +%% +Type: language +Subtag: dja +Description: Djadjawurrung +Added: 2012-08-12 +%% +Type: language +Subtag: djb +Description: Djinba +Added: 2009-07-29 +%% +Type: language +Subtag: djc +Description: Dar Daju Daju +Added: 2009-07-29 +%% +Type: language +Subtag: djd +Description: Djamindjung +Description: Ngaliwurru +Added: 2009-07-29 +%% +Type: language +Subtag: dje +Description: Zarma +Added: 2009-07-29 +%% +Type: language +Subtag: djf +Description: Djangun +Added: 2009-07-29 +%% +Type: language +Subtag: dji +Description: Djinang +Added: 2009-07-29 +%% +Type: language +Subtag: djj +Description: Djeebbana +Added: 2009-07-29 +%% +Type: language +Subtag: djk +Description: Eastern Maroon Creole +Description: Businenge Tongo +Description: Nenge +Added: 2009-07-29 +%% +Type: language +Subtag: djl +Description: Djiwarli +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see dze, iin +%% +Type: language +Subtag: djm +Description: Jamsay Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: djn +Description: Jawoyn +Description: Djauan +Added: 2009-07-29 +%% +Type: language +Subtag: djo +Description: Jangkang +Added: 2009-07-29 +%% +Type: language +Subtag: djr +Description: Djambarrpuyngu +Added: 2009-07-29 +%% +Type: language +Subtag: dju +Description: Kapriman +Added: 2009-07-29 +%% +Type: language +Subtag: djw +Description: Djawi +Added: 2009-07-29 +%% +Type: language +Subtag: dka +Description: Dakpakha +Added: 2009-07-29 +%% +Type: language +Subtag: dkk +Description: Dakka +Added: 2009-07-29 +%% +Type: language +Subtag: dkl +Description: Kolum So Dogon +Added: 2009-07-29 +Deprecated: 2011-08-16 +Comments: see aqd, dmb +%% +Type: language +Subtag: dkr +Description: Kuijau +Added: 2009-07-29 +%% +Type: language +Subtag: dks +Description: Southeastern Dinka +Added: 2009-07-29 +Macrolanguage: din +%% +Type: language +Subtag: dkx +Description: Mazagway +Added: 2009-07-29 +%% +Type: language +Subtag: dlg +Description: Dolgan +Added: 2009-07-29 +%% +Type: language +Subtag: dlk +Description: Dahalik +Added: 2013-09-10 +%% +Type: language +Subtag: dlm +Description: Dalmatian +Added: 2009-07-29 +%% +Type: language +Subtag: dln +Description: Darlong +Added: 2009-07-29 +%% +Type: language +Subtag: dma +Description: Duma +Added: 2009-07-29 +%% +Type: language +Subtag: dmb +Description: Mombo Dogon +Added: 2011-08-16 +%% +Type: language +Subtag: dmc +Description: Gavak +Added: 2009-07-29 +%% +Type: language +Subtag: dmd +Description: Madhi Madhi +Added: 2012-08-12 +%% +Type: language +Subtag: dme +Description: Dugwor +Added: 2009-07-29 +%% +Type: language +Subtag: dmg +Description: Upper Kinabatangan +Added: 2009-07-29 +%% +Type: language +Subtag: dmk +Description: Domaaki +Added: 2009-07-29 +%% +Type: language +Subtag: dml +Description: Dameli +Added: 2009-07-29 +%% +Type: language +Subtag: dmm +Description: Dama +Added: 2009-07-29 +%% +Type: language +Subtag: dmn +Description: Mande languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: dmo +Description: Kemedzung +Added: 2009-07-29 +%% +Type: language +Subtag: dmr +Description: East Damar +Added: 2009-07-29 +%% +Type: language +Subtag: dms +Description: Dampelas +Added: 2009-07-29 +%% +Type: language +Subtag: dmu +Description: Dubu +Description: Tebi +Added: 2009-07-29 +%% +Type: language +Subtag: dmv +Description: Dumpas +Added: 2009-07-29 +%% +Type: language +Subtag: dmw +Description: Mudburra +Added: 2013-09-10 +%% +Type: language +Subtag: dmx +Description: Dema +Added: 2009-07-29 +%% +Type: language +Subtag: dmy +Description: Demta +Description: Sowari +Added: 2009-07-29 +%% +Type: language +Subtag: dna +Description: Upper Grand Valley Dani +Added: 2009-07-29 +%% +Type: language +Subtag: dnd +Description: Daonda +Added: 2009-07-29 +%% +Type: language +Subtag: dne +Description: Ndendeule +Added: 2009-07-29 +%% +Type: language +Subtag: dng +Description: Dungan +Added: 2009-07-29 +%% +Type: language +Subtag: dni +Description: Lower Grand Valley Dani +Added: 2009-07-29 +%% +Type: language +Subtag: dnj +Description: Dan +Added: 2013-09-10 +%% +Type: language +Subtag: dnk +Description: Dengka +Added: 2009-07-29 +%% +Type: language +Subtag: dnn +Description: Dzùùngoo +Added: 2009-07-29 +%% +Type: language +Subtag: dno +Description: Ndrulo +Description: Northern Lendu +Added: 2018-10-28 +%% +Type: language +Subtag: dnr +Description: Danaru +Added: 2009-07-29 +%% +Type: language +Subtag: dnt +Description: Mid Grand Valley Dani +Added: 2009-07-29 +%% +Type: language +Subtag: dnu +Description: Danau +Added: 2009-07-29 +%% +Type: language +Subtag: dnv +Description: Danu +Added: 2012-08-12 +%% +Type: language +Subtag: dnw +Description: Western Dani +Added: 2009-07-29 +%% +Type: language +Subtag: dny +Description: Dení +Added: 2009-07-29 +%% +Type: language +Subtag: doa +Description: Dom +Added: 2009-07-29 +%% +Type: language +Subtag: dob +Description: Dobu +Added: 2009-07-29 +%% +Type: language +Subtag: doc +Description: Northern Dong +Added: 2009-07-29 +%% +Type: language +Subtag: doe +Description: Doe +Added: 2009-07-29 +%% +Type: language +Subtag: dof +Description: Domu +Added: 2009-07-29 +%% +Type: language +Subtag: doh +Description: Dong +Added: 2009-07-29 +%% +Type: language +Subtag: doi +Description: Dogri (macrolanguage) +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: dok +Description: Dondo +Added: 2009-07-29 +%% +Type: language +Subtag: dol +Description: Doso +Added: 2009-07-29 +%% +Type: language +Subtag: don +Description: Toura (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: doo +Description: Dongo +Added: 2009-07-29 +%% +Type: language +Subtag: dop +Description: Lukpa +Added: 2009-07-29 +%% +Type: language +Subtag: doq +Description: Dominican Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: dor +Description: Dori'o +Added: 2009-07-29 +%% +Type: language +Subtag: dos +Description: Dogosé +Added: 2009-07-29 +%% +Type: language +Subtag: dot +Description: Dass +Added: 2009-07-29 +%% +Type: language +Subtag: dov +Description: Dombe +Added: 2009-07-29 +%% +Type: language +Subtag: dow +Description: Doyayo +Added: 2009-07-29 +%% +Type: language +Subtag: dox +Description: Bussa +Added: 2009-07-29 +%% +Type: language +Subtag: doy +Description: Dompo +Added: 2009-07-29 +%% +Type: language +Subtag: doz +Description: Dorze +Added: 2009-07-29 +%% +Type: language +Subtag: dpp +Description: Papar +Added: 2009-07-29 +%% +Type: language +Subtag: dra +Description: Dravidian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: drb +Description: Dair +Added: 2009-07-29 +%% +Type: language +Subtag: drc +Description: Minderico +Added: 2011-08-16 +%% +Type: language +Subtag: drd +Description: Darmiya +Added: 2009-07-29 +%% +Type: language +Subtag: dre +Description: Dolpo +Added: 2009-07-29 +%% +Type: language +Subtag: drg +Description: Rungus +Added: 2009-07-29 +%% +Type: language +Subtag: drh +Description: Darkhat +Added: 2009-07-29 +Deprecated: 2010-03-11 +Preferred-Value: khk +%% +Type: language +Subtag: dri +Description: C'Lela +Added: 2009-07-29 +%% +Type: language +Subtag: drl +Description: Paakantyi +Added: 2009-07-29 +%% +Type: language +Subtag: drn +Description: West Damar +Added: 2009-07-29 +%% +Type: language +Subtag: dro +Description: Daro-Matu Melanau +Added: 2009-07-29 +%% +Type: language +Subtag: drq +Description: Dura +Added: 2009-07-29 +%% +Type: language +Subtag: drr +Description: Dororo +Added: 2009-07-29 +%% +Type: language +Subtag: drs +Description: Gedeo +Added: 2009-07-29 +%% +Type: language +Subtag: drt +Description: Drents +Added: 2009-07-29 +%% +Type: language +Subtag: dru +Description: Rukai +Added: 2009-07-29 +%% +Type: language +Subtag: drw +Description: Darwazi +Added: 2009-07-29 +Deprecated: 2010-03-11 +Preferred-Value: prs +%% +Type: language +Subtag: dry +Description: Darai +Added: 2009-07-29 +%% +Type: language +Subtag: dsb +Description: Lower Sorbian +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: dse +Description: Dutch Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: dsh +Description: Daasanach +Added: 2009-07-29 +%% +Type: language +Subtag: dsi +Description: Disa +Added: 2009-07-29 +%% +Type: language +Subtag: dsl +Description: Danish Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: dsn +Description: Dusner +Added: 2009-07-29 +%% +Type: language +Subtag: dso +Description: Desiya +Added: 2009-07-29 +%% +Type: language +Subtag: dsq +Description: Tadaksahak +Added: 2009-07-29 +%% +Type: language +Subtag: dta +Description: Daur +Added: 2009-07-29 +%% +Type: language +Subtag: dtb +Description: Labuk-Kinabatangan Kadazan +Added: 2009-07-29 +%% +Type: language +Subtag: dtd +Description: Ditidaht +Added: 2011-08-16 +%% +Type: language +Subtag: dth +Description: Adithinngithigh +Added: 2012-08-12 +%% +Type: language +Subtag: dti +Description: Ana Tinga Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: dtk +Description: Tene Kan Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: dtm +Description: Tomo Kan Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: dtn +Description: Daatsʼíin +Added: 2016-05-30 +%% +Type: language +Subtag: dto +Description: Tommo So Dogon +Added: 2012-08-12 +%% +Type: language +Subtag: dtp +Description: Kadazan Dusun +Description: Central Dusun +Added: 2009-07-29 +%% +Type: language +Subtag: dtr +Description: Lotud +Added: 2009-07-29 +%% +Type: language +Subtag: dts +Description: Toro So Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: dtt +Description: Toro Tegu Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: dtu +Description: Tebul Ure Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: dty +Description: Dotyali +Added: 2012-08-12 +Macrolanguage: ne +%% +Type: language +Subtag: dua +Description: Duala +Added: 2005-10-16 +%% +Type: language +Subtag: dub +Description: Dubli +Added: 2009-07-29 +%% +Type: language +Subtag: duc +Description: Duna +Added: 2009-07-29 +%% +Type: language +Subtag: dud +Description: Hun-Saare +Added: 2009-07-29 +Deprecated: 2019-04-16 +Comments: see uth, uss +%% +Type: language +Subtag: due +Description: Umiray Dumaget Agta +Added: 2009-07-29 +%% +Type: language +Subtag: duf +Description: Dumbea +Description: Drubea +Added: 2009-07-29 +%% +Type: language +Subtag: dug +Description: Duruma +Description: Chiduruma +Added: 2009-07-29 +%% +Type: language +Subtag: duh +Description: Dungra Bhil +Added: 2009-07-29 +%% +Type: language +Subtag: dui +Description: Dumun +Added: 2009-07-29 +%% +Type: language +Subtag: duj +Description: Dhuwal +Added: 2009-07-29 +Deprecated: 2016-05-30 +Comments: see dwu, dwy +%% +Type: language +Subtag: duk +Description: Uyajitaya +Added: 2009-07-29 +%% +Type: language +Subtag: dul +Description: Alabat Island Agta +Added: 2009-07-29 +%% +Type: language +Subtag: dum +Description: Middle Dutch (ca. 1050-1350) +Added: 2005-10-16 +%% +Type: language +Subtag: dun +Description: Dusun Deyah +Added: 2009-07-29 +%% +Type: language +Subtag: duo +Description: Dupaninan Agta +Added: 2009-07-29 +%% +Type: language +Subtag: dup +Description: Duano +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: duq +Description: Dusun Malang +Added: 2009-07-29 +%% +Type: language +Subtag: dur +Description: Dii +Added: 2009-07-29 +%% +Type: language +Subtag: dus +Description: Dumi +Added: 2009-07-29 +%% +Type: language +Subtag: duu +Description: Drung +Added: 2009-07-29 +%% +Type: language +Subtag: duv +Description: Duvle +Added: 2009-07-29 +%% +Type: language +Subtag: duw +Description: Dusun Witu +Added: 2009-07-29 +%% +Type: language +Subtag: dux +Description: Duungooma +Added: 2009-07-29 +%% +Type: language +Subtag: duy +Description: Dicamay Agta +Added: 2009-07-29 +%% +Type: language +Subtag: duz +Description: Duli-Gey +Added: 2009-07-29 +%% +Type: language +Subtag: dva +Description: Duau +Added: 2009-07-29 +%% +Type: language +Subtag: dwa +Description: Diri +Added: 2009-07-29 +%% +Type: language +Subtag: dwl +Description: Walo Kumbe Dogon +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see dbt, dbw +%% +Type: language +Subtag: dwr +Description: Dawro +Added: 2009-07-29 +%% +Type: language +Subtag: dws +Description: Dutton World Speedwords +Added: 2009-07-29 +%% +Type: language +Subtag: dwu +Description: Dhuwal +Added: 2016-05-30 +%% +Type: language +Subtag: dww +Description: Dawawa +Added: 2009-07-29 +%% +Type: language +Subtag: dwy +Description: Dhuwaya +Added: 2016-05-30 +%% +Type: language +Subtag: dwz +Description: Dewas Rai +Added: 2018-10-28 +%% +Type: language +Subtag: dya +Description: Dyan +Added: 2009-07-29 +%% +Type: language +Subtag: dyb +Description: Dyaberdyaber +Added: 2009-07-29 +%% +Type: language +Subtag: dyd +Description: Dyugun +Added: 2009-07-29 +%% +Type: language +Subtag: dyg +Description: Villa Viciosa Agta +Added: 2009-07-29 +%% +Type: language +Subtag: dyi +Description: Djimini Senoufo +Added: 2009-07-29 +%% +Type: language +Subtag: dym +Description: Yanda Dom Dogon +Added: 2009-07-29 +%% +Type: language +Subtag: dyn +Description: Dyangadi +Description: Dhanggatti +Added: 2009-07-29 +%% +Type: language +Subtag: dyo +Description: Jola-Fonyi +Added: 2009-07-29 +%% +Type: language +Subtag: dyu +Description: Dyula +Added: 2005-10-16 +%% +Type: language +Subtag: dyy +Description: Djabugay +Description: Dyaabugay +Added: 2009-07-29 +%% +Type: language +Subtag: dza +Description: Tunzu +Added: 2009-07-29 +%% +Type: language +Subtag: dzd +Description: Daza +Added: 2009-07-29 +Deprecated: 2015-02-12 +%% +Type: language +Subtag: dze +Description: Djiwarli +Added: 2013-09-10 +%% +Type: language +Subtag: dzg +Description: Dazaga +Added: 2009-07-29 +%% +Type: language +Subtag: dzl +Description: Dzalakha +Added: 2009-07-29 +%% +Type: language +Subtag: dzn +Description: Dzando +Added: 2009-07-29 +%% +Type: language +Subtag: eaa +Description: Karenggapa +Added: 2013-09-10 +%% +Type: language +Subtag: ebg +Description: Ebughu +Added: 2009-07-29 +%% +Type: language +Subtag: ebk +Description: Eastern Bontok +Added: 2010-03-11 +Macrolanguage: bnc +%% +Type: language +Subtag: ebo +Description: Teke-Ebo +Added: 2009-07-29 +%% +Type: language +Subtag: ebr +Description: Ebrié +Added: 2009-07-29 +%% +Type: language +Subtag: ebu +Description: Embu +Description: Kiembu +Added: 2009-07-29 +%% +Type: language +Subtag: ecr +Description: Eteocretan +Added: 2009-07-29 +%% +Type: language +Subtag: ecs +Description: Ecuadorian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: ecy +Description: Eteocypriot +Added: 2009-07-29 +%% +Type: language +Subtag: eee +Description: E +Added: 2009-07-29 +%% +Type: language +Subtag: efa +Description: Efai +Added: 2009-07-29 +%% +Type: language +Subtag: efe +Description: Efe +Added: 2009-07-29 +%% +Type: language +Subtag: efi +Description: Efik +Added: 2005-10-16 +%% +Type: language +Subtag: ega +Description: Ega +Added: 2009-07-29 +%% +Type: language +Subtag: egl +Description: Emilian +Added: 2009-07-29 +%% +Type: language +Subtag: ego +Description: Eggon +Added: 2009-07-29 +%% +Type: language +Subtag: egx +Description: Egyptian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: egy +Description: Egyptian (Ancient) +Added: 2005-10-16 +%% +Type: language +Subtag: ehu +Description: Ehueun +Added: 2009-07-29 +%% +Type: language +Subtag: eip +Description: Eipomek +Added: 2009-07-29 +%% +Type: language +Subtag: eit +Description: Eitiep +Added: 2009-07-29 +%% +Type: language +Subtag: eiv +Description: Askopan +Added: 2009-07-29 +%% +Type: language +Subtag: eja +Description: Ejamat +Added: 2009-07-29 +%% +Type: language +Subtag: eka +Description: Ekajuk +Added: 2005-10-16 +%% +Type: language +Subtag: ekc +Description: Eastern Karnic +Added: 2013-09-10 +%% +Type: language +Subtag: eke +Description: Ekit +Added: 2009-07-29 +%% +Type: language +Subtag: ekg +Description: Ekari +Added: 2009-07-29 +%% +Type: language +Subtag: eki +Description: Eki +Added: 2009-07-29 +%% +Type: language +Subtag: ekk +Description: Standard Estonian +Added: 2009-07-29 +Macrolanguage: et +%% +Type: language +Subtag: ekl +Description: Kol (Bangladesh) +Description: Kol +Added: 2009-07-29 +%% +Type: language +Subtag: ekm +Description: Elip +Added: 2009-07-29 +%% +Type: language +Subtag: eko +Description: Koti +Added: 2009-07-29 +%% +Type: language +Subtag: ekp +Description: Ekpeye +Added: 2009-07-29 +%% +Type: language +Subtag: ekr +Description: Yace +Added: 2009-07-29 +%% +Type: language +Subtag: eky +Description: Eastern Kayah +Added: 2009-07-29 +%% +Type: language +Subtag: ele +Description: Elepi +Added: 2009-07-29 +%% +Type: language +Subtag: elh +Description: El Hugeirat +Added: 2009-07-29 +%% +Type: language +Subtag: eli +Description: Nding +Added: 2009-07-29 +%% +Type: language +Subtag: elk +Description: Elkei +Added: 2009-07-29 +%% +Type: language +Subtag: elm +Description: Eleme +Added: 2009-07-29 +%% +Type: language +Subtag: elo +Description: El Molo +Added: 2009-07-29 +%% +Type: language +Subtag: elp +Description: Elpaputih +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see amq, plh +%% +Type: language +Subtag: elu +Description: Elu +Added: 2009-07-29 +%% +Type: language +Subtag: elx +Description: Elamite +Added: 2005-10-16 +%% +Type: language +Subtag: ema +Description: Emai-Iuleha-Ora +Added: 2009-07-29 +%% +Type: language +Subtag: emb +Description: Embaloh +Added: 2009-07-29 +%% +Type: language +Subtag: eme +Description: Emerillon +Added: 2009-07-29 +%% +Type: language +Subtag: emg +Description: Eastern Meohang +Added: 2009-07-29 +%% +Type: language +Subtag: emi +Description: Mussau-Emira +Added: 2009-07-29 +%% +Type: language +Subtag: emk +Description: Eastern Maninkakan +Added: 2009-07-29 +Macrolanguage: man +%% +Type: language +Subtag: emm +Description: Mamulique +Added: 2009-07-29 +%% +Type: language +Subtag: emn +Description: Eman +Added: 2009-07-29 +%% +Type: language +Subtag: emo +Description: Emok +Added: 2009-07-29 +Deprecated: 2014-02-28 +%% +Type: language +Subtag: emp +Description: Northern Emberá +Added: 2009-07-29 +%% +Type: language +Subtag: ems +Description: Pacific Gulf Yupik +Added: 2009-07-29 +%% +Type: language +Subtag: emu +Description: Eastern Muria +Added: 2009-07-29 +%% +Type: language +Subtag: emw +Description: Emplawas +Added: 2009-07-29 +%% +Type: language +Subtag: emx +Description: Erromintxela +Added: 2010-03-11 +%% +Type: language +Subtag: emy +Description: Epigraphic Mayan +Added: 2009-07-29 +%% +Type: language +Subtag: ena +Description: Apali +Added: 2009-07-29 +%% +Type: language +Subtag: enb +Description: Markweeta +Added: 2009-07-29 +Macrolanguage: kln +%% +Type: language +Subtag: enc +Description: En +Added: 2009-07-29 +%% +Type: language +Subtag: end +Description: Ende +Added: 2009-07-29 +%% +Type: language +Subtag: enf +Description: Forest Enets +Added: 2009-07-29 +%% +Type: language +Subtag: enh +Description: Tundra Enets +Added: 2009-07-29 +%% +Type: language +Subtag: enl +Description: Enlhet +Added: 2014-02-28 +%% +Type: language +Subtag: enm +Description: Middle English (1100-1500) +Added: 2005-10-16 +%% +Type: language +Subtag: enn +Description: Engenni +Added: 2009-07-29 +%% +Type: language +Subtag: eno +Description: Enggano +Added: 2009-07-29 +%% +Type: language +Subtag: enq +Description: Enga +Added: 2009-07-29 +%% +Type: language +Subtag: enr +Description: Emumu +Description: Emem +Added: 2009-07-29 +%% +Type: language +Subtag: enu +Description: Enu +Added: 2009-07-29 +%% +Type: language +Subtag: env +Description: Enwan (Edu State) +Added: 2009-07-29 +%% +Type: language +Subtag: enw +Description: Enwan (Akwa Ibom State) +Added: 2009-07-29 +%% +Type: language +Subtag: enx +Description: Enxet +Added: 2014-02-28 +%% +Type: language +Subtag: eot +Description: Beti (Côte d'Ivoire) +Added: 2009-07-29 +%% +Type: language +Subtag: epi +Description: Epie +Added: 2009-07-29 +%% +Type: language +Subtag: era +Description: Eravallan +Added: 2009-07-29 +%% +Type: language +Subtag: erg +Description: Sie +Added: 2009-07-29 +%% +Type: language +Subtag: erh +Description: Eruwa +Added: 2009-07-29 +%% +Type: language +Subtag: eri +Description: Ogea +Added: 2009-07-29 +%% +Type: language +Subtag: erk +Description: South Efate +Added: 2009-07-29 +%% +Type: language +Subtag: ero +Description: Horpa +Added: 2009-07-29 +%% +Type: language +Subtag: err +Description: Erre +Added: 2009-07-29 +%% +Type: language +Subtag: ers +Description: Ersu +Added: 2009-07-29 +%% +Type: language +Subtag: ert +Description: Eritai +Added: 2009-07-29 +%% +Type: language +Subtag: erw +Description: Erokwanas +Added: 2009-07-29 +%% +Type: language +Subtag: ese +Description: Ese Ejja +Added: 2009-07-29 +%% +Type: language +Subtag: esg +Description: Aheri Gondi +Added: 2016-05-30 +Macrolanguage: gon +%% +Type: language +Subtag: esh +Description: Eshtehardi +Added: 2009-07-29 +%% +Type: language +Subtag: esi +Description: North Alaskan Inupiatun +Added: 2009-07-29 +Macrolanguage: ik +%% +Type: language +Subtag: esk +Description: Northwest Alaska Inupiatun +Added: 2009-07-29 +Macrolanguage: ik +%% +Type: language +Subtag: esl +Description: Egypt Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: esm +Description: Esuma +Added: 2009-07-29 +%% +Type: language +Subtag: esn +Description: Salvadoran Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: eso +Description: Estonian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: esq +Description: Esselen +Added: 2009-07-29 +%% +Type: language +Subtag: ess +Description: Central Siberian Yupik +Added: 2009-07-29 +%% +Type: language +Subtag: esu +Description: Central Yupik +Added: 2009-07-29 +%% +Type: language +Subtag: esx +Description: Eskimo-Aleut languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: esy +Description: Eskayan +Added: 2014-04-06 +%% +Type: language +Subtag: etb +Description: Etebi +Added: 2009-07-29 +%% +Type: language +Subtag: etc +Description: Etchemin +Added: 2009-07-29 +%% +Type: language +Subtag: eth +Description: Ethiopian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: etn +Description: Eton (Vanuatu) +Added: 2009-07-29 +%% +Type: language +Subtag: eto +Description: Eton (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: etr +Description: Edolo +Added: 2009-07-29 +%% +Type: language +Subtag: ets +Description: Yekhee +Added: 2009-07-29 +%% +Type: language +Subtag: ett +Description: Etruscan +Added: 2009-07-29 +%% +Type: language +Subtag: etu +Description: Ejagham +Added: 2009-07-29 +%% +Type: language +Subtag: etx +Description: Eten +Added: 2009-07-29 +%% +Type: language +Subtag: etz +Description: Semimi +Added: 2009-07-29 +%% +Type: language +Subtag: euq +Description: Basque (family) +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: eve +Description: Even +Added: 2009-07-29 +%% +Type: language +Subtag: evh +Description: Uvbie +Added: 2009-07-29 +%% +Type: language +Subtag: evn +Description: Evenki +Added: 2009-07-29 +%% +Type: language +Subtag: ewo +Description: Ewondo +Added: 2005-10-16 +%% +Type: language +Subtag: ext +Description: Extremaduran +Added: 2009-07-29 +%% +Type: language +Subtag: eya +Description: Eyak +Added: 2009-07-29 +%% +Type: language +Subtag: eyo +Description: Keiyo +Added: 2009-07-29 +Macrolanguage: kln +%% +Type: language +Subtag: eza +Description: Ezaa +Added: 2013-09-10 +%% +Type: language +Subtag: eze +Description: Uzekwe +Added: 2009-07-29 +%% +Type: language +Subtag: faa +Description: Fasu +Added: 2009-07-29 +%% +Type: language +Subtag: fab +Description: Fa d'Ambu +Added: 2009-07-29 +%% +Type: language +Subtag: fad +Description: Wagi +Added: 2009-07-29 +%% +Type: language +Subtag: faf +Description: Fagani +Added: 2009-07-29 +%% +Type: language +Subtag: fag +Description: Finongan +Added: 2009-07-29 +%% +Type: language +Subtag: fah +Description: Baissa Fali +Added: 2009-07-29 +%% +Type: language +Subtag: fai +Description: Faiwol +Added: 2009-07-29 +%% +Type: language +Subtag: faj +Description: Faita +Added: 2009-07-29 +%% +Type: language +Subtag: fak +Description: Fang (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: fal +Description: South Fali +Added: 2009-07-29 +%% +Type: language +Subtag: fam +Description: Fam +Added: 2009-07-29 +%% +Type: language +Subtag: fan +Description: Fang (Equatorial Guinea) +Added: 2005-10-16 +%% +Type: language +Subtag: fap +Description: Paloor +Added: 2009-07-29 +%% +Type: language +Subtag: far +Description: Fataleka +Added: 2009-07-29 +%% +Type: language +Subtag: fat +Description: Fanti +Added: 2005-10-16 +Macrolanguage: ak +%% +Type: language +Subtag: fau +Description: Fayu +Added: 2009-07-29 +%% +Type: language +Subtag: fax +Description: Fala +Added: 2009-07-29 +%% +Type: language +Subtag: fay +Description: Southwestern Fars +Added: 2009-07-29 +%% +Type: language +Subtag: faz +Description: Northwestern Fars +Added: 2009-07-29 +%% +Type: language +Subtag: fbl +Description: West Albay Bikol +Added: 2010-03-11 +Macrolanguage: bik +%% +Type: language +Subtag: fcs +Description: Quebec Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: fer +Description: Feroge +Added: 2009-07-29 +%% +Type: language +Subtag: ffi +Description: Foia Foia +Added: 2009-07-29 +%% +Type: language +Subtag: ffm +Description: Maasina Fulfulde +Added: 2009-07-29 +Macrolanguage: ff +%% +Type: language +Subtag: fgr +Description: Fongoro +Added: 2009-07-29 +%% +Type: language +Subtag: fia +Description: Nobiin +Added: 2009-07-29 +%% +Type: language +Subtag: fie +Description: Fyer +Added: 2009-07-29 +%% +Type: language +Subtag: fil +Description: Filipino +Description: Pilipino +Added: 2005-10-16 +%% +Type: language +Subtag: fip +Description: Fipa +Added: 2009-07-29 +%% +Type: language +Subtag: fir +Description: Firan +Added: 2009-07-29 +%% +Type: language +Subtag: fit +Description: Tornedalen Finnish +Added: 2009-07-29 +%% +Type: language +Subtag: fiu +Description: Finno-Ugrian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: fiw +Description: Fiwaga +Added: 2009-07-29 +%% +Type: language +Subtag: fkk +Description: Kirya-Konzəl +Added: 2012-08-12 +%% +Type: language +Subtag: fkv +Description: Kven Finnish +Added: 2009-07-29 +%% +Type: language +Subtag: fla +Description: Kalispel-Pend d'Oreille +Added: 2009-07-29 +%% +Type: language +Subtag: flh +Description: Foau +Added: 2009-07-29 +%% +Type: language +Subtag: fli +Description: Fali +Added: 2009-07-29 +%% +Type: language +Subtag: fll +Description: North Fali +Added: 2009-07-29 +%% +Type: language +Subtag: fln +Description: Flinders Island +Added: 2009-07-29 +%% +Type: language +Subtag: flr +Description: Fuliiru +Added: 2009-07-29 +%% +Type: language +Subtag: fly +Description: Flaaitaal +Description: Tsotsitaal +Added: 2009-07-29 +%% +Type: language +Subtag: fmp +Description: Fe'fe' +Added: 2009-07-29 +%% +Type: language +Subtag: fmu +Description: Far Western Muria +Added: 2009-07-29 +%% +Type: language +Subtag: fnb +Description: Fanbak +Added: 2016-05-30 +%% +Type: language +Subtag: fng +Description: Fanagalo +Added: 2009-07-29 +%% +Type: language +Subtag: fni +Description: Fania +Added: 2009-07-29 +%% +Type: language +Subtag: fod +Description: Foodo +Added: 2009-07-29 +%% +Type: language +Subtag: foi +Description: Foi +Added: 2009-07-29 +%% +Type: language +Subtag: fom +Description: Foma +Added: 2009-07-29 +%% +Type: language +Subtag: fon +Description: Fon +Added: 2005-10-16 +%% +Type: language +Subtag: for +Description: Fore +Added: 2009-07-29 +%% +Type: language +Subtag: fos +Description: Siraya +Added: 2009-07-29 +%% +Type: language +Subtag: fox +Description: Formosan languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: fpe +Description: Fernando Po Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: fqs +Description: Fas +Added: 2009-07-29 +%% +Type: language +Subtag: frc +Description: Cajun French +Added: 2009-07-29 +%% +Type: language +Subtag: frd +Description: Fordata +Added: 2009-07-29 +%% +Type: language +Subtag: frk +Description: Frankish +Added: 2009-07-29 +%% +Type: language +Subtag: frm +Description: Middle French (ca. 1400-1600) +Added: 2005-10-16 +%% +Type: language +Subtag: fro +Description: Old French (842-ca. 1400) +Added: 2005-10-16 +%% +Type: language +Subtag: frp +Description: Arpitan +Description: Francoprovençal +Added: 2009-07-29 +%% +Type: language +Subtag: frq +Description: Forak +Added: 2009-07-29 +%% +Type: language +Subtag: frr +Description: Northern Frisian +Added: 2006-03-08 +Suppress-Script: Latn +%% +Type: language +Subtag: frs +Description: Eastern Frisian +Added: 2006-03-08 +Suppress-Script: Latn +%% +Type: language +Subtag: frt +Description: Fortsenal +Added: 2009-07-29 +%% +Type: language +Subtag: fse +Description: Finnish Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: fsl +Description: French Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: fss +Description: Finland-Swedish Sign Language +Description: finlandssvenskt teckenspråk +Description: suomenruotsalainen viittomakieli +Added: 2009-07-29 +%% +Type: language +Subtag: fub +Description: Adamawa Fulfulde +Added: 2009-07-29 +Macrolanguage: ff +%% +Type: language +Subtag: fuc +Description: Pulaar +Added: 2009-07-29 +Macrolanguage: ff +%% +Type: language +Subtag: fud +Description: East Futuna +Added: 2009-07-29 +%% +Type: language +Subtag: fue +Description: Borgu Fulfulde +Added: 2009-07-29 +Macrolanguage: ff +%% +Type: language +Subtag: fuf +Description: Pular +Added: 2009-07-29 +Macrolanguage: ff +%% +Type: language +Subtag: fuh +Description: Western Niger Fulfulde +Added: 2009-07-29 +Macrolanguage: ff +%% +Type: language +Subtag: fui +Description: Bagirmi Fulfulde +Added: 2009-07-29 +Macrolanguage: ff +%% +Type: language +Subtag: fuj +Description: Ko +Added: 2009-07-29 +%% +Type: language +Subtag: fum +Description: Fum +Added: 2009-07-29 +%% +Type: language +Subtag: fun +Description: Fulniô +Added: 2009-07-29 +%% +Type: language +Subtag: fuq +Description: Central-Eastern Niger Fulfulde +Added: 2009-07-29 +Macrolanguage: ff +%% +Type: language +Subtag: fur +Description: Friulian +Added: 2005-10-16 +%% +Type: language +Subtag: fut +Description: Futuna-Aniwa +Added: 2009-07-29 +%% +Type: language +Subtag: fuu +Description: Furu +Added: 2009-07-29 +%% +Type: language +Subtag: fuv +Description: Nigerian Fulfulde +Added: 2009-07-29 +Macrolanguage: ff +%% +Type: language +Subtag: fuy +Description: Fuyug +Added: 2009-07-29 +%% +Type: language +Subtag: fvr +Description: Fur +Added: 2009-07-29 +%% +Type: language +Subtag: fwa +Description: Fwâi +Added: 2009-07-29 +%% +Type: language +Subtag: fwe +Description: Fwe +Added: 2009-07-29 +%% +Type: language +Subtag: gaa +Description: Ga +Added: 2005-10-16 +%% +Type: language +Subtag: gab +Description: Gabri +Added: 2009-07-29 +%% +Type: language +Subtag: gac +Description: Mixed Great Andamanese +Added: 2010-03-11 +%% +Type: language +Subtag: gad +Description: Gaddang +Added: 2009-07-29 +%% +Type: language +Subtag: gae +Description: Guarequena +Added: 2009-07-29 +%% +Type: language +Subtag: gaf +Description: Gende +Added: 2009-07-29 +%% +Type: language +Subtag: gag +Description: Gagauz +Added: 2009-07-29 +%% +Type: language +Subtag: gah +Description: Alekano +Added: 2009-07-29 +%% +Type: language +Subtag: gai +Description: Borei +Added: 2009-07-29 +%% +Type: language +Subtag: gaj +Description: Gadsup +Added: 2009-07-29 +%% +Type: language +Subtag: gak +Description: Gamkonora +Added: 2009-07-29 +%% +Type: language +Subtag: gal +Description: Galolen +Added: 2009-07-29 +%% +Type: language +Subtag: gam +Description: Kandawo +Added: 2009-07-29 +%% +Type: language +Subtag: gan +Description: Gan Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: gao +Description: Gants +Added: 2009-07-29 +%% +Type: language +Subtag: gap +Description: Gal +Added: 2009-07-29 +%% +Type: language +Subtag: gaq +Description: Gata' +Added: 2009-07-29 +%% +Type: language +Subtag: gar +Description: Galeya +Added: 2009-07-29 +%% +Type: language +Subtag: gas +Description: Adiwasi Garasia +Added: 2009-07-29 +%% +Type: language +Subtag: gat +Description: Kenati +Added: 2009-07-29 +%% +Type: language +Subtag: gau +Description: Mudhili Gadaba +Added: 2009-07-29 +%% +Type: language +Subtag: gav +Description: Gabutamon +Added: 2009-07-29 +Deprecated: 2010-03-11 +Preferred-Value: dev +%% +Type: language +Subtag: gaw +Description: Nobonob +Added: 2009-07-29 +%% +Type: language +Subtag: gax +Description: Borana-Arsi-Guji Oromo +Added: 2009-07-29 +Macrolanguage: om +%% +Type: language +Subtag: gay +Description: Gayo +Added: 2005-10-16 +%% +Type: language +Subtag: gaz +Description: West Central Oromo +Added: 2009-07-29 +Macrolanguage: om +%% +Type: language +Subtag: gba +Description: Gbaya (Central African Republic) +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: gbb +Description: Kaytetye +Added: 2009-07-29 +%% +Type: language +Subtag: gbc +Description: Garawa +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see wny, wrk +%% +Type: language +Subtag: gbd +Description: Karajarri +Added: 2009-07-29 +%% +Type: language +Subtag: gbe +Description: Niksek +Added: 2009-07-29 +%% +Type: language +Subtag: gbf +Description: Gaikundi +Added: 2009-07-29 +%% +Type: language +Subtag: gbg +Description: Gbanziri +Added: 2009-07-29 +%% +Type: language +Subtag: gbh +Description: Defi Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: gbi +Description: Galela +Added: 2009-07-29 +%% +Type: language +Subtag: gbj +Description: Bodo Gadaba +Added: 2009-07-29 +%% +Type: language +Subtag: gbk +Description: Gaddi +Added: 2009-07-29 +%% +Type: language +Subtag: gbl +Description: Gamit +Added: 2009-07-29 +%% +Type: language +Subtag: gbm +Description: Garhwali +Added: 2009-07-29 +%% +Type: language +Subtag: gbn +Description: Mo'da +Added: 2009-07-29 +%% +Type: language +Subtag: gbo +Description: Northern Grebo +Added: 2009-07-29 +Macrolanguage: grb +%% +Type: language +Subtag: gbp +Description: Gbaya-Bossangoa +Added: 2009-07-29 +Macrolanguage: gba +%% +Type: language +Subtag: gbq +Description: Gbaya-Bozoum +Added: 2009-07-29 +Macrolanguage: gba +%% +Type: language +Subtag: gbr +Description: Gbagyi +Added: 2009-07-29 +%% +Type: language +Subtag: gbs +Description: Gbesi Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: gbu +Description: Gagadu +Added: 2009-07-29 +%% +Type: language +Subtag: gbv +Description: Gbanu +Added: 2009-07-29 +%% +Type: language +Subtag: gbw +Description: Gabi-Gabi +Added: 2013-09-10 +%% +Type: language +Subtag: gbx +Description: Eastern Xwla Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: gby +Description: Gbari +Added: 2009-07-29 +%% +Type: language +Subtag: gbz +Description: Zoroastrian Dari +Added: 2009-07-29 +%% +Type: language +Subtag: gcc +Description: Mali +Added: 2009-07-29 +%% +Type: language +Subtag: gcd +Description: Ganggalida +Added: 2009-07-29 +%% +Type: language +Subtag: gce +Description: Galice +Added: 2009-07-29 +%% +Type: language +Subtag: gcf +Description: Guadeloupean Creole French +Added: 2009-07-29 +%% +Type: language +Subtag: gcl +Description: Grenadian Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: gcn +Description: Gaina +Added: 2009-07-29 +%% +Type: language +Subtag: gcr +Description: Guianese Creole French +Added: 2009-07-29 +%% +Type: language +Subtag: gct +Description: Colonia Tovar German +Added: 2009-07-29 +%% +Type: language +Subtag: gda +Description: Gade Lohar +Added: 2009-07-29 +Macrolanguage: raj +%% +Type: language +Subtag: gdb +Description: Pottangi Ollar Gadaba +Added: 2009-07-29 +%% +Type: language +Subtag: gdc +Description: Gugu Badhun +Added: 2009-07-29 +%% +Type: language +Subtag: gdd +Description: Gedaged +Added: 2009-07-29 +%% +Type: language +Subtag: gde +Description: Gude +Added: 2009-07-29 +%% +Type: language +Subtag: gdf +Description: Guduf-Gava +Added: 2009-07-29 +%% +Type: language +Subtag: gdg +Description: Ga'dang +Added: 2009-07-29 +%% +Type: language +Subtag: gdh +Description: Gadjerawang +Added: 2009-07-29 +%% +Type: language +Subtag: gdi +Description: Gundi +Added: 2009-07-29 +%% +Type: language +Subtag: gdj +Description: Gurdjar +Added: 2009-07-29 +%% +Type: language +Subtag: gdk +Description: Gadang +Added: 2009-07-29 +%% +Type: language +Subtag: gdl +Description: Dirasha +Added: 2009-07-29 +%% +Type: language +Subtag: gdm +Description: Laal +Added: 2009-07-29 +%% +Type: language +Subtag: gdn +Description: Umanakaina +Added: 2009-07-29 +%% +Type: language +Subtag: gdo +Description: Ghodoberi +Added: 2009-07-29 +%% +Type: language +Subtag: gdq +Description: Mehri +Added: 2009-07-29 +%% +Type: language +Subtag: gdr +Description: Wipi +Added: 2009-07-29 +%% +Type: language +Subtag: gds +Description: Ghandruk Sign Language +Added: 2012-08-12 +%% +Type: language +Subtag: gdt +Description: Kungardutyi +Added: 2013-09-10 +%% +Type: language +Subtag: gdu +Description: Gudu +Added: 2009-07-29 +%% +Type: language +Subtag: gdx +Description: Godwari +Added: 2009-07-29 +%% +Type: language +Subtag: gea +Description: Geruma +Added: 2009-07-29 +%% +Type: language +Subtag: geb +Description: Kire +Added: 2009-07-29 +%% +Type: language +Subtag: gec +Description: Gboloo Grebo +Added: 2009-07-29 +Macrolanguage: grb +%% +Type: language +Subtag: ged +Description: Gade +Added: 2009-07-29 +%% +Type: language +Subtag: geg +Description: Gengle +Added: 2009-07-29 +%% +Type: language +Subtag: geh +Description: Hutterite German +Description: Hutterisch +Added: 2009-07-29 +%% +Type: language +Subtag: gei +Description: Gebe +Added: 2009-07-29 +%% +Type: language +Subtag: gej +Description: Gen +Added: 2009-07-29 +%% +Type: language +Subtag: gek +Description: Ywom +Added: 2009-07-29 +%% +Type: language +Subtag: gel +Description: ut-Ma'in +Added: 2009-07-29 +%% +Type: language +Subtag: gem +Description: Germanic languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: geq +Description: Geme +Added: 2009-07-29 +%% +Type: language +Subtag: ges +Description: Geser-Gorom +Added: 2009-07-29 +%% +Type: language +Subtag: gev +Description: Eviya +Added: 2014-02-28 +%% +Type: language +Subtag: gew +Description: Gera +Added: 2009-07-29 +%% +Type: language +Subtag: gex +Description: Garre +Added: 2009-07-29 +%% +Type: language +Subtag: gey +Description: Enya +Added: 2009-07-29 +%% +Type: language +Subtag: gez +Description: Geez +Added: 2005-10-16 +%% +Type: language +Subtag: gfk +Description: Patpatar +Added: 2009-07-29 +%% +Type: language +Subtag: gft +Description: Gafat +Added: 2009-07-29 +%% +Type: language +Subtag: gfx +Description: Mangetti Dune ǃXung +Added: 2012-08-12 +Deprecated: 2015-02-12 +Preferred-Value: vaj +%% +Type: language +Subtag: gga +Description: Gao +Added: 2009-07-29 +%% +Type: language +Subtag: ggb +Description: Gbii +Added: 2009-07-29 +%% +Type: language +Subtag: ggd +Description: Gugadj +Added: 2009-07-29 +%% +Type: language +Subtag: gge +Description: Gurr-goni +Added: 2009-07-29 +%% +Type: language +Subtag: ggg +Description: Gurgula +Added: 2009-07-29 +%% +Type: language +Subtag: ggk +Description: Kungarakany +Added: 2009-07-29 +%% +Type: language +Subtag: ggl +Description: Ganglau +Added: 2009-07-29 +%% +Type: language +Subtag: ggn +Description: Eastern Gurung +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: gvr +%% +Type: language +Subtag: ggo +Description: Southern Gondi +Added: 2009-07-29 +Deprecated: 2016-05-30 +Comments: see esg, wsg +%% +Type: language +Subtag: ggr +Description: Aghu Tharnggalu +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see gtu, ikr +%% +Type: language +Subtag: ggt +Description: Gitua +Added: 2009-07-29 +%% +Type: language +Subtag: ggu +Description: Gagu +Description: Gban +Added: 2009-07-29 +%% +Type: language +Subtag: ggw +Description: Gogodala +Added: 2009-07-29 +%% +Type: language +Subtag: gha +Description: Ghadamès +Added: 2009-07-29 +%% +Type: language +Subtag: ghc +Description: Hiberno-Scottish Gaelic +Added: 2009-07-29 +%% +Type: language +Subtag: ghe +Description: Southern Ghale +Added: 2009-07-29 +%% +Type: language +Subtag: ghh +Description: Northern Ghale +Added: 2009-07-29 +%% +Type: language +Subtag: ghk +Description: Geko Karen +Added: 2009-07-29 +%% +Type: language +Subtag: ghl +Description: Ghulfan +Added: 2009-07-29 +%% +Type: language +Subtag: ghn +Description: Ghanongga +Added: 2009-07-29 +%% +Type: language +Subtag: gho +Description: Ghomara +Added: 2009-07-29 +%% +Type: language +Subtag: ghr +Description: Ghera +Added: 2009-07-29 +%% +Type: language +Subtag: ghs +Description: Guhu-Samane +Added: 2009-07-29 +%% +Type: language +Subtag: ght +Description: Kuke +Description: Kutang Ghale +Added: 2009-07-29 +%% +Type: language +Subtag: gia +Description: Kija +Added: 2009-07-29 +%% +Type: language +Subtag: gib +Description: Gibanawa +Added: 2009-07-29 +%% +Type: language +Subtag: gic +Description: Gail +Added: 2009-07-29 +%% +Type: language +Subtag: gid +Description: Gidar +Added: 2009-07-29 +%% +Type: language +Subtag: gie +Description: Gaɓogbo +Description: Guébie +Added: 2017-02-23 +%% +Type: language +Subtag: gig +Description: Goaria +Added: 2009-07-29 +%% +Type: language +Subtag: gih +Description: Githabul +Added: 2013-09-10 +%% +Type: language +Subtag: gil +Description: Gilbertese +Added: 2005-10-16 +%% +Type: language +Subtag: gim +Description: Gimi (Eastern Highlands) +Added: 2009-07-29 +%% +Type: language +Subtag: gin +Description: Hinukh +Added: 2009-07-29 +%% +Type: language +Subtag: gio +Description: Gelao +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see aou, gqu +%% +Type: language +Subtag: gip +Description: Gimi (West New Britain) +Added: 2009-07-29 +%% +Type: language +Subtag: giq +Description: Green Gelao +Added: 2009-07-29 +%% +Type: language +Subtag: gir +Description: Red Gelao +Added: 2009-07-29 +%% +Type: language +Subtag: gis +Description: North Giziga +Added: 2009-07-29 +%% +Type: language +Subtag: git +Description: Gitxsan +Added: 2009-07-29 +%% +Type: language +Subtag: giu +Description: Mulao +Added: 2012-08-12 +%% +Type: language +Subtag: giw +Description: White Gelao +Added: 2009-07-29 +%% +Type: language +Subtag: gix +Description: Gilima +Added: 2009-07-29 +%% +Type: language +Subtag: giy +Description: Giyug +Added: 2009-07-29 +%% +Type: language +Subtag: giz +Description: South Giziga +Added: 2009-07-29 +%% +Type: language +Subtag: gji +Description: Geji +Added: 2009-07-29 +%% +Type: language +Subtag: gjk +Description: Kachi Koli +Added: 2009-07-29 +%% +Type: language +Subtag: gjm +Description: Gunditjmara +Added: 2013-09-10 +%% +Type: language +Subtag: gjn +Description: Gonja +Added: 2009-07-29 +%% +Type: language +Subtag: gjr +Description: Gurindji Kriol +Added: 2016-05-30 +%% +Type: language +Subtag: gju +Description: Gujari +Added: 2009-07-29 +Macrolanguage: raj +%% +Type: language +Subtag: gka +Description: Guya +Added: 2009-07-29 +%% +Type: language +Subtag: gkd +Description: Magɨ (Madang Province) +Added: 2018-03-08 +%% +Type: language +Subtag: gke +Description: Ndai +Added: 2009-07-29 +%% +Type: language +Subtag: gkn +Description: Gokana +Added: 2009-07-29 +%% +Type: language +Subtag: gko +Description: Kok-Nar +Added: 2012-08-12 +%% +Type: language +Subtag: gkp +Description: Guinea Kpelle +Added: 2009-07-29 +Macrolanguage: kpe +%% +Type: language +Subtag: gku +Description: ǂUngkue +Added: 2015-02-12 +%% +Type: language +Subtag: glc +Description: Bon Gula +Added: 2009-07-29 +%% +Type: language +Subtag: gld +Description: Nanai +Added: 2009-07-29 +%% +Type: language +Subtag: glh +Description: Northwest Pashai +Description: Northwest Pashayi +Added: 2009-07-29 +%% +Type: language +Subtag: gli +Description: Guliguli +Added: 2009-07-29 +%% +Type: language +Subtag: glj +Description: Gula Iro +Added: 2009-07-29 +%% +Type: language +Subtag: glk +Description: Gilaki +Added: 2009-07-29 +%% +Type: language +Subtag: gll +Description: Garlali +Added: 2013-09-10 +%% +Type: language +Subtag: glo +Description: Galambu +Added: 2009-07-29 +%% +Type: language +Subtag: glr +Description: Glaro-Twabo +Added: 2009-07-29 +%% +Type: language +Subtag: glu +Description: Gula (Chad) +Added: 2009-07-29 +%% +Type: language +Subtag: glw +Description: Glavda +Added: 2009-07-29 +%% +Type: language +Subtag: gly +Description: Gule +Added: 2009-07-29 +%% +Type: language +Subtag: gma +Description: Gambera +Added: 2009-07-29 +%% +Type: language +Subtag: gmb +Description: Gula'alaa +Added: 2009-07-29 +%% +Type: language +Subtag: gmd +Description: Mághdì +Added: 2009-07-29 +%% +Type: language +Subtag: gme +Description: East Germanic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: gmg +Description: Magɨyi +Added: 2014-02-28 +%% +Type: language +Subtag: gmh +Description: Middle High German (ca. 1050-1500) +Added: 2005-10-16 +%% +Type: language +Subtag: gml +Description: Middle Low German +Added: 2009-07-29 +%% +Type: language +Subtag: gmm +Description: Gbaya-Mbodomo +Added: 2009-07-29 +Macrolanguage: gba +%% +Type: language +Subtag: gmn +Description: Gimnime +Added: 2009-07-29 +%% +Type: language +Subtag: gmq +Description: North Germanic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: gmu +Description: Gumalu +Added: 2009-07-29 +%% +Type: language +Subtag: gmv +Description: Gamo +Added: 2009-07-29 +%% +Type: language +Subtag: gmw +Description: West Germanic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: gmx +Description: Magoma +Added: 2009-07-29 +%% +Type: language +Subtag: gmy +Description: Mycenaean Greek +Added: 2009-07-29 +%% +Type: language +Subtag: gmz +Description: Mgbolizhia +Added: 2013-09-10 +%% +Type: language +Subtag: gna +Description: Kaansa +Added: 2009-07-29 +%% +Type: language +Subtag: gnb +Description: Gangte +Added: 2009-07-29 +%% +Type: language +Subtag: gnc +Description: Guanche +Added: 2009-07-29 +%% +Type: language +Subtag: gnd +Description: Zulgo-Gemzek +Added: 2009-07-29 +%% +Type: language +Subtag: gne +Description: Ganang +Added: 2009-07-29 +%% +Type: language +Subtag: gng +Description: Ngangam +Added: 2009-07-29 +%% +Type: language +Subtag: gnh +Description: Lere +Added: 2009-07-29 +%% +Type: language +Subtag: gni +Description: Gooniyandi +Added: 2009-07-29 +%% +Type: language +Subtag: gnj +Description: Ngen +Added: 2018-03-08 +%% +Type: language +Subtag: gnk +Description: ǁGana +Added: 2009-07-29 +%% +Type: language +Subtag: gnl +Description: Gangulu +Added: 2009-07-29 +%% +Type: language +Subtag: gnm +Description: Ginuman +Added: 2009-07-29 +%% +Type: language +Subtag: gnn +Description: Gumatj +Added: 2009-07-29 +%% +Type: language +Subtag: gno +Description: Northern Gondi +Added: 2009-07-29 +Macrolanguage: gon +%% +Type: language +Subtag: gnq +Description: Gana +Added: 2009-07-29 +%% +Type: language +Subtag: gnr +Description: Gureng Gureng +Added: 2009-07-29 +%% +Type: language +Subtag: gnt +Description: Guntai +Added: 2009-07-29 +%% +Type: language +Subtag: gnu +Description: Gnau +Added: 2009-07-29 +%% +Type: language +Subtag: gnw +Description: Western Bolivian Guaraní +Added: 2009-07-29 +Macrolanguage: gn +%% +Type: language +Subtag: gnz +Description: Ganzi +Added: 2009-07-29 +%% +Type: language +Subtag: goa +Description: Guro +Added: 2009-07-29 +%% +Type: language +Subtag: gob +Description: Playero +Added: 2009-07-29 +%% +Type: language +Subtag: goc +Description: Gorakor +Added: 2009-07-29 +%% +Type: language +Subtag: god +Description: Godié +Added: 2009-07-29 +%% +Type: language +Subtag: goe +Description: Gongduk +Added: 2009-07-29 +%% +Type: language +Subtag: gof +Description: Gofa +Added: 2009-07-29 +%% +Type: language +Subtag: gog +Description: Gogo +Added: 2009-07-29 +%% +Type: language +Subtag: goh +Description: Old High German (ca. 750-1050) +Added: 2005-10-16 +%% +Type: language +Subtag: goi +Description: Gobasi +Added: 2009-07-29 +%% +Type: language +Subtag: goj +Description: Gowlan +Added: 2009-07-29 +%% +Type: language +Subtag: gok +Description: Gowli +Added: 2009-07-29 +%% +Type: language +Subtag: gol +Description: Gola +Added: 2009-07-29 +%% +Type: language +Subtag: gom +Description: Goan Konkani +Added: 2009-07-29 +Macrolanguage: kok +%% +Type: language +Subtag: gon +Description: Gondi +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: goo +Description: Gone Dau +Added: 2009-07-29 +%% +Type: language +Subtag: gop +Description: Yeretuar +Added: 2009-07-29 +%% +Type: language +Subtag: goq +Description: Gorap +Added: 2009-07-29 +%% +Type: language +Subtag: gor +Description: Gorontalo +Added: 2005-10-16 +%% +Type: language +Subtag: gos +Description: Gronings +Added: 2009-07-29 +%% +Type: language +Subtag: got +Description: Gothic +Added: 2005-10-16 +%% +Type: language +Subtag: gou +Description: Gavar +Added: 2009-07-29 +%% +Type: language +Subtag: gow +Description: Gorowa +Added: 2009-07-29 +%% +Type: language +Subtag: gox +Description: Gobu +Added: 2009-07-29 +%% +Type: language +Subtag: goy +Description: Goundo +Added: 2009-07-29 +%% +Type: language +Subtag: goz +Description: Gozarkhani +Added: 2009-07-29 +%% +Type: language +Subtag: gpa +Description: Gupa-Abawa +Added: 2009-07-29 +%% +Type: language +Subtag: gpe +Description: Ghanaian Pidgin English +Added: 2012-08-12 +%% +Type: language +Subtag: gpn +Description: Taiap +Added: 2009-07-29 +%% +Type: language +Subtag: gqa +Description: Ga'anda +Added: 2009-07-29 +%% +Type: language +Subtag: gqi +Description: Guiqiong +Added: 2009-07-29 +%% +Type: language +Subtag: gqn +Description: Guana (Brazil) +Added: 2009-07-29 +%% +Type: language +Subtag: gqr +Description: Gor +Added: 2009-07-29 +%% +Type: language +Subtag: gqu +Description: Qau +Added: 2012-08-12 +%% +Type: language +Subtag: gra +Description: Rajput Garasia +Added: 2009-07-29 +%% +Type: language +Subtag: grb +Description: Grebo +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: grc +Description: Ancient Greek (to 1453) +Added: 2005-10-16 +%% +Type: language +Subtag: grd +Description: Guruntum-Mbaaru +Added: 2009-07-29 +%% +Type: language +Subtag: grg +Description: Madi +Added: 2009-07-29 +%% +Type: language +Subtag: grh +Description: Gbiri-Niragu +Added: 2009-07-29 +%% +Type: language +Subtag: gri +Description: Ghari +Added: 2009-07-29 +%% +Type: language +Subtag: grj +Description: Southern Grebo +Added: 2009-07-29 +Macrolanguage: grb +%% +Type: language +Subtag: grk +Description: Greek languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: grm +Description: Kota Marudu Talantang +Added: 2009-07-29 +%% +Type: language +Subtag: gro +Description: Groma +Added: 2009-07-29 +%% +Type: language +Subtag: grq +Description: Gorovu +Added: 2009-07-29 +%% +Type: language +Subtag: grr +Description: Taznatit +Added: 2009-07-29 +%% +Type: language +Subtag: grs +Description: Gresi +Added: 2009-07-29 +%% +Type: language +Subtag: grt +Description: Garo +Added: 2009-07-29 +%% +Type: language +Subtag: gru +Description: Kistane +Added: 2009-07-29 +%% +Type: language +Subtag: grv +Description: Central Grebo +Added: 2009-07-29 +Macrolanguage: grb +%% +Type: language +Subtag: grw +Description: Gweda +Added: 2009-07-29 +%% +Type: language +Subtag: grx +Description: Guriaso +Added: 2009-07-29 +%% +Type: language +Subtag: gry +Description: Barclayville Grebo +Added: 2009-07-29 +Macrolanguage: grb +%% +Type: language +Subtag: grz +Description: Guramalum +Added: 2009-07-29 +%% +Type: language +Subtag: gse +Description: Ghanaian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: gsg +Description: German Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: gsl +Description: Gusilay +Added: 2009-07-29 +%% +Type: language +Subtag: gsm +Description: Guatemalan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: gsn +Description: Nema +Description: Gusan +Added: 2009-07-29 +%% +Type: language +Subtag: gso +Description: Southwest Gbaya +Added: 2009-07-29 +Macrolanguage: gba +%% +Type: language +Subtag: gsp +Description: Wasembo +Added: 2009-07-29 +%% +Type: language +Subtag: gss +Description: Greek Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: gsw +Description: Swiss German +Description: Alemannic +Description: Alsatian +Added: 2006-03-08 +Suppress-Script: Latn +%% +Type: language +Subtag: gta +Description: Guató +Added: 2009-07-29 +%% +Type: language +Subtag: gti +Description: Gbati-ri +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: nyc +%% +Type: language +Subtag: gtu +Description: Aghu-Tharnggala +Added: 2013-09-10 +%% +Type: language +Subtag: gua +Description: Shiki +Added: 2009-07-29 +%% +Type: language +Subtag: gub +Description: Guajajára +Added: 2009-07-29 +%% +Type: language +Subtag: guc +Description: Wayuu +Added: 2009-07-29 +%% +Type: language +Subtag: gud +Description: Yocoboué Dida +Added: 2009-07-29 +%% +Type: language +Subtag: gue +Description: Gurindji +Added: 2009-07-29 +%% +Type: language +Subtag: guf +Description: Gupapuyngu +Added: 2009-07-29 +%% +Type: language +Subtag: gug +Description: Paraguayan Guaraní +Added: 2009-07-29 +Macrolanguage: gn +%% +Type: language +Subtag: guh +Description: Guahibo +Added: 2009-07-29 +%% +Type: language +Subtag: gui +Description: Eastern Bolivian Guaraní +Added: 2009-07-29 +Macrolanguage: gn +%% +Type: language +Subtag: guk +Description: Gumuz +Added: 2009-07-29 +%% +Type: language +Subtag: gul +Description: Sea Island Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: gum +Description: Guambiano +Added: 2009-07-29 +%% +Type: language +Subtag: gun +Description: Mbyá Guaraní +Added: 2009-07-29 +Macrolanguage: gn +%% +Type: language +Subtag: guo +Description: Guayabero +Added: 2009-07-29 +%% +Type: language +Subtag: gup +Description: Gunwinggu +Added: 2009-07-29 +%% +Type: language +Subtag: guq +Description: Aché +Added: 2009-07-29 +%% +Type: language +Subtag: gur +Description: Farefare +Added: 2009-07-29 +%% +Type: language +Subtag: gus +Description: Guinean Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: gut +Description: Maléku Jaíka +Added: 2009-07-29 +%% +Type: language +Subtag: guu +Description: Yanomamö +Added: 2009-07-29 +%% +Type: language +Subtag: guv +Description: Gey +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: duz +%% +Type: language +Subtag: guw +Description: Gun +Added: 2009-07-29 +%% +Type: language +Subtag: gux +Description: Gourmanchéma +Added: 2009-07-29 +%% +Type: language +Subtag: guz +Description: Gusii +Description: Ekegusii +Added: 2009-07-29 +%% +Type: language +Subtag: gva +Description: Guana (Paraguay) +Added: 2009-07-29 +%% +Type: language +Subtag: gvc +Description: Guanano +Added: 2009-07-29 +%% +Type: language +Subtag: gve +Description: Duwet +Added: 2009-07-29 +%% +Type: language +Subtag: gvf +Description: Golin +Added: 2009-07-29 +%% +Type: language +Subtag: gvj +Description: Guajá +Added: 2009-07-29 +%% +Type: language +Subtag: gvl +Description: Gulay +Added: 2009-07-29 +%% +Type: language +Subtag: gvm +Description: Gurmana +Added: 2009-07-29 +%% +Type: language +Subtag: gvn +Description: Kuku-Yalanji +Added: 2009-07-29 +%% +Type: language +Subtag: gvo +Description: Gavião Do Jiparaná +Added: 2009-07-29 +%% +Type: language +Subtag: gvp +Description: Pará Gavião +Added: 2009-07-29 +%% +Type: language +Subtag: gvr +Description: Gurung +Added: 2009-07-29 +%% +Type: language +Subtag: gvs +Description: Gumawana +Added: 2009-07-29 +%% +Type: language +Subtag: gvy +Description: Guyani +Added: 2009-07-29 +%% +Type: language +Subtag: gwa +Description: Mbato +Added: 2009-07-29 +%% +Type: language +Subtag: gwb +Description: Gwa +Added: 2009-07-29 +%% +Type: language +Subtag: gwc +Description: Kalami +Added: 2009-07-29 +%% +Type: language +Subtag: gwd +Description: Gawwada +Added: 2009-07-29 +%% +Type: language +Subtag: gwe +Description: Gweno +Added: 2009-07-29 +%% +Type: language +Subtag: gwf +Description: Gowro +Added: 2009-07-29 +%% +Type: language +Subtag: gwg +Description: Moo +Added: 2009-07-29 +%% +Type: language +Subtag: gwi +Description: Gwichʼin +Added: 2005-10-16 +%% +Type: language +Subtag: gwj +Description: ǀGwi +Added: 2009-07-29 +%% +Type: language +Subtag: gwm +Description: Awngthim +Added: 2012-08-12 +%% +Type: language +Subtag: gwn +Description: Gwandara +Added: 2009-07-29 +%% +Type: language +Subtag: gwr +Description: Gwere +Added: 2009-07-29 +%% +Type: language +Subtag: gwt +Description: Gawar-Bati +Added: 2009-07-29 +%% +Type: language +Subtag: gwu +Description: Guwamu +Added: 2009-07-29 +%% +Type: language +Subtag: gww +Description: Kwini +Added: 2009-07-29 +%% +Type: language +Subtag: gwx +Description: Gua +Added: 2009-07-29 +%% +Type: language +Subtag: gxx +Description: Wè Southern +Added: 2009-07-29 +%% +Type: language +Subtag: gya +Description: Northwest Gbaya +Added: 2009-07-29 +Macrolanguage: gba +%% +Type: language +Subtag: gyb +Description: Garus +Added: 2009-07-29 +%% +Type: language +Subtag: gyd +Description: Kayardild +Added: 2009-07-29 +%% +Type: language +Subtag: gye +Description: Gyem +Added: 2009-07-29 +%% +Type: language +Subtag: gyf +Description: Gungabula +Added: 2009-07-29 +%% +Type: language +Subtag: gyg +Description: Gbayi +Added: 2009-07-29 +%% +Type: language +Subtag: gyi +Description: Gyele +Added: 2009-07-29 +%% +Type: language +Subtag: gyl +Description: Gayil +Added: 2009-07-29 +%% +Type: language +Subtag: gym +Description: Ngäbere +Added: 2009-07-29 +%% +Type: language +Subtag: gyn +Description: Guyanese Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: gyo +Description: Gyalsumdo +Added: 2018-03-08 +%% +Type: language +Subtag: gyr +Description: Guarayu +Added: 2009-07-29 +%% +Type: language +Subtag: gyy +Description: Gunya +Added: 2009-07-29 +%% +Type: language +Subtag: gza +Description: Ganza +Added: 2009-07-29 +%% +Type: language +Subtag: gzi +Description: Gazi +Added: 2009-07-29 +%% +Type: language +Subtag: gzn +Description: Gane +Added: 2009-07-29 +%% +Type: language +Subtag: haa +Description: Han +Added: 2009-07-29 +%% +Type: language +Subtag: hab +Description: Hanoi Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: hac +Description: Gurani +Added: 2009-07-29 +%% +Type: language +Subtag: had +Description: Hatam +Added: 2009-07-29 +%% +Type: language +Subtag: hae +Description: Eastern Oromo +Added: 2009-07-29 +Macrolanguage: om +%% +Type: language +Subtag: haf +Description: Haiphong Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: hag +Description: Hanga +Added: 2009-07-29 +%% +Type: language +Subtag: hah +Description: Hahon +Added: 2009-07-29 +%% +Type: language +Subtag: hai +Description: Haida +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: haj +Description: Hajong +Added: 2009-07-29 +%% +Type: language +Subtag: hak +Description: Hakka Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: hal +Description: Halang +Added: 2009-07-29 +%% +Type: language +Subtag: ham +Description: Hewa +Added: 2009-07-29 +%% +Type: language +Subtag: han +Description: Hangaza +Added: 2009-07-29 +%% +Type: language +Subtag: hao +Description: Hakö +Added: 2009-07-29 +%% +Type: language +Subtag: hap +Description: Hupla +Added: 2009-07-29 +%% +Type: language +Subtag: haq +Description: Ha +Added: 2009-07-29 +%% +Type: language +Subtag: har +Description: Harari +Added: 2009-07-29 +%% +Type: language +Subtag: has +Description: Haisla +Added: 2009-07-29 +%% +Type: language +Subtag: hav +Description: Havu +Added: 2009-07-29 +%% +Type: language +Subtag: haw +Description: Hawaiian +Added: 2005-10-16 +%% +Type: language +Subtag: hax +Description: Southern Haida +Added: 2009-07-29 +Macrolanguage: hai +%% +Type: language +Subtag: hay +Description: Haya +Added: 2009-07-29 +%% +Type: language +Subtag: haz +Description: Hazaragi +Added: 2009-07-29 +%% +Type: language +Subtag: hba +Description: Hamba +Added: 2009-07-29 +%% +Type: language +Subtag: hbb +Description: Huba +Added: 2009-07-29 +%% +Type: language +Subtag: hbn +Description: Heiban +Added: 2009-07-29 +%% +Type: language +Subtag: hbo +Description: Ancient Hebrew +Added: 2009-07-29 +%% +Type: language +Subtag: hbu +Description: Habu +Added: 2009-07-29 +%% +Type: language +Subtag: hca +Description: Andaman Creole Hindi +Added: 2009-07-29 +%% +Type: language +Subtag: hch +Description: Huichol +Added: 2009-07-29 +%% +Type: language +Subtag: hdn +Description: Northern Haida +Added: 2009-07-29 +Macrolanguage: hai +%% +Type: language +Subtag: hds +Description: Honduras Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: hdy +Description: Hadiyya +Added: 2009-07-29 +%% +Type: language +Subtag: hea +Description: Northern Qiandong Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hed +Description: Herdé +Added: 2009-07-29 +%% +Type: language +Subtag: heg +Description: Helong +Added: 2009-07-29 +%% +Type: language +Subtag: heh +Description: Hehe +Added: 2009-07-29 +%% +Type: language +Subtag: hei +Description: Heiltsuk +Added: 2009-07-29 +%% +Type: language +Subtag: hem +Description: Hemba +Added: 2009-07-29 +%% +Type: language +Subtag: hgm +Description: Haiǁom +Added: 2009-07-29 +%% +Type: language +Subtag: hgw +Description: Haigwai +Added: 2009-07-29 +%% +Type: language +Subtag: hhi +Description: Hoia Hoia +Added: 2009-07-29 +%% +Type: language +Subtag: hhr +Description: Kerak +Added: 2009-07-29 +%% +Type: language +Subtag: hhy +Description: Hoyahoya +Added: 2009-07-29 +%% +Type: language +Subtag: hia +Description: Lamang +Added: 2009-07-29 +%% +Type: language +Subtag: hib +Description: Hibito +Added: 2009-07-29 +%% +Type: language +Subtag: hid +Description: Hidatsa +Added: 2009-07-29 +%% +Type: language +Subtag: hif +Description: Fiji Hindi +Added: 2009-07-29 +%% +Type: language +Subtag: hig +Description: Kamwe +Added: 2009-07-29 +%% +Type: language +Subtag: hih +Description: Pamosu +Added: 2009-07-29 +%% +Type: language +Subtag: hii +Description: Hinduri +Added: 2009-07-29 +%% +Type: language +Subtag: hij +Description: Hijuk +Added: 2009-07-29 +%% +Type: language +Subtag: hik +Description: Seit-Kaitetu +Added: 2009-07-29 +%% +Type: language +Subtag: hil +Description: Hiligaynon +Added: 2005-10-16 +%% +Type: language +Subtag: him +Description: Himachali languages +Description: Western Pahari languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: hio +Description: Tsoa +Added: 2009-07-29 +%% +Type: language +Subtag: hir +Description: Himarimã +Added: 2009-07-29 +%% +Type: language +Subtag: hit +Description: Hittite +Added: 2005-10-16 +%% +Type: language +Subtag: hiw +Description: Hiw +Added: 2009-07-29 +%% +Type: language +Subtag: hix +Description: Hixkaryána +Added: 2009-07-29 +%% +Type: language +Subtag: hji +Description: Haji +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: hka +Description: Kahe +Added: 2009-07-29 +%% +Type: language +Subtag: hke +Description: Hunde +Added: 2009-07-29 +%% +Type: language +Subtag: hkk +Description: Hunjara-Kaina Ke +Added: 2009-07-29 +%% +Type: language +Subtag: hkn +Description: Mel-Khaonh +Added: 2018-03-08 +%% +Type: language +Subtag: hks +Description: Hong Kong Sign Language +Description: Heung Kong Sau Yue +Added: 2009-07-29 +%% +Type: language +Subtag: hla +Description: Halia +Added: 2009-07-29 +%% +Type: language +Subtag: hlb +Description: Halbi +Added: 2009-07-29 +%% +Type: language +Subtag: hld +Description: Halang Doan +Added: 2009-07-29 +%% +Type: language +Subtag: hle +Description: Hlersu +Added: 2009-07-29 +%% +Type: language +Subtag: hlt +Description: Matu Chin +Added: 2009-07-29 +%% +Type: language +Subtag: hlu +Description: Hieroglyphic Luwian +Added: 2009-07-29 +%% +Type: language +Subtag: hma +Description: Southern Mashan Hmong +Description: Southern Mashan Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmb +Description: Humburi Senni Songhay +Added: 2009-07-29 +%% +Type: language +Subtag: hmc +Description: Central Huishui Hmong +Description: Central Huishui Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmd +Description: Large Flowery Miao +Description: A-hmaos +Description: Da-Hua Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hme +Description: Eastern Huishui Hmong +Description: Eastern Huishui Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmf +Description: Hmong Don +Added: 2009-07-29 +%% +Type: language +Subtag: hmg +Description: Southwestern Guiyang Hmong +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmh +Description: Southwestern Huishui Hmong +Description: Southwestern Huishui Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmi +Description: Northern Huishui Hmong +Description: Northern Huishui Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmj +Description: Ge +Description: Gejia +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmk +Description: Maek +Added: 2009-07-29 +%% +Type: language +Subtag: hml +Description: Luopohe Hmong +Description: Luopohe Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmm +Description: Central Mashan Hmong +Description: Central Mashan Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmn +Description: Hmong +Description: Mong +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: hmp +Description: Northern Mashan Hmong +Description: Northern Mashan Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmq +Description: Eastern Qiandong Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmr +Description: Hmar +Added: 2009-07-29 +%% +Type: language +Subtag: hms +Description: Southern Qiandong Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmt +Description: Hamtai +Added: 2009-07-29 +%% +Type: language +Subtag: hmu +Description: Hamap +Added: 2009-07-29 +%% +Type: language +Subtag: hmv +Description: Hmong Dô +Added: 2009-07-29 +%% +Type: language +Subtag: hmw +Description: Western Mashan Hmong +Description: Western Mashan Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmx +Description: Hmong-Mien languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: hmy +Description: Southern Guiyang Hmong +Description: Southern Guiyang Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hmz +Description: Hmong Shua +Description: Sinicized Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hna +Description: Mina (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: hnd +Description: Southern Hindko +Added: 2009-07-29 +Macrolanguage: lah +%% +Type: language +Subtag: hne +Description: Chhattisgarhi +Added: 2009-07-29 +%% +Type: language +Subtag: hnh +Description: ǁAni +Added: 2009-07-29 +%% +Type: language +Subtag: hni +Description: Hani +Added: 2009-07-29 +%% +Type: language +Subtag: hnj +Description: Hmong Njua +Description: Mong Leng +Description: Mong Njua +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hnn +Description: Hanunoo +Added: 2009-07-29 +%% +Type: language +Subtag: hno +Description: Northern Hindko +Added: 2009-07-29 +Macrolanguage: lah +%% +Type: language +Subtag: hns +Description: Caribbean Hindustani +Added: 2009-07-29 +%% +Type: language +Subtag: hnu +Description: Hung +Added: 2009-07-29 +%% +Type: language +Subtag: hoa +Description: Hoava +Added: 2009-07-29 +%% +Type: language +Subtag: hob +Description: Mari (Madang Province) +Added: 2009-07-29 +%% +Type: language +Subtag: hoc +Description: Ho +Added: 2009-07-29 +%% +Type: language +Subtag: hod +Description: Holma +Added: 2009-07-29 +%% +Type: language +Subtag: hoe +Description: Horom +Added: 2009-07-29 +%% +Type: language +Subtag: hoh +Description: Hobyót +Added: 2009-07-29 +%% +Type: language +Subtag: hoi +Description: Holikachuk +Added: 2009-07-29 +%% +Type: language +Subtag: hoj +Description: Hadothi +Description: Haroti +Added: 2009-07-29 +Macrolanguage: raj +%% +Type: language +Subtag: hok +Description: Hokan languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: hol +Description: Holu +Added: 2009-07-29 +%% +Type: language +Subtag: hom +Description: Homa +Added: 2009-07-29 +%% +Type: language +Subtag: hoo +Description: Holoholo +Added: 2009-07-29 +%% +Type: language +Subtag: hop +Description: Hopi +Added: 2009-07-29 +%% +Type: language +Subtag: hor +Description: Horo +Added: 2009-07-29 +%% +Type: language +Subtag: hos +Description: Ho Chi Minh City Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: hot +Description: Hote +Description: Malê +Added: 2009-07-29 +%% +Type: language +Subtag: hov +Description: Hovongan +Added: 2009-07-29 +%% +Type: language +Subtag: how +Description: Honi +Added: 2009-07-29 +%% +Type: language +Subtag: hoy +Description: Holiya +Added: 2009-07-29 +%% +Type: language +Subtag: hoz +Description: Hozo +Added: 2009-07-29 +%% +Type: language +Subtag: hpo +Description: Hpon +Added: 2009-07-29 +%% +Type: language +Subtag: hps +Description: Hawai'i Sign Language (HSL) +Description: Hawai'i Pidgin Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: hra +Description: Hrangkhol +Added: 2009-07-29 +%% +Type: language +Subtag: hrc +Description: Niwer Mil +Added: 2013-09-10 +%% +Type: language +Subtag: hre +Description: Hre +Added: 2009-07-29 +%% +Type: language +Subtag: hrk +Description: Haruku +Added: 2009-07-29 +%% +Type: language +Subtag: hrm +Description: Horned Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: hro +Description: Haroi +Added: 2009-07-29 +%% +Type: language +Subtag: hrp +Description: Nhirrpi +Added: 2013-09-10 +%% +Type: language +Subtag: hrr +Description: Horuru +Added: 2009-07-29 +Deprecated: 2012-08-12 +Preferred-Value: jal +%% +Type: language +Subtag: hrt +Description: Hértevin +Added: 2009-07-29 +%% +Type: language +Subtag: hru +Description: Hruso +Added: 2009-07-29 +%% +Type: language +Subtag: hrw +Description: Warwar Feni +Added: 2013-09-10 +%% +Type: language +Subtag: hrx +Description: Hunsrik +Added: 2009-07-29 +%% +Type: language +Subtag: hrz +Description: Harzani +Added: 2009-07-29 +%% +Type: language +Subtag: hsb +Description: Upper Sorbian +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: hsh +Description: Hungarian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: hsl +Description: Hausa Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: hsn +Description: Xiang Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: hss +Description: Harsusi +Added: 2009-07-29 +%% +Type: language +Subtag: hti +Description: Hoti +Added: 2009-07-29 +%% +Type: language +Subtag: hto +Description: Minica Huitoto +Added: 2009-07-29 +%% +Type: language +Subtag: hts +Description: Hadza +Added: 2009-07-29 +%% +Type: language +Subtag: htu +Description: Hitu +Added: 2009-07-29 +%% +Type: language +Subtag: htx +Description: Middle Hittite +Added: 2009-07-29 +%% +Type: language +Subtag: hub +Description: Huambisa +Added: 2009-07-29 +%% +Type: language +Subtag: huc +Description: ǂHua +Added: 2009-07-29 +%% +Type: language +Subtag: hud +Description: Huaulu +Added: 2009-07-29 +%% +Type: language +Subtag: hue +Description: San Francisco Del Mar Huave +Added: 2009-07-29 +%% +Type: language +Subtag: huf +Description: Humene +Added: 2009-07-29 +%% +Type: language +Subtag: hug +Description: Huachipaeri +Added: 2009-07-29 +%% +Type: language +Subtag: huh +Description: Huilliche +Added: 2009-07-29 +%% +Type: language +Subtag: hui +Description: Huli +Added: 2009-07-29 +%% +Type: language +Subtag: huj +Description: Northern Guiyang Hmong +Description: Northern Guiyang Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: huk +Description: Hulung +Added: 2009-07-29 +%% +Type: language +Subtag: hul +Description: Hula +Added: 2009-07-29 +%% +Type: language +Subtag: hum +Description: Hungana +Added: 2009-07-29 +%% +Type: language +Subtag: huo +Description: Hu +Added: 2009-07-29 +%% +Type: language +Subtag: hup +Description: Hupa +Added: 2005-10-16 +%% +Type: language +Subtag: huq +Description: Tsat +Added: 2009-07-29 +%% +Type: language +Subtag: hur +Description: Halkomelem +Added: 2009-07-29 +%% +Type: language +Subtag: hus +Description: Huastec +Added: 2009-07-29 +%% +Type: language +Subtag: hut +Description: Humla +Added: 2009-07-29 +%% +Type: language +Subtag: huu +Description: Murui Huitoto +Added: 2009-07-29 +%% +Type: language +Subtag: huv +Description: San Mateo Del Mar Huave +Added: 2009-07-29 +%% +Type: language +Subtag: huw +Description: Hukumina +Added: 2009-07-29 +%% +Type: language +Subtag: hux +Description: Nüpode Huitoto +Added: 2009-07-29 +%% +Type: language +Subtag: huy +Description: Hulaulá +Added: 2009-07-29 +%% +Type: language +Subtag: huz +Description: Hunzib +Added: 2009-07-29 +%% +Type: language +Subtag: hvc +Description: Haitian Vodoun Culture Language +Added: 2009-07-29 +%% +Type: language +Subtag: hve +Description: San Dionisio Del Mar Huave +Added: 2009-07-29 +%% +Type: language +Subtag: hvk +Description: Haveke +Added: 2009-07-29 +%% +Type: language +Subtag: hvn +Description: Sabu +Added: 2009-07-29 +%% +Type: language +Subtag: hvv +Description: Santa María Del Mar Huave +Added: 2009-07-29 +%% +Type: language +Subtag: hwa +Description: Wané +Added: 2009-07-29 +%% +Type: language +Subtag: hwc +Description: Hawai'i Creole English +Description: Hawai'i Pidgin +Added: 2009-07-29 +%% +Type: language +Subtag: hwo +Description: Hwana +Added: 2009-07-29 +%% +Type: language +Subtag: hya +Description: Hya +Added: 2009-07-29 +%% +Type: language +Subtag: hyw +Description: Western Armenian +Added: 2018-03-08 +Comments: see also hy +%% +Type: language +Subtag: hyx +Description: Armenian (family) +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: iai +Description: Iaai +Added: 2009-07-29 +%% +Type: language +Subtag: ian +Description: Iatmul +Added: 2009-07-29 +%% +Type: language +Subtag: iap +Description: Iapama +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: iar +Description: Purari +Added: 2009-07-29 +%% +Type: language +Subtag: iba +Description: Iban +Added: 2005-10-16 +%% +Type: language +Subtag: ibb +Description: Ibibio +Added: 2009-07-29 +%% +Type: language +Subtag: ibd +Description: Iwaidja +Added: 2009-07-29 +%% +Type: language +Subtag: ibe +Description: Akpes +Added: 2009-07-29 +%% +Type: language +Subtag: ibg +Description: Ibanag +Added: 2009-07-29 +%% +Type: language +Subtag: ibh +Description: Bih +Added: 2017-02-23 +%% +Type: language +Subtag: ibi +Description: Ibilo +Added: 2009-07-29 +Deprecated: 2012-08-12 +Preferred-Value: opa +%% +Type: language +Subtag: ibl +Description: Ibaloi +Added: 2009-07-29 +%% +Type: language +Subtag: ibm +Description: Agoi +Added: 2009-07-29 +%% +Type: language +Subtag: ibn +Description: Ibino +Added: 2009-07-29 +%% +Type: language +Subtag: ibr +Description: Ibuoro +Added: 2009-07-29 +%% +Type: language +Subtag: ibu +Description: Ibu +Added: 2009-07-29 +%% +Type: language +Subtag: iby +Description: Ibani +Added: 2009-07-29 +%% +Type: language +Subtag: ica +Description: Ede Ica +Added: 2009-07-29 +%% +Type: language +Subtag: ich +Description: Etkywan +Added: 2009-07-29 +%% +Type: language +Subtag: icl +Description: Icelandic Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: icr +Description: Islander Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: ida +Description: Idakho-Isukha-Tiriki +Description: Luidakho-Luisukha-Lutirichi +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: idb +Description: Indo-Portuguese +Added: 2009-07-29 +%% +Type: language +Subtag: idc +Description: Idon +Description: Ajiya +Added: 2009-07-29 +%% +Type: language +Subtag: idd +Description: Ede Idaca +Added: 2009-07-29 +%% +Type: language +Subtag: ide +Description: Idere +Added: 2009-07-29 +%% +Type: language +Subtag: idi +Description: Idi +Added: 2009-07-29 +%% +Type: language +Subtag: idr +Description: Indri +Added: 2009-07-29 +%% +Type: language +Subtag: ids +Description: Idesa +Added: 2009-07-29 +%% +Type: language +Subtag: idt +Description: Idaté +Added: 2009-07-29 +%% +Type: language +Subtag: idu +Description: Idoma +Added: 2009-07-29 +%% +Type: language +Subtag: ifa +Description: Amganad Ifugao +Added: 2009-07-29 +%% +Type: language +Subtag: ifb +Description: Batad Ifugao +Description: Ayangan Ifugao +Added: 2009-07-29 +%% +Type: language +Subtag: ife +Description: Ifè +Added: 2009-07-29 +%% +Type: language +Subtag: iff +Description: Ifo +Added: 2009-07-29 +%% +Type: language +Subtag: ifk +Description: Tuwali Ifugao +Added: 2009-07-29 +%% +Type: language +Subtag: ifm +Description: Teke-Fuumu +Added: 2009-07-29 +%% +Type: language +Subtag: ifu +Description: Mayoyao Ifugao +Added: 2009-07-29 +%% +Type: language +Subtag: ify +Description: Keley-I Kallahan +Added: 2009-07-29 +%% +Type: language +Subtag: igb +Description: Ebira +Added: 2009-07-29 +%% +Type: language +Subtag: ige +Description: Igede +Added: 2009-07-29 +%% +Type: language +Subtag: igg +Description: Igana +Added: 2009-07-29 +%% +Type: language +Subtag: igl +Description: Igala +Added: 2009-07-29 +%% +Type: language +Subtag: igm +Description: Kanggape +Added: 2009-07-29 +%% +Type: language +Subtag: ign +Description: Ignaciano +Added: 2009-07-29 +%% +Type: language +Subtag: igo +Description: Isebe +Added: 2009-07-29 +%% +Type: language +Subtag: igs +Description: Interglossa +Added: 2009-07-29 +%% +Type: language +Subtag: igw +Description: Igwe +Added: 2009-07-29 +%% +Type: language +Subtag: ihb +Description: Iha Based Pidgin +Added: 2009-07-29 +%% +Type: language +Subtag: ihi +Description: Ihievbe +Added: 2009-07-29 +%% +Type: language +Subtag: ihp +Description: Iha +Added: 2009-07-29 +%% +Type: language +Subtag: ihw +Description: Bidhawal +Added: 2012-08-12 +%% +Type: language +Subtag: iin +Description: Thiin +Added: 2013-09-10 +%% +Type: language +Subtag: iir +Description: Indo-Iranian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: ijc +Description: Izon +Added: 2009-07-29 +%% +Type: language +Subtag: ije +Description: Biseni +Added: 2009-07-29 +%% +Type: language +Subtag: ijj +Description: Ede Ije +Added: 2009-07-29 +%% +Type: language +Subtag: ijn +Description: Kalabari +Added: 2009-07-29 +%% +Type: language +Subtag: ijo +Description: Ijo languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: ijs +Description: Southeast Ijo +Added: 2009-07-29 +%% +Type: language +Subtag: ike +Description: Eastern Canadian Inuktitut +Added: 2009-07-29 +Macrolanguage: iu +%% +Type: language +Subtag: iki +Description: Iko +Added: 2009-07-29 +%% +Type: language +Subtag: ikk +Description: Ika +Added: 2009-07-29 +%% +Type: language +Subtag: ikl +Description: Ikulu +Added: 2009-07-29 +%% +Type: language +Subtag: iko +Description: Olulumo-Ikom +Added: 2009-07-29 +%% +Type: language +Subtag: ikp +Description: Ikpeshi +Added: 2009-07-29 +%% +Type: language +Subtag: ikr +Description: Ikaranggal +Added: 2013-09-10 +%% +Type: language +Subtag: iks +Description: Inuit Sign Language +Added: 2015-02-12 +%% +Type: language +Subtag: ikt +Description: Inuinnaqtun +Description: Western Canadian Inuktitut +Added: 2009-07-29 +Macrolanguage: iu +%% +Type: language +Subtag: ikv +Description: Iku-Gora-Ankwa +Added: 2009-07-29 +%% +Type: language +Subtag: ikw +Description: Ikwere +Added: 2009-07-29 +%% +Type: language +Subtag: ikx +Description: Ik +Added: 2009-07-29 +%% +Type: language +Subtag: ikz +Description: Ikizu +Added: 2009-07-29 +%% +Type: language +Subtag: ila +Description: Ile Ape +Added: 2009-07-29 +%% +Type: language +Subtag: ilb +Description: Ila +Added: 2009-07-29 +%% +Type: language +Subtag: ilg +Description: Garig-Ilgar +Added: 2009-07-29 +%% +Type: language +Subtag: ili +Description: Ili Turki +Added: 2009-07-29 +%% +Type: language +Subtag: ilk +Description: Ilongot +Added: 2009-07-29 +%% +Type: language +Subtag: ill +Description: Iranun +Added: 2009-07-29 +Deprecated: 2016-05-30 +Comments: see ilm, ilp +%% +Type: language +Subtag: ilm +Description: Iranun (Malaysia) +Added: 2016-05-30 +%% +Type: language +Subtag: ilo +Description: Iloko +Added: 2005-10-16 +%% +Type: language +Subtag: ilp +Description: Iranun (Philippines) +Added: 2016-05-30 +%% +Type: language +Subtag: ils +Description: International Sign +Added: 2009-07-29 +%% +Type: language +Subtag: ilu +Description: Ili'uun +Added: 2009-07-29 +%% +Type: language +Subtag: ilv +Description: Ilue +Added: 2009-07-29 +%% +Type: language +Subtag: ilw +Description: Talur +Added: 2009-07-29 +Deprecated: 2013-09-10 +Preferred-Value: gal +%% +Type: language +Subtag: ima +Description: Mala Malasar +Added: 2009-07-29 +%% +Type: language +Subtag: ime +Description: Imeraguen +Added: 2009-07-29 +Deprecated: 2015-02-12 +%% +Type: language +Subtag: imi +Description: Anamgura +Added: 2009-07-29 +%% +Type: language +Subtag: iml +Description: Miluk +Added: 2009-07-29 +%% +Type: language +Subtag: imn +Description: Imonda +Added: 2009-07-29 +%% +Type: language +Subtag: imo +Description: Imbongu +Added: 2009-07-29 +%% +Type: language +Subtag: imr +Description: Imroing +Added: 2009-07-29 +%% +Type: language +Subtag: ims +Description: Marsian +Added: 2009-07-29 +%% +Type: language +Subtag: imy +Description: Milyan +Added: 2009-07-29 +%% +Type: language +Subtag: inb +Description: Inga +Added: 2009-07-29 +%% +Type: language +Subtag: inc +Description: Indic languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: ine +Description: Indo-European languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: ing +Description: Degexit'an +Added: 2009-07-29 +%% +Type: language +Subtag: inh +Description: Ingush +Added: 2005-10-16 +%% +Type: language +Subtag: inj +Description: Jungle Inga +Added: 2009-07-29 +%% +Type: language +Subtag: inl +Description: Indonesian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: inm +Description: Minaean +Added: 2009-07-29 +%% +Type: language +Subtag: inn +Description: Isinai +Added: 2009-07-29 +%% +Type: language +Subtag: ino +Description: Inoke-Yate +Added: 2009-07-29 +%% +Type: language +Subtag: inp +Description: Iñapari +Added: 2009-07-29 +%% +Type: language +Subtag: ins +Description: Indian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: int +Description: Intha +Added: 2009-07-29 +%% +Type: language +Subtag: inz +Description: Ineseño +Added: 2009-07-29 +%% +Type: language +Subtag: ior +Description: Inor +Added: 2009-07-29 +%% +Type: language +Subtag: iou +Description: Tuma-Irumu +Added: 2009-07-29 +%% +Type: language +Subtag: iow +Description: Iowa-Oto +Added: 2009-07-29 +%% +Type: language +Subtag: ipi +Description: Ipili +Added: 2009-07-29 +%% +Type: language +Subtag: ipo +Description: Ipiko +Added: 2009-07-29 +%% +Type: language +Subtag: iqu +Description: Iquito +Added: 2009-07-29 +%% +Type: language +Subtag: iqw +Description: Ikwo +Added: 2013-09-10 +%% +Type: language +Subtag: ira +Description: Iranian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: ire +Description: Iresim +Added: 2009-07-29 +%% +Type: language +Subtag: irh +Description: Irarutu +Added: 2009-07-29 +%% +Type: language +Subtag: iri +Description: Rigwe +Description: Irigwe +Added: 2009-07-29 +%% +Type: language +Subtag: irk +Description: Iraqw +Added: 2009-07-29 +%% +Type: language +Subtag: irn +Description: Irántxe +Added: 2009-07-29 +%% +Type: language +Subtag: iro +Description: Iroquoian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: irr +Description: Ir +Added: 2009-07-29 +%% +Type: language +Subtag: iru +Description: Irula +Added: 2009-07-29 +%% +Type: language +Subtag: irx +Description: Kamberau +Added: 2009-07-29 +%% +Type: language +Subtag: iry +Description: Iraya +Added: 2009-07-29 +%% +Type: language +Subtag: isa +Description: Isabi +Added: 2009-07-29 +%% +Type: language +Subtag: isc +Description: Isconahua +Added: 2009-07-29 +%% +Type: language +Subtag: isd +Description: Isnag +Added: 2009-07-29 +%% +Type: language +Subtag: ise +Description: Italian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: isg +Description: Irish Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: ish +Description: Esan +Added: 2009-07-29 +%% +Type: language +Subtag: isi +Description: Nkem-Nkum +Added: 2009-07-29 +%% +Type: language +Subtag: isk +Description: Ishkashimi +Added: 2010-03-11 +%% +Type: language +Subtag: ism +Description: Masimasi +Added: 2009-07-29 +%% +Type: language +Subtag: isn +Description: Isanzu +Added: 2009-07-29 +%% +Type: language +Subtag: iso +Description: Isoko +Added: 2009-07-29 +%% +Type: language +Subtag: isr +Description: Israeli Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: ist +Description: Istriot +Added: 2009-07-29 +%% +Type: language +Subtag: isu +Description: Isu (Menchum Division) +Added: 2009-07-29 +%% +Type: language +Subtag: itb +Description: Binongan Itneg +Added: 2009-07-29 +%% +Type: language +Subtag: itc +Description: Italic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: itd +Description: Southern Tidung +Added: 2016-05-30 +%% +Type: language +Subtag: ite +Description: Itene +Added: 2009-07-29 +%% +Type: language +Subtag: iti +Description: Inlaod Itneg +Added: 2009-07-29 +%% +Type: language +Subtag: itk +Description: Judeo-Italian +Added: 2009-07-29 +%% +Type: language +Subtag: itl +Description: Itelmen +Added: 2009-07-29 +%% +Type: language +Subtag: itm +Description: Itu Mbon Uzo +Added: 2009-07-29 +%% +Type: language +Subtag: ito +Description: Itonama +Added: 2009-07-29 +%% +Type: language +Subtag: itr +Description: Iteri +Added: 2009-07-29 +%% +Type: language +Subtag: its +Description: Isekiri +Added: 2009-07-29 +%% +Type: language +Subtag: itt +Description: Maeng Itneg +Added: 2009-07-29 +%% +Type: language +Subtag: itv +Description: Itawit +Added: 2009-07-29 +%% +Type: language +Subtag: itw +Description: Ito +Added: 2009-07-29 +%% +Type: language +Subtag: itx +Description: Itik +Added: 2009-07-29 +%% +Type: language +Subtag: ity +Description: Moyadan Itneg +Added: 2009-07-29 +%% +Type: language +Subtag: itz +Description: Itzá +Added: 2009-07-29 +%% +Type: language +Subtag: ium +Description: Iu Mien +Added: 2009-07-29 +%% +Type: language +Subtag: ivb +Description: Ibatan +Added: 2009-07-29 +%% +Type: language +Subtag: ivv +Description: Ivatan +Added: 2009-07-29 +%% +Type: language +Subtag: iwk +Description: I-Wak +Added: 2009-07-29 +%% +Type: language +Subtag: iwm +Description: Iwam +Added: 2009-07-29 +%% +Type: language +Subtag: iwo +Description: Iwur +Added: 2009-07-29 +%% +Type: language +Subtag: iws +Description: Sepik Iwam +Added: 2009-07-29 +%% +Type: language +Subtag: ixc +Description: Ixcatec +Added: 2009-07-29 +%% +Type: language +Subtag: ixl +Description: Ixil +Added: 2009-07-29 +%% +Type: language +Subtag: iya +Description: Iyayu +Added: 2009-07-29 +%% +Type: language +Subtag: iyo +Description: Mesaka +Added: 2009-07-29 +%% +Type: language +Subtag: iyx +Description: Yaka (Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: izh +Description: Ingrian +Added: 2009-07-29 +%% +Type: language +Subtag: izi +Description: Izi-Ezaa-Ikwo-Mgbo +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see eza, gmz, iqw, izz +%% +Type: language +Subtag: izr +Description: Izere +Added: 2009-07-29 +%% +Type: language +Subtag: izz +Description: Izii +Added: 2013-09-10 +%% +Type: language +Subtag: jaa +Description: Jamamadí +Added: 2009-07-29 +%% +Type: language +Subtag: jab +Description: Hyam +Added: 2009-07-29 +%% +Type: language +Subtag: jac +Description: Popti' +Description: Jakalteko +Added: 2009-07-29 +%% +Type: language +Subtag: jad +Description: Jahanka +Added: 2009-07-29 +%% +Type: language +Subtag: jae +Description: Yabem +Added: 2009-07-29 +%% +Type: language +Subtag: jaf +Description: Jara +Added: 2009-07-29 +%% +Type: language +Subtag: jah +Description: Jah Hut +Added: 2009-07-29 +%% +Type: language +Subtag: jaj +Description: Zazao +Added: 2009-07-29 +%% +Type: language +Subtag: jak +Description: Jakun +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: jal +Description: Yalahatan +Added: 2009-07-29 +%% +Type: language +Subtag: jam +Description: Jamaican Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: jan +Description: Jandai +Added: 2012-08-12 +%% +Type: language +Subtag: jao +Description: Yanyuwa +Added: 2009-07-29 +%% +Type: language +Subtag: jaq +Description: Yaqay +Added: 2009-07-29 +%% +Type: language +Subtag: jar +Description: Jarawa (Nigeria) +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see jgk, jjr +%% +Type: language +Subtag: jas +Description: New Caledonian Javanese +Added: 2009-07-29 +%% +Type: language +Subtag: jat +Description: Jakati +Added: 2009-07-29 +Macrolanguage: lah +%% +Type: language +Subtag: jau +Description: Yaur +Added: 2009-07-29 +%% +Type: language +Subtag: jax +Description: Jambi Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: jay +Description: Yan-nhangu +Description: Nhangu +Added: 2009-07-29 +%% +Type: language +Subtag: jaz +Description: Jawe +Added: 2009-07-29 +%% +Type: language +Subtag: jbe +Description: Judeo-Berber +Added: 2009-07-29 +%% +Type: language +Subtag: jbi +Description: Badjiri +Added: 2013-09-10 +%% +Type: language +Subtag: jbj +Description: Arandai +Added: 2009-07-29 +%% +Type: language +Subtag: jbk +Description: Barikewa +Added: 2012-08-12 +%% +Type: language +Subtag: jbn +Description: Nafusi +Added: 2009-07-29 +%% +Type: language +Subtag: jbo +Description: Lojban +Added: 2005-10-16 +%% +Type: language +Subtag: jbr +Description: Jofotek-Bromnya +Added: 2009-07-29 +%% +Type: language +Subtag: jbt +Description: Jabutí +Added: 2009-07-29 +%% +Type: language +Subtag: jbu +Description: Jukun Takum +Added: 2009-07-29 +%% +Type: language +Subtag: jbw +Description: Yawijibaya +Added: 2012-08-12 +%% +Type: language +Subtag: jcs +Description: Jamaican Country Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: jct +Description: Krymchak +Added: 2009-07-29 +%% +Type: language +Subtag: jda +Description: Jad +Added: 2009-07-29 +%% +Type: language +Subtag: jdg +Description: Jadgali +Added: 2009-07-29 +%% +Type: language +Subtag: jdt +Description: Judeo-Tat +Added: 2009-07-29 +%% +Type: language +Subtag: jeb +Description: Jebero +Added: 2009-07-29 +%% +Type: language +Subtag: jee +Description: Jerung +Added: 2009-07-29 +%% +Type: language +Subtag: jeg +Description: Jeng +Added: 2009-07-29 +Deprecated: 2017-02-23 +Preferred-Value: oyb +%% +Type: language +Subtag: jeh +Description: Jeh +Added: 2009-07-29 +%% +Type: language +Subtag: jei +Description: Yei +Added: 2009-07-29 +%% +Type: language +Subtag: jek +Description: Jeri Kuo +Added: 2009-07-29 +%% +Type: language +Subtag: jel +Description: Yelmek +Added: 2009-07-29 +%% +Type: language +Subtag: jen +Description: Dza +Added: 2009-07-29 +%% +Type: language +Subtag: jer +Description: Jere +Added: 2009-07-29 +%% +Type: language +Subtag: jet +Description: Manem +Added: 2009-07-29 +%% +Type: language +Subtag: jeu +Description: Jonkor Bourmataguil +Added: 2009-07-29 +%% +Type: language +Subtag: jgb +Description: Ngbee +Added: 2009-07-29 +%% +Type: language +Subtag: jge +Description: Judeo-Georgian +Added: 2009-07-29 +%% +Type: language +Subtag: jgk +Description: Gwak +Added: 2012-08-12 +%% +Type: language +Subtag: jgo +Description: Ngomba +Added: 2009-07-29 +%% +Type: language +Subtag: jhi +Description: Jehai +Added: 2009-07-29 +%% +Type: language +Subtag: jhs +Description: Jhankot Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: jia +Description: Jina +Added: 2009-07-29 +%% +Type: language +Subtag: jib +Description: Jibu +Added: 2009-07-29 +%% +Type: language +Subtag: jic +Description: Tol +Added: 2009-07-29 +%% +Type: language +Subtag: jid +Description: Bu +Added: 2009-07-29 +%% +Type: language +Subtag: jie +Description: Jilbe +Added: 2009-07-29 +%% +Type: language +Subtag: jig +Description: Jingulu +Description: Djingili +Added: 2009-07-29 +%% +Type: language +Subtag: jih +Description: sTodsde +Description: Shangzhai +Added: 2009-07-29 +%% +Type: language +Subtag: jii +Description: Jiiddu +Added: 2009-07-29 +%% +Type: language +Subtag: jil +Description: Jilim +Added: 2009-07-29 +%% +Type: language +Subtag: jim +Description: Jimi (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: jio +Description: Jiamao +Added: 2009-07-29 +%% +Type: language +Subtag: jiq +Description: Guanyinqiao +Description: Lavrung +Added: 2009-07-29 +%% +Type: language +Subtag: jit +Description: Jita +Added: 2009-07-29 +%% +Type: language +Subtag: jiu +Description: Youle Jinuo +Added: 2009-07-29 +%% +Type: language +Subtag: jiv +Description: Shuar +Added: 2009-07-29 +%% +Type: language +Subtag: jiy +Description: Buyuan Jinuo +Added: 2009-07-29 +%% +Type: language +Subtag: jje +Description: Jejueo +Added: 2015-02-12 +%% +Type: language +Subtag: jjr +Description: Bankal +Added: 2012-08-12 +%% +Type: language +Subtag: jka +Description: Kaera +Added: 2016-05-30 +%% +Type: language +Subtag: jkm +Description: Mobwa Karen +Added: 2012-08-12 +%% +Type: language +Subtag: jko +Description: Kubo +Added: 2009-07-29 +%% +Type: language +Subtag: jkp +Description: Paku Karen +Added: 2012-08-12 +%% +Type: language +Subtag: jkr +Description: Koro (India) +Added: 2012-08-12 +%% +Type: language +Subtag: jku +Description: Labir +Added: 2009-07-29 +%% +Type: language +Subtag: jle +Description: Ngile +Added: 2009-07-29 +%% +Type: language +Subtag: jls +Description: Jamaican Sign Language +Added: 2010-03-11 +%% +Type: language +Subtag: jma +Description: Dima +Added: 2009-07-29 +%% +Type: language +Subtag: jmb +Description: Zumbun +Added: 2009-07-29 +%% +Type: language +Subtag: jmc +Description: Machame +Added: 2009-07-29 +%% +Type: language +Subtag: jmd +Description: Yamdena +Added: 2009-07-29 +%% +Type: language +Subtag: jmi +Description: Jimi (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: jml +Description: Jumli +Added: 2009-07-29 +%% +Type: language +Subtag: jmn +Description: Makuri Naga +Added: 2009-07-29 +%% +Type: language +Subtag: jmr +Description: Kamara +Added: 2009-07-29 +%% +Type: language +Subtag: jms +Description: Mashi (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: jmw +Description: Mouwase +Added: 2012-08-12 +%% +Type: language +Subtag: jmx +Description: Western Juxtlahuaca Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: jna +Description: Jangshung +Added: 2009-07-29 +%% +Type: language +Subtag: jnd +Description: Jandavra +Added: 2009-07-29 +%% +Type: language +Subtag: jng +Description: Yangman +Added: 2009-07-29 +%% +Type: language +Subtag: jni +Description: Janji +Added: 2009-07-29 +%% +Type: language +Subtag: jnj +Description: Yemsa +Added: 2009-07-29 +%% +Type: language +Subtag: jnl +Description: Rawat +Added: 2009-07-29 +%% +Type: language +Subtag: jns +Description: Jaunsari +Added: 2009-07-29 +%% +Type: language +Subtag: job +Description: Joba +Added: 2009-07-29 +%% +Type: language +Subtag: jod +Description: Wojenaka +Added: 2009-07-29 +%% +Type: language +Subtag: jog +Description: Jogi +Added: 2015-05-27 +%% +Type: language +Subtag: jor +Description: Jorá +Added: 2009-07-29 +%% +Type: language +Subtag: jos +Description: Jordanian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: jow +Description: Jowulu +Added: 2009-07-29 +%% +Type: language +Subtag: jpa +Description: Jewish Palestinian Aramaic +Added: 2009-07-29 +%% +Type: language +Subtag: jpr +Description: Judeo-Persian +Added: 2005-10-16 +%% +Type: language +Subtag: jpx +Description: Japanese (family) +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: jqr +Description: Jaqaru +Added: 2009-07-29 +%% +Type: language +Subtag: jra +Description: Jarai +Added: 2009-07-29 +%% +Type: language +Subtag: jrb +Description: Judeo-Arabic +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: jrr +Description: Jiru +Added: 2009-07-29 +%% +Type: language +Subtag: jrt +Description: Jorto +Added: 2009-07-29 +%% +Type: language +Subtag: jru +Description: Japrería +Added: 2009-07-29 +%% +Type: language +Subtag: jsl +Description: Japanese Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: jua +Description: Júma +Added: 2009-07-29 +%% +Type: language +Subtag: jub +Description: Wannu +Added: 2009-07-29 +%% +Type: language +Subtag: juc +Description: Jurchen +Added: 2009-07-29 +%% +Type: language +Subtag: jud +Description: Worodougou +Added: 2009-07-29 +%% +Type: language +Subtag: juh +Description: Hõne +Added: 2009-07-29 +%% +Type: language +Subtag: jui +Description: Ngadjuri +Added: 2012-08-12 +%% +Type: language +Subtag: juk +Description: Wapan +Added: 2009-07-29 +%% +Type: language +Subtag: jul +Description: Jirel +Added: 2009-07-29 +%% +Type: language +Subtag: jum +Description: Jumjum +Added: 2009-07-29 +%% +Type: language +Subtag: jun +Description: Juang +Added: 2009-07-29 +%% +Type: language +Subtag: juo +Description: Jiba +Added: 2009-07-29 +%% +Type: language +Subtag: jup +Description: Hupdë +Added: 2009-07-29 +%% +Type: language +Subtag: jur +Description: Jurúna +Added: 2009-07-29 +%% +Type: language +Subtag: jus +Description: Jumla Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: jut +Description: Jutish +Added: 2009-07-29 +%% +Type: language +Subtag: juu +Description: Ju +Added: 2009-07-29 +%% +Type: language +Subtag: juw +Description: Wãpha +Added: 2009-07-29 +%% +Type: language +Subtag: juy +Description: Juray +Added: 2009-07-29 +%% +Type: language +Subtag: jvd +Description: Javindo +Added: 2009-07-29 +%% +Type: language +Subtag: jvn +Description: Caribbean Javanese +Added: 2009-07-29 +%% +Type: language +Subtag: jwi +Description: Jwira-Pepesa +Added: 2009-07-29 +%% +Type: language +Subtag: jya +Description: Jiarong +Added: 2009-07-29 +%% +Type: language +Subtag: jye +Description: Judeo-Yemeni Arabic +Added: 2009-07-29 +Macrolanguage: jrb +%% +Type: language +Subtag: jyy +Description: Jaya +Added: 2009-07-29 +%% +Type: language +Subtag: kaa +Description: Kara-Kalpak +Added: 2005-10-16 +%% +Type: language +Subtag: kab +Description: Kabyle +Added: 2005-10-16 +%% +Type: language +Subtag: kac +Description: Kachin +Description: Jingpho +Added: 2005-10-16 +%% +Type: language +Subtag: kad +Description: Adara +Added: 2009-07-29 +%% +Type: language +Subtag: kae +Description: Ketangalan +Added: 2009-07-29 +%% +Type: language +Subtag: kaf +Description: Katso +Added: 2009-07-29 +%% +Type: language +Subtag: kag +Description: Kajaman +Added: 2009-07-29 +%% +Type: language +Subtag: kah +Description: Kara (Central African Republic) +Added: 2009-07-29 +%% +Type: language +Subtag: kai +Description: Karekare +Added: 2009-07-29 +%% +Type: language +Subtag: kaj +Description: Jju +Added: 2009-07-29 +%% +Type: language +Subtag: kak +Description: Kalanguya +Description: Kayapa Kallahan +Added: 2009-07-29 +%% +Type: language +Subtag: kam +Description: Kamba (Kenya) +Added: 2005-10-16 +%% +Type: language +Subtag: kao +Description: Xaasongaxango +Added: 2009-07-29 +%% +Type: language +Subtag: kap +Description: Bezhta +Added: 2009-07-29 +%% +Type: language +Subtag: kaq +Description: Capanahua +Added: 2009-07-29 +%% +Type: language +Subtag: kar +Description: Karen languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: kav +Description: Katukína +Added: 2009-07-29 +%% +Type: language +Subtag: kaw +Description: Kawi +Added: 2005-10-16 +%% +Type: language +Subtag: kax +Description: Kao +Added: 2009-07-29 +%% +Type: language +Subtag: kay +Description: Kamayurá +Added: 2009-07-29 +%% +Type: language +Subtag: kba +Description: Kalarko +Added: 2009-07-29 +%% +Type: language +Subtag: kbb +Description: Kaxuiâna +Added: 2009-07-29 +%% +Type: language +Subtag: kbc +Description: Kadiwéu +Added: 2009-07-29 +%% +Type: language +Subtag: kbd +Description: Kabardian +Added: 2005-10-16 +%% +Type: language +Subtag: kbe +Description: Kanju +Added: 2009-07-29 +%% +Type: language +Subtag: kbf +Description: Kakauhua +Added: 2009-07-29 +Deprecated: 2015-02-12 +%% +Type: language +Subtag: kbg +Description: Khamba +Added: 2009-07-29 +%% +Type: language +Subtag: kbh +Description: Camsá +Added: 2009-07-29 +%% +Type: language +Subtag: kbi +Description: Kaptiau +Added: 2009-07-29 +%% +Type: language +Subtag: kbj +Description: Kari +Added: 2009-07-29 +%% +Type: language +Subtag: kbk +Description: Grass Koiari +Added: 2009-07-29 +%% +Type: language +Subtag: kbl +Description: Kanembu +Added: 2009-07-29 +%% +Type: language +Subtag: kbm +Description: Iwal +Added: 2009-07-29 +%% +Type: language +Subtag: kbn +Description: Kare (Central African Republic) +Added: 2009-07-29 +%% +Type: language +Subtag: kbo +Description: Keliko +Added: 2009-07-29 +%% +Type: language +Subtag: kbp +Description: Kabiyè +Added: 2009-07-29 +%% +Type: language +Subtag: kbq +Description: Kamano +Added: 2009-07-29 +%% +Type: language +Subtag: kbr +Description: Kafa +Added: 2009-07-29 +%% +Type: language +Subtag: kbs +Description: Kande +Added: 2009-07-29 +%% +Type: language +Subtag: kbt +Description: Abadi +Added: 2009-07-29 +%% +Type: language +Subtag: kbu +Description: Kabutra +Added: 2009-07-29 +%% +Type: language +Subtag: kbv +Description: Dera (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: kbw +Description: Kaiep +Added: 2009-07-29 +%% +Type: language +Subtag: kbx +Description: Ap Ma +Added: 2009-07-29 +%% +Type: language +Subtag: kby +Description: Manga Kanuri +Added: 2009-07-29 +Macrolanguage: kr +%% +Type: language +Subtag: kbz +Description: Duhwa +Added: 2009-07-29 +%% +Type: language +Subtag: kca +Description: Khanty +Added: 2009-07-29 +%% +Type: language +Subtag: kcb +Description: Kawacha +Added: 2009-07-29 +%% +Type: language +Subtag: kcc +Description: Lubila +Added: 2009-07-29 +%% +Type: language +Subtag: kcd +Description: Ngkâlmpw Kanum +Added: 2009-07-29 +%% +Type: language +Subtag: kce +Description: Kaivi +Added: 2009-07-29 +%% +Type: language +Subtag: kcf +Description: Ukaan +Added: 2009-07-29 +%% +Type: language +Subtag: kcg +Description: Tyap +Added: 2009-07-29 +%% +Type: language +Subtag: kch +Description: Vono +Added: 2009-07-29 +%% +Type: language +Subtag: kci +Description: Kamantan +Added: 2009-07-29 +%% +Type: language +Subtag: kcj +Description: Kobiana +Added: 2009-07-29 +%% +Type: language +Subtag: kck +Description: Kalanga +Added: 2009-07-29 +%% +Type: language +Subtag: kcl +Description: Kela (Papua New Guinea) +Description: Kala +Added: 2009-07-29 +%% +Type: language +Subtag: kcm +Description: Gula (Central African Republic) +Added: 2009-07-29 +%% +Type: language +Subtag: kcn +Description: Nubi +Added: 2009-07-29 +%% +Type: language +Subtag: kco +Description: Kinalakna +Added: 2009-07-29 +%% +Type: language +Subtag: kcp +Description: Kanga +Added: 2009-07-29 +%% +Type: language +Subtag: kcq +Description: Kamo +Added: 2009-07-29 +%% +Type: language +Subtag: kcr +Description: Katla +Added: 2009-07-29 +%% +Type: language +Subtag: kcs +Description: Koenoem +Added: 2009-07-29 +%% +Type: language +Subtag: kct +Description: Kaian +Added: 2009-07-29 +%% +Type: language +Subtag: kcu +Description: Kami (Tanzania) +Added: 2009-07-29 +%% +Type: language +Subtag: kcv +Description: Kete +Added: 2009-07-29 +%% +Type: language +Subtag: kcw +Description: Kabwari +Added: 2009-07-29 +%% +Type: language +Subtag: kcx +Description: Kachama-Ganjule +Added: 2009-07-29 +%% +Type: language +Subtag: kcy +Description: Korandje +Added: 2009-07-29 +%% +Type: language +Subtag: kcz +Description: Konongo +Added: 2009-07-29 +%% +Type: language +Subtag: kda +Description: Worimi +Added: 2009-07-29 +%% +Type: language +Subtag: kdc +Description: Kutu +Added: 2009-07-29 +%% +Type: language +Subtag: kdd +Description: Yankunytjatjara +Added: 2009-07-29 +%% +Type: language +Subtag: kde +Description: Makonde +Added: 2009-07-29 +%% +Type: language +Subtag: kdf +Description: Mamusi +Added: 2009-07-29 +%% +Type: language +Subtag: kdg +Description: Seba +Added: 2009-07-29 +%% +Type: language +Subtag: kdh +Description: Tem +Added: 2009-07-29 +%% +Type: language +Subtag: kdi +Description: Kumam +Added: 2009-07-29 +%% +Type: language +Subtag: kdj +Description: Karamojong +Added: 2009-07-29 +%% +Type: language +Subtag: kdk +Description: Numèè +Description: Kwényi +Added: 2009-07-29 +%% +Type: language +Subtag: kdl +Description: Tsikimba +Added: 2009-07-29 +%% +Type: language +Subtag: kdm +Description: Kagoma +Added: 2009-07-29 +%% +Type: language +Subtag: kdn +Description: Kunda +Added: 2009-07-29 +%% +Type: language +Subtag: kdo +Description: Kordofanian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: kdp +Description: Kaningdon-Nindem +Added: 2009-07-29 +%% +Type: language +Subtag: kdq +Description: Koch +Added: 2009-07-29 +%% +Type: language +Subtag: kdr +Description: Karaim +Added: 2009-07-29 +%% +Type: language +Subtag: kdt +Description: Kuy +Added: 2009-07-29 +%% +Type: language +Subtag: kdu +Description: Kadaru +Added: 2009-07-29 +%% +Type: language +Subtag: kdv +Description: Kado +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see zkd, zkn +%% +Type: language +Subtag: kdw +Description: Koneraw +Added: 2009-07-29 +%% +Type: language +Subtag: kdx +Description: Kam +Added: 2009-07-29 +%% +Type: language +Subtag: kdy +Description: Keder +Description: Keijar +Added: 2009-07-29 +%% +Type: language +Subtag: kdz +Description: Kwaja +Added: 2009-07-29 +%% +Type: language +Subtag: kea +Description: Kabuverdianu +Added: 2009-07-29 +%% +Type: language +Subtag: keb +Description: Kélé +Added: 2009-07-29 +%% +Type: language +Subtag: kec +Description: Keiga +Added: 2009-07-29 +%% +Type: language +Subtag: ked +Description: Kerewe +Added: 2009-07-29 +%% +Type: language +Subtag: kee +Description: Eastern Keres +Added: 2009-07-29 +%% +Type: language +Subtag: kef +Description: Kpessi +Added: 2009-07-29 +%% +Type: language +Subtag: keg +Description: Tese +Added: 2009-07-29 +%% +Type: language +Subtag: keh +Description: Keak +Added: 2009-07-29 +%% +Type: language +Subtag: kei +Description: Kei +Added: 2009-07-29 +%% +Type: language +Subtag: kej +Description: Kadar +Added: 2009-07-29 +%% +Type: language +Subtag: kek +Description: Kekchí +Added: 2009-07-29 +%% +Type: language +Subtag: kel +Description: Kela (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: kem +Description: Kemak +Added: 2009-07-29 +%% +Type: language +Subtag: ken +Description: Kenyang +Added: 2009-07-29 +%% +Type: language +Subtag: keo +Description: Kakwa +Added: 2009-07-29 +%% +Type: language +Subtag: kep +Description: Kaikadi +Added: 2009-07-29 +%% +Type: language +Subtag: keq +Description: Kamar +Added: 2009-07-29 +%% +Type: language +Subtag: ker +Description: Kera +Added: 2009-07-29 +%% +Type: language +Subtag: kes +Description: Kugbo +Added: 2009-07-29 +%% +Type: language +Subtag: ket +Description: Ket +Added: 2009-07-29 +%% +Type: language +Subtag: keu +Description: Akebu +Added: 2009-07-29 +%% +Type: language +Subtag: kev +Description: Kanikkaran +Added: 2009-07-29 +%% +Type: language +Subtag: kew +Description: West Kewa +Added: 2009-07-29 +%% +Type: language +Subtag: kex +Description: Kukna +Added: 2009-07-29 +%% +Type: language +Subtag: key +Description: Kupia +Added: 2009-07-29 +%% +Type: language +Subtag: kez +Description: Kukele +Added: 2009-07-29 +%% +Type: language +Subtag: kfa +Description: Kodava +Added: 2009-07-29 +%% +Type: language +Subtag: kfb +Description: Northwestern Kolami +Added: 2009-07-29 +%% +Type: language +Subtag: kfc +Description: Konda-Dora +Added: 2009-07-29 +%% +Type: language +Subtag: kfd +Description: Korra Koraga +Added: 2009-07-29 +%% +Type: language +Subtag: kfe +Description: Kota (India) +Added: 2009-07-29 +%% +Type: language +Subtag: kff +Description: Koya +Added: 2009-07-29 +%% +Type: language +Subtag: kfg +Description: Kudiya +Added: 2009-07-29 +%% +Type: language +Subtag: kfh +Description: Kurichiya +Added: 2009-07-29 +%% +Type: language +Subtag: kfi +Description: Kannada Kurumba +Added: 2009-07-29 +%% +Type: language +Subtag: kfj +Description: Kemiehua +Added: 2009-07-29 +%% +Type: language +Subtag: kfk +Description: Kinnauri +Added: 2009-07-29 +%% +Type: language +Subtag: kfl +Description: Kung +Added: 2009-07-29 +%% +Type: language +Subtag: kfm +Description: Khunsari +Added: 2009-07-29 +%% +Type: language +Subtag: kfn +Description: Kuk +Added: 2009-07-29 +%% +Type: language +Subtag: kfo +Description: Koro (Côte d'Ivoire) +Added: 2009-07-29 +%% +Type: language +Subtag: kfp +Description: Korwa +Added: 2009-07-29 +%% +Type: language +Subtag: kfq +Description: Korku +Added: 2009-07-29 +%% +Type: language +Subtag: kfr +Description: Kachhi +Description: Kutchi +Added: 2009-07-29 +%% +Type: language +Subtag: kfs +Description: Bilaspuri +Added: 2009-07-29 +%% +Type: language +Subtag: kft +Description: Kanjari +Added: 2009-07-29 +%% +Type: language +Subtag: kfu +Description: Katkari +Added: 2009-07-29 +%% +Type: language +Subtag: kfv +Description: Kurmukar +Added: 2009-07-29 +%% +Type: language +Subtag: kfw +Description: Kharam Naga +Added: 2009-07-29 +%% +Type: language +Subtag: kfx +Description: Kullu Pahari +Added: 2009-07-29 +%% +Type: language +Subtag: kfy +Description: Kumaoni +Added: 2009-07-29 +%% +Type: language +Subtag: kfz +Description: Koromfé +Added: 2009-07-29 +%% +Type: language +Subtag: kga +Description: Koyaga +Added: 2009-07-29 +%% +Type: language +Subtag: kgb +Description: Kawe +Added: 2009-07-29 +%% +Type: language +Subtag: kgc +Description: Kasseng +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: tdf +%% +Type: language +Subtag: kgd +Description: Kataang +Added: 2009-07-29 +Deprecated: 2017-02-23 +Comments: see ncq, sct +%% +Type: language +Subtag: kge +Description: Komering +Added: 2009-07-29 +%% +Type: language +Subtag: kgf +Description: Kube +Added: 2009-07-29 +%% +Type: language +Subtag: kgg +Description: Kusunda +Added: 2009-07-29 +%% +Type: language +Subtag: kgh +Description: Upper Tanudan Kalinga +Added: 2009-07-29 +Deprecated: 2012-08-12 +Preferred-Value: kml +%% +Type: language +Subtag: kgi +Description: Selangor Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: kgj +Description: Gamale Kham +Added: 2009-07-29 +%% +Type: language +Subtag: kgk +Description: Kaiwá +Added: 2009-07-29 +%% +Type: language +Subtag: kgl +Description: Kunggari +Added: 2009-07-29 +%% +Type: language +Subtag: kgm +Description: Karipúna +Added: 2009-07-29 +%% +Type: language +Subtag: kgn +Description: Karingani +Added: 2009-07-29 +%% +Type: language +Subtag: kgo +Description: Krongo +Added: 2009-07-29 +%% +Type: language +Subtag: kgp +Description: Kaingang +Added: 2009-07-29 +%% +Type: language +Subtag: kgq +Description: Kamoro +Added: 2009-07-29 +%% +Type: language +Subtag: kgr +Description: Abun +Added: 2009-07-29 +%% +Type: language +Subtag: kgs +Description: Kumbainggar +Added: 2009-07-29 +%% +Type: language +Subtag: kgt +Description: Somyev +Added: 2009-07-29 +%% +Type: language +Subtag: kgu +Description: Kobol +Added: 2009-07-29 +%% +Type: language +Subtag: kgv +Description: Karas +Added: 2009-07-29 +%% +Type: language +Subtag: kgw +Description: Karon Dori +Added: 2009-07-29 +%% +Type: language +Subtag: kgx +Description: Kamaru +Added: 2009-07-29 +%% +Type: language +Subtag: kgy +Description: Kyerung +Added: 2009-07-29 +%% +Type: language +Subtag: kha +Description: Khasi +Added: 2005-10-16 +Comments: as of 2008-04-21 this subtag does not include Lyngngam; see + lyg +%% +Type: language +Subtag: khb +Description: Lü +Added: 2009-07-29 +%% +Type: language +Subtag: khc +Description: Tukang Besi North +Added: 2009-07-29 +%% +Type: language +Subtag: khd +Description: Bädi Kanum +Added: 2009-07-29 +%% +Type: language +Subtag: khe +Description: Korowai +Added: 2009-07-29 +%% +Type: language +Subtag: khf +Description: Khuen +Added: 2009-07-29 +%% +Type: language +Subtag: khg +Description: Khams Tibetan +Added: 2009-07-29 +%% +Type: language +Subtag: khh +Description: Kehu +Added: 2009-07-29 +%% +Type: language +Subtag: khi +Description: Khoisan languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: khj +Description: Kuturmi +Added: 2009-07-29 +%% +Type: language +Subtag: khk +Description: Halh Mongolian +Added: 2009-07-29 +Macrolanguage: mn +%% +Type: language +Subtag: khl +Description: Lusi +Added: 2009-07-29 +%% +Type: language +Subtag: khn +Description: Khandesi +Added: 2009-07-29 +%% +Type: language +Subtag: kho +Description: Khotanese +Description: Sakan +Added: 2005-10-16 +%% +Type: language +Subtag: khp +Description: Kapori +Description: Kapauri +Added: 2009-07-29 +%% +Type: language +Subtag: khq +Description: Koyra Chiini Songhay +Added: 2009-07-29 +%% +Type: language +Subtag: khr +Description: Kharia +Added: 2009-07-29 +%% +Type: language +Subtag: khs +Description: Kasua +Added: 2009-07-29 +%% +Type: language +Subtag: kht +Description: Khamti +Added: 2009-07-29 +%% +Type: language +Subtag: khu +Description: Nkhumbi +Added: 2009-07-29 +%% +Type: language +Subtag: khv +Description: Khvarshi +Added: 2009-07-29 +%% +Type: language +Subtag: khw +Description: Khowar +Added: 2009-07-29 +%% +Type: language +Subtag: khx +Description: Kanu +Added: 2009-07-29 +%% +Type: language +Subtag: khy +Description: Kele (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: khz +Description: Keapara +Added: 2009-07-29 +%% +Type: language +Subtag: kia +Description: Kim +Added: 2009-07-29 +%% +Type: language +Subtag: kib +Description: Koalib +Added: 2009-07-29 +%% +Type: language +Subtag: kic +Description: Kickapoo +Added: 2009-07-29 +%% +Type: language +Subtag: kid +Description: Koshin +Added: 2009-07-29 +%% +Type: language +Subtag: kie +Description: Kibet +Added: 2009-07-29 +%% +Type: language +Subtag: kif +Description: Eastern Parbate Kham +Added: 2009-07-29 +%% +Type: language +Subtag: kig +Description: Kimaama +Description: Kimaghima +Added: 2009-07-29 +%% +Type: language +Subtag: kih +Description: Kilmeri +Added: 2009-07-29 +%% +Type: language +Subtag: kii +Description: Kitsai +Added: 2009-07-29 +%% +Type: language +Subtag: kij +Description: Kilivila +Added: 2009-07-29 +%% +Type: language +Subtag: kil +Description: Kariya +Added: 2009-07-29 +%% +Type: language +Subtag: kim +Description: Karagas +Added: 2009-07-29 +%% +Type: language +Subtag: kio +Description: Kiowa +Added: 2009-07-29 +%% +Type: language +Subtag: kip +Description: Sheshi Kham +Added: 2009-07-29 +%% +Type: language +Subtag: kiq +Description: Kosadle +Description: Kosare +Added: 2009-07-29 +%% +Type: language +Subtag: kis +Description: Kis +Added: 2009-07-29 +%% +Type: language +Subtag: kit +Description: Agob +Added: 2009-07-29 +%% +Type: language +Subtag: kiu +Description: Kirmanjki (individual language) +Added: 2009-07-29 +Macrolanguage: zza +%% +Type: language +Subtag: kiv +Description: Kimbu +Added: 2009-07-29 +%% +Type: language +Subtag: kiw +Description: Northeast Kiwai +Added: 2009-07-29 +%% +Type: language +Subtag: kix +Description: Khiamniungan Naga +Added: 2009-07-29 +%% +Type: language +Subtag: kiy +Description: Kirikiri +Added: 2009-07-29 +%% +Type: language +Subtag: kiz +Description: Kisi +Added: 2009-07-29 +%% +Type: language +Subtag: kja +Description: Mlap +Added: 2009-07-29 +%% +Type: language +Subtag: kjb +Description: Q'anjob'al +Description: Kanjobal +Added: 2009-07-29 +%% +Type: language +Subtag: kjc +Description: Coastal Konjo +Added: 2009-07-29 +%% +Type: language +Subtag: kjd +Description: Southern Kiwai +Added: 2009-07-29 +%% +Type: language +Subtag: kje +Description: Kisar +Added: 2009-07-29 +%% +Type: language +Subtag: kjf +Description: Khalaj +Added: 2009-07-29 +%% +Type: language +Subtag: kjg +Description: Khmu +Added: 2009-07-29 +%% +Type: language +Subtag: kjh +Description: Khakas +Added: 2009-07-29 +%% +Type: language +Subtag: kji +Description: Zabana +Added: 2009-07-29 +%% +Type: language +Subtag: kjj +Description: Khinalugh +Added: 2009-07-29 +%% +Type: language +Subtag: kjk +Description: Highland Konjo +Added: 2009-07-29 +%% +Type: language +Subtag: kjl +Description: Western Parbate Kham +Added: 2009-07-29 +%% +Type: language +Subtag: kjm +Description: Kháng +Added: 2009-07-29 +%% +Type: language +Subtag: kjn +Description: Kunjen +Added: 2009-07-29 +%% +Type: language +Subtag: kjo +Description: Harijan Kinnauri +Added: 2009-07-29 +%% +Type: language +Subtag: kjp +Description: Pwo Eastern Karen +Added: 2009-07-29 +%% +Type: language +Subtag: kjq +Description: Western Keres +Added: 2009-07-29 +%% +Type: language +Subtag: kjr +Description: Kurudu +Added: 2009-07-29 +%% +Type: language +Subtag: kjs +Description: East Kewa +Added: 2009-07-29 +%% +Type: language +Subtag: kjt +Description: Phrae Pwo Karen +Added: 2009-07-29 +%% +Type: language +Subtag: kju +Description: Kashaya +Added: 2009-07-29 +%% +Type: language +Subtag: kjv +Description: Kaikavian Literary Language +Added: 2015-02-12 +%% +Type: language +Subtag: kjx +Description: Ramopa +Added: 2009-07-29 +%% +Type: language +Subtag: kjy +Description: Erave +Added: 2009-07-29 +%% +Type: language +Subtag: kjz +Description: Bumthangkha +Added: 2009-07-29 +%% +Type: language +Subtag: kka +Description: Kakanda +Added: 2009-07-29 +%% +Type: language +Subtag: kkb +Description: Kwerisa +Added: 2009-07-29 +%% +Type: language +Subtag: kkc +Description: Odoodee +Added: 2009-07-29 +%% +Type: language +Subtag: kkd +Description: Kinuku +Added: 2009-07-29 +%% +Type: language +Subtag: kke +Description: Kakabe +Added: 2009-07-29 +%% +Type: language +Subtag: kkf +Description: Kalaktang Monpa +Added: 2009-07-29 +%% +Type: language +Subtag: kkg +Description: Mabaka Valley Kalinga +Added: 2009-07-29 +%% +Type: language +Subtag: kkh +Description: Khün +Added: 2009-07-29 +%% +Type: language +Subtag: kki +Description: Kagulu +Added: 2009-07-29 +%% +Type: language +Subtag: kkj +Description: Kako +Added: 2009-07-29 +%% +Type: language +Subtag: kkk +Description: Kokota +Added: 2009-07-29 +%% +Type: language +Subtag: kkl +Description: Kosarek Yale +Added: 2009-07-29 +%% +Type: language +Subtag: kkm +Description: Kiong +Added: 2009-07-29 +%% +Type: language +Subtag: kkn +Description: Kon Keu +Added: 2009-07-29 +%% +Type: language +Subtag: kko +Description: Karko +Added: 2009-07-29 +%% +Type: language +Subtag: kkp +Description: Gugubera +Description: Koko-Bera +Added: 2009-07-29 +%% +Type: language +Subtag: kkq +Description: Kaiku +Added: 2009-07-29 +%% +Type: language +Subtag: kkr +Description: Kir-Balar +Added: 2009-07-29 +%% +Type: language +Subtag: kks +Description: Giiwo +Added: 2009-07-29 +%% +Type: language +Subtag: kkt +Description: Koi +Added: 2009-07-29 +%% +Type: language +Subtag: kku +Description: Tumi +Added: 2009-07-29 +%% +Type: language +Subtag: kkv +Description: Kangean +Added: 2009-07-29 +%% +Type: language +Subtag: kkw +Description: Teke-Kukuya +Added: 2009-07-29 +%% +Type: language +Subtag: kkx +Description: Kohin +Added: 2009-07-29 +%% +Type: language +Subtag: kky +Description: Guugu Yimidhirr +Description: Guguyimidjir +Added: 2009-07-29 +%% +Type: language +Subtag: kkz +Description: Kaska +Added: 2009-07-29 +%% +Type: language +Subtag: kla +Description: Klamath-Modoc +Added: 2009-07-29 +%% +Type: language +Subtag: klb +Description: Kiliwa +Added: 2009-07-29 +%% +Type: language +Subtag: klc +Description: Kolbila +Added: 2009-07-29 +%% +Type: language +Subtag: kld +Description: Gamilaraay +Added: 2009-07-29 +%% +Type: language +Subtag: kle +Description: Kulung (Nepal) +Added: 2009-07-29 +%% +Type: language +Subtag: klf +Description: Kendeje +Added: 2009-07-29 +%% +Type: language +Subtag: klg +Description: Tagakaulo +Added: 2009-07-29 +%% +Type: language +Subtag: klh +Description: Weliki +Added: 2009-07-29 +%% +Type: language +Subtag: kli +Description: Kalumpang +Added: 2009-07-29 +%% +Type: language +Subtag: klj +Description: Turkic Khalaj +Added: 2009-07-29 +%% +Type: language +Subtag: klk +Description: Kono (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: kll +Description: Kagan Kalagan +Added: 2009-07-29 +%% +Type: language +Subtag: klm +Description: Migum +Added: 2009-07-29 +%% +Type: language +Subtag: kln +Description: Kalenjin +Added: 2009-07-29 +Scope: macrolanguage +%% +Type: language +Subtag: klo +Description: Kapya +Added: 2009-07-29 +%% +Type: language +Subtag: klp +Description: Kamasa +Added: 2009-07-29 +%% +Type: language +Subtag: klq +Description: Rumu +Added: 2009-07-29 +%% +Type: language +Subtag: klr +Description: Khaling +Added: 2009-07-29 +%% +Type: language +Subtag: kls +Description: Kalasha +Added: 2009-07-29 +%% +Type: language +Subtag: klt +Description: Nukna +Added: 2009-07-29 +%% +Type: language +Subtag: klu +Description: Klao +Added: 2009-07-29 +%% +Type: language +Subtag: klv +Description: Maskelynes +Added: 2009-07-29 +%% +Type: language +Subtag: klw +Description: Tado +Description: Lindu +Added: 2009-07-29 +%% +Type: language +Subtag: klx +Description: Koluwawa +Added: 2009-07-29 +%% +Type: language +Subtag: kly +Description: Kalao +Added: 2009-07-29 +%% +Type: language +Subtag: klz +Description: Kabola +Added: 2009-07-29 +%% +Type: language +Subtag: kma +Description: Konni +Added: 2009-07-29 +%% +Type: language +Subtag: kmb +Description: Kimbundu +Added: 2005-10-16 +%% +Type: language +Subtag: kmc +Description: Southern Dong +Added: 2009-07-29 +%% +Type: language +Subtag: kmd +Description: Majukayang Kalinga +Added: 2009-07-29 +%% +Type: language +Subtag: kme +Description: Bakole +Added: 2009-07-29 +%% +Type: language +Subtag: kmf +Description: Kare (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: kmg +Description: Kâte +Added: 2009-07-29 +%% +Type: language +Subtag: kmh +Description: Kalam +Added: 2009-07-29 +%% +Type: language +Subtag: kmi +Description: Kami (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: kmj +Description: Kumarbhag Paharia +Added: 2009-07-29 +%% +Type: language +Subtag: kmk +Description: Limos Kalinga +Added: 2009-07-29 +%% +Type: language +Subtag: kml +Description: Tanudan Kalinga +Added: 2009-07-29 +%% +Type: language +Subtag: kmm +Description: Kom (India) +Added: 2009-07-29 +%% +Type: language +Subtag: kmn +Description: Awtuw +Added: 2009-07-29 +%% +Type: language +Subtag: kmo +Description: Kwoma +Added: 2009-07-29 +%% +Type: language +Subtag: kmp +Description: Gimme +Added: 2009-07-29 +%% +Type: language +Subtag: kmq +Description: Kwama +Added: 2009-07-29 +%% +Type: language +Subtag: kmr +Description: Northern Kurdish +Added: 2009-07-29 +Macrolanguage: ku +%% +Type: language +Subtag: kms +Description: Kamasau +Added: 2009-07-29 +%% +Type: language +Subtag: kmt +Description: Kemtuik +Added: 2009-07-29 +%% +Type: language +Subtag: kmu +Description: Kanite +Added: 2009-07-29 +%% +Type: language +Subtag: kmv +Description: Karipúna Creole French +Added: 2009-07-29 +%% +Type: language +Subtag: kmw +Description: Komo (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: kmx +Description: Waboda +Added: 2009-07-29 +%% +Type: language +Subtag: kmy +Description: Koma +Added: 2009-07-29 +%% +Type: language +Subtag: kmz +Description: Khorasani Turkish +Added: 2009-07-29 +%% +Type: language +Subtag: kna +Description: Dera (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: knb +Description: Lubuagan Kalinga +Added: 2009-07-29 +%% +Type: language +Subtag: knc +Description: Central Kanuri +Added: 2009-07-29 +Macrolanguage: kr +%% +Type: language +Subtag: knd +Description: Konda +Added: 2009-07-29 +%% +Type: language +Subtag: kne +Description: Kankanaey +Added: 2009-07-29 +%% +Type: language +Subtag: knf +Description: Mankanya +Added: 2009-07-29 +%% +Type: language +Subtag: kng +Description: Koongo +Added: 2009-07-29 +Macrolanguage: kg +%% +Type: language +Subtag: kni +Description: Kanufi +Added: 2009-07-29 +%% +Type: language +Subtag: knj +Description: Western Kanjobal +Added: 2009-07-29 +%% +Type: language +Subtag: knk +Description: Kuranko +Added: 2009-07-29 +%% +Type: language +Subtag: knl +Description: Keninjal +Added: 2009-07-29 +%% +Type: language +Subtag: knm +Description: Kanamarí +Added: 2009-07-29 +%% +Type: language +Subtag: knn +Description: Konkani (individual language) +Added: 2009-07-29 +Macrolanguage: kok +%% +Type: language +Subtag: kno +Description: Kono (Sierra Leone) +Added: 2009-07-29 +%% +Type: language +Subtag: knp +Description: Kwanja +Added: 2009-07-29 +%% +Type: language +Subtag: knq +Description: Kintaq +Added: 2009-07-29 +%% +Type: language +Subtag: knr +Description: Kaningra +Added: 2009-07-29 +%% +Type: language +Subtag: kns +Description: Kensiu +Added: 2009-07-29 +%% +Type: language +Subtag: knt +Description: Panoan Katukína +Added: 2009-07-29 +%% +Type: language +Subtag: knu +Description: Kono (Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: knv +Description: Tabo +Added: 2009-07-29 +%% +Type: language +Subtag: knw +Description: Kung-Ekoka +Added: 2009-07-29 +%% +Type: language +Subtag: knx +Description: Kendayan +Description: Salako +Added: 2009-07-29 +%% +Type: language +Subtag: kny +Description: Kanyok +Added: 2009-07-29 +%% +Type: language +Subtag: knz +Description: Kalamsé +Added: 2009-07-29 +%% +Type: language +Subtag: koa +Description: Konomala +Added: 2009-07-29 +%% +Type: language +Subtag: koc +Description: Kpati +Added: 2009-07-29 +%% +Type: language +Subtag: kod +Description: Kodi +Added: 2009-07-29 +%% +Type: language +Subtag: koe +Description: Kacipo-Balesi +Added: 2009-07-29 +%% +Type: language +Subtag: kof +Description: Kubi +Added: 2009-07-29 +%% +Type: language +Subtag: kog +Description: Cogui +Description: Kogi +Added: 2009-07-29 +%% +Type: language +Subtag: koh +Description: Koyo +Added: 2009-07-29 +%% +Type: language +Subtag: koi +Description: Komi-Permyak +Added: 2009-07-29 +Macrolanguage: kv +%% +Type: language +Subtag: koj +Description: Sara Dunjo +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: kwv +%% +Type: language +Subtag: kok +Description: Konkani (macrolanguage) +Added: 2005-10-16 +Suppress-Script: Deva +Scope: macrolanguage +%% +Type: language +Subtag: kol +Description: Kol (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: koo +Description: Konzo +Added: 2009-07-29 +%% +Type: language +Subtag: kop +Description: Waube +Added: 2009-07-29 +%% +Type: language +Subtag: koq +Description: Kota (Gabon) +Added: 2009-07-29 +%% +Type: language +Subtag: kos +Description: Kosraean +Added: 2005-10-16 +%% +Type: language +Subtag: kot +Description: Lagwan +Added: 2009-07-29 +%% +Type: language +Subtag: kou +Description: Koke +Added: 2009-07-29 +%% +Type: language +Subtag: kov +Description: Kudu-Camo +Added: 2009-07-29 +%% +Type: language +Subtag: kow +Description: Kugama +Added: 2009-07-29 +%% +Type: language +Subtag: kox +Description: Coxima +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: koy +Description: Koyukon +Added: 2009-07-29 +%% +Type: language +Subtag: koz +Description: Korak +Added: 2009-07-29 +%% +Type: language +Subtag: kpa +Description: Kutto +Added: 2009-07-29 +%% +Type: language +Subtag: kpb +Description: Mullu Kurumba +Added: 2009-07-29 +%% +Type: language +Subtag: kpc +Description: Curripaco +Added: 2009-07-29 +%% +Type: language +Subtag: kpd +Description: Koba +Added: 2009-07-29 +%% +Type: language +Subtag: kpe +Description: Kpelle +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: kpf +Description: Komba +Added: 2009-07-29 +%% +Type: language +Subtag: kpg +Description: Kapingamarangi +Added: 2009-07-29 +%% +Type: language +Subtag: kph +Description: Kplang +Added: 2009-07-29 +%% +Type: language +Subtag: kpi +Description: Kofei +Added: 2009-07-29 +%% +Type: language +Subtag: kpj +Description: Karajá +Added: 2009-07-29 +%% +Type: language +Subtag: kpk +Description: Kpan +Added: 2009-07-29 +%% +Type: language +Subtag: kpl +Description: Kpala +Added: 2009-07-29 +%% +Type: language +Subtag: kpm +Description: Koho +Added: 2009-07-29 +%% +Type: language +Subtag: kpn +Description: Kepkiriwát +Added: 2009-07-29 +%% +Type: language +Subtag: kpo +Description: Ikposo +Added: 2009-07-29 +%% +Type: language +Subtag: kpp +Description: Paku Karen +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see jkm, jkp +%% +Type: language +Subtag: kpq +Description: Korupun-Sela +Added: 2009-07-29 +%% +Type: language +Subtag: kpr +Description: Korafe-Yegha +Added: 2009-07-29 +%% +Type: language +Subtag: kps +Description: Tehit +Added: 2009-07-29 +%% +Type: language +Subtag: kpt +Description: Karata +Added: 2009-07-29 +%% +Type: language +Subtag: kpu +Description: Kafoa +Added: 2009-07-29 +%% +Type: language +Subtag: kpv +Description: Komi-Zyrian +Added: 2009-07-29 +Macrolanguage: kv +%% +Type: language +Subtag: kpw +Description: Kobon +Added: 2009-07-29 +%% +Type: language +Subtag: kpx +Description: Mountain Koiali +Added: 2009-07-29 +%% +Type: language +Subtag: kpy +Description: Koryak +Added: 2009-07-29 +%% +Type: language +Subtag: kpz +Description: Kupsabiny +Added: 2009-07-29 +%% +Type: language +Subtag: kqa +Description: Mum +Added: 2009-07-29 +%% +Type: language +Subtag: kqb +Description: Kovai +Added: 2009-07-29 +%% +Type: language +Subtag: kqc +Description: Doromu-Koki +Added: 2009-07-29 +%% +Type: language +Subtag: kqd +Description: Koy Sanjaq Surat +Added: 2009-07-29 +%% +Type: language +Subtag: kqe +Description: Kalagan +Added: 2009-07-29 +%% +Type: language +Subtag: kqf +Description: Kakabai +Added: 2009-07-29 +%% +Type: language +Subtag: kqg +Description: Khe +Added: 2009-07-29 +%% +Type: language +Subtag: kqh +Description: Kisankasa +Added: 2009-07-29 +%% +Type: language +Subtag: kqi +Description: Koitabu +Added: 2009-07-29 +%% +Type: language +Subtag: kqj +Description: Koromira +Added: 2009-07-29 +%% +Type: language +Subtag: kqk +Description: Kotafon Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: kql +Description: Kyenele +Added: 2009-07-29 +%% +Type: language +Subtag: kqm +Description: Khisa +Added: 2009-07-29 +%% +Type: language +Subtag: kqn +Description: Kaonde +Added: 2009-07-29 +%% +Type: language +Subtag: kqo +Description: Eastern Krahn +Added: 2009-07-29 +%% +Type: language +Subtag: kqp +Description: Kimré +Added: 2009-07-29 +%% +Type: language +Subtag: kqq +Description: Krenak +Added: 2009-07-29 +%% +Type: language +Subtag: kqr +Description: Kimaragang +Added: 2009-07-29 +%% +Type: language +Subtag: kqs +Description: Northern Kissi +Added: 2009-07-29 +%% +Type: language +Subtag: kqt +Description: Klias River Kadazan +Added: 2009-07-29 +%% +Type: language +Subtag: kqu +Description: Seroa +Added: 2009-07-29 +%% +Type: language +Subtag: kqv +Description: Okolod +Added: 2009-07-29 +%% +Type: language +Subtag: kqw +Description: Kandas +Added: 2009-07-29 +%% +Type: language +Subtag: kqx +Description: Mser +Added: 2009-07-29 +%% +Type: language +Subtag: kqy +Description: Koorete +Added: 2009-07-29 +%% +Type: language +Subtag: kqz +Description: Korana +Added: 2009-07-29 +%% +Type: language +Subtag: kra +Description: Kumhali +Added: 2009-07-29 +%% +Type: language +Subtag: krb +Description: Karkin +Added: 2009-07-29 +%% +Type: language +Subtag: krc +Description: Karachay-Balkar +Added: 2005-10-16 +%% +Type: language +Subtag: krd +Description: Kairui-Midiki +Added: 2009-07-29 +%% +Type: language +Subtag: kre +Description: Panará +Added: 2009-07-29 +%% +Type: language +Subtag: krf +Description: Koro (Vanuatu) +Added: 2009-07-29 +%% +Type: language +Subtag: krh +Description: Kurama +Added: 2009-07-29 +%% +Type: language +Subtag: kri +Description: Krio +Added: 2009-07-29 +%% +Type: language +Subtag: krj +Description: Kinaray-A +Added: 2009-07-29 +%% +Type: language +Subtag: krk +Description: Kerek +Added: 2009-07-29 +%% +Type: language +Subtag: krl +Description: Karelian +Added: 2006-03-08 +%% +Type: language +Subtag: krm +Description: Krim +Added: 2009-07-29 +Deprecated: 2017-02-23 +Preferred-Value: bmf +%% +Type: language +Subtag: krn +Description: Sapo +Added: 2009-07-29 +%% +Type: language +Subtag: kro +Description: Kru languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: krp +Description: Korop +Added: 2009-07-29 +%% +Type: language +Subtag: krr +Description: Krung +Added: 2009-07-29 +%% +Type: language +Subtag: krs +Description: Gbaya (Sudan) +Added: 2009-07-29 +%% +Type: language +Subtag: krt +Description: Tumari Kanuri +Added: 2009-07-29 +Macrolanguage: kr +%% +Type: language +Subtag: kru +Description: Kurukh +Added: 2005-10-16 +%% +Type: language +Subtag: krv +Description: Kavet +Added: 2009-07-29 +%% +Type: language +Subtag: krw +Description: Western Krahn +Added: 2009-07-29 +%% +Type: language +Subtag: krx +Description: Karon +Added: 2009-07-29 +%% +Type: language +Subtag: kry +Description: Kryts +Added: 2009-07-29 +%% +Type: language +Subtag: krz +Description: Sota Kanum +Added: 2009-07-29 +%% +Type: language +Subtag: ksa +Description: Shuwa-Zamani +Added: 2009-07-29 +%% +Type: language +Subtag: ksb +Description: Shambala +Added: 2009-07-29 +%% +Type: language +Subtag: ksc +Description: Southern Kalinga +Added: 2009-07-29 +%% +Type: language +Subtag: ksd +Description: Kuanua +Added: 2009-07-29 +%% +Type: language +Subtag: kse +Description: Kuni +Added: 2009-07-29 +%% +Type: language +Subtag: ksf +Description: Bafia +Added: 2009-07-29 +%% +Type: language +Subtag: ksg +Description: Kusaghe +Added: 2009-07-29 +%% +Type: language +Subtag: ksh +Description: Kölsch +Added: 2009-07-29 +%% +Type: language +Subtag: ksi +Description: Krisa +Description: I'saka +Added: 2009-07-29 +%% +Type: language +Subtag: ksj +Description: Uare +Added: 2009-07-29 +%% +Type: language +Subtag: ksk +Description: Kansa +Added: 2009-07-29 +%% +Type: language +Subtag: ksl +Description: Kumalu +Added: 2009-07-29 +%% +Type: language +Subtag: ksm +Description: Kumba +Added: 2009-07-29 +%% +Type: language +Subtag: ksn +Description: Kasiguranin +Added: 2009-07-29 +%% +Type: language +Subtag: kso +Description: Kofa +Added: 2009-07-29 +%% +Type: language +Subtag: ksp +Description: Kaba +Added: 2009-07-29 +%% +Type: language +Subtag: ksq +Description: Kwaami +Added: 2009-07-29 +%% +Type: language +Subtag: ksr +Description: Borong +Added: 2009-07-29 +%% +Type: language +Subtag: kss +Description: Southern Kisi +Added: 2009-07-29 +%% +Type: language +Subtag: kst +Description: Winyé +Added: 2009-07-29 +%% +Type: language +Subtag: ksu +Description: Khamyang +Added: 2009-07-29 +%% +Type: language +Subtag: ksv +Description: Kusu +Added: 2009-07-29 +%% +Type: language +Subtag: ksw +Description: S'gaw Karen +Added: 2009-07-29 +%% +Type: language +Subtag: ksx +Description: Kedang +Added: 2009-07-29 +%% +Type: language +Subtag: ksy +Description: Kharia Thar +Added: 2009-07-29 +%% +Type: language +Subtag: ksz +Description: Kodaku +Added: 2009-07-29 +%% +Type: language +Subtag: kta +Description: Katua +Added: 2009-07-29 +%% +Type: language +Subtag: ktb +Description: Kambaata +Added: 2009-07-29 +%% +Type: language +Subtag: ktc +Description: Kholok +Added: 2009-07-29 +%% +Type: language +Subtag: ktd +Description: Kokata +Description: Kukatha +Added: 2009-07-29 +%% +Type: language +Subtag: kte +Description: Nubri +Added: 2009-07-29 +%% +Type: language +Subtag: ktf +Description: Kwami +Added: 2009-07-29 +%% +Type: language +Subtag: ktg +Description: Kalkutung +Added: 2009-07-29 +%% +Type: language +Subtag: kth +Description: Karanga +Added: 2009-07-29 +%% +Type: language +Subtag: kti +Description: North Muyu +Added: 2009-07-29 +%% +Type: language +Subtag: ktj +Description: Plapo Krumen +Added: 2009-07-29 +%% +Type: language +Subtag: ktk +Description: Kaniet +Added: 2009-07-29 +%% +Type: language +Subtag: ktl +Description: Koroshi +Added: 2009-07-29 +%% +Type: language +Subtag: ktm +Description: Kurti +Added: 2009-07-29 +%% +Type: language +Subtag: ktn +Description: Karitiâna +Added: 2009-07-29 +%% +Type: language +Subtag: kto +Description: Kuot +Added: 2009-07-29 +%% +Type: language +Subtag: ktp +Description: Kaduo +Added: 2009-07-29 +%% +Type: language +Subtag: ktq +Description: Katabaga +Added: 2009-07-29 +%% +Type: language +Subtag: ktr +Description: Kota Marudu Tinagas +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: dtp +%% +Type: language +Subtag: kts +Description: South Muyu +Added: 2009-07-29 +%% +Type: language +Subtag: ktt +Description: Ketum +Added: 2009-07-29 +%% +Type: language +Subtag: ktu +Description: Kituba (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: ktv +Description: Eastern Katu +Added: 2009-07-29 +%% +Type: language +Subtag: ktw +Description: Kato +Added: 2009-07-29 +%% +Type: language +Subtag: ktx +Description: Kaxararí +Added: 2009-07-29 +%% +Type: language +Subtag: kty +Description: Kango (Bas-Uélé District) +Added: 2009-07-29 +%% +Type: language +Subtag: ktz +Description: Juǀʼhoan +Description: Juǀʼhoansi +Added: 2009-07-29 +%% +Type: language +Subtag: kub +Description: Kutep +Added: 2009-07-29 +%% +Type: language +Subtag: kuc +Description: Kwinsu +Added: 2009-07-29 +%% +Type: language +Subtag: kud +Description: 'Auhelawa +Added: 2009-07-29 +%% +Type: language +Subtag: kue +Description: Kuman (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: kuf +Description: Western Katu +Added: 2009-07-29 +%% +Type: language +Subtag: kug +Description: Kupa +Added: 2009-07-29 +%% +Type: language +Subtag: kuh +Description: Kushi +Added: 2009-07-29 +%% +Type: language +Subtag: kui +Description: Kuikúro-Kalapálo +Added: 2009-07-29 +%% +Type: language +Subtag: kuj +Description: Kuria +Added: 2009-07-29 +%% +Type: language +Subtag: kuk +Description: Kepo' +Added: 2009-07-29 +%% +Type: language +Subtag: kul +Description: Kulere +Added: 2009-07-29 +%% +Type: language +Subtag: kum +Description: Kumyk +Added: 2005-10-16 +%% +Type: language +Subtag: kun +Description: Kunama +Added: 2009-07-29 +%% +Type: language +Subtag: kuo +Description: Kumukio +Added: 2009-07-29 +%% +Type: language +Subtag: kup +Description: Kunimaipa +Added: 2009-07-29 +%% +Type: language +Subtag: kuq +Description: Karipuna +Added: 2009-07-29 +%% +Type: language +Subtag: kus +Description: Kusaal +Added: 2009-07-29 +%% +Type: language +Subtag: kut +Description: Kutenai +Added: 2005-10-16 +%% +Type: language +Subtag: kuu +Description: Upper Kuskokwim +Added: 2009-07-29 +%% +Type: language +Subtag: kuv +Description: Kur +Added: 2009-07-29 +%% +Type: language +Subtag: kuw +Description: Kpagua +Added: 2009-07-29 +%% +Type: language +Subtag: kux +Description: Kukatja +Added: 2009-07-29 +%% +Type: language +Subtag: kuy +Description: Kuuku-Ya'u +Added: 2009-07-29 +%% +Type: language +Subtag: kuz +Description: Kunza +Added: 2009-07-29 +%% +Type: language +Subtag: kva +Description: Bagvalal +Added: 2009-07-29 +%% +Type: language +Subtag: kvb +Description: Kubu +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: kvc +Description: Kove +Added: 2009-07-29 +%% +Type: language +Subtag: kvd +Description: Kui (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: kve +Description: Kalabakan +Added: 2009-07-29 +%% +Type: language +Subtag: kvf +Description: Kabalai +Added: 2009-07-29 +%% +Type: language +Subtag: kvg +Description: Kuni-Boazi +Added: 2009-07-29 +%% +Type: language +Subtag: kvh +Description: Komodo +Added: 2009-07-29 +%% +Type: language +Subtag: kvi +Description: Kwang +Added: 2009-07-29 +%% +Type: language +Subtag: kvj +Description: Psikye +Added: 2009-07-29 +%% +Type: language +Subtag: kvk +Description: Korean Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: kvl +Description: Kayaw +Added: 2009-07-29 +%% +Type: language +Subtag: kvm +Description: Kendem +Added: 2009-07-29 +%% +Type: language +Subtag: kvn +Description: Border Kuna +Added: 2009-07-29 +%% +Type: language +Subtag: kvo +Description: Dobel +Added: 2009-07-29 +%% +Type: language +Subtag: kvp +Description: Kompane +Added: 2009-07-29 +%% +Type: language +Subtag: kvq +Description: Geba Karen +Added: 2009-07-29 +%% +Type: language +Subtag: kvr +Description: Kerinci +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: kvs +Description: Kunggara +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: gdj +%% +Type: language +Subtag: kvt +Description: Lahta Karen +Description: Lahta +Added: 2009-07-29 +%% +Type: language +Subtag: kvu +Description: Yinbaw Karen +Added: 2009-07-29 +%% +Type: language +Subtag: kvv +Description: Kola +Added: 2009-07-29 +%% +Type: language +Subtag: kvw +Description: Wersing +Added: 2009-07-29 +%% +Type: language +Subtag: kvx +Description: Parkari Koli +Added: 2009-07-29 +%% +Type: language +Subtag: kvy +Description: Yintale Karen +Description: Yintale +Added: 2009-07-29 +%% +Type: language +Subtag: kvz +Description: Tsakwambo +Description: Tsaukambo +Added: 2009-07-29 +%% +Type: language +Subtag: kwa +Description: Dâw +Added: 2009-07-29 +%% +Type: language +Subtag: kwb +Description: Kwa +Added: 2009-07-29 +%% +Type: language +Subtag: kwc +Description: Likwala +Added: 2009-07-29 +%% +Type: language +Subtag: kwd +Description: Kwaio +Added: 2009-07-29 +%% +Type: language +Subtag: kwe +Description: Kwerba +Added: 2009-07-29 +%% +Type: language +Subtag: kwf +Description: Kwara'ae +Added: 2009-07-29 +%% +Type: language +Subtag: kwg +Description: Sara Kaba Deme +Added: 2009-07-29 +%% +Type: language +Subtag: kwh +Description: Kowiai +Added: 2009-07-29 +%% +Type: language +Subtag: kwi +Description: Awa-Cuaiquer +Added: 2009-07-29 +%% +Type: language +Subtag: kwj +Description: Kwanga +Added: 2009-07-29 +%% +Type: language +Subtag: kwk +Description: Kwakiutl +Added: 2009-07-29 +%% +Type: language +Subtag: kwl +Description: Kofyar +Added: 2009-07-29 +%% +Type: language +Subtag: kwm +Description: Kwambi +Added: 2009-07-29 +%% +Type: language +Subtag: kwn +Description: Kwangali +Added: 2009-07-29 +%% +Type: language +Subtag: kwo +Description: Kwomtari +Added: 2009-07-29 +%% +Type: language +Subtag: kwp +Description: Kodia +Added: 2009-07-29 +%% +Type: language +Subtag: kwq +Description: Kwak +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: yam +%% +Type: language +Subtag: kwr +Description: Kwer +Added: 2009-07-29 +%% +Type: language +Subtag: kws +Description: Kwese +Added: 2009-07-29 +%% +Type: language +Subtag: kwt +Description: Kwesten +Added: 2009-07-29 +%% +Type: language +Subtag: kwu +Description: Kwakum +Added: 2009-07-29 +%% +Type: language +Subtag: kwv +Description: Sara Kaba Náà +Added: 2009-07-29 +%% +Type: language +Subtag: kww +Description: Kwinti +Added: 2009-07-29 +%% +Type: language +Subtag: kwx +Description: Khirwar +Added: 2009-07-29 +%% +Type: language +Subtag: kwy +Description: San Salvador Kongo +Added: 2009-07-29 +Macrolanguage: kg +%% +Type: language +Subtag: kwz +Description: Kwadi +Added: 2009-07-29 +%% +Type: language +Subtag: kxa +Description: Kairiru +Added: 2009-07-29 +%% +Type: language +Subtag: kxb +Description: Krobu +Added: 2009-07-29 +%% +Type: language +Subtag: kxc +Description: Konso +Description: Khonso +Added: 2009-07-29 +%% +Type: language +Subtag: kxd +Description: Brunei +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: kxe +Description: Kakihum +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: tvd +%% +Type: language +Subtag: kxf +Description: Manumanaw Karen +Description: Manumanaw +Added: 2009-07-29 +%% +Type: language +Subtag: kxh +Description: Karo (Ethiopia) +Added: 2009-07-29 +%% +Type: language +Subtag: kxi +Description: Keningau Murut +Added: 2009-07-29 +%% +Type: language +Subtag: kxj +Description: Kulfa +Added: 2009-07-29 +%% +Type: language +Subtag: kxk +Description: Zayein Karen +Added: 2009-07-29 +%% +Type: language +Subtag: kxl +Description: Nepali Kurux +Added: 2009-07-29 +%% +Type: language +Subtag: kxm +Description: Northern Khmer +Added: 2009-07-29 +%% +Type: language +Subtag: kxn +Description: Kanowit-Tanjong Melanau +Added: 2009-07-29 +%% +Type: language +Subtag: kxo +Description: Kanoé +Added: 2009-07-29 +%% +Type: language +Subtag: kxp +Description: Wadiyara Koli +Added: 2009-07-29 +%% +Type: language +Subtag: kxq +Description: Smärky Kanum +Added: 2009-07-29 +%% +Type: language +Subtag: kxr +Description: Koro (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: kxs +Description: Kangjia +Added: 2009-07-29 +%% +Type: language +Subtag: kxt +Description: Koiwat +Added: 2009-07-29 +%% +Type: language +Subtag: kxu +Description: Kui (India) +Added: 2009-07-29 +%% +Type: language +Subtag: kxv +Description: Kuvi +Added: 2009-07-29 +%% +Type: language +Subtag: kxw +Description: Konai +Added: 2009-07-29 +%% +Type: language +Subtag: kxx +Description: Likuba +Added: 2009-07-29 +%% +Type: language +Subtag: kxy +Description: Kayong +Added: 2009-07-29 +%% +Type: language +Subtag: kxz +Description: Kerewo +Added: 2009-07-29 +%% +Type: language +Subtag: kya +Description: Kwaya +Added: 2009-07-29 +%% +Type: language +Subtag: kyb +Description: Butbut Kalinga +Added: 2009-07-29 +%% +Type: language +Subtag: kyc +Description: Kyaka +Added: 2009-07-29 +%% +Type: language +Subtag: kyd +Description: Karey +Added: 2009-07-29 +%% +Type: language +Subtag: kye +Description: Krache +Added: 2009-07-29 +%% +Type: language +Subtag: kyf +Description: Kouya +Added: 2009-07-29 +%% +Type: language +Subtag: kyg +Description: Keyagana +Added: 2009-07-29 +%% +Type: language +Subtag: kyh +Description: Karok +Added: 2009-07-29 +%% +Type: language +Subtag: kyi +Description: Kiput +Added: 2009-07-29 +%% +Type: language +Subtag: kyj +Description: Karao +Added: 2009-07-29 +%% +Type: language +Subtag: kyk +Description: Kamayo +Added: 2009-07-29 +%% +Type: language +Subtag: kyl +Description: Kalapuya +Added: 2009-07-29 +%% +Type: language +Subtag: kym +Description: Kpatili +Added: 2009-07-29 +%% +Type: language +Subtag: kyn +Description: Northern Binukidnon +Added: 2009-07-29 +%% +Type: language +Subtag: kyo +Description: Kelon +Added: 2009-07-29 +%% +Type: language +Subtag: kyp +Description: Kang +Added: 2009-07-29 +%% +Type: language +Subtag: kyq +Description: Kenga +Added: 2009-07-29 +%% +Type: language +Subtag: kyr +Description: Kuruáya +Added: 2009-07-29 +%% +Type: language +Subtag: kys +Description: Baram Kayan +Added: 2009-07-29 +%% +Type: language +Subtag: kyt +Description: Kayagar +Added: 2009-07-29 +%% +Type: language +Subtag: kyu +Description: Western Kayah +Added: 2009-07-29 +%% +Type: language +Subtag: kyv +Description: Kayort +Added: 2009-07-29 +%% +Type: language +Subtag: kyw +Description: Kudmali +Added: 2009-07-29 +%% +Type: language +Subtag: kyx +Description: Rapoisi +Added: 2009-07-29 +%% +Type: language +Subtag: kyy +Description: Kambaira +Added: 2009-07-29 +%% +Type: language +Subtag: kyz +Description: Kayabí +Added: 2009-07-29 +%% +Type: language +Subtag: kza +Description: Western Karaboro +Added: 2009-07-29 +%% +Type: language +Subtag: kzb +Description: Kaibobo +Added: 2009-07-29 +%% +Type: language +Subtag: kzc +Description: Bondoukou Kulango +Added: 2009-07-29 +%% +Type: language +Subtag: kzd +Description: Kadai +Added: 2009-07-29 +%% +Type: language +Subtag: kze +Description: Kosena +Added: 2009-07-29 +%% +Type: language +Subtag: kzf +Description: Da'a Kaili +Added: 2009-07-29 +%% +Type: language +Subtag: kzg +Description: Kikai +Added: 2009-07-29 +%% +Type: language +Subtag: kzh +Description: Kenuzi-Dongola +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see dgl, xnz +%% +Type: language +Subtag: kzi +Description: Kelabit +Added: 2009-07-29 +%% +Type: language +Subtag: kzj +Description: Coastal Kadazan +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: dtp +%% +Type: language +Subtag: kzk +Description: Kazukuru +Added: 2009-07-29 +%% +Type: language +Subtag: kzl +Description: Kayeli +Added: 2009-07-29 +%% +Type: language +Subtag: kzm +Description: Kais +Added: 2009-07-29 +%% +Type: language +Subtag: kzn +Description: Kokola +Added: 2009-07-29 +%% +Type: language +Subtag: kzo +Description: Kaningi +Added: 2009-07-29 +%% +Type: language +Subtag: kzp +Description: Kaidipang +Added: 2009-07-29 +%% +Type: language +Subtag: kzq +Description: Kaike +Added: 2009-07-29 +%% +Type: language +Subtag: kzr +Description: Karang +Added: 2009-07-29 +%% +Type: language +Subtag: kzs +Description: Sugut Dusun +Added: 2009-07-29 +%% +Type: language +Subtag: kzt +Description: Tambunan Dusun +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: dtp +%% +Type: language +Subtag: kzu +Description: Kayupulau +Added: 2009-07-29 +%% +Type: language +Subtag: kzv +Description: Komyandaret +Added: 2009-07-29 +%% +Type: language +Subtag: kzw +Description: Karirí-Xocó +Added: 2009-07-29 +%% +Type: language +Subtag: kzx +Description: Kamarian +Added: 2009-07-29 +%% +Type: language +Subtag: kzy +Description: Kango (Tshopo District) +Added: 2009-07-29 +%% +Type: language +Subtag: kzz +Description: Kalabra +Added: 2009-07-29 +%% +Type: language +Subtag: laa +Description: Southern Subanen +Added: 2009-07-29 +%% +Type: language +Subtag: lab +Description: Linear A +Added: 2009-07-29 +%% +Type: language +Subtag: lac +Description: Lacandon +Added: 2009-07-29 +%% +Type: language +Subtag: lad +Description: Ladino +Added: 2005-10-16 +%% +Type: language +Subtag: lae +Description: Pattani +Added: 2009-07-29 +%% +Type: language +Subtag: laf +Description: Lafofa +Added: 2009-07-29 +%% +Type: language +Subtag: lag +Description: Langi +Added: 2009-07-29 +%% +Type: language +Subtag: lah +Description: Lahnda +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: lai +Description: Lambya +Added: 2009-07-29 +%% +Type: language +Subtag: laj +Description: Lango (Uganda) +Added: 2009-07-29 +%% +Type: language +Subtag: lak +Description: Laka (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: lal +Description: Lalia +Added: 2009-07-29 +%% +Type: language +Subtag: lam +Description: Lamba +Added: 2005-10-16 +%% +Type: language +Subtag: lan +Description: Laru +Added: 2009-07-29 +%% +Type: language +Subtag: lap +Description: Laka (Chad) +Added: 2009-07-29 +%% +Type: language +Subtag: laq +Description: Qabiao +Added: 2009-07-29 +%% +Type: language +Subtag: lar +Description: Larteh +Added: 2009-07-29 +%% +Type: language +Subtag: las +Description: Lama (Togo) +Added: 2009-07-29 +%% +Type: language +Subtag: lau +Description: Laba +Added: 2009-07-29 +%% +Type: language +Subtag: law +Description: Lauje +Added: 2009-07-29 +%% +Type: language +Subtag: lax +Description: Tiwa +Added: 2009-07-29 +%% +Type: language +Subtag: lay +Description: Lama Bai +Added: 2009-07-29 +%% +Type: language +Subtag: laz +Description: Aribwatsa +Added: 2009-07-29 +%% +Type: language +Subtag: lba +Description: Lui +Added: 2009-07-29 +Deprecated: 2019-04-16 +%% +Type: language +Subtag: lbb +Description: Label +Added: 2009-07-29 +%% +Type: language +Subtag: lbc +Description: Lakkia +Added: 2009-07-29 +%% +Type: language +Subtag: lbe +Description: Lak +Added: 2009-07-29 +%% +Type: language +Subtag: lbf +Description: Tinani +Added: 2009-07-29 +%% +Type: language +Subtag: lbg +Description: Laopang +Added: 2009-07-29 +%% +Type: language +Subtag: lbi +Description: La'bi +Added: 2009-07-29 +%% +Type: language +Subtag: lbj +Description: Ladakhi +Added: 2009-07-29 +%% +Type: language +Subtag: lbk +Description: Central Bontok +Added: 2010-03-11 +Macrolanguage: bnc +%% +Type: language +Subtag: lbl +Description: Libon Bikol +Added: 2010-03-11 +Macrolanguage: bik +%% +Type: language +Subtag: lbm +Description: Lodhi +Added: 2009-07-29 +%% +Type: language +Subtag: lbn +Description: Rmeet +Added: 2009-07-29 +%% +Type: language +Subtag: lbo +Description: Laven +Added: 2009-07-29 +%% +Type: language +Subtag: lbq +Description: Wampar +Added: 2009-07-29 +%% +Type: language +Subtag: lbr +Description: Lohorung +Added: 2009-07-29 +%% +Type: language +Subtag: lbs +Description: Libyan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: lbt +Description: Lachi +Added: 2009-07-29 +%% +Type: language +Subtag: lbu +Description: Labu +Added: 2009-07-29 +%% +Type: language +Subtag: lbv +Description: Lavatbura-Lamusong +Added: 2009-07-29 +%% +Type: language +Subtag: lbw +Description: Tolaki +Added: 2009-07-29 +%% +Type: language +Subtag: lbx +Description: Lawangan +Added: 2009-07-29 +%% +Type: language +Subtag: lby +Description: Lamalama +Description: Lamu-Lamu +Added: 2009-07-29 +%% +Type: language +Subtag: lbz +Description: Lardil +Added: 2009-07-29 +%% +Type: language +Subtag: lcc +Description: Legenyem +Added: 2009-07-29 +%% +Type: language +Subtag: lcd +Description: Lola +Added: 2009-07-29 +%% +Type: language +Subtag: lce +Description: Loncong +Description: Sekak +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: lcf +Description: Lubu +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: lch +Description: Luchazi +Added: 2009-07-29 +%% +Type: language +Subtag: lcl +Description: Lisela +Added: 2009-07-29 +%% +Type: language +Subtag: lcm +Description: Tungag +Added: 2009-07-29 +%% +Type: language +Subtag: lcp +Description: Western Lawa +Added: 2009-07-29 +%% +Type: language +Subtag: lcq +Description: Luhu +Added: 2009-07-29 +%% +Type: language +Subtag: lcs +Description: Lisabata-Nuniali +Added: 2009-07-29 +%% +Type: language +Subtag: lda +Description: Kla-Dan +Added: 2013-09-10 +%% +Type: language +Subtag: ldb +Description: Dũya +Added: 2009-07-29 +%% +Type: language +Subtag: ldd +Description: Luri +Added: 2009-07-29 +%% +Type: language +Subtag: ldg +Description: Lenyima +Added: 2009-07-29 +%% +Type: language +Subtag: ldh +Description: Lamja-Dengsa-Tola +Added: 2009-07-29 +%% +Type: language +Subtag: ldi +Description: Laari +Added: 2009-07-29 +Macrolanguage: kg +%% +Type: language +Subtag: ldj +Description: Lemoro +Added: 2009-07-29 +%% +Type: language +Subtag: ldk +Description: Leelau +Added: 2009-07-29 +%% +Type: language +Subtag: ldl +Description: Kaan +Added: 2009-07-29 +%% +Type: language +Subtag: ldm +Description: Landoma +Added: 2009-07-29 +%% +Type: language +Subtag: ldn +Description: Láadan +Added: 2009-07-29 +%% +Type: language +Subtag: ldo +Description: Loo +Added: 2009-07-29 +%% +Type: language +Subtag: ldp +Description: Tso +Added: 2009-07-29 +%% +Type: language +Subtag: ldq +Description: Lufu +Added: 2009-07-29 +%% +Type: language +Subtag: lea +Description: Lega-Shabunda +Added: 2009-07-29 +%% +Type: language +Subtag: leb +Description: Lala-Bisa +Added: 2009-07-29 +%% +Type: language +Subtag: lec +Description: Leco +Added: 2009-07-29 +%% +Type: language +Subtag: led +Description: Lendu +Added: 2009-07-29 +%% +Type: language +Subtag: lee +Description: Lyélé +Added: 2009-07-29 +%% +Type: language +Subtag: lef +Description: Lelemi +Added: 2009-07-29 +%% +Type: language +Subtag: leg +Description: Lengua +Added: 2009-07-29 +Deprecated: 2014-02-28 +Comments: see enl, enx +%% +Type: language +Subtag: leh +Description: Lenje +Added: 2009-07-29 +%% +Type: language +Subtag: lei +Description: Lemio +Added: 2009-07-29 +%% +Type: language +Subtag: lej +Description: Lengola +Added: 2009-07-29 +%% +Type: language +Subtag: lek +Description: Leipon +Added: 2009-07-29 +%% +Type: language +Subtag: lel +Description: Lele (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: lem +Description: Nomaande +Added: 2009-07-29 +%% +Type: language +Subtag: len +Description: Lenca +Added: 2009-07-29 +%% +Type: language +Subtag: leo +Description: Leti (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: lep +Description: Lepcha +Added: 2009-07-29 +%% +Type: language +Subtag: leq +Description: Lembena +Added: 2009-07-29 +%% +Type: language +Subtag: ler +Description: Lenkau +Added: 2009-07-29 +%% +Type: language +Subtag: les +Description: Lese +Added: 2009-07-29 +%% +Type: language +Subtag: let +Description: Lesing-Gelimi +Description: Amio-Gelimi +Added: 2009-07-29 +%% +Type: language +Subtag: leu +Description: Kara (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: lev +Description: Lamma +Added: 2009-07-29 +%% +Type: language +Subtag: lew +Description: Ledo Kaili +Added: 2009-07-29 +%% +Type: language +Subtag: lex +Description: Luang +Added: 2009-07-29 +%% +Type: language +Subtag: ley +Description: Lemolang +Added: 2009-07-29 +%% +Type: language +Subtag: lez +Description: Lezghian +Added: 2005-10-16 +%% +Type: language +Subtag: lfa +Description: Lefa +Added: 2009-07-29 +%% +Type: language +Subtag: lfn +Description: Lingua Franca Nova +Added: 2009-07-29 +%% +Type: language +Subtag: lga +Description: Lungga +Added: 2009-07-29 +%% +Type: language +Subtag: lgb +Description: Laghu +Added: 2009-07-29 +%% +Type: language +Subtag: lgg +Description: Lugbara +Added: 2009-07-29 +%% +Type: language +Subtag: lgh +Description: Laghuu +Added: 2009-07-29 +%% +Type: language +Subtag: lgi +Description: Lengilu +Added: 2009-07-29 +%% +Type: language +Subtag: lgk +Description: Lingarak +Description: Neverver +Added: 2009-07-29 +%% +Type: language +Subtag: lgl +Description: Wala +Added: 2009-07-29 +%% +Type: language +Subtag: lgm +Description: Lega-Mwenga +Added: 2009-07-29 +%% +Type: language +Subtag: lgn +Description: T'apo +Description: Opuuo +Added: 2009-07-29 +%% +Type: language +Subtag: lgq +Description: Logba +Added: 2009-07-29 +%% +Type: language +Subtag: lgr +Description: Lengo +Added: 2009-07-29 +%% +Type: language +Subtag: lgt +Description: Pahi +Added: 2009-07-29 +%% +Type: language +Subtag: lgu +Description: Longgu +Added: 2009-07-29 +%% +Type: language +Subtag: lgz +Description: Ligenza +Added: 2009-07-29 +%% +Type: language +Subtag: lha +Description: Laha (Viet Nam) +Added: 2009-07-29 +%% +Type: language +Subtag: lhh +Description: Laha (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: lhi +Description: Lahu Shi +Added: 2009-07-29 +%% +Type: language +Subtag: lhl +Description: Lahul Lohar +Added: 2009-07-29 +%% +Type: language +Subtag: lhm +Description: Lhomi +Added: 2009-07-29 +%% +Type: language +Subtag: lhn +Description: Lahanan +Added: 2009-07-29 +%% +Type: language +Subtag: lhp +Description: Lhokpu +Added: 2009-07-29 +%% +Type: language +Subtag: lhs +Description: Mlahsö +Added: 2009-07-29 +%% +Type: language +Subtag: lht +Description: Lo-Toga +Added: 2009-07-29 +%% +Type: language +Subtag: lhu +Description: Lahu +Added: 2009-07-29 +%% +Type: language +Subtag: lia +Description: West-Central Limba +Added: 2009-07-29 +%% +Type: language +Subtag: lib +Description: Likum +Added: 2009-07-29 +%% +Type: language +Subtag: lic +Description: Hlai +Added: 2009-07-29 +%% +Type: language +Subtag: lid +Description: Nyindrou +Added: 2009-07-29 +%% +Type: language +Subtag: lie +Description: Likila +Added: 2009-07-29 +%% +Type: language +Subtag: lif +Description: Limbu +Added: 2009-07-29 +%% +Type: language +Subtag: lig +Description: Ligbi +Added: 2009-07-29 +%% +Type: language +Subtag: lih +Description: Lihir +Added: 2009-07-29 +%% +Type: language +Subtag: lii +Description: Lingkhim +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: raq +%% +Type: language +Subtag: lij +Description: Ligurian +Added: 2009-07-29 +%% +Type: language +Subtag: lik +Description: Lika +Added: 2009-07-29 +%% +Type: language +Subtag: lil +Description: Lillooet +Added: 2009-07-29 +%% +Type: language +Subtag: lio +Description: Liki +Added: 2009-07-29 +%% +Type: language +Subtag: lip +Description: Sekpele +Added: 2009-07-29 +%% +Type: language +Subtag: liq +Description: Libido +Added: 2009-07-29 +%% +Type: language +Subtag: lir +Description: Liberian English +Added: 2009-07-29 +%% +Type: language +Subtag: lis +Description: Lisu +Added: 2009-07-29 +%% +Type: language +Subtag: liu +Description: Logorik +Added: 2009-07-29 +%% +Type: language +Subtag: liv +Description: Liv +Added: 2009-07-29 +%% +Type: language +Subtag: liw +Description: Col +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: lix +Description: Liabuku +Added: 2009-07-29 +%% +Type: language +Subtag: liy +Description: Banda-Bambari +Added: 2009-07-29 +%% +Type: language +Subtag: liz +Description: Libinza +Added: 2009-07-29 +%% +Type: language +Subtag: lja +Description: Golpa +Added: 2013-09-10 +%% +Type: language +Subtag: lje +Description: Rampi +Added: 2009-07-29 +%% +Type: language +Subtag: lji +Description: Laiyolo +Added: 2009-07-29 +%% +Type: language +Subtag: ljl +Description: Li'o +Added: 2009-07-29 +%% +Type: language +Subtag: ljp +Description: Lampung Api +Added: 2009-07-29 +%% +Type: language +Subtag: ljw +Description: Yirandali +Added: 2013-09-10 +%% +Type: language +Subtag: ljx +Description: Yuru +Added: 2013-09-10 +%% +Type: language +Subtag: lka +Description: Lakalei +Added: 2009-07-29 +%% +Type: language +Subtag: lkb +Description: Kabras +Description: Lukabaras +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: lkc +Description: Kucong +Added: 2009-07-29 +%% +Type: language +Subtag: lkd +Description: Lakondê +Added: 2009-07-29 +%% +Type: language +Subtag: lke +Description: Kenyi +Added: 2009-07-29 +%% +Type: language +Subtag: lkh +Description: Lakha +Added: 2009-07-29 +%% +Type: language +Subtag: lki +Description: Laki +Added: 2009-07-29 +%% +Type: language +Subtag: lkj +Description: Remun +Added: 2009-07-29 +%% +Type: language +Subtag: lkl +Description: Laeko-Libuat +Added: 2009-07-29 +%% +Type: language +Subtag: lkm +Description: Kalaamaya +Added: 2013-09-10 +%% +Type: language +Subtag: lkn +Description: Lakon +Description: Vure +Added: 2009-07-29 +%% +Type: language +Subtag: lko +Description: Khayo +Description: Olukhayo +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: lkr +Description: Päri +Added: 2009-07-29 +%% +Type: language +Subtag: lks +Description: Kisa +Description: Olushisa +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: lkt +Description: Lakota +Added: 2009-07-29 +%% +Type: language +Subtag: lku +Description: Kungkari +Added: 2013-09-10 +%% +Type: language +Subtag: lky +Description: Lokoya +Added: 2009-07-29 +%% +Type: language +Subtag: lla +Description: Lala-Roba +Added: 2009-07-29 +%% +Type: language +Subtag: llb +Description: Lolo +Added: 2009-07-29 +%% +Type: language +Subtag: llc +Description: Lele (Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: lld +Description: Ladin +Added: 2009-07-29 +%% +Type: language +Subtag: lle +Description: Lele (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: llf +Description: Hermit +Added: 2009-07-29 +%% +Type: language +Subtag: llg +Description: Lole +Added: 2009-07-29 +%% +Type: language +Subtag: llh +Description: Lamu +Added: 2009-07-29 +%% +Type: language +Subtag: lli +Description: Teke-Laali +Added: 2009-07-29 +%% +Type: language +Subtag: llj +Description: Ladji Ladji +Added: 2012-08-12 +%% +Type: language +Subtag: llk +Description: Lelak +Added: 2009-07-29 +%% +Type: language +Subtag: lll +Description: Lilau +Added: 2009-07-29 +%% +Type: language +Subtag: llm +Description: Lasalimu +Added: 2009-07-29 +%% +Type: language +Subtag: lln +Description: Lele (Chad) +Added: 2009-07-29 +%% +Type: language +Subtag: llo +Description: Khlor +Added: 2009-07-29 +Deprecated: 2019-04-16 +Preferred-Value: ngt +%% +Type: language +Subtag: llp +Description: North Efate +Added: 2009-07-29 +%% +Type: language +Subtag: llq +Description: Lolak +Added: 2009-07-29 +%% +Type: language +Subtag: lls +Description: Lithuanian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: llu +Description: Lau +Added: 2009-07-29 +%% +Type: language +Subtag: llx +Description: Lauan +Added: 2009-07-29 +%% +Type: language +Subtag: lma +Description: East Limba +Added: 2009-07-29 +%% +Type: language +Subtag: lmb +Description: Merei +Added: 2009-07-29 +%% +Type: language +Subtag: lmc +Description: Limilngan +Added: 2009-07-29 +%% +Type: language +Subtag: lmd +Description: Lumun +Added: 2009-07-29 +%% +Type: language +Subtag: lme +Description: Pévé +Added: 2009-07-29 +%% +Type: language +Subtag: lmf +Description: South Lembata +Added: 2009-07-29 +%% +Type: language +Subtag: lmg +Description: Lamogai +Added: 2009-07-29 +%% +Type: language +Subtag: lmh +Description: Lambichhong +Added: 2009-07-29 +%% +Type: language +Subtag: lmi +Description: Lombi +Added: 2009-07-29 +%% +Type: language +Subtag: lmj +Description: West Lembata +Added: 2009-07-29 +%% +Type: language +Subtag: lmk +Description: Lamkang +Added: 2009-07-29 +%% +Type: language +Subtag: lml +Description: Hano +Added: 2009-07-29 +%% +Type: language +Subtag: lmm +Description: Lamam +Added: 2009-07-29 +Deprecated: 2014-02-28 +Preferred-Value: rmx +%% +Type: language +Subtag: lmn +Description: Lambadi +Added: 2009-07-29 +%% +Type: language +Subtag: lmo +Description: Lombard +Added: 2009-07-29 +%% +Type: language +Subtag: lmp +Description: Limbum +Added: 2009-07-29 +%% +Type: language +Subtag: lmq +Description: Lamatuka +Added: 2009-07-29 +%% +Type: language +Subtag: lmr +Description: Lamalera +Added: 2009-07-29 +%% +Type: language +Subtag: lmu +Description: Lamenu +Added: 2009-07-29 +%% +Type: language +Subtag: lmv +Description: Lomaiviti +Added: 2009-07-29 +%% +Type: language +Subtag: lmw +Description: Lake Miwok +Added: 2009-07-29 +%% +Type: language +Subtag: lmx +Description: Laimbue +Added: 2009-07-29 +%% +Type: language +Subtag: lmy +Description: Lamboya +Added: 2009-07-29 +%% +Type: language +Subtag: lmz +Description: Lumbee +Added: 2009-07-29 +%% +Type: language +Subtag: lna +Description: Langbashe +Added: 2009-07-29 +%% +Type: language +Subtag: lnb +Description: Mbalanhu +Added: 2009-07-29 +%% +Type: language +Subtag: lnd +Description: Lundayeh +Description: Lun Bawang +Added: 2009-07-29 +%% +Type: language +Subtag: lng +Description: Langobardic +Added: 2009-07-29 +%% +Type: language +Subtag: lnh +Description: Lanoh +Added: 2009-07-29 +%% +Type: language +Subtag: lni +Description: Daantanai' +Added: 2009-07-29 +%% +Type: language +Subtag: lnj +Description: Leningitij +Added: 2009-07-29 +%% +Type: language +Subtag: lnl +Description: South Central Banda +Added: 2009-07-29 +%% +Type: language +Subtag: lnm +Description: Langam +Added: 2009-07-29 +%% +Type: language +Subtag: lnn +Description: Lorediakarkar +Added: 2009-07-29 +%% +Type: language +Subtag: lno +Description: Lango (South Sudan) +Added: 2009-07-29 +%% +Type: language +Subtag: lns +Description: Lamnso' +Added: 2009-07-29 +%% +Type: language +Subtag: lnu +Description: Longuda +Added: 2009-07-29 +%% +Type: language +Subtag: lnw +Description: Lanima +Added: 2013-09-10 +%% +Type: language +Subtag: lnz +Description: Lonzo +Added: 2009-07-29 +%% +Type: language +Subtag: loa +Description: Loloda +Added: 2009-07-29 +%% +Type: language +Subtag: lob +Description: Lobi +Added: 2009-07-29 +%% +Type: language +Subtag: loc +Description: Inonhan +Added: 2009-07-29 +%% +Type: language +Subtag: loe +Description: Saluan +Added: 2009-07-29 +%% +Type: language +Subtag: lof +Description: Logol +Added: 2009-07-29 +%% +Type: language +Subtag: log +Description: Logo +Added: 2009-07-29 +%% +Type: language +Subtag: loh +Description: Narim +Added: 2009-07-29 +%% +Type: language +Subtag: loi +Description: Loma (Côte d'Ivoire) +Added: 2009-07-29 +%% +Type: language +Subtag: loj +Description: Lou +Added: 2009-07-29 +%% +Type: language +Subtag: lok +Description: Loko +Added: 2009-07-29 +%% +Type: language +Subtag: lol +Description: Mongo +Added: 2005-10-16 +%% +Type: language +Subtag: lom +Description: Loma (Liberia) +Added: 2009-07-29 +%% +Type: language +Subtag: lon +Description: Malawi Lomwe +Added: 2009-07-29 +%% +Type: language +Subtag: loo +Description: Lombo +Added: 2009-07-29 +%% +Type: language +Subtag: lop +Description: Lopa +Added: 2009-07-29 +%% +Type: language +Subtag: loq +Description: Lobala +Added: 2009-07-29 +%% +Type: language +Subtag: lor +Description: Téén +Added: 2009-07-29 +%% +Type: language +Subtag: los +Description: Loniu +Added: 2009-07-29 +%% +Type: language +Subtag: lot +Description: Otuho +Added: 2009-07-29 +%% +Type: language +Subtag: lou +Description: Louisiana Creole +Added: 2009-07-29 +%% +Type: language +Subtag: lov +Description: Lopi +Added: 2009-07-29 +%% +Type: language +Subtag: low +Description: Tampias Lobu +Added: 2009-07-29 +%% +Type: language +Subtag: lox +Description: Loun +Added: 2009-07-29 +%% +Type: language +Subtag: loy +Description: Loke +Added: 2009-07-29 +%% +Type: language +Subtag: loz +Description: Lozi +Added: 2005-10-16 +%% +Type: language +Subtag: lpa +Description: Lelepa +Added: 2009-07-29 +%% +Type: language +Subtag: lpe +Description: Lepki +Added: 2009-07-29 +%% +Type: language +Subtag: lpn +Description: Long Phuri Naga +Added: 2009-07-29 +%% +Type: language +Subtag: lpo +Description: Lipo +Added: 2009-07-29 +%% +Type: language +Subtag: lpx +Description: Lopit +Added: 2009-07-29 +%% +Type: language +Subtag: lra +Description: Rara Bakati' +Added: 2009-07-29 +%% +Type: language +Subtag: lrc +Description: Northern Luri +Added: 2009-07-29 +%% +Type: language +Subtag: lre +Description: Laurentian +Added: 2009-07-29 +%% +Type: language +Subtag: lrg +Description: Laragia +Added: 2009-07-29 +%% +Type: language +Subtag: lri +Description: Marachi +Description: Olumarachi +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: lrk +Description: Loarki +Added: 2009-07-29 +%% +Type: language +Subtag: lrl +Description: Lari +Added: 2009-07-29 +%% +Type: language +Subtag: lrm +Description: Marama +Description: Olumarama +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: lrn +Description: Lorang +Added: 2009-07-29 +%% +Type: language +Subtag: lro +Description: Laro +Added: 2009-07-29 +%% +Type: language +Subtag: lrr +Description: Southern Yamphu +Added: 2009-07-29 +%% +Type: language +Subtag: lrt +Description: Larantuka Malay +Added: 2009-07-29 +%% +Type: language +Subtag: lrv +Description: Larevat +Added: 2009-07-29 +%% +Type: language +Subtag: lrz +Description: Lemerig +Added: 2009-07-29 +%% +Type: language +Subtag: lsa +Description: Lasgerdi +Added: 2009-07-29 +%% +Type: language +Subtag: lsd +Description: Lishana Deni +Added: 2009-07-29 +%% +Type: language +Subtag: lse +Description: Lusengo +Added: 2009-07-29 +%% +Type: language +Subtag: lsg +Description: Lyons Sign Language +Added: 2009-07-29 +Deprecated: 2018-03-08 +%% +Type: language +Subtag: lsh +Description: Lish +Added: 2009-07-29 +%% +Type: language +Subtag: lsi +Description: Lashi +Added: 2009-07-29 +%% +Type: language +Subtag: lsl +Description: Latvian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: lsm +Description: Saamia +Description: Olusamia +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: lsn +Description: Tibetan Sign Language +Added: 2019-04-16 +%% +Type: language +Subtag: lso +Description: Laos Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: lsp +Description: Panamanian Sign Language +Description: Lengua de Señas Panameñas +Added: 2009-07-29 +%% +Type: language +Subtag: lsr +Description: Aruop +Added: 2009-07-29 +%% +Type: language +Subtag: lss +Description: Lasi +Added: 2009-07-29 +%% +Type: language +Subtag: lst +Description: Trinidad and Tobago Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: lsv +Description: Sivia Sign Language +Added: 2019-04-16 +%% +Type: language +Subtag: lsy +Description: Mauritian Sign Language +Added: 2010-03-11 +%% +Type: language +Subtag: ltc +Description: Late Middle Chinese +Added: 2009-07-29 +%% +Type: language +Subtag: ltg +Description: Latgalian +Added: 2010-03-11 +Macrolanguage: lv +%% +Type: language +Subtag: lth +Description: Thur +Added: 2017-02-23 +%% +Type: language +Subtag: lti +Description: Leti (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: ltn +Description: Latundê +Added: 2009-07-29 +%% +Type: language +Subtag: lto +Description: Tsotso +Description: Olutsotso +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: lts +Description: Tachoni +Description: Lutachoni +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: ltu +Description: Latu +Added: 2009-07-29 +%% +Type: language +Subtag: lua +Description: Luba-Lulua +Added: 2005-10-16 +%% +Type: language +Subtag: luc +Description: Aringa +Added: 2009-07-29 +%% +Type: language +Subtag: lud +Description: Ludian +Added: 2009-07-29 +%% +Type: language +Subtag: lue +Description: Luvale +Added: 2009-07-29 +%% +Type: language +Subtag: luf +Description: Laua +Added: 2009-07-29 +%% +Type: language +Subtag: lui +Description: Luiseno +Added: 2005-10-16 +%% +Type: language +Subtag: luj +Description: Luna +Added: 2009-07-29 +%% +Type: language +Subtag: luk +Description: Lunanakha +Added: 2009-07-29 +%% +Type: language +Subtag: lul +Description: Olu'bo +Added: 2009-07-29 +%% +Type: language +Subtag: lum +Description: Luimbi +Added: 2009-07-29 +%% +Type: language +Subtag: lun +Description: Lunda +Added: 2005-10-16 +%% +Type: language +Subtag: luo +Description: Luo (Kenya and Tanzania) +Description: Dholuo +Added: 2005-10-16 +%% +Type: language +Subtag: lup +Description: Lumbu +Added: 2009-07-29 +%% +Type: language +Subtag: luq +Description: Lucumi +Added: 2009-07-29 +%% +Type: language +Subtag: lur +Description: Laura +Added: 2009-07-29 +%% +Type: language +Subtag: lus +Description: Lushai +Added: 2005-10-16 +%% +Type: language +Subtag: lut +Description: Lushootseed +Added: 2009-07-29 +%% +Type: language +Subtag: luu +Description: Lumba-Yakkha +Added: 2009-07-29 +%% +Type: language +Subtag: luv +Description: Luwati +Added: 2009-07-29 +%% +Type: language +Subtag: luw +Description: Luo (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: luy +Description: Luyia +Description: Oluluyia +Added: 2009-07-29 +Scope: macrolanguage +%% +Type: language +Subtag: luz +Description: Southern Luri +Added: 2009-07-29 +%% +Type: language +Subtag: lva +Description: Maku'a +Added: 2009-07-29 +%% +Type: language +Subtag: lvi +Description: Lavi +Added: 2019-04-16 +%% +Type: language +Subtag: lvk +Description: Lavukaleve +Added: 2009-07-29 +%% +Type: language +Subtag: lvs +Description: Standard Latvian +Added: 2010-03-11 +Macrolanguage: lv +%% +Type: language +Subtag: lvu +Description: Levuka +Added: 2009-07-29 +%% +Type: language +Subtag: lwa +Description: Lwalu +Added: 2009-07-29 +%% +Type: language +Subtag: lwe +Description: Lewo Eleng +Added: 2009-07-29 +%% +Type: language +Subtag: lwg +Description: Wanga +Description: Oluwanga +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: lwh +Description: White Lachi +Added: 2009-07-29 +%% +Type: language +Subtag: lwl +Description: Eastern Lawa +Added: 2009-07-29 +%% +Type: language +Subtag: lwm +Description: Laomian +Added: 2009-07-29 +%% +Type: language +Subtag: lwo +Description: Luwo +Added: 2009-07-29 +%% +Type: language +Subtag: lws +Description: Malawian Sign Language +Added: 2018-03-08 +%% +Type: language +Subtag: lwt +Description: Lewotobi +Added: 2009-07-29 +%% +Type: language +Subtag: lwu +Description: Lawu +Added: 2013-09-10 +%% +Type: language +Subtag: lww +Description: Lewo +Added: 2009-07-29 +%% +Type: language +Subtag: lya +Description: Layakha +Added: 2009-07-29 +%% +Type: language +Subtag: lyg +Description: Lyngngam +Added: 2009-07-29 +%% +Type: language +Subtag: lyn +Description: Luyana +Added: 2009-07-29 +%% +Type: language +Subtag: lzh +Description: Literary Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: lzl +Description: Litzlitz +Added: 2009-07-29 +%% +Type: language +Subtag: lzn +Description: Leinong Naga +Added: 2009-07-29 +%% +Type: language +Subtag: lzz +Description: Laz +Added: 2009-07-29 +%% +Type: language +Subtag: maa +Description: San Jerónimo Tecóatl Mazatec +Added: 2009-07-29 +Comments: see also pbm +%% +Type: language +Subtag: mab +Description: Yutanduchi Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mad +Description: Madurese +Added: 2005-10-16 +%% +Type: language +Subtag: mae +Description: Bo-Rukul +Added: 2009-07-29 +%% +Type: language +Subtag: maf +Description: Mafa +Added: 2009-07-29 +%% +Type: language +Subtag: mag +Description: Magahi +Added: 2005-10-16 +%% +Type: language +Subtag: mai +Description: Maithili +Added: 2005-10-16 +Suppress-Script: Deva +%% +Type: language +Subtag: maj +Description: Jalapa De Díaz Mazatec +Added: 2009-07-29 +%% +Type: language +Subtag: mak +Description: Makasar +Added: 2005-10-16 +%% +Type: language +Subtag: mam +Description: Mam +Added: 2009-07-29 +%% +Type: language +Subtag: man +Description: Mandingo +Description: Manding +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: map +Description: Austronesian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: maq +Description: Chiquihuitlán Mazatec +Added: 2009-07-29 +%% +Type: language +Subtag: mas +Description: Masai +Added: 2005-10-16 +%% +Type: language +Subtag: mat +Description: San Francisco Matlatzinca +Added: 2009-07-29 +%% +Type: language +Subtag: mau +Description: Huautla Mazatec +Added: 2009-07-29 +%% +Type: language +Subtag: mav +Description: Sateré-Mawé +Added: 2009-07-29 +%% +Type: language +Subtag: maw +Description: Mampruli +Added: 2009-07-29 +%% +Type: language +Subtag: max +Description: North Moluccan Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: maz +Description: Central Mazahua +Added: 2009-07-29 +%% +Type: language +Subtag: mba +Description: Higaonon +Added: 2009-07-29 +%% +Type: language +Subtag: mbb +Description: Western Bukidnon Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: mbc +Description: Macushi +Added: 2009-07-29 +%% +Type: language +Subtag: mbd +Description: Dibabawon Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: mbe +Description: Molale +Added: 2009-07-29 +%% +Type: language +Subtag: mbf +Description: Baba Malay +Added: 2009-07-29 +%% +Type: language +Subtag: mbh +Description: Mangseng +Added: 2009-07-29 +%% +Type: language +Subtag: mbi +Description: Ilianen Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: mbj +Description: Nadëb +Added: 2009-07-29 +%% +Type: language +Subtag: mbk +Description: Malol +Added: 2009-07-29 +%% +Type: language +Subtag: mbl +Description: Maxakalí +Added: 2009-07-29 +%% +Type: language +Subtag: mbm +Description: Ombamba +Added: 2009-07-29 +%% +Type: language +Subtag: mbn +Description: Macaguán +Added: 2009-07-29 +%% +Type: language +Subtag: mbo +Description: Mbo (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: mbp +Description: Malayo +Added: 2009-07-29 +%% +Type: language +Subtag: mbq +Description: Maisin +Added: 2009-07-29 +%% +Type: language +Subtag: mbr +Description: Nukak Makú +Added: 2009-07-29 +%% +Type: language +Subtag: mbs +Description: Sarangani Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: mbt +Description: Matigsalug Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: mbu +Description: Mbula-Bwazza +Added: 2009-07-29 +%% +Type: language +Subtag: mbv +Description: Mbulungish +Added: 2009-07-29 +%% +Type: language +Subtag: mbw +Description: Maring +Added: 2009-07-29 +%% +Type: language +Subtag: mbx +Description: Mari (East Sepik Province) +Added: 2009-07-29 +%% +Type: language +Subtag: mby +Description: Memoni +Added: 2009-07-29 +%% +Type: language +Subtag: mbz +Description: Amoltepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mca +Description: Maca +Added: 2009-07-29 +%% +Type: language +Subtag: mcb +Description: Machiguenga +Added: 2009-07-29 +%% +Type: language +Subtag: mcc +Description: Bitur +Added: 2009-07-29 +%% +Type: language +Subtag: mcd +Description: Sharanahua +Added: 2009-07-29 +%% +Type: language +Subtag: mce +Description: Itundujia Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mcf +Description: Matsés +Added: 2009-07-29 +%% +Type: language +Subtag: mcg +Description: Mapoyo +Added: 2009-07-29 +%% +Type: language +Subtag: mch +Description: Maquiritari +Added: 2009-07-29 +%% +Type: language +Subtag: mci +Description: Mese +Added: 2009-07-29 +%% +Type: language +Subtag: mcj +Description: Mvanip +Added: 2009-07-29 +%% +Type: language +Subtag: mck +Description: Mbunda +Added: 2009-07-29 +%% +Type: language +Subtag: mcl +Description: Macaguaje +Added: 2009-07-29 +%% +Type: language +Subtag: mcm +Description: Malaccan Creole Portuguese +Added: 2009-07-29 +%% +Type: language +Subtag: mcn +Description: Masana +Added: 2009-07-29 +%% +Type: language +Subtag: mco +Description: Coatlán Mixe +Added: 2009-07-29 +%% +Type: language +Subtag: mcp +Description: Makaa +Added: 2009-07-29 +%% +Type: language +Subtag: mcq +Description: Ese +Added: 2009-07-29 +%% +Type: language +Subtag: mcr +Description: Menya +Added: 2009-07-29 +%% +Type: language +Subtag: mcs +Description: Mambai +Added: 2009-07-29 +%% +Type: language +Subtag: mct +Description: Mengisa +Added: 2009-07-29 +%% +Type: language +Subtag: mcu +Description: Cameroon Mambila +Added: 2009-07-29 +%% +Type: language +Subtag: mcv +Description: Minanibai +Added: 2009-07-29 +%% +Type: language +Subtag: mcw +Description: Mawa (Chad) +Added: 2009-07-29 +%% +Type: language +Subtag: mcx +Description: Mpiemo +Added: 2009-07-29 +%% +Type: language +Subtag: mcy +Description: South Watut +Added: 2009-07-29 +%% +Type: language +Subtag: mcz +Description: Mawan +Added: 2009-07-29 +%% +Type: language +Subtag: mda +Description: Mada (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: mdb +Description: Morigi +Added: 2009-07-29 +%% +Type: language +Subtag: mdc +Description: Male (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: mdd +Description: Mbum +Added: 2009-07-29 +%% +Type: language +Subtag: mde +Description: Maba (Chad) +Added: 2009-07-29 +%% +Type: language +Subtag: mdf +Description: Moksha +Added: 2005-10-16 +%% +Type: language +Subtag: mdg +Description: Massalat +Added: 2009-07-29 +%% +Type: language +Subtag: mdh +Description: Maguindanaon +Added: 2009-07-29 +%% +Type: language +Subtag: mdi +Description: Mamvu +Added: 2009-07-29 +%% +Type: language +Subtag: mdj +Description: Mangbetu +Added: 2009-07-29 +%% +Type: language +Subtag: mdk +Description: Mangbutu +Added: 2009-07-29 +%% +Type: language +Subtag: mdl +Description: Maltese Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: mdm +Description: Mayogo +Added: 2009-07-29 +%% +Type: language +Subtag: mdn +Description: Mbati +Added: 2009-07-29 +%% +Type: language +Subtag: mdp +Description: Mbala +Added: 2009-07-29 +%% +Type: language +Subtag: mdq +Description: Mbole +Added: 2009-07-29 +%% +Type: language +Subtag: mdr +Description: Mandar +Added: 2005-10-16 +%% +Type: language +Subtag: mds +Description: Maria (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: mdt +Description: Mbere +Added: 2009-07-29 +%% +Type: language +Subtag: mdu +Description: Mboko +Added: 2009-07-29 +%% +Type: language +Subtag: mdv +Description: Santa Lucía Monteverde Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mdw +Description: Mbosi +Added: 2009-07-29 +%% +Type: language +Subtag: mdx +Description: Dizin +Added: 2009-07-29 +%% +Type: language +Subtag: mdy +Description: Male (Ethiopia) +Added: 2009-07-29 +%% +Type: language +Subtag: mdz +Description: Suruí Do Pará +Added: 2009-07-29 +%% +Type: language +Subtag: mea +Description: Menka +Added: 2009-07-29 +%% +Type: language +Subtag: meb +Description: Ikobi +Added: 2009-07-29 +%% +Type: language +Subtag: mec +Description: Marra +Added: 2009-07-29 +%% +Type: language +Subtag: med +Description: Melpa +Added: 2009-07-29 +%% +Type: language +Subtag: mee +Description: Mengen +Added: 2009-07-29 +%% +Type: language +Subtag: mef +Description: Megam +Added: 2009-07-29 +%% +Type: language +Subtag: meg +Description: Mea +Added: 2009-07-29 +Deprecated: 2013-09-10 +Preferred-Value: cir +%% +Type: language +Subtag: meh +Description: Southwestern Tlaxiaco Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mei +Description: Midob +Added: 2009-07-29 +%% +Type: language +Subtag: mej +Description: Meyah +Added: 2009-07-29 +%% +Type: language +Subtag: mek +Description: Mekeo +Added: 2009-07-29 +%% +Type: language +Subtag: mel +Description: Central Melanau +Added: 2009-07-29 +%% +Type: language +Subtag: mem +Description: Mangala +Added: 2009-07-29 +%% +Type: language +Subtag: men +Description: Mende (Sierra Leone) +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: meo +Description: Kedah Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: mep +Description: Miriwoong +Added: 2009-07-29 +%% +Type: language +Subtag: meq +Description: Merey +Added: 2009-07-29 +%% +Type: language +Subtag: mer +Description: Meru +Added: 2009-07-29 +%% +Type: language +Subtag: mes +Description: Masmaje +Added: 2009-07-29 +%% +Type: language +Subtag: met +Description: Mato +Added: 2009-07-29 +%% +Type: language +Subtag: meu +Description: Motu +Added: 2009-07-29 +%% +Type: language +Subtag: mev +Description: Mano +Added: 2009-07-29 +%% +Type: language +Subtag: mew +Description: Maaka +Added: 2009-07-29 +%% +Type: language +Subtag: mey +Description: Hassaniyya +Added: 2009-07-29 +%% +Type: language +Subtag: mez +Description: Menominee +Added: 2009-07-29 +%% +Type: language +Subtag: mfa +Description: Pattani Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: mfb +Description: Bangka +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: mfc +Description: Mba +Added: 2009-07-29 +%% +Type: language +Subtag: mfd +Description: Mendankwe-Nkwen +Added: 2009-07-29 +%% +Type: language +Subtag: mfe +Description: Morisyen +Added: 2009-07-29 +%% +Type: language +Subtag: mff +Description: Naki +Added: 2009-07-29 +%% +Type: language +Subtag: mfg +Description: Mogofin +Added: 2009-07-29 +%% +Type: language +Subtag: mfh +Description: Matal +Added: 2009-07-29 +%% +Type: language +Subtag: mfi +Description: Wandala +Added: 2009-07-29 +%% +Type: language +Subtag: mfj +Description: Mefele +Added: 2009-07-29 +%% +Type: language +Subtag: mfk +Description: North Mofu +Added: 2009-07-29 +%% +Type: language +Subtag: mfl +Description: Putai +Added: 2009-07-29 +%% +Type: language +Subtag: mfm +Description: Marghi South +Added: 2009-07-29 +%% +Type: language +Subtag: mfn +Description: Cross River Mbembe +Added: 2009-07-29 +%% +Type: language +Subtag: mfo +Description: Mbe +Added: 2009-07-29 +%% +Type: language +Subtag: mfp +Description: Makassar Malay +Added: 2009-07-29 +%% +Type: language +Subtag: mfq +Description: Moba +Added: 2009-07-29 +%% +Type: language +Subtag: mfr +Description: Marrithiyel +Added: 2009-07-29 +%% +Type: language +Subtag: mfs +Description: Mexican Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: mft +Description: Mokerang +Added: 2009-07-29 +%% +Type: language +Subtag: mfu +Description: Mbwela +Added: 2009-07-29 +%% +Type: language +Subtag: mfv +Description: Mandjak +Added: 2009-07-29 +%% +Type: language +Subtag: mfw +Description: Mulaha +Added: 2009-07-29 +%% +Type: language +Subtag: mfx +Description: Melo +Added: 2009-07-29 +%% +Type: language +Subtag: mfy +Description: Mayo +Added: 2009-07-29 +%% +Type: language +Subtag: mfz +Description: Mabaan +Added: 2009-07-29 +%% +Type: language +Subtag: mga +Description: Middle Irish (900-1200) +Added: 2005-10-16 +%% +Type: language +Subtag: mgb +Description: Mararit +Added: 2009-07-29 +%% +Type: language +Subtag: mgc +Description: Morokodo +Added: 2009-07-29 +%% +Type: language +Subtag: mgd +Description: Moru +Added: 2009-07-29 +%% +Type: language +Subtag: mge +Description: Mango +Added: 2009-07-29 +%% +Type: language +Subtag: mgf +Description: Maklew +Added: 2009-07-29 +%% +Type: language +Subtag: mgg +Description: Mpumpong +Added: 2009-07-29 +%% +Type: language +Subtag: mgh +Description: Makhuwa-Meetto +Added: 2009-07-29 +%% +Type: language +Subtag: mgi +Description: Lijili +Added: 2009-07-29 +%% +Type: language +Subtag: mgj +Description: Abureni +Added: 2009-07-29 +%% +Type: language +Subtag: mgk +Description: Mawes +Added: 2009-07-29 +%% +Type: language +Subtag: mgl +Description: Maleu-Kilenge +Added: 2009-07-29 +%% +Type: language +Subtag: mgm +Description: Mambae +Added: 2009-07-29 +%% +Type: language +Subtag: mgn +Description: Mbangi +Added: 2009-07-29 +%% +Type: language +Subtag: mgo +Description: Meta' +Added: 2009-07-29 +%% +Type: language +Subtag: mgp +Description: Eastern Magar +Added: 2009-07-29 +%% +Type: language +Subtag: mgq +Description: Malila +Added: 2009-07-29 +%% +Type: language +Subtag: mgr +Description: Mambwe-Lungu +Added: 2009-07-29 +%% +Type: language +Subtag: mgs +Description: Manda (Tanzania) +Added: 2009-07-29 +%% +Type: language +Subtag: mgt +Description: Mongol +Added: 2009-07-29 +%% +Type: language +Subtag: mgu +Description: Mailu +Added: 2009-07-29 +%% +Type: language +Subtag: mgv +Description: Matengo +Added: 2009-07-29 +%% +Type: language +Subtag: mgw +Description: Matumbi +Added: 2009-07-29 +%% +Type: language +Subtag: mgx +Description: Omati +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see jbk, jmw +%% +Type: language +Subtag: mgy +Description: Mbunga +Added: 2009-07-29 +%% +Type: language +Subtag: mgz +Description: Mbugwe +Added: 2009-07-29 +%% +Type: language +Subtag: mha +Description: Manda (India) +Added: 2009-07-29 +%% +Type: language +Subtag: mhb +Description: Mahongwe +Added: 2009-07-29 +%% +Type: language +Subtag: mhc +Description: Mocho +Added: 2009-07-29 +%% +Type: language +Subtag: mhd +Description: Mbugu +Added: 2009-07-29 +%% +Type: language +Subtag: mhe +Description: Besisi +Description: Mah Meri +Added: 2009-07-29 +%% +Type: language +Subtag: mhf +Description: Mamaa +Added: 2009-07-29 +%% +Type: language +Subtag: mhg +Description: Margu +Added: 2009-07-29 +%% +Type: language +Subtag: mhh +Description: Maskoy Pidgin +Added: 2009-07-29 +Deprecated: 2014-02-28 +%% +Type: language +Subtag: mhi +Description: Ma'di +Added: 2009-07-29 +%% +Type: language +Subtag: mhj +Description: Mogholi +Added: 2009-07-29 +%% +Type: language +Subtag: mhk +Description: Mungaka +Added: 2009-07-29 +%% +Type: language +Subtag: mhl +Description: Mauwake +Added: 2009-07-29 +%% +Type: language +Subtag: mhm +Description: Makhuwa-Moniga +Added: 2009-07-29 +%% +Type: language +Subtag: mhn +Description: Mócheno +Added: 2009-07-29 +%% +Type: language +Subtag: mho +Description: Mashi (Zambia) +Added: 2009-07-29 +%% +Type: language +Subtag: mhp +Description: Balinese Malay +Added: 2009-07-29 +%% +Type: language +Subtag: mhq +Description: Mandan +Added: 2009-07-29 +%% +Type: language +Subtag: mhr +Description: Eastern Mari +Added: 2009-07-29 +Macrolanguage: chm +%% +Type: language +Subtag: mhs +Description: Buru (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: mht +Description: Mandahuaca +Added: 2009-07-29 +%% +Type: language +Subtag: mhu +Description: Digaro-Mishmi +Description: Darang Deng +Added: 2009-07-29 +%% +Type: language +Subtag: mhw +Description: Mbukushu +Added: 2009-07-29 +%% +Type: language +Subtag: mhx +Description: Maru +Description: Lhaovo +Added: 2009-07-29 +%% +Type: language +Subtag: mhy +Description: Ma'anyan +Added: 2009-07-29 +%% +Type: language +Subtag: mhz +Description: Mor (Mor Islands) +Added: 2009-07-29 +%% +Type: language +Subtag: mia +Description: Miami +Added: 2009-07-29 +%% +Type: language +Subtag: mib +Description: Atatláhuca Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mic +Description: Mi'kmaq +Description: Micmac +Added: 2005-10-16 +%% +Type: language +Subtag: mid +Description: Mandaic +Added: 2009-07-29 +%% +Type: language +Subtag: mie +Description: Ocotepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mif +Description: Mofu-Gudur +Added: 2009-07-29 +%% +Type: language +Subtag: mig +Description: San Miguel El Grande Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mih +Description: Chayuco Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mii +Description: Chigmecatitlán Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mij +Description: Abar +Description: Mungbam +Added: 2009-07-29 +%% +Type: language +Subtag: mik +Description: Mikasuki +Added: 2009-07-29 +%% +Type: language +Subtag: mil +Description: Peñoles Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mim +Description: Alacatlatzala Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: min +Description: Minangkabau +Added: 2005-10-16 +Macrolanguage: ms +%% +Type: language +Subtag: mio +Description: Pinotepa Nacional Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mip +Description: Apasco-Apoala Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: miq +Description: Mískito +Added: 2009-07-29 +%% +Type: language +Subtag: mir +Description: Isthmus Mixe +Added: 2009-07-29 +%% +Type: language +Subtag: mis +Description: Uncoded languages +Added: 2005-10-16 +Scope: special +%% +Type: language +Subtag: mit +Description: Southern Puebla Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: miu +Description: Cacaloxtepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: miw +Description: Akoye +Added: 2009-07-29 +%% +Type: language +Subtag: mix +Description: Mixtepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: miy +Description: Ayutla Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: miz +Description: Coatzospan Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mja +Description: Mahei +Added: 2009-07-29 +Deprecated: 2011-08-16 +%% +Type: language +Subtag: mjb +Description: Makalero +Added: 2016-05-30 +%% +Type: language +Subtag: mjc +Description: San Juan Colorado Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mjd +Description: Northwest Maidu +Added: 2009-07-29 +%% +Type: language +Subtag: mje +Description: Muskum +Added: 2009-07-29 +%% +Type: language +Subtag: mjg +Description: Tu +Added: 2009-07-29 +%% +Type: language +Subtag: mjh +Description: Mwera (Nyasa) +Added: 2009-07-29 +%% +Type: language +Subtag: mji +Description: Kim Mun +Added: 2009-07-29 +%% +Type: language +Subtag: mjj +Description: Mawak +Added: 2009-07-29 +%% +Type: language +Subtag: mjk +Description: Matukar +Added: 2009-07-29 +%% +Type: language +Subtag: mjl +Description: Mandeali +Added: 2009-07-29 +%% +Type: language +Subtag: mjm +Description: Medebur +Added: 2009-07-29 +%% +Type: language +Subtag: mjn +Description: Ma (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: mjo +Description: Malankuravan +Added: 2009-07-29 +%% +Type: language +Subtag: mjp +Description: Malapandaram +Added: 2009-07-29 +%% +Type: language +Subtag: mjq +Description: Malaryan +Added: 2009-07-29 +%% +Type: language +Subtag: mjr +Description: Malavedan +Added: 2009-07-29 +%% +Type: language +Subtag: mjs +Description: Miship +Added: 2009-07-29 +%% +Type: language +Subtag: mjt +Description: Sauria Paharia +Added: 2009-07-29 +%% +Type: language +Subtag: mju +Description: Manna-Dora +Added: 2009-07-29 +%% +Type: language +Subtag: mjv +Description: Mannan +Added: 2009-07-29 +%% +Type: language +Subtag: mjw +Description: Karbi +Added: 2009-07-29 +%% +Type: language +Subtag: mjx +Description: Mahali +Added: 2009-07-29 +%% +Type: language +Subtag: mjy +Description: Mahican +Added: 2009-07-29 +%% +Type: language +Subtag: mjz +Description: Majhi +Added: 2009-07-29 +%% +Type: language +Subtag: mka +Description: Mbre +Added: 2009-07-29 +%% +Type: language +Subtag: mkb +Description: Mal Paharia +Added: 2009-07-29 +%% +Type: language +Subtag: mkc +Description: Siliput +Added: 2009-07-29 +%% +Type: language +Subtag: mke +Description: Mawchi +Added: 2009-07-29 +%% +Type: language +Subtag: mkf +Description: Miya +Added: 2009-07-29 +%% +Type: language +Subtag: mkg +Description: Mak (China) +Added: 2009-07-29 +%% +Type: language +Subtag: mkh +Description: Mon-Khmer languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: mki +Description: Dhatki +Added: 2009-07-29 +%% +Type: language +Subtag: mkj +Description: Mokilese +Added: 2009-07-29 +%% +Type: language +Subtag: mkk +Description: Byep +Added: 2009-07-29 +%% +Type: language +Subtag: mkl +Description: Mokole +Added: 2009-07-29 +%% +Type: language +Subtag: mkm +Description: Moklen +Added: 2009-07-29 +%% +Type: language +Subtag: mkn +Description: Kupang Malay +Added: 2009-07-29 +%% +Type: language +Subtag: mko +Description: Mingang Doso +Added: 2009-07-29 +%% +Type: language +Subtag: mkp +Description: Moikodi +Added: 2009-07-29 +%% +Type: language +Subtag: mkq +Description: Bay Miwok +Added: 2009-07-29 +%% +Type: language +Subtag: mkr +Description: Malas +Added: 2009-07-29 +%% +Type: language +Subtag: mks +Description: Silacayoapan Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mkt +Description: Vamale +Added: 2009-07-29 +%% +Type: language +Subtag: mku +Description: Konyanka Maninka +Added: 2009-07-29 +Macrolanguage: man +%% +Type: language +Subtag: mkv +Description: Mafea +Added: 2009-07-29 +%% +Type: language +Subtag: mkw +Description: Kituba (Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: mkx +Description: Kinamiging Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: mky +Description: East Makian +Added: 2009-07-29 +%% +Type: language +Subtag: mkz +Description: Makasae +Added: 2009-07-29 +%% +Type: language +Subtag: mla +Description: Malo +Added: 2009-07-29 +%% +Type: language +Subtag: mlb +Description: Mbule +Added: 2009-07-29 +%% +Type: language +Subtag: mlc +Description: Cao Lan +Added: 2009-07-29 +%% +Type: language +Subtag: mld +Description: Malakhel +Added: 2009-07-29 +Deprecated: 2013-09-10 +%% +Type: language +Subtag: mle +Description: Manambu +Added: 2009-07-29 +%% +Type: language +Subtag: mlf +Description: Mal +Added: 2009-07-29 +%% +Type: language +Subtag: mlh +Description: Mape +Added: 2009-07-29 +%% +Type: language +Subtag: mli +Description: Malimpung +Added: 2009-07-29 +%% +Type: language +Subtag: mlj +Description: Miltu +Added: 2009-07-29 +%% +Type: language +Subtag: mlk +Description: Ilwana +Description: Kiwilwana +Added: 2009-07-29 +%% +Type: language +Subtag: mll +Description: Malua Bay +Added: 2009-07-29 +%% +Type: language +Subtag: mlm +Description: Mulam +Added: 2009-07-29 +%% +Type: language +Subtag: mln +Description: Malango +Added: 2009-07-29 +%% +Type: language +Subtag: mlo +Description: Mlomp +Added: 2009-07-29 +%% +Type: language +Subtag: mlp +Description: Bargam +Added: 2009-07-29 +%% +Type: language +Subtag: mlq +Description: Western Maninkakan +Added: 2009-07-29 +Macrolanguage: man +%% +Type: language +Subtag: mlr +Description: Vame +Added: 2009-07-29 +%% +Type: language +Subtag: mls +Description: Masalit +Added: 2009-07-29 +%% +Type: language +Subtag: mlu +Description: To'abaita +Added: 2009-07-29 +%% +Type: language +Subtag: mlv +Description: Motlav +Description: Mwotlap +Added: 2009-07-29 +%% +Type: language +Subtag: mlw +Description: Moloko +Added: 2009-07-29 +%% +Type: language +Subtag: mlx +Description: Malfaxal +Description: Naha'ai +Added: 2009-07-29 +%% +Type: language +Subtag: mlz +Description: Malaynon +Added: 2009-07-29 +%% +Type: language +Subtag: mma +Description: Mama +Added: 2009-07-29 +%% +Type: language +Subtag: mmb +Description: Momina +Added: 2009-07-29 +%% +Type: language +Subtag: mmc +Description: Michoacán Mazahua +Added: 2009-07-29 +%% +Type: language +Subtag: mmd +Description: Maonan +Added: 2009-07-29 +%% +Type: language +Subtag: mme +Description: Mae +Added: 2009-07-29 +%% +Type: language +Subtag: mmf +Description: Mundat +Added: 2009-07-29 +%% +Type: language +Subtag: mmg +Description: North Ambrym +Added: 2009-07-29 +%% +Type: language +Subtag: mmh +Description: Mehináku +Added: 2009-07-29 +%% +Type: language +Subtag: mmi +Description: Musar +Added: 2009-07-29 +%% +Type: language +Subtag: mmj +Description: Majhwar +Added: 2009-07-29 +%% +Type: language +Subtag: mmk +Description: Mukha-Dora +Added: 2009-07-29 +%% +Type: language +Subtag: mml +Description: Man Met +Added: 2009-07-29 +%% +Type: language +Subtag: mmm +Description: Maii +Added: 2009-07-29 +%% +Type: language +Subtag: mmn +Description: Mamanwa +Added: 2009-07-29 +%% +Type: language +Subtag: mmo +Description: Mangga Buang +Added: 2009-07-29 +%% +Type: language +Subtag: mmp +Description: Siawi +Added: 2009-07-29 +%% +Type: language +Subtag: mmq +Description: Musak +Added: 2009-07-29 +%% +Type: language +Subtag: mmr +Description: Western Xiangxi Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: mmt +Description: Malalamai +Added: 2009-07-29 +%% +Type: language +Subtag: mmu +Description: Mmaala +Added: 2009-07-29 +%% +Type: language +Subtag: mmv +Description: Miriti +Added: 2009-07-29 +%% +Type: language +Subtag: mmw +Description: Emae +Added: 2009-07-29 +%% +Type: language +Subtag: mmx +Description: Madak +Added: 2009-07-29 +%% +Type: language +Subtag: mmy +Description: Migaama +Added: 2009-07-29 +%% +Type: language +Subtag: mmz +Description: Mabaale +Added: 2009-07-29 +%% +Type: language +Subtag: mna +Description: Mbula +Added: 2009-07-29 +%% +Type: language +Subtag: mnb +Description: Muna +Added: 2009-07-29 +%% +Type: language +Subtag: mnc +Description: Manchu +Added: 2005-10-16 +%% +Type: language +Subtag: mnd +Description: Mondé +Added: 2009-07-29 +%% +Type: language +Subtag: mne +Description: Naba +Added: 2009-07-29 +%% +Type: language +Subtag: mnf +Description: Mundani +Added: 2009-07-29 +%% +Type: language +Subtag: mng +Description: Eastern Mnong +Added: 2009-07-29 +%% +Type: language +Subtag: mnh +Description: Mono (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: mni +Description: Manipuri +Added: 2005-10-16 +%% +Type: language +Subtag: mnj +Description: Munji +Added: 2009-07-29 +%% +Type: language +Subtag: mnk +Description: Mandinka +Added: 2009-07-29 +Macrolanguage: man +%% +Type: language +Subtag: mnl +Description: Tiale +Added: 2009-07-29 +%% +Type: language +Subtag: mnm +Description: Mapena +Added: 2009-07-29 +%% +Type: language +Subtag: mnn +Description: Southern Mnong +Added: 2009-07-29 +%% +Type: language +Subtag: mno +Description: Manobo languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: mnp +Description: Min Bei Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: mnq +Description: Minriq +Added: 2009-07-29 +%% +Type: language +Subtag: mnr +Description: Mono (USA) +Added: 2009-07-29 +%% +Type: language +Subtag: mns +Description: Mansi +Added: 2009-07-29 +%% +Type: language +Subtag: mnt +Description: Maykulan +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see wnn, xyj, xyk, xyt +%% +Type: language +Subtag: mnu +Description: Mer +Added: 2009-07-29 +%% +Type: language +Subtag: mnv +Description: Rennell-Bellona +Added: 2009-07-29 +%% +Type: language +Subtag: mnw +Description: Mon +Added: 2009-07-29 +%% +Type: language +Subtag: mnx +Description: Manikion +Added: 2009-07-29 +%% +Type: language +Subtag: mny +Description: Manyawa +Added: 2009-07-29 +%% +Type: language +Subtag: mnz +Description: Moni +Added: 2009-07-29 +%% +Type: language +Subtag: moa +Description: Mwan +Added: 2009-07-29 +%% +Type: language +Subtag: moc +Description: Mocoví +Added: 2009-07-29 +%% +Type: language +Subtag: mod +Description: Mobilian +Added: 2009-07-29 +%% +Type: language +Subtag: moe +Description: Montagnais +Added: 2009-07-29 +%% +Type: language +Subtag: mof +Description: Mohegan-Montauk-Narragansett +Added: 2009-07-29 +Deprecated: 2010-03-11 +Comments: see xnt, xpq +%% +Type: language +Subtag: mog +Description: Mongondow +Added: 2009-07-29 +%% +Type: language +Subtag: moh +Description: Mohawk +Added: 2005-10-16 +%% +Type: language +Subtag: moi +Description: Mboi +Added: 2009-07-29 +%% +Type: language +Subtag: moj +Description: Monzombo +Added: 2009-07-29 +%% +Type: language +Subtag: mok +Description: Morori +Added: 2009-07-29 +%% +Type: language +Subtag: mom +Description: Mangue +Added: 2009-07-29 +%% +Type: language +Subtag: moo +Description: Monom +Added: 2009-07-29 +%% +Type: language +Subtag: mop +Description: Mopán Maya +Added: 2009-07-29 +%% +Type: language +Subtag: moq +Description: Mor (Bomberai Peninsula) +Added: 2009-07-29 +%% +Type: language +Subtag: mor +Description: Moro +Added: 2009-07-29 +%% +Type: language +Subtag: mos +Description: Mossi +Added: 2005-10-16 +%% +Type: language +Subtag: mot +Description: Barí +Added: 2009-07-29 +%% +Type: language +Subtag: mou +Description: Mogum +Added: 2009-07-29 +%% +Type: language +Subtag: mov +Description: Mohave +Added: 2009-07-29 +%% +Type: language +Subtag: mow +Description: Moi (Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: mox +Description: Molima +Added: 2009-07-29 +%% +Type: language +Subtag: moy +Description: Shekkacho +Added: 2009-07-29 +%% +Type: language +Subtag: moz +Description: Mukulu +Description: Gergiko +Added: 2009-07-29 +%% +Type: language +Subtag: mpa +Description: Mpoto +Added: 2009-07-29 +%% +Type: language +Subtag: mpb +Description: Malak Malak +Description: Mullukmulluk +Added: 2009-07-29 +%% +Type: language +Subtag: mpc +Description: Mangarrayi +Added: 2009-07-29 +%% +Type: language +Subtag: mpd +Description: Machinere +Added: 2009-07-29 +%% +Type: language +Subtag: mpe +Description: Majang +Added: 2009-07-29 +%% +Type: language +Subtag: mpg +Description: Marba +Added: 2009-07-29 +%% +Type: language +Subtag: mph +Description: Maung +Added: 2009-07-29 +%% +Type: language +Subtag: mpi +Description: Mpade +Added: 2009-07-29 +%% +Type: language +Subtag: mpj +Description: Martu Wangka +Description: Wangkajunga +Added: 2009-07-29 +%% +Type: language +Subtag: mpk +Description: Mbara (Chad) +Added: 2009-07-29 +%% +Type: language +Subtag: mpl +Description: Middle Watut +Added: 2009-07-29 +%% +Type: language +Subtag: mpm +Description: Yosondúa Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mpn +Description: Mindiri +Added: 2009-07-29 +%% +Type: language +Subtag: mpo +Description: Miu +Added: 2009-07-29 +%% +Type: language +Subtag: mpp +Description: Migabac +Added: 2009-07-29 +%% +Type: language +Subtag: mpq +Description: Matís +Added: 2009-07-29 +%% +Type: language +Subtag: mpr +Description: Vangunu +Added: 2009-07-29 +%% +Type: language +Subtag: mps +Description: Dadibi +Added: 2009-07-29 +%% +Type: language +Subtag: mpt +Description: Mian +Added: 2009-07-29 +%% +Type: language +Subtag: mpu +Description: Makuráp +Added: 2009-07-29 +%% +Type: language +Subtag: mpv +Description: Mungkip +Added: 2009-07-29 +%% +Type: language +Subtag: mpw +Description: Mapidian +Added: 2009-07-29 +%% +Type: language +Subtag: mpx +Description: Misima-Panaeati +Added: 2009-07-29 +%% +Type: language +Subtag: mpy +Description: Mapia +Added: 2009-07-29 +%% +Type: language +Subtag: mpz +Description: Mpi +Added: 2009-07-29 +%% +Type: language +Subtag: mqa +Description: Maba (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: mqb +Description: Mbuko +Added: 2009-07-29 +%% +Type: language +Subtag: mqc +Description: Mangole +Added: 2009-07-29 +%% +Type: language +Subtag: mqe +Description: Matepi +Added: 2009-07-29 +%% +Type: language +Subtag: mqf +Description: Momuna +Added: 2009-07-29 +%% +Type: language +Subtag: mqg +Description: Kota Bangun Kutai Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: mqh +Description: Tlazoyaltepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mqi +Description: Mariri +Added: 2009-07-29 +%% +Type: language +Subtag: mqj +Description: Mamasa +Added: 2009-07-29 +%% +Type: language +Subtag: mqk +Description: Rajah Kabunsuwan Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: mql +Description: Mbelime +Added: 2009-07-29 +%% +Type: language +Subtag: mqm +Description: South Marquesan +Added: 2009-07-29 +%% +Type: language +Subtag: mqn +Description: Moronene +Added: 2009-07-29 +%% +Type: language +Subtag: mqo +Description: Modole +Added: 2009-07-29 +%% +Type: language +Subtag: mqp +Description: Manipa +Added: 2009-07-29 +%% +Type: language +Subtag: mqq +Description: Minokok +Added: 2009-07-29 +%% +Type: language +Subtag: mqr +Description: Mander +Added: 2009-07-29 +%% +Type: language +Subtag: mqs +Description: West Makian +Added: 2009-07-29 +%% +Type: language +Subtag: mqt +Description: Mok +Added: 2009-07-29 +%% +Type: language +Subtag: mqu +Description: Mandari +Added: 2009-07-29 +%% +Type: language +Subtag: mqv +Description: Mosimo +Added: 2009-07-29 +%% +Type: language +Subtag: mqw +Description: Murupi +Added: 2009-07-29 +%% +Type: language +Subtag: mqx +Description: Mamuju +Added: 2009-07-29 +%% +Type: language +Subtag: mqy +Description: Manggarai +Added: 2009-07-29 +%% +Type: language +Subtag: mqz +Description: Pano +Added: 2009-07-29 +%% +Type: language +Subtag: mra +Description: Mlabri +Added: 2009-07-29 +%% +Type: language +Subtag: mrb +Description: Marino +Added: 2009-07-29 +%% +Type: language +Subtag: mrc +Description: Maricopa +Added: 2009-07-29 +%% +Type: language +Subtag: mrd +Description: Western Magar +Added: 2009-07-29 +%% +Type: language +Subtag: mre +Description: Martha's Vineyard Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: mrf +Description: Elseng +Added: 2009-07-29 +%% +Type: language +Subtag: mrg +Description: Mising +Added: 2009-07-29 +%% +Type: language +Subtag: mrh +Description: Mara Chin +Added: 2009-07-29 +%% +Type: language +Subtag: mrj +Description: Western Mari +Added: 2009-07-29 +Macrolanguage: chm +%% +Type: language +Subtag: mrk +Description: Hmwaveke +Added: 2009-07-29 +%% +Type: language +Subtag: mrl +Description: Mortlockese +Added: 2009-07-29 +%% +Type: language +Subtag: mrm +Description: Merlav +Description: Mwerlap +Added: 2009-07-29 +%% +Type: language +Subtag: mrn +Description: Cheke Holo +Added: 2009-07-29 +%% +Type: language +Subtag: mro +Description: Mru +Added: 2009-07-29 +%% +Type: language +Subtag: mrp +Description: Morouas +Added: 2009-07-29 +%% +Type: language +Subtag: mrq +Description: North Marquesan +Added: 2009-07-29 +%% +Type: language +Subtag: mrr +Description: Maria (India) +Added: 2009-07-29 +%% +Type: language +Subtag: mrs +Description: Maragus +Added: 2009-07-29 +%% +Type: language +Subtag: mrt +Description: Marghi Central +Added: 2009-07-29 +%% +Type: language +Subtag: mru +Description: Mono (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: mrv +Description: Mangareva +Added: 2009-07-29 +%% +Type: language +Subtag: mrw +Description: Maranao +Added: 2009-07-29 +%% +Type: language +Subtag: mrx +Description: Maremgi +Description: Dineor +Added: 2009-07-29 +%% +Type: language +Subtag: mry +Description: Mandaya +Added: 2009-07-29 +%% +Type: language +Subtag: mrz +Description: Marind +Added: 2009-07-29 +%% +Type: language +Subtag: msb +Description: Masbatenyo +Added: 2009-07-29 +%% +Type: language +Subtag: msc +Description: Sankaran Maninka +Added: 2009-07-29 +Macrolanguage: man +%% +Type: language +Subtag: msd +Description: Yucatec Maya Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: mse +Description: Musey +Added: 2009-07-29 +%% +Type: language +Subtag: msf +Description: Mekwei +Added: 2009-07-29 +%% +Type: language +Subtag: msg +Description: Moraid +Added: 2009-07-29 +%% +Type: language +Subtag: msh +Description: Masikoro Malagasy +Added: 2009-07-29 +Macrolanguage: mg +%% +Type: language +Subtag: msi +Description: Sabah Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: msj +Description: Ma (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: msk +Description: Mansaka +Added: 2009-07-29 +%% +Type: language +Subtag: msl +Description: Molof +Description: Poule +Added: 2009-07-29 +%% +Type: language +Subtag: msm +Description: Agusan Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: msn +Description: Vurës +Added: 2009-07-29 +%% +Type: language +Subtag: mso +Description: Mombum +Added: 2009-07-29 +%% +Type: language +Subtag: msp +Description: Maritsauá +Added: 2009-07-29 +%% +Type: language +Subtag: msq +Description: Caac +Added: 2009-07-29 +%% +Type: language +Subtag: msr +Description: Mongolian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: mss +Description: West Masela +Added: 2009-07-29 +%% +Type: language +Subtag: mst +Description: Cataelano Mandaya +Added: 2009-07-29 +Deprecated: 2010-03-11 +Preferred-Value: mry +%% +Type: language +Subtag: msu +Description: Musom +Added: 2009-07-29 +%% +Type: language +Subtag: msv +Description: Maslam +Added: 2009-07-29 +%% +Type: language +Subtag: msw +Description: Mansoanka +Added: 2009-07-29 +%% +Type: language +Subtag: msx +Description: Moresada +Added: 2009-07-29 +%% +Type: language +Subtag: msy +Description: Aruamu +Added: 2009-07-29 +%% +Type: language +Subtag: msz +Description: Momare +Added: 2009-07-29 +%% +Type: language +Subtag: mta +Description: Cotabato Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: mtb +Description: Anyin Morofo +Added: 2009-07-29 +%% +Type: language +Subtag: mtc +Description: Munit +Added: 2009-07-29 +%% +Type: language +Subtag: mtd +Description: Mualang +Added: 2009-07-29 +%% +Type: language +Subtag: mte +Description: Mono (Solomon Islands) +Added: 2009-07-29 +%% +Type: language +Subtag: mtf +Description: Murik (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: mtg +Description: Una +Added: 2009-07-29 +%% +Type: language +Subtag: mth +Description: Munggui +Added: 2009-07-29 +%% +Type: language +Subtag: mti +Description: Maiwa (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: mtj +Description: Moskona +Added: 2009-07-29 +%% +Type: language +Subtag: mtk +Description: Mbe' +Added: 2009-07-29 +%% +Type: language +Subtag: mtl +Description: Montol +Added: 2009-07-29 +%% +Type: language +Subtag: mtm +Description: Mator +Added: 2009-07-29 +%% +Type: language +Subtag: mtn +Description: Matagalpa +Added: 2009-07-29 +%% +Type: language +Subtag: mto +Description: Totontepec Mixe +Added: 2009-07-29 +%% +Type: language +Subtag: mtp +Description: Wichí Lhamtés Nocten +Added: 2009-07-29 +%% +Type: language +Subtag: mtq +Description: Muong +Added: 2009-07-29 +%% +Type: language +Subtag: mtr +Description: Mewari +Added: 2009-07-29 +Macrolanguage: mwr +%% +Type: language +Subtag: mts +Description: Yora +Added: 2009-07-29 +%% +Type: language +Subtag: mtt +Description: Mota +Added: 2009-07-29 +%% +Type: language +Subtag: mtu +Description: Tututepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mtv +Description: Asaro'o +Added: 2009-07-29 +%% +Type: language +Subtag: mtw +Description: Southern Binukidnon +Added: 2009-07-29 +%% +Type: language +Subtag: mtx +Description: Tidaá Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mty +Description: Nabi +Added: 2009-07-29 +%% +Type: language +Subtag: mua +Description: Mundang +Added: 2009-07-29 +%% +Type: language +Subtag: mub +Description: Mubi +Added: 2009-07-29 +%% +Type: language +Subtag: muc +Description: Ajumbu +Added: 2009-07-29 +%% +Type: language +Subtag: mud +Description: Mednyj Aleut +Added: 2009-07-29 +%% +Type: language +Subtag: mue +Description: Media Lengua +Added: 2009-07-29 +%% +Type: language +Subtag: mug +Description: Musgu +Added: 2009-07-29 +%% +Type: language +Subtag: muh +Description: Mündü +Added: 2009-07-29 +%% +Type: language +Subtag: mui +Description: Musi +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: muj +Description: Mabire +Added: 2009-07-29 +%% +Type: language +Subtag: muk +Description: Mugom +Added: 2009-07-29 +%% +Type: language +Subtag: mul +Description: Multiple languages +Added: 2005-10-16 +Scope: special +%% +Type: language +Subtag: mum +Description: Maiwala +Added: 2009-07-29 +%% +Type: language +Subtag: mun +Description: Munda languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: muo +Description: Nyong +Added: 2009-07-29 +%% +Type: language +Subtag: mup +Description: Malvi +Added: 2009-07-29 +Macrolanguage: raj +%% +Type: language +Subtag: muq +Description: Eastern Xiangxi Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: mur +Description: Murle +Added: 2009-07-29 +%% +Type: language +Subtag: mus +Description: Creek +Added: 2005-10-16 +%% +Type: language +Subtag: mut +Description: Western Muria +Added: 2009-07-29 +%% +Type: language +Subtag: muu +Description: Yaaku +Added: 2009-07-29 +%% +Type: language +Subtag: muv +Description: Muthuvan +Added: 2009-07-29 +%% +Type: language +Subtag: mux +Description: Bo-Ung +Added: 2009-07-29 +%% +Type: language +Subtag: muy +Description: Muyang +Added: 2009-07-29 +%% +Type: language +Subtag: muz +Description: Mursi +Added: 2009-07-29 +%% +Type: language +Subtag: mva +Description: Manam +Added: 2009-07-29 +%% +Type: language +Subtag: mvb +Description: Mattole +Added: 2009-07-29 +%% +Type: language +Subtag: mvd +Description: Mamboru +Added: 2009-07-29 +%% +Type: language +Subtag: mve +Description: Marwari (Pakistan) +Added: 2009-07-29 +Macrolanguage: mwr +%% +Type: language +Subtag: mvf +Description: Peripheral Mongolian +Added: 2009-07-29 +Macrolanguage: mn +%% +Type: language +Subtag: mvg +Description: Yucuañe Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mvh +Description: Mulgi +Added: 2009-07-29 +%% +Type: language +Subtag: mvi +Description: Miyako +Added: 2009-07-29 +%% +Type: language +Subtag: mvk +Description: Mekmek +Added: 2009-07-29 +%% +Type: language +Subtag: mvl +Description: Mbara (Australia) +Added: 2009-07-29 +%% +Type: language +Subtag: mvm +Description: Muya +Added: 2009-07-29 +%% +Type: language +Subtag: mvn +Description: Minaveha +Added: 2009-07-29 +%% +Type: language +Subtag: mvo +Description: Marovo +Added: 2009-07-29 +%% +Type: language +Subtag: mvp +Description: Duri +Added: 2009-07-29 +%% +Type: language +Subtag: mvq +Description: Moere +Added: 2009-07-29 +%% +Type: language +Subtag: mvr +Description: Marau +Added: 2009-07-29 +%% +Type: language +Subtag: mvs +Description: Massep +Added: 2009-07-29 +%% +Type: language +Subtag: mvt +Description: Mpotovoro +Added: 2009-07-29 +%% +Type: language +Subtag: mvu +Description: Marfa +Added: 2009-07-29 +%% +Type: language +Subtag: mvv +Description: Tagal Murut +Added: 2009-07-29 +%% +Type: language +Subtag: mvw +Description: Machinga +Added: 2009-07-29 +%% +Type: language +Subtag: mvx +Description: Meoswar +Added: 2009-07-29 +%% +Type: language +Subtag: mvy +Description: Indus Kohistani +Added: 2009-07-29 +%% +Type: language +Subtag: mvz +Description: Mesqan +Added: 2009-07-29 +%% +Type: language +Subtag: mwa +Description: Mwatebu +Added: 2009-07-29 +%% +Type: language +Subtag: mwb +Description: Juwal +Added: 2009-07-29 +%% +Type: language +Subtag: mwc +Description: Are +Added: 2009-07-29 +%% +Type: language +Subtag: mwd +Description: Mudbura +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see dmw, xrq +%% +Type: language +Subtag: mwe +Description: Mwera (Chimwera) +Added: 2009-07-29 +%% +Type: language +Subtag: mwf +Description: Murrinh-Patha +Added: 2009-07-29 +%% +Type: language +Subtag: mwg +Description: Aiklep +Added: 2009-07-29 +%% +Type: language +Subtag: mwh +Description: Mouk-Aria +Added: 2009-07-29 +%% +Type: language +Subtag: mwi +Description: Labo +Description: Ninde +Added: 2009-07-29 +%% +Type: language +Subtag: mwj +Description: Maligo +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: vaj +%% +Type: language +Subtag: mwk +Description: Kita Maninkakan +Added: 2009-07-29 +Macrolanguage: man +%% +Type: language +Subtag: mwl +Description: Mirandese +Added: 2005-10-16 +%% +Type: language +Subtag: mwm +Description: Sar +Added: 2009-07-29 +%% +Type: language +Subtag: mwn +Description: Nyamwanga +Added: 2009-07-29 +%% +Type: language +Subtag: mwo +Description: Central Maewo +Added: 2009-07-29 +%% +Type: language +Subtag: mwp +Description: Kala Lagaw Ya +Added: 2009-07-29 +%% +Type: language +Subtag: mwq +Description: Mün Chin +Added: 2009-07-29 +%% +Type: language +Subtag: mwr +Description: Marwari +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: mws +Description: Mwimbi-Muthambi +Added: 2009-07-29 +%% +Type: language +Subtag: mwt +Description: Moken +Added: 2009-07-29 +%% +Type: language +Subtag: mwu +Description: Mittu +Added: 2009-07-29 +%% +Type: language +Subtag: mwv +Description: Mentawai +Added: 2009-07-29 +%% +Type: language +Subtag: mww +Description: Hmong Daw +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: mwx +Description: Mediak +Added: 2009-07-29 +Deprecated: 2018-03-08 +%% +Type: language +Subtag: mwy +Description: Mosiro +Added: 2009-07-29 +Deprecated: 2018-03-08 +%% +Type: language +Subtag: mwz +Description: Moingi +Added: 2009-07-29 +%% +Type: language +Subtag: mxa +Description: Northwest Oaxaca Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mxb +Description: Tezoatlán Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mxc +Description: Manyika +Added: 2009-07-29 +%% +Type: language +Subtag: mxd +Description: Modang +Added: 2009-07-29 +%% +Type: language +Subtag: mxe +Description: Mele-Fila +Added: 2009-07-29 +%% +Type: language +Subtag: mxf +Description: Malgbe +Added: 2009-07-29 +%% +Type: language +Subtag: mxg +Description: Mbangala +Added: 2009-07-29 +%% +Type: language +Subtag: mxh +Description: Mvuba +Added: 2009-07-29 +%% +Type: language +Subtag: mxi +Description: Mozarabic +Added: 2009-07-29 +%% +Type: language +Subtag: mxj +Description: Miju-Mishmi +Description: Geman Deng +Added: 2009-07-29 +%% +Type: language +Subtag: mxk +Description: Monumbo +Added: 2009-07-29 +%% +Type: language +Subtag: mxl +Description: Maxi Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: mxm +Description: Meramera +Added: 2009-07-29 +%% +Type: language +Subtag: mxn +Description: Moi (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: mxo +Description: Mbowe +Added: 2009-07-29 +%% +Type: language +Subtag: mxp +Description: Tlahuitoltepec Mixe +Added: 2009-07-29 +%% +Type: language +Subtag: mxq +Description: Juquila Mixe +Added: 2009-07-29 +%% +Type: language +Subtag: mxr +Description: Murik (Malaysia) +Added: 2009-07-29 +%% +Type: language +Subtag: mxs +Description: Huitepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mxt +Description: Jamiltepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mxu +Description: Mada (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: mxv +Description: Metlatónoc Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mxw +Description: Namo +Added: 2009-07-29 +%% +Type: language +Subtag: mxx +Description: Mahou +Description: Mawukakan +Added: 2009-07-29 +%% +Type: language +Subtag: mxy +Description: Southeastern Nochixtlán Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mxz +Description: Central Masela +Added: 2009-07-29 +%% +Type: language +Subtag: myb +Description: Mbay +Added: 2009-07-29 +%% +Type: language +Subtag: myc +Description: Mayeka +Added: 2009-07-29 +%% +Type: language +Subtag: myd +Description: Maramba +Added: 2009-07-29 +Deprecated: 2019-04-16 +Preferred-Value: aog +%% +Type: language +Subtag: mye +Description: Myene +Added: 2009-07-29 +%% +Type: language +Subtag: myf +Description: Bambassi +Added: 2009-07-29 +%% +Type: language +Subtag: myg +Description: Manta +Added: 2009-07-29 +%% +Type: language +Subtag: myh +Description: Makah +Added: 2009-07-29 +%% +Type: language +Subtag: myi +Description: Mina (India) +Added: 2009-07-29 +Deprecated: 2019-04-16 +%% +Type: language +Subtag: myj +Description: Mangayat +Added: 2009-07-29 +%% +Type: language +Subtag: myk +Description: Mamara Senoufo +Added: 2009-07-29 +%% +Type: language +Subtag: myl +Description: Moma +Added: 2009-07-29 +%% +Type: language +Subtag: mym +Description: Me'en +Added: 2009-07-29 +%% +Type: language +Subtag: myn +Description: Mayan languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: myo +Description: Anfillo +Added: 2009-07-29 +%% +Type: language +Subtag: myp +Description: Pirahã +Added: 2009-07-29 +%% +Type: language +Subtag: myq +Description: Forest Maninka +Added: 2009-07-29 +Deprecated: 2013-09-10 +Macrolanguage: man +%% +Type: language +Subtag: myr +Description: Muniche +Added: 2009-07-29 +%% +Type: language +Subtag: mys +Description: Mesmes +Added: 2009-07-29 +%% +Type: language +Subtag: myt +Description: Sangab Mandaya +Added: 2009-07-29 +Deprecated: 2010-03-11 +Preferred-Value: mry +%% +Type: language +Subtag: myu +Description: Mundurukú +Added: 2009-07-29 +%% +Type: language +Subtag: myv +Description: Erzya +Added: 2005-10-16 +%% +Type: language +Subtag: myw +Description: Muyuw +Added: 2009-07-29 +%% +Type: language +Subtag: myx +Description: Masaaba +Added: 2009-07-29 +%% +Type: language +Subtag: myy +Description: Macuna +Added: 2009-07-29 +%% +Type: language +Subtag: myz +Description: Classical Mandaic +Added: 2009-07-29 +%% +Type: language +Subtag: mza +Description: Santa María Zacatepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: mzb +Description: Tumzabt +Added: 2009-07-29 +%% +Type: language +Subtag: mzc +Description: Madagascar Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: mzd +Description: Malimba +Added: 2009-07-29 +%% +Type: language +Subtag: mze +Description: Morawa +Added: 2009-07-29 +%% +Type: language +Subtag: mzg +Description: Monastic Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: mzh +Description: Wichí Lhamtés Güisnay +Added: 2009-07-29 +%% +Type: language +Subtag: mzi +Description: Ixcatlán Mazatec +Added: 2009-07-29 +%% +Type: language +Subtag: mzj +Description: Manya +Added: 2009-07-29 +%% +Type: language +Subtag: mzk +Description: Nigeria Mambila +Added: 2009-07-29 +%% +Type: language +Subtag: mzl +Description: Mazatlán Mixe +Added: 2009-07-29 +%% +Type: language +Subtag: mzm +Description: Mumuye +Added: 2009-07-29 +%% +Type: language +Subtag: mzn +Description: Mazanderani +Added: 2009-07-29 +%% +Type: language +Subtag: mzo +Description: Matipuhy +Added: 2009-07-29 +%% +Type: language +Subtag: mzp +Description: Movima +Added: 2009-07-29 +%% +Type: language +Subtag: mzq +Description: Mori Atas +Added: 2009-07-29 +%% +Type: language +Subtag: mzr +Description: Marúbo +Added: 2009-07-29 +%% +Type: language +Subtag: mzs +Description: Macanese +Added: 2009-07-29 +%% +Type: language +Subtag: mzt +Description: Mintil +Added: 2009-07-29 +%% +Type: language +Subtag: mzu +Description: Inapang +Added: 2009-07-29 +%% +Type: language +Subtag: mzv +Description: Manza +Added: 2009-07-29 +%% +Type: language +Subtag: mzw +Description: Deg +Added: 2009-07-29 +%% +Type: language +Subtag: mzx +Description: Mawayana +Added: 2009-07-29 +%% +Type: language +Subtag: mzy +Description: Mozambican Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: mzz +Description: Maiadomu +Added: 2009-07-29 +%% +Type: language +Subtag: naa +Description: Namla +Added: 2009-07-29 +%% +Type: language +Subtag: nab +Description: Southern Nambikuára +Added: 2009-07-29 +%% +Type: language +Subtag: nac +Description: Narak +Added: 2009-07-29 +%% +Type: language +Subtag: nad +Description: Nijadali +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: xny +%% +Type: language +Subtag: nae +Description: Naka'ela +Added: 2009-07-29 +%% +Type: language +Subtag: naf +Description: Nabak +Added: 2009-07-29 +%% +Type: language +Subtag: nag +Description: Naga Pidgin +Added: 2009-07-29 +%% +Type: language +Subtag: nah +Description: Nahuatl languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: nai +Description: North American Indian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: naj +Description: Nalu +Added: 2009-07-29 +%% +Type: language +Subtag: nak +Description: Nakanai +Added: 2009-07-29 +%% +Type: language +Subtag: nal +Description: Nalik +Added: 2009-07-29 +%% +Type: language +Subtag: nam +Description: Ngan'gityemerri +Added: 2009-07-29 +%% +Type: language +Subtag: nan +Description: Min Nan Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: nao +Description: Naaba +Added: 2009-07-29 +%% +Type: language +Subtag: nap +Description: Neapolitan +Added: 2005-10-16 +%% +Type: language +Subtag: naq +Description: Khoekhoe +Description: Nama (Namibia) +Added: 2009-07-29 +%% +Type: language +Subtag: nar +Description: Iguta +Added: 2009-07-29 +%% +Type: language +Subtag: nas +Description: Naasioi +Added: 2009-07-29 +%% +Type: language +Subtag: nat +Description: Ca̱hungwa̱rya̱ +Description: Hungworo +Added: 2009-07-29 +%% +Type: language +Subtag: naw +Description: Nawuri +Added: 2009-07-29 +%% +Type: language +Subtag: nax +Description: Nakwi +Added: 2009-07-29 +%% +Type: language +Subtag: nay +Description: Ngarrindjeri +Added: 2009-07-29 +%% +Type: language +Subtag: naz +Description: Coatepec Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nba +Description: Nyemba +Added: 2009-07-29 +%% +Type: language +Subtag: nbb +Description: Ndoe +Added: 2009-07-29 +%% +Type: language +Subtag: nbc +Description: Chang Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nbd +Description: Ngbinda +Added: 2009-07-29 +%% +Type: language +Subtag: nbe +Description: Konyak Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nbf +Description: Naxi +Added: 2009-07-29 +Deprecated: 2011-08-16 +Comments: see nru, nxq +%% +Type: language +Subtag: nbg +Description: Nagarchal +Added: 2009-07-29 +%% +Type: language +Subtag: nbh +Description: Ngamo +Added: 2009-07-29 +%% +Type: language +Subtag: nbi +Description: Mao Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nbj +Description: Ngarinyman +Added: 2009-07-29 +%% +Type: language +Subtag: nbk +Description: Nake +Added: 2009-07-29 +%% +Type: language +Subtag: nbm +Description: Ngbaka Ma'bo +Added: 2009-07-29 +%% +Type: language +Subtag: nbn +Description: Kuri +Added: 2009-07-29 +%% +Type: language +Subtag: nbo +Description: Nkukoli +Added: 2009-07-29 +%% +Type: language +Subtag: nbp +Description: Nnam +Added: 2009-07-29 +%% +Type: language +Subtag: nbq +Description: Nggem +Added: 2009-07-29 +%% +Type: language +Subtag: nbr +Description: Numana +Added: 2009-07-29 +%% +Type: language +Subtag: nbs +Description: Namibian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: nbt +Description: Na +Added: 2009-07-29 +%% +Type: language +Subtag: nbu +Description: Rongmei Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nbv +Description: Ngamambo +Added: 2009-07-29 +%% +Type: language +Subtag: nbw +Description: Southern Ngbandi +Added: 2009-07-29 +%% +Type: language +Subtag: nbx +Description: Ngura +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see ekc, gll, jbi, xpt, xwk +%% +Type: language +Subtag: nby +Description: Ningera +Added: 2009-07-29 +%% +Type: language +Subtag: nca +Description: Iyo +Added: 2009-07-29 +%% +Type: language +Subtag: ncb +Description: Central Nicobarese +Added: 2009-07-29 +%% +Type: language +Subtag: ncc +Description: Ponam +Added: 2009-07-29 +%% +Type: language +Subtag: ncd +Description: Nachering +Added: 2009-07-29 +%% +Type: language +Subtag: nce +Description: Yale +Added: 2009-07-29 +%% +Type: language +Subtag: ncf +Description: Notsi +Added: 2009-07-29 +%% +Type: language +Subtag: ncg +Description: Nisga'a +Added: 2009-07-29 +%% +Type: language +Subtag: nch +Description: Central Huasteca Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nci +Description: Classical Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: ncj +Description: Northern Puebla Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nck +Description: Na-kara +Added: 2009-07-29 +%% +Type: language +Subtag: ncl +Description: Michoacán Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: ncm +Description: Nambo +Added: 2009-07-29 +%% +Type: language +Subtag: ncn +Description: Nauna +Added: 2009-07-29 +%% +Type: language +Subtag: nco +Description: Sibe +Added: 2009-07-29 +%% +Type: language +Subtag: ncp +Description: Ndaktup +Added: 2009-07-29 +Deprecated: 2018-03-08 +Preferred-Value: kdz +%% +Type: language +Subtag: ncq +Description: Northern Katang +Added: 2017-02-23 +%% +Type: language +Subtag: ncr +Description: Ncane +Added: 2009-07-29 +%% +Type: language +Subtag: ncs +Description: Nicaraguan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: nct +Description: Chothe Naga +Added: 2009-07-29 +%% +Type: language +Subtag: ncu +Description: Chumburung +Added: 2009-07-29 +%% +Type: language +Subtag: ncx +Description: Central Puebla Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: ncz +Description: Natchez +Added: 2009-07-29 +%% +Type: language +Subtag: nda +Description: Ndasa +Added: 2009-07-29 +%% +Type: language +Subtag: ndb +Description: Kenswei Nsei +Added: 2009-07-29 +%% +Type: language +Subtag: ndc +Description: Ndau +Added: 2009-07-29 +%% +Type: language +Subtag: ndd +Description: Nde-Nsele-Nta +Added: 2009-07-29 +%% +Type: language +Subtag: ndf +Description: Nadruvian +Added: 2009-07-29 +%% +Type: language +Subtag: ndg +Description: Ndengereko +Added: 2009-07-29 +%% +Type: language +Subtag: ndh +Description: Ndali +Added: 2009-07-29 +%% +Type: language +Subtag: ndi +Description: Samba Leko +Added: 2009-07-29 +%% +Type: language +Subtag: ndj +Description: Ndamba +Added: 2009-07-29 +%% +Type: language +Subtag: ndk +Description: Ndaka +Added: 2009-07-29 +%% +Type: language +Subtag: ndl +Description: Ndolo +Added: 2009-07-29 +%% +Type: language +Subtag: ndm +Description: Ndam +Added: 2009-07-29 +%% +Type: language +Subtag: ndn +Description: Ngundi +Added: 2009-07-29 +%% +Type: language +Subtag: ndp +Description: Ndo +Added: 2009-07-29 +%% +Type: language +Subtag: ndq +Description: Ndombe +Added: 2009-07-29 +%% +Type: language +Subtag: ndr +Description: Ndoola +Added: 2009-07-29 +%% +Type: language +Subtag: nds +Description: Low German +Description: Low Saxon +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ndt +Description: Ndunga +Added: 2009-07-29 +%% +Type: language +Subtag: ndu +Description: Dugun +Added: 2009-07-29 +%% +Type: language +Subtag: ndv +Description: Ndut +Added: 2009-07-29 +%% +Type: language +Subtag: ndw +Description: Ndobo +Added: 2009-07-29 +%% +Type: language +Subtag: ndx +Description: Nduga +Added: 2009-07-29 +%% +Type: language +Subtag: ndy +Description: Lutos +Added: 2009-07-29 +%% +Type: language +Subtag: ndz +Description: Ndogo +Added: 2009-07-29 +%% +Type: language +Subtag: nea +Description: Eastern Ngad'a +Added: 2009-07-29 +%% +Type: language +Subtag: neb +Description: Toura (Côte d'Ivoire) +Added: 2009-07-29 +%% +Type: language +Subtag: nec +Description: Nedebang +Added: 2009-07-29 +%% +Type: language +Subtag: ned +Description: Nde-Gbite +Added: 2009-07-29 +%% +Type: language +Subtag: nee +Description: Nêlêmwa-Nixumwak +Added: 2009-07-29 +%% +Type: language +Subtag: nef +Description: Nefamese +Added: 2009-07-29 +%% +Type: language +Subtag: neg +Description: Negidal +Added: 2009-07-29 +%% +Type: language +Subtag: neh +Description: Nyenkha +Added: 2009-07-29 +%% +Type: language +Subtag: nei +Description: Neo-Hittite +Added: 2009-07-29 +%% +Type: language +Subtag: nej +Description: Neko +Added: 2009-07-29 +%% +Type: language +Subtag: nek +Description: Neku +Added: 2009-07-29 +%% +Type: language +Subtag: nem +Description: Nemi +Added: 2009-07-29 +%% +Type: language +Subtag: nen +Description: Nengone +Added: 2009-07-29 +%% +Type: language +Subtag: neo +Description: Ná-Meo +Added: 2009-07-29 +%% +Type: language +Subtag: neq +Description: North Central Mixe +Added: 2009-07-29 +%% +Type: language +Subtag: ner +Description: Yahadian +Added: 2009-07-29 +%% +Type: language +Subtag: nes +Description: Bhoti Kinnauri +Added: 2009-07-29 +%% +Type: language +Subtag: net +Description: Nete +Added: 2009-07-29 +%% +Type: language +Subtag: neu +Description: Neo +Added: 2012-08-12 +%% +Type: language +Subtag: nev +Description: Nyaheun +Added: 2009-07-29 +%% +Type: language +Subtag: new +Description: Newari +Description: Nepal Bhasa +Added: 2005-10-16 +%% +Type: language +Subtag: nex +Description: Neme +Added: 2009-07-29 +%% +Type: language +Subtag: ney +Description: Neyo +Added: 2009-07-29 +%% +Type: language +Subtag: nez +Description: Nez Perce +Added: 2009-07-29 +%% +Type: language +Subtag: nfa +Description: Dhao +Added: 2009-07-29 +%% +Type: language +Subtag: nfd +Description: Ahwai +Added: 2009-07-29 +%% +Type: language +Subtag: nfl +Description: Ayiwo +Description: Äiwoo +Added: 2009-07-29 +%% +Type: language +Subtag: nfr +Description: Nafaanra +Added: 2009-07-29 +%% +Type: language +Subtag: nfu +Description: Mfumte +Added: 2009-07-29 +%% +Type: language +Subtag: nga +Description: Ngbaka +Added: 2009-07-29 +%% +Type: language +Subtag: ngb +Description: Northern Ngbandi +Added: 2009-07-29 +%% +Type: language +Subtag: ngc +Description: Ngombe (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: ngd +Description: Ngando (Central African Republic) +Added: 2009-07-29 +%% +Type: language +Subtag: nge +Description: Ngemba +Added: 2009-07-29 +%% +Type: language +Subtag: ngf +Description: Trans-New Guinea languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: ngg +Description: Ngbaka Manza +Added: 2009-07-29 +%% +Type: language +Subtag: ngh +Description: Nǁng +Added: 2009-07-29 +%% +Type: language +Subtag: ngi +Description: Ngizim +Added: 2009-07-29 +%% +Type: language +Subtag: ngj +Description: Ngie +Added: 2009-07-29 +%% +Type: language +Subtag: ngk +Description: Dalabon +Added: 2009-07-29 +%% +Type: language +Subtag: ngl +Description: Lomwe +Added: 2009-07-29 +%% +Type: language +Subtag: ngm +Description: Ngatik Men's Creole +Added: 2009-07-29 +%% +Type: language +Subtag: ngn +Description: Ngwo +Added: 2009-07-29 +%% +Type: language +Subtag: ngo +Description: Ngoni +Added: 2009-07-29 +%% +Type: language +Subtag: ngp +Description: Ngulu +Added: 2009-07-29 +%% +Type: language +Subtag: ngq +Description: Ngurimi +Description: Ngoreme +Added: 2009-07-29 +%% +Type: language +Subtag: ngr +Description: Engdewu +Added: 2009-07-29 +%% +Type: language +Subtag: ngs +Description: Gvoko +Added: 2009-07-29 +%% +Type: language +Subtag: ngt +Description: Kriang +Description: Ngeq +Added: 2009-07-29 +%% +Type: language +Subtag: ngu +Description: Guerrero Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: ngv +Description: Nagumi +Added: 2009-07-29 +%% +Type: language +Subtag: ngw +Description: Ngwaba +Added: 2009-07-29 +%% +Type: language +Subtag: ngx +Description: Nggwahyi +Added: 2009-07-29 +%% +Type: language +Subtag: ngy +Description: Tibea +Added: 2009-07-29 +%% +Type: language +Subtag: ngz +Description: Ngungwel +Added: 2009-07-29 +%% +Type: language +Subtag: nha +Description: Nhanda +Added: 2009-07-29 +%% +Type: language +Subtag: nhb +Description: Beng +Added: 2009-07-29 +%% +Type: language +Subtag: nhc +Description: Tabasco Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhd +Description: Chiripá +Description: Ava Guaraní +Added: 2009-07-29 +Macrolanguage: gn +%% +Type: language +Subtag: nhe +Description: Eastern Huasteca Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhf +Description: Nhuwala +Added: 2009-07-29 +%% +Type: language +Subtag: nhg +Description: Tetelcingo Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhh +Description: Nahari +Added: 2009-07-29 +%% +Type: language +Subtag: nhi +Description: Zacatlán-Ahuacatlán-Tepetzintla Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhk +Description: Isthmus-Cosoleacaque Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhm +Description: Morelos Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhn +Description: Central Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nho +Description: Takuu +Added: 2009-07-29 +%% +Type: language +Subtag: nhp +Description: Isthmus-Pajapan Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhq +Description: Huaxcaleca Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhr +Description: Naro +Added: 2009-07-29 +%% +Type: language +Subtag: nht +Description: Ometepec Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhu +Description: Noone +Added: 2009-07-29 +%% +Type: language +Subtag: nhv +Description: Temascaltepec Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhw +Description: Western Huasteca Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhx +Description: Isthmus-Mecayapan Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhy +Description: Northern Oaxaca Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nhz +Description: Santa María La Alta Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nia +Description: Nias +Added: 2005-10-16 +%% +Type: language +Subtag: nib +Description: Nakame +Added: 2009-07-29 +%% +Type: language +Subtag: nic +Description: Niger-Kordofanian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: nid +Description: Ngandi +Added: 2009-07-29 +%% +Type: language +Subtag: nie +Description: Niellim +Added: 2009-07-29 +%% +Type: language +Subtag: nif +Description: Nek +Added: 2009-07-29 +%% +Type: language +Subtag: nig +Description: Ngalakgan +Added: 2009-07-29 +%% +Type: language +Subtag: nih +Description: Nyiha (Tanzania) +Added: 2009-07-29 +%% +Type: language +Subtag: nii +Description: Nii +Added: 2009-07-29 +%% +Type: language +Subtag: nij +Description: Ngaju +Added: 2009-07-29 +%% +Type: language +Subtag: nik +Description: Southern Nicobarese +Added: 2009-07-29 +%% +Type: language +Subtag: nil +Description: Nila +Added: 2009-07-29 +%% +Type: language +Subtag: nim +Description: Nilamba +Added: 2009-07-29 +%% +Type: language +Subtag: nin +Description: Ninzo +Added: 2009-07-29 +%% +Type: language +Subtag: nio +Description: Nganasan +Added: 2009-07-29 +%% +Type: language +Subtag: niq +Description: Nandi +Added: 2009-07-29 +Macrolanguage: kln +%% +Type: language +Subtag: nir +Description: Nimboran +Added: 2009-07-29 +%% +Type: language +Subtag: nis +Description: Nimi +Added: 2009-07-29 +%% +Type: language +Subtag: nit +Description: Southeastern Kolami +Added: 2009-07-29 +%% +Type: language +Subtag: niu +Description: Niuean +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: niv +Description: Gilyak +Added: 2009-07-29 +%% +Type: language +Subtag: niw +Description: Nimo +Added: 2009-07-29 +%% +Type: language +Subtag: nix +Description: Hema +Added: 2009-07-29 +%% +Type: language +Subtag: niy +Description: Ngiti +Added: 2009-07-29 +%% +Type: language +Subtag: niz +Description: Ningil +Added: 2009-07-29 +%% +Type: language +Subtag: nja +Description: Nzanyi +Added: 2009-07-29 +%% +Type: language +Subtag: njb +Description: Nocte Naga +Added: 2009-07-29 +%% +Type: language +Subtag: njd +Description: Ndonde Hamba +Added: 2009-07-29 +%% +Type: language +Subtag: njh +Description: Lotha Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nji +Description: Gudanji +Added: 2009-07-29 +%% +Type: language +Subtag: njj +Description: Njen +Added: 2009-07-29 +%% +Type: language +Subtag: njl +Description: Njalgulgule +Added: 2009-07-29 +%% +Type: language +Subtag: njm +Description: Angami Naga +Added: 2009-07-29 +%% +Type: language +Subtag: njn +Description: Liangmai Naga +Added: 2009-07-29 +%% +Type: language +Subtag: njo +Description: Ao Naga +Added: 2009-07-29 +%% +Type: language +Subtag: njr +Description: Njerep +Added: 2009-07-29 +%% +Type: language +Subtag: njs +Description: Nisa +Added: 2009-07-29 +%% +Type: language +Subtag: njt +Description: Ndyuka-Trio Pidgin +Added: 2009-07-29 +%% +Type: language +Subtag: nju +Description: Ngadjunmaya +Added: 2009-07-29 +%% +Type: language +Subtag: njx +Description: Kunyi +Added: 2009-07-29 +%% +Type: language +Subtag: njy +Description: Njyem +Added: 2009-07-29 +%% +Type: language +Subtag: njz +Description: Nyishi +Added: 2012-08-12 +%% +Type: language +Subtag: nka +Description: Nkoya +Added: 2009-07-29 +%% +Type: language +Subtag: nkb +Description: Khoibu Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nkc +Description: Nkongho +Added: 2009-07-29 +%% +Type: language +Subtag: nkd +Description: Koireng +Added: 2009-07-29 +%% +Type: language +Subtag: nke +Description: Duke +Added: 2009-07-29 +%% +Type: language +Subtag: nkf +Description: Inpui Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nkg +Description: Nekgini +Added: 2009-07-29 +%% +Type: language +Subtag: nkh +Description: Khezha Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nki +Description: Thangal Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nkj +Description: Nakai +Added: 2009-07-29 +%% +Type: language +Subtag: nkk +Description: Nokuku +Added: 2009-07-29 +%% +Type: language +Subtag: nkm +Description: Namat +Added: 2009-07-29 +%% +Type: language +Subtag: nkn +Description: Nkangala +Added: 2009-07-29 +%% +Type: language +Subtag: nko +Description: Nkonya +Added: 2009-07-29 +%% +Type: language +Subtag: nkp +Description: Niuatoputapu +Added: 2009-07-29 +%% +Type: language +Subtag: nkq +Description: Nkami +Added: 2010-04-16 +%% +Type: language +Subtag: nkr +Description: Nukuoro +Added: 2009-07-29 +%% +Type: language +Subtag: nks +Description: North Asmat +Added: 2009-07-29 +%% +Type: language +Subtag: nkt +Description: Nyika (Tanzania) +Added: 2009-07-29 +%% +Type: language +Subtag: nku +Description: Bouna Kulango +Added: 2009-07-29 +%% +Type: language +Subtag: nkv +Description: Nyika (Malawi and Zambia) +Added: 2009-07-29 +%% +Type: language +Subtag: nkw +Description: Nkutu +Added: 2009-07-29 +%% +Type: language +Subtag: nkx +Description: Nkoroo +Added: 2009-07-29 +%% +Type: language +Subtag: nkz +Description: Nkari +Added: 2009-07-29 +%% +Type: language +Subtag: nla +Description: Ngombale +Added: 2009-07-29 +%% +Type: language +Subtag: nlc +Description: Nalca +Added: 2009-07-29 +%% +Type: language +Subtag: nle +Description: East Nyala +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: nlg +Description: Gela +Added: 2009-07-29 +%% +Type: language +Subtag: nli +Description: Grangali +Added: 2009-07-29 +%% +Type: language +Subtag: nlj +Description: Nyali +Added: 2009-07-29 +%% +Type: language +Subtag: nlk +Description: Ninia Yali +Added: 2009-07-29 +%% +Type: language +Subtag: nll +Description: Nihali +Added: 2009-07-29 +%% +Type: language +Subtag: nlm +Description: Mankiyali +Added: 2018-03-08 +%% +Type: language +Subtag: nln +Description: Durango Nahuatl +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see azd, azn +%% +Type: language +Subtag: nlo +Description: Ngul +Added: 2009-07-29 +%% +Type: language +Subtag: nlq +Description: Lao Naga +Added: 2013-09-10 +%% +Type: language +Subtag: nlr +Description: Ngarla +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see nrk, ywg +%% +Type: language +Subtag: nlu +Description: Nchumbulu +Added: 2009-07-29 +%% +Type: language +Subtag: nlv +Description: Orizaba Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nlw +Description: Walangama +Added: 2013-09-10 +%% +Type: language +Subtag: nlx +Description: Nahali +Added: 2009-07-29 +%% +Type: language +Subtag: nly +Description: Nyamal +Added: 2009-07-29 +%% +Type: language +Subtag: nlz +Description: Nalögo +Added: 2009-07-29 +%% +Type: language +Subtag: nma +Description: Maram Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nmb +Description: Big Nambas +Description: V'ënen Taut +Added: 2009-07-29 +%% +Type: language +Subtag: nmc +Description: Ngam +Added: 2009-07-29 +%% +Type: language +Subtag: nmd +Description: Ndumu +Added: 2009-07-29 +%% +Type: language +Subtag: nme +Description: Mzieme Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nmf +Description: Tangkhul Naga (India) +Added: 2009-07-29 +Comments: see ntx +%% +Type: language +Subtag: nmg +Description: Kwasio +Added: 2009-07-29 +%% +Type: language +Subtag: nmh +Description: Monsang Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nmi +Description: Nyam +Added: 2009-07-29 +%% +Type: language +Subtag: nmj +Description: Ngombe (Central African Republic) +Added: 2009-07-29 +%% +Type: language +Subtag: nmk +Description: Namakura +Added: 2009-07-29 +%% +Type: language +Subtag: nml +Description: Ndemli +Added: 2009-07-29 +%% +Type: language +Subtag: nmm +Description: Manangba +Added: 2009-07-29 +%% +Type: language +Subtag: nmn +Description: ǃXóõ +Added: 2009-07-29 +%% +Type: language +Subtag: nmo +Description: Moyon Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nmp +Description: Nimanbur +Added: 2009-07-29 +%% +Type: language +Subtag: nmq +Description: Nambya +Added: 2009-07-29 +%% +Type: language +Subtag: nmr +Description: Nimbari +Added: 2009-07-29 +%% +Type: language +Subtag: nms +Description: Letemboi +Added: 2009-07-29 +%% +Type: language +Subtag: nmt +Description: Namonuito +Added: 2009-07-29 +%% +Type: language +Subtag: nmu +Description: Northeast Maidu +Added: 2009-07-29 +%% +Type: language +Subtag: nmv +Description: Ngamini +Added: 2009-07-29 +%% +Type: language +Subtag: nmw +Description: Nimoa +Description: Rifao +Added: 2009-07-29 +%% +Type: language +Subtag: nmx +Description: Nama (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: nmy +Description: Namuyi +Added: 2009-07-29 +%% +Type: language +Subtag: nmz +Description: Nawdm +Added: 2009-07-29 +%% +Type: language +Subtag: nna +Description: Nyangumarta +Added: 2009-07-29 +%% +Type: language +Subtag: nnb +Description: Nande +Added: 2009-07-29 +%% +Type: language +Subtag: nnc +Description: Nancere +Added: 2009-07-29 +%% +Type: language +Subtag: nnd +Description: West Ambae +Added: 2009-07-29 +%% +Type: language +Subtag: nne +Description: Ngandyera +Added: 2009-07-29 +%% +Type: language +Subtag: nnf +Description: Ngaing +Added: 2009-07-29 +%% +Type: language +Subtag: nng +Description: Maring Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nnh +Description: Ngiemboon +Added: 2009-07-29 +%% +Type: language +Subtag: nni +Description: North Nuaulu +Added: 2009-07-29 +%% +Type: language +Subtag: nnj +Description: Nyangatom +Added: 2009-07-29 +%% +Type: language +Subtag: nnk +Description: Nankina +Added: 2009-07-29 +%% +Type: language +Subtag: nnl +Description: Northern Rengma Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nnm +Description: Namia +Added: 2009-07-29 +%% +Type: language +Subtag: nnn +Description: Ngete +Added: 2009-07-29 +%% +Type: language +Subtag: nnp +Description: Wancho Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nnq +Description: Ngindo +Added: 2009-07-29 +%% +Type: language +Subtag: nnr +Description: Narungga +Added: 2009-07-29 +%% +Type: language +Subtag: nns +Description: Ningye +Added: 2009-07-29 +Deprecated: 2019-04-16 +Preferred-Value: nbr +%% +Type: language +Subtag: nnt +Description: Nanticoke +Added: 2009-07-29 +%% +Type: language +Subtag: nnu +Description: Dwang +Added: 2009-07-29 +%% +Type: language +Subtag: nnv +Description: Nugunu (Australia) +Added: 2009-07-29 +%% +Type: language +Subtag: nnw +Description: Southern Nuni +Added: 2009-07-29 +%% +Type: language +Subtag: nnx +Description: Ngong +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: ngv +%% +Type: language +Subtag: nny +Description: Nyangga +Added: 2009-07-29 +%% +Type: language +Subtag: nnz +Description: Nda'nda' +Added: 2009-07-29 +%% +Type: language +Subtag: noa +Description: Woun Meu +Added: 2009-07-29 +%% +Type: language +Subtag: noc +Description: Nuk +Added: 2009-07-29 +%% +Type: language +Subtag: nod +Description: Northern Thai +Added: 2009-07-29 +%% +Type: language +Subtag: noe +Description: Nimadi +Added: 2009-07-29 +%% +Type: language +Subtag: nof +Description: Nomane +Added: 2009-07-29 +%% +Type: language +Subtag: nog +Description: Nogai +Added: 2005-10-16 +%% +Type: language +Subtag: noh +Description: Nomu +Added: 2009-07-29 +%% +Type: language +Subtag: noi +Description: Noiri +Added: 2009-07-29 +%% +Type: language +Subtag: noj +Description: Nonuya +Added: 2010-03-11 +%% +Type: language +Subtag: nok +Description: Nooksack +Added: 2009-07-29 +%% +Type: language +Subtag: nol +Description: Nomlaki +Added: 2013-09-10 +%% +Type: language +Subtag: nom +Description: Nocamán +Added: 2009-07-29 +%% +Type: language +Subtag: non +Description: Old Norse +Added: 2005-10-16 +%% +Type: language +Subtag: noo +Description: Nootka +Added: 2009-07-29 +Deprecated: 2011-08-16 +Comments: see dtd, nuk +%% +Type: language +Subtag: nop +Description: Numanggang +Added: 2009-07-29 +%% +Type: language +Subtag: noq +Description: Ngongo +Added: 2009-07-29 +%% +Type: language +Subtag: nos +Description: Eastern Nisu +Added: 2009-07-29 +%% +Type: language +Subtag: not +Description: Nomatsiguenga +Added: 2009-07-29 +%% +Type: language +Subtag: nou +Description: Ewage-Notu +Added: 2009-07-29 +%% +Type: language +Subtag: nov +Description: Novial +Added: 2009-07-29 +%% +Type: language +Subtag: now +Description: Nyambo +Added: 2009-07-29 +%% +Type: language +Subtag: noy +Description: Noy +Added: 2009-07-29 +%% +Type: language +Subtag: noz +Description: Nayi +Added: 2009-07-29 +%% +Type: language +Subtag: npa +Description: Nar Phu +Added: 2009-07-29 +%% +Type: language +Subtag: npb +Description: Nupbikha +Added: 2009-07-29 +%% +Type: language +Subtag: npg +Description: Ponyo-Gongwang Naga +Added: 2012-08-12 +%% +Type: language +Subtag: nph +Description: Phom Naga +Added: 2009-07-29 +%% +Type: language +Subtag: npi +Description: Nepali (individual language) +Added: 2012-08-12 +Macrolanguage: ne +%% +Type: language +Subtag: npl +Description: Southeastern Puebla Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: npn +Description: Mondropolon +Added: 2009-07-29 +%% +Type: language +Subtag: npo +Description: Pochuri Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nps +Description: Nipsan +Added: 2009-07-29 +%% +Type: language +Subtag: npu +Description: Puimei Naga +Added: 2009-07-29 +%% +Type: language +Subtag: npx +Description: Noipx +Added: 2017-02-23 +%% +Type: language +Subtag: npy +Description: Napu +Added: 2009-07-29 +%% +Type: language +Subtag: nqg +Description: Southern Nago +Added: 2009-07-29 +%% +Type: language +Subtag: nqk +Description: Kura Ede Nago +Added: 2009-07-29 +%% +Type: language +Subtag: nql +Description: Ngendelengo +Added: 2017-02-23 +%% +Type: language +Subtag: nqm +Description: Ndom +Added: 2009-07-29 +%% +Type: language +Subtag: nqn +Description: Nen +Added: 2009-07-29 +%% +Type: language +Subtag: nqo +Description: N'Ko +Description: N’Ko +Added: 2006-06-05 +Suppress-Script: Nkoo +%% +Type: language +Subtag: nqq +Description: Kyan-Karyaw Naga +Added: 2013-09-10 +%% +Type: language +Subtag: nqy +Description: Akyaung Ari Naga +Added: 2012-08-12 +%% +Type: language +Subtag: nra +Description: Ngom +Added: 2009-07-29 +%% +Type: language +Subtag: nrb +Description: Nara +Added: 2009-07-29 +%% +Type: language +Subtag: nrc +Description: Noric +Added: 2009-07-29 +%% +Type: language +Subtag: nre +Description: Southern Rengma Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nrf +Description: Jèrriais +Description: Guernésiais +Added: 2015-02-12 +%% +Type: language +Subtag: nrg +Description: Narango +Added: 2009-07-29 +%% +Type: language +Subtag: nri +Description: Chokri Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nrk +Description: Ngarla +Added: 2013-09-10 +%% +Type: language +Subtag: nrl +Description: Ngarluma +Added: 2009-07-29 +%% +Type: language +Subtag: nrm +Description: Narom +Added: 2009-07-29 +%% +Type: language +Subtag: nrn +Description: Norn +Added: 2009-07-29 +%% +Type: language +Subtag: nrp +Description: North Picene +Added: 2009-07-29 +%% +Type: language +Subtag: nrr +Description: Norra +Description: Nora +Added: 2009-07-29 +%% +Type: language +Subtag: nrt +Description: Northern Kalapuya +Added: 2009-07-29 +%% +Type: language +Subtag: nru +Description: Narua +Added: 2011-08-16 +%% +Type: language +Subtag: nrx +Description: Ngurmbur +Added: 2009-07-29 +%% +Type: language +Subtag: nrz +Description: Lala +Added: 2009-07-29 +%% +Type: language +Subtag: nsa +Description: Sangtam Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nsc +Description: Nshi +Added: 2009-07-29 +%% +Type: language +Subtag: nsd +Description: Southern Nisu +Added: 2009-07-29 +%% +Type: language +Subtag: nse +Description: Nsenga +Added: 2009-07-29 +%% +Type: language +Subtag: nsf +Description: Northwestern Nisu +Added: 2012-08-12 +%% +Type: language +Subtag: nsg +Description: Ngasa +Added: 2009-07-29 +%% +Type: language +Subtag: nsh +Description: Ngoshie +Added: 2009-07-29 +%% +Type: language +Subtag: nsi +Description: Nigerian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: nsk +Description: Naskapi +Added: 2009-07-29 +%% +Type: language +Subtag: nsl +Description: Norwegian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: nsm +Description: Sumi Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nsn +Description: Nehan +Added: 2009-07-29 +%% +Type: language +Subtag: nso +Description: Pedi +Description: Northern Sotho +Description: Sepedi +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: nsp +Description: Nepalese Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: nsq +Description: Northern Sierra Miwok +Added: 2009-07-29 +%% +Type: language +Subtag: nsr +Description: Maritime Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: nss +Description: Nali +Added: 2009-07-29 +%% +Type: language +Subtag: nst +Description: Tase Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nsu +Description: Sierra Negra Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nsv +Description: Southwestern Nisu +Added: 2009-07-29 +%% +Type: language +Subtag: nsw +Description: Navut +Added: 2009-07-29 +%% +Type: language +Subtag: nsx +Description: Nsongo +Added: 2009-07-29 +%% +Type: language +Subtag: nsy +Description: Nasal +Added: 2009-07-29 +%% +Type: language +Subtag: nsz +Description: Nisenan +Added: 2009-07-29 +%% +Type: language +Subtag: ntd +Description: Northern Tidung +Added: 2016-05-30 +%% +Type: language +Subtag: nte +Description: Nathembo +Added: 2009-07-29 +%% +Type: language +Subtag: ntg +Description: Ngantangarra +Added: 2013-09-10 +%% +Type: language +Subtag: nti +Description: Natioro +Added: 2009-07-29 +%% +Type: language +Subtag: ntj +Description: Ngaanyatjarra +Added: 2009-07-29 +%% +Type: language +Subtag: ntk +Description: Ikoma-Nata-Isenye +Added: 2009-07-29 +%% +Type: language +Subtag: ntm +Description: Nateni +Added: 2009-07-29 +%% +Type: language +Subtag: nto +Description: Ntomba +Added: 2009-07-29 +%% +Type: language +Subtag: ntp +Description: Northern Tepehuan +Added: 2009-07-29 +%% +Type: language +Subtag: ntr +Description: Delo +Added: 2009-07-29 +%% +Type: language +Subtag: nts +Description: Natagaimas +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: pij +%% +Type: language +Subtag: ntu +Description: Natügu +Added: 2009-07-29 +%% +Type: language +Subtag: ntw +Description: Nottoway +Added: 2009-07-29 +%% +Type: language +Subtag: ntx +Description: Tangkhul Naga (Myanmar) +Added: 2012-08-12 +Comments: see nmf +%% +Type: language +Subtag: nty +Description: Mantsi +Added: 2009-07-29 +%% +Type: language +Subtag: ntz +Description: Natanzi +Added: 2009-07-29 +%% +Type: language +Subtag: nua +Description: Yuanga +Added: 2009-07-29 +%% +Type: language +Subtag: nub +Description: Nubian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: nuc +Description: Nukuini +Added: 2009-07-29 +%% +Type: language +Subtag: nud +Description: Ngala +Added: 2009-07-29 +%% +Type: language +Subtag: nue +Description: Ngundu +Added: 2009-07-29 +%% +Type: language +Subtag: nuf +Description: Nusu +Added: 2009-07-29 +%% +Type: language +Subtag: nug +Description: Nungali +Added: 2009-07-29 +%% +Type: language +Subtag: nuh +Description: Ndunda +Added: 2009-07-29 +%% +Type: language +Subtag: nui +Description: Ngumbi +Added: 2009-07-29 +%% +Type: language +Subtag: nuj +Description: Nyole +Added: 2009-07-29 +%% +Type: language +Subtag: nuk +Description: Nuu-chah-nulth +Description: Nuuchahnulth +Added: 2011-08-16 +%% +Type: language +Subtag: nul +Description: Nusa Laut +Added: 2009-07-29 +%% +Type: language +Subtag: num +Description: Niuafo'ou +Added: 2009-07-29 +%% +Type: language +Subtag: nun +Description: Anong +Added: 2009-07-29 +%% +Type: language +Subtag: nuo +Description: Nguôn +Added: 2009-07-29 +%% +Type: language +Subtag: nup +Description: Nupe-Nupe-Tako +Added: 2009-07-29 +%% +Type: language +Subtag: nuq +Description: Nukumanu +Added: 2009-07-29 +%% +Type: language +Subtag: nur +Description: Nukuria +Added: 2009-07-29 +%% +Type: language +Subtag: nus +Description: Nuer +Added: 2009-07-29 +%% +Type: language +Subtag: nut +Description: Nung (Viet Nam) +Added: 2009-07-29 +%% +Type: language +Subtag: nuu +Description: Ngbundu +Added: 2009-07-29 +%% +Type: language +Subtag: nuv +Description: Northern Nuni +Added: 2009-07-29 +%% +Type: language +Subtag: nuw +Description: Nguluwan +Added: 2009-07-29 +%% +Type: language +Subtag: nux +Description: Mehek +Added: 2009-07-29 +%% +Type: language +Subtag: nuy +Description: Nunggubuyu +Added: 2009-07-29 +%% +Type: language +Subtag: nuz +Description: Tlamacazapa Nahuatl +Added: 2009-07-29 +%% +Type: language +Subtag: nvh +Description: Nasarian +Added: 2009-07-29 +%% +Type: language +Subtag: nvm +Description: Namiae +Added: 2009-07-29 +%% +Type: language +Subtag: nvo +Description: Nyokon +Added: 2012-08-12 +%% +Type: language +Subtag: nwa +Description: Nawathinehena +Added: 2009-07-29 +%% +Type: language +Subtag: nwb +Description: Nyabwa +Added: 2009-07-29 +%% +Type: language +Subtag: nwc +Description: Classical Newari +Description: Classical Nepal Bhasa +Description: Old Newari +Added: 2005-10-16 +%% +Type: language +Subtag: nwe +Description: Ngwe +Added: 2009-07-29 +%% +Type: language +Subtag: nwg +Description: Ngayawung +Added: 2012-08-12 +%% +Type: language +Subtag: nwi +Description: Southwest Tanna +Added: 2009-07-29 +%% +Type: language +Subtag: nwm +Description: Nyamusa-Molo +Added: 2009-07-29 +%% +Type: language +Subtag: nwo +Description: Nauo +Added: 2012-08-12 +%% +Type: language +Subtag: nwr +Description: Nawaru +Added: 2009-07-29 +%% +Type: language +Subtag: nwx +Description: Middle Newar +Added: 2009-07-29 +%% +Type: language +Subtag: nwy +Description: Nottoway-Meherrin +Added: 2009-07-29 +%% +Type: language +Subtag: nxa +Description: Nauete +Added: 2009-07-29 +%% +Type: language +Subtag: nxd +Description: Ngando (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: nxe +Description: Nage +Added: 2009-07-29 +%% +Type: language +Subtag: nxg +Description: Ngad'a +Added: 2009-07-29 +%% +Type: language +Subtag: nxi +Description: Nindi +Added: 2009-07-29 +%% +Type: language +Subtag: nxk +Description: Koki Naga +Added: 2012-08-12 +%% +Type: language +Subtag: nxl +Description: South Nuaulu +Added: 2009-07-29 +%% +Type: language +Subtag: nxm +Description: Numidian +Added: 2009-07-29 +%% +Type: language +Subtag: nxn +Description: Ngawun +Added: 2009-07-29 +%% +Type: language +Subtag: nxo +Description: Ndambomo +Added: 2015-02-12 +%% +Type: language +Subtag: nxq +Description: Naxi +Added: 2011-08-16 +%% +Type: language +Subtag: nxr +Description: Ninggerum +Added: 2009-07-29 +%% +Type: language +Subtag: nxu +Description: Narau +Added: 2009-07-29 +%% +Type: language +Subtag: nxx +Description: Nafri +Added: 2009-07-29 +%% +Type: language +Subtag: nyb +Description: Nyangbo +Added: 2009-07-29 +%% +Type: language +Subtag: nyc +Description: Nyanga-li +Added: 2009-07-29 +%% +Type: language +Subtag: nyd +Description: Nyore +Description: Olunyole +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: nye +Description: Nyengo +Added: 2009-07-29 +%% +Type: language +Subtag: nyf +Description: Giryama +Description: Kigiryama +Added: 2009-07-29 +%% +Type: language +Subtag: nyg +Description: Nyindu +Added: 2009-07-29 +%% +Type: language +Subtag: nyh +Description: Nyikina +Added: 2009-07-29 +%% +Type: language +Subtag: nyi +Description: Ama (Sudan) +Added: 2009-07-29 +%% +Type: language +Subtag: nyj +Description: Nyanga +Added: 2009-07-29 +%% +Type: language +Subtag: nyk +Description: Nyaneka +Added: 2009-07-29 +%% +Type: language +Subtag: nyl +Description: Nyeu +Added: 2009-07-29 +%% +Type: language +Subtag: nym +Description: Nyamwezi +Added: 2005-10-16 +%% +Type: language +Subtag: nyn +Description: Nyankole +Added: 2005-10-16 +%% +Type: language +Subtag: nyo +Description: Nyoro +Added: 2005-10-16 +%% +Type: language +Subtag: nyp +Description: Nyang'i +Added: 2009-07-29 +%% +Type: language +Subtag: nyq +Description: Nayini +Added: 2009-07-29 +%% +Type: language +Subtag: nyr +Description: Nyiha (Malawi) +Added: 2009-07-29 +%% +Type: language +Subtag: nys +Description: Nyungar +Added: 2009-07-29 +%% +Type: language +Subtag: nyt +Description: Nyawaygi +Added: 2009-07-29 +%% +Type: language +Subtag: nyu +Description: Nyungwe +Added: 2009-07-29 +%% +Type: language +Subtag: nyv +Description: Nyulnyul +Added: 2009-07-29 +%% +Type: language +Subtag: nyw +Description: Nyaw +Added: 2009-07-29 +%% +Type: language +Subtag: nyx +Description: Nganyaywana +Added: 2009-07-29 +%% +Type: language +Subtag: nyy +Description: Nyakyusa-Ngonde +Added: 2009-07-29 +%% +Type: language +Subtag: nza +Description: Tigon Mbembe +Added: 2009-07-29 +%% +Type: language +Subtag: nzb +Description: Njebi +Added: 2009-07-29 +%% +Type: language +Subtag: nzd +Description: Nzadi +Added: 2018-03-08 +%% +Type: language +Subtag: nzi +Description: Nzima +Added: 2005-10-16 +%% +Type: language +Subtag: nzk +Description: Nzakara +Added: 2009-07-29 +%% +Type: language +Subtag: nzm +Description: Zeme Naga +Added: 2009-07-29 +%% +Type: language +Subtag: nzs +Description: New Zealand Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: nzu +Description: Teke-Nzikou +Added: 2009-07-29 +%% +Type: language +Subtag: nzy +Description: Nzakambay +Added: 2009-07-29 +%% +Type: language +Subtag: nzz +Description: Nanga Dama Dogon +Added: 2010-03-11 +%% +Type: language +Subtag: oaa +Description: Orok +Added: 2009-07-29 +%% +Type: language +Subtag: oac +Description: Oroch +Added: 2009-07-29 +%% +Type: language +Subtag: oar +Description: Old Aramaic (up to 700 BCE) +Description: Ancient Aramaic (up to 700 BCE) +Added: 2009-07-29 +%% +Type: language +Subtag: oav +Description: Old Avar +Added: 2009-07-29 +%% +Type: language +Subtag: obi +Description: Obispeño +Added: 2009-07-29 +%% +Type: language +Subtag: obk +Description: Southern Bontok +Added: 2010-03-11 +Macrolanguage: bnc +%% +Type: language +Subtag: obl +Description: Oblo +Added: 2009-07-29 +%% +Type: language +Subtag: obm +Description: Moabite +Added: 2009-07-29 +%% +Type: language +Subtag: obo +Description: Obo Manobo +Added: 2009-07-29 +%% +Type: language +Subtag: obr +Description: Old Burmese +Added: 2009-07-29 +%% +Type: language +Subtag: obt +Description: Old Breton +Added: 2009-07-29 +%% +Type: language +Subtag: obu +Description: Obulom +Added: 2009-07-29 +%% +Type: language +Subtag: oca +Description: Ocaina +Added: 2009-07-29 +%% +Type: language +Subtag: och +Description: Old Chinese +Added: 2009-07-29 +%% +Type: language +Subtag: oco +Description: Old Cornish +Added: 2009-07-29 +%% +Type: language +Subtag: ocu +Description: Atzingo Matlatzinca +Added: 2009-07-29 +%% +Type: language +Subtag: oda +Description: Odut +Added: 2009-07-29 +%% +Type: language +Subtag: odk +Description: Od +Added: 2009-07-29 +%% +Type: language +Subtag: odt +Description: Old Dutch +Added: 2009-07-29 +%% +Type: language +Subtag: odu +Description: Odual +Added: 2009-07-29 +%% +Type: language +Subtag: ofo +Description: Ofo +Added: 2009-07-29 +%% +Type: language +Subtag: ofs +Description: Old Frisian +Added: 2009-07-29 +%% +Type: language +Subtag: ofu +Description: Efutop +Added: 2009-07-29 +%% +Type: language +Subtag: ogb +Description: Ogbia +Added: 2009-07-29 +%% +Type: language +Subtag: ogc +Description: Ogbah +Added: 2009-07-29 +%% +Type: language +Subtag: oge +Description: Old Georgian +Added: 2009-07-29 +%% +Type: language +Subtag: ogg +Description: Ogbogolo +Added: 2009-07-29 +%% +Type: language +Subtag: ogo +Description: Khana +Added: 2009-07-29 +%% +Type: language +Subtag: ogu +Description: Ogbronuagum +Added: 2009-07-29 +%% +Type: language +Subtag: oht +Description: Old Hittite +Added: 2009-07-29 +%% +Type: language +Subtag: ohu +Description: Old Hungarian +Added: 2009-07-29 +%% +Type: language +Subtag: oia +Description: Oirata +Added: 2009-07-29 +%% +Type: language +Subtag: oin +Description: Inebu One +Added: 2009-07-29 +%% +Type: language +Subtag: ojb +Description: Northwestern Ojibwa +Added: 2009-07-29 +Macrolanguage: oj +%% +Type: language +Subtag: ojc +Description: Central Ojibwa +Added: 2009-07-29 +Macrolanguage: oj +%% +Type: language +Subtag: ojg +Description: Eastern Ojibwa +Added: 2009-07-29 +Macrolanguage: oj +%% +Type: language +Subtag: ojp +Description: Old Japanese +Added: 2009-07-29 +%% +Type: language +Subtag: ojs +Description: Severn Ojibwa +Added: 2009-07-29 +Macrolanguage: oj +%% +Type: language +Subtag: ojv +Description: Ontong Java +Added: 2009-07-29 +%% +Type: language +Subtag: ojw +Description: Western Ojibwa +Added: 2009-07-29 +Macrolanguage: oj +%% +Type: language +Subtag: oka +Description: Okanagan +Added: 2009-07-29 +%% +Type: language +Subtag: okb +Description: Okobo +Added: 2009-07-29 +%% +Type: language +Subtag: okd +Description: Okodia +Added: 2009-07-29 +%% +Type: language +Subtag: oke +Description: Okpe (Southwestern Edo) +Added: 2009-07-29 +%% +Type: language +Subtag: okg +Description: Koko Babangk +Added: 2012-08-12 +%% +Type: language +Subtag: okh +Description: Koresh-e Rostam +Added: 2009-07-29 +%% +Type: language +Subtag: oki +Description: Okiek +Added: 2009-07-29 +Macrolanguage: kln +%% +Type: language +Subtag: okj +Description: Oko-Juwoi +Added: 2009-07-29 +%% +Type: language +Subtag: okk +Description: Kwamtim One +Added: 2009-07-29 +%% +Type: language +Subtag: okl +Description: Old Kentish Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: okm +Description: Middle Korean (10th-16th cent.) +Added: 2009-07-29 +%% +Type: language +Subtag: okn +Description: Oki-No-Erabu +Added: 2009-07-29 +%% +Type: language +Subtag: oko +Description: Old Korean (3rd-9th cent.) +Added: 2009-07-29 +%% +Type: language +Subtag: okr +Description: Kirike +Added: 2009-07-29 +%% +Type: language +Subtag: oks +Description: Oko-Eni-Osayen +Added: 2009-07-29 +%% +Type: language +Subtag: oku +Description: Oku +Added: 2009-07-29 +%% +Type: language +Subtag: okv +Description: Orokaiva +Added: 2009-07-29 +%% +Type: language +Subtag: okx +Description: Okpe (Northwestern Edo) +Added: 2009-07-29 +%% +Type: language +Subtag: ola +Description: Walungge +Added: 2009-07-29 +%% +Type: language +Subtag: old +Description: Mochi +Added: 2009-07-29 +%% +Type: language +Subtag: ole +Description: Olekha +Added: 2009-07-29 +%% +Type: language +Subtag: olk +Description: Olkol +Added: 2013-09-10 +%% +Type: language +Subtag: olm +Description: Oloma +Added: 2009-07-29 +%% +Type: language +Subtag: olo +Description: Livvi +Added: 2009-07-29 +%% +Type: language +Subtag: olr +Description: Olrat +Added: 2009-07-29 +%% +Type: language +Subtag: olt +Description: Old Lithuanian +Added: 2014-02-28 +%% +Type: language +Subtag: olu +Description: Kuvale +Added: 2016-05-30 +%% +Type: language +Subtag: oma +Description: Omaha-Ponca +Added: 2009-07-29 +%% +Type: language +Subtag: omb +Description: East Ambae +Added: 2009-07-29 +%% +Type: language +Subtag: omc +Description: Mochica +Added: 2009-07-29 +%% +Type: language +Subtag: ome +Description: Omejes +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: omg +Description: Omagua +Added: 2009-07-29 +%% +Type: language +Subtag: omi +Description: Omi +Added: 2009-07-29 +%% +Type: language +Subtag: omk +Description: Omok +Added: 2009-07-29 +%% +Type: language +Subtag: oml +Description: Ombo +Added: 2009-07-29 +%% +Type: language +Subtag: omn +Description: Minoan +Added: 2009-07-29 +%% +Type: language +Subtag: omo +Description: Utarmbung +Added: 2009-07-29 +%% +Type: language +Subtag: omp +Description: Old Manipuri +Added: 2009-07-29 +%% +Type: language +Subtag: omq +Description: Oto-Manguean languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: omr +Description: Old Marathi +Added: 2009-07-29 +%% +Type: language +Subtag: omt +Description: Omotik +Added: 2009-07-29 +%% +Type: language +Subtag: omu +Description: Omurano +Added: 2009-07-29 +%% +Type: language +Subtag: omv +Description: Omotic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: omw +Description: South Tairora +Added: 2009-07-29 +%% +Type: language +Subtag: omx +Description: Old Mon +Added: 2009-07-29 +%% +Type: language +Subtag: ona +Description: Ona +Added: 2009-07-29 +%% +Type: language +Subtag: onb +Description: Lingao +Added: 2009-07-29 +%% +Type: language +Subtag: one +Description: Oneida +Added: 2009-07-29 +%% +Type: language +Subtag: ong +Description: Olo +Added: 2009-07-29 +%% +Type: language +Subtag: oni +Description: Onin +Added: 2009-07-29 +%% +Type: language +Subtag: onj +Description: Onjob +Added: 2009-07-29 +%% +Type: language +Subtag: onk +Description: Kabore One +Added: 2009-07-29 +%% +Type: language +Subtag: onn +Description: Onobasulu +Added: 2009-07-29 +%% +Type: language +Subtag: ono +Description: Onondaga +Added: 2009-07-29 +%% +Type: language +Subtag: onp +Description: Sartang +Added: 2009-07-29 +%% +Type: language +Subtag: onr +Description: Northern One +Added: 2009-07-29 +%% +Type: language +Subtag: ons +Description: Ono +Added: 2009-07-29 +%% +Type: language +Subtag: ont +Description: Ontenu +Added: 2009-07-29 +%% +Type: language +Subtag: onu +Description: Unua +Added: 2009-07-29 +%% +Type: language +Subtag: onw +Description: Old Nubian +Added: 2009-07-29 +%% +Type: language +Subtag: onx +Description: Onin Based Pidgin +Added: 2009-07-29 +%% +Type: language +Subtag: ood +Description: Tohono O'odham +Added: 2009-07-29 +%% +Type: language +Subtag: oog +Description: Ong +Added: 2009-07-29 +%% +Type: language +Subtag: oon +Description: Önge +Added: 2009-07-29 +%% +Type: language +Subtag: oor +Description: Oorlams +Added: 2009-07-29 +%% +Type: language +Subtag: oos +Description: Old Ossetic +Added: 2009-07-29 +%% +Type: language +Subtag: opa +Description: Okpamheri +Added: 2009-07-29 +%% +Type: language +Subtag: opk +Description: Kopkaka +Added: 2009-07-29 +%% +Type: language +Subtag: opm +Description: Oksapmin +Added: 2009-07-29 +%% +Type: language +Subtag: opo +Description: Opao +Added: 2009-07-29 +%% +Type: language +Subtag: opt +Description: Opata +Added: 2009-07-29 +%% +Type: language +Subtag: opy +Description: Ofayé +Added: 2009-07-29 +%% +Type: language +Subtag: ora +Description: Oroha +Added: 2009-07-29 +%% +Type: language +Subtag: orc +Description: Orma +Added: 2009-07-29 +Macrolanguage: om +%% +Type: language +Subtag: ore +Description: Orejón +Added: 2009-07-29 +%% +Type: language +Subtag: org +Description: Oring +Added: 2009-07-29 +%% +Type: language +Subtag: orh +Description: Oroqen +Added: 2009-07-29 +%% +Type: language +Subtag: orn +Description: Orang Kanaq +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: oro +Description: Orokolo +Added: 2009-07-29 +%% +Type: language +Subtag: orr +Description: Oruma +Added: 2009-07-29 +%% +Type: language +Subtag: ors +Description: Orang Seletar +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: ort +Description: Adivasi Oriya +Added: 2009-07-29 +%% +Type: language +Subtag: oru +Description: Ormuri +Added: 2009-07-29 +%% +Type: language +Subtag: orv +Description: Old Russian +Added: 2009-07-29 +%% +Type: language +Subtag: orw +Description: Oro Win +Added: 2009-07-29 +%% +Type: language +Subtag: orx +Description: Oro +Added: 2009-07-29 +%% +Type: language +Subtag: ory +Description: Odia (individual language) +Description: Oriya (individual language) +Added: 2012-08-12 +Macrolanguage: or +%% +Type: language +Subtag: orz +Description: Ormu +Added: 2009-07-29 +%% +Type: language +Subtag: osa +Description: Osage +Added: 2005-10-16 +%% +Type: language +Subtag: osc +Description: Oscan +Added: 2009-07-29 +%% +Type: language +Subtag: osi +Description: Osing +Added: 2009-07-29 +%% +Type: language +Subtag: oso +Description: Ososo +Added: 2009-07-29 +%% +Type: language +Subtag: osp +Description: Old Spanish +Added: 2009-07-29 +%% +Type: language +Subtag: ost +Description: Osatu +Added: 2009-07-29 +%% +Type: language +Subtag: osu +Description: Southern One +Added: 2009-07-29 +%% +Type: language +Subtag: osx +Description: Old Saxon +Added: 2009-07-29 +%% +Type: language +Subtag: ota +Description: Ottoman Turkish (1500-1928) +Added: 2005-10-16 +%% +Type: language +Subtag: otb +Description: Old Tibetan +Added: 2009-07-29 +%% +Type: language +Subtag: otd +Description: Ot Danum +Added: 2009-07-29 +%% +Type: language +Subtag: ote +Description: Mezquital Otomi +Added: 2009-07-29 +%% +Type: language +Subtag: oti +Description: Oti +Added: 2009-07-29 +%% +Type: language +Subtag: otk +Description: Old Turkish +Added: 2009-07-29 +%% +Type: language +Subtag: otl +Description: Tilapa Otomi +Added: 2009-07-29 +%% +Type: language +Subtag: otm +Description: Eastern Highland Otomi +Added: 2009-07-29 +%% +Type: language +Subtag: otn +Description: Tenango Otomi +Added: 2009-07-29 +%% +Type: language +Subtag: oto +Description: Otomian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: otq +Description: Querétaro Otomi +Added: 2009-07-29 +%% +Type: language +Subtag: otr +Description: Otoro +Added: 2009-07-29 +%% +Type: language +Subtag: ots +Description: Estado de México Otomi +Added: 2009-07-29 +%% +Type: language +Subtag: ott +Description: Temoaya Otomi +Added: 2009-07-29 +%% +Type: language +Subtag: otu +Description: Otuke +Added: 2009-07-29 +%% +Type: language +Subtag: otw +Description: Ottawa +Added: 2009-07-29 +Macrolanguage: oj +%% +Type: language +Subtag: otx +Description: Texcatepec Otomi +Added: 2009-07-29 +%% +Type: language +Subtag: oty +Description: Old Tamil +Added: 2009-07-29 +%% +Type: language +Subtag: otz +Description: Ixtenco Otomi +Added: 2009-07-29 +%% +Type: language +Subtag: oua +Description: Tagargrent +Added: 2009-07-29 +%% +Type: language +Subtag: oub +Description: Glio-Oubi +Added: 2009-07-29 +%% +Type: language +Subtag: oue +Description: Oune +Added: 2009-07-29 +%% +Type: language +Subtag: oui +Description: Old Uighur +Added: 2009-07-29 +%% +Type: language +Subtag: oum +Description: Ouma +Added: 2009-07-29 +%% +Type: language +Subtag: oun +Description: ǃOǃung +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: vaj +%% +Type: language +Subtag: ovd +Description: Elfdalian +Description: Övdalian +Added: 2016-06-16 +%% +Type: language +Subtag: owi +Description: Owiniga +Added: 2009-07-29 +%% +Type: language +Subtag: owl +Description: Old Welsh +Added: 2009-07-29 +%% +Type: language +Subtag: oyb +Description: Oy +Added: 2009-07-29 +%% +Type: language +Subtag: oyd +Description: Oyda +Added: 2009-07-29 +%% +Type: language +Subtag: oym +Description: Wayampi +Added: 2009-07-29 +%% +Type: language +Subtag: oyy +Description: Oya'oya +Added: 2009-07-29 +%% +Type: language +Subtag: ozm +Description: Koonzime +Added: 2009-07-29 +%% +Type: language +Subtag: paa +Description: Papuan languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: pab +Description: Parecís +Added: 2009-07-29 +%% +Type: language +Subtag: pac +Description: Pacoh +Added: 2009-07-29 +%% +Type: language +Subtag: pad +Description: Paumarí +Added: 2009-07-29 +%% +Type: language +Subtag: pae +Description: Pagibete +Added: 2009-07-29 +%% +Type: language +Subtag: paf +Description: Paranawát +Added: 2009-07-29 +%% +Type: language +Subtag: pag +Description: Pangasinan +Added: 2005-10-16 +%% +Type: language +Subtag: pah +Description: Tenharim +Added: 2009-07-29 +%% +Type: language +Subtag: pai +Description: Pe +Added: 2009-07-29 +%% +Type: language +Subtag: pak +Description: Parakanã +Added: 2009-07-29 +%% +Type: language +Subtag: pal +Description: Pahlavi +Added: 2005-10-16 +%% +Type: language +Subtag: pam +Description: Pampanga +Description: Kapampangan +Added: 2005-10-16 +%% +Type: language +Subtag: pao +Description: Northern Paiute +Added: 2009-07-29 +%% +Type: language +Subtag: pap +Description: Papiamento +Added: 2005-10-16 +%% +Type: language +Subtag: paq +Description: Parya +Added: 2009-07-29 +%% +Type: language +Subtag: par +Description: Panamint +Description: Timbisha +Added: 2009-07-29 +%% +Type: language +Subtag: pas +Description: Papasena +Added: 2009-07-29 +%% +Type: language +Subtag: pat +Description: Papitalai +Added: 2009-07-29 +%% +Type: language +Subtag: pau +Description: Palauan +Added: 2005-10-16 +%% +Type: language +Subtag: pav +Description: Pakaásnovos +Added: 2009-07-29 +%% +Type: language +Subtag: paw +Description: Pawnee +Added: 2009-07-29 +%% +Type: language +Subtag: pax +Description: Pankararé +Added: 2009-07-29 +%% +Type: language +Subtag: pay +Description: Pech +Added: 2009-07-29 +%% +Type: language +Subtag: paz +Description: Pankararú +Added: 2009-07-29 +%% +Type: language +Subtag: pbb +Description: Páez +Added: 2009-07-29 +%% +Type: language +Subtag: pbc +Description: Patamona +Added: 2009-07-29 +%% +Type: language +Subtag: pbe +Description: Mezontla Popoloca +Added: 2009-07-29 +%% +Type: language +Subtag: pbf +Description: Coyotepec Popoloca +Added: 2009-07-29 +%% +Type: language +Subtag: pbg +Description: Paraujano +Added: 2009-07-29 +%% +Type: language +Subtag: pbh +Description: E'ñapa Woromaipu +Added: 2009-07-29 +%% +Type: language +Subtag: pbi +Description: Parkwa +Added: 2009-07-29 +%% +Type: language +Subtag: pbl +Description: Mak (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: pbm +Description: Puebla Mazatec +Added: 2018-03-08 +Comments: see also maa +%% +Type: language +Subtag: pbn +Description: Kpasam +Added: 2009-07-29 +%% +Type: language +Subtag: pbo +Description: Papel +Added: 2009-07-29 +%% +Type: language +Subtag: pbp +Description: Badyara +Added: 2009-07-29 +%% +Type: language +Subtag: pbr +Description: Pangwa +Added: 2009-07-29 +%% +Type: language +Subtag: pbs +Description: Central Pame +Added: 2009-07-29 +%% +Type: language +Subtag: pbt +Description: Southern Pashto +Added: 2009-07-29 +Macrolanguage: ps +%% +Type: language +Subtag: pbu +Description: Northern Pashto +Added: 2009-07-29 +Macrolanguage: ps +%% +Type: language +Subtag: pbv +Description: Pnar +Added: 2009-07-29 +%% +Type: language +Subtag: pby +Description: Pyu (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: pbz +Description: Palu +Added: 2009-07-29 +Deprecated: 2012-08-12 +%% +Type: language +Subtag: pca +Description: Santa Inés Ahuatempan Popoloca +Added: 2009-07-29 +%% +Type: language +Subtag: pcb +Description: Pear +Added: 2009-07-29 +%% +Type: language +Subtag: pcc +Description: Bouyei +Added: 2009-07-29 +%% +Type: language +Subtag: pcd +Description: Picard +Added: 2009-07-29 +%% +Type: language +Subtag: pce +Description: Ruching Palaung +Added: 2009-07-29 +%% +Type: language +Subtag: pcf +Description: Paliyan +Added: 2009-07-29 +%% +Type: language +Subtag: pcg +Description: Paniya +Added: 2009-07-29 +%% +Type: language +Subtag: pch +Description: Pardhan +Added: 2009-07-29 +%% +Type: language +Subtag: pci +Description: Duruwa +Added: 2009-07-29 +%% +Type: language +Subtag: pcj +Description: Parenga +Added: 2009-07-29 +%% +Type: language +Subtag: pck +Description: Paite Chin +Added: 2009-07-29 +%% +Type: language +Subtag: pcl +Description: Pardhi +Added: 2009-07-29 +%% +Type: language +Subtag: pcm +Description: Nigerian Pidgin +Added: 2009-07-29 +%% +Type: language +Subtag: pcn +Description: Piti +Added: 2009-07-29 +%% +Type: language +Subtag: pcp +Description: Pacahuara +Added: 2009-07-29 +%% +Type: language +Subtag: pcr +Description: Panang +Added: 2009-07-29 +Deprecated: 2013-09-10 +Preferred-Value: adx +%% +Type: language +Subtag: pcw +Description: Pyapun +Added: 2009-07-29 +%% +Type: language +Subtag: pda +Description: Anam +Added: 2009-07-29 +%% +Type: language +Subtag: pdc +Description: Pennsylvania German +Added: 2009-07-29 +%% +Type: language +Subtag: pdi +Description: Pa Di +Added: 2009-07-29 +%% +Type: language +Subtag: pdn +Description: Podena +Description: Fedan +Added: 2009-07-29 +%% +Type: language +Subtag: pdo +Description: Padoe +Added: 2009-07-29 +%% +Type: language +Subtag: pdt +Description: Plautdietsch +Added: 2009-07-29 +%% +Type: language +Subtag: pdu +Description: Kayan +Added: 2009-07-29 +%% +Type: language +Subtag: pea +Description: Peranakan Indonesian +Added: 2009-07-29 +%% +Type: language +Subtag: peb +Description: Eastern Pomo +Added: 2009-07-29 +%% +Type: language +Subtag: ped +Description: Mala (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: pee +Description: Taje +Added: 2009-07-29 +%% +Type: language +Subtag: pef +Description: Northeastern Pomo +Added: 2009-07-29 +%% +Type: language +Subtag: peg +Description: Pengo +Added: 2009-07-29 +%% +Type: language +Subtag: peh +Description: Bonan +Added: 2009-07-29 +%% +Type: language +Subtag: pei +Description: Chichimeca-Jonaz +Added: 2009-07-29 +%% +Type: language +Subtag: pej +Description: Northern Pomo +Added: 2009-07-29 +%% +Type: language +Subtag: pek +Description: Penchal +Added: 2009-07-29 +%% +Type: language +Subtag: pel +Description: Pekal +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: pem +Description: Phende +Added: 2009-07-29 +%% +Type: language +Subtag: peo +Description: Old Persian (ca. 600-400 B.C.) +Added: 2005-10-16 +%% +Type: language +Subtag: pep +Description: Kunja +Added: 2009-07-29 +%% +Type: language +Subtag: peq +Description: Southern Pomo +Added: 2009-07-29 +%% +Type: language +Subtag: pes +Description: Iranian Persian +Added: 2009-07-29 +Macrolanguage: fa +%% +Type: language +Subtag: pev +Description: Pémono +Added: 2009-07-29 +%% +Type: language +Subtag: pex +Description: Petats +Added: 2009-07-29 +%% +Type: language +Subtag: pey +Description: Petjo +Added: 2009-07-29 +%% +Type: language +Subtag: pez +Description: Eastern Penan +Added: 2009-07-29 +%% +Type: language +Subtag: pfa +Description: Pááfang +Added: 2009-07-29 +%% +Type: language +Subtag: pfe +Description: Peere +Added: 2009-07-29 +%% +Type: language +Subtag: pfl +Description: Pfaelzisch +Added: 2009-07-29 +%% +Type: language +Subtag: pga +Description: Sudanese Creole Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: pgd +Description: Gāndhārī +Added: 2015-02-12 +%% +Type: language +Subtag: pgg +Description: Pangwali +Added: 2009-07-29 +%% +Type: language +Subtag: pgi +Description: Pagi +Added: 2009-07-29 +%% +Type: language +Subtag: pgk +Description: Rerep +Added: 2009-07-29 +%% +Type: language +Subtag: pgl +Description: Primitive Irish +Added: 2011-08-16 +%% +Type: language +Subtag: pgn +Description: Paelignian +Added: 2009-07-29 +%% +Type: language +Subtag: pgs +Description: Pangseng +Added: 2009-07-29 +%% +Type: language +Subtag: pgu +Description: Pagu +Added: 2009-07-29 +%% +Type: language +Subtag: pgy +Description: Pongyong +Added: 2009-07-29 +Deprecated: 2012-08-12 +%% +Type: language +Subtag: pgz +Description: Papua New Guinean Sign Language +Added: 2016-05-30 +%% +Type: language +Subtag: pha +Description: Pa-Hng +Added: 2009-07-29 +%% +Type: language +Subtag: phd +Description: Phudagi +Added: 2009-07-29 +%% +Type: language +Subtag: phg +Description: Phuong +Added: 2009-07-29 +%% +Type: language +Subtag: phh +Description: Phukha +Added: 2009-07-29 +%% +Type: language +Subtag: phi +Description: Philippine languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: phk +Description: Phake +Added: 2009-07-29 +%% +Type: language +Subtag: phl +Description: Phalura +Description: Palula +Added: 2009-07-29 +%% +Type: language +Subtag: phm +Description: Phimbi +Added: 2009-07-29 +%% +Type: language +Subtag: phn +Description: Phoenician +Added: 2005-10-16 +%% +Type: language +Subtag: pho +Description: Phunoi +Added: 2009-07-29 +%% +Type: language +Subtag: phq +Description: Phana' +Added: 2009-07-29 +%% +Type: language +Subtag: phr +Description: Pahari-Potwari +Added: 2009-07-29 +Macrolanguage: lah +%% +Type: language +Subtag: pht +Description: Phu Thai +Added: 2009-07-29 +%% +Type: language +Subtag: phu +Description: Phuan +Added: 2009-07-29 +%% +Type: language +Subtag: phv +Description: Pahlavani +Added: 2009-07-29 +%% +Type: language +Subtag: phw +Description: Phangduwali +Added: 2009-07-29 +%% +Type: language +Subtag: pia +Description: Pima Bajo +Added: 2009-07-29 +%% +Type: language +Subtag: pib +Description: Yine +Added: 2009-07-29 +%% +Type: language +Subtag: pic +Description: Pinji +Added: 2009-07-29 +%% +Type: language +Subtag: pid +Description: Piaroa +Added: 2009-07-29 +%% +Type: language +Subtag: pie +Description: Piro +Added: 2009-07-29 +%% +Type: language +Subtag: pif +Description: Pingelapese +Added: 2009-07-29 +%% +Type: language +Subtag: pig +Description: Pisabo +Added: 2009-07-29 +%% +Type: language +Subtag: pih +Description: Pitcairn-Norfolk +Added: 2009-07-29 +%% +Type: language +Subtag: pii +Description: Pini +Added: 2009-07-29 +%% +Type: language +Subtag: pij +Description: Pijao +Added: 2009-07-29 +%% +Type: language +Subtag: pil +Description: Yom +Added: 2009-07-29 +%% +Type: language +Subtag: pim +Description: Powhatan +Added: 2009-07-29 +%% +Type: language +Subtag: pin +Description: Piame +Added: 2009-07-29 +%% +Type: language +Subtag: pio +Description: Piapoco +Added: 2009-07-29 +%% +Type: language +Subtag: pip +Description: Pero +Added: 2009-07-29 +%% +Type: language +Subtag: pir +Description: Piratapuyo +Added: 2009-07-29 +%% +Type: language +Subtag: pis +Description: Pijin +Added: 2009-07-29 +%% +Type: language +Subtag: pit +Description: Pitta Pitta +Added: 2009-07-29 +%% +Type: language +Subtag: piu +Description: Pintupi-Luritja +Added: 2009-07-29 +%% +Type: language +Subtag: piv +Description: Pileni +Description: Vaeakau-Taumako +Added: 2009-07-29 +%% +Type: language +Subtag: piw +Description: Pimbwe +Added: 2009-07-29 +%% +Type: language +Subtag: pix +Description: Piu +Added: 2009-07-29 +%% +Type: language +Subtag: piy +Description: Piya-Kwonci +Added: 2009-07-29 +%% +Type: language +Subtag: piz +Description: Pije +Added: 2009-07-29 +%% +Type: language +Subtag: pjt +Description: Pitjantjatjara +Added: 2009-07-29 +%% +Type: language +Subtag: pka +Description: Ardhamāgadhī Prākrit +Added: 2009-07-29 +%% +Type: language +Subtag: pkb +Description: Pokomo +Description: Kipfokomo +Added: 2009-07-29 +%% +Type: language +Subtag: pkc +Description: Paekche +Added: 2009-07-29 +%% +Type: language +Subtag: pkg +Description: Pak-Tong +Added: 2009-07-29 +%% +Type: language +Subtag: pkh +Description: Pankhu +Added: 2009-07-29 +%% +Type: language +Subtag: pkn +Description: Pakanha +Added: 2009-07-29 +%% +Type: language +Subtag: pko +Description: Pökoot +Added: 2009-07-29 +Macrolanguage: kln +%% +Type: language +Subtag: pkp +Description: Pukapuka +Added: 2009-07-29 +%% +Type: language +Subtag: pkr +Description: Attapady Kurumba +Added: 2009-07-29 +%% +Type: language +Subtag: pks +Description: Pakistan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: pkt +Description: Maleng +Added: 2009-07-29 +%% +Type: language +Subtag: pku +Description: Paku +Added: 2009-07-29 +%% +Type: language +Subtag: pla +Description: Miani +Added: 2009-07-29 +%% +Type: language +Subtag: plb +Description: Polonombauk +Added: 2009-07-29 +%% +Type: language +Subtag: plc +Description: Central Palawano +Added: 2009-07-29 +%% +Type: language +Subtag: pld +Description: Polari +Added: 2009-07-29 +%% +Type: language +Subtag: ple +Description: Palu'e +Added: 2009-07-29 +%% +Type: language +Subtag: plf +Description: Central Malayo-Polynesian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: plg +Description: Pilagá +Added: 2009-07-29 +%% +Type: language +Subtag: plh +Description: Paulohi +Added: 2009-07-29 +%% +Type: language +Subtag: plj +Description: Polci +Added: 2009-07-29 +%% +Type: language +Subtag: plk +Description: Kohistani Shina +Added: 2009-07-29 +%% +Type: language +Subtag: pll +Description: Shwe Palaung +Added: 2009-07-29 +%% +Type: language +Subtag: pln +Description: Palenquero +Added: 2009-07-29 +%% +Type: language +Subtag: plo +Description: Oluta Popoluca +Added: 2009-07-29 +%% +Type: language +Subtag: plp +Description: Palpa +Added: 2009-07-29 +%% +Type: language +Subtag: plq +Description: Palaic +Added: 2009-07-29 +%% +Type: language +Subtag: plr +Description: Palaka Senoufo +Added: 2009-07-29 +%% +Type: language +Subtag: pls +Description: San Marcos Tlacoyalco Popoloca +Description: San Marcos Tlalcoyalco Popoloca +Added: 2009-07-29 +%% +Type: language +Subtag: plt +Description: Plateau Malagasy +Added: 2009-07-29 +Macrolanguage: mg +%% +Type: language +Subtag: plu +Description: Palikúr +Added: 2009-07-29 +%% +Type: language +Subtag: plv +Description: Southwest Palawano +Added: 2009-07-29 +%% +Type: language +Subtag: plw +Description: Brooke's Point Palawano +Added: 2009-07-29 +%% +Type: language +Subtag: ply +Description: Bolyu +Added: 2009-07-29 +%% +Type: language +Subtag: plz +Description: Paluan +Added: 2009-07-29 +%% +Type: language +Subtag: pma +Description: Paama +Added: 2009-07-29 +%% +Type: language +Subtag: pmb +Description: Pambia +Added: 2009-07-29 +%% +Type: language +Subtag: pmc +Description: Palumata +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: huw +%% +Type: language +Subtag: pmd +Description: Pallanganmiddang +Added: 2012-08-12 +%% +Type: language +Subtag: pme +Description: Pwaamei +Added: 2009-07-29 +%% +Type: language +Subtag: pmf +Description: Pamona +Added: 2009-07-29 +%% +Type: language +Subtag: pmh +Description: Māhārāṣṭri Prākrit +Added: 2009-07-29 +%% +Type: language +Subtag: pmi +Description: Northern Pumi +Added: 2009-07-29 +%% +Type: language +Subtag: pmj +Description: Southern Pumi +Added: 2009-07-29 +%% +Type: language +Subtag: pmk +Description: Pamlico +Added: 2009-07-29 +%% +Type: language +Subtag: pml +Description: Lingua Franca +Added: 2009-07-29 +%% +Type: language +Subtag: pmm +Description: Pomo +Added: 2009-07-29 +%% +Type: language +Subtag: pmn +Description: Pam +Added: 2009-07-29 +%% +Type: language +Subtag: pmo +Description: Pom +Added: 2009-07-29 +%% +Type: language +Subtag: pmq +Description: Northern Pame +Added: 2009-07-29 +%% +Type: language +Subtag: pmr +Description: Paynamar +Added: 2009-07-29 +%% +Type: language +Subtag: pms +Description: Piemontese +Added: 2009-07-29 +%% +Type: language +Subtag: pmt +Description: Tuamotuan +Added: 2009-07-29 +%% +Type: language +Subtag: pmu +Description: Mirpur Panjabi +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: phr +Macrolanguage: lah +%% +Type: language +Subtag: pmw +Description: Plains Miwok +Added: 2009-07-29 +%% +Type: language +Subtag: pmx +Description: Poumei Naga +Added: 2009-07-29 +%% +Type: language +Subtag: pmy +Description: Papuan Malay +Added: 2009-07-29 +%% +Type: language +Subtag: pmz +Description: Southern Pame +Added: 2009-07-29 +%% +Type: language +Subtag: pna +Description: Punan Bah-Biau +Added: 2009-07-29 +%% +Type: language +Subtag: pnb +Description: Western Panjabi +Added: 2009-07-29 +Macrolanguage: lah +%% +Type: language +Subtag: pnc +Description: Pannei +Added: 2009-07-29 +%% +Type: language +Subtag: pnd +Description: Mpinda +Added: 2019-04-16 +%% +Type: language +Subtag: pne +Description: Western Penan +Added: 2009-07-29 +%% +Type: language +Subtag: png +Description: Pongu +Added: 2009-07-29 +%% +Type: language +Subtag: pnh +Description: Penrhyn +Added: 2009-07-29 +%% +Type: language +Subtag: pni +Description: Aoheng +Added: 2009-07-29 +%% +Type: language +Subtag: pnj +Description: Pinjarup +Added: 2013-09-10 +%% +Type: language +Subtag: pnk +Description: Paunaka +Added: 2012-08-12 +%% +Type: language +Subtag: pnl +Description: Paleni +Added: 2013-09-10 +Comments: see also wbf +%% +Type: language +Subtag: pnm +Description: Punan Batu 1 +Added: 2009-07-29 +%% +Type: language +Subtag: pnn +Description: Pinai-Hagahai +Added: 2009-07-29 +%% +Type: language +Subtag: pno +Description: Panobo +Added: 2009-07-29 +%% +Type: language +Subtag: pnp +Description: Pancana +Added: 2009-07-29 +%% +Type: language +Subtag: pnq +Description: Pana (Burkina Faso) +Added: 2009-07-29 +%% +Type: language +Subtag: pnr +Description: Panim +Added: 2009-07-29 +%% +Type: language +Subtag: pns +Description: Ponosakan +Added: 2009-07-29 +%% +Type: language +Subtag: pnt +Description: Pontic +Added: 2009-07-29 +%% +Type: language +Subtag: pnu +Description: Jiongnai Bunu +Added: 2009-07-29 +%% +Type: language +Subtag: pnv +Description: Pinigura +Added: 2009-07-29 +%% +Type: language +Subtag: pnw +Description: Banyjima +Description: Panytyima +Added: 2009-07-29 +%% +Type: language +Subtag: pnx +Description: Phong-Kniang +Added: 2009-07-29 +%% +Type: language +Subtag: pny +Description: Pinyin +Added: 2009-07-29 +Comments: a Niger-Congo language spoken in Cameroon; not to be confused + with the Pinyin romanization systems used for Chinese and Tibetan +%% +Type: language +Subtag: pnz +Description: Pana (Central African Republic) +Added: 2009-07-29 +%% +Type: language +Subtag: poc +Description: Poqomam +Added: 2009-07-29 +%% +Type: language +Subtag: pod +Description: Ponares +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: poe +Description: San Juan Atzingo Popoloca +Added: 2009-07-29 +%% +Type: language +Subtag: pof +Description: Poke +Added: 2009-07-29 +%% +Type: language +Subtag: pog +Description: Potiguára +Added: 2009-07-29 +%% +Type: language +Subtag: poh +Description: Poqomchi' +Added: 2009-07-29 +%% +Type: language +Subtag: poi +Description: Highland Popoluca +Added: 2009-07-29 +%% +Type: language +Subtag: pok +Description: Pokangá +Added: 2009-07-29 +%% +Type: language +Subtag: pom +Description: Southeastern Pomo +Added: 2009-07-29 +%% +Type: language +Subtag: pon +Description: Pohnpeian +Added: 2005-10-16 +%% +Type: language +Subtag: poo +Description: Central Pomo +Added: 2009-07-29 +%% +Type: language +Subtag: pop +Description: Pwapwâ +Added: 2009-07-29 +%% +Type: language +Subtag: poq +Description: Texistepec Popoluca +Added: 2009-07-29 +%% +Type: language +Subtag: pos +Description: Sayula Popoluca +Added: 2009-07-29 +%% +Type: language +Subtag: pot +Description: Potawatomi +Added: 2009-07-29 +%% +Type: language +Subtag: pov +Description: Upper Guinea Crioulo +Added: 2009-07-29 +%% +Type: language +Subtag: pow +Description: San Felipe Otlaltepec Popoloca +Added: 2009-07-29 +%% +Type: language +Subtag: pox +Description: Polabian +Added: 2009-07-29 +%% +Type: language +Subtag: poy +Description: Pogolo +Added: 2009-07-29 +%% +Type: language +Subtag: poz +Description: Malayo-Polynesian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: ppa +Description: Pao +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: bfy +%% +Type: language +Subtag: ppe +Description: Papi +Added: 2009-07-29 +%% +Type: language +Subtag: ppi +Description: Paipai +Added: 2009-07-29 +%% +Type: language +Subtag: ppk +Description: Uma +Added: 2009-07-29 +%% +Type: language +Subtag: ppl +Description: Pipil +Description: Nicarao +Added: 2009-07-29 +%% +Type: language +Subtag: ppm +Description: Papuma +Added: 2009-07-29 +%% +Type: language +Subtag: ppn +Description: Papapana +Added: 2009-07-29 +%% +Type: language +Subtag: ppo +Description: Folopa +Added: 2009-07-29 +%% +Type: language +Subtag: ppp +Description: Pelende +Added: 2009-07-29 +%% +Type: language +Subtag: ppq +Description: Pei +Added: 2009-07-29 +%% +Type: language +Subtag: ppr +Description: Piru +Added: 2009-07-29 +Deprecated: 2013-09-10 +Preferred-Value: lcq +%% +Type: language +Subtag: pps +Description: San Luís Temalacayuca Popoloca +Added: 2009-07-29 +%% +Type: language +Subtag: ppt +Description: Pare +Added: 2009-07-29 +%% +Type: language +Subtag: ppu +Description: Papora +Added: 2009-07-29 +%% +Type: language +Subtag: pqa +Description: Pa'a +Added: 2009-07-29 +%% +Type: language +Subtag: pqe +Description: Eastern Malayo-Polynesian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: pqm +Description: Malecite-Passamaquoddy +Added: 2009-07-29 +%% +Type: language +Subtag: pqw +Description: Western Malayo-Polynesian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: pra +Description: Prakrit languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: prb +Description: Lua' +Added: 2009-07-29 +Deprecated: 2017-02-23 +%% +Type: language +Subtag: prc +Description: Parachi +Added: 2009-07-29 +%% +Type: language +Subtag: prd +Description: Parsi-Dari +Added: 2009-07-29 +%% +Type: language +Subtag: pre +Description: Principense +Added: 2009-07-29 +%% +Type: language +Subtag: prf +Description: Paranan +Added: 2010-03-11 +%% +Type: language +Subtag: prg +Description: Prussian +Added: 2009-07-29 +%% +Type: language +Subtag: prh +Description: Porohanon +Added: 2009-07-29 +%% +Type: language +Subtag: pri +Description: Paicî +Added: 2009-07-29 +%% +Type: language +Subtag: prk +Description: Parauk +Added: 2009-07-29 +%% +Type: language +Subtag: prl +Description: Peruvian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: prm +Description: Kibiri +Added: 2009-07-29 +%% +Type: language +Subtag: prn +Description: Prasuni +Added: 2009-07-29 +%% +Type: language +Subtag: pro +Description: Old Provençal (to 1500) +Description: Old Occitan (to 1500) +Added: 2005-10-16 +%% +Type: language +Subtag: prp +Description: Parsi +Added: 2009-07-29 +%% +Type: language +Subtag: prq +Description: Ashéninka Perené +Added: 2009-07-29 +%% +Type: language +Subtag: prr +Description: Puri +Added: 2009-07-29 +%% +Type: language +Subtag: prs +Description: Dari +Description: Afghan Persian +Added: 2009-07-29 +Macrolanguage: fa +%% +Type: language +Subtag: prt +Description: Phai +Added: 2009-07-29 +%% +Type: language +Subtag: pru +Description: Puragi +Added: 2009-07-29 +%% +Type: language +Subtag: prw +Description: Parawen +Added: 2009-07-29 +%% +Type: language +Subtag: prx +Description: Purik +Added: 2009-07-29 +%% +Type: language +Subtag: pry +Description: Pray 3 +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: prt +%% +Type: language +Subtag: prz +Description: Providencia Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: psa +Description: Asue Awyu +Added: 2009-07-29 +%% +Type: language +Subtag: psc +Description: Persian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: psd +Description: Plains Indian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: pse +Description: Central Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: psg +Description: Penang Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: psh +Description: Southwest Pashai +Description: Southwest Pashayi +Added: 2009-07-29 +%% +Type: language +Subtag: psi +Description: Southeast Pashai +Description: Southeast Pashayi +Added: 2009-07-29 +%% +Type: language +Subtag: psl +Description: Puerto Rican Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: psm +Description: Pauserna +Added: 2009-07-29 +%% +Type: language +Subtag: psn +Description: Panasuan +Added: 2009-07-29 +%% +Type: language +Subtag: pso +Description: Polish Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: psp +Description: Philippine Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: psq +Description: Pasi +Added: 2009-07-29 +%% +Type: language +Subtag: psr +Description: Portuguese Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: pss +Description: Kaulong +Added: 2009-07-29 +%% +Type: language +Subtag: pst +Description: Central Pashto +Added: 2009-07-29 +Macrolanguage: ps +%% +Type: language +Subtag: psu +Description: Sauraseni Prākrit +Added: 2009-07-29 +%% +Type: language +Subtag: psw +Description: Port Sandwich +Added: 2009-07-29 +%% +Type: language +Subtag: psy +Description: Piscataway +Added: 2009-07-29 +%% +Type: language +Subtag: pta +Description: Pai Tavytera +Added: 2009-07-29 +%% +Type: language +Subtag: pth +Description: Pataxó Hã-Ha-Hãe +Added: 2009-07-29 +%% +Type: language +Subtag: pti +Description: Pindiini +Description: Wangkatha +Added: 2009-07-29 +%% +Type: language +Subtag: ptn +Description: Patani +Added: 2009-07-29 +%% +Type: language +Subtag: pto +Description: Zo'é +Added: 2009-07-29 +%% +Type: language +Subtag: ptp +Description: Patep +Added: 2009-07-29 +%% +Type: language +Subtag: ptq +Description: Pattapu +Added: 2014-04-06 +%% +Type: language +Subtag: ptr +Description: Piamatsina +Added: 2009-07-29 +%% +Type: language +Subtag: ptt +Description: Enrekang +Added: 2009-07-29 +%% +Type: language +Subtag: ptu +Description: Bambam +Added: 2009-07-29 +%% +Type: language +Subtag: ptv +Description: Port Vato +Added: 2009-07-29 +%% +Type: language +Subtag: ptw +Description: Pentlatch +Added: 2009-07-29 +%% +Type: language +Subtag: pty +Description: Pathiya +Added: 2009-07-29 +%% +Type: language +Subtag: pua +Description: Western Highland Purepecha +Added: 2009-07-29 +%% +Type: language +Subtag: pub +Description: Purum +Added: 2009-07-29 +%% +Type: language +Subtag: puc +Description: Punan Merap +Added: 2009-07-29 +%% +Type: language +Subtag: pud +Description: Punan Aput +Added: 2009-07-29 +%% +Type: language +Subtag: pue +Description: Puelche +Added: 2009-07-29 +%% +Type: language +Subtag: puf +Description: Punan Merah +Added: 2009-07-29 +%% +Type: language +Subtag: pug +Description: Phuie +Added: 2009-07-29 +%% +Type: language +Subtag: pui +Description: Puinave +Added: 2009-07-29 +%% +Type: language +Subtag: puj +Description: Punan Tubu +Added: 2009-07-29 +%% +Type: language +Subtag: puk +Description: Pu Ko +Added: 2009-07-29 +Deprecated: 2017-02-23 +%% +Type: language +Subtag: pum +Description: Puma +Added: 2009-07-29 +%% +Type: language +Subtag: puo +Description: Puoc +Added: 2009-07-29 +%% +Type: language +Subtag: pup +Description: Pulabu +Added: 2009-07-29 +%% +Type: language +Subtag: puq +Description: Puquina +Added: 2009-07-29 +%% +Type: language +Subtag: pur +Description: Puruborá +Added: 2009-07-29 +%% +Type: language +Subtag: put +Description: Putoh +Added: 2009-07-29 +%% +Type: language +Subtag: puu +Description: Punu +Added: 2009-07-29 +%% +Type: language +Subtag: puw +Description: Puluwatese +Added: 2009-07-29 +%% +Type: language +Subtag: pux +Description: Puare +Added: 2009-07-29 +%% +Type: language +Subtag: puy +Description: Purisimeño +Added: 2009-07-29 +%% +Type: language +Subtag: puz +Description: Purum Naga +Added: 2009-07-29 +Deprecated: 2014-02-28 +Preferred-Value: pub +%% +Type: language +Subtag: pwa +Description: Pawaia +Added: 2009-07-29 +%% +Type: language +Subtag: pwb +Description: Panawa +Added: 2009-07-29 +%% +Type: language +Subtag: pwg +Description: Gapapaiwa +Added: 2009-07-29 +%% +Type: language +Subtag: pwi +Description: Patwin +Added: 2013-09-10 +%% +Type: language +Subtag: pwm +Description: Molbog +Added: 2009-07-29 +%% +Type: language +Subtag: pwn +Description: Paiwan +Added: 2009-07-29 +%% +Type: language +Subtag: pwo +Description: Pwo Western Karen +Added: 2009-07-29 +%% +Type: language +Subtag: pwr +Description: Powari +Added: 2009-07-29 +%% +Type: language +Subtag: pww +Description: Pwo Northern Karen +Added: 2009-07-29 +%% +Type: language +Subtag: pxm +Description: Quetzaltepec Mixe +Added: 2009-07-29 +%% +Type: language +Subtag: pye +Description: Pye Krumen +Added: 2009-07-29 +%% +Type: language +Subtag: pym +Description: Fyam +Added: 2009-07-29 +%% +Type: language +Subtag: pyn +Description: Poyanáwa +Added: 2009-07-29 +%% +Type: language +Subtag: pys +Description: Paraguayan Sign Language +Description: Lengua de Señas del Paraguay +Added: 2010-03-11 +%% +Type: language +Subtag: pyu +Description: Puyuma +Added: 2009-07-29 +%% +Type: language +Subtag: pyx +Description: Pyu (Myanmar) +Added: 2009-07-29 +%% +Type: language +Subtag: pyy +Description: Pyen +Added: 2009-07-29 +%% +Type: language +Subtag: pzn +Description: Para Naga +Added: 2009-07-29 +%% +Type: language +Subtag: qaa..qtz +Description: Private use +Added: 2005-10-16 +Scope: private-use +%% +Type: language +Subtag: qua +Description: Quapaw +Added: 2009-07-29 +%% +Type: language +Subtag: qub +Description: Huallaga Huánuco Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: quc +Description: K'iche' +Description: Quiché +Added: 2009-07-29 +%% +Type: language +Subtag: qud +Description: Calderón Highland Quichua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: quf +Description: Lambayeque Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qug +Description: Chimborazo Highland Quichua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: quh +Description: South Bolivian Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qui +Description: Quileute +Added: 2009-07-29 +%% +Type: language +Subtag: quk +Description: Chachapoyas Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qul +Description: North Bolivian Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qum +Description: Sipacapense +Added: 2009-07-29 +%% +Type: language +Subtag: qun +Description: Quinault +Added: 2009-07-29 +%% +Type: language +Subtag: qup +Description: Southern Pastaza Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: quq +Description: Quinqui +Added: 2009-07-29 +%% +Type: language +Subtag: qur +Description: Yanahuanca Pasco Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qus +Description: Santiago del Estero Quichua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: quv +Description: Sacapulteco +Added: 2009-07-29 +%% +Type: language +Subtag: quw +Description: Tena Lowland Quichua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qux +Description: Yauyos Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: quy +Description: Ayacucho Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: quz +Description: Cusco Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qva +Description: Ambo-Pasco Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvc +Description: Cajamarca Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qve +Description: Eastern Apurímac Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvh +Description: Huamalíes-Dos de Mayo Huánuco Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvi +Description: Imbabura Highland Quichua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvj +Description: Loja Highland Quichua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvl +Description: Cajatambo North Lima Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvm +Description: Margos-Yarowilca-Lauricocha Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvn +Description: North Junín Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvo +Description: Napo Lowland Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvp +Description: Pacaraos Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvs +Description: San Martín Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvw +Description: Huaylla Wanca Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qvy +Description: Queyu +Added: 2009-07-29 +%% +Type: language +Subtag: qvz +Description: Northern Pastaza Quichua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qwa +Description: Corongo Ancash Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qwc +Description: Classical Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qwe +Description: Quechuan (family) +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: qwh +Description: Huaylas Ancash Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qwm +Description: Kuman (Russia) +Added: 2009-07-29 +%% +Type: language +Subtag: qws +Description: Sihuas Ancash Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qwt +Description: Kwalhioqua-Tlatskanai +Added: 2009-07-29 +%% +Type: language +Subtag: qxa +Description: Chiquián Ancash Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qxc +Description: Chincha Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qxh +Description: Panao Huánuco Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qxl +Description: Salasaca Highland Quichua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qxn +Description: Northern Conchucos Ancash Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qxo +Description: Southern Conchucos Ancash Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qxp +Description: Puno Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qxq +Description: Qashqa'i +Added: 2009-07-29 +%% +Type: language +Subtag: qxr +Description: Cañar Highland Quichua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qxs +Description: Southern Qiang +Added: 2009-07-29 +%% +Type: language +Subtag: qxt +Description: Santa Ana de Tusi Pasco Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qxu +Description: Arequipa-La Unión Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qxw +Description: Jauja Wanca Quechua +Added: 2009-07-29 +Macrolanguage: qu +%% +Type: language +Subtag: qya +Description: Quenya +Added: 2009-07-29 +%% +Type: language +Subtag: qyp +Description: Quiripi +Added: 2009-07-29 +%% +Type: language +Subtag: raa +Description: Dungmali +Added: 2009-07-29 +%% +Type: language +Subtag: rab +Description: Camling +Added: 2009-07-29 +%% +Type: language +Subtag: rac +Description: Rasawa +Added: 2009-07-29 +%% +Type: language +Subtag: rad +Description: Rade +Added: 2009-07-29 +%% +Type: language +Subtag: raf +Description: Western Meohang +Added: 2009-07-29 +%% +Type: language +Subtag: rag +Description: Logooli +Description: Lulogooli +Added: 2009-07-29 +Macrolanguage: luy +%% +Type: language +Subtag: rah +Description: Rabha +Added: 2009-07-29 +%% +Type: language +Subtag: rai +Description: Ramoaaina +Added: 2009-07-29 +%% +Type: language +Subtag: raj +Description: Rajasthani +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: rak +Description: Tulu-Bohuai +Added: 2009-07-29 +%% +Type: language +Subtag: ral +Description: Ralte +Added: 2009-07-29 +%% +Type: language +Subtag: ram +Description: Canela +Added: 2009-07-29 +%% +Type: language +Subtag: ran +Description: Riantana +Added: 2009-07-29 +%% +Type: language +Subtag: rao +Description: Rao +Added: 2009-07-29 +%% +Type: language +Subtag: rap +Description: Rapanui +Added: 2005-10-16 +%% +Type: language +Subtag: raq +Description: Saam +Added: 2009-07-29 +%% +Type: language +Subtag: rar +Description: Rarotongan +Description: Cook Islands Maori +Added: 2005-10-16 +%% +Type: language +Subtag: ras +Description: Tegali +Added: 2009-07-29 +%% +Type: language +Subtag: rat +Description: Razajerdi +Added: 2009-07-29 +%% +Type: language +Subtag: rau +Description: Raute +Added: 2009-07-29 +%% +Type: language +Subtag: rav +Description: Sampang +Added: 2009-07-29 +%% +Type: language +Subtag: raw +Description: Rawang +Added: 2009-07-29 +%% +Type: language +Subtag: rax +Description: Rang +Added: 2009-07-29 +%% +Type: language +Subtag: ray +Description: Rapa +Added: 2009-07-29 +%% +Type: language +Subtag: raz +Description: Rahambuu +Added: 2009-07-29 +%% +Type: language +Subtag: rbb +Description: Rumai Palaung +Added: 2009-07-29 +%% +Type: language +Subtag: rbk +Description: Northern Bontok +Added: 2010-03-11 +Macrolanguage: bnc +%% +Type: language +Subtag: rbl +Description: Miraya Bikol +Added: 2010-03-11 +Macrolanguage: bik +%% +Type: language +Subtag: rbp +Description: Barababaraba +Added: 2012-08-12 +%% +Type: language +Subtag: rcf +Description: Réunion Creole French +Added: 2009-07-29 +%% +Type: language +Subtag: rdb +Description: Rudbari +Added: 2009-07-29 +%% +Type: language +Subtag: rea +Description: Rerau +Added: 2009-07-29 +%% +Type: language +Subtag: reb +Description: Rembong +Added: 2009-07-29 +%% +Type: language +Subtag: ree +Description: Rejang Kayan +Added: 2009-07-29 +%% +Type: language +Subtag: reg +Description: Kara (Tanzania) +Added: 2009-07-29 +%% +Type: language +Subtag: rei +Description: Reli +Added: 2009-07-29 +%% +Type: language +Subtag: rej +Description: Rejang +Added: 2009-07-29 +%% +Type: language +Subtag: rel +Description: Rendille +Added: 2009-07-29 +%% +Type: language +Subtag: rem +Description: Remo +Added: 2009-07-29 +%% +Type: language +Subtag: ren +Description: Rengao +Added: 2009-07-29 +%% +Type: language +Subtag: rer +Description: Rer Bare +Added: 2009-07-29 +%% +Type: language +Subtag: res +Description: Reshe +Added: 2009-07-29 +%% +Type: language +Subtag: ret +Description: Retta +Added: 2009-07-29 +%% +Type: language +Subtag: rey +Description: Reyesano +Added: 2009-07-29 +%% +Type: language +Subtag: rga +Description: Roria +Added: 2009-07-29 +%% +Type: language +Subtag: rge +Description: Romano-Greek +Added: 2009-07-29 +%% +Type: language +Subtag: rgk +Description: Rangkas +Added: 2009-07-29 +%% +Type: language +Subtag: rgn +Description: Romagnol +Added: 2009-07-29 +%% +Type: language +Subtag: rgr +Description: Resígaro +Added: 2009-07-29 +%% +Type: language +Subtag: rgs +Description: Southern Roglai +Added: 2009-07-29 +%% +Type: language +Subtag: rgu +Description: Ringgou +Added: 2009-07-29 +%% +Type: language +Subtag: rhg +Description: Rohingya +Added: 2009-07-29 +%% +Type: language +Subtag: rhp +Description: Yahang +Added: 2009-07-29 +%% +Type: language +Subtag: ria +Description: Riang (India) +Added: 2009-07-29 +%% +Type: language +Subtag: rie +Description: Rien +Added: 2009-07-29 +Deprecated: 2017-02-23 +%% +Type: language +Subtag: rif +Description: Tarifit +Added: 2009-07-29 +%% +Type: language +Subtag: ril +Description: Riang Lang +Description: Riang (Myanmar) +Added: 2009-07-29 +%% +Type: language +Subtag: rim +Description: Nyaturu +Added: 2009-07-29 +%% +Type: language +Subtag: rin +Description: Nungu +Added: 2009-07-29 +%% +Type: language +Subtag: rir +Description: Ribun +Added: 2009-07-29 +%% +Type: language +Subtag: rit +Description: Ritharrngu +Added: 2009-07-29 +%% +Type: language +Subtag: riu +Description: Riung +Added: 2009-07-29 +%% +Type: language +Subtag: rjg +Description: Rajong +Added: 2009-07-29 +%% +Type: language +Subtag: rji +Description: Raji +Added: 2009-07-29 +%% +Type: language +Subtag: rjs +Description: Rajbanshi +Added: 2009-07-29 +%% +Type: language +Subtag: rka +Description: Kraol +Added: 2009-07-29 +%% +Type: language +Subtag: rkb +Description: Rikbaktsa +Added: 2009-07-29 +%% +Type: language +Subtag: rkh +Description: Rakahanga-Manihiki +Added: 2009-07-29 +%% +Type: language +Subtag: rki +Description: Rakhine +Added: 2009-07-29 +%% +Type: language +Subtag: rkm +Description: Marka +Added: 2009-07-29 +%% +Type: language +Subtag: rkt +Description: Rangpuri +Description: Kamta +Added: 2009-07-29 +%% +Type: language +Subtag: rkw +Description: Arakwal +Added: 2013-09-10 +%% +Type: language +Subtag: rma +Description: Rama +Added: 2009-07-29 +%% +Type: language +Subtag: rmb +Description: Rembarrnga +Added: 2009-07-29 +%% +Type: language +Subtag: rmc +Description: Carpathian Romani +Added: 2009-07-29 +Macrolanguage: rom +%% +Type: language +Subtag: rmd +Description: Traveller Danish +Added: 2009-07-29 +%% +Type: language +Subtag: rme +Description: Angloromani +Added: 2009-07-29 +%% +Type: language +Subtag: rmf +Description: Kalo Finnish Romani +Added: 2009-07-29 +Macrolanguage: rom +%% +Type: language +Subtag: rmg +Description: Traveller Norwegian +Added: 2009-07-29 +%% +Type: language +Subtag: rmh +Description: Murkim +Added: 2009-07-29 +%% +Type: language +Subtag: rmi +Description: Lomavren +Added: 2009-07-29 +%% +Type: language +Subtag: rmk +Description: Romkun +Added: 2009-07-29 +%% +Type: language +Subtag: rml +Description: Baltic Romani +Added: 2009-07-29 +Macrolanguage: rom +%% +Type: language +Subtag: rmm +Description: Roma +Added: 2009-07-29 +%% +Type: language +Subtag: rmn +Description: Balkan Romani +Added: 2009-07-29 +Macrolanguage: rom +%% +Type: language +Subtag: rmo +Description: Sinte Romani +Added: 2009-07-29 +Macrolanguage: rom +%% +Type: language +Subtag: rmp +Description: Rempi +Added: 2009-07-29 +%% +Type: language +Subtag: rmq +Description: Caló +Added: 2010-03-11 +%% +Type: language +Subtag: rmr +Description: Caló +Added: 2009-07-29 +Deprecated: 2010-03-11 +Comments: see emx, rmq +%% +Type: language +Subtag: rms +Description: Romanian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: rmt +Description: Domari +Added: 2009-07-29 +%% +Type: language +Subtag: rmu +Description: Tavringer Romani +Added: 2009-07-29 +%% +Type: language +Subtag: rmv +Description: Romanova +Added: 2009-07-29 +%% +Type: language +Subtag: rmw +Description: Welsh Romani +Added: 2009-07-29 +Macrolanguage: rom +%% +Type: language +Subtag: rmx +Description: Romam +Added: 2009-07-29 +%% +Type: language +Subtag: rmy +Description: Vlax Romani +Added: 2009-07-29 +Macrolanguage: rom +%% +Type: language +Subtag: rmz +Description: Marma +Added: 2009-07-29 +%% +Type: language +Subtag: rna +Description: Runa +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: rnd +Description: Ruund +Added: 2009-07-29 +%% +Type: language +Subtag: rng +Description: Ronga +Added: 2009-07-29 +%% +Type: language +Subtag: rnl +Description: Ranglong +Added: 2009-07-29 +%% +Type: language +Subtag: rnn +Description: Roon +Added: 2009-07-29 +%% +Type: language +Subtag: rnp +Description: Rongpo +Added: 2009-07-29 +%% +Type: language +Subtag: rnr +Description: Nari Nari +Added: 2012-08-20 +%% +Type: language +Subtag: rnw +Description: Rungwa +Added: 2009-07-29 +%% +Type: language +Subtag: roa +Description: Romance languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: rob +Description: Tae' +Added: 2009-07-29 +%% +Type: language +Subtag: roc +Description: Cacgia Roglai +Added: 2009-07-29 +%% +Type: language +Subtag: rod +Description: Rogo +Added: 2009-07-29 +%% +Type: language +Subtag: roe +Description: Ronji +Added: 2009-07-29 +%% +Type: language +Subtag: rof +Description: Rombo +Added: 2009-07-29 +%% +Type: language +Subtag: rog +Description: Northern Roglai +Added: 2009-07-29 +%% +Type: language +Subtag: rol +Description: Romblomanon +Added: 2009-07-29 +%% +Type: language +Subtag: rom +Description: Romany +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: roo +Description: Rotokas +Added: 2009-07-29 +%% +Type: language +Subtag: rop +Description: Kriol +Added: 2009-07-29 +%% +Type: language +Subtag: ror +Description: Rongga +Added: 2009-07-29 +%% +Type: language +Subtag: rou +Description: Runga +Added: 2009-07-29 +%% +Type: language +Subtag: row +Description: Dela-Oenale +Added: 2009-07-29 +%% +Type: language +Subtag: rpn +Description: Repanbitip +Added: 2009-07-29 +%% +Type: language +Subtag: rpt +Description: Rapting +Added: 2009-07-29 +%% +Type: language +Subtag: rri +Description: Ririo +Added: 2009-07-29 +%% +Type: language +Subtag: rro +Description: Waima +Added: 2009-07-29 +%% +Type: language +Subtag: rrt +Description: Arritinngithigh +Added: 2012-08-12 +%% +Type: language +Subtag: rsb +Description: Romano-Serbian +Added: 2009-07-29 +%% +Type: language +Subtag: rsi +Description: Rennellese Sign Language +Added: 2009-07-29 +Deprecated: 2017-02-23 +%% +Type: language +Subtag: rsl +Description: Russian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: rsm +Description: Miriwoong Sign Language +Added: 2016-05-30 +%% +Type: language +Subtag: rtc +Description: Rungtu Chin +Added: 2012-08-12 +%% +Type: language +Subtag: rth +Description: Ratahan +Added: 2009-07-29 +%% +Type: language +Subtag: rtm +Description: Rotuman +Added: 2009-07-29 +%% +Type: language +Subtag: rts +Description: Yurats +Added: 2015-02-12 +%% +Type: language +Subtag: rtw +Description: Rathawi +Added: 2009-07-29 +%% +Type: language +Subtag: rub +Description: Gungu +Added: 2009-07-29 +%% +Type: language +Subtag: ruc +Description: Ruuli +Added: 2009-07-29 +%% +Type: language +Subtag: rue +Description: Rusyn +Added: 2009-07-29 +%% +Type: language +Subtag: ruf +Description: Luguru +Added: 2009-07-29 +%% +Type: language +Subtag: rug +Description: Roviana +Added: 2009-07-29 +%% +Type: language +Subtag: ruh +Description: Ruga +Added: 2009-07-29 +%% +Type: language +Subtag: rui +Description: Rufiji +Added: 2009-07-29 +%% +Type: language +Subtag: ruk +Description: Che +Added: 2009-07-29 +%% +Type: language +Subtag: ruo +Description: Istro Romanian +Added: 2009-07-29 +%% +Type: language +Subtag: rup +Description: Macedo-Romanian +Description: Aromanian +Description: Arumanian +Added: 2005-10-16 +%% +Type: language +Subtag: ruq +Description: Megleno Romanian +Added: 2009-07-29 +%% +Type: language +Subtag: rut +Description: Rutul +Added: 2009-07-29 +%% +Type: language +Subtag: ruu +Description: Lanas Lobu +Added: 2009-07-29 +%% +Type: language +Subtag: ruy +Description: Mala (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: ruz +Description: Ruma +Added: 2009-07-29 +%% +Type: language +Subtag: rwa +Description: Rawo +Added: 2009-07-29 +%% +Type: language +Subtag: rwk +Description: Rwa +Added: 2009-07-29 +%% +Type: language +Subtag: rwm +Description: Amba (Uganda) +Added: 2009-07-29 +%% +Type: language +Subtag: rwo +Description: Rawa +Added: 2009-07-29 +%% +Type: language +Subtag: rwr +Description: Marwari (India) +Added: 2009-07-29 +Macrolanguage: mwr +%% +Type: language +Subtag: rxd +Description: Ngardi +Added: 2013-09-10 +%% +Type: language +Subtag: rxw +Description: Karuwali +Description: Garuwali +Added: 2013-09-10 +%% +Type: language +Subtag: ryn +Description: Northern Amami-Oshima +Added: 2009-07-29 +%% +Type: language +Subtag: rys +Description: Yaeyama +Added: 2009-07-29 +%% +Type: language +Subtag: ryu +Description: Central Okinawan +Added: 2009-07-29 +%% +Type: language +Subtag: rzh +Description: Rāziḥī +Added: 2016-05-30 +%% +Type: language +Subtag: saa +Description: Saba +Added: 2009-07-29 +%% +Type: language +Subtag: sab +Description: Buglere +Added: 2009-07-29 +%% +Type: language +Subtag: sac +Description: Meskwaki +Added: 2009-07-29 +%% +Type: language +Subtag: sad +Description: Sandawe +Added: 2005-10-16 +%% +Type: language +Subtag: sae +Description: Sabanê +Added: 2009-07-29 +%% +Type: language +Subtag: saf +Description: Safaliba +Added: 2009-07-29 +%% +Type: language +Subtag: sah +Description: Yakut +Added: 2005-10-16 +%% +Type: language +Subtag: sai +Description: South American Indian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: saj +Description: Sahu +Added: 2009-07-29 +%% +Type: language +Subtag: sak +Description: Sake +Added: 2009-07-29 +%% +Type: language +Subtag: sal +Description: Salishan languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: sam +Description: Samaritan Aramaic +Added: 2005-10-16 +%% +Type: language +Subtag: sao +Description: Sause +Added: 2009-07-29 +%% +Type: language +Subtag: sap +Description: Sanapaná +Added: 2009-07-29 +Deprecated: 2014-02-28 +Comments: see aqt, spn +%% +Type: language +Subtag: saq +Description: Samburu +Added: 2009-07-29 +%% +Type: language +Subtag: sar +Description: Saraveca +Added: 2009-07-29 +%% +Type: language +Subtag: sas +Description: Sasak +Added: 2005-10-16 +%% +Type: language +Subtag: sat +Description: Santali +Added: 2005-10-16 +%% +Type: language +Subtag: sau +Description: Saleman +Added: 2009-07-29 +%% +Type: language +Subtag: sav +Description: Saafi-Saafi +Added: 2009-07-29 +%% +Type: language +Subtag: saw +Description: Sawi +Added: 2009-07-29 +%% +Type: language +Subtag: sax +Description: Sa +Added: 2009-07-29 +%% +Type: language +Subtag: say +Description: Saya +Added: 2009-07-29 +%% +Type: language +Subtag: saz +Description: Saurashtra +Added: 2009-07-29 +%% +Type: language +Subtag: sba +Description: Ngambay +Added: 2009-07-29 +%% +Type: language +Subtag: sbb +Description: Simbo +Added: 2009-07-29 +%% +Type: language +Subtag: sbc +Description: Kele (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: sbd +Description: Southern Samo +Added: 2009-07-29 +%% +Type: language +Subtag: sbe +Description: Saliba +Added: 2009-07-29 +%% +Type: language +Subtag: sbf +Description: Chabu +Description: Shabo +Added: 2009-07-29 +%% +Type: language +Subtag: sbg +Description: Seget +Added: 2009-07-29 +%% +Type: language +Subtag: sbh +Description: Sori-Harengan +Added: 2009-07-29 +%% +Type: language +Subtag: sbi +Description: Seti +Added: 2009-07-29 +%% +Type: language +Subtag: sbj +Description: Surbakhal +Added: 2009-07-29 +%% +Type: language +Subtag: sbk +Description: Safwa +Added: 2009-07-29 +%% +Type: language +Subtag: sbl +Description: Botolan Sambal +Added: 2009-07-29 +%% +Type: language +Subtag: sbm +Description: Sagala +Added: 2009-07-29 +%% +Type: language +Subtag: sbn +Description: Sindhi Bhil +Added: 2009-07-29 +%% +Type: language +Subtag: sbo +Description: Sabüm +Added: 2009-07-29 +%% +Type: language +Subtag: sbp +Description: Sangu (Tanzania) +Added: 2009-07-29 +%% +Type: language +Subtag: sbq +Description: Sileibi +Added: 2009-07-29 +%% +Type: language +Subtag: sbr +Description: Sembakung Murut +Added: 2009-07-29 +%% +Type: language +Subtag: sbs +Description: Subiya +Added: 2009-07-29 +%% +Type: language +Subtag: sbt +Description: Kimki +Added: 2009-07-29 +%% +Type: language +Subtag: sbu +Description: Stod Bhoti +Added: 2009-07-29 +%% +Type: language +Subtag: sbv +Description: Sabine +Added: 2009-07-29 +%% +Type: language +Subtag: sbw +Description: Simba +Added: 2009-07-29 +%% +Type: language +Subtag: sbx +Description: Seberuang +Added: 2009-07-29 +%% +Type: language +Subtag: sby +Description: Soli +Added: 2009-07-29 +%% +Type: language +Subtag: sbz +Description: Sara Kaba +Added: 2009-07-29 +%% +Type: language +Subtag: sca +Description: Sansu +Added: 2009-07-29 +Deprecated: 2012-08-12 +Preferred-Value: hle +%% +Type: language +Subtag: scb +Description: Chut +Added: 2009-07-29 +%% +Type: language +Subtag: sce +Description: Dongxiang +Added: 2009-07-29 +%% +Type: language +Subtag: scf +Description: San Miguel Creole French +Added: 2009-07-29 +%% +Type: language +Subtag: scg +Description: Sanggau +Added: 2009-07-29 +%% +Type: language +Subtag: sch +Description: Sakachep +Added: 2009-07-29 +%% +Type: language +Subtag: sci +Description: Sri Lankan Creole Malay +Added: 2009-07-29 +%% +Type: language +Subtag: sck +Description: Sadri +Added: 2009-07-29 +%% +Type: language +Subtag: scl +Description: Shina +Added: 2009-07-29 +%% +Type: language +Subtag: scn +Description: Sicilian +Added: 2005-10-16 +%% +Type: language +Subtag: sco +Description: Scots +Added: 2005-10-16 +%% +Type: language +Subtag: scp +Description: Hyolmo +Description: Helambu Sherpa +Added: 2009-07-29 +%% +Type: language +Subtag: scq +Description: Sa'och +Added: 2009-07-29 +%% +Type: language +Subtag: scs +Description: North Slavey +Added: 2009-07-29 +Macrolanguage: den +%% +Type: language +Subtag: sct +Description: Southern Katang +Added: 2017-02-23 +%% +Type: language +Subtag: scu +Description: Shumcho +Added: 2009-07-29 +%% +Type: language +Subtag: scv +Description: Sheni +Added: 2009-07-29 +%% +Type: language +Subtag: scw +Description: Sha +Added: 2009-07-29 +%% +Type: language +Subtag: scx +Description: Sicel +Added: 2009-07-29 +%% +Type: language +Subtag: sda +Description: Toraja-Sa'dan +Added: 2009-07-29 +%% +Type: language +Subtag: sdb +Description: Shabak +Added: 2009-07-29 +%% +Type: language +Subtag: sdc +Description: Sassarese Sardinian +Added: 2009-07-29 +Macrolanguage: sc +%% +Type: language +Subtag: sde +Description: Surubu +Added: 2009-07-29 +%% +Type: language +Subtag: sdf +Description: Sarli +Added: 2009-07-29 +%% +Type: language +Subtag: sdg +Description: Savi +Added: 2009-07-29 +%% +Type: language +Subtag: sdh +Description: Southern Kurdish +Added: 2009-07-29 +Macrolanguage: ku +%% +Type: language +Subtag: sdj +Description: Suundi +Added: 2009-07-29 +%% +Type: language +Subtag: sdk +Description: Sos Kundi +Added: 2009-07-29 +%% +Type: language +Subtag: sdl +Description: Saudi Arabian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: sdm +Description: Semandang +Added: 2009-07-29 +%% +Type: language +Subtag: sdn +Description: Gallurese Sardinian +Added: 2009-07-29 +Macrolanguage: sc +%% +Type: language +Subtag: sdo +Description: Bukar-Sadung Bidayuh +Added: 2009-07-29 +%% +Type: language +Subtag: sdp +Description: Sherdukpen +Added: 2009-07-29 +%% +Type: language +Subtag: sdr +Description: Oraon Sadri +Added: 2009-07-29 +%% +Type: language +Subtag: sds +Description: Sened +Added: 2009-07-29 +%% +Type: language +Subtag: sdt +Description: Shuadit +Added: 2009-07-29 +%% +Type: language +Subtag: sdu +Description: Sarudu +Added: 2009-07-29 +%% +Type: language +Subtag: sdv +Description: Eastern Sudanic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: sdx +Description: Sibu Melanau +Added: 2009-07-29 +%% +Type: language +Subtag: sdz +Description: Sallands +Added: 2009-07-29 +%% +Type: language +Subtag: sea +Description: Semai +Added: 2009-07-29 +%% +Type: language +Subtag: seb +Description: Shempire Senoufo +Added: 2009-07-29 +%% +Type: language +Subtag: sec +Description: Sechelt +Added: 2009-07-29 +%% +Type: language +Subtag: sed +Description: Sedang +Added: 2009-07-29 +%% +Type: language +Subtag: see +Description: Seneca +Added: 2009-07-29 +%% +Type: language +Subtag: sef +Description: Cebaara Senoufo +Added: 2009-07-29 +%% +Type: language +Subtag: seg +Description: Segeju +Added: 2009-07-29 +%% +Type: language +Subtag: seh +Description: Sena +Added: 2009-07-29 +%% +Type: language +Subtag: sei +Description: Seri +Added: 2009-07-29 +%% +Type: language +Subtag: sej +Description: Sene +Added: 2009-07-29 +%% +Type: language +Subtag: sek +Description: Sekani +Added: 2009-07-29 +%% +Type: language +Subtag: sel +Description: Selkup +Added: 2005-10-16 +%% +Type: language +Subtag: sem +Description: Semitic languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: sen +Description: Nanerigé Sénoufo +Added: 2009-07-29 +%% +Type: language +Subtag: seo +Description: Suarmin +Added: 2009-07-29 +%% +Type: language +Subtag: sep +Description: Sìcìté Sénoufo +Added: 2009-07-29 +%% +Type: language +Subtag: seq +Description: Senara Sénoufo +Added: 2009-07-29 +%% +Type: language +Subtag: ser +Description: Serrano +Added: 2009-07-29 +%% +Type: language +Subtag: ses +Description: Koyraboro Senni Songhai +Added: 2009-07-29 +%% +Type: language +Subtag: set +Description: Sentani +Added: 2009-07-29 +%% +Type: language +Subtag: seu +Description: Serui-Laut +Added: 2009-07-29 +%% +Type: language +Subtag: sev +Description: Nyarafolo Senoufo +Added: 2009-07-29 +%% +Type: language +Subtag: sew +Description: Sewa Bay +Added: 2009-07-29 +%% +Type: language +Subtag: sey +Description: Secoya +Added: 2009-07-29 +%% +Type: language +Subtag: sez +Description: Senthang Chin +Added: 2009-07-29 +%% +Type: language +Subtag: sfb +Description: Langue des signes de Belgique Francophone +Description: French Belgian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: sfe +Description: Eastern Subanen +Added: 2012-08-12 +%% +Type: language +Subtag: sfm +Description: Small Flowery Miao +Added: 2009-07-29 +Macrolanguage: hmn +%% +Type: language +Subtag: sfs +Description: South African Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: sfw +Description: Sehwi +Added: 2009-07-29 +%% +Type: language +Subtag: sga +Description: Old Irish (to 900) +Added: 2005-10-16 +%% +Type: language +Subtag: sgb +Description: Mag-antsi Ayta +Added: 2009-07-29 +%% +Type: language +Subtag: sgc +Description: Kipsigis +Added: 2009-07-29 +Macrolanguage: kln +%% +Type: language +Subtag: sgd +Description: Surigaonon +Added: 2010-03-11 +%% +Type: language +Subtag: sge +Description: Segai +Added: 2009-07-29 +%% +Type: language +Subtag: sgg +Description: Swiss-German Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: sgh +Description: Shughni +Added: 2009-07-29 +%% +Type: language +Subtag: sgi +Description: Suga +Added: 2009-07-29 +%% +Type: language +Subtag: sgj +Description: Surgujia +Added: 2012-08-12 +%% +Type: language +Subtag: sgk +Description: Sangkong +Added: 2009-07-29 +%% +Type: language +Subtag: sgl +Description: Sanglechi-Ishkashimi +Added: 2009-07-29 +Deprecated: 2010-03-11 +Comments: see isk, sgy +%% +Type: language +Subtag: sgm +Description: Singa +Added: 2009-07-29 +%% +Type: language +Subtag: sgn +Description: Sign languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: sgo +Description: Songa +Added: 2009-07-29 +Deprecated: 2015-02-12 +%% +Type: language +Subtag: sgp +Description: Singpho +Added: 2009-07-29 +%% +Type: language +Subtag: sgr +Description: Sangisari +Added: 2009-07-29 +%% +Type: language +Subtag: sgs +Description: Samogitian +Added: 2010-07-26 +%% +Type: language +Subtag: sgt +Description: Brokpake +Added: 2009-07-29 +%% +Type: language +Subtag: sgu +Description: Salas +Added: 2009-07-29 +%% +Type: language +Subtag: sgw +Description: Sebat Bet Gurage +Added: 2009-07-29 +%% +Type: language +Subtag: sgx +Description: Sierra Leone Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: sgy +Description: Sanglechi +Added: 2010-03-11 +%% +Type: language +Subtag: sgz +Description: Sursurunga +Added: 2009-07-29 +%% +Type: language +Subtag: sha +Description: Shall-Zwall +Added: 2009-07-29 +%% +Type: language +Subtag: shb +Description: Ninam +Added: 2009-07-29 +%% +Type: language +Subtag: shc +Description: Sonde +Added: 2009-07-29 +%% +Type: language +Subtag: shd +Description: Kundal Shahi +Added: 2010-03-11 +%% +Type: language +Subtag: she +Description: Sheko +Added: 2009-07-29 +%% +Type: language +Subtag: shg +Description: Shua +Added: 2009-07-29 +%% +Type: language +Subtag: shh +Description: Shoshoni +Added: 2009-07-29 +%% +Type: language +Subtag: shi +Description: Tachelhit +Added: 2009-07-29 +%% +Type: language +Subtag: shj +Description: Shatt +Added: 2009-07-29 +%% +Type: language +Subtag: shk +Description: Shilluk +Added: 2009-07-29 +%% +Type: language +Subtag: shl +Description: Shendu +Added: 2009-07-29 +%% +Type: language +Subtag: shm +Description: Shahrudi +Added: 2009-07-29 +%% +Type: language +Subtag: shn +Description: Shan +Added: 2005-10-16 +%% +Type: language +Subtag: sho +Description: Shanga +Added: 2009-07-29 +%% +Type: language +Subtag: shp +Description: Shipibo-Conibo +Added: 2009-07-29 +%% +Type: language +Subtag: shq +Description: Sala +Added: 2009-07-29 +%% +Type: language +Subtag: shr +Description: Shi +Added: 2009-07-29 +%% +Type: language +Subtag: shs +Description: Shuswap +Added: 2009-07-29 +%% +Type: language +Subtag: sht +Description: Shasta +Added: 2009-07-29 +%% +Type: language +Subtag: shu +Description: Chadian Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: shv +Description: Shehri +Added: 2009-07-29 +%% +Type: language +Subtag: shw +Description: Shwai +Added: 2009-07-29 +%% +Type: language +Subtag: shx +Description: She +Added: 2009-07-29 +%% +Type: language +Subtag: shy +Description: Tachawit +Added: 2009-07-29 +%% +Type: language +Subtag: shz +Description: Syenara Senoufo +Added: 2009-07-29 +%% +Type: language +Subtag: sia +Description: Akkala Sami +Added: 2009-07-29 +%% +Type: language +Subtag: sib +Description: Sebop +Added: 2009-07-29 +%% +Type: language +Subtag: sid +Description: Sidamo +Added: 2005-10-16 +%% +Type: language +Subtag: sie +Description: Simaa +Added: 2009-07-29 +%% +Type: language +Subtag: sif +Description: Siamou +Added: 2009-07-29 +%% +Type: language +Subtag: sig +Description: Paasaal +Added: 2009-07-29 +%% +Type: language +Subtag: sih +Description: Zire +Description: Sîshëë +Added: 2009-07-29 +%% +Type: language +Subtag: sii +Description: Shom Peng +Added: 2009-07-29 +%% +Type: language +Subtag: sij +Description: Numbami +Added: 2009-07-29 +%% +Type: language +Subtag: sik +Description: Sikiana +Added: 2009-07-29 +%% +Type: language +Subtag: sil +Description: Tumulung Sisaala +Added: 2009-07-29 +%% +Type: language +Subtag: sim +Description: Mende (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: sio +Description: Siouan languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: sip +Description: Sikkimese +Added: 2009-07-29 +%% +Type: language +Subtag: siq +Description: Sonia +Added: 2009-07-29 +%% +Type: language +Subtag: sir +Description: Siri +Added: 2009-07-29 +%% +Type: language +Subtag: sis +Description: Siuslaw +Added: 2009-07-29 +%% +Type: language +Subtag: sit +Description: Sino-Tibetan languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: siu +Description: Sinagen +Added: 2009-07-29 +%% +Type: language +Subtag: siv +Description: Sumariup +Added: 2009-07-29 +%% +Type: language +Subtag: siw +Description: Siwai +Added: 2009-07-29 +%% +Type: language +Subtag: six +Description: Sumau +Added: 2009-07-29 +%% +Type: language +Subtag: siy +Description: Sivandi +Added: 2009-07-29 +%% +Type: language +Subtag: siz +Description: Siwi +Added: 2009-07-29 +%% +Type: language +Subtag: sja +Description: Epena +Added: 2009-07-29 +%% +Type: language +Subtag: sjb +Description: Sajau Basap +Added: 2009-07-29 +%% +Type: language +Subtag: sjd +Description: Kildin Sami +Added: 2009-07-29 +%% +Type: language +Subtag: sje +Description: Pite Sami +Added: 2009-07-29 +%% +Type: language +Subtag: sjg +Description: Assangori +Added: 2009-07-29 +%% +Type: language +Subtag: sjk +Description: Kemi Sami +Added: 2009-07-29 +%% +Type: language +Subtag: sjl +Description: Sajalong +Description: Miji +Added: 2009-07-29 +%% +Type: language +Subtag: sjm +Description: Mapun +Added: 2009-07-29 +%% +Type: language +Subtag: sjn +Description: Sindarin +Added: 2009-07-29 +%% +Type: language +Subtag: sjo +Description: Xibe +Added: 2009-07-29 +%% +Type: language +Subtag: sjp +Description: Surjapuri +Added: 2009-07-29 +%% +Type: language +Subtag: sjr +Description: Siar-Lak +Added: 2009-07-29 +%% +Type: language +Subtag: sjs +Description: Senhaja De Srair +Added: 2009-07-29 +%% +Type: language +Subtag: sjt +Description: Ter Sami +Added: 2009-07-29 +%% +Type: language +Subtag: sju +Description: Ume Sami +Added: 2009-07-29 +%% +Type: language +Subtag: sjw +Description: Shawnee +Added: 2009-07-29 +%% +Type: language +Subtag: ska +Description: Skagit +Added: 2009-07-29 +%% +Type: language +Subtag: skb +Description: Saek +Added: 2009-07-29 +%% +Type: language +Subtag: skc +Description: Ma Manda +Added: 2009-07-29 +%% +Type: language +Subtag: skd +Description: Southern Sierra Miwok +Added: 2009-07-29 +%% +Type: language +Subtag: ske +Description: Seke (Vanuatu) +Added: 2009-07-29 +%% +Type: language +Subtag: skf +Description: Sakirabiá +Added: 2009-07-29 +%% +Type: language +Subtag: skg +Description: Sakalava Malagasy +Added: 2009-07-29 +Macrolanguage: mg +%% +Type: language +Subtag: skh +Description: Sikule +Added: 2009-07-29 +%% +Type: language +Subtag: ski +Description: Sika +Added: 2009-07-29 +%% +Type: language +Subtag: skj +Description: Seke (Nepal) +Added: 2009-07-29 +%% +Type: language +Subtag: skk +Description: Sok +Added: 2009-07-29 +Deprecated: 2017-02-23 +Preferred-Value: oyb +%% +Type: language +Subtag: skm +Description: Kutong +Added: 2009-07-29 +%% +Type: language +Subtag: skn +Description: Kolibugan Subanon +Added: 2009-07-29 +%% +Type: language +Subtag: sko +Description: Seko Tengah +Added: 2009-07-29 +%% +Type: language +Subtag: skp +Description: Sekapan +Added: 2009-07-29 +%% +Type: language +Subtag: skq +Description: Sininkere +Added: 2009-07-29 +%% +Type: language +Subtag: skr +Description: Saraiki +Description: Seraiki +Added: 2009-07-29 +Macrolanguage: lah +%% +Type: language +Subtag: sks +Description: Maia +Added: 2009-07-29 +%% +Type: language +Subtag: skt +Description: Sakata +Added: 2009-07-29 +%% +Type: language +Subtag: sku +Description: Sakao +Added: 2009-07-29 +%% +Type: language +Subtag: skv +Description: Skou +Added: 2009-07-29 +%% +Type: language +Subtag: skw +Description: Skepi Creole Dutch +Added: 2009-07-29 +%% +Type: language +Subtag: skx +Description: Seko Padang +Added: 2009-07-29 +%% +Type: language +Subtag: sky +Description: Sikaiana +Added: 2009-07-29 +%% +Type: language +Subtag: skz +Description: Sekar +Added: 2009-07-29 +%% +Type: language +Subtag: sla +Description: Slavic languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: slc +Description: Sáliba +Added: 2009-07-29 +%% +Type: language +Subtag: sld +Description: Sissala +Added: 2009-07-29 +%% +Type: language +Subtag: sle +Description: Sholaga +Added: 2009-07-29 +%% +Type: language +Subtag: slf +Description: Swiss-Italian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: slg +Description: Selungai Murut +Added: 2009-07-29 +%% +Type: language +Subtag: slh +Description: Southern Puget Sound Salish +Added: 2009-07-29 +%% +Type: language +Subtag: sli +Description: Lower Silesian +Added: 2009-07-29 +%% +Type: language +Subtag: slj +Description: Salumá +Added: 2009-07-29 +%% +Type: language +Subtag: sll +Description: Salt-Yui +Added: 2009-07-29 +%% +Type: language +Subtag: slm +Description: Pangutaran Sama +Added: 2009-07-29 +%% +Type: language +Subtag: sln +Description: Salinan +Added: 2009-07-29 +%% +Type: language +Subtag: slp +Description: Lamaholot +Added: 2009-07-29 +%% +Type: language +Subtag: slq +Description: Salchuq +Added: 2009-07-29 +%% +Type: language +Subtag: slr +Description: Salar +Added: 2009-07-29 +%% +Type: language +Subtag: sls +Description: Singapore Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: slt +Description: Sila +Added: 2009-07-29 +%% +Type: language +Subtag: slu +Description: Selaru +Added: 2009-07-29 +%% +Type: language +Subtag: slw +Description: Sialum +Added: 2009-07-29 +%% +Type: language +Subtag: slx +Description: Salampasu +Added: 2009-07-29 +%% +Type: language +Subtag: sly +Description: Selayar +Added: 2009-07-29 +%% +Type: language +Subtag: slz +Description: Ma'ya +Added: 2009-07-29 +%% +Type: language +Subtag: sma +Description: Southern Sami +Added: 2005-10-16 +%% +Type: language +Subtag: smb +Description: Simbari +Added: 2009-07-29 +%% +Type: language +Subtag: smc +Description: Som +Added: 2009-07-29 +%% +Type: language +Subtag: smd +Description: Sama +Added: 2009-07-29 +%% +Type: language +Subtag: smf +Description: Auwe +Added: 2009-07-29 +%% +Type: language +Subtag: smg +Description: Simbali +Added: 2009-07-29 +%% +Type: language +Subtag: smh +Description: Samei +Added: 2009-07-29 +%% +Type: language +Subtag: smi +Description: Sami languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: smj +Description: Lule Sami +Added: 2005-10-16 +%% +Type: language +Subtag: smk +Description: Bolinao +Added: 2009-07-29 +%% +Type: language +Subtag: sml +Description: Central Sama +Added: 2009-07-29 +%% +Type: language +Subtag: smm +Description: Musasa +Added: 2009-07-29 +%% +Type: language +Subtag: smn +Description: Inari Sami +Added: 2005-10-16 +%% +Type: language +Subtag: smp +Description: Samaritan +Added: 2009-07-29 +%% +Type: language +Subtag: smq +Description: Samo +Added: 2009-07-29 +%% +Type: language +Subtag: smr +Description: Simeulue +Added: 2009-07-29 +%% +Type: language +Subtag: sms +Description: Skolt Sami +Added: 2005-10-16 +%% +Type: language +Subtag: smt +Description: Simte +Added: 2009-07-29 +%% +Type: language +Subtag: smu +Description: Somray +Added: 2009-07-29 +%% +Type: language +Subtag: smv +Description: Samvedi +Added: 2009-07-29 +%% +Type: language +Subtag: smw +Description: Sumbawa +Added: 2009-07-29 +%% +Type: language +Subtag: smx +Description: Samba +Added: 2009-07-29 +%% +Type: language +Subtag: smy +Description: Semnani +Added: 2009-07-29 +%% +Type: language +Subtag: smz +Description: Simeku +Added: 2009-07-29 +%% +Type: language +Subtag: snb +Description: Sebuyau +Added: 2009-07-29 +%% +Type: language +Subtag: snc +Description: Sinaugoro +Added: 2009-07-29 +%% +Type: language +Subtag: sne +Description: Bau Bidayuh +Added: 2009-07-29 +%% +Type: language +Subtag: snf +Description: Noon +Added: 2009-07-29 +%% +Type: language +Subtag: sng +Description: Sanga (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: snh +Description: Shinabo +Added: 2009-07-29 +Deprecated: 2017-02-23 +%% +Type: language +Subtag: sni +Description: Sensi +Added: 2009-07-29 +%% +Type: language +Subtag: snj +Description: Riverain Sango +Added: 2009-07-29 +%% +Type: language +Subtag: snk +Description: Soninke +Added: 2005-10-16 +%% +Type: language +Subtag: snl +Description: Sangil +Added: 2009-07-29 +%% +Type: language +Subtag: snm +Description: Southern Ma'di +Added: 2009-07-29 +%% +Type: language +Subtag: snn +Description: Siona +Added: 2009-07-29 +%% +Type: language +Subtag: sno +Description: Snohomish +Added: 2009-07-29 +%% +Type: language +Subtag: snp +Description: Siane +Added: 2009-07-29 +%% +Type: language +Subtag: snq +Description: Sangu (Gabon) +Added: 2009-07-29 +%% +Type: language +Subtag: snr +Description: Sihan +Added: 2009-07-29 +%% +Type: language +Subtag: sns +Description: South West Bay +Description: Nahavaq +Added: 2009-07-29 +%% +Type: language +Subtag: snu +Description: Senggi +Description: Viid +Added: 2009-07-29 +%% +Type: language +Subtag: snv +Description: Sa'ban +Added: 2009-07-29 +%% +Type: language +Subtag: snw +Description: Selee +Added: 2009-07-29 +%% +Type: language +Subtag: snx +Description: Sam +Added: 2009-07-29 +%% +Type: language +Subtag: sny +Description: Saniyo-Hiyewe +Added: 2009-07-29 +%% +Type: language +Subtag: snz +Description: Kou +Added: 2009-07-29 +%% +Type: language +Subtag: soa +Description: Thai Song +Added: 2009-07-29 +%% +Type: language +Subtag: sob +Description: Sobei +Added: 2009-07-29 +%% +Type: language +Subtag: soc +Description: So (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: sod +Description: Songoora +Added: 2009-07-29 +%% +Type: language +Subtag: soe +Description: Songomeno +Added: 2009-07-29 +%% +Type: language +Subtag: sog +Description: Sogdian +Added: 2005-10-16 +%% +Type: language +Subtag: soh +Description: Aka +Added: 2009-07-29 +%% +Type: language +Subtag: soi +Description: Sonha +Added: 2009-07-29 +%% +Type: language +Subtag: soj +Description: Soi +Added: 2009-07-29 +%% +Type: language +Subtag: sok +Description: Sokoro +Added: 2009-07-29 +%% +Type: language +Subtag: sol +Description: Solos +Added: 2009-07-29 +%% +Type: language +Subtag: son +Description: Songhai languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: soo +Description: Songo +Added: 2009-07-29 +%% +Type: language +Subtag: sop +Description: Songe +Added: 2009-07-29 +%% +Type: language +Subtag: soq +Description: Kanasi +Added: 2009-07-29 +%% +Type: language +Subtag: sor +Description: Somrai +Added: 2009-07-29 +%% +Type: language +Subtag: sos +Description: Seeku +Added: 2009-07-29 +%% +Type: language +Subtag: sou +Description: Southern Thai +Added: 2009-07-29 +%% +Type: language +Subtag: sov +Description: Sonsorol +Added: 2009-07-29 +%% +Type: language +Subtag: sow +Description: Sowanda +Added: 2009-07-29 +%% +Type: language +Subtag: sox +Description: Swo +Added: 2009-07-29 +%% +Type: language +Subtag: soy +Description: Miyobe +Added: 2009-07-29 +%% +Type: language +Subtag: soz +Description: Temi +Added: 2009-07-29 +%% +Type: language +Subtag: spb +Description: Sepa (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: spc +Description: Sapé +Added: 2009-07-29 +%% +Type: language +Subtag: spd +Description: Saep +Added: 2009-07-29 +%% +Type: language +Subtag: spe +Description: Sepa (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: spg +Description: Sian +Added: 2009-07-29 +%% +Type: language +Subtag: spi +Description: Saponi +Added: 2009-07-29 +%% +Type: language +Subtag: spk +Description: Sengo +Added: 2009-07-29 +%% +Type: language +Subtag: spl +Description: Selepet +Added: 2009-07-29 +%% +Type: language +Subtag: spm +Description: Akukem +Added: 2009-07-29 +%% +Type: language +Subtag: spn +Description: Sanapaná +Added: 2014-02-28 +%% +Type: language +Subtag: spo +Description: Spokane +Added: 2009-07-29 +%% +Type: language +Subtag: spp +Description: Supyire Senoufo +Added: 2009-07-29 +%% +Type: language +Subtag: spq +Description: Loreto-Ucayali Spanish +Added: 2009-07-29 +%% +Type: language +Subtag: spr +Description: Saparua +Added: 2009-07-29 +%% +Type: language +Subtag: sps +Description: Saposa +Added: 2009-07-29 +%% +Type: language +Subtag: spt +Description: Spiti Bhoti +Added: 2009-07-29 +%% +Type: language +Subtag: spu +Description: Sapuan +Added: 2009-07-29 +%% +Type: language +Subtag: spv +Description: Sambalpuri +Description: Kosli +Added: 2012-08-12 +Macrolanguage: or +%% +Type: language +Subtag: spx +Description: South Picene +Added: 2009-07-29 +%% +Type: language +Subtag: spy +Description: Sabaot +Added: 2009-07-29 +Macrolanguage: kln +%% +Type: language +Subtag: sqa +Description: Shama-Sambuga +Added: 2009-07-29 +%% +Type: language +Subtag: sqh +Description: Shau +Added: 2009-07-29 +%% +Type: language +Subtag: sqj +Description: Albanian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: sqk +Description: Albanian Sign Language +Added: 2012-08-12 +%% +Type: language +Subtag: sqm +Description: Suma +Added: 2009-07-29 +%% +Type: language +Subtag: sqn +Description: Susquehannock +Added: 2009-07-29 +%% +Type: language +Subtag: sqo +Description: Sorkhei +Added: 2009-07-29 +%% +Type: language +Subtag: sqq +Description: Sou +Added: 2009-07-29 +%% +Type: language +Subtag: sqr +Description: Siculo Arabic +Added: 2009-07-29 +%% +Type: language +Subtag: sqs +Description: Sri Lankan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: sqt +Description: Soqotri +Added: 2009-07-29 +%% +Type: language +Subtag: squ +Description: Squamish +Added: 2009-07-29 +%% +Type: language +Subtag: sra +Description: Saruga +Added: 2009-07-29 +%% +Type: language +Subtag: srb +Description: Sora +Added: 2009-07-29 +%% +Type: language +Subtag: src +Description: Logudorese Sardinian +Added: 2009-07-29 +Macrolanguage: sc +%% +Type: language +Subtag: sre +Description: Sara +Added: 2009-07-29 +%% +Type: language +Subtag: srf +Description: Nafi +Added: 2009-07-29 +%% +Type: language +Subtag: srg +Description: Sulod +Added: 2009-07-29 +%% +Type: language +Subtag: srh +Description: Sarikoli +Added: 2009-07-29 +%% +Type: language +Subtag: sri +Description: Siriano +Added: 2009-07-29 +%% +Type: language +Subtag: srk +Description: Serudung Murut +Added: 2009-07-29 +%% +Type: language +Subtag: srl +Description: Isirawa +Added: 2009-07-29 +%% +Type: language +Subtag: srm +Description: Saramaccan +Added: 2009-07-29 +%% +Type: language +Subtag: srn +Description: Sranan Tongo +Added: 2005-10-16 +%% +Type: language +Subtag: sro +Description: Campidanese Sardinian +Added: 2009-07-29 +Macrolanguage: sc +%% +Type: language +Subtag: srq +Description: Sirionó +Added: 2009-07-29 +%% +Type: language +Subtag: srr +Description: Serer +Added: 2005-10-16 +%% +Type: language +Subtag: srs +Description: Sarsi +Added: 2009-07-29 +%% +Type: language +Subtag: srt +Description: Sauri +Added: 2009-07-29 +%% +Type: language +Subtag: sru +Description: Suruí +Added: 2009-07-29 +%% +Type: language +Subtag: srv +Description: Southern Sorsoganon +Added: 2009-07-29 +%% +Type: language +Subtag: srw +Description: Serua +Added: 2009-07-29 +%% +Type: language +Subtag: srx +Description: Sirmauri +Added: 2009-07-29 +%% +Type: language +Subtag: sry +Description: Sera +Added: 2009-07-29 +%% +Type: language +Subtag: srz +Description: Shahmirzadi +Added: 2009-07-29 +%% +Type: language +Subtag: ssa +Description: Nilo-Saharan languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: ssb +Description: Southern Sama +Added: 2009-07-29 +%% +Type: language +Subtag: ssc +Description: Suba-Simbiti +Added: 2009-07-29 +%% +Type: language +Subtag: ssd +Description: Siroi +Added: 2009-07-29 +%% +Type: language +Subtag: sse +Description: Balangingi +Description: Bangingih Sama +Added: 2009-07-29 +%% +Type: language +Subtag: ssf +Description: Thao +Added: 2009-07-29 +%% +Type: language +Subtag: ssg +Description: Seimat +Added: 2009-07-29 +%% +Type: language +Subtag: ssh +Description: Shihhi Arabic +Added: 2009-07-29 +Macrolanguage: ar +%% +Type: language +Subtag: ssi +Description: Sansi +Added: 2009-07-29 +%% +Type: language +Subtag: ssj +Description: Sausi +Added: 2009-07-29 +%% +Type: language +Subtag: ssk +Description: Sunam +Added: 2009-07-29 +%% +Type: language +Subtag: ssl +Description: Western Sisaala +Added: 2009-07-29 +%% +Type: language +Subtag: ssm +Description: Semnam +Added: 2009-07-29 +%% +Type: language +Subtag: ssn +Description: Waata +Added: 2009-07-29 +%% +Type: language +Subtag: sso +Description: Sissano +Added: 2009-07-29 +%% +Type: language +Subtag: ssp +Description: Spanish Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: ssq +Description: So'a +Added: 2009-07-29 +%% +Type: language +Subtag: ssr +Description: Swiss-French Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: sss +Description: Sô +Added: 2009-07-29 +%% +Type: language +Subtag: sst +Description: Sinasina +Added: 2009-07-29 +%% +Type: language +Subtag: ssu +Description: Susuami +Added: 2009-07-29 +%% +Type: language +Subtag: ssv +Description: Shark Bay +Added: 2009-07-29 +%% +Type: language +Subtag: ssx +Description: Samberigi +Added: 2009-07-29 +%% +Type: language +Subtag: ssy +Description: Saho +Added: 2009-07-29 +%% +Type: language +Subtag: ssz +Description: Sengseng +Added: 2009-07-29 +%% +Type: language +Subtag: sta +Description: Settla +Added: 2009-07-29 +%% +Type: language +Subtag: stb +Description: Northern Subanen +Added: 2009-07-29 +%% +Type: language +Subtag: std +Description: Sentinel +Added: 2009-07-29 +%% +Type: language +Subtag: ste +Description: Liana-Seti +Added: 2009-07-29 +%% +Type: language +Subtag: stf +Description: Seta +Added: 2009-07-29 +%% +Type: language +Subtag: stg +Description: Trieng +Added: 2009-07-29 +%% +Type: language +Subtag: sth +Description: Shelta +Added: 2009-07-29 +%% +Type: language +Subtag: sti +Description: Bulo Stieng +Added: 2009-07-29 +%% +Type: language +Subtag: stj +Description: Matya Samo +Added: 2009-07-29 +%% +Type: language +Subtag: stk +Description: Arammba +Added: 2009-07-29 +%% +Type: language +Subtag: stl +Description: Stellingwerfs +Added: 2009-07-29 +%% +Type: language +Subtag: stm +Description: Setaman +Added: 2009-07-29 +%% +Type: language +Subtag: stn +Description: Owa +Added: 2009-07-29 +%% +Type: language +Subtag: sto +Description: Stoney +Added: 2009-07-29 +%% +Type: language +Subtag: stp +Description: Southeastern Tepehuan +Added: 2009-07-29 +%% +Type: language +Subtag: stq +Description: Saterfriesisch +Added: 2009-07-29 +%% +Type: language +Subtag: str +Description: Straits Salish +Added: 2009-07-29 +%% +Type: language +Subtag: sts +Description: Shumashti +Added: 2009-07-29 +%% +Type: language +Subtag: stt +Description: Budeh Stieng +Added: 2009-07-29 +%% +Type: language +Subtag: stu +Description: Samtao +Added: 2009-07-29 +%% +Type: language +Subtag: stv +Description: Silt'e +Added: 2009-07-29 +%% +Type: language +Subtag: stw +Description: Satawalese +Added: 2009-07-29 +%% +Type: language +Subtag: sty +Description: Siberian Tatar +Added: 2013-09-10 +%% +Type: language +Subtag: sua +Description: Sulka +Added: 2009-07-29 +%% +Type: language +Subtag: sub +Description: Suku +Added: 2009-07-29 +%% +Type: language +Subtag: suc +Description: Western Subanon +Added: 2009-07-29 +%% +Type: language +Subtag: sue +Description: Suena +Added: 2009-07-29 +%% +Type: language +Subtag: sug +Description: Suganga +Added: 2009-07-29 +%% +Type: language +Subtag: sui +Description: Suki +Added: 2009-07-29 +%% +Type: language +Subtag: suj +Description: Shubi +Added: 2009-07-29 +Comments: see also xsj +%% +Type: language +Subtag: suk +Description: Sukuma +Added: 2005-10-16 +%% +Type: language +Subtag: sul +Description: Surigaonon +Added: 2009-07-29 +Deprecated: 2010-03-11 +Comments: see sgd, tgn +%% +Type: language +Subtag: sum +Description: Sumo-Mayangna +Added: 2009-07-29 +Deprecated: 2010-03-11 +Comments: see ulw, yan +%% +Type: language +Subtag: suq +Description: Suri +Added: 2009-07-29 +%% +Type: language +Subtag: sur +Description: Mwaghavul +Added: 2009-07-29 +%% +Type: language +Subtag: sus +Description: Susu +Added: 2005-10-16 +%% +Type: language +Subtag: sut +Description: Subtiaba +Added: 2009-07-29 +%% +Type: language +Subtag: suv +Description: Puroik +Added: 2009-07-29 +%% +Type: language +Subtag: suw +Description: Sumbwa +Added: 2009-07-29 +%% +Type: language +Subtag: sux +Description: Sumerian +Added: 2005-10-16 +%% +Type: language +Subtag: suy +Description: Suyá +Added: 2009-07-29 +%% +Type: language +Subtag: suz +Description: Sunwar +Added: 2009-07-29 +%% +Type: language +Subtag: sva +Description: Svan +Added: 2009-07-29 +%% +Type: language +Subtag: svb +Description: Ulau-Suain +Added: 2009-07-29 +%% +Type: language +Subtag: svc +Description: Vincentian Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: sve +Description: Serili +Added: 2009-07-29 +%% +Type: language +Subtag: svk +Description: Slovakian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: svm +Description: Slavomolisano +Added: 2013-09-10 +%% +Type: language +Subtag: svr +Description: Savara +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: svs +Description: Savosavo +Added: 2009-07-29 +%% +Type: language +Subtag: svx +Description: Skalvian +Added: 2009-07-29 +%% +Type: language +Subtag: swb +Description: Maore Comorian +Added: 2009-07-29 +%% +Type: language +Subtag: swc +Description: Congo Swahili +Added: 2009-07-29 +Macrolanguage: sw +%% +Type: language +Subtag: swf +Description: Sere +Added: 2009-07-29 +%% +Type: language +Subtag: swg +Description: Swabian +Added: 2009-07-29 +%% +Type: language +Subtag: swh +Description: Swahili (individual language) +Description: Kiswahili +Added: 2009-07-29 +Macrolanguage: sw +%% +Type: language +Subtag: swi +Description: Sui +Added: 2009-07-29 +%% +Type: language +Subtag: swj +Description: Sira +Added: 2009-07-29 +%% +Type: language +Subtag: swk +Description: Malawi Sena +Added: 2009-07-29 +%% +Type: language +Subtag: swl +Description: Swedish Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: swm +Description: Samosa +Added: 2009-07-29 +%% +Type: language +Subtag: swn +Description: Sawknah +Added: 2009-07-29 +%% +Type: language +Subtag: swo +Description: Shanenawa +Added: 2009-07-29 +%% +Type: language +Subtag: swp +Description: Suau +Added: 2009-07-29 +%% +Type: language +Subtag: swq +Description: Sharwa +Added: 2009-07-29 +%% +Type: language +Subtag: swr +Description: Saweru +Added: 2009-07-29 +%% +Type: language +Subtag: sws +Description: Seluwasan +Added: 2009-07-29 +%% +Type: language +Subtag: swt +Description: Sawila +Added: 2009-07-29 +%% +Type: language +Subtag: swu +Description: Suwawa +Added: 2009-07-29 +%% +Type: language +Subtag: swv +Description: Shekhawati +Added: 2009-07-29 +Macrolanguage: mwr +%% +Type: language +Subtag: sww +Description: Sowa +Added: 2009-07-29 +%% +Type: language +Subtag: swx +Description: Suruahá +Added: 2009-07-29 +%% +Type: language +Subtag: swy +Description: Sarua +Added: 2009-07-29 +%% +Type: language +Subtag: sxb +Description: Suba +Added: 2009-07-29 +%% +Type: language +Subtag: sxc +Description: Sicanian +Added: 2009-07-29 +%% +Type: language +Subtag: sxe +Description: Sighu +Added: 2009-07-29 +%% +Type: language +Subtag: sxg +Description: Shuhi +Description: Shixing +Added: 2009-07-29 +%% +Type: language +Subtag: sxk +Description: Southern Kalapuya +Added: 2009-07-29 +%% +Type: language +Subtag: sxl +Description: Selian +Added: 2009-07-29 +%% +Type: language +Subtag: sxm +Description: Samre +Added: 2009-07-29 +%% +Type: language +Subtag: sxn +Description: Sangir +Added: 2009-07-29 +%% +Type: language +Subtag: sxo +Description: Sorothaptic +Added: 2009-07-29 +%% +Type: language +Subtag: sxr +Description: Saaroa +Added: 2009-07-29 +%% +Type: language +Subtag: sxs +Description: Sasaru +Added: 2009-07-29 +%% +Type: language +Subtag: sxu +Description: Upper Saxon +Added: 2009-07-29 +%% +Type: language +Subtag: sxw +Description: Saxwe Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: sya +Description: Siang +Added: 2009-07-29 +%% +Type: language +Subtag: syb +Description: Central Subanen +Added: 2009-07-29 +%% +Type: language +Subtag: syc +Description: Classical Syriac +Added: 2007-04-03 +%% +Type: language +Subtag: syd +Description: Samoyedic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: syi +Description: Seki +Added: 2009-07-29 +%% +Type: language +Subtag: syk +Description: Sukur +Added: 2009-07-29 +%% +Type: language +Subtag: syl +Description: Sylheti +Added: 2009-07-29 +%% +Type: language +Subtag: sym +Description: Maya Samo +Added: 2009-07-29 +%% +Type: language +Subtag: syn +Description: Senaya +Added: 2009-07-29 +%% +Type: language +Subtag: syo +Description: Suoy +Added: 2009-07-29 +%% +Type: language +Subtag: syr +Description: Syriac +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: sys +Description: Sinyar +Added: 2009-07-29 +%% +Type: language +Subtag: syw +Description: Kagate +Added: 2009-07-29 +%% +Type: language +Subtag: syx +Description: Samay +Added: 2015-02-12 +%% +Type: language +Subtag: syy +Description: Al-Sayyid Bedouin Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: sza +Description: Semelai +Added: 2009-07-29 +%% +Type: language +Subtag: szb +Description: Ngalum +Added: 2009-07-29 +%% +Type: language +Subtag: szc +Description: Semaq Beri +Added: 2009-07-29 +%% +Type: language +Subtag: szd +Description: Seru +Added: 2009-07-29 +%% +Type: language +Subtag: sze +Description: Seze +Added: 2009-07-29 +%% +Type: language +Subtag: szg +Description: Sengele +Added: 2009-07-29 +%% +Type: language +Subtag: szl +Description: Silesian +Added: 2009-07-29 +%% +Type: language +Subtag: szn +Description: Sula +Added: 2009-07-29 +%% +Type: language +Subtag: szp +Description: Suabo +Added: 2009-07-29 +%% +Type: language +Subtag: szs +Description: Solomon Islands Sign Language +Added: 2017-02-23 +%% +Type: language +Subtag: szv +Description: Isu (Fako Division) +Added: 2009-07-29 +%% +Type: language +Subtag: szw +Description: Sawai +Added: 2009-07-29 +%% +Type: language +Subtag: szy +Description: Sakizaya +Added: 2019-04-16 +%% +Type: language +Subtag: taa +Description: Lower Tanana +Added: 2009-07-29 +%% +Type: language +Subtag: tab +Description: Tabassaran +Added: 2009-07-29 +%% +Type: language +Subtag: tac +Description: Lowland Tarahumara +Added: 2009-07-29 +%% +Type: language +Subtag: tad +Description: Tause +Added: 2009-07-29 +%% +Type: language +Subtag: tae +Description: Tariana +Added: 2009-07-29 +%% +Type: language +Subtag: taf +Description: Tapirapé +Added: 2009-07-29 +%% +Type: language +Subtag: tag +Description: Tagoi +Added: 2009-07-29 +%% +Type: language +Subtag: tai +Description: Tai languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: taj +Description: Eastern Tamang +Added: 2009-07-29 +%% +Type: language +Subtag: tak +Description: Tala +Added: 2009-07-29 +%% +Type: language +Subtag: tal +Description: Tal +Added: 2009-07-29 +%% +Type: language +Subtag: tan +Description: Tangale +Added: 2009-07-29 +%% +Type: language +Subtag: tao +Description: Yami +Added: 2009-07-29 +%% +Type: language +Subtag: tap +Description: Taabwa +Added: 2009-07-29 +%% +Type: language +Subtag: taq +Description: Tamasheq +Added: 2009-07-29 +Macrolanguage: tmh +%% +Type: language +Subtag: tar +Description: Central Tarahumara +Added: 2009-07-29 +%% +Type: language +Subtag: tas +Description: Tay Boi +Added: 2009-07-29 +%% +Type: language +Subtag: tau +Description: Upper Tanana +Added: 2009-07-29 +%% +Type: language +Subtag: tav +Description: Tatuyo +Added: 2009-07-29 +%% +Type: language +Subtag: taw +Description: Tai +Added: 2009-07-29 +%% +Type: language +Subtag: tax +Description: Tamki +Added: 2009-07-29 +%% +Type: language +Subtag: tay +Description: Atayal +Added: 2009-07-29 +%% +Type: language +Subtag: taz +Description: Tocho +Added: 2009-07-29 +%% +Type: language +Subtag: tba +Description: Aikanã +Added: 2009-07-29 +%% +Type: language +Subtag: tbb +Description: Tapeba +Added: 2009-07-29 +%% +Type: language +Subtag: tbc +Description: Takia +Added: 2009-07-29 +%% +Type: language +Subtag: tbd +Description: Kaki Ae +Added: 2009-07-29 +%% +Type: language +Subtag: tbe +Description: Tanimbili +Added: 2009-07-29 +%% +Type: language +Subtag: tbf +Description: Mandara +Added: 2009-07-29 +%% +Type: language +Subtag: tbg +Description: North Tairora +Added: 2009-07-29 +%% +Type: language +Subtag: tbh +Description: Dharawal +Description: Thurawal +Added: 2009-07-29 +%% +Type: language +Subtag: tbi +Description: Gaam +Added: 2009-07-29 +%% +Type: language +Subtag: tbj +Description: Tiang +Added: 2009-07-29 +%% +Type: language +Subtag: tbk +Description: Calamian Tagbanwa +Added: 2009-07-29 +%% +Type: language +Subtag: tbl +Description: Tboli +Added: 2009-07-29 +%% +Type: language +Subtag: tbm +Description: Tagbu +Added: 2009-07-29 +%% +Type: language +Subtag: tbn +Description: Barro Negro Tunebo +Added: 2009-07-29 +%% +Type: language +Subtag: tbo +Description: Tawala +Added: 2009-07-29 +%% +Type: language +Subtag: tbp +Description: Taworta +Description: Diebroud +Added: 2009-07-29 +%% +Type: language +Subtag: tbq +Description: Tibeto-Burman languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: tbr +Description: Tumtum +Added: 2009-07-29 +%% +Type: language +Subtag: tbs +Description: Tanguat +Added: 2009-07-29 +%% +Type: language +Subtag: tbt +Description: Tembo (Kitembo) +Added: 2009-07-29 +%% +Type: language +Subtag: tbu +Description: Tubar +Added: 2009-07-29 +%% +Type: language +Subtag: tbv +Description: Tobo +Added: 2009-07-29 +%% +Type: language +Subtag: tbw +Description: Tagbanwa +Added: 2009-07-29 +%% +Type: language +Subtag: tbx +Description: Kapin +Added: 2009-07-29 +%% +Type: language +Subtag: tby +Description: Tabaru +Added: 2009-07-29 +%% +Type: language +Subtag: tbz +Description: Ditammari +Added: 2009-07-29 +%% +Type: language +Subtag: tca +Description: Ticuna +Added: 2009-07-29 +%% +Type: language +Subtag: tcb +Description: Tanacross +Added: 2009-07-29 +%% +Type: language +Subtag: tcc +Description: Datooga +Added: 2009-07-29 +%% +Type: language +Subtag: tcd +Description: Tafi +Added: 2009-07-29 +%% +Type: language +Subtag: tce +Description: Southern Tutchone +Added: 2009-07-29 +%% +Type: language +Subtag: tcf +Description: Malinaltepec Me'phaa +Description: Malinaltepec Tlapanec +Added: 2009-07-29 +%% +Type: language +Subtag: tcg +Description: Tamagario +Added: 2009-07-29 +%% +Type: language +Subtag: tch +Description: Turks And Caicos Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: tci +Description: Wára +Added: 2009-07-29 +%% +Type: language +Subtag: tck +Description: Tchitchege +Added: 2009-07-29 +%% +Type: language +Subtag: tcl +Description: Taman (Myanmar) +Added: 2009-07-29 +%% +Type: language +Subtag: tcm +Description: Tanahmerah +Added: 2009-07-29 +%% +Type: language +Subtag: tcn +Description: Tichurong +Added: 2009-07-29 +%% +Type: language +Subtag: tco +Description: Taungyo +Added: 2009-07-29 +%% +Type: language +Subtag: tcp +Description: Tawr Chin +Added: 2009-07-29 +%% +Type: language +Subtag: tcq +Description: Kaiy +Added: 2009-07-29 +%% +Type: language +Subtag: tcs +Description: Torres Strait Creole +Description: Yumplatok +Added: 2009-07-29 +%% +Type: language +Subtag: tct +Description: T'en +Added: 2009-07-29 +%% +Type: language +Subtag: tcu +Description: Southeastern Tarahumara +Added: 2009-07-29 +%% +Type: language +Subtag: tcw +Description: Tecpatlán Totonac +Added: 2009-07-29 +%% +Type: language +Subtag: tcx +Description: Toda +Added: 2009-07-29 +%% +Type: language +Subtag: tcy +Description: Tulu +Added: 2009-07-29 +%% +Type: language +Subtag: tcz +Description: Thado Chin +Added: 2009-07-29 +%% +Type: language +Subtag: tda +Description: Tagdal +Added: 2009-07-29 +%% +Type: language +Subtag: tdb +Description: Panchpargania +Added: 2009-07-29 +%% +Type: language +Subtag: tdc +Description: Emberá-Tadó +Added: 2009-07-29 +%% +Type: language +Subtag: tdd +Description: Tai Nüa +Added: 2009-07-29 +%% +Type: language +Subtag: tde +Description: Tiranige Diga Dogon +Added: 2010-03-11 +%% +Type: language +Subtag: tdf +Description: Talieng +Added: 2009-07-29 +%% +Type: language +Subtag: tdg +Description: Western Tamang +Added: 2009-07-29 +%% +Type: language +Subtag: tdh +Description: Thulung +Added: 2009-07-29 +%% +Type: language +Subtag: tdi +Description: Tomadino +Added: 2009-07-29 +%% +Type: language +Subtag: tdj +Description: Tajio +Added: 2009-07-29 +%% +Type: language +Subtag: tdk +Description: Tambas +Added: 2009-07-29 +%% +Type: language +Subtag: tdl +Description: Sur +Added: 2009-07-29 +%% +Type: language +Subtag: tdm +Description: Taruma +Added: 2016-05-30 +%% +Type: language +Subtag: tdn +Description: Tondano +Added: 2009-07-29 +%% +Type: language +Subtag: tdo +Description: Teme +Added: 2009-07-29 +%% +Type: language +Subtag: tdq +Description: Tita +Added: 2009-07-29 +%% +Type: language +Subtag: tdr +Description: Todrah +Added: 2009-07-29 +%% +Type: language +Subtag: tds +Description: Doutai +Added: 2009-07-29 +%% +Type: language +Subtag: tdt +Description: Tetun Dili +Added: 2009-07-29 +%% +Type: language +Subtag: tdu +Description: Tempasuk Dusun +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: dtp +%% +Type: language +Subtag: tdv +Description: Toro +Added: 2009-07-29 +%% +Type: language +Subtag: tdx +Description: Tandroy-Mahafaly Malagasy +Added: 2009-07-29 +Macrolanguage: mg +%% +Type: language +Subtag: tdy +Description: Tadyawan +Added: 2009-07-29 +%% +Type: language +Subtag: tea +Description: Temiar +Added: 2009-07-29 +%% +Type: language +Subtag: teb +Description: Tetete +Added: 2009-07-29 +%% +Type: language +Subtag: tec +Description: Terik +Added: 2009-07-29 +Macrolanguage: kln +%% +Type: language +Subtag: ted +Description: Tepo Krumen +Added: 2009-07-29 +%% +Type: language +Subtag: tee +Description: Huehuetla Tepehua +Added: 2009-07-29 +%% +Type: language +Subtag: tef +Description: Teressa +Added: 2009-07-29 +%% +Type: language +Subtag: teg +Description: Teke-Tege +Added: 2009-07-29 +%% +Type: language +Subtag: teh +Description: Tehuelche +Added: 2009-07-29 +%% +Type: language +Subtag: tei +Description: Torricelli +Added: 2009-07-29 +%% +Type: language +Subtag: tek +Description: Ibali Teke +Added: 2009-07-29 +%% +Type: language +Subtag: tem +Description: Timne +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: ten +Description: Tama (Colombia) +Added: 2009-07-29 +%% +Type: language +Subtag: teo +Description: Teso +Added: 2009-07-29 +%% +Type: language +Subtag: tep +Description: Tepecano +Added: 2009-07-29 +%% +Type: language +Subtag: teq +Description: Temein +Added: 2009-07-29 +%% +Type: language +Subtag: ter +Description: Tereno +Added: 2005-10-16 +%% +Type: language +Subtag: tes +Description: Tengger +Added: 2009-07-29 +%% +Type: language +Subtag: tet +Description: Tetum +Added: 2005-10-16 +%% +Type: language +Subtag: teu +Description: Soo +Added: 2009-07-29 +%% +Type: language +Subtag: tev +Description: Teor +Added: 2009-07-29 +%% +Type: language +Subtag: tew +Description: Tewa (USA) +Added: 2009-07-29 +%% +Type: language +Subtag: tex +Description: Tennet +Added: 2009-07-29 +%% +Type: language +Subtag: tey +Description: Tulishi +Added: 2009-07-29 +%% +Type: language +Subtag: tez +Description: Tetserret +Added: 2018-03-08 +%% +Type: language +Subtag: tfi +Description: Tofin Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: tfn +Description: Tanaina +Added: 2009-07-29 +%% +Type: language +Subtag: tfo +Description: Tefaro +Added: 2009-07-29 +%% +Type: language +Subtag: tfr +Description: Teribe +Added: 2009-07-29 +%% +Type: language +Subtag: tft +Description: Ternate +Added: 2009-07-29 +%% +Type: language +Subtag: tga +Description: Sagalla +Added: 2009-07-29 +%% +Type: language +Subtag: tgb +Description: Tobilung +Added: 2009-07-29 +%% +Type: language +Subtag: tgc +Description: Tigak +Added: 2009-07-29 +%% +Type: language +Subtag: tgd +Description: Ciwogai +Added: 2009-07-29 +%% +Type: language +Subtag: tge +Description: Eastern Gorkha Tamang +Added: 2009-07-29 +%% +Type: language +Subtag: tgf +Description: Chalikha +Added: 2009-07-29 +%% +Type: language +Subtag: tgg +Description: Tangga +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see bjp, hrc, hrw +%% +Type: language +Subtag: tgh +Description: Tobagonian Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: tgi +Description: Lawunuia +Added: 2009-07-29 +%% +Type: language +Subtag: tgj +Description: Tagin +Added: 2012-08-12 +%% +Type: language +Subtag: tgn +Description: Tandaganon +Added: 2010-03-11 +%% +Type: language +Subtag: tgo +Description: Sudest +Added: 2009-07-29 +%% +Type: language +Subtag: tgp +Description: Tangoa +Added: 2009-07-29 +%% +Type: language +Subtag: tgq +Description: Tring +Added: 2009-07-29 +%% +Type: language +Subtag: tgr +Description: Tareng +Added: 2009-07-29 +%% +Type: language +Subtag: tgs +Description: Nume +Added: 2009-07-29 +%% +Type: language +Subtag: tgt +Description: Central Tagbanwa +Added: 2009-07-29 +%% +Type: language +Subtag: tgu +Description: Tanggu +Added: 2009-07-29 +%% +Type: language +Subtag: tgv +Description: Tingui-Boto +Added: 2009-07-29 +%% +Type: language +Subtag: tgw +Description: Tagwana Senoufo +Added: 2009-07-29 +%% +Type: language +Subtag: tgx +Description: Tagish +Added: 2009-07-29 +%% +Type: language +Subtag: tgy +Description: Togoyo +Added: 2009-07-29 +%% +Type: language +Subtag: tgz +Description: Tagalaka +Added: 2012-08-12 +%% +Type: language +Subtag: thc +Description: Tai Hang Tong +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: tpo +%% +Type: language +Subtag: thd +Description: Kuuk Thaayorre +Description: Thayore +Added: 2009-07-29 +%% +Type: language +Subtag: the +Description: Chitwania Tharu +Added: 2009-07-29 +%% +Type: language +Subtag: thf +Description: Thangmi +Added: 2009-07-29 +%% +Type: language +Subtag: thh +Description: Northern Tarahumara +Added: 2009-07-29 +%% +Type: language +Subtag: thi +Description: Tai Long +Added: 2009-07-29 +%% +Type: language +Subtag: thk +Description: Tharaka +Description: Kitharaka +Added: 2009-07-29 +%% +Type: language +Subtag: thl +Description: Dangaura Tharu +Added: 2009-07-29 +%% +Type: language +Subtag: thm +Description: Aheu +Added: 2009-07-29 +%% +Type: language +Subtag: thn +Description: Thachanadan +Added: 2009-07-29 +%% +Type: language +Subtag: thp +Description: Thompson +Added: 2009-07-29 +%% +Type: language +Subtag: thq +Description: Kochila Tharu +Added: 2009-07-29 +%% +Type: language +Subtag: thr +Description: Rana Tharu +Added: 2009-07-29 +%% +Type: language +Subtag: ths +Description: Thakali +Added: 2009-07-29 +%% +Type: language +Subtag: tht +Description: Tahltan +Added: 2009-07-29 +%% +Type: language +Subtag: thu +Description: Thuri +Added: 2009-07-29 +%% +Type: language +Subtag: thv +Description: Tahaggart Tamahaq +Added: 2009-07-29 +Macrolanguage: tmh +%% +Type: language +Subtag: thw +Description: Thudam +Added: 2009-07-29 +%% +Type: language +Subtag: thx +Description: The +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: oyb +%% +Type: language +Subtag: thy +Description: Tha +Added: 2009-07-29 +%% +Type: language +Subtag: thz +Description: Tayart Tamajeq +Added: 2009-07-29 +Macrolanguage: tmh +%% +Type: language +Subtag: tia +Description: Tidikelt Tamazight +Added: 2009-07-29 +%% +Type: language +Subtag: tic +Description: Tira +Added: 2009-07-29 +%% +Type: language +Subtag: tid +Description: Tidong +Added: 2009-07-29 +Deprecated: 2016-05-30 +Comments: see itd, ntd +%% +Type: language +Subtag: tie +Description: Tingal +Added: 2009-07-29 +Deprecated: 2011-08-16 +Preferred-Value: ras +%% +Type: language +Subtag: tif +Description: Tifal +Added: 2009-07-29 +%% +Type: language +Subtag: tig +Description: Tigre +Added: 2005-10-16 +%% +Type: language +Subtag: tih +Description: Timugon Murut +Added: 2009-07-29 +%% +Type: language +Subtag: tii +Description: Tiene +Added: 2009-07-29 +%% +Type: language +Subtag: tij +Description: Tilung +Added: 2009-07-29 +%% +Type: language +Subtag: tik +Description: Tikar +Added: 2009-07-29 +%% +Type: language +Subtag: til +Description: Tillamook +Added: 2009-07-29 +%% +Type: language +Subtag: tim +Description: Timbe +Added: 2009-07-29 +%% +Type: language +Subtag: tin +Description: Tindi +Added: 2009-07-29 +%% +Type: language +Subtag: tio +Description: Teop +Added: 2009-07-29 +%% +Type: language +Subtag: tip +Description: Trimuris +Added: 2009-07-29 +%% +Type: language +Subtag: tiq +Description: Tiéfo +Added: 2009-07-29 +%% +Type: language +Subtag: tis +Description: Masadiit Itneg +Added: 2009-07-29 +%% +Type: language +Subtag: tit +Description: Tinigua +Added: 2009-07-29 +%% +Type: language +Subtag: tiu +Description: Adasen +Added: 2009-07-29 +%% +Type: language +Subtag: tiv +Description: Tiv +Added: 2005-10-16 +%% +Type: language +Subtag: tiw +Description: Tiwi +Added: 2009-07-29 +%% +Type: language +Subtag: tix +Description: Southern Tiwa +Added: 2009-07-29 +%% +Type: language +Subtag: tiy +Description: Tiruray +Added: 2009-07-29 +%% +Type: language +Subtag: tiz +Description: Tai Hongjin +Added: 2009-07-29 +%% +Type: language +Subtag: tja +Description: Tajuasohn +Added: 2009-07-29 +%% +Type: language +Subtag: tjg +Description: Tunjung +Added: 2009-07-29 +%% +Type: language +Subtag: tji +Description: Northern Tujia +Added: 2009-07-29 +%% +Type: language +Subtag: tjj +Description: Tjungundji +Added: 2019-04-16 +%% +Type: language +Subtag: tjl +Description: Tai Laing +Added: 2012-08-12 +%% +Type: language +Subtag: tjm +Description: Timucua +Added: 2009-07-29 +%% +Type: language +Subtag: tjn +Description: Tonjon +Added: 2009-07-29 +%% +Type: language +Subtag: tjo +Description: Temacine Tamazight +Added: 2009-07-29 +%% +Type: language +Subtag: tjp +Description: Tjupany +Added: 2019-04-16 +%% +Type: language +Subtag: tjs +Description: Southern Tujia +Added: 2009-07-29 +%% +Type: language +Subtag: tju +Description: Tjurruru +Added: 2009-07-29 +%% +Type: language +Subtag: tjw +Description: Djabwurrung +Added: 2013-09-10 +%% +Type: language +Subtag: tka +Description: Truká +Added: 2009-07-29 +%% +Type: language +Subtag: tkb +Description: Buksa +Added: 2009-07-29 +%% +Type: language +Subtag: tkd +Description: Tukudede +Added: 2009-07-29 +%% +Type: language +Subtag: tke +Description: Takwane +Added: 2009-07-29 +%% +Type: language +Subtag: tkf +Description: Tukumanféd +Added: 2009-07-29 +%% +Type: language +Subtag: tkg +Description: Tesaka Malagasy +Added: 2011-08-16 +Macrolanguage: mg +%% +Type: language +Subtag: tkk +Description: Takpa +Added: 2009-07-29 +Deprecated: 2011-08-16 +Preferred-Value: twm +%% +Type: language +Subtag: tkl +Description: Tokelau +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: tkm +Description: Takelma +Added: 2009-07-29 +%% +Type: language +Subtag: tkn +Description: Toku-No-Shima +Added: 2009-07-29 +%% +Type: language +Subtag: tkp +Description: Tikopia +Added: 2009-07-29 +%% +Type: language +Subtag: tkq +Description: Tee +Added: 2009-07-29 +%% +Type: language +Subtag: tkr +Description: Tsakhur +Added: 2009-07-29 +%% +Type: language +Subtag: tks +Description: Takestani +Added: 2009-07-29 +%% +Type: language +Subtag: tkt +Description: Kathoriya Tharu +Added: 2009-07-29 +%% +Type: language +Subtag: tku +Description: Upper Necaxa Totonac +Added: 2009-07-29 +%% +Type: language +Subtag: tkv +Description: Mur Pano +Added: 2014-02-28 +%% +Type: language +Subtag: tkw +Description: Teanu +Added: 2009-07-29 +%% +Type: language +Subtag: tkx +Description: Tangko +Added: 2009-07-29 +%% +Type: language +Subtag: tkz +Description: Takua +Added: 2009-07-29 +%% +Type: language +Subtag: tla +Description: Southwestern Tepehuan +Added: 2009-07-29 +%% +Type: language +Subtag: tlb +Description: Tobelo +Added: 2009-07-29 +%% +Type: language +Subtag: tlc +Description: Yecuatla Totonac +Added: 2009-07-29 +%% +Type: language +Subtag: tld +Description: Talaud +Added: 2009-07-29 +%% +Type: language +Subtag: tlf +Description: Telefol +Added: 2009-07-29 +%% +Type: language +Subtag: tlg +Description: Tofanma +Added: 2009-07-29 +%% +Type: language +Subtag: tlh +Description: Klingon +Description: tlhIngan Hol +Added: 2005-10-16 +%% +Type: language +Subtag: tli +Description: Tlingit +Added: 2005-10-16 +%% +Type: language +Subtag: tlj +Description: Talinga-Bwisi +Added: 2009-07-29 +%% +Type: language +Subtag: tlk +Description: Taloki +Added: 2009-07-29 +%% +Type: language +Subtag: tll +Description: Tetela +Added: 2009-07-29 +%% +Type: language +Subtag: tlm +Description: Tolomako +Added: 2009-07-29 +%% +Type: language +Subtag: tln +Description: Talondo' +Added: 2009-07-29 +%% +Type: language +Subtag: tlo +Description: Talodi +Added: 2009-07-29 +%% +Type: language +Subtag: tlp +Description: Filomena Mata-Coahuitlán Totonac +Added: 2009-07-29 +%% +Type: language +Subtag: tlq +Description: Tai Loi +Added: 2009-07-29 +%% +Type: language +Subtag: tlr +Description: Talise +Added: 2009-07-29 +%% +Type: language +Subtag: tls +Description: Tambotalo +Added: 2009-07-29 +%% +Type: language +Subtag: tlt +Description: Sou Nama +Description: Teluti +Added: 2009-07-29 +%% +Type: language +Subtag: tlu +Description: Tulehu +Added: 2009-07-29 +%% +Type: language +Subtag: tlv +Description: Taliabu +Added: 2009-07-29 +%% +Type: language +Subtag: tlw +Description: South Wemale +Added: 2009-07-29 +Deprecated: 2012-08-12 +Preferred-Value: weo +%% +Type: language +Subtag: tlx +Description: Khehek +Added: 2009-07-29 +%% +Type: language +Subtag: tly +Description: Talysh +Added: 2009-07-29 +%% +Type: language +Subtag: tma +Description: Tama (Chad) +Added: 2009-07-29 +%% +Type: language +Subtag: tmb +Description: Katbol +Description: Avava +Added: 2009-07-29 +%% +Type: language +Subtag: tmc +Description: Tumak +Added: 2009-07-29 +%% +Type: language +Subtag: tmd +Description: Haruai +Added: 2009-07-29 +%% +Type: language +Subtag: tme +Description: Tremembé +Added: 2009-07-29 +%% +Type: language +Subtag: tmf +Description: Toba-Maskoy +Added: 2009-07-29 +%% +Type: language +Subtag: tmg +Description: Ternateño +Added: 2009-07-29 +%% +Type: language +Subtag: tmh +Description: Tamashek +Added: 2005-10-16 +Suppress-Script: Latn +Scope: macrolanguage +%% +Type: language +Subtag: tmi +Description: Tutuba +Added: 2009-07-29 +%% +Type: language +Subtag: tmj +Description: Samarokena +Added: 2009-07-29 +%% +Type: language +Subtag: tmk +Description: Northwestern Tamang +Added: 2009-07-29 +%% +Type: language +Subtag: tml +Description: Tamnim Citak +Added: 2009-07-29 +%% +Type: language +Subtag: tmm +Description: Tai Thanh +Added: 2009-07-29 +%% +Type: language +Subtag: tmn +Description: Taman (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: tmo +Description: Temoq +Added: 2009-07-29 +%% +Type: language +Subtag: tmp +Description: Tai Mène +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: tyj +%% +Type: language +Subtag: tmq +Description: Tumleo +Added: 2009-07-29 +%% +Type: language +Subtag: tmr +Description: Jewish Babylonian Aramaic (ca. 200-1200 CE) +Added: 2009-07-29 +%% +Type: language +Subtag: tms +Description: Tima +Added: 2009-07-29 +%% +Type: language +Subtag: tmt +Description: Tasmate +Added: 2009-07-29 +%% +Type: language +Subtag: tmu +Description: Iau +Added: 2009-07-29 +%% +Type: language +Subtag: tmv +Description: Tembo (Motembo) +Added: 2009-07-29 +%% +Type: language +Subtag: tmw +Description: Temuan +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: tmy +Description: Tami +Added: 2009-07-29 +%% +Type: language +Subtag: tmz +Description: Tamanaku +Added: 2009-07-29 +%% +Type: language +Subtag: tna +Description: Tacana +Added: 2009-07-29 +%% +Type: language +Subtag: tnb +Description: Western Tunebo +Added: 2009-07-29 +%% +Type: language +Subtag: tnc +Description: Tanimuca-Retuarã +Added: 2009-07-29 +%% +Type: language +Subtag: tnd +Description: Angosturas Tunebo +Added: 2009-07-29 +%% +Type: language +Subtag: tne +Description: Tinoc Kallahan +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: kak +%% +Type: language +Subtag: tnf +Description: Tangshewi +Added: 2009-07-29 +Deprecated: 2010-03-11 +Preferred-Value: prs +%% +Type: language +Subtag: tng +Description: Tobanga +Added: 2009-07-29 +%% +Type: language +Subtag: tnh +Description: Maiani +Added: 2009-07-29 +%% +Type: language +Subtag: tni +Description: Tandia +Added: 2009-07-29 +%% +Type: language +Subtag: tnk +Description: Kwamera +Added: 2009-07-29 +%% +Type: language +Subtag: tnl +Description: Lenakel +Added: 2009-07-29 +%% +Type: language +Subtag: tnm +Description: Tabla +Added: 2009-07-29 +%% +Type: language +Subtag: tnn +Description: North Tanna +Added: 2009-07-29 +%% +Type: language +Subtag: tno +Description: Toromono +Added: 2009-07-29 +%% +Type: language +Subtag: tnp +Description: Whitesands +Added: 2009-07-29 +%% +Type: language +Subtag: tnq +Description: Taino +Added: 2009-07-29 +%% +Type: language +Subtag: tnr +Description: Ménik +Added: 2009-07-29 +%% +Type: language +Subtag: tns +Description: Tenis +Added: 2009-07-29 +%% +Type: language +Subtag: tnt +Description: Tontemboan +Added: 2009-07-29 +%% +Type: language +Subtag: tnu +Description: Tay Khang +Added: 2009-07-29 +%% +Type: language +Subtag: tnv +Description: Tangchangya +Added: 2009-07-29 +%% +Type: language +Subtag: tnw +Description: Tonsawang +Added: 2009-07-29 +%% +Type: language +Subtag: tnx +Description: Tanema +Added: 2009-07-29 +%% +Type: language +Subtag: tny +Description: Tongwe +Added: 2009-07-29 +%% +Type: language +Subtag: tnz +Description: Ten'edn +Added: 2009-07-29 +%% +Type: language +Subtag: tob +Description: Toba +Added: 2009-07-29 +%% +Type: language +Subtag: toc +Description: Coyutla Totonac +Added: 2009-07-29 +%% +Type: language +Subtag: tod +Description: Toma +Added: 2009-07-29 +%% +Type: language +Subtag: toe +Description: Tomedes +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: tof +Description: Gizrra +Added: 2009-07-29 +%% +Type: language +Subtag: tog +Description: Tonga (Nyasa) +Added: 2005-10-16 +%% +Type: language +Subtag: toh +Description: Gitonga +Added: 2009-07-29 +%% +Type: language +Subtag: toi +Description: Tonga (Zambia) +Added: 2009-07-29 +%% +Type: language +Subtag: toj +Description: Tojolabal +Added: 2009-07-29 +%% +Type: language +Subtag: tol +Description: Tolowa +Added: 2009-07-29 +%% +Type: language +Subtag: tom +Description: Tombulu +Added: 2009-07-29 +%% +Type: language +Subtag: too +Description: Xicotepec De Juárez Totonac +Added: 2009-07-29 +%% +Type: language +Subtag: top +Description: Papantla Totonac +Added: 2009-07-29 +%% +Type: language +Subtag: toq +Description: Toposa +Added: 2009-07-29 +%% +Type: language +Subtag: tor +Description: Togbo-Vara Banda +Added: 2009-07-29 +%% +Type: language +Subtag: tos +Description: Highland Totonac +Added: 2009-07-29 +%% +Type: language +Subtag: tou +Description: Tho +Added: 2009-07-29 +%% +Type: language +Subtag: tov +Description: Upper Taromi +Added: 2009-07-29 +%% +Type: language +Subtag: tow +Description: Jemez +Added: 2009-07-29 +%% +Type: language +Subtag: tox +Description: Tobian +Added: 2009-07-29 +%% +Type: language +Subtag: toy +Description: Topoiyo +Added: 2009-07-29 +%% +Type: language +Subtag: toz +Description: To +Added: 2009-07-29 +%% +Type: language +Subtag: tpa +Description: Taupota +Added: 2009-07-29 +%% +Type: language +Subtag: tpc +Description: Azoyú Me'phaa +Description: Azoyú Tlapanec +Added: 2009-07-29 +%% +Type: language +Subtag: tpe +Description: Tippera +Added: 2009-07-29 +%% +Type: language +Subtag: tpf +Description: Tarpia +Added: 2009-07-29 +%% +Type: language +Subtag: tpg +Description: Kula +Added: 2009-07-29 +%% +Type: language +Subtag: tpi +Description: Tok Pisin +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: tpj +Description: Tapieté +Added: 2009-07-29 +%% +Type: language +Subtag: tpk +Description: Tupinikin +Added: 2009-07-29 +%% +Type: language +Subtag: tpl +Description: Tlacoapa Me'phaa +Description: Tlacoapa Tlapanec +Added: 2009-07-29 +%% +Type: language +Subtag: tpm +Description: Tampulma +Added: 2009-07-29 +%% +Type: language +Subtag: tpn +Description: Tupinambá +Added: 2009-07-29 +%% +Type: language +Subtag: tpo +Description: Tai Pao +Added: 2009-07-29 +%% +Type: language +Subtag: tpp +Description: Pisaflores Tepehua +Added: 2009-07-29 +%% +Type: language +Subtag: tpq +Description: Tukpa +Added: 2009-07-29 +%% +Type: language +Subtag: tpr +Description: Tuparí +Added: 2009-07-29 +%% +Type: language +Subtag: tpt +Description: Tlachichilco Tepehua +Added: 2009-07-29 +%% +Type: language +Subtag: tpu +Description: Tampuan +Added: 2009-07-29 +%% +Type: language +Subtag: tpv +Description: Tanapag +Added: 2009-07-29 +%% +Type: language +Subtag: tpw +Description: Tupí +Added: 2009-07-29 +%% +Type: language +Subtag: tpx +Description: Acatepec Me'phaa +Description: Acatepec Tlapanec +Added: 2009-07-29 +%% +Type: language +Subtag: tpy +Description: Trumai +Added: 2009-07-29 +%% +Type: language +Subtag: tpz +Description: Tinputz +Added: 2009-07-29 +%% +Type: language +Subtag: tqb +Description: Tembé +Added: 2009-07-29 +%% +Type: language +Subtag: tql +Description: Lehali +Added: 2009-07-29 +%% +Type: language +Subtag: tqm +Description: Turumsa +Added: 2009-07-29 +%% +Type: language +Subtag: tqn +Description: Tenino +Added: 2009-07-29 +%% +Type: language +Subtag: tqo +Description: Toaripi +Added: 2009-07-29 +%% +Type: language +Subtag: tqp +Description: Tomoip +Added: 2009-07-29 +%% +Type: language +Subtag: tqq +Description: Tunni +Added: 2009-07-29 +%% +Type: language +Subtag: tqr +Description: Torona +Added: 2009-07-29 +%% +Type: language +Subtag: tqt +Description: Western Totonac +Added: 2009-07-29 +%% +Type: language +Subtag: tqu +Description: Touo +Added: 2009-07-29 +%% +Type: language +Subtag: tqw +Description: Tonkawa +Added: 2009-07-29 +%% +Type: language +Subtag: tra +Description: Tirahi +Added: 2009-07-29 +%% +Type: language +Subtag: trb +Description: Terebu +Added: 2009-07-29 +%% +Type: language +Subtag: trc +Description: Copala Triqui +Added: 2009-07-29 +%% +Type: language +Subtag: trd +Description: Turi +Added: 2009-07-29 +%% +Type: language +Subtag: tre +Description: East Tarangan +Added: 2009-07-29 +%% +Type: language +Subtag: trf +Description: Trinidadian Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: trg +Description: Lishán Didán +Added: 2009-07-29 +%% +Type: language +Subtag: trh +Description: Turaka +Added: 2009-07-29 +%% +Type: language +Subtag: tri +Description: Trió +Added: 2009-07-29 +%% +Type: language +Subtag: trj +Description: Toram +Added: 2009-07-29 +%% +Type: language +Subtag: trk +Description: Turkic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: trl +Description: Traveller Scottish +Added: 2009-07-29 +%% +Type: language +Subtag: trm +Description: Tregami +Added: 2009-07-29 +%% +Type: language +Subtag: trn +Description: Trinitario +Added: 2009-07-29 +%% +Type: language +Subtag: tro +Description: Tarao Naga +Added: 2009-07-29 +%% +Type: language +Subtag: trp +Description: Kok Borok +Added: 2009-07-29 +%% +Type: language +Subtag: trq +Description: San Martín Itunyoso Triqui +Added: 2009-07-29 +%% +Type: language +Subtag: trr +Description: Taushiro +Added: 2009-07-29 +%% +Type: language +Subtag: trs +Description: Chicahuaxtla Triqui +Added: 2009-07-29 +%% +Type: language +Subtag: trt +Description: Tunggare +Added: 2009-07-29 +%% +Type: language +Subtag: tru +Description: Turoyo +Description: Surayt +Added: 2009-07-29 +%% +Type: language +Subtag: trv +Description: Taroko +Added: 2009-07-29 +%% +Type: language +Subtag: trw +Description: Torwali +Added: 2009-07-29 +%% +Type: language +Subtag: trx +Description: Tringgus-Sembaan Bidayuh +Added: 2009-07-29 +%% +Type: language +Subtag: try +Description: Turung +Added: 2009-07-29 +%% +Type: language +Subtag: trz +Description: Torá +Added: 2009-07-29 +%% +Type: language +Subtag: tsa +Description: Tsaangi +Added: 2009-07-29 +%% +Type: language +Subtag: tsb +Description: Tsamai +Added: 2009-07-29 +%% +Type: language +Subtag: tsc +Description: Tswa +Added: 2009-07-29 +%% +Type: language +Subtag: tsd +Description: Tsakonian +Added: 2009-07-29 +%% +Type: language +Subtag: tse +Description: Tunisian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: tsf +Description: Southwestern Tamang +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: taj +%% +Type: language +Subtag: tsg +Description: Tausug +Added: 2009-07-29 +%% +Type: language +Subtag: tsh +Description: Tsuvan +Added: 2009-07-29 +%% +Type: language +Subtag: tsi +Description: Tsimshian +Added: 2005-10-16 +%% +Type: language +Subtag: tsj +Description: Tshangla +Added: 2009-07-29 +%% +Type: language +Subtag: tsk +Description: Tseku +Added: 2009-07-29 +%% +Type: language +Subtag: tsl +Description: Ts'ün-Lao +Added: 2009-07-29 +%% +Type: language +Subtag: tsm +Description: Turkish Sign Language +Description: Türk İşaret Dili +Added: 2009-07-29 +%% +Type: language +Subtag: tsp +Description: Northern Toussian +Added: 2009-07-29 +%% +Type: language +Subtag: tsq +Description: Thai Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: tsr +Description: Akei +Added: 2009-07-29 +%% +Type: language +Subtag: tss +Description: Taiwan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: tst +Description: Tondi Songway Kiini +Added: 2011-08-16 +%% +Type: language +Subtag: tsu +Description: Tsou +Added: 2009-07-29 +%% +Type: language +Subtag: tsv +Description: Tsogo +Added: 2009-07-29 +%% +Type: language +Subtag: tsw +Description: Tsishingini +Added: 2009-07-29 +%% +Type: language +Subtag: tsx +Description: Mubami +Added: 2009-07-29 +%% +Type: language +Subtag: tsy +Description: Tebul Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: tsz +Description: Purepecha +Added: 2009-07-29 +%% +Type: language +Subtag: tta +Description: Tutelo +Added: 2009-07-29 +%% +Type: language +Subtag: ttb +Description: Gaa +Added: 2009-07-29 +%% +Type: language +Subtag: ttc +Description: Tektiteko +Added: 2009-07-29 +%% +Type: language +Subtag: ttd +Description: Tauade +Added: 2009-07-29 +%% +Type: language +Subtag: tte +Description: Bwanabwana +Added: 2009-07-29 +%% +Type: language +Subtag: ttf +Description: Tuotomb +Added: 2009-07-29 +%% +Type: language +Subtag: ttg +Description: Tutong +Added: 2009-07-29 +%% +Type: language +Subtag: tth +Description: Upper Ta'oih +Added: 2009-07-29 +%% +Type: language +Subtag: tti +Description: Tobati +Added: 2009-07-29 +%% +Type: language +Subtag: ttj +Description: Tooro +Added: 2009-07-29 +%% +Type: language +Subtag: ttk +Description: Totoro +Added: 2009-07-29 +%% +Type: language +Subtag: ttl +Description: Totela +Added: 2009-07-29 +%% +Type: language +Subtag: ttm +Description: Northern Tutchone +Added: 2009-07-29 +%% +Type: language +Subtag: ttn +Description: Towei +Added: 2009-07-29 +%% +Type: language +Subtag: tto +Description: Lower Ta'oih +Added: 2009-07-29 +%% +Type: language +Subtag: ttp +Description: Tombelala +Added: 2009-07-29 +%% +Type: language +Subtag: ttq +Description: Tawallammat Tamajaq +Added: 2009-07-29 +Macrolanguage: tmh +%% +Type: language +Subtag: ttr +Description: Tera +Added: 2009-07-29 +%% +Type: language +Subtag: tts +Description: Northeastern Thai +Added: 2009-07-29 +%% +Type: language +Subtag: ttt +Description: Muslim Tat +Added: 2009-07-29 +%% +Type: language +Subtag: ttu +Description: Torau +Added: 2009-07-29 +%% +Type: language +Subtag: ttv +Description: Titan +Added: 2009-07-29 +%% +Type: language +Subtag: ttw +Description: Long Wat +Added: 2009-07-29 +%% +Type: language +Subtag: tty +Description: Sikaritai +Added: 2009-07-29 +%% +Type: language +Subtag: ttz +Description: Tsum +Added: 2009-07-29 +%% +Type: language +Subtag: tua +Description: Wiarumus +Added: 2009-07-29 +%% +Type: language +Subtag: tub +Description: Tübatulabal +Added: 2009-07-29 +%% +Type: language +Subtag: tuc +Description: Mutu +Added: 2009-07-29 +%% +Type: language +Subtag: tud +Description: Tuxá +Added: 2009-07-29 +%% +Type: language +Subtag: tue +Description: Tuyuca +Added: 2009-07-29 +%% +Type: language +Subtag: tuf +Description: Central Tunebo +Added: 2009-07-29 +%% +Type: language +Subtag: tug +Description: Tunia +Added: 2009-07-29 +%% +Type: language +Subtag: tuh +Description: Taulil +Added: 2009-07-29 +%% +Type: language +Subtag: tui +Description: Tupuri +Added: 2009-07-29 +%% +Type: language +Subtag: tuj +Description: Tugutil +Added: 2009-07-29 +%% +Type: language +Subtag: tul +Description: Tula +Added: 2009-07-29 +%% +Type: language +Subtag: tum +Description: Tumbuka +Added: 2005-10-16 +%% +Type: language +Subtag: tun +Description: Tunica +Added: 2009-07-29 +%% +Type: language +Subtag: tuo +Description: Tucano +Added: 2009-07-29 +%% +Type: language +Subtag: tup +Description: Tupi languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: tuq +Description: Tedaga +Added: 2009-07-29 +%% +Type: language +Subtag: tus +Description: Tuscarora +Added: 2009-07-29 +%% +Type: language +Subtag: tut +Description: Altaic languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: tuu +Description: Tututni +Added: 2009-07-29 +%% +Type: language +Subtag: tuv +Description: Turkana +Added: 2009-07-29 +%% +Type: language +Subtag: tuw +Description: Tungus languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: tux +Description: Tuxináwa +Added: 2009-07-29 +%% +Type: language +Subtag: tuy +Description: Tugen +Added: 2009-07-29 +Macrolanguage: kln +%% +Type: language +Subtag: tuz +Description: Turka +Added: 2009-07-29 +%% +Type: language +Subtag: tva +Description: Vaghua +Added: 2009-07-29 +%% +Type: language +Subtag: tvd +Description: Tsuvadi +Added: 2009-07-29 +%% +Type: language +Subtag: tve +Description: Te'un +Added: 2009-07-29 +%% +Type: language +Subtag: tvk +Description: Southeast Ambrym +Added: 2009-07-29 +%% +Type: language +Subtag: tvl +Description: Tuvalu +Added: 2005-10-16 +Suppress-Script: Latn +%% +Type: language +Subtag: tvm +Description: Tela-Masbuar +Added: 2009-07-29 +%% +Type: language +Subtag: tvn +Description: Tavoyan +Added: 2009-07-29 +%% +Type: language +Subtag: tvo +Description: Tidore +Added: 2009-07-29 +%% +Type: language +Subtag: tvs +Description: Taveta +Added: 2009-07-29 +%% +Type: language +Subtag: tvt +Description: Tutsa Naga +Added: 2009-07-29 +%% +Type: language +Subtag: tvu +Description: Tunen +Added: 2012-08-12 +%% +Type: language +Subtag: tvw +Description: Sedoa +Added: 2009-07-29 +%% +Type: language +Subtag: tvx +Description: Taivoan +Added: 2019-04-16 +%% +Type: language +Subtag: tvy +Description: Timor Pidgin +Added: 2009-07-29 +%% +Type: language +Subtag: twa +Description: Twana +Added: 2009-07-29 +%% +Type: language +Subtag: twb +Description: Western Tawbuid +Added: 2009-07-29 +%% +Type: language +Subtag: twc +Description: Teshenawa +Added: 2009-07-29 +%% +Type: language +Subtag: twd +Description: Twents +Added: 2009-07-29 +%% +Type: language +Subtag: twe +Description: Tewa (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: twf +Description: Northern Tiwa +Added: 2009-07-29 +%% +Type: language +Subtag: twg +Description: Tereweng +Added: 2009-07-29 +%% +Type: language +Subtag: twh +Description: Tai Dón +Added: 2009-07-29 +%% +Type: language +Subtag: twl +Description: Tawara +Added: 2009-07-29 +%% +Type: language +Subtag: twm +Description: Tawang Monpa +Added: 2009-07-29 +%% +Type: language +Subtag: twn +Description: Twendi +Added: 2009-07-29 +%% +Type: language +Subtag: two +Description: Tswapong +Added: 2009-07-29 +%% +Type: language +Subtag: twp +Description: Ere +Added: 2009-07-29 +%% +Type: language +Subtag: twq +Description: Tasawaq +Added: 2009-07-29 +%% +Type: language +Subtag: twr +Description: Southwestern Tarahumara +Added: 2009-07-29 +%% +Type: language +Subtag: twt +Description: Turiwára +Added: 2009-07-29 +%% +Type: language +Subtag: twu +Description: Termanu +Added: 2009-07-29 +%% +Type: language +Subtag: tww +Description: Tuwari +Added: 2009-07-29 +%% +Type: language +Subtag: twx +Description: Tewe +Added: 2009-07-29 +%% +Type: language +Subtag: twy +Description: Tawoyan +Added: 2009-07-29 +%% +Type: language +Subtag: txa +Description: Tombonuo +Added: 2009-07-29 +%% +Type: language +Subtag: txb +Description: Tokharian B +Added: 2009-07-29 +%% +Type: language +Subtag: txc +Description: Tsetsaut +Added: 2009-07-29 +%% +Type: language +Subtag: txe +Description: Totoli +Added: 2009-07-29 +%% +Type: language +Subtag: txg +Description: Tangut +Added: 2009-07-29 +%% +Type: language +Subtag: txh +Description: Thracian +Added: 2009-07-29 +%% +Type: language +Subtag: txi +Description: Ikpeng +Added: 2009-07-29 +%% +Type: language +Subtag: txj +Description: Tarjumo +Added: 2015-02-12 +%% +Type: language +Subtag: txm +Description: Tomini +Added: 2009-07-29 +%% +Type: language +Subtag: txn +Description: West Tarangan +Added: 2009-07-29 +%% +Type: language +Subtag: txo +Description: Toto +Added: 2009-07-29 +%% +Type: language +Subtag: txq +Description: Tii +Added: 2009-07-29 +%% +Type: language +Subtag: txr +Description: Tartessian +Added: 2009-07-29 +%% +Type: language +Subtag: txs +Description: Tonsea +Added: 2009-07-29 +%% +Type: language +Subtag: txt +Description: Citak +Added: 2009-07-29 +%% +Type: language +Subtag: txu +Description: Kayapó +Added: 2009-07-29 +%% +Type: language +Subtag: txx +Description: Tatana +Added: 2009-07-29 +%% +Type: language +Subtag: txy +Description: Tanosy Malagasy +Added: 2009-07-29 +Macrolanguage: mg +%% +Type: language +Subtag: tya +Description: Tauya +Added: 2009-07-29 +%% +Type: language +Subtag: tye +Description: Kyanga +Added: 2009-07-29 +%% +Type: language +Subtag: tyh +Description: O'du +Added: 2009-07-29 +%% +Type: language +Subtag: tyi +Description: Teke-Tsaayi +Added: 2009-07-29 +%% +Type: language +Subtag: tyj +Description: Tai Do +Description: Tai Yo +Added: 2009-07-29 +%% +Type: language +Subtag: tyl +Description: Thu Lao +Added: 2009-07-29 +%% +Type: language +Subtag: tyn +Description: Kombai +Added: 2009-07-29 +%% +Type: language +Subtag: typ +Description: Thaypan +Added: 2009-07-29 +%% +Type: language +Subtag: tyr +Description: Tai Daeng +Added: 2009-07-29 +%% +Type: language +Subtag: tys +Description: Tày Sa Pa +Added: 2009-07-29 +%% +Type: language +Subtag: tyt +Description: Tày Tac +Added: 2009-07-29 +%% +Type: language +Subtag: tyu +Description: Kua +Added: 2009-07-29 +%% +Type: language +Subtag: tyv +Description: Tuvinian +Added: 2005-10-16 +%% +Type: language +Subtag: tyx +Description: Teke-Tyee +Added: 2009-07-29 +%% +Type: language +Subtag: tyz +Description: Tày +Added: 2009-07-29 +%% +Type: language +Subtag: tza +Description: Tanzanian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: tzh +Description: Tzeltal +Added: 2009-07-29 +%% +Type: language +Subtag: tzj +Description: Tz'utujil +Added: 2009-07-29 +%% +Type: language +Subtag: tzl +Description: Talossan +Added: 2013-09-10 +%% +Type: language +Subtag: tzm +Description: Central Atlas Tamazight +Added: 2009-07-29 +%% +Type: language +Subtag: tzn +Description: Tugun +Added: 2009-07-29 +%% +Type: language +Subtag: tzo +Description: Tzotzil +Added: 2009-07-29 +%% +Type: language +Subtag: tzx +Description: Tabriak +Added: 2009-07-29 +%% +Type: language +Subtag: uam +Description: Uamué +Added: 2009-07-29 +%% +Type: language +Subtag: uan +Description: Kuan +Added: 2009-07-29 +%% +Type: language +Subtag: uar +Description: Tairuma +Added: 2009-07-29 +%% +Type: language +Subtag: uba +Description: Ubang +Added: 2009-07-29 +%% +Type: language +Subtag: ubi +Description: Ubi +Added: 2009-07-29 +%% +Type: language +Subtag: ubl +Description: Buhi'non Bikol +Added: 2010-03-11 +Macrolanguage: bik +%% +Type: language +Subtag: ubr +Description: Ubir +Added: 2009-07-29 +%% +Type: language +Subtag: ubu +Description: Umbu-Ungu +Added: 2009-07-29 +%% +Type: language +Subtag: uby +Description: Ubykh +Added: 2009-07-29 +%% +Type: language +Subtag: uda +Description: Uda +Added: 2009-07-29 +%% +Type: language +Subtag: ude +Description: Udihe +Added: 2009-07-29 +%% +Type: language +Subtag: udg +Description: Muduga +Added: 2009-07-29 +%% +Type: language +Subtag: udi +Description: Udi +Added: 2009-07-29 +%% +Type: language +Subtag: udj +Description: Ujir +Added: 2009-07-29 +%% +Type: language +Subtag: udl +Description: Wuzlam +Added: 2009-07-29 +%% +Type: language +Subtag: udm +Description: Udmurt +Added: 2005-10-16 +%% +Type: language +Subtag: udu +Description: Uduk +Added: 2009-07-29 +%% +Type: language +Subtag: ues +Description: Kioko +Added: 2009-07-29 +%% +Type: language +Subtag: ufi +Description: Ufim +Added: 2009-07-29 +%% +Type: language +Subtag: uga +Description: Ugaritic +Added: 2005-10-16 +%% +Type: language +Subtag: ugb +Description: Kuku-Ugbanh +Added: 2009-07-29 +%% +Type: language +Subtag: uge +Description: Ughele +Added: 2009-07-29 +%% +Type: language +Subtag: ugn +Description: Ugandan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: ugo +Description: Ugong +Added: 2009-07-29 +%% +Type: language +Subtag: ugy +Description: Uruguayan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: uha +Description: Uhami +Added: 2009-07-29 +%% +Type: language +Subtag: uhn +Description: Damal +Added: 2009-07-29 +%% +Type: language +Subtag: uis +Description: Uisai +Added: 2009-07-29 +%% +Type: language +Subtag: uiv +Description: Iyive +Added: 2009-07-29 +%% +Type: language +Subtag: uji +Description: Tanjijili +Added: 2009-07-29 +%% +Type: language +Subtag: uka +Description: Kaburi +Added: 2009-07-29 +%% +Type: language +Subtag: ukg +Description: Ukuriguma +Added: 2009-07-29 +%% +Type: language +Subtag: ukh +Description: Ukhwejo +Added: 2009-07-29 +%% +Type: language +Subtag: ukk +Description: Muak Sa-aak +Added: 2017-02-23 +%% +Type: language +Subtag: ukl +Description: Ukrainian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: ukp +Description: Ukpe-Bayobiri +Added: 2009-07-29 +%% +Type: language +Subtag: ukq +Description: Ukwa +Added: 2009-07-29 +%% +Type: language +Subtag: uks +Description: Urubú-Kaapor Sign Language +Description: Kaapor Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: uku +Description: Ukue +Added: 2009-07-29 +%% +Type: language +Subtag: ukw +Description: Ukwuani-Aboh-Ndoni +Added: 2009-07-29 +%% +Type: language +Subtag: uky +Description: Kuuk-Yak +Added: 2012-08-12 +%% +Type: language +Subtag: ula +Description: Fungwa +Added: 2009-07-29 +%% +Type: language +Subtag: ulb +Description: Ulukwumi +Added: 2009-07-29 +%% +Type: language +Subtag: ulc +Description: Ulch +Added: 2009-07-29 +%% +Type: language +Subtag: ule +Description: Lule +Added: 2013-09-10 +%% +Type: language +Subtag: ulf +Description: Usku +Description: Afra +Added: 2009-07-29 +%% +Type: language +Subtag: uli +Description: Ulithian +Added: 2009-07-29 +%% +Type: language +Subtag: ulk +Description: Meriam Mir +Added: 2009-07-29 +%% +Type: language +Subtag: ull +Description: Ullatan +Added: 2009-07-29 +%% +Type: language +Subtag: ulm +Description: Ulumanda' +Added: 2009-07-29 +%% +Type: language +Subtag: uln +Description: Unserdeutsch +Added: 2009-07-29 +%% +Type: language +Subtag: ulu +Description: Uma' Lung +Added: 2009-07-29 +%% +Type: language +Subtag: ulw +Description: Ulwa +Added: 2010-03-11 +%% +Type: language +Subtag: uma +Description: Umatilla +Added: 2009-07-29 +%% +Type: language +Subtag: umb +Description: Umbundu +Added: 2005-10-16 +%% +Type: language +Subtag: umc +Description: Marrucinian +Added: 2009-07-29 +%% +Type: language +Subtag: umd +Description: Umbindhamu +Added: 2009-07-29 +%% +Type: language +Subtag: umg +Description: Morrobalama +Description: Umbuygamu +Added: 2009-07-29 +%% +Type: language +Subtag: umi +Description: Ukit +Added: 2009-07-29 +%% +Type: language +Subtag: umm +Description: Umon +Added: 2009-07-29 +%% +Type: language +Subtag: umn +Description: Makyan Naga +Added: 2009-07-29 +%% +Type: language +Subtag: umo +Description: Umotína +Added: 2009-07-29 +%% +Type: language +Subtag: ump +Description: Umpila +Added: 2009-07-29 +%% +Type: language +Subtag: umr +Description: Umbugarla +Added: 2009-07-29 +%% +Type: language +Subtag: ums +Description: Pendau +Added: 2009-07-29 +%% +Type: language +Subtag: umu +Description: Munsee +Added: 2009-07-29 +Macrolanguage: del +%% +Type: language +Subtag: una +Description: North Watut +Added: 2009-07-29 +%% +Type: language +Subtag: und +Description: Undetermined +Added: 2005-10-16 +Scope: special +%% +Type: language +Subtag: une +Description: Uneme +Added: 2009-07-29 +%% +Type: language +Subtag: ung +Description: Ngarinyin +Added: 2009-07-29 +%% +Type: language +Subtag: unk +Description: Enawené-Nawé +Added: 2009-07-29 +%% +Type: language +Subtag: unm +Description: Unami +Added: 2009-07-29 +Macrolanguage: del +%% +Type: language +Subtag: unn +Description: Kurnai +Added: 2013-09-10 +%% +Type: language +Subtag: unp +Description: Worora +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see wro, xgu +%% +Type: language +Subtag: unr +Description: Mundari +Added: 2009-07-29 +%% +Type: language +Subtag: unu +Description: Unubahe +Added: 2013-09-10 +%% +Type: language +Subtag: unx +Description: Munda +Added: 2009-07-29 +%% +Type: language +Subtag: unz +Description: Unde Kaili +Added: 2009-07-29 +%% +Type: language +Subtag: uok +Description: Uokha +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: ema +%% +Type: language +Subtag: upi +Description: Umeda +Added: 2009-07-29 +%% +Type: language +Subtag: upv +Description: Uripiv-Wala-Rano-Atchin +Added: 2009-07-29 +%% +Type: language +Subtag: ura +Description: Urarina +Added: 2009-07-29 +%% +Type: language +Subtag: urb +Description: Urubú-Kaapor +Description: Kaapor +Added: 2009-07-29 +%% +Type: language +Subtag: urc +Description: Urningangg +Added: 2009-07-29 +%% +Type: language +Subtag: ure +Description: Uru +Added: 2009-07-29 +%% +Type: language +Subtag: urf +Description: Uradhi +Added: 2009-07-29 +%% +Type: language +Subtag: urg +Description: Urigina +Added: 2009-07-29 +%% +Type: language +Subtag: urh +Description: Urhobo +Added: 2009-07-29 +%% +Type: language +Subtag: uri +Description: Urim +Added: 2009-07-29 +%% +Type: language +Subtag: urj +Description: Uralic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: urk +Description: Urak Lawoi' +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: url +Description: Urali +Added: 2009-07-29 +%% +Type: language +Subtag: urm +Description: Urapmin +Added: 2009-07-29 +%% +Type: language +Subtag: urn +Description: Uruangnirin +Added: 2009-07-29 +%% +Type: language +Subtag: uro +Description: Ura (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: urp +Description: Uru-Pa-In +Added: 2009-07-29 +%% +Type: language +Subtag: urr +Description: Lehalurup +Description: Löyöp +Added: 2009-07-29 +%% +Type: language +Subtag: urt +Description: Urat +Added: 2009-07-29 +%% +Type: language +Subtag: uru +Description: Urumi +Added: 2009-07-29 +%% +Type: language +Subtag: urv +Description: Uruava +Added: 2009-07-29 +%% +Type: language +Subtag: urw +Description: Sop +Added: 2009-07-29 +%% +Type: language +Subtag: urx +Description: Urimo +Added: 2009-07-29 +%% +Type: language +Subtag: ury +Description: Orya +Added: 2009-07-29 +%% +Type: language +Subtag: urz +Description: Uru-Eu-Wau-Wau +Added: 2009-07-29 +%% +Type: language +Subtag: usa +Description: Usarufa +Added: 2009-07-29 +%% +Type: language +Subtag: ush +Description: Ushojo +Added: 2009-07-29 +%% +Type: language +Subtag: usi +Description: Usui +Added: 2009-07-29 +%% +Type: language +Subtag: usk +Description: Usaghade +Added: 2009-07-29 +%% +Type: language +Subtag: usp +Description: Uspanteco +Added: 2009-07-29 +%% +Type: language +Subtag: uss +Description: us-Saare +Added: 2019-04-16 +%% +Type: language +Subtag: usu +Description: Uya +Added: 2009-07-29 +%% +Type: language +Subtag: uta +Description: Otank +Added: 2009-07-29 +%% +Type: language +Subtag: ute +Description: Ute-Southern Paiute +Added: 2009-07-29 +%% +Type: language +Subtag: uth +Description: ut-Hun +Added: 2019-04-16 +%% +Type: language +Subtag: utp +Description: Amba (Solomon Islands) +Added: 2009-07-29 +%% +Type: language +Subtag: utr +Description: Etulo +Added: 2009-07-29 +%% +Type: language +Subtag: utu +Description: Utu +Added: 2009-07-29 +%% +Type: language +Subtag: uum +Description: Urum +Added: 2009-07-29 +%% +Type: language +Subtag: uun +Description: Kulon-Pazeh +Added: 2009-07-29 +%% +Type: language +Subtag: uur +Description: Ura (Vanuatu) +Added: 2009-07-29 +%% +Type: language +Subtag: uuu +Description: U +Added: 2009-07-29 +%% +Type: language +Subtag: uve +Description: West Uvean +Description: Fagauvea +Added: 2009-07-29 +%% +Type: language +Subtag: uvh +Description: Uri +Added: 2009-07-29 +%% +Type: language +Subtag: uvl +Description: Lote +Added: 2009-07-29 +%% +Type: language +Subtag: uwa +Description: Kuku-Uwanh +Added: 2009-07-29 +%% +Type: language +Subtag: uya +Description: Doko-Uyanga +Added: 2009-07-29 +%% +Type: language +Subtag: uzn +Description: Northern Uzbek +Added: 2009-07-29 +Macrolanguage: uz +%% +Type: language +Subtag: uzs +Description: Southern Uzbek +Added: 2009-07-29 +Macrolanguage: uz +%% +Type: language +Subtag: vaa +Description: Vaagri Booli +Added: 2009-07-29 +%% +Type: language +Subtag: vae +Description: Vale +Added: 2009-07-29 +%% +Type: language +Subtag: vaf +Description: Vafsi +Added: 2009-07-29 +%% +Type: language +Subtag: vag +Description: Vagla +Added: 2009-07-29 +%% +Type: language +Subtag: vah +Description: Varhadi-Nagpuri +Added: 2009-07-29 +%% +Type: language +Subtag: vai +Description: Vai +Added: 2005-10-16 +%% +Type: language +Subtag: vaj +Description: Sekele +Description: Northwestern ǃKung +Description: Vasekele +Added: 2009-07-29 +%% +Type: language +Subtag: val +Description: Vehes +Added: 2009-07-29 +%% +Type: language +Subtag: vam +Description: Vanimo +Added: 2009-07-29 +%% +Type: language +Subtag: van +Description: Valman +Added: 2009-07-29 +%% +Type: language +Subtag: vao +Description: Vao +Added: 2009-07-29 +%% +Type: language +Subtag: vap +Description: Vaiphei +Added: 2009-07-29 +%% +Type: language +Subtag: var +Description: Huarijio +Added: 2009-07-29 +%% +Type: language +Subtag: vas +Description: Vasavi +Added: 2009-07-29 +%% +Type: language +Subtag: vau +Description: Vanuma +Added: 2009-07-29 +%% +Type: language +Subtag: vav +Description: Varli +Added: 2009-07-29 +%% +Type: language +Subtag: vay +Description: Wayu +Added: 2009-07-29 +%% +Type: language +Subtag: vbb +Description: Southeast Babar +Added: 2009-07-29 +%% +Type: language +Subtag: vbk +Description: Southwestern Bontok +Added: 2010-03-11 +Macrolanguage: bnc +%% +Type: language +Subtag: vec +Description: Venetian +Added: 2009-07-29 +%% +Type: language +Subtag: ved +Description: Veddah +Added: 2009-07-29 +%% +Type: language +Subtag: vel +Description: Veluws +Added: 2009-07-29 +%% +Type: language +Subtag: vem +Description: Vemgo-Mabas +Added: 2009-07-29 +%% +Type: language +Subtag: veo +Description: Ventureño +Added: 2009-07-29 +%% +Type: language +Subtag: vep +Description: Veps +Added: 2009-07-29 +%% +Type: language +Subtag: ver +Description: Mom Jango +Added: 2009-07-29 +%% +Type: language +Subtag: vgr +Description: Vaghri +Added: 2009-07-29 +%% +Type: language +Subtag: vgt +Description: Vlaamse Gebarentaal +Description: Flemish Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: vic +Description: Virgin Islands Creole English +Added: 2009-07-29 +%% +Type: language +Subtag: vid +Description: Vidunda +Added: 2009-07-29 +%% +Type: language +Subtag: vif +Description: Vili +Added: 2009-07-29 +%% +Type: language +Subtag: vig +Description: Viemo +Added: 2009-07-29 +%% +Type: language +Subtag: vil +Description: Vilela +Added: 2009-07-29 +%% +Type: language +Subtag: vin +Description: Vinza +Added: 2009-07-29 +%% +Type: language +Subtag: vis +Description: Vishavan +Added: 2009-07-29 +%% +Type: language +Subtag: vit +Description: Viti +Added: 2009-07-29 +%% +Type: language +Subtag: viv +Description: Iduna +Added: 2009-07-29 +%% +Type: language +Subtag: vka +Description: Kariyarra +Added: 2009-07-29 +%% +Type: language +Subtag: vki +Description: Ija-Zuba +Added: 2009-07-29 +%% +Type: language +Subtag: vkj +Description: Kujarge +Added: 2009-07-29 +%% +Type: language +Subtag: vkk +Description: Kaur +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: vkl +Description: Kulisusu +Added: 2009-07-29 +%% +Type: language +Subtag: vkm +Description: Kamakan +Added: 2009-07-29 +%% +Type: language +Subtag: vko +Description: Kodeoha +Added: 2009-07-29 +%% +Type: language +Subtag: vkp +Description: Korlai Creole Portuguese +Added: 2009-07-29 +%% +Type: language +Subtag: vkt +Description: Tenggarong Kutai Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: vku +Description: Kurrama +Added: 2009-07-29 +%% +Type: language +Subtag: vlp +Description: Valpei +Added: 2009-07-29 +%% +Type: language +Subtag: vls +Description: Vlaams +Added: 2009-07-29 +%% +Type: language +Subtag: vma +Description: Martuyhunira +Added: 2009-07-29 +%% +Type: language +Subtag: vmb +Description: Barbaram +Added: 2009-07-29 +%% +Type: language +Subtag: vmc +Description: Juxtlahuaca Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: vmd +Description: Mudu Koraga +Added: 2009-07-29 +%% +Type: language +Subtag: vme +Description: East Masela +Added: 2009-07-29 +%% +Type: language +Subtag: vmf +Description: Mainfränkisch +Added: 2009-07-29 +%% +Type: language +Subtag: vmg +Description: Lungalunga +Added: 2009-07-29 +Comments: see also bxf +%% +Type: language +Subtag: vmh +Description: Maraghei +Added: 2009-07-29 +%% +Type: language +Subtag: vmi +Description: Miwa +Added: 2009-07-29 +%% +Type: language +Subtag: vmj +Description: Ixtayutla Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: vmk +Description: Makhuwa-Shirima +Added: 2009-07-29 +%% +Type: language +Subtag: vml +Description: Malgana +Added: 2009-07-29 +%% +Type: language +Subtag: vmm +Description: Mitlatongo Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: vmp +Description: Soyaltepec Mazatec +Added: 2009-07-29 +%% +Type: language +Subtag: vmq +Description: Soyaltepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: vmr +Description: Marenje +Added: 2009-07-29 +%% +Type: language +Subtag: vms +Description: Moksela +Added: 2009-07-29 +%% +Type: language +Subtag: vmu +Description: Muluridyi +Added: 2009-07-29 +%% +Type: language +Subtag: vmv +Description: Valley Maidu +Added: 2009-07-29 +%% +Type: language +Subtag: vmw +Description: Makhuwa +Added: 2009-07-29 +%% +Type: language +Subtag: vmx +Description: Tamazola Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: vmy +Description: Ayautla Mazatec +Added: 2009-07-29 +%% +Type: language +Subtag: vmz +Description: Mazatlán Mazatec +Added: 2009-07-29 +%% +Type: language +Subtag: vnk +Description: Vano +Description: Lovono +Added: 2009-07-29 +%% +Type: language +Subtag: vnm +Description: Vinmavis +Description: Neve'ei +Added: 2009-07-29 +%% +Type: language +Subtag: vnp +Description: Vunapu +Added: 2009-07-29 +%% +Type: language +Subtag: vor +Description: Voro +Added: 2009-07-29 +%% +Type: language +Subtag: vot +Description: Votic +Added: 2005-10-16 +%% +Type: language +Subtag: vra +Description: Vera'a +Added: 2009-07-29 +%% +Type: language +Subtag: vro +Description: Võro +Added: 2009-07-29 +Macrolanguage: et +%% +Type: language +Subtag: vrs +Description: Varisi +Added: 2009-07-29 +%% +Type: language +Subtag: vrt +Description: Burmbar +Description: Banam Bay +Added: 2009-07-29 +%% +Type: language +Subtag: vsi +Description: Moldova Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: vsl +Description: Venezuelan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: vsv +Description: Valencian Sign Language +Description: Llengua de signes valenciana +Added: 2009-07-29 +%% +Type: language +Subtag: vto +Description: Vitou +Added: 2009-07-29 +%% +Type: language +Subtag: vum +Description: Vumbu +Added: 2009-07-29 +%% +Type: language +Subtag: vun +Description: Vunjo +Added: 2009-07-29 +%% +Type: language +Subtag: vut +Description: Vute +Added: 2009-07-29 +%% +Type: language +Subtag: vwa +Description: Awa (China) +Added: 2009-07-29 +%% +Type: language +Subtag: waa +Description: Walla Walla +Added: 2009-07-29 +%% +Type: language +Subtag: wab +Description: Wab +Added: 2009-07-29 +%% +Type: language +Subtag: wac +Description: Wasco-Wishram +Added: 2009-07-29 +%% +Type: language +Subtag: wad +Description: Wandamen +Added: 2009-07-29 +%% +Type: language +Subtag: wae +Description: Walser +Added: 2009-07-29 +%% +Type: language +Subtag: waf +Description: Wakoná +Added: 2009-07-29 +%% +Type: language +Subtag: wag +Description: Wa'ema +Added: 2009-07-29 +%% +Type: language +Subtag: wah +Description: Watubela +Added: 2009-07-29 +%% +Type: language +Subtag: wai +Description: Wares +Added: 2009-07-29 +%% +Type: language +Subtag: waj +Description: Waffa +Added: 2009-07-29 +%% +Type: language +Subtag: wak +Description: Wakashan languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: wal +Description: Wolaytta +Description: Wolaitta +Added: 2005-10-16 +%% +Type: language +Subtag: wam +Description: Wampanoag +Added: 2009-07-29 +%% +Type: language +Subtag: wan +Description: Wan +Added: 2009-07-29 +%% +Type: language +Subtag: wao +Description: Wappo +Added: 2009-07-29 +%% +Type: language +Subtag: wap +Description: Wapishana +Added: 2009-07-29 +%% +Type: language +Subtag: waq +Description: Wagiman +Added: 2009-07-29 +%% +Type: language +Subtag: war +Description: Waray (Philippines) +Added: 2005-10-16 +%% +Type: language +Subtag: was +Description: Washo +Added: 2005-10-16 +%% +Type: language +Subtag: wat +Description: Kaninuwa +Added: 2009-07-29 +%% +Type: language +Subtag: wau +Description: Waurá +Added: 2009-07-29 +%% +Type: language +Subtag: wav +Description: Waka +Added: 2009-07-29 +%% +Type: language +Subtag: waw +Description: Waiwai +Added: 2009-07-29 +%% +Type: language +Subtag: wax +Description: Watam +Description: Marangis +Added: 2009-07-29 +%% +Type: language +Subtag: way +Description: Wayana +Added: 2009-07-29 +%% +Type: language +Subtag: waz +Description: Wampur +Added: 2009-07-29 +%% +Type: language +Subtag: wba +Description: Warao +Added: 2009-07-29 +%% +Type: language +Subtag: wbb +Description: Wabo +Added: 2009-07-29 +%% +Type: language +Subtag: wbe +Description: Waritai +Added: 2009-07-29 +%% +Type: language +Subtag: wbf +Description: Wara +Added: 2009-07-29 +Comments: see also pnl +%% +Type: language +Subtag: wbh +Description: Wanda +Added: 2009-07-29 +%% +Type: language +Subtag: wbi +Description: Vwanji +Added: 2009-07-29 +%% +Type: language +Subtag: wbj +Description: Alagwa +Added: 2009-07-29 +%% +Type: language +Subtag: wbk +Description: Waigali +Added: 2009-07-29 +%% +Type: language +Subtag: wbl +Description: Wakhi +Added: 2009-07-29 +%% +Type: language +Subtag: wbm +Description: Wa +Added: 2009-07-29 +%% +Type: language +Subtag: wbp +Description: Warlpiri +Added: 2009-07-29 +%% +Type: language +Subtag: wbq +Description: Waddar +Added: 2009-07-29 +%% +Type: language +Subtag: wbr +Description: Wagdi +Added: 2009-07-29 +Macrolanguage: raj +%% +Type: language +Subtag: wbs +Description: West Bengal Sign Language +Added: 2017-02-23 +%% +Type: language +Subtag: wbt +Description: Warnman +Added: 2009-07-29 +%% +Type: language +Subtag: wbv +Description: Wajarri +Added: 2009-07-29 +%% +Type: language +Subtag: wbw +Description: Woi +Added: 2009-07-29 +%% +Type: language +Subtag: wca +Description: Yanomámi +Added: 2009-07-29 +%% +Type: language +Subtag: wci +Description: Waci Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: wdd +Description: Wandji +Added: 2009-07-29 +%% +Type: language +Subtag: wdg +Description: Wadaginam +Added: 2009-07-29 +%% +Type: language +Subtag: wdj +Description: Wadjiginy +Added: 2009-07-29 +%% +Type: language +Subtag: wdk +Description: Wadikali +Added: 2013-09-10 +%% +Type: language +Subtag: wdu +Description: Wadjigu +Added: 2009-07-29 +%% +Type: language +Subtag: wdy +Description: Wadjabangayi +Added: 2013-09-10 +%% +Type: language +Subtag: wea +Description: Wewaw +Added: 2009-07-29 +%% +Type: language +Subtag: wec +Description: Wè Western +Added: 2009-07-29 +%% +Type: language +Subtag: wed +Description: Wedau +Added: 2009-07-29 +%% +Type: language +Subtag: weg +Description: Wergaia +Added: 2013-09-10 +%% +Type: language +Subtag: weh +Description: Weh +Added: 2009-07-29 +%% +Type: language +Subtag: wei +Description: Kiunum +Added: 2009-07-29 +%% +Type: language +Subtag: wem +Description: Weme Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: wen +Description: Sorbian languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: weo +Description: Wemale +Added: 2009-07-29 +%% +Type: language +Subtag: wep +Description: Westphalien +Added: 2009-07-29 +%% +Type: language +Subtag: wer +Description: Weri +Added: 2009-07-29 +%% +Type: language +Subtag: wes +Description: Cameroon Pidgin +Added: 2009-07-29 +%% +Type: language +Subtag: wet +Description: Perai +Added: 2009-07-29 +%% +Type: language +Subtag: weu +Description: Rawngtu Chin +Added: 2009-07-29 +%% +Type: language +Subtag: wew +Description: Wejewa +Added: 2009-07-29 +%% +Type: language +Subtag: wfg +Description: Yafi +Description: Zorop +Added: 2009-07-29 +%% +Type: language +Subtag: wga +Description: Wagaya +Added: 2009-07-29 +%% +Type: language +Subtag: wgb +Description: Wagawaga +Added: 2010-03-11 +%% +Type: language +Subtag: wgg +Description: Wangkangurru +Description: Wangganguru +Added: 2009-07-29 +%% +Type: language +Subtag: wgi +Description: Wahgi +Added: 2009-07-29 +%% +Type: language +Subtag: wgo +Description: Waigeo +Added: 2009-07-29 +%% +Type: language +Subtag: wgu +Description: Wirangu +Added: 2012-08-12 +%% +Type: language +Subtag: wgw +Description: Wagawaga +Added: 2009-07-29 +Deprecated: 2010-03-11 +Comments: see wgb, ylb +%% +Type: language +Subtag: wgy +Description: Warrgamay +Added: 2009-07-29 +%% +Type: language +Subtag: wha +Description: Sou Upaa +Description: Manusela +Added: 2009-07-29 +%% +Type: language +Subtag: whg +Description: North Wahgi +Added: 2009-07-29 +%% +Type: language +Subtag: whk +Description: Wahau Kenyah +Added: 2009-07-29 +%% +Type: language +Subtag: whu +Description: Wahau Kayan +Added: 2009-07-29 +%% +Type: language +Subtag: wib +Description: Southern Toussian +Added: 2009-07-29 +%% +Type: language +Subtag: wic +Description: Wichita +Added: 2009-07-29 +%% +Type: language +Subtag: wie +Description: Wik-Epa +Added: 2009-07-29 +%% +Type: language +Subtag: wif +Description: Wik-Keyangan +Added: 2009-07-29 +%% +Type: language +Subtag: wig +Description: Wik Ngathan +Added: 2009-07-29 +%% +Type: language +Subtag: wih +Description: Wik-Me'anha +Added: 2009-07-29 +%% +Type: language +Subtag: wii +Description: Minidien +Added: 2009-07-29 +%% +Type: language +Subtag: wij +Description: Wik-Iiyanh +Added: 2009-07-29 +%% +Type: language +Subtag: wik +Description: Wikalkan +Added: 2009-07-29 +%% +Type: language +Subtag: wil +Description: Wilawila +Added: 2009-07-29 +%% +Type: language +Subtag: wim +Description: Wik-Mungkan +Added: 2009-07-29 +%% +Type: language +Subtag: win +Description: Ho-Chunk +Added: 2009-07-29 +%% +Type: language +Subtag: wir +Description: Wiraféd +Added: 2009-07-29 +%% +Type: language +Subtag: wit +Description: Wintu +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see nol, pwi, wnw +%% +Type: language +Subtag: wiu +Description: Wiru +Added: 2009-07-29 +%% +Type: language +Subtag: wiv +Description: Vitu +Added: 2009-07-29 +%% +Type: language +Subtag: wiw +Description: Wirangu +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see nwo, wgu +%% +Type: language +Subtag: wiy +Description: Wiyot +Added: 2009-07-29 +%% +Type: language +Subtag: wja +Description: Waja +Added: 2009-07-29 +%% +Type: language +Subtag: wji +Description: Warji +Added: 2009-07-29 +%% +Type: language +Subtag: wka +Description: Kw'adza +Added: 2009-07-29 +%% +Type: language +Subtag: wkb +Description: Kumbaran +Added: 2009-07-29 +%% +Type: language +Subtag: wkd +Description: Wakde +Description: Mo +Added: 2009-07-29 +%% +Type: language +Subtag: wkl +Description: Kalanadi +Added: 2009-07-29 +%% +Type: language +Subtag: wkr +Description: Keerray-Woorroong +Added: 2019-04-16 +%% +Type: language +Subtag: wku +Description: Kunduvadi +Added: 2009-07-29 +%% +Type: language +Subtag: wkw +Description: Wakawaka +Added: 2009-07-29 +%% +Type: language +Subtag: wky +Description: Wangkayutyuru +Added: 2013-09-10 +%% +Type: language +Subtag: wla +Description: Walio +Added: 2009-07-29 +%% +Type: language +Subtag: wlc +Description: Mwali Comorian +Added: 2009-07-29 +%% +Type: language +Subtag: wle +Description: Wolane +Added: 2009-07-29 +%% +Type: language +Subtag: wlg +Description: Kunbarlang +Added: 2009-07-29 +%% +Type: language +Subtag: wli +Description: Waioli +Added: 2009-07-29 +%% +Type: language +Subtag: wlk +Description: Wailaki +Added: 2009-07-29 +%% +Type: language +Subtag: wll +Description: Wali (Sudan) +Added: 2009-07-29 +%% +Type: language +Subtag: wlm +Description: Middle Welsh +Added: 2009-07-29 +%% +Type: language +Subtag: wlo +Description: Wolio +Added: 2009-07-29 +%% +Type: language +Subtag: wlr +Description: Wailapa +Added: 2009-07-29 +%% +Type: language +Subtag: wls +Description: Wallisian +Added: 2009-07-29 +%% +Type: language +Subtag: wlu +Description: Wuliwuli +Added: 2009-07-29 +%% +Type: language +Subtag: wlv +Description: Wichí Lhamtés Vejoz +Added: 2009-07-29 +%% +Type: language +Subtag: wlw +Description: Walak +Added: 2009-07-29 +%% +Type: language +Subtag: wlx +Description: Wali (Ghana) +Added: 2009-07-29 +%% +Type: language +Subtag: wly +Description: Waling +Added: 2009-07-29 +%% +Type: language +Subtag: wma +Description: Mawa (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: wmb +Description: Wambaya +Added: 2009-07-29 +%% +Type: language +Subtag: wmc +Description: Wamas +Added: 2009-07-29 +%% +Type: language +Subtag: wmd +Description: Mamaindé +Added: 2009-07-29 +%% +Type: language +Subtag: wme +Description: Wambule +Added: 2009-07-29 +%% +Type: language +Subtag: wmh +Description: Waima'a +Added: 2009-07-29 +%% +Type: language +Subtag: wmi +Description: Wamin +Added: 2009-07-29 +%% +Type: language +Subtag: wmm +Description: Maiwa (Indonesia) +Added: 2009-07-29 +%% +Type: language +Subtag: wmn +Description: Waamwang +Added: 2009-07-29 +%% +Type: language +Subtag: wmo +Description: Wom (Papua New Guinea) +Added: 2009-07-29 +%% +Type: language +Subtag: wms +Description: Wambon +Added: 2009-07-29 +%% +Type: language +Subtag: wmt +Description: Walmajarri +Added: 2009-07-29 +%% +Type: language +Subtag: wmw +Description: Mwani +Added: 2009-07-29 +%% +Type: language +Subtag: wmx +Description: Womo +Added: 2009-07-29 +%% +Type: language +Subtag: wnb +Description: Wanambre +Added: 2009-07-29 +%% +Type: language +Subtag: wnc +Description: Wantoat +Added: 2009-07-29 +%% +Type: language +Subtag: wnd +Description: Wandarang +Added: 2009-07-29 +%% +Type: language +Subtag: wne +Description: Waneci +Added: 2009-07-29 +%% +Type: language +Subtag: wng +Description: Wanggom +Added: 2009-07-29 +%% +Type: language +Subtag: wni +Description: Ndzwani Comorian +Added: 2009-07-29 +%% +Type: language +Subtag: wnk +Description: Wanukaka +Added: 2009-07-29 +%% +Type: language +Subtag: wnm +Description: Wanggamala +Added: 2009-07-29 +%% +Type: language +Subtag: wnn +Description: Wunumara +Added: 2013-09-10 +%% +Type: language +Subtag: wno +Description: Wano +Added: 2009-07-29 +%% +Type: language +Subtag: wnp +Description: Wanap +Added: 2009-07-29 +%% +Type: language +Subtag: wnu +Description: Usan +Added: 2009-07-29 +%% +Type: language +Subtag: wnw +Description: Wintu +Added: 2013-09-10 +%% +Type: language +Subtag: wny +Description: Wanyi +Description: Waanyi +Added: 2012-08-12 +%% +Type: language +Subtag: woa +Description: Kuwema +Description: Tyaraity +Added: 2009-07-29 +%% +Type: language +Subtag: wob +Description: Wè Northern +Added: 2009-07-29 +%% +Type: language +Subtag: woc +Description: Wogeo +Added: 2009-07-29 +%% +Type: language +Subtag: wod +Description: Wolani +Added: 2009-07-29 +%% +Type: language +Subtag: woe +Description: Woleaian +Added: 2009-07-29 +%% +Type: language +Subtag: wof +Description: Gambian Wolof +Added: 2009-07-29 +%% +Type: language +Subtag: wog +Description: Wogamusin +Added: 2009-07-29 +%% +Type: language +Subtag: woi +Description: Kamang +Added: 2009-07-29 +%% +Type: language +Subtag: wok +Description: Longto +Added: 2009-07-29 +%% +Type: language +Subtag: wom +Description: Wom (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: won +Description: Wongo +Added: 2009-07-29 +%% +Type: language +Subtag: woo +Description: Manombai +Added: 2009-07-29 +%% +Type: language +Subtag: wor +Description: Woria +Added: 2009-07-29 +%% +Type: language +Subtag: wos +Description: Hanga Hundi +Added: 2009-07-29 +%% +Type: language +Subtag: wow +Description: Wawonii +Added: 2009-07-29 +%% +Type: language +Subtag: woy +Description: Weyto +Added: 2009-07-29 +%% +Type: language +Subtag: wpc +Description: Maco +Added: 2009-07-29 +%% +Type: language +Subtag: wra +Description: Warapu +Added: 2009-07-29 +%% +Type: language +Subtag: wrb +Description: Waluwarra +Description: Warluwara +Added: 2009-07-29 +%% +Type: language +Subtag: wrd +Description: Warduji +Added: 2009-07-29 +%% +Type: language +Subtag: wrg +Description: Warungu +Description: Gudjal +Added: 2009-07-29 +%% +Type: language +Subtag: wrh +Description: Wiradjuri +Added: 2009-07-29 +%% +Type: language +Subtag: wri +Description: Wariyangga +Added: 2009-07-29 +%% +Type: language +Subtag: wrk +Description: Garrwa +Added: 2012-08-12 +%% +Type: language +Subtag: wrl +Description: Warlmanpa +Added: 2009-07-29 +%% +Type: language +Subtag: wrm +Description: Warumungu +Added: 2009-07-29 +%% +Type: language +Subtag: wrn +Description: Warnang +Added: 2009-07-29 +%% +Type: language +Subtag: wro +Description: Worrorra +Added: 2012-08-12 +%% +Type: language +Subtag: wrp +Description: Waropen +Added: 2009-07-29 +%% +Type: language +Subtag: wrr +Description: Wardaman +Added: 2009-07-29 +%% +Type: language +Subtag: wrs +Description: Waris +Added: 2009-07-29 +%% +Type: language +Subtag: wru +Description: Waru +Added: 2009-07-29 +%% +Type: language +Subtag: wrv +Description: Waruna +Added: 2009-07-29 +%% +Type: language +Subtag: wrw +Description: Gugu Warra +Added: 2009-07-29 +%% +Type: language +Subtag: wrx +Description: Wae Rana +Added: 2009-07-29 +%% +Type: language +Subtag: wry +Description: Merwari +Added: 2009-07-29 +Macrolanguage: mwr +%% +Type: language +Subtag: wrz +Description: Waray (Australia) +Added: 2009-07-29 +%% +Type: language +Subtag: wsa +Description: Warembori +Added: 2009-07-29 +%% +Type: language +Subtag: wsg +Description: Adilabad Gondi +Added: 2016-05-30 +Macrolanguage: gon +%% +Type: language +Subtag: wsi +Description: Wusi +Added: 2009-07-29 +%% +Type: language +Subtag: wsk +Description: Waskia +Added: 2009-07-29 +%% +Type: language +Subtag: wsr +Description: Owenia +Added: 2009-07-29 +%% +Type: language +Subtag: wss +Description: Wasa +Added: 2009-07-29 +%% +Type: language +Subtag: wsu +Description: Wasu +Added: 2009-07-29 +%% +Type: language +Subtag: wsv +Description: Wotapuri-Katarqalai +Added: 2009-07-29 +%% +Type: language +Subtag: wtf +Description: Watiwa +Added: 2009-07-29 +%% +Type: language +Subtag: wth +Description: Wathawurrung +Added: 2013-09-10 +%% +Type: language +Subtag: wti +Description: Berta +Added: 2009-07-29 +%% +Type: language +Subtag: wtk +Description: Watakataui +Added: 2009-07-29 +%% +Type: language +Subtag: wtm +Description: Mewati +Added: 2009-07-29 +%% +Type: language +Subtag: wtw +Description: Wotu +Added: 2009-07-29 +%% +Type: language +Subtag: wua +Description: Wikngenchera +Added: 2009-07-29 +%% +Type: language +Subtag: wub +Description: Wunambal +Added: 2009-07-29 +%% +Type: language +Subtag: wud +Description: Wudu +Added: 2009-07-29 +%% +Type: language +Subtag: wuh +Description: Wutunhua +Added: 2009-07-29 +%% +Type: language +Subtag: wul +Description: Silimo +Added: 2009-07-29 +%% +Type: language +Subtag: wum +Description: Wumbvu +Added: 2009-07-29 +%% +Type: language +Subtag: wun +Description: Bungu +Added: 2009-07-29 +%% +Type: language +Subtag: wur +Description: Wurrugu +Added: 2009-07-29 +%% +Type: language +Subtag: wut +Description: Wutung +Added: 2009-07-29 +%% +Type: language +Subtag: wuu +Description: Wu Chinese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: wuv +Description: Wuvulu-Aua +Added: 2009-07-29 +%% +Type: language +Subtag: wux +Description: Wulna +Added: 2009-07-29 +%% +Type: language +Subtag: wuy +Description: Wauyai +Added: 2009-07-29 +%% +Type: language +Subtag: wwa +Description: Waama +Added: 2009-07-29 +%% +Type: language +Subtag: wwb +Description: Wakabunga +Added: 2012-08-12 +%% +Type: language +Subtag: wwo +Description: Wetamut +Description: Dorig +Added: 2009-07-29 +%% +Type: language +Subtag: wwr +Description: Warrwa +Added: 2009-07-29 +%% +Type: language +Subtag: www +Description: Wawa +Added: 2009-07-29 +%% +Type: language +Subtag: wxa +Description: Waxianghua +Added: 2009-07-29 +%% +Type: language +Subtag: wxw +Description: Wardandi +Added: 2013-09-10 +%% +Type: language +Subtag: wya +Description: Wyandot +Added: 2009-07-29 +%% +Type: language +Subtag: wyb +Description: Wangaaybuwan-Ngiyambaa +Added: 2009-07-29 +%% +Type: language +Subtag: wyi +Description: Woiwurrung +Added: 2013-09-10 +%% +Type: language +Subtag: wym +Description: Wymysorys +Added: 2009-07-29 +%% +Type: language +Subtag: wyr +Description: Wayoró +Added: 2009-07-29 +%% +Type: language +Subtag: wyy +Description: Western Fijian +Added: 2009-07-29 +%% +Type: language +Subtag: xaa +Description: Andalusian Arabic +Added: 2009-07-29 +%% +Type: language +Subtag: xab +Description: Sambe +Added: 2009-07-29 +%% +Type: language +Subtag: xac +Description: Kachari +Added: 2009-07-29 +%% +Type: language +Subtag: xad +Description: Adai +Added: 2009-07-29 +%% +Type: language +Subtag: xae +Description: Aequian +Added: 2009-07-29 +%% +Type: language +Subtag: xag +Description: Aghwan +Added: 2009-07-29 +%% +Type: language +Subtag: xai +Description: Kaimbé +Added: 2009-07-29 +%% +Type: language +Subtag: xaj +Description: Ararandewára +Added: 2014-02-28 +%% +Type: language +Subtag: xak +Description: Máku +Added: 2016-05-30 +%% +Type: language +Subtag: xal +Description: Kalmyk +Description: Oirat +Added: 2005-10-16 +%% +Type: language +Subtag: xam +Description: ǀXam +Added: 2009-07-29 +%% +Type: language +Subtag: xan +Description: Xamtanga +Added: 2009-07-29 +%% +Type: language +Subtag: xao +Description: Khao +Added: 2009-07-29 +%% +Type: language +Subtag: xap +Description: Apalachee +Added: 2009-07-29 +%% +Type: language +Subtag: xaq +Description: Aquitanian +Added: 2009-07-29 +%% +Type: language +Subtag: xar +Description: Karami +Added: 2009-07-29 +%% +Type: language +Subtag: xas +Description: Kamas +Added: 2009-07-29 +%% +Type: language +Subtag: xat +Description: Katawixi +Added: 2009-07-29 +%% +Type: language +Subtag: xau +Description: Kauwera +Added: 2009-07-29 +%% +Type: language +Subtag: xav +Description: Xavánte +Added: 2009-07-29 +%% +Type: language +Subtag: xaw +Description: Kawaiisu +Added: 2009-07-29 +%% +Type: language +Subtag: xay +Description: Kayan Mahakam +Added: 2009-07-29 +%% +Type: language +Subtag: xba +Description: Kamba (Brazil) +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: cax +%% +Type: language +Subtag: xbb +Description: Lower Burdekin +Added: 2010-03-11 +%% +Type: language +Subtag: xbc +Description: Bactrian +Added: 2009-07-29 +%% +Type: language +Subtag: xbd +Description: Bindal +Added: 2013-09-10 +%% +Type: language +Subtag: xbe +Description: Bigambal +Added: 2013-09-10 +%% +Type: language +Subtag: xbg +Description: Bunganditj +Added: 2013-09-10 +%% +Type: language +Subtag: xbi +Description: Kombio +Added: 2009-07-29 +%% +Type: language +Subtag: xbj +Description: Birrpayi +Added: 2013-09-10 +%% +Type: language +Subtag: xbm +Description: Middle Breton +Added: 2009-07-29 +%% +Type: language +Subtag: xbn +Description: Kenaboi +Added: 2010-03-11 +%% +Type: language +Subtag: xbo +Description: Bolgarian +Added: 2009-07-29 +%% +Type: language +Subtag: xbp +Description: Bibbulman +Added: 2013-09-10 +%% +Type: language +Subtag: xbr +Description: Kambera +Added: 2009-07-29 +%% +Type: language +Subtag: xbw +Description: Kambiwá +Added: 2009-07-29 +%% +Type: language +Subtag: xbx +Description: Kabixí +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: xby +Description: Batjala +Description: Batyala +Added: 2013-09-10 +%% +Type: language +Subtag: xcb +Description: Cumbric +Added: 2009-07-29 +%% +Type: language +Subtag: xcc +Description: Camunic +Added: 2009-07-29 +%% +Type: language +Subtag: xce +Description: Celtiberian +Added: 2009-07-29 +%% +Type: language +Subtag: xcg +Description: Cisalpine Gaulish +Added: 2009-07-29 +%% +Type: language +Subtag: xch +Description: Chemakum +Description: Chimakum +Added: 2009-07-29 +%% +Type: language +Subtag: xcl +Description: Classical Armenian +Added: 2009-07-29 +%% +Type: language +Subtag: xcm +Description: Comecrudo +Added: 2009-07-29 +%% +Type: language +Subtag: xcn +Description: Cotoname +Added: 2009-07-29 +%% +Type: language +Subtag: xco +Description: Chorasmian +Added: 2009-07-29 +%% +Type: language +Subtag: xcr +Description: Carian +Added: 2009-07-29 +%% +Type: language +Subtag: xct +Description: Classical Tibetan +Added: 2009-07-29 +%% +Type: language +Subtag: xcu +Description: Curonian +Added: 2009-07-29 +%% +Type: language +Subtag: xcv +Description: Chuvantsy +Added: 2009-07-29 +%% +Type: language +Subtag: xcw +Description: Coahuilteco +Added: 2009-07-29 +%% +Type: language +Subtag: xcy +Description: Cayuse +Added: 2009-07-29 +%% +Type: language +Subtag: xda +Description: Darkinyung +Added: 2013-09-10 +%% +Type: language +Subtag: xdc +Description: Dacian +Added: 2009-07-29 +%% +Type: language +Subtag: xdk +Description: Dharuk +Added: 2013-09-10 +%% +Type: language +Subtag: xdm +Description: Edomite +Added: 2009-07-29 +%% +Type: language +Subtag: xdo +Description: Kwandu +Added: 2017-02-23 +%% +Type: language +Subtag: xdy +Description: Malayic Dayak +Added: 2009-07-29 +%% +Type: language +Subtag: xeb +Description: Eblan +Added: 2009-07-29 +%% +Type: language +Subtag: xed +Description: Hdi +Added: 2009-07-29 +%% +Type: language +Subtag: xeg +Description: ǁXegwi +Added: 2009-07-29 +%% +Type: language +Subtag: xel +Description: Kelo +Added: 2009-07-29 +%% +Type: language +Subtag: xem +Description: Kembayan +Added: 2009-07-29 +%% +Type: language +Subtag: xep +Description: Epi-Olmec +Added: 2009-07-29 +%% +Type: language +Subtag: xer +Description: Xerénte +Added: 2009-07-29 +%% +Type: language +Subtag: xes +Description: Kesawai +Added: 2009-07-29 +%% +Type: language +Subtag: xet +Description: Xetá +Added: 2009-07-29 +%% +Type: language +Subtag: xeu +Description: Keoru-Ahia +Added: 2009-07-29 +%% +Type: language +Subtag: xfa +Description: Faliscan +Added: 2009-07-29 +%% +Type: language +Subtag: xga +Description: Galatian +Added: 2009-07-29 +%% +Type: language +Subtag: xgb +Description: Gbin +Added: 2012-08-12 +%% +Type: language +Subtag: xgd +Description: Gudang +Added: 2013-09-10 +%% +Type: language +Subtag: xgf +Description: Gabrielino-Fernandeño +Added: 2009-07-29 +%% +Type: language +Subtag: xgg +Description: Goreng +Added: 2013-09-10 +%% +Type: language +Subtag: xgi +Description: Garingbal +Added: 2013-09-10 +%% +Type: language +Subtag: xgl +Description: Galindan +Added: 2009-07-29 +%% +Type: language +Subtag: xgm +Description: Dharumbal +Description: Guwinmal +Added: 2013-09-10 +%% +Type: language +Subtag: xgn +Description: Mongolian languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: xgr +Description: Garza +Added: 2009-07-29 +%% +Type: language +Subtag: xgu +Description: Unggumi +Added: 2012-08-12 +%% +Type: language +Subtag: xgw +Description: Guwa +Added: 2013-09-10 +%% +Type: language +Subtag: xha +Description: Harami +Added: 2009-07-29 +%% +Type: language +Subtag: xhc +Description: Hunnic +Added: 2009-07-29 +%% +Type: language +Subtag: xhd +Description: Hadrami +Added: 2009-07-29 +%% +Type: language +Subtag: xhe +Description: Khetrani +Added: 2009-07-29 +Macrolanguage: lah +%% +Type: language +Subtag: xhr +Description: Hernican +Added: 2009-07-29 +%% +Type: language +Subtag: xht +Description: Hattic +Added: 2009-07-29 +%% +Type: language +Subtag: xhu +Description: Hurrian +Added: 2009-07-29 +%% +Type: language +Subtag: xhv +Description: Khua +Added: 2009-07-29 +%% +Type: language +Subtag: xia +Description: Xiandao +Added: 2009-07-29 +Deprecated: 2013-09-10 +Preferred-Value: acn +%% +Type: language +Subtag: xib +Description: Iberian +Added: 2009-07-29 +%% +Type: language +Subtag: xii +Description: Xiri +Added: 2009-07-29 +%% +Type: language +Subtag: xil +Description: Illyrian +Added: 2009-07-29 +%% +Type: language +Subtag: xin +Description: Xinca +Added: 2009-07-29 +%% +Type: language +Subtag: xip +Description: Xipináwa +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: xir +Description: Xiriâna +Added: 2009-07-29 +%% +Type: language +Subtag: xis +Description: Kisan +Added: 2014-02-28 +%% +Type: language +Subtag: xiv +Description: Indus Valley Language +Added: 2009-07-29 +%% +Type: language +Subtag: xiy +Description: Xipaya +Added: 2009-07-29 +%% +Type: language +Subtag: xjb +Description: Minjungbal +Added: 2013-09-10 +%% +Type: language +Subtag: xjt +Description: Jaitmatang +Added: 2013-09-10 +%% +Type: language +Subtag: xka +Description: Kalkoti +Added: 2009-07-29 +%% +Type: language +Subtag: xkb +Description: Northern Nago +Added: 2009-07-29 +%% +Type: language +Subtag: xkc +Description: Kho'ini +Added: 2009-07-29 +%% +Type: language +Subtag: xkd +Description: Mendalam Kayan +Added: 2009-07-29 +%% +Type: language +Subtag: xke +Description: Kereho +Added: 2009-07-29 +%% +Type: language +Subtag: xkf +Description: Khengkha +Added: 2009-07-29 +%% +Type: language +Subtag: xkg +Description: Kagoro +Added: 2009-07-29 +%% +Type: language +Subtag: xkh +Description: Karahawyana +Added: 2009-07-29 +Deprecated: 2016-05-30 +Preferred-Value: waw +%% +Type: language +Subtag: xki +Description: Kenyan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: xkj +Description: Kajali +Added: 2009-07-29 +%% +Type: language +Subtag: xkk +Description: Kaco' +Added: 2009-07-29 +%% +Type: language +Subtag: xkl +Description: Mainstream Kenyah +Added: 2009-07-29 +%% +Type: language +Subtag: xkn +Description: Kayan River Kayan +Added: 2009-07-29 +%% +Type: language +Subtag: xko +Description: Kiorr +Added: 2009-07-29 +%% +Type: language +Subtag: xkp +Description: Kabatei +Added: 2009-07-29 +%% +Type: language +Subtag: xkq +Description: Koroni +Added: 2009-07-29 +%% +Type: language +Subtag: xkr +Description: Xakriabá +Added: 2009-07-29 +%% +Type: language +Subtag: xks +Description: Kumbewaha +Added: 2009-07-29 +%% +Type: language +Subtag: xkt +Description: Kantosi +Added: 2009-07-29 +%% +Type: language +Subtag: xku +Description: Kaamba +Added: 2009-07-29 +%% +Type: language +Subtag: xkv +Description: Kgalagadi +Added: 2009-07-29 +%% +Type: language +Subtag: xkw +Description: Kembra +Added: 2009-07-29 +%% +Type: language +Subtag: xkx +Description: Karore +Added: 2009-07-29 +%% +Type: language +Subtag: xky +Description: Uma' Lasan +Added: 2009-07-29 +%% +Type: language +Subtag: xkz +Description: Kurtokha +Added: 2009-07-29 +%% +Type: language +Subtag: xla +Description: Kamula +Added: 2009-07-29 +%% +Type: language +Subtag: xlb +Description: Loup B +Added: 2009-07-29 +%% +Type: language +Subtag: xlc +Description: Lycian +Added: 2009-07-29 +%% +Type: language +Subtag: xld +Description: Lydian +Added: 2009-07-29 +%% +Type: language +Subtag: xle +Description: Lemnian +Added: 2009-07-29 +%% +Type: language +Subtag: xlg +Description: Ligurian (Ancient) +Added: 2009-07-29 +%% +Type: language +Subtag: xli +Description: Liburnian +Added: 2009-07-29 +%% +Type: language +Subtag: xln +Description: Alanic +Added: 2009-07-29 +%% +Type: language +Subtag: xlo +Description: Loup A +Added: 2009-07-29 +%% +Type: language +Subtag: xlp +Description: Lepontic +Added: 2009-07-29 +%% +Type: language +Subtag: xls +Description: Lusitanian +Added: 2009-07-29 +%% +Type: language +Subtag: xlu +Description: Cuneiform Luwian +Added: 2009-07-29 +%% +Type: language +Subtag: xly +Description: Elymian +Added: 2009-07-29 +%% +Type: language +Subtag: xma +Description: Mushungulu +Added: 2009-07-29 +%% +Type: language +Subtag: xmb +Description: Mbonga +Added: 2009-07-29 +%% +Type: language +Subtag: xmc +Description: Makhuwa-Marrevone +Added: 2009-07-29 +%% +Type: language +Subtag: xmd +Description: Mbudum +Added: 2009-07-29 +%% +Type: language +Subtag: xme +Description: Median +Added: 2009-07-29 +%% +Type: language +Subtag: xmf +Description: Mingrelian +Added: 2009-07-29 +%% +Type: language +Subtag: xmg +Description: Mengaka +Added: 2009-07-29 +%% +Type: language +Subtag: xmh +Description: Kugu-Muminh +Added: 2009-07-29 +%% +Type: language +Subtag: xmj +Description: Majera +Added: 2009-07-29 +%% +Type: language +Subtag: xmk +Description: Ancient Macedonian +Added: 2009-07-29 +%% +Type: language +Subtag: xml +Description: Malaysian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: xmm +Description: Manado Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: xmn +Description: Manichaean Middle Persian +Added: 2009-07-29 +%% +Type: language +Subtag: xmo +Description: Morerebi +Added: 2009-07-29 +%% +Type: language +Subtag: xmp +Description: Kuku-Mu'inh +Added: 2009-07-29 +%% +Type: language +Subtag: xmq +Description: Kuku-Mangk +Added: 2009-07-29 +%% +Type: language +Subtag: xmr +Description: Meroitic +Added: 2009-07-29 +%% +Type: language +Subtag: xms +Description: Moroccan Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: xmt +Description: Matbat +Added: 2009-07-29 +%% +Type: language +Subtag: xmu +Description: Kamu +Added: 2009-07-29 +%% +Type: language +Subtag: xmv +Description: Antankarana Malagasy +Description: Tankarana Malagasy +Added: 2009-07-29 +Macrolanguage: mg +%% +Type: language +Subtag: xmw +Description: Tsimihety Malagasy +Added: 2009-07-29 +Macrolanguage: mg +%% +Type: language +Subtag: xmx +Description: Maden +Added: 2009-07-29 +%% +Type: language +Subtag: xmy +Description: Mayaguduna +Added: 2009-07-29 +%% +Type: language +Subtag: xmz +Description: Mori Bawah +Added: 2009-07-29 +%% +Type: language +Subtag: xna +Description: Ancient North Arabian +Added: 2009-07-29 +%% +Type: language +Subtag: xnb +Description: Kanakanabu +Added: 2009-07-29 +%% +Type: language +Subtag: xnd +Description: Na-Dene languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: xng +Description: Middle Mongolian +Added: 2009-07-29 +%% +Type: language +Subtag: xnh +Description: Kuanhua +Added: 2009-07-29 +%% +Type: language +Subtag: xni +Description: Ngarigu +Added: 2013-09-10 +%% +Type: language +Subtag: xnk +Description: Nganakarti +Added: 2013-09-10 +%% +Type: language +Subtag: xnn +Description: Northern Kankanay +Added: 2009-07-29 +%% +Type: language +Subtag: xno +Description: Anglo-Norman +Added: 2009-07-29 +%% +Type: language +Subtag: xnr +Description: Kangri +Added: 2009-07-29 +Macrolanguage: doi +%% +Type: language +Subtag: xns +Description: Kanashi +Added: 2009-07-29 +%% +Type: language +Subtag: xnt +Description: Narragansett +Added: 2010-03-11 +%% +Type: language +Subtag: xnu +Description: Nukunul +Added: 2013-09-10 +%% +Type: language +Subtag: xny +Description: Nyiyaparli +Added: 2013-09-10 +%% +Type: language +Subtag: xnz +Description: Kenzi +Description: Mattoki +Added: 2012-08-12 +%% +Type: language +Subtag: xoc +Description: O'chi'chi' +Added: 2009-07-29 +%% +Type: language +Subtag: xod +Description: Kokoda +Added: 2009-07-29 +%% +Type: language +Subtag: xog +Description: Soga +Added: 2009-07-29 +%% +Type: language +Subtag: xoi +Description: Kominimung +Added: 2009-07-29 +%% +Type: language +Subtag: xok +Description: Xokleng +Added: 2009-07-29 +%% +Type: language +Subtag: xom +Description: Komo (Sudan) +Added: 2009-07-29 +%% +Type: language +Subtag: xon +Description: Konkomba +Added: 2009-07-29 +%% +Type: language +Subtag: xoo +Description: Xukurú +Added: 2009-07-29 +%% +Type: language +Subtag: xop +Description: Kopar +Added: 2009-07-29 +%% +Type: language +Subtag: xor +Description: Korubo +Added: 2009-07-29 +%% +Type: language +Subtag: xow +Description: Kowaki +Added: 2009-07-29 +%% +Type: language +Subtag: xpa +Description: Pirriya +Added: 2013-09-10 +%% +Type: language +Subtag: xpc +Description: Pecheneg +Added: 2009-07-29 +%% +Type: language +Subtag: xpe +Description: Liberia Kpelle +Added: 2009-07-29 +Macrolanguage: kpe +%% +Type: language +Subtag: xpg +Description: Phrygian +Added: 2009-07-29 +%% +Type: language +Subtag: xpi +Description: Pictish +Added: 2009-07-29 +%% +Type: language +Subtag: xpj +Description: Mpalitjanh +Added: 2012-08-12 +%% +Type: language +Subtag: xpk +Description: Kulina Pano +Added: 2009-07-29 +%% +Type: language +Subtag: xpm +Description: Pumpokol +Added: 2009-07-29 +%% +Type: language +Subtag: xpn +Description: Kapinawá +Added: 2009-07-29 +%% +Type: language +Subtag: xpo +Description: Pochutec +Added: 2009-07-29 +%% +Type: language +Subtag: xpp +Description: Puyo-Paekche +Added: 2009-07-29 +%% +Type: language +Subtag: xpq +Description: Mohegan-Pequot +Added: 2010-03-11 +%% +Type: language +Subtag: xpr +Description: Parthian +Added: 2009-07-29 +%% +Type: language +Subtag: xps +Description: Pisidian +Added: 2009-07-29 +%% +Type: language +Subtag: xpt +Description: Punthamara +Added: 2013-09-10 +%% +Type: language +Subtag: xpu +Description: Punic +Added: 2009-07-29 +%% +Type: language +Subtag: xpy +Description: Puyo +Added: 2009-07-29 +%% +Type: language +Subtag: xqa +Description: Karakhanid +Added: 2009-07-29 +%% +Type: language +Subtag: xqt +Description: Qatabanian +Added: 2009-07-29 +%% +Type: language +Subtag: xra +Description: Krahô +Added: 2009-07-29 +%% +Type: language +Subtag: xrb +Description: Eastern Karaboro +Added: 2009-07-29 +%% +Type: language +Subtag: xrd +Description: Gundungurra +Added: 2013-09-10 +%% +Type: language +Subtag: xre +Description: Kreye +Added: 2009-07-29 +%% +Type: language +Subtag: xrg +Description: Minang +Added: 2013-09-10 +%% +Type: language +Subtag: xri +Description: Krikati-Timbira +Added: 2009-07-29 +%% +Type: language +Subtag: xrm +Description: Armazic +Added: 2009-07-29 +%% +Type: language +Subtag: xrn +Description: Arin +Added: 2009-07-29 +%% +Type: language +Subtag: xrq +Description: Karranga +Added: 2013-09-10 +%% +Type: language +Subtag: xrr +Description: Raetic +Added: 2009-07-29 +%% +Type: language +Subtag: xrt +Description: Aranama-Tamique +Added: 2009-07-29 +%% +Type: language +Subtag: xru +Description: Marriammu +Added: 2009-07-29 +%% +Type: language +Subtag: xrw +Description: Karawa +Added: 2009-07-29 +%% +Type: language +Subtag: xsa +Description: Sabaean +Added: 2009-07-29 +%% +Type: language +Subtag: xsb +Description: Sambal +Added: 2009-07-29 +%% +Type: language +Subtag: xsc +Description: Scythian +Added: 2009-07-29 +%% +Type: language +Subtag: xsd +Description: Sidetic +Added: 2009-07-29 +%% +Type: language +Subtag: xse +Description: Sempan +Added: 2009-07-29 +%% +Type: language +Subtag: xsh +Description: Shamang +Added: 2009-07-29 +%% +Type: language +Subtag: xsi +Description: Sio +Added: 2009-07-29 +%% +Type: language +Subtag: xsj +Description: Subi +Added: 2009-07-29 +Comments: see also suj +%% +Type: language +Subtag: xsl +Description: South Slavey +Added: 2009-07-29 +Macrolanguage: den +%% +Type: language +Subtag: xsm +Description: Kasem +Added: 2009-07-29 +%% +Type: language +Subtag: xsn +Description: Sanga (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: xso +Description: Solano +Added: 2009-07-29 +%% +Type: language +Subtag: xsp +Description: Silopi +Added: 2009-07-29 +%% +Type: language +Subtag: xsq +Description: Makhuwa-Saka +Added: 2009-07-29 +%% +Type: language +Subtag: xsr +Description: Sherpa +Added: 2009-07-29 +%% +Type: language +Subtag: xss +Description: Assan +Added: 2009-07-29 +%% +Type: language +Subtag: xsu +Description: Sanumá +Added: 2009-07-29 +%% +Type: language +Subtag: xsv +Description: Sudovian +Added: 2009-07-29 +%% +Type: language +Subtag: xsy +Description: Saisiyat +Added: 2009-07-29 +%% +Type: language +Subtag: xta +Description: Alcozauca Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtb +Description: Chazumba Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtc +Description: Katcha-Kadugli-Miri +Added: 2009-07-29 +%% +Type: language +Subtag: xtd +Description: Diuxi-Tilantongo Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xte +Description: Ketengban +Added: 2009-07-29 +%% +Type: language +Subtag: xtg +Description: Transalpine Gaulish +Added: 2009-07-29 +%% +Type: language +Subtag: xth +Description: Yitha Yitha +Added: 2013-09-10 +%% +Type: language +Subtag: xti +Description: Sinicahua Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtj +Description: San Juan Teita Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtl +Description: Tijaltepec Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtm +Description: Magdalena Peñasco Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtn +Description: Northern Tlaxiaco Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xto +Description: Tokharian A +Added: 2009-07-29 +%% +Type: language +Subtag: xtp +Description: San Miguel Piedras Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtq +Description: Tumshuqese +Added: 2009-07-29 +%% +Type: language +Subtag: xtr +Description: Early Tripuri +Added: 2009-07-29 +%% +Type: language +Subtag: xts +Description: Sindihui Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtt +Description: Tacahua Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtu +Description: Cuyamecalco Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtv +Description: Thawa +Added: 2013-09-10 +%% +Type: language +Subtag: xtw +Description: Tawandê +Added: 2009-07-29 +%% +Type: language +Subtag: xty +Description: Yoloxochitl Mixtec +Added: 2009-07-29 +%% +Type: language +Subtag: xtz +Description: Tasmanian +Added: 2009-07-29 +%% +Type: language +Subtag: xua +Description: Alu Kurumba +Added: 2009-07-29 +%% +Type: language +Subtag: xub +Description: Betta Kurumba +Added: 2009-07-29 +%% +Type: language +Subtag: xud +Description: Umiida +Added: 2012-08-12 +%% +Type: language +Subtag: xug +Description: Kunigami +Added: 2009-07-29 +%% +Type: language +Subtag: xuj +Description: Jennu Kurumba +Added: 2009-07-29 +%% +Type: language +Subtag: xul +Description: Ngunawal +Added: 2013-09-10 +%% +Type: language +Subtag: xum +Description: Umbrian +Added: 2009-07-29 +%% +Type: language +Subtag: xun +Description: Unggaranggu +Added: 2012-08-12 +%% +Type: language +Subtag: xuo +Description: Kuo +Added: 2009-07-29 +%% +Type: language +Subtag: xup +Description: Upper Umpqua +Added: 2009-07-29 +%% +Type: language +Subtag: xur +Description: Urartian +Added: 2009-07-29 +%% +Type: language +Subtag: xut +Description: Kuthant +Added: 2009-07-29 +%% +Type: language +Subtag: xuu +Description: Kxoe +Description: Khwedam +Added: 2009-07-29 +%% +Type: language +Subtag: xve +Description: Venetic +Added: 2009-07-29 +%% +Type: language +Subtag: xvi +Description: Kamviri +Added: 2009-07-29 +%% +Type: language +Subtag: xvn +Description: Vandalic +Added: 2009-07-29 +%% +Type: language +Subtag: xvo +Description: Volscian +Added: 2009-07-29 +%% +Type: language +Subtag: xvs +Description: Vestinian +Added: 2009-07-29 +%% +Type: language +Subtag: xwa +Description: Kwaza +Added: 2009-07-29 +%% +Type: language +Subtag: xwc +Description: Woccon +Added: 2009-07-29 +%% +Type: language +Subtag: xwd +Description: Wadi Wadi +Added: 2013-09-10 +%% +Type: language +Subtag: xwe +Description: Xwela Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: xwg +Description: Kwegu +Added: 2009-07-29 +%% +Type: language +Subtag: xwj +Description: Wajuk +Added: 2013-09-10 +%% +Type: language +Subtag: xwk +Description: Wangkumara +Added: 2013-09-10 +%% +Type: language +Subtag: xwl +Description: Western Xwla Gbe +Added: 2009-07-29 +%% +Type: language +Subtag: xwo +Description: Written Oirat +Added: 2009-07-29 +%% +Type: language +Subtag: xwr +Description: Kwerba Mamberamo +Added: 2009-07-29 +%% +Type: language +Subtag: xwt +Description: Wotjobaluk +Added: 2013-09-10 +%% +Type: language +Subtag: xww +Description: Wemba Wemba +Added: 2013-09-10 +%% +Type: language +Subtag: xxb +Description: Boro (Ghana) +Added: 2009-07-29 +%% +Type: language +Subtag: xxk +Description: Ke'o +Added: 2009-07-29 +%% +Type: language +Subtag: xxm +Description: Minkin +Added: 2013-09-10 +%% +Type: language +Subtag: xxr +Description: Koropó +Added: 2009-07-29 +%% +Type: language +Subtag: xxt +Description: Tambora +Added: 2009-07-29 +%% +Type: language +Subtag: xya +Description: Yaygir +Added: 2013-09-10 +%% +Type: language +Subtag: xyb +Description: Yandjibara +Added: 2013-09-10 +%% +Type: language +Subtag: xyj +Description: Mayi-Yapi +Added: 2013-09-10 +%% +Type: language +Subtag: xyk +Description: Mayi-Kulan +Added: 2013-09-10 +%% +Type: language +Subtag: xyl +Description: Yalakalore +Added: 2009-07-29 +%% +Type: language +Subtag: xyt +Description: Mayi-Thakurti +Added: 2013-09-10 +%% +Type: language +Subtag: xyy +Description: Yorta Yorta +Added: 2012-08-12 +%% +Type: language +Subtag: xzh +Description: Zhang-Zhung +Added: 2009-07-29 +%% +Type: language +Subtag: xzm +Description: Zemgalian +Added: 2009-07-29 +%% +Type: language +Subtag: xzp +Description: Ancient Zapotec +Added: 2009-07-29 +%% +Type: language +Subtag: yaa +Description: Yaminahua +Added: 2009-07-29 +%% +Type: language +Subtag: yab +Description: Yuhup +Added: 2009-07-29 +%% +Type: language +Subtag: yac +Description: Pass Valley Yali +Added: 2009-07-29 +%% +Type: language +Subtag: yad +Description: Yagua +Added: 2009-07-29 +%% +Type: language +Subtag: yae +Description: Pumé +Added: 2009-07-29 +%% +Type: language +Subtag: yaf +Description: Yaka (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: yag +Description: Yámana +Added: 2009-07-29 +%% +Type: language +Subtag: yah +Description: Yazgulyam +Added: 2009-07-29 +%% +Type: language +Subtag: yai +Description: Yagnobi +Added: 2009-07-29 +%% +Type: language +Subtag: yaj +Description: Banda-Yangere +Added: 2009-07-29 +%% +Type: language +Subtag: yak +Description: Yakama +Added: 2009-07-29 +%% +Type: language +Subtag: yal +Description: Yalunka +Added: 2009-07-29 +%% +Type: language +Subtag: yam +Description: Yamba +Added: 2009-07-29 +%% +Type: language +Subtag: yan +Description: Mayangna +Added: 2010-03-11 +%% +Type: language +Subtag: yao +Description: Yao +Added: 2005-10-16 +%% +Type: language +Subtag: yap +Description: Yapese +Added: 2005-10-16 +%% +Type: language +Subtag: yaq +Description: Yaqui +Added: 2009-07-29 +%% +Type: language +Subtag: yar +Description: Yabarana +Added: 2009-07-29 +%% +Type: language +Subtag: yas +Description: Nugunu (Cameroon) +Added: 2009-07-29 +%% +Type: language +Subtag: yat +Description: Yambeta +Added: 2009-07-29 +%% +Type: language +Subtag: yau +Description: Yuwana +Added: 2009-07-29 +%% +Type: language +Subtag: yav +Description: Yangben +Added: 2009-07-29 +%% +Type: language +Subtag: yaw +Description: Yawalapití +Added: 2009-07-29 +%% +Type: language +Subtag: yax +Description: Yauma +Added: 2009-07-29 +%% +Type: language +Subtag: yay +Description: Agwagwune +Added: 2009-07-29 +%% +Type: language +Subtag: yaz +Description: Lokaa +Added: 2009-07-29 +%% +Type: language +Subtag: yba +Description: Yala +Added: 2009-07-29 +%% +Type: language +Subtag: ybb +Description: Yemba +Added: 2009-07-29 +%% +Type: language +Subtag: ybd +Description: Yangbye +Added: 2009-07-29 +Deprecated: 2012-08-12 +Preferred-Value: rki +%% +Type: language +Subtag: ybe +Description: West Yugur +Added: 2009-07-29 +%% +Type: language +Subtag: ybh +Description: Yakha +Added: 2009-07-29 +%% +Type: language +Subtag: ybi +Description: Yamphu +Added: 2009-07-29 +%% +Type: language +Subtag: ybj +Description: Hasha +Added: 2009-07-29 +%% +Type: language +Subtag: ybk +Description: Bokha +Added: 2009-07-29 +%% +Type: language +Subtag: ybl +Description: Yukuben +Added: 2009-07-29 +%% +Type: language +Subtag: ybm +Description: Yaben +Added: 2009-07-29 +%% +Type: language +Subtag: ybn +Description: Yabaâna +Added: 2009-07-29 +%% +Type: language +Subtag: ybo +Description: Yabong +Added: 2009-07-29 +%% +Type: language +Subtag: ybx +Description: Yawiyo +Added: 2009-07-29 +%% +Type: language +Subtag: yby +Description: Yaweyuha +Added: 2009-07-29 +%% +Type: language +Subtag: ych +Description: Chesu +Added: 2009-07-29 +%% +Type: language +Subtag: ycl +Description: Lolopo +Added: 2009-07-29 +%% +Type: language +Subtag: ycn +Description: Yucuna +Added: 2009-07-29 +%% +Type: language +Subtag: ycp +Description: Chepya +Added: 2009-07-29 +%% +Type: language +Subtag: yda +Description: Yanda +Added: 2013-09-10 +%% +Type: language +Subtag: ydd +Description: Eastern Yiddish +Added: 2009-07-29 +Macrolanguage: yi +%% +Type: language +Subtag: yde +Description: Yangum Dey +Added: 2009-07-29 +%% +Type: language +Subtag: ydg +Description: Yidgha +Added: 2009-07-29 +%% +Type: language +Subtag: ydk +Description: Yoidik +Added: 2009-07-29 +%% +Type: language +Subtag: yds +Description: Yiddish Sign Language +Added: 2009-07-29 +Deprecated: 2015-02-12 +%% +Type: language +Subtag: yea +Description: Ravula +Added: 2009-07-29 +%% +Type: language +Subtag: yec +Description: Yeniche +Added: 2009-07-29 +%% +Type: language +Subtag: yee +Description: Yimas +Added: 2009-07-29 +%% +Type: language +Subtag: yei +Description: Yeni +Added: 2009-07-29 +%% +Type: language +Subtag: yej +Description: Yevanic +Added: 2009-07-29 +%% +Type: language +Subtag: yel +Description: Yela +Added: 2009-07-29 +%% +Type: language +Subtag: yen +Description: Yendang +Added: 2009-07-29 +Deprecated: 2012-08-12 +Comments: see ynq, yot +%% +Type: language +Subtag: yer +Description: Tarok +Added: 2009-07-29 +%% +Type: language +Subtag: yes +Description: Nyankpa +Added: 2009-07-29 +%% +Type: language +Subtag: yet +Description: Yetfa +Added: 2009-07-29 +%% +Type: language +Subtag: yeu +Description: Yerukula +Added: 2009-07-29 +%% +Type: language +Subtag: yev +Description: Yapunda +Added: 2009-07-29 +%% +Type: language +Subtag: yey +Description: Yeyi +Added: 2009-07-29 +%% +Type: language +Subtag: yga +Description: Malyangapa +Added: 2012-08-12 +%% +Type: language +Subtag: ygi +Description: Yiningayi +Added: 2013-09-10 +%% +Type: language +Subtag: ygl +Description: Yangum Gel +Added: 2009-07-29 +%% +Type: language +Subtag: ygm +Description: Yagomi +Added: 2009-07-29 +%% +Type: language +Subtag: ygp +Description: Gepo +Added: 2009-07-29 +%% +Type: language +Subtag: ygr +Description: Yagaria +Added: 2009-07-29 +%% +Type: language +Subtag: ygs +Description: Yolŋu Sign Language +Added: 2014-02-28 +%% +Type: language +Subtag: ygu +Description: Yugul +Added: 2013-09-10 +%% +Type: language +Subtag: ygw +Description: Yagwoia +Added: 2009-07-29 +%% +Type: language +Subtag: yha +Description: Baha Buyang +Added: 2009-07-29 +%% +Type: language +Subtag: yhd +Description: Judeo-Iraqi Arabic +Added: 2009-07-29 +Macrolanguage: jrb +%% +Type: language +Subtag: yhl +Description: Hlepho Phowa +Added: 2009-07-29 +%% +Type: language +Subtag: yhs +Description: Yan-nhaŋu Sign Language +Added: 2015-04-17 +%% +Type: language +Subtag: yia +Description: Yinggarda +Added: 2009-07-29 +%% +Type: language +Subtag: yif +Description: Ache +Added: 2009-07-29 +%% +Type: language +Subtag: yig +Description: Wusa Nasu +Added: 2009-07-29 +%% +Type: language +Subtag: yih +Description: Western Yiddish +Added: 2009-07-29 +Macrolanguage: yi +%% +Type: language +Subtag: yii +Description: Yidiny +Added: 2009-07-29 +%% +Type: language +Subtag: yij +Description: Yindjibarndi +Added: 2009-07-29 +%% +Type: language +Subtag: yik +Description: Dongshanba Lalo +Added: 2009-07-29 +%% +Type: language +Subtag: yil +Description: Yindjilandji +Added: 2009-07-29 +%% +Type: language +Subtag: yim +Description: Yimchungru Naga +Added: 2009-07-29 +%% +Type: language +Subtag: yin +Description: Riang Lai +Description: Yinchia +Added: 2009-07-29 +%% +Type: language +Subtag: yip +Description: Pholo +Added: 2009-07-29 +%% +Type: language +Subtag: yiq +Description: Miqie +Added: 2009-07-29 +%% +Type: language +Subtag: yir +Description: North Awyu +Added: 2009-07-29 +%% +Type: language +Subtag: yis +Description: Yis +Added: 2009-07-29 +%% +Type: language +Subtag: yit +Description: Eastern Lalu +Added: 2009-07-29 +%% +Type: language +Subtag: yiu +Description: Awu +Added: 2009-07-29 +%% +Type: language +Subtag: yiv +Description: Northern Nisu +Added: 2009-07-29 +%% +Type: language +Subtag: yix +Description: Axi Yi +Added: 2009-07-29 +%% +Type: language +Subtag: yiy +Description: Yir Yoront +Added: 2009-07-29 +Deprecated: 2013-09-10 +Comments: see yrm, yyr +%% +Type: language +Subtag: yiz +Description: Azhe +Added: 2009-07-29 +%% +Type: language +Subtag: yka +Description: Yakan +Added: 2009-07-29 +%% +Type: language +Subtag: ykg +Description: Northern Yukaghir +Added: 2009-07-29 +%% +Type: language +Subtag: yki +Description: Yoke +Added: 2009-07-29 +%% +Type: language +Subtag: ykk +Description: Yakaikeke +Added: 2009-07-29 +%% +Type: language +Subtag: ykl +Description: Khlula +Added: 2009-07-29 +%% +Type: language +Subtag: ykm +Description: Kap +Added: 2009-07-29 +%% +Type: language +Subtag: ykn +Description: Kua-nsi +Added: 2012-08-12 +%% +Type: language +Subtag: yko +Description: Yasa +Added: 2009-07-29 +%% +Type: language +Subtag: ykr +Description: Yekora +Added: 2009-07-29 +%% +Type: language +Subtag: ykt +Description: Kathu +Added: 2009-07-29 +%% +Type: language +Subtag: yku +Description: Kuamasi +Added: 2012-08-12 +%% +Type: language +Subtag: yky +Description: Yakoma +Added: 2009-07-29 +%% +Type: language +Subtag: yla +Description: Yaul +Added: 2009-07-29 +%% +Type: language +Subtag: ylb +Description: Yaleba +Added: 2010-03-11 +%% +Type: language +Subtag: yle +Description: Yele +Added: 2009-07-29 +%% +Type: language +Subtag: ylg +Description: Yelogu +Added: 2009-07-29 +%% +Type: language +Subtag: yli +Description: Angguruk Yali +Added: 2009-07-29 +%% +Type: language +Subtag: yll +Description: Yil +Added: 2009-07-29 +%% +Type: language +Subtag: ylm +Description: Limi +Added: 2009-07-29 +%% +Type: language +Subtag: yln +Description: Langnian Buyang +Added: 2009-07-29 +%% +Type: language +Subtag: ylo +Description: Naluo Yi +Added: 2009-07-29 +%% +Type: language +Subtag: ylr +Description: Yalarnnga +Added: 2009-07-29 +%% +Type: language +Subtag: ylu +Description: Aribwaung +Added: 2009-07-29 +%% +Type: language +Subtag: yly +Description: Nyâlayu +Description: Nyelâyu +Added: 2009-07-29 +%% +Type: language +Subtag: yma +Description: Yamphe +Added: 2009-07-29 +Deprecated: 2012-08-12 +Preferred-Value: lrr +%% +Type: language +Subtag: ymb +Description: Yambes +Added: 2009-07-29 +%% +Type: language +Subtag: ymc +Description: Southern Muji +Added: 2009-07-29 +%% +Type: language +Subtag: ymd +Description: Muda +Added: 2009-07-29 +%% +Type: language +Subtag: yme +Description: Yameo +Added: 2009-07-29 +%% +Type: language +Subtag: ymg +Description: Yamongeri +Added: 2009-07-29 +%% +Type: language +Subtag: ymh +Description: Mili +Added: 2009-07-29 +%% +Type: language +Subtag: ymi +Description: Moji +Added: 2009-07-29 +%% +Type: language +Subtag: ymk +Description: Makwe +Added: 2009-07-29 +%% +Type: language +Subtag: yml +Description: Iamalele +Added: 2009-07-29 +%% +Type: language +Subtag: ymm +Description: Maay +Added: 2009-07-29 +%% +Type: language +Subtag: ymn +Description: Yamna +Description: Sunum +Added: 2009-07-29 +%% +Type: language +Subtag: ymo +Description: Yangum Mon +Added: 2009-07-29 +%% +Type: language +Subtag: ymp +Description: Yamap +Added: 2009-07-29 +%% +Type: language +Subtag: ymq +Description: Qila Muji +Added: 2009-07-29 +%% +Type: language +Subtag: ymr +Description: Malasar +Added: 2009-07-29 +%% +Type: language +Subtag: yms +Description: Mysian +Added: 2009-07-29 +%% +Type: language +Subtag: ymt +Description: Mator-Taygi-Karagas +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: mtm +%% +Type: language +Subtag: ymx +Description: Northern Muji +Added: 2009-07-29 +%% +Type: language +Subtag: ymz +Description: Muzi +Added: 2009-07-29 +%% +Type: language +Subtag: yna +Description: Aluo +Added: 2009-07-29 +%% +Type: language +Subtag: ynd +Description: Yandruwandha +Added: 2009-07-29 +%% +Type: language +Subtag: yne +Description: Lang'e +Added: 2009-07-29 +%% +Type: language +Subtag: yng +Description: Yango +Added: 2009-07-29 +%% +Type: language +Subtag: ynh +Description: Yangho +Added: 2009-07-29 +Deprecated: 2015-02-12 +%% +Type: language +Subtag: ynk +Description: Naukan Yupik +Added: 2009-07-29 +%% +Type: language +Subtag: ynl +Description: Yangulam +Added: 2009-07-29 +%% +Type: language +Subtag: ynn +Description: Yana +Added: 2009-07-29 +%% +Type: language +Subtag: yno +Description: Yong +Added: 2009-07-29 +%% +Type: language +Subtag: ynq +Description: Yendang +Added: 2012-08-12 +%% +Type: language +Subtag: yns +Description: Yansi +Added: 2009-07-29 +%% +Type: language +Subtag: ynu +Description: Yahuna +Added: 2009-07-29 +%% +Type: language +Subtag: yob +Description: Yoba +Added: 2009-07-29 +%% +Type: language +Subtag: yog +Description: Yogad +Added: 2009-07-29 +%% +Type: language +Subtag: yoi +Description: Yonaguni +Added: 2009-07-29 +%% +Type: language +Subtag: yok +Description: Yokuts +Added: 2009-07-29 +%% +Type: language +Subtag: yol +Description: Yola +Added: 2009-07-29 +%% +Type: language +Subtag: yom +Description: Yombe +Added: 2009-07-29 +%% +Type: language +Subtag: yon +Description: Yongkom +Added: 2009-07-29 +%% +Type: language +Subtag: yos +Description: Yos +Added: 2009-07-29 +Deprecated: 2013-09-10 +Preferred-Value: zom +%% +Type: language +Subtag: yot +Description: Yotti +Added: 2012-08-12 +%% +Type: language +Subtag: yox +Description: Yoron +Added: 2009-07-29 +%% +Type: language +Subtag: yoy +Description: Yoy +Added: 2009-07-29 +%% +Type: language +Subtag: ypa +Description: Phala +Added: 2009-07-29 +%% +Type: language +Subtag: ypb +Description: Labo Phowa +Added: 2009-07-29 +%% +Type: language +Subtag: ypg +Description: Phola +Added: 2009-07-29 +%% +Type: language +Subtag: yph +Description: Phupha +Added: 2009-07-29 +%% +Type: language +Subtag: ypk +Description: Yupik languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: ypm +Description: Phuma +Added: 2009-07-29 +%% +Type: language +Subtag: ypn +Description: Ani Phowa +Added: 2009-07-29 +%% +Type: language +Subtag: ypo +Description: Alo Phola +Added: 2009-07-29 +%% +Type: language +Subtag: ypp +Description: Phupa +Added: 2009-07-29 +%% +Type: language +Subtag: ypz +Description: Phuza +Added: 2009-07-29 +%% +Type: language +Subtag: yra +Description: Yerakai +Added: 2009-07-29 +%% +Type: language +Subtag: yrb +Description: Yareba +Added: 2009-07-29 +%% +Type: language +Subtag: yre +Description: Yaouré +Added: 2009-07-29 +%% +Type: language +Subtag: yri +Description: Yarí +Added: 2009-07-29 +Deprecated: 2016-05-30 +%% +Type: language +Subtag: yrk +Description: Nenets +Added: 2009-07-29 +%% +Type: language +Subtag: yrl +Description: Nhengatu +Added: 2009-07-29 +%% +Type: language +Subtag: yrm +Description: Yirrk-Mel +Added: 2013-09-10 +%% +Type: language +Subtag: yrn +Description: Yerong +Added: 2009-07-29 +%% +Type: language +Subtag: yro +Description: Yaroamë +Added: 2016-05-30 +%% +Type: language +Subtag: yrs +Description: Yarsun +Added: 2009-07-29 +%% +Type: language +Subtag: yrw +Description: Yarawata +Added: 2009-07-29 +%% +Type: language +Subtag: yry +Description: Yarluyandi +Added: 2013-09-10 +%% +Type: language +Subtag: ysc +Description: Yassic +Added: 2009-07-29 +%% +Type: language +Subtag: ysd +Description: Samatao +Added: 2009-07-29 +%% +Type: language +Subtag: ysg +Description: Sonaga +Added: 2012-08-12 +%% +Type: language +Subtag: ysl +Description: Yugoslavian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: ysn +Description: Sani +Added: 2009-07-29 +%% +Type: language +Subtag: yso +Description: Nisi (China) +Added: 2009-07-29 +%% +Type: language +Subtag: ysp +Description: Southern Lolopo +Added: 2009-07-29 +%% +Type: language +Subtag: ysr +Description: Sirenik Yupik +Added: 2009-07-29 +%% +Type: language +Subtag: yss +Description: Yessan-Mayo +Added: 2009-07-29 +%% +Type: language +Subtag: ysy +Description: Sanie +Added: 2009-07-29 +%% +Type: language +Subtag: yta +Description: Talu +Added: 2009-07-29 +%% +Type: language +Subtag: ytl +Description: Tanglang +Added: 2009-07-29 +%% +Type: language +Subtag: ytp +Description: Thopho +Added: 2009-07-29 +%% +Type: language +Subtag: ytw +Description: Yout Wam +Added: 2010-03-11 +%% +Type: language +Subtag: yty +Description: Yatay +Added: 2013-09-10 +%% +Type: language +Subtag: yua +Description: Yucateco +Description: Yucatec Maya +Added: 2009-07-29 +%% +Type: language +Subtag: yub +Description: Yugambal +Added: 2009-07-29 +%% +Type: language +Subtag: yuc +Description: Yuchi +Added: 2009-07-29 +%% +Type: language +Subtag: yud +Description: Judeo-Tripolitanian Arabic +Added: 2009-07-29 +Macrolanguage: jrb +%% +Type: language +Subtag: yue +Description: Yue Chinese +Description: Cantonese +Added: 2009-07-29 +Macrolanguage: zh +%% +Type: language +Subtag: yuf +Description: Havasupai-Walapai-Yavapai +Added: 2009-07-29 +%% +Type: language +Subtag: yug +Description: Yug +Added: 2009-07-29 +%% +Type: language +Subtag: yui +Description: Yurutí +Added: 2009-07-29 +%% +Type: language +Subtag: yuj +Description: Karkar-Yuri +Added: 2009-07-29 +%% +Type: language +Subtag: yuk +Description: Yuki +Added: 2009-07-29 +%% +Type: language +Subtag: yul +Description: Yulu +Added: 2009-07-29 +%% +Type: language +Subtag: yum +Description: Quechan +Added: 2009-07-29 +%% +Type: language +Subtag: yun +Description: Bena (Nigeria) +Added: 2009-07-29 +%% +Type: language +Subtag: yup +Description: Yukpa +Added: 2009-07-29 +%% +Type: language +Subtag: yuq +Description: Yuqui +Added: 2009-07-29 +%% +Type: language +Subtag: yur +Description: Yurok +Added: 2009-07-29 +%% +Type: language +Subtag: yut +Description: Yopno +Added: 2009-07-29 +%% +Type: language +Subtag: yuu +Description: Yugh +Added: 2009-07-29 +Deprecated: 2014-02-28 +Preferred-Value: yug +%% +Type: language +Subtag: yuw +Description: Yau (Morobe Province) +Added: 2009-07-29 +%% +Type: language +Subtag: yux +Description: Southern Yukaghir +Added: 2009-07-29 +%% +Type: language +Subtag: yuy +Description: East Yugur +Added: 2009-07-29 +%% +Type: language +Subtag: yuz +Description: Yuracare +Added: 2009-07-29 +%% +Type: language +Subtag: yva +Description: Yawa +Added: 2009-07-29 +%% +Type: language +Subtag: yvt +Description: Yavitero +Added: 2009-07-29 +%% +Type: language +Subtag: ywa +Description: Kalou +Added: 2009-07-29 +%% +Type: language +Subtag: ywg +Description: Yinhawangka +Added: 2013-09-10 +%% +Type: language +Subtag: ywl +Description: Western Lalu +Added: 2009-07-29 +%% +Type: language +Subtag: ywn +Description: Yawanawa +Added: 2009-07-29 +%% +Type: language +Subtag: ywq +Description: Wuding-Luquan Yi +Added: 2009-07-29 +%% +Type: language +Subtag: ywr +Description: Yawuru +Added: 2009-07-29 +%% +Type: language +Subtag: ywt +Description: Xishanba Lalo +Description: Central Lalo +Added: 2009-07-29 +%% +Type: language +Subtag: ywu +Description: Wumeng Nasu +Added: 2009-07-29 +%% +Type: language +Subtag: yww +Description: Yawarawarga +Added: 2009-07-29 +%% +Type: language +Subtag: yxa +Description: Mayawali +Added: 2013-09-10 +%% +Type: language +Subtag: yxg +Description: Yagara +Added: 2012-08-12 +%% +Type: language +Subtag: yxl +Description: Yardliyawarra +Added: 2013-09-10 +%% +Type: language +Subtag: yxm +Description: Yinwum +Added: 2013-09-10 +%% +Type: language +Subtag: yxu +Description: Yuyu +Added: 2013-09-10 +%% +Type: language +Subtag: yxy +Description: Yabula Yabula +Added: 2012-08-12 +%% +Type: language +Subtag: yyr +Description: Yir Yoront +Added: 2013-09-03 +%% +Type: language +Subtag: yyu +Description: Yau (Sandaun Province) +Added: 2009-07-29 +%% +Type: language +Subtag: yyz +Description: Ayizi +Added: 2009-07-29 +%% +Type: language +Subtag: yzg +Description: E'ma Buyang +Added: 2009-07-29 +%% +Type: language +Subtag: yzk +Description: Zokhuo +Added: 2009-07-29 +%% +Type: language +Subtag: zaa +Description: Sierra de Juárez Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zab +Description: Western Tlacolula Valley Zapotec +Description: San Juan Guelavía Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zac +Description: Ocotlán Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zad +Description: Cajonos Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zae +Description: Yareni Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zaf +Description: Ayoquesco Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zag +Description: Zaghawa +Added: 2009-07-29 +%% +Type: language +Subtag: zah +Description: Zangwal +Added: 2009-07-29 +%% +Type: language +Subtag: zai +Description: Isthmus Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zaj +Description: Zaramo +Added: 2009-07-29 +%% +Type: language +Subtag: zak +Description: Zanaki +Added: 2009-07-29 +%% +Type: language +Subtag: zal +Description: Zauzou +Added: 2009-07-29 +%% +Type: language +Subtag: zam +Description: Miahuatlán Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zao +Description: Ozolotepec Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zap +Description: Zapotec +Added: 2005-10-16 +Scope: macrolanguage +%% +Type: language +Subtag: zaq +Description: Aloápam Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zar +Description: Rincón Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zas +Description: Santo Domingo Albarradas Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zat +Description: Tabaa Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zau +Description: Zangskari +Added: 2009-07-29 +%% +Type: language +Subtag: zav +Description: Yatzachi Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zaw +Description: Mitla Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zax +Description: Xadani Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zay +Description: Zayse-Zergulla +Description: Zaysete +Added: 2009-07-29 +%% +Type: language +Subtag: zaz +Description: Zari +Added: 2009-07-29 +%% +Type: language +Subtag: zbc +Description: Central Berawan +Added: 2009-07-29 +%% +Type: language +Subtag: zbe +Description: East Berawan +Added: 2009-07-29 +%% +Type: language +Subtag: zbl +Description: Blissymbols +Description: Bliss +Description: Blissymbolics +Added: 2007-08-21 +Suppress-Script: Blis +%% +Type: language +Subtag: zbt +Description: Batui +Added: 2009-07-29 +%% +Type: language +Subtag: zbw +Description: West Berawan +Added: 2009-07-29 +%% +Type: language +Subtag: zca +Description: Coatecas Altas Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zch +Description: Central Hongshuihe Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zdj +Description: Ngazidja Comorian +Added: 2009-07-29 +%% +Type: language +Subtag: zea +Description: Zeeuws +Added: 2009-07-29 +%% +Type: language +Subtag: zeg +Description: Zenag +Added: 2009-07-29 +%% +Type: language +Subtag: zeh +Description: Eastern Hongshuihe Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zen +Description: Zenaga +Added: 2005-10-16 +%% +Type: language +Subtag: zga +Description: Kinga +Added: 2009-07-29 +%% +Type: language +Subtag: zgb +Description: Guibei Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zgh +Description: Standard Moroccan Tamazight +Added: 2013-01-25 +%% +Type: language +Subtag: zgm +Description: Minz Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zgn +Description: Guibian Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zgr +Description: Magori +Added: 2009-07-29 +%% +Type: language +Subtag: zhb +Description: Zhaba +Added: 2009-07-29 +%% +Type: language +Subtag: zhd +Description: Dai Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zhi +Description: Zhire +Added: 2009-07-29 +%% +Type: language +Subtag: zhn +Description: Nong Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zhw +Description: Zhoa +Added: 2009-07-29 +%% +Type: language +Subtag: zhx +Description: Chinese (family) +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: zia +Description: Zia +Added: 2009-07-29 +%% +Type: language +Subtag: zib +Description: Zimbabwe Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: zik +Description: Zimakani +Added: 2009-07-29 +%% +Type: language +Subtag: zil +Description: Zialo +Added: 2011-08-16 +%% +Type: language +Subtag: zim +Description: Mesme +Added: 2009-07-29 +%% +Type: language +Subtag: zin +Description: Zinza +Added: 2009-07-29 +%% +Type: language +Subtag: zir +Description: Ziriya +Added: 2009-07-29 +%% +Type: language +Subtag: ziw +Description: Zigula +Added: 2009-07-29 +%% +Type: language +Subtag: ziz +Description: Zizilivakan +Added: 2009-07-29 +%% +Type: language +Subtag: zka +Description: Kaimbulawa +Added: 2009-07-29 +%% +Type: language +Subtag: zkb +Description: Koibal +Added: 2009-07-29 +%% +Type: language +Subtag: zkd +Description: Kadu +Added: 2012-08-12 +%% +Type: language +Subtag: zkg +Description: Koguryo +Added: 2009-07-29 +%% +Type: language +Subtag: zkh +Description: Khorezmian +Added: 2009-07-29 +%% +Type: language +Subtag: zkk +Description: Karankawa +Added: 2009-07-29 +%% +Type: language +Subtag: zkn +Description: Kanan +Added: 2012-08-12 +%% +Type: language +Subtag: zko +Description: Kott +Added: 2009-07-29 +%% +Type: language +Subtag: zkp +Description: São Paulo Kaingáng +Added: 2009-07-29 +%% +Type: language +Subtag: zkr +Description: Zakhring +Added: 2009-07-29 +%% +Type: language +Subtag: zkt +Description: Kitan +Added: 2009-07-29 +%% +Type: language +Subtag: zku +Description: Kaurna +Added: 2009-07-29 +%% +Type: language +Subtag: zkv +Description: Krevinian +Added: 2009-07-29 +%% +Type: language +Subtag: zkz +Description: Khazar +Added: 2009-07-29 +%% +Type: language +Subtag: zle +Description: East Slavic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: zlj +Description: Liujiang Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zlm +Description: Malay (individual language) +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: zln +Description: Lianshan Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zlq +Description: Liuqian Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zls +Description: South Slavic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: zlw +Description: West Slavic languages +Added: 2009-07-29 +Scope: collection +%% +Type: language +Subtag: zma +Description: Manda (Australia) +Added: 2009-07-29 +%% +Type: language +Subtag: zmb +Description: Zimba +Added: 2009-07-29 +%% +Type: language +Subtag: zmc +Description: Margany +Added: 2009-07-29 +%% +Type: language +Subtag: zmd +Description: Maridan +Added: 2009-07-29 +%% +Type: language +Subtag: zme +Description: Mangerr +Added: 2009-07-29 +%% +Type: language +Subtag: zmf +Description: Mfinu +Added: 2009-07-29 +%% +Type: language +Subtag: zmg +Description: Marti Ke +Added: 2009-07-29 +%% +Type: language +Subtag: zmh +Description: Makolkol +Added: 2009-07-29 +%% +Type: language +Subtag: zmi +Description: Negeri Sembilan Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: zmj +Description: Maridjabin +Added: 2009-07-29 +%% +Type: language +Subtag: zmk +Description: Mandandanyi +Added: 2009-07-29 +%% +Type: language +Subtag: zml +Description: Matngala +Added: 2009-07-29 +%% +Type: language +Subtag: zmm +Description: Marimanindji +Description: Marramaninyshi +Added: 2009-07-29 +%% +Type: language +Subtag: zmn +Description: Mbangwe +Added: 2009-07-29 +%% +Type: language +Subtag: zmo +Description: Molo +Added: 2009-07-29 +%% +Type: language +Subtag: zmp +Description: Mpuono +Added: 2009-07-29 +%% +Type: language +Subtag: zmq +Description: Mituku +Added: 2009-07-29 +%% +Type: language +Subtag: zmr +Description: Maranunggu +Added: 2009-07-29 +%% +Type: language +Subtag: zms +Description: Mbesa +Added: 2009-07-29 +%% +Type: language +Subtag: zmt +Description: Maringarr +Added: 2009-07-29 +%% +Type: language +Subtag: zmu +Description: Muruwari +Added: 2009-07-29 +%% +Type: language +Subtag: zmv +Description: Mbariman-Gudhinma +Added: 2009-07-29 +%% +Type: language +Subtag: zmw +Description: Mbo (Democratic Republic of Congo) +Added: 2009-07-29 +%% +Type: language +Subtag: zmx +Description: Bomitaba +Added: 2009-07-29 +%% +Type: language +Subtag: zmy +Description: Mariyedi +Added: 2009-07-29 +%% +Type: language +Subtag: zmz +Description: Mbandja +Added: 2009-07-29 +%% +Type: language +Subtag: zna +Description: Zan Gula +Added: 2009-07-29 +%% +Type: language +Subtag: znd +Description: Zande languages +Added: 2005-10-16 +Scope: collection +%% +Type: language +Subtag: zne +Description: Zande (individual language) +Added: 2009-07-29 +%% +Type: language +Subtag: zng +Description: Mang +Added: 2009-07-29 +%% +Type: language +Subtag: znk +Description: Manangkari +Added: 2009-07-29 +%% +Type: language +Subtag: zns +Description: Mangas +Added: 2009-07-29 +%% +Type: language +Subtag: zoc +Description: Copainalá Zoque +Added: 2009-07-29 +%% +Type: language +Subtag: zoh +Description: Chimalapa Zoque +Added: 2009-07-29 +%% +Type: language +Subtag: zom +Description: Zou +Added: 2009-07-29 +%% +Type: language +Subtag: zoo +Description: Asunción Mixtepec Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zoq +Description: Tabasco Zoque +Added: 2009-07-29 +%% +Type: language +Subtag: zor +Description: Rayón Zoque +Added: 2009-07-29 +%% +Type: language +Subtag: zos +Description: Francisco León Zoque +Added: 2009-07-29 +%% +Type: language +Subtag: zpa +Description: Lachiguiri Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpb +Description: Yautepec Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpc +Description: Choapan Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpd +Description: Southeastern Ixtlán Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpe +Description: Petapa Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpf +Description: San Pedro Quiatoni Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpg +Description: Guevea De Humboldt Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zph +Description: Totomachapan Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpi +Description: Santa María Quiegolani Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpj +Description: Quiavicuzas Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpk +Description: Tlacolulita Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpl +Description: Lachixío Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpm +Description: Mixtepec Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpn +Description: Santa Inés Yatzechi Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpo +Description: Amatlán Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpp +Description: El Alto Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpq +Description: Zoogocho Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpr +Description: Santiago Xanica Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zps +Description: Coatlán Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpt +Description: San Vicente Coatlán Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpu +Description: Yalálag Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpv +Description: Chichicapan Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpw +Description: Zaniza Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpx +Description: San Baltazar Loxicha Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpy +Description: Mazaltepec Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zpz +Description: Texmelucan Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zqe +Description: Qiubei Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zra +Description: Kara (Korea) +Added: 2009-07-29 +%% +Type: language +Subtag: zrg +Description: Mirgan +Added: 2009-07-29 +%% +Type: language +Subtag: zrn +Description: Zerenkel +Added: 2009-07-29 +%% +Type: language +Subtag: zro +Description: Záparo +Added: 2009-07-29 +%% +Type: language +Subtag: zrp +Description: Zarphatic +Added: 2009-07-29 +%% +Type: language +Subtag: zrs +Description: Mairasi +Added: 2009-07-29 +%% +Type: language +Subtag: zsa +Description: Sarasira +Added: 2009-07-29 +%% +Type: language +Subtag: zsk +Description: Kaskean +Added: 2009-07-29 +%% +Type: language +Subtag: zsl +Description: Zambian Sign Language +Added: 2009-07-29 +%% +Type: language +Subtag: zsm +Description: Standard Malay +Added: 2009-07-29 +Macrolanguage: ms +%% +Type: language +Subtag: zsr +Description: Southern Rincon Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zsu +Description: Sukurum +Added: 2009-07-29 +%% +Type: language +Subtag: zte +Description: Elotepec Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: ztg +Description: Xanaguía Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: ztl +Description: Lapaguía-Guivini Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: ztm +Description: San Agustín Mixtepec Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: ztn +Description: Santa Catarina Albarradas Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: ztp +Description: Loxicha Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: ztq +Description: Quioquitani-Quierí Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zts +Description: Tilquiapan Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: ztt +Description: Tejalapan Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: ztu +Description: Güilá Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: ztx +Description: Zaachila Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zty +Description: Yatee Zapotec +Added: 2009-07-29 +Macrolanguage: zap +%% +Type: language +Subtag: zua +Description: Zeem +Added: 2009-07-29 +%% +Type: language +Subtag: zuh +Description: Tokano +Added: 2009-07-29 +%% +Type: language +Subtag: zum +Description: Kumzari +Added: 2009-07-29 +%% +Type: language +Subtag: zun +Description: Zuni +Added: 2005-10-16 +%% +Type: language +Subtag: zuy +Description: Zumaya +Added: 2009-07-29 +%% +Type: language +Subtag: zwa +Description: Zay +Added: 2009-07-29 +%% +Type: language +Subtag: zxx +Description: No linguistic content +Description: Not applicable +Added: 2006-03-08 +Scope: special +%% +Type: language +Subtag: zyb +Description: Yongbei Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zyg +Description: Yang Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zyj +Description: Youjiang Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zyn +Description: Yongnan Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: language +Subtag: zyp +Description: Zyphe Chin +Added: 2009-07-29 +%% +Type: language +Subtag: zza +Description: Zaza +Description: Dimili +Description: Dimli (macrolanguage) +Description: Kirdki +Description: Kirmanjki (macrolanguage) +Description: Zazaki +Added: 2006-08-24 +Scope: macrolanguage +%% +Type: language +Subtag: zzj +Description: Zuojiang Zhuang +Added: 2009-07-29 +Macrolanguage: za +%% +Type: extlang +Subtag: aao +Description: Algerian Saharan Arabic +Added: 2009-07-29 +Preferred-Value: aao +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: abh +Description: Tajiki Arabic +Added: 2009-07-29 +Preferred-Value: abh +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: abv +Description: Baharna Arabic +Added: 2009-07-29 +Preferred-Value: abv +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: acm +Description: Mesopotamian Arabic +Added: 2009-07-29 +Preferred-Value: acm +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: acq +Description: Ta'izzi-Adeni Arabic +Added: 2009-07-29 +Preferred-Value: acq +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: acw +Description: Hijazi Arabic +Added: 2009-07-29 +Preferred-Value: acw +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: acx +Description: Omani Arabic +Added: 2009-07-29 +Preferred-Value: acx +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: acy +Description: Cypriot Arabic +Added: 2009-07-29 +Preferred-Value: acy +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: adf +Description: Dhofari Arabic +Added: 2009-07-29 +Preferred-Value: adf +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: ads +Description: Adamorobe Sign Language +Added: 2009-07-29 +Preferred-Value: ads +Prefix: sgn +%% +Type: extlang +Subtag: aeb +Description: Tunisian Arabic +Added: 2009-07-29 +Preferred-Value: aeb +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: aec +Description: Saidi Arabic +Added: 2009-07-29 +Preferred-Value: aec +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: aed +Description: Argentine Sign Language +Added: 2009-07-29 +Preferred-Value: aed +Prefix: sgn +%% +Type: extlang +Subtag: aen +Description: Armenian Sign Language +Added: 2009-07-29 +Preferred-Value: aen +Prefix: sgn +%% +Type: extlang +Subtag: afb +Description: Gulf Arabic +Added: 2009-07-29 +Preferred-Value: afb +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: afg +Description: Afghan Sign Language +Added: 2009-07-29 +Preferred-Value: afg +Prefix: sgn +%% +Type: extlang +Subtag: ajp +Description: South Levantine Arabic +Added: 2009-07-29 +Preferred-Value: ajp +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: apc +Description: North Levantine Arabic +Added: 2009-07-29 +Preferred-Value: apc +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: apd +Description: Sudanese Arabic +Added: 2009-07-29 +Preferred-Value: apd +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: arb +Description: Standard Arabic +Added: 2009-07-29 +Preferred-Value: arb +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: arq +Description: Algerian Arabic +Added: 2009-07-29 +Preferred-Value: arq +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: ars +Description: Najdi Arabic +Added: 2009-07-29 +Preferred-Value: ars +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: ary +Description: Moroccan Arabic +Added: 2009-07-29 +Preferred-Value: ary +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: arz +Description: Egyptian Arabic +Added: 2009-07-29 +Preferred-Value: arz +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: ase +Description: American Sign Language +Added: 2009-07-29 +Preferred-Value: ase +Prefix: sgn +%% +Type: extlang +Subtag: asf +Description: Auslan +Description: Australian Sign Language +Added: 2009-07-29 +Preferred-Value: asf +Prefix: sgn +%% +Type: extlang +Subtag: asp +Description: Algerian Sign Language +Added: 2009-07-29 +Preferred-Value: asp +Prefix: sgn +%% +Type: extlang +Subtag: asq +Description: Austrian Sign Language +Added: 2009-07-29 +Preferred-Value: asq +Prefix: sgn +%% +Type: extlang +Subtag: asw +Description: Australian Aborigines Sign Language +Added: 2009-07-29 +Preferred-Value: asw +Prefix: sgn +%% +Type: extlang +Subtag: auz +Description: Uzbeki Arabic +Added: 2009-07-29 +Preferred-Value: auz +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: avl +Description: Eastern Egyptian Bedawi Arabic +Added: 2009-07-29 +Preferred-Value: avl +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: ayh +Description: Hadrami Arabic +Added: 2009-07-29 +Preferred-Value: ayh +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: ayl +Description: Libyan Arabic +Added: 2009-07-29 +Preferred-Value: ayl +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: ayn +Description: Sanaani Arabic +Added: 2009-07-29 +Preferred-Value: ayn +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: ayp +Description: North Mesopotamian Arabic +Added: 2009-07-29 +Preferred-Value: ayp +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: bbz +Description: Babalia Creole Arabic +Added: 2009-07-29 +Preferred-Value: bbz +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: bfi +Description: British Sign Language +Added: 2009-07-29 +Preferred-Value: bfi +Prefix: sgn +%% +Type: extlang +Subtag: bfk +Description: Ban Khor Sign Language +Added: 2009-07-29 +Preferred-Value: bfk +Prefix: sgn +%% +Type: extlang +Subtag: bjn +Description: Banjar +Added: 2009-07-29 +Preferred-Value: bjn +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: bog +Description: Bamako Sign Language +Added: 2009-07-29 +Preferred-Value: bog +Prefix: sgn +%% +Type: extlang +Subtag: bqn +Description: Bulgarian Sign Language +Added: 2009-07-29 +Preferred-Value: bqn +Prefix: sgn +%% +Type: extlang +Subtag: bqy +Description: Bengkala Sign Language +Added: 2009-07-29 +Preferred-Value: bqy +Prefix: sgn +%% +Type: extlang +Subtag: btj +Description: Bacanese Malay +Added: 2009-07-29 +Preferred-Value: btj +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: bve +Description: Berau Malay +Added: 2009-07-29 +Preferred-Value: bve +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: bvl +Description: Bolivian Sign Language +Added: 2009-07-29 +Preferred-Value: bvl +Prefix: sgn +%% +Type: extlang +Subtag: bvu +Description: Bukit Malay +Added: 2009-07-29 +Preferred-Value: bvu +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: bzs +Description: Brazilian Sign Language +Added: 2009-07-29 +Preferred-Value: bzs +Prefix: sgn +%% +Type: extlang +Subtag: cdo +Description: Min Dong Chinese +Added: 2009-07-29 +Preferred-Value: cdo +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: cds +Description: Chadian Sign Language +Added: 2009-07-29 +Preferred-Value: cds +Prefix: sgn +%% +Type: extlang +Subtag: cjy +Description: Jinyu Chinese +Added: 2009-07-29 +Preferred-Value: cjy +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: cmn +Description: Mandarin Chinese +Added: 2009-07-29 +Preferred-Value: cmn +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: coa +Description: Cocos Islands Malay +Added: 2009-07-29 +Preferred-Value: coa +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: cpx +Description: Pu-Xian Chinese +Added: 2009-07-29 +Preferred-Value: cpx +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: csc +Description: Catalan Sign Language +Description: Lengua de señas catalana +Description: Llengua de Signes Catalana +Added: 2009-07-29 +Preferred-Value: csc +Prefix: sgn +%% +Type: extlang +Subtag: csd +Description: Chiangmai Sign Language +Added: 2009-07-29 +Preferred-Value: csd +Prefix: sgn +%% +Type: extlang +Subtag: cse +Description: Czech Sign Language +Added: 2009-07-29 +Preferred-Value: cse +Prefix: sgn +%% +Type: extlang +Subtag: csf +Description: Cuba Sign Language +Added: 2009-07-29 +Preferred-Value: csf +Prefix: sgn +%% +Type: extlang +Subtag: csg +Description: Chilean Sign Language +Added: 2009-07-29 +Preferred-Value: csg +Prefix: sgn +%% +Type: extlang +Subtag: csl +Description: Chinese Sign Language +Added: 2009-07-29 +Preferred-Value: csl +Prefix: sgn +%% +Type: extlang +Subtag: csn +Description: Colombian Sign Language +Added: 2009-07-29 +Preferred-Value: csn +Prefix: sgn +%% +Type: extlang +Subtag: csq +Description: Croatia Sign Language +Added: 2009-07-29 +Preferred-Value: csq +Prefix: sgn +%% +Type: extlang +Subtag: csr +Description: Costa Rican Sign Language +Added: 2009-07-29 +Preferred-Value: csr +Prefix: sgn +%% +Type: extlang +Subtag: czh +Description: Huizhou Chinese +Added: 2009-07-29 +Preferred-Value: czh +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: czo +Description: Min Zhong Chinese +Added: 2009-07-29 +Preferred-Value: czo +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: doq +Description: Dominican Sign Language +Added: 2009-07-29 +Preferred-Value: doq +Prefix: sgn +%% +Type: extlang +Subtag: dse +Description: Dutch Sign Language +Added: 2009-07-29 +Preferred-Value: dse +Prefix: sgn +%% +Type: extlang +Subtag: dsl +Description: Danish Sign Language +Added: 2009-07-29 +Preferred-Value: dsl +Prefix: sgn +%% +Type: extlang +Subtag: dup +Description: Duano +Added: 2009-07-29 +Preferred-Value: dup +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: ecs +Description: Ecuadorian Sign Language +Added: 2009-07-29 +Preferred-Value: ecs +Prefix: sgn +%% +Type: extlang +Subtag: esl +Description: Egypt Sign Language +Added: 2009-07-29 +Preferred-Value: esl +Prefix: sgn +%% +Type: extlang +Subtag: esn +Description: Salvadoran Sign Language +Added: 2009-07-29 +Preferred-Value: esn +Prefix: sgn +%% +Type: extlang +Subtag: eso +Description: Estonian Sign Language +Added: 2009-07-29 +Preferred-Value: eso +Prefix: sgn +%% +Type: extlang +Subtag: eth +Description: Ethiopian Sign Language +Added: 2009-07-29 +Preferred-Value: eth +Prefix: sgn +%% +Type: extlang +Subtag: fcs +Description: Quebec Sign Language +Added: 2009-07-29 +Preferred-Value: fcs +Prefix: sgn +%% +Type: extlang +Subtag: fse +Description: Finnish Sign Language +Added: 2009-07-29 +Preferred-Value: fse +Prefix: sgn +%% +Type: extlang +Subtag: fsl +Description: French Sign Language +Added: 2009-07-29 +Preferred-Value: fsl +Prefix: sgn +%% +Type: extlang +Subtag: fss +Description: Finland-Swedish Sign Language +Description: finlandssvenskt teckenspråk +Description: suomenruotsalainen viittomakieli +Added: 2009-07-29 +Preferred-Value: fss +Prefix: sgn +%% +Type: extlang +Subtag: gan +Description: Gan Chinese +Added: 2009-07-29 +Preferred-Value: gan +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: gds +Description: Ghandruk Sign Language +Added: 2012-08-12 +Preferred-Value: gds +Prefix: sgn +%% +Type: extlang +Subtag: gom +Description: Goan Konkani +Added: 2009-07-29 +Preferred-Value: gom +Prefix: kok +Macrolanguage: kok +%% +Type: extlang +Subtag: gse +Description: Ghanaian Sign Language +Added: 2009-07-29 +Preferred-Value: gse +Prefix: sgn +%% +Type: extlang +Subtag: gsg +Description: German Sign Language +Added: 2009-07-29 +Preferred-Value: gsg +Prefix: sgn +%% +Type: extlang +Subtag: gsm +Description: Guatemalan Sign Language +Added: 2009-07-29 +Preferred-Value: gsm +Prefix: sgn +%% +Type: extlang +Subtag: gss +Description: Greek Sign Language +Added: 2009-07-29 +Preferred-Value: gss +Prefix: sgn +%% +Type: extlang +Subtag: gus +Description: Guinean Sign Language +Added: 2009-07-29 +Preferred-Value: gus +Prefix: sgn +%% +Type: extlang +Subtag: hab +Description: Hanoi Sign Language +Added: 2009-07-29 +Preferred-Value: hab +Prefix: sgn +%% +Type: extlang +Subtag: haf +Description: Haiphong Sign Language +Added: 2009-07-29 +Preferred-Value: haf +Prefix: sgn +%% +Type: extlang +Subtag: hak +Description: Hakka Chinese +Added: 2009-07-29 +Preferred-Value: hak +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: hds +Description: Honduras Sign Language +Added: 2009-07-29 +Preferred-Value: hds +Prefix: sgn +%% +Type: extlang +Subtag: hji +Description: Haji +Added: 2009-07-29 +Preferred-Value: hji +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: hks +Description: Hong Kong Sign Language +Description: Heung Kong Sau Yue +Added: 2009-07-29 +Preferred-Value: hks +Prefix: sgn +%% +Type: extlang +Subtag: hos +Description: Ho Chi Minh City Sign Language +Added: 2009-07-29 +Preferred-Value: hos +Prefix: sgn +%% +Type: extlang +Subtag: hps +Description: Hawai'i Sign Language (HSL) +Description: Hawai'i Pidgin Sign Language +Added: 2009-07-29 +Preferred-Value: hps +Prefix: sgn +%% +Type: extlang +Subtag: hsh +Description: Hungarian Sign Language +Added: 2009-07-29 +Preferred-Value: hsh +Prefix: sgn +%% +Type: extlang +Subtag: hsl +Description: Hausa Sign Language +Added: 2009-07-29 +Preferred-Value: hsl +Prefix: sgn +%% +Type: extlang +Subtag: hsn +Description: Xiang Chinese +Added: 2009-07-29 +Preferred-Value: hsn +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: icl +Description: Icelandic Sign Language +Added: 2009-07-29 +Preferred-Value: icl +Prefix: sgn +%% +Type: extlang +Subtag: iks +Description: Inuit Sign Language +Added: 2015-02-12 +Preferred-Value: iks +Prefix: sgn +%% +Type: extlang +Subtag: ils +Description: International Sign +Added: 2009-07-29 +Preferred-Value: ils +Prefix: sgn +%% +Type: extlang +Subtag: inl +Description: Indonesian Sign Language +Added: 2009-07-29 +Preferred-Value: inl +Prefix: sgn +%% +Type: extlang +Subtag: ins +Description: Indian Sign Language +Added: 2009-07-29 +Preferred-Value: ins +Prefix: sgn +%% +Type: extlang +Subtag: ise +Description: Italian Sign Language +Added: 2009-07-29 +Preferred-Value: ise +Prefix: sgn +%% +Type: extlang +Subtag: isg +Description: Irish Sign Language +Added: 2009-07-29 +Preferred-Value: isg +Prefix: sgn +%% +Type: extlang +Subtag: isr +Description: Israeli Sign Language +Added: 2009-07-29 +Preferred-Value: isr +Prefix: sgn +%% +Type: extlang +Subtag: jak +Description: Jakun +Added: 2009-07-29 +Preferred-Value: jak +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: jax +Description: Jambi Malay +Added: 2009-07-29 +Preferred-Value: jax +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: jcs +Description: Jamaican Country Sign Language +Added: 2009-07-29 +Preferred-Value: jcs +Prefix: sgn +%% +Type: extlang +Subtag: jhs +Description: Jhankot Sign Language +Added: 2009-07-29 +Preferred-Value: jhs +Prefix: sgn +%% +Type: extlang +Subtag: jls +Description: Jamaican Sign Language +Added: 2010-03-11 +Preferred-Value: jls +Prefix: sgn +%% +Type: extlang +Subtag: jos +Description: Jordanian Sign Language +Added: 2009-07-29 +Preferred-Value: jos +Prefix: sgn +%% +Type: extlang +Subtag: jsl +Description: Japanese Sign Language +Added: 2009-07-29 +Preferred-Value: jsl +Prefix: sgn +%% +Type: extlang +Subtag: jus +Description: Jumla Sign Language +Added: 2009-07-29 +Preferred-Value: jus +Prefix: sgn +%% +Type: extlang +Subtag: kgi +Description: Selangor Sign Language +Added: 2009-07-29 +Preferred-Value: kgi +Prefix: sgn +%% +Type: extlang +Subtag: knn +Description: Konkani (individual language) +Added: 2009-07-29 +Preferred-Value: knn +Prefix: kok +Macrolanguage: kok +%% +Type: extlang +Subtag: kvb +Description: Kubu +Added: 2009-07-29 +Preferred-Value: kvb +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: kvk +Description: Korean Sign Language +Added: 2009-07-29 +Preferred-Value: kvk +Prefix: sgn +%% +Type: extlang +Subtag: kvr +Description: Kerinci +Added: 2009-07-29 +Preferred-Value: kvr +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: kxd +Description: Brunei +Added: 2009-07-29 +Preferred-Value: kxd +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: lbs +Description: Libyan Sign Language +Added: 2009-07-29 +Preferred-Value: lbs +Prefix: sgn +%% +Type: extlang +Subtag: lce +Description: Loncong +Description: Sekak +Added: 2009-07-29 +Preferred-Value: lce +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: lcf +Description: Lubu +Added: 2009-07-29 +Preferred-Value: lcf +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: liw +Description: Col +Added: 2009-07-29 +Preferred-Value: liw +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: lls +Description: Lithuanian Sign Language +Added: 2009-07-29 +Preferred-Value: lls +Prefix: sgn +%% +Type: extlang +Subtag: lsg +Description: Lyons Sign Language +Added: 2009-07-29 +Deprecated: 2018-03-08 +Preferred-Value: lsg +Prefix: sgn +%% +Type: extlang +Subtag: lsl +Description: Latvian Sign Language +Added: 2009-07-29 +Preferred-Value: lsl +Prefix: sgn +%% +Type: extlang +Subtag: lsn +Description: Tibetan Sign Language +Added: 2019-04-16 +Preferred-Value: lsn +Prefix: sgn +%% +Type: extlang +Subtag: lso +Description: Laos Sign Language +Added: 2009-07-29 +Preferred-Value: lso +Prefix: sgn +%% +Type: extlang +Subtag: lsp +Description: Panamanian Sign Language +Description: Lengua de Señas Panameñas +Added: 2009-07-29 +Preferred-Value: lsp +Prefix: sgn +%% +Type: extlang +Subtag: lst +Description: Trinidad and Tobago Sign Language +Added: 2009-07-29 +Preferred-Value: lst +Prefix: sgn +%% +Type: extlang +Subtag: lsv +Description: Sivia Sign Language +Added: 2019-04-16 +Preferred-Value: lsv +Prefix: sgn +%% +Type: extlang +Subtag: lsy +Description: Mauritian Sign Language +Added: 2010-03-11 +Preferred-Value: lsy +Prefix: sgn +%% +Type: extlang +Subtag: ltg +Description: Latgalian +Added: 2010-03-11 +Preferred-Value: ltg +Prefix: lv +Macrolanguage: lv +%% +Type: extlang +Subtag: lvs +Description: Standard Latvian +Added: 2010-03-11 +Preferred-Value: lvs +Prefix: lv +Macrolanguage: lv +%% +Type: extlang +Subtag: lws +Description: Malawian Sign Language +Added: 2018-03-08 +Preferred-Value: lws +Prefix: sgn +%% +Type: extlang +Subtag: lzh +Description: Literary Chinese +Added: 2009-07-29 +Preferred-Value: lzh +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: max +Description: North Moluccan Malay +Added: 2009-07-29 +Preferred-Value: max +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: mdl +Description: Maltese Sign Language +Added: 2009-07-29 +Preferred-Value: mdl +Prefix: sgn +%% +Type: extlang +Subtag: meo +Description: Kedah Malay +Added: 2009-07-29 +Preferred-Value: meo +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: mfa +Description: Pattani Malay +Added: 2009-07-29 +Preferred-Value: mfa +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: mfb +Description: Bangka +Added: 2009-07-29 +Preferred-Value: mfb +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: mfs +Description: Mexican Sign Language +Added: 2009-07-29 +Preferred-Value: mfs +Prefix: sgn +%% +Type: extlang +Subtag: min +Description: Minangkabau +Added: 2009-07-29 +Preferred-Value: min +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: mnp +Description: Min Bei Chinese +Added: 2009-07-29 +Preferred-Value: mnp +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: mqg +Description: Kota Bangun Kutai Malay +Added: 2009-07-29 +Preferred-Value: mqg +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: mre +Description: Martha's Vineyard Sign Language +Added: 2009-07-29 +Preferred-Value: mre +Prefix: sgn +%% +Type: extlang +Subtag: msd +Description: Yucatec Maya Sign Language +Added: 2009-07-29 +Preferred-Value: msd +Prefix: sgn +%% +Type: extlang +Subtag: msi +Description: Sabah Malay +Added: 2009-07-29 +Preferred-Value: msi +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: msr +Description: Mongolian Sign Language +Added: 2009-07-29 +Preferred-Value: msr +Prefix: sgn +%% +Type: extlang +Subtag: mui +Description: Musi +Added: 2009-07-29 +Preferred-Value: mui +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: mzc +Description: Madagascar Sign Language +Added: 2009-07-29 +Preferred-Value: mzc +Prefix: sgn +%% +Type: extlang +Subtag: mzg +Description: Monastic Sign Language +Added: 2009-07-29 +Preferred-Value: mzg +Prefix: sgn +%% +Type: extlang +Subtag: mzy +Description: Mozambican Sign Language +Added: 2009-07-29 +Preferred-Value: mzy +Prefix: sgn +%% +Type: extlang +Subtag: nan +Description: Min Nan Chinese +Added: 2009-07-29 +Preferred-Value: nan +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: nbs +Description: Namibian Sign Language +Added: 2009-07-29 +Preferred-Value: nbs +Prefix: sgn +%% +Type: extlang +Subtag: ncs +Description: Nicaraguan Sign Language +Added: 2009-07-29 +Preferred-Value: ncs +Prefix: sgn +%% +Type: extlang +Subtag: nsi +Description: Nigerian Sign Language +Added: 2009-07-29 +Preferred-Value: nsi +Prefix: sgn +%% +Type: extlang +Subtag: nsl +Description: Norwegian Sign Language +Added: 2009-07-29 +Preferred-Value: nsl +Prefix: sgn +%% +Type: extlang +Subtag: nsp +Description: Nepalese Sign Language +Added: 2009-07-29 +Preferred-Value: nsp +Prefix: sgn +%% +Type: extlang +Subtag: nsr +Description: Maritime Sign Language +Added: 2009-07-29 +Preferred-Value: nsr +Prefix: sgn +%% +Type: extlang +Subtag: nzs +Description: New Zealand Sign Language +Added: 2009-07-29 +Preferred-Value: nzs +Prefix: sgn +%% +Type: extlang +Subtag: okl +Description: Old Kentish Sign Language +Added: 2009-07-29 +Preferred-Value: okl +Prefix: sgn +%% +Type: extlang +Subtag: orn +Description: Orang Kanaq +Added: 2009-07-29 +Preferred-Value: orn +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: ors +Description: Orang Seletar +Added: 2009-07-29 +Preferred-Value: ors +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: pel +Description: Pekal +Added: 2009-07-29 +Preferred-Value: pel +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: pga +Description: Sudanese Creole Arabic +Added: 2009-07-29 +Preferred-Value: pga +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: pgz +Description: Papua New Guinean Sign Language +Added: 2016-05-30 +Preferred-Value: pgz +Prefix: sgn +%% +Type: extlang +Subtag: pks +Description: Pakistan Sign Language +Added: 2009-07-29 +Preferred-Value: pks +Prefix: sgn +%% +Type: extlang +Subtag: prl +Description: Peruvian Sign Language +Added: 2009-07-29 +Preferred-Value: prl +Prefix: sgn +%% +Type: extlang +Subtag: prz +Description: Providencia Sign Language +Added: 2009-07-29 +Preferred-Value: prz +Prefix: sgn +%% +Type: extlang +Subtag: psc +Description: Persian Sign Language +Added: 2009-07-29 +Preferred-Value: psc +Prefix: sgn +%% +Type: extlang +Subtag: psd +Description: Plains Indian Sign Language +Added: 2009-07-29 +Preferred-Value: psd +Prefix: sgn +%% +Type: extlang +Subtag: pse +Description: Central Malay +Added: 2009-07-29 +Preferred-Value: pse +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: psg +Description: Penang Sign Language +Added: 2009-07-29 +Preferred-Value: psg +Prefix: sgn +%% +Type: extlang +Subtag: psl +Description: Puerto Rican Sign Language +Added: 2009-07-29 +Preferred-Value: psl +Prefix: sgn +%% +Type: extlang +Subtag: pso +Description: Polish Sign Language +Added: 2009-07-29 +Preferred-Value: pso +Prefix: sgn +%% +Type: extlang +Subtag: psp +Description: Philippine Sign Language +Added: 2009-07-29 +Preferred-Value: psp +Prefix: sgn +%% +Type: extlang +Subtag: psr +Description: Portuguese Sign Language +Added: 2009-07-29 +Preferred-Value: psr +Prefix: sgn +%% +Type: extlang +Subtag: pys +Description: Paraguayan Sign Language +Description: Lengua de Señas del Paraguay +Added: 2010-03-11 +Preferred-Value: pys +Prefix: sgn +%% +Type: extlang +Subtag: rms +Description: Romanian Sign Language +Added: 2009-07-29 +Preferred-Value: rms +Prefix: sgn +%% +Type: extlang +Subtag: rsi +Description: Rennellese Sign Language +Added: 2009-07-29 +Deprecated: 2017-02-23 +Preferred-Value: rsi +Prefix: sgn +%% +Type: extlang +Subtag: rsl +Description: Russian Sign Language +Added: 2009-07-29 +Preferred-Value: rsl +Prefix: sgn +%% +Type: extlang +Subtag: rsm +Description: Miriwoong Sign Language +Added: 2016-05-30 +Preferred-Value: rsm +Prefix: sgn +%% +Type: extlang +Subtag: sdl +Description: Saudi Arabian Sign Language +Added: 2009-07-29 +Preferred-Value: sdl +Prefix: sgn +%% +Type: extlang +Subtag: sfb +Description: Langue des signes de Belgique Francophone +Description: French Belgian Sign Language +Added: 2009-07-29 +Preferred-Value: sfb +Prefix: sgn +%% +Type: extlang +Subtag: sfs +Description: South African Sign Language +Added: 2009-07-29 +Preferred-Value: sfs +Prefix: sgn +%% +Type: extlang +Subtag: sgg +Description: Swiss-German Sign Language +Added: 2009-07-29 +Preferred-Value: sgg +Prefix: sgn +%% +Type: extlang +Subtag: sgx +Description: Sierra Leone Sign Language +Added: 2009-07-29 +Preferred-Value: sgx +Prefix: sgn +%% +Type: extlang +Subtag: shu +Description: Chadian Arabic +Added: 2009-07-29 +Preferred-Value: shu +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: slf +Description: Swiss-Italian Sign Language +Added: 2009-07-29 +Preferred-Value: slf +Prefix: sgn +%% +Type: extlang +Subtag: sls +Description: Singapore Sign Language +Added: 2009-07-29 +Preferred-Value: sls +Prefix: sgn +%% +Type: extlang +Subtag: sqk +Description: Albanian Sign Language +Added: 2012-08-12 +Preferred-Value: sqk +Prefix: sgn +%% +Type: extlang +Subtag: sqs +Description: Sri Lankan Sign Language +Added: 2009-07-29 +Preferred-Value: sqs +Prefix: sgn +%% +Type: extlang +Subtag: ssh +Description: Shihhi Arabic +Added: 2009-07-29 +Preferred-Value: ssh +Prefix: ar +Macrolanguage: ar +%% +Type: extlang +Subtag: ssp +Description: Spanish Sign Language +Added: 2009-07-29 +Preferred-Value: ssp +Prefix: sgn +%% +Type: extlang +Subtag: ssr +Description: Swiss-French Sign Language +Added: 2009-07-29 +Preferred-Value: ssr +Prefix: sgn +%% +Type: extlang +Subtag: svk +Description: Slovakian Sign Language +Added: 2009-07-29 +Preferred-Value: svk +Prefix: sgn +%% +Type: extlang +Subtag: swc +Description: Congo Swahili +Added: 2009-07-29 +Preferred-Value: swc +Prefix: sw +Macrolanguage: sw +%% +Type: extlang +Subtag: swh +Description: Swahili (individual language) +Description: Kiswahili +Added: 2009-07-29 +Preferred-Value: swh +Prefix: sw +Macrolanguage: sw +%% +Type: extlang +Subtag: swl +Description: Swedish Sign Language +Added: 2009-07-29 +Preferred-Value: swl +Prefix: sgn +%% +Type: extlang +Subtag: syy +Description: Al-Sayyid Bedouin Sign Language +Added: 2009-07-29 +Preferred-Value: syy +Prefix: sgn +%% +Type: extlang +Subtag: szs +Description: Solomon Islands Sign Language +Added: 2017-02-23 +Preferred-Value: szs +Prefix: sgn +%% +Type: extlang +Subtag: tmw +Description: Temuan +Added: 2009-07-29 +Preferred-Value: tmw +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: tse +Description: Tunisian Sign Language +Added: 2009-07-29 +Preferred-Value: tse +Prefix: sgn +%% +Type: extlang +Subtag: tsm +Description: Turkish Sign Language +Description: Türk İşaret Dili +Added: 2009-07-29 +Preferred-Value: tsm +Prefix: sgn +%% +Type: extlang +Subtag: tsq +Description: Thai Sign Language +Added: 2009-07-29 +Preferred-Value: tsq +Prefix: sgn +%% +Type: extlang +Subtag: tss +Description: Taiwan Sign Language +Added: 2009-07-29 +Preferred-Value: tss +Prefix: sgn +%% +Type: extlang +Subtag: tsy +Description: Tebul Sign Language +Added: 2009-07-29 +Preferred-Value: tsy +Prefix: sgn +%% +Type: extlang +Subtag: tza +Description: Tanzanian Sign Language +Added: 2009-07-29 +Preferred-Value: tza +Prefix: sgn +%% +Type: extlang +Subtag: ugn +Description: Ugandan Sign Language +Added: 2009-07-29 +Preferred-Value: ugn +Prefix: sgn +%% +Type: extlang +Subtag: ugy +Description: Uruguayan Sign Language +Added: 2009-07-29 +Preferred-Value: ugy +Prefix: sgn +%% +Type: extlang +Subtag: ukl +Description: Ukrainian Sign Language +Added: 2009-07-29 +Preferred-Value: ukl +Prefix: sgn +%% +Type: extlang +Subtag: uks +Description: Urubú-Kaapor Sign Language +Description: Kaapor Sign Language +Added: 2009-07-29 +Preferred-Value: uks +Prefix: sgn +%% +Type: extlang +Subtag: urk +Description: Urak Lawoi' +Added: 2009-07-29 +Preferred-Value: urk +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: uzn +Description: Northern Uzbek +Added: 2009-07-29 +Preferred-Value: uzn +Prefix: uz +Macrolanguage: uz +%% +Type: extlang +Subtag: uzs +Description: Southern Uzbek +Added: 2009-07-29 +Preferred-Value: uzs +Prefix: uz +Macrolanguage: uz +%% +Type: extlang +Subtag: vgt +Description: Vlaamse Gebarentaal +Description: Flemish Sign Language +Added: 2009-07-29 +Preferred-Value: vgt +Prefix: sgn +%% +Type: extlang +Subtag: vkk +Description: Kaur +Added: 2009-07-29 +Preferred-Value: vkk +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: vkt +Description: Tenggarong Kutai Malay +Added: 2009-07-29 +Preferred-Value: vkt +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: vsi +Description: Moldova Sign Language +Added: 2009-07-29 +Preferred-Value: vsi +Prefix: sgn +%% +Type: extlang +Subtag: vsl +Description: Venezuelan Sign Language +Added: 2009-07-29 +Preferred-Value: vsl +Prefix: sgn +%% +Type: extlang +Subtag: vsv +Description: Valencian Sign Language +Description: Llengua de signes valenciana +Added: 2009-07-29 +Preferred-Value: vsv +Prefix: sgn +%% +Type: extlang +Subtag: wbs +Description: West Bengal Sign Language +Added: 2017-02-23 +Preferred-Value: wbs +Prefix: sgn +%% +Type: extlang +Subtag: wuu +Description: Wu Chinese +Added: 2009-07-29 +Preferred-Value: wuu +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: xki +Description: Kenyan Sign Language +Added: 2009-07-29 +Preferred-Value: xki +Prefix: sgn +%% +Type: extlang +Subtag: xml +Description: Malaysian Sign Language +Added: 2009-07-29 +Preferred-Value: xml +Prefix: sgn +%% +Type: extlang +Subtag: xmm +Description: Manado Malay +Added: 2009-07-29 +Preferred-Value: xmm +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: xms +Description: Moroccan Sign Language +Added: 2009-07-29 +Preferred-Value: xms +Prefix: sgn +%% +Type: extlang +Subtag: yds +Description: Yiddish Sign Language +Added: 2009-07-29 +Deprecated: 2015-02-12 +Preferred-Value: yds +Prefix: sgn +%% +Type: extlang +Subtag: ygs +Description: Yolŋu Sign Language +Added: 2014-02-28 +Preferred-Value: ygs +Prefix: sgn +%% +Type: extlang +Subtag: yhs +Description: Yan-nhaŋu Sign Language +Added: 2015-04-17 +Preferred-Value: yhs +Prefix: sgn +%% +Type: extlang +Subtag: ysl +Description: Yugoslavian Sign Language +Added: 2009-07-29 +Preferred-Value: ysl +Prefix: sgn +%% +Type: extlang +Subtag: yue +Description: Yue Chinese +Description: Cantonese +Added: 2009-07-29 +Preferred-Value: yue +Prefix: zh +Macrolanguage: zh +%% +Type: extlang +Subtag: zib +Description: Zimbabwe Sign Language +Added: 2009-07-29 +Preferred-Value: zib +Prefix: sgn +%% +Type: extlang +Subtag: zlm +Description: Malay (individual language) +Added: 2009-07-29 +Preferred-Value: zlm +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: zmi +Description: Negeri Sembilan Malay +Added: 2009-07-29 +Preferred-Value: zmi +Prefix: ms +Macrolanguage: ms +%% +Type: extlang +Subtag: zsl +Description: Zambian Sign Language +Added: 2009-07-29 +Preferred-Value: zsl +Prefix: sgn +%% +Type: extlang +Subtag: zsm +Description: Standard Malay +Added: 2009-07-29 +Preferred-Value: zsm +Prefix: ms +Macrolanguage: ms +%% +Type: script +Subtag: Adlm +Description: Adlam +Added: 2014-12-11 +%% +Type: script +Subtag: Afak +Description: Afaka +Added: 2011-01-07 +%% +Type: script +Subtag: Aghb +Description: Caucasian Albanian +Added: 2012-11-01 +%% +Type: script +Subtag: Ahom +Description: Ahom +Description: Tai Ahom +Added: 2013-12-02 +%% +Type: script +Subtag: Arab +Description: Arabic +Added: 2005-10-16 +%% +Type: script +Subtag: Aran +Description: Arabic (Nastaliq variant) +Added: 2014-12-11 +%% +Type: script +Subtag: Armi +Description: Imperial Aramaic +Added: 2007-12-05 +%% +Type: script +Subtag: Armn +Description: Armenian +Added: 2005-10-16 +%% +Type: script +Subtag: Avst +Description: Avestan +Added: 2007-07-28 +%% +Type: script +Subtag: Bali +Description: Balinese +Added: 2005-10-16 +%% +Type: script +Subtag: Bamu +Description: Bamum +Added: 2009-07-30 +%% +Type: script +Subtag: Bass +Description: Bassa Vah +Added: 2010-04-10 +%% +Type: script +Subtag: Batk +Description: Batak +Added: 2005-10-16 +%% +Type: script +Subtag: Beng +Description: Bengali +Description: Bangla +Added: 2005-10-16 +%% +Type: script +Subtag: Bhks +Description: Bhaiksuki +Added: 2015-07-24 +%% +Type: script +Subtag: Blis +Description: Blissymbols +Added: 2005-10-16 +%% +Type: script +Subtag: Bopo +Description: Bopomofo +Added: 2005-10-16 +%% +Type: script +Subtag: Brah +Description: Brahmi +Added: 2005-10-16 +%% +Type: script +Subtag: Brai +Description: Braille +Added: 2005-10-16 +%% +Type: script +Subtag: Bugi +Description: Buginese +Added: 2005-10-16 +%% +Type: script +Subtag: Buhd +Description: Buhid +Added: 2005-10-16 +%% +Type: script +Subtag: Cakm +Description: Chakma +Added: 2007-12-05 +%% +Type: script +Subtag: Cans +Description: Unified Canadian Aboriginal Syllabics +Added: 2005-10-16 +%% +Type: script +Subtag: Cari +Description: Carian +Added: 2006-07-21 +%% +Type: script +Subtag: Cham +Description: Cham +Added: 2005-10-16 +%% +Type: script +Subtag: Cher +Description: Cherokee +Added: 2005-10-16 +%% +Type: script +Subtag: Chrs +Description: Chorasmian +Added: 2019-09-11 +%% +Type: script +Subtag: Cirt +Description: Cirth +Added: 2005-10-16 +%% +Type: script +Subtag: Copt +Description: Coptic +Added: 2005-10-16 +%% +Type: script +Subtag: Cpmn +Description: Cypro-Minoan +Added: 2017-08-13 +%% +Type: script +Subtag: Cprt +Description: Cypriot syllabary +Added: 2005-10-16 +%% +Type: script +Subtag: Cyrl +Description: Cyrillic +Added: 2005-10-16 +%% +Type: script +Subtag: Cyrs +Description: Cyrillic (Old Church Slavonic variant) +Added: 2005-10-16 +%% +Type: script +Subtag: Deva +Description: Devanagari +Description: Nagari +Added: 2005-10-16 +%% +Type: script +Subtag: Diak +Description: Dives Akuru +Added: 2019-09-11 +%% +Type: script +Subtag: Dogr +Description: Dogra +Added: 2017-01-13 +%% +Type: script +Subtag: Dsrt +Description: Deseret +Description: Mormon +Added: 2005-10-16 +%% +Type: script +Subtag: Dupl +Description: Duployan shorthand +Description: Duployan stenography +Added: 2010-08-16 +%% +Type: script +Subtag: Egyd +Description: Egyptian demotic +Added: 2005-10-16 +%% +Type: script +Subtag: Egyh +Description: Egyptian hieratic +Added: 2005-10-16 +%% +Type: script +Subtag: Egyp +Description: Egyptian hieroglyphs +Added: 2005-10-16 +%% +Type: script +Subtag: Elba +Description: Elbasan +Added: 2010-08-16 +%% +Type: script +Subtag: Elym +Description: Elymaic +Added: 2018-10-28 +%% +Type: script +Subtag: Ethi +Description: Ethiopic +Description: Geʻez +Description: Ge'ez +Added: 2005-10-16 +%% +Type: script +Subtag: Geok +Description: Khutsuri (Asomtavruli and Nuskhuri) +Added: 2005-10-16 +%% +Type: script +Subtag: Geor +Description: Georgian (Mkhedruli and Mtavruli) +Added: 2005-10-16 +%% +Type: script +Subtag: Glag +Description: Glagolitic +Added: 2005-10-16 +%% +Type: script +Subtag: Gong +Description: Gunjala Gondi +Added: 2017-01-13 +%% +Type: script +Subtag: Gonm +Description: Masaram Gondi +Added: 2017-01-13 +%% +Type: script +Subtag: Goth +Description: Gothic +Added: 2005-10-16 +%% +Type: script +Subtag: Gran +Description: Grantha +Added: 2009-12-09 +%% +Type: script +Subtag: Grek +Description: Greek +Added: 2005-10-16 +%% +Type: script +Subtag: Gujr +Description: Gujarati +Added: 2005-10-16 +%% +Type: script +Subtag: Guru +Description: Gurmukhi +Added: 2005-10-16 +%% +Type: script +Subtag: Hanb +Description: Han with Bopomofo (alias for Han + Bopomofo) +Added: 2016-02-08 +%% +Type: script +Subtag: Hang +Description: Hangul +Description: Hangŭl +Description: Hangeul +Added: 2005-10-16 +%% +Type: script +Subtag: Hani +Description: Han +Description: Hanzi +Description: Kanji +Description: Hanja +Added: 2005-10-16 +%% +Type: script +Subtag: Hano +Description: Hanunoo +Description: Hanunóo +Added: 2005-10-16 +%% +Type: script +Subtag: Hans +Description: Han (Simplified variant) +Added: 2005-10-16 +%% +Type: script +Subtag: Hant +Description: Han (Traditional variant) +Added: 2005-10-16 +%% +Type: script +Subtag: Hatr +Description: Hatran +Added: 2013-12-02 +%% +Type: script +Subtag: Hebr +Description: Hebrew +Added: 2005-10-16 +%% +Type: script +Subtag: Hira +Description: Hiragana +Added: 2005-10-16 +%% +Type: script +Subtag: Hluw +Description: Anatolian Hieroglyphs +Description: Luwian Hieroglyphs +Description: Hittite Hieroglyphs +Added: 2011-12-28 +%% +Type: script +Subtag: Hmng +Description: Pahawh Hmong +Added: 2005-10-16 +%% +Type: script +Subtag: Hmnp +Description: Nyiakeng Puachue Hmong +Added: 2017-08-13 +%% +Type: script +Subtag: Hrkt +Description: Japanese syllabaries (alias for Hiragana + Katakana) +Added: 2005-10-16 +%% +Type: script +Subtag: Hung +Description: Old Hungarian +Description: Hungarian Runic +Added: 2005-10-16 +%% +Type: script +Subtag: Inds +Description: Indus +Description: Harappan +Added: 2005-10-16 +%% +Type: script +Subtag: Ital +Description: Old Italic (Etruscan, Oscan, etc.) +Added: 2005-10-16 +%% +Type: script +Subtag: Jamo +Description: Jamo (alias for Jamo subset of Hangul) +Added: 2016-02-08 +%% +Type: script +Subtag: Java +Description: Javanese +Added: 2005-10-16 +%% +Type: script +Subtag: Jpan +Description: Japanese (alias for Han + Hiragana + Katakana) +Added: 2006-07-21 +%% +Type: script +Subtag: Jurc +Description: Jurchen +Added: 2011-01-07 +%% +Type: script +Subtag: Kali +Description: Kayah Li +Added: 2005-10-16 +%% +Type: script +Subtag: Kana +Description: Katakana +Added: 2005-10-16 +%% +Type: script +Subtag: Khar +Description: Kharoshthi +Added: 2005-10-16 +%% +Type: script +Subtag: Khmr +Description: Khmer +Added: 2005-10-16 +%% +Type: script +Subtag: Khoj +Description: Khojki +Added: 2011-08-16 +%% +Type: script +Subtag: Kitl +Description: Khitan large script +Added: 2014-12-11 +%% +Type: script +Subtag: Kits +Description: Khitan small script +Added: 2014-12-11 +%% +Type: script +Subtag: Knda +Description: Kannada +Added: 2005-10-16 +%% +Type: script +Subtag: Kore +Description: Korean (alias for Hangul + Han) +Added: 2007-07-05 +%% +Type: script +Subtag: Kpel +Description: Kpelle +Added: 2010-04-10 +%% +Type: script +Subtag: Kthi +Description: Kaithi +Added: 2007-12-05 +%% +Type: script +Subtag: Lana +Description: Tai Tham +Description: Lanna +Added: 2006-07-21 +%% +Type: script +Subtag: Laoo +Description: Lao +Added: 2005-10-16 +%% +Type: script +Subtag: Latf +Description: Latin (Fraktur variant) +Added: 2005-10-16 +%% +Type: script +Subtag: Latg +Description: Latin (Gaelic variant) +Added: 2005-10-16 +%% +Type: script +Subtag: Latn +Description: Latin +Added: 2005-10-16 +%% +Type: script +Subtag: Leke +Description: Leke +Added: 2015-07-24 +%% +Type: script +Subtag: Lepc +Description: Lepcha +Description: Róng +Added: 2005-10-16 +%% +Type: script +Subtag: Limb +Description: Limbu +Added: 2005-10-16 +%% +Type: script +Subtag: Lina +Description: Linear A +Added: 2005-10-16 +%% +Type: script +Subtag: Linb +Description: Linear B +Added: 2005-10-16 +%% +Type: script +Subtag: Lisu +Description: Lisu +Description: Fraser +Added: 2009-03-13 +%% +Type: script +Subtag: Loma +Description: Loma +Added: 2010-04-10 +%% +Type: script +Subtag: Lyci +Description: Lycian +Added: 2006-07-21 +%% +Type: script +Subtag: Lydi +Description: Lydian +Added: 2006-07-21 +%% +Type: script +Subtag: Mahj +Description: Mahajani +Added: 2012-11-01 +%% +Type: script +Subtag: Maka +Description: Makasar +Added: 2017-01-13 +%% +Type: script +Subtag: Mand +Description: Mandaic +Description: Mandaean +Added: 2005-10-16 +%% +Type: script +Subtag: Mani +Description: Manichaean +Added: 2007-07-28 +%% +Type: script +Subtag: Marc +Description: Marchen +Added: 2014-12-11 +%% +Type: script +Subtag: Maya +Description: Mayan hieroglyphs +Added: 2005-10-16 +%% +Type: script +Subtag: Medf +Description: Medefaidrin +Description: Oberi Okaime +Description: Oberi Ɔkaimɛ +Added: 2017-01-13 +%% +Type: script +Subtag: Mend +Description: Mende Kikakui +Added: 2010-04-10 +%% +Type: script +Subtag: Merc +Description: Meroitic Cursive +Added: 2009-12-09 +%% +Type: script +Subtag: Mero +Description: Meroitic Hieroglyphs +Added: 2005-10-16 +%% +Type: script +Subtag: Mlym +Description: Malayalam +Added: 2005-10-16 +%% +Type: script +Subtag: Modi +Description: Modi +Description: Moḍī +Added: 2013-12-02 +%% +Type: script +Subtag: Mong +Description: Mongolian +Added: 2005-10-16 +%% +Type: script +Subtag: Moon +Description: Moon +Description: Moon code +Description: Moon script +Description: Moon type +Added: 2007-01-26 +%% +Type: script +Subtag: Mroo +Description: Mro +Description: Mru +Added: 2011-01-07 +%% +Type: script +Subtag: Mtei +Description: Meitei Mayek +Description: Meithei +Description: Meetei +Added: 2007-01-26 +%% +Type: script +Subtag: Mult +Description: Multani +Added: 2013-12-02 +%% +Type: script +Subtag: Mymr +Description: Myanmar +Description: Burmese +Added: 2005-10-16 +%% +Type: script +Subtag: Nand +Description: Nandinagari +Added: 2018-10-28 +%% +Type: script +Subtag: Narb +Description: Old North Arabian +Description: Ancient North Arabian +Added: 2010-04-10 +%% +Type: script +Subtag: Nbat +Description: Nabataean +Added: 2010-04-10 +%% +Type: script +Subtag: Newa +Description: Newa +Description: Newar +Description: Newari +Description: Nepāla lipi +Added: 2016-01-04 +%% +Type: script +Subtag: Nkdb +Description: Naxi Dongba +Description: na²¹ɕi³³ to³³ba²¹ +Description: Nakhi Tomba +Added: 2017-08-13 +%% +Type: script +Subtag: Nkgb +Description: Naxi Geba +Description: na²¹ɕi³³ gʌ²¹ba²¹ +Description: 'Na-'Khi ²Ggŏ-¹baw +Description: Nakhi Geba +Added: 2009-03-13 +%% +Type: script +Subtag: Nkoo +Description: N’Ko +Description: N'Ko +Added: 2005-10-16 +%% +Type: script +Subtag: Nshu +Description: Nüshu +Added: 2011-01-07 +%% +Type: script +Subtag: Ogam +Description: Ogham +Added: 2005-10-16 +%% +Type: script +Subtag: Olck +Description: Ol Chiki +Description: Ol Cemet' +Description: Ol +Description: Santali +Added: 2006-07-21 +%% +Type: script +Subtag: Orkh +Description: Old Turkic +Description: Orkhon Runic +Added: 2009-07-30 +%% +Type: script +Subtag: Orya +Description: Oriya +Description: Odia +Added: 2005-10-16 +%% +Type: script +Subtag: Osge +Description: Osage +Added: 2014-12-11 +%% +Type: script +Subtag: Osma +Description: Osmanya +Added: 2005-10-16 +%% +Type: script +Subtag: Palm +Description: Palmyrene +Added: 2010-04-10 +%% +Type: script +Subtag: Pauc +Description: Pau Cin Hau +Added: 2013-12-02 +%% +Type: script +Subtag: Perm +Description: Old Permic +Added: 2005-10-16 +%% +Type: script +Subtag: Phag +Description: Phags-pa +Added: 2005-10-16 +%% +Type: script +Subtag: Phli +Description: Inscriptional Pahlavi +Added: 2007-12-05 +%% +Type: script +Subtag: Phlp +Description: Psalter Pahlavi +Added: 2007-12-05 +%% +Type: script +Subtag: Phlv +Description: Book Pahlavi +Added: 2007-07-28 +%% +Type: script +Subtag: Phnx +Description: Phoenician +Added: 2005-10-16 +%% +Type: script +Subtag: Piqd +Description: Klingon (KLI pIqaD) +Added: 2016-01-04 +%% +Type: script +Subtag: Plrd +Description: Miao +Description: Pollard +Added: 2005-10-16 +%% +Type: script +Subtag: Prti +Description: Inscriptional Parthian +Added: 2007-12-05 +%% +Type: script +Subtag: Qaaa..Qabx +Description: Private use +Added: 2005-10-16 +%% +Type: script +Subtag: Rjng +Description: Rejang +Description: Redjang +Description: Kaganga +Added: 2006-10-17 +%% +Type: script +Subtag: Rohg +Description: Hanifi Rohingya +Added: 2017-12-13 +%% +Type: script +Subtag: Roro +Description: Rongorongo +Added: 2005-10-16 +%% +Type: script +Subtag: Runr +Description: Runic +Added: 2005-10-16 +%% +Type: script +Subtag: Samr +Description: Samaritan +Added: 2007-07-28 +%% +Type: script +Subtag: Sara +Description: Sarati +Added: 2005-10-16 +%% +Type: script +Subtag: Sarb +Description: Old South Arabian +Added: 2009-07-30 +%% +Type: script +Subtag: Saur +Description: Saurashtra +Added: 2006-07-21 +%% +Type: script +Subtag: Sgnw +Description: SignWriting +Added: 2006-10-17 +%% +Type: script +Subtag: Shaw +Description: Shavian +Description: Shaw +Added: 2005-10-16 +%% +Type: script +Subtag: Shrd +Description: Sharada +Description: Śāradā +Added: 2011-01-07 +%% +Type: script +Subtag: Shui +Description: Shuishu +Added: 2017-08-13 +%% +Type: script +Subtag: Sidd +Description: Siddham +Description: Siddhaṃ +Description: Siddhamātṛkā +Added: 2013-12-02 +%% +Type: script +Subtag: Sind +Description: Khudawadi +Description: Sindhi +Added: 2010-08-16 +%% +Type: script +Subtag: Sinh +Description: Sinhala +Added: 2005-10-16 +%% +Type: script +Subtag: Sogd +Description: Sogdian +Added: 2017-12-13 +%% +Type: script +Subtag: Sogo +Description: Old Sogdian +Added: 2017-12-13 +%% +Type: script +Subtag: Sora +Description: Sora Sompeng +Added: 2011-01-07 +%% +Type: script +Subtag: Soyo +Description: Soyombo +Added: 2017-01-13 +%% +Type: script +Subtag: Sund +Description: Sundanese +Added: 2006-07-21 +%% +Type: script +Subtag: Sylo +Description: Syloti Nagri +Added: 2005-10-16 +%% +Type: script +Subtag: Syrc +Description: Syriac +Added: 2005-10-16 +%% +Type: script +Subtag: Syre +Description: Syriac (Estrangelo variant) +Added: 2005-10-16 +%% +Type: script +Subtag: Syrj +Description: Syriac (Western variant) +Added: 2005-10-16 +%% +Type: script +Subtag: Syrn +Description: Syriac (Eastern variant) +Added: 2005-10-16 +%% +Type: script +Subtag: Tagb +Description: Tagbanwa +Added: 2005-10-16 +%% +Type: script +Subtag: Takr +Description: Takri +Description: Ṭākrī +Description: Ṭāṅkrī +Added: 2011-01-07 +%% +Type: script +Subtag: Tale +Description: Tai Le +Added: 2005-10-16 +%% +Type: script +Subtag: Talu +Description: New Tai Lue +Added: 2005-10-16 +%% +Type: script +Subtag: Taml +Description: Tamil +Added: 2005-10-16 +%% +Type: script +Subtag: Tang +Description: Tangut +Added: 2011-01-07 +%% +Type: script +Subtag: Tavt +Description: Tai Viet +Added: 2007-12-05 +%% +Type: script +Subtag: Telu +Description: Telugu +Added: 2005-10-16 +%% +Type: script +Subtag: Teng +Description: Tengwar +Added: 2005-10-16 +%% +Type: script +Subtag: Tfng +Description: Tifinagh +Description: Berber +Added: 2005-10-16 +%% +Type: script +Subtag: Tglg +Description: Tagalog +Description: Baybayin +Description: Alibata +Added: 2005-10-16 +%% +Type: script +Subtag: Thaa +Description: Thaana +Added: 2005-10-16 +%% +Type: script +Subtag: Thai +Description: Thai +Added: 2005-10-16 +%% +Type: script +Subtag: Tibt +Description: Tibetan +Added: 2005-10-16 +%% +Type: script +Subtag: Tirh +Description: Tirhuta +Added: 2011-08-16 +%% +Type: script +Subtag: Ugar +Description: Ugaritic +Added: 2005-10-16 +%% +Type: script +Subtag: Vaii +Description: Vai +Added: 2005-10-16 +%% +Type: script +Subtag: Visp +Description: Visible Speech +Added: 2005-10-16 +%% +Type: script +Subtag: Wara +Description: Warang Citi +Description: Varang Kshiti +Added: 2009-12-09 +%% +Type: script +Subtag: Wcho +Description: Wancho +Added: 2017-08-13 +%% +Type: script +Subtag: Wole +Description: Woleai +Added: 2011-01-07 +%% +Type: script +Subtag: Xpeo +Description: Old Persian +Added: 2005-10-16 +%% +Type: script +Subtag: Xsux +Description: Sumero-Akkadian cuneiform +Added: 2005-10-16 +%% +Type: script +Subtag: Yezi +Description: Yezidi +Added: 2019-09-11 +%% +Type: script +Subtag: Yiii +Description: Yi +Added: 2005-10-16 +%% +Type: script +Subtag: Zanb +Description: Zanabazar Square +Description: Zanabazarin Dörböljin Useg +Description: Xewtee Dörböljin Bicig +Description: Horizontal Square Script +Added: 2017-01-13 +%% +Type: script +Subtag: Zinh +Description: Code for inherited script +Added: 2009-04-03 +Comments: Not intended for use as a language subtag +%% +Type: script +Subtag: Zmth +Description: Mathematical notation +Added: 2007-12-05 +%% +Type: script +Subtag: Zsye +Description: Symbols (Emoji variant) +Added: 2016-01-04 +%% +Type: script +Subtag: Zsym +Description: Symbols +Added: 2007-12-05 +%% +Type: script +Subtag: Zxxx +Description: Code for unwritten documents +Added: 2005-10-16 +%% +Type: script +Subtag: Zyyy +Description: Code for undetermined script +Added: 2005-10-16 +%% +Type: script +Subtag: Zzzz +Description: Code for uncoded script +Added: 2005-10-16 +%% +Type: region +Subtag: AA +Description: Private use +Added: 2005-10-16 +%% +Type: region +Subtag: AC +Description: Ascension Island +Added: 2009-07-29 +%% +Type: region +Subtag: AD +Description: Andorra +Added: 2005-10-16 +%% +Type: region +Subtag: AE +Description: United Arab Emirates +Added: 2005-10-16 +%% +Type: region +Subtag: AF +Description: Afghanistan +Added: 2005-10-16 +%% +Type: region +Subtag: AG +Description: Antigua and Barbuda +Added: 2005-10-16 +%% +Type: region +Subtag: AI +Description: Anguilla +Added: 2005-10-16 +%% +Type: region +Subtag: AL +Description: Albania +Added: 2005-10-16 +%% +Type: region +Subtag: AM +Description: Armenia +Added: 2005-10-16 +%% +Type: region +Subtag: AN +Description: Netherlands Antilles +Added: 2005-10-16 +Deprecated: 2011-01-07 +Comments: see BQ, CW, and SX +%% +Type: region +Subtag: AO +Description: Angola +Added: 2005-10-16 +%% +Type: region +Subtag: AQ +Description: Antarctica +Added: 2005-10-16 +%% +Type: region +Subtag: AR +Description: Argentina +Added: 2005-10-16 +%% +Type: region +Subtag: AS +Description: American Samoa +Added: 2005-10-16 +%% +Type: region +Subtag: AT +Description: Austria +Added: 2005-10-16 +%% +Type: region +Subtag: AU +Description: Australia +Added: 2005-10-16 +%% +Type: region +Subtag: AW +Description: Aruba +Added: 2005-10-16 +%% +Type: region +Subtag: AX +Description: Åland Islands +Added: 2005-10-16 +%% +Type: region +Subtag: AZ +Description: Azerbaijan +Added: 2005-10-16 +%% +Type: region +Subtag: BA +Description: Bosnia and Herzegovina +Added: 2005-10-16 +%% +Type: region +Subtag: BB +Description: Barbados +Added: 2005-10-16 +%% +Type: region +Subtag: BD +Description: Bangladesh +Added: 2005-10-16 +%% +Type: region +Subtag: BE +Description: Belgium +Added: 2005-10-16 +%% +Type: region +Subtag: BF +Description: Burkina Faso +Added: 2005-10-16 +%% +Type: region +Subtag: BG +Description: Bulgaria +Added: 2005-10-16 +%% +Type: region +Subtag: BH +Description: Bahrain +Added: 2005-10-16 +%% +Type: region +Subtag: BI +Description: Burundi +Added: 2005-10-16 +%% +Type: region +Subtag: BJ +Description: Benin +Added: 2005-10-16 +%% +Type: region +Subtag: BL +Description: Saint Barthélemy +Added: 2007-11-02 +%% +Type: region +Subtag: BM +Description: Bermuda +Added: 2005-10-16 +%% +Type: region +Subtag: BN +Description: Brunei Darussalam +Added: 2005-10-16 +%% +Type: region +Subtag: BO +Description: Bolivia +Added: 2005-10-16 +%% +Type: region +Subtag: BQ +Description: Bonaire, Sint Eustatius and Saba +Added: 2011-01-07 +%% +Type: region +Subtag: BR +Description: Brazil +Added: 2005-10-16 +%% +Type: region +Subtag: BS +Description: Bahamas +Added: 2005-10-16 +%% +Type: region +Subtag: BT +Description: Bhutan +Added: 2005-10-16 +%% +Type: region +Subtag: BU +Description: Burma +Added: 2005-10-16 +Deprecated: 1989-12-05 +Preferred-Value: MM +%% +Type: region +Subtag: BV +Description: Bouvet Island +Added: 2005-10-16 +%% +Type: region +Subtag: BW +Description: Botswana +Added: 2005-10-16 +%% +Type: region +Subtag: BY +Description: Belarus +Added: 2005-10-16 +%% +Type: region +Subtag: BZ +Description: Belize +Added: 2005-10-16 +%% +Type: region +Subtag: CA +Description: Canada +Added: 2005-10-16 +%% +Type: region +Subtag: CC +Description: Cocos (Keeling) Islands +Added: 2005-10-16 +%% +Type: region +Subtag: CD +Description: The Democratic Republic of the Congo +Added: 2005-10-16 +%% +Type: region +Subtag: CF +Description: Central African Republic +Added: 2005-10-16 +%% +Type: region +Subtag: CG +Description: Congo +Added: 2005-10-16 +%% +Type: region +Subtag: CH +Description: Switzerland +Added: 2005-10-16 +%% +Type: region +Subtag: CI +Description: Côte d'Ivoire +Added: 2005-10-16 +%% +Type: region +Subtag: CK +Description: Cook Islands +Added: 2005-10-16 +%% +Type: region +Subtag: CL +Description: Chile +Added: 2005-10-16 +%% +Type: region +Subtag: CM +Description: Cameroon +Added: 2005-10-16 +%% +Type: region +Subtag: CN +Description: China +Added: 2005-10-16 +%% +Type: region +Subtag: CO +Description: Colombia +Added: 2005-10-16 +%% +Type: region +Subtag: CP +Description: Clipperton Island +Added: 2009-07-29 +%% +Type: region +Subtag: CR +Description: Costa Rica +Added: 2005-10-16 +%% +Type: region +Subtag: CS +Description: Serbia and Montenegro +Added: 2005-10-16 +Deprecated: 2006-10-05 +Comments: see RS for Serbia or ME for Montenegro +%% +Type: region +Subtag: CU +Description: Cuba +Added: 2005-10-16 +%% +Type: region +Subtag: CV +Description: Cabo Verde +Description: Cape Verde +Added: 2005-10-16 +%% +Type: region +Subtag: CW +Description: Curaçao +Added: 2011-01-07 +%% +Type: region +Subtag: CX +Description: Christmas Island +Added: 2005-10-16 +%% +Type: region +Subtag: CY +Description: Cyprus +Added: 2005-10-16 +%% +Type: region +Subtag: CZ +Description: Czechia +Description: Czech Republic +Added: 2005-10-16 +%% +Type: region +Subtag: DD +Description: German Democratic Republic +Added: 2005-10-16 +Deprecated: 1990-10-30 +Preferred-Value: DE +%% +Type: region +Subtag: DE +Description: Germany +Added: 2005-10-16 +%% +Type: region +Subtag: DG +Description: Diego Garcia +Added: 2009-07-29 +%% +Type: region +Subtag: DJ +Description: Djibouti +Added: 2005-10-16 +%% +Type: region +Subtag: DK +Description: Denmark +Added: 2005-10-16 +%% +Type: region +Subtag: DM +Description: Dominica +Added: 2005-10-16 +%% +Type: region +Subtag: DO +Description: Dominican Republic +Added: 2005-10-16 +%% +Type: region +Subtag: DZ +Description: Algeria +Added: 2005-10-16 +%% +Type: region +Subtag: EA +Description: Ceuta, Melilla +Added: 2009-07-29 +%% +Type: region +Subtag: EC +Description: Ecuador +Added: 2005-10-16 +%% +Type: region +Subtag: EE +Description: Estonia +Added: 2005-10-16 +%% +Type: region +Subtag: EG +Description: Egypt +Added: 2005-10-16 +%% +Type: region +Subtag: EH +Description: Western Sahara +Added: 2005-10-16 +%% +Type: region +Subtag: ER +Description: Eritrea +Added: 2005-10-16 +%% +Type: region +Subtag: ES +Description: Spain +Added: 2005-10-16 +%% +Type: region +Subtag: ET +Description: Ethiopia +Added: 2005-10-16 +%% +Type: region +Subtag: EU +Description: European Union +Added: 2009-07-29 +%% +Type: region +Subtag: EZ +Description: Eurozone +Added: 2016-07-14 +%% +Type: region +Subtag: FI +Description: Finland +Added: 2005-10-16 +%% +Type: region +Subtag: FJ +Description: Fiji +Added: 2005-10-16 +%% +Type: region +Subtag: FK +Description: Falkland Islands (Malvinas) +Added: 2005-10-16 +%% +Type: region +Subtag: FM +Description: Federated States of Micronesia +Added: 2005-10-16 +%% +Type: region +Subtag: FO +Description: Faroe Islands +Added: 2005-10-16 +%% +Type: region +Subtag: FR +Description: France +Added: 2005-10-16 +%% +Type: region +Subtag: FX +Description: Metropolitan France +Added: 2005-10-16 +Deprecated: 1997-07-14 +Preferred-Value: FR +%% +Type: region +Subtag: GA +Description: Gabon +Added: 2005-10-16 +%% +Type: region +Subtag: GB +Description: United Kingdom +Added: 2005-10-16 +Comments: as of 2006-03-29 GB no longer includes the Channel Islands and + Isle of Man; see GG, JE, IM +%% +Type: region +Subtag: GD +Description: Grenada +Added: 2005-10-16 +%% +Type: region +Subtag: GE +Description: Georgia +Added: 2005-10-16 +%% +Type: region +Subtag: GF +Description: French Guiana +Added: 2005-10-16 +%% +Type: region +Subtag: GG +Description: Guernsey +Added: 2006-03-29 +%% +Type: region +Subtag: GH +Description: Ghana +Added: 2005-10-16 +%% +Type: region +Subtag: GI +Description: Gibraltar +Added: 2005-10-16 +%% +Type: region +Subtag: GL +Description: Greenland +Added: 2005-10-16 +%% +Type: region +Subtag: GM +Description: Gambia +Added: 2005-10-16 +%% +Type: region +Subtag: GN +Description: Guinea +Added: 2005-10-16 +%% +Type: region +Subtag: GP +Description: Guadeloupe +Added: 2005-10-16 +%% +Type: region +Subtag: GQ +Description: Equatorial Guinea +Added: 2005-10-16 +%% +Type: region +Subtag: GR +Description: Greece +Added: 2005-10-16 +%% +Type: region +Subtag: GS +Description: South Georgia and the South Sandwich Islands +Added: 2005-10-16 +%% +Type: region +Subtag: GT +Description: Guatemala +Added: 2005-10-16 +%% +Type: region +Subtag: GU +Description: Guam +Added: 2005-10-16 +%% +Type: region +Subtag: GW +Description: Guinea-Bissau +Added: 2005-10-16 +%% +Type: region +Subtag: GY +Description: Guyana +Added: 2005-10-16 +%% +Type: region +Subtag: HK +Description: Hong Kong +Added: 2005-10-16 +%% +Type: region +Subtag: HM +Description: Heard Island and McDonald Islands +Added: 2005-10-16 +%% +Type: region +Subtag: HN +Description: Honduras +Added: 2005-10-16 +%% +Type: region +Subtag: HR +Description: Croatia +Added: 2005-10-16 +%% +Type: region +Subtag: HT +Description: Haiti +Added: 2005-10-16 +%% +Type: region +Subtag: HU +Description: Hungary +Added: 2005-10-16 +%% +Type: region +Subtag: IC +Description: Canary Islands +Added: 2009-07-29 +%% +Type: region +Subtag: ID +Description: Indonesia +Added: 2005-10-16 +%% +Type: region +Subtag: IE +Description: Ireland +Added: 2005-10-16 +%% +Type: region +Subtag: IL +Description: Israel +Added: 2005-10-16 +%% +Type: region +Subtag: IM +Description: Isle of Man +Added: 2006-03-29 +%% +Type: region +Subtag: IN +Description: India +Added: 2005-10-16 +%% +Type: region +Subtag: IO +Description: British Indian Ocean Territory +Added: 2005-10-16 +%% +Type: region +Subtag: IQ +Description: Iraq +Added: 2005-10-16 +%% +Type: region +Subtag: IR +Description: Islamic Republic of Iran +Added: 2005-10-16 +%% +Type: region +Subtag: IS +Description: Iceland +Added: 2005-10-16 +%% +Type: region +Subtag: IT +Description: Italy +Added: 2005-10-16 +%% +Type: region +Subtag: JE +Description: Jersey +Added: 2006-03-29 +%% +Type: region +Subtag: JM +Description: Jamaica +Added: 2005-10-16 +%% +Type: region +Subtag: JO +Description: Jordan +Added: 2005-10-16 +%% +Type: region +Subtag: JP +Description: Japan +Added: 2005-10-16 +%% +Type: region +Subtag: KE +Description: Kenya +Added: 2005-10-16 +%% +Type: region +Subtag: KG +Description: Kyrgyzstan +Added: 2005-10-16 +%% +Type: region +Subtag: KH +Description: Cambodia +Added: 2005-10-16 +%% +Type: region +Subtag: KI +Description: Kiribati +Added: 2005-10-16 +%% +Type: region +Subtag: KM +Description: Comoros +Added: 2005-10-16 +%% +Type: region +Subtag: KN +Description: Saint Kitts and Nevis +Added: 2005-10-16 +%% +Type: region +Subtag: KP +Description: Democratic People's Republic of Korea +Added: 2005-10-16 +%% +Type: region +Subtag: KR +Description: Republic of Korea +Added: 2005-10-16 +%% +Type: region +Subtag: KW +Description: Kuwait +Added: 2005-10-16 +%% +Type: region +Subtag: KY +Description: Cayman Islands +Added: 2005-10-16 +%% +Type: region +Subtag: KZ +Description: Kazakhstan +Added: 2005-10-16 +%% +Type: region +Subtag: LA +Description: Lao People's Democratic Republic +Added: 2005-10-16 +%% +Type: region +Subtag: LB +Description: Lebanon +Added: 2005-10-16 +%% +Type: region +Subtag: LC +Description: Saint Lucia +Added: 2005-10-16 +%% +Type: region +Subtag: LI +Description: Liechtenstein +Added: 2005-10-16 +%% +Type: region +Subtag: LK +Description: Sri Lanka +Added: 2005-10-16 +%% +Type: region +Subtag: LR +Description: Liberia +Added: 2005-10-16 +%% +Type: region +Subtag: LS +Description: Lesotho +Added: 2005-10-16 +%% +Type: region +Subtag: LT +Description: Lithuania +Added: 2005-10-16 +%% +Type: region +Subtag: LU +Description: Luxembourg +Added: 2005-10-16 +%% +Type: region +Subtag: LV +Description: Latvia +Added: 2005-10-16 +%% +Type: region +Subtag: LY +Description: Libya +Added: 2005-10-16 +%% +Type: region +Subtag: MA +Description: Morocco +Added: 2005-10-16 +%% +Type: region +Subtag: MC +Description: Monaco +Added: 2005-10-16 +%% +Type: region +Subtag: MD +Description: Moldova +Added: 2005-10-16 +%% +Type: region +Subtag: ME +Description: Montenegro +Added: 2006-10-05 +%% +Type: region +Subtag: MF +Description: Saint Martin (French part) +Added: 2007-11-02 +%% +Type: region +Subtag: MG +Description: Madagascar +Added: 2005-10-16 +%% +Type: region +Subtag: MH +Description: Marshall Islands +Added: 2005-10-16 +%% +Type: region +Subtag: MK +Description: North Macedonia +Added: 2005-10-16 +%% +Type: region +Subtag: ML +Description: Mali +Added: 2005-10-16 +%% +Type: region +Subtag: MM +Description: Myanmar +Added: 2005-10-16 +%% +Type: region +Subtag: MN +Description: Mongolia +Added: 2005-10-16 +%% +Type: region +Subtag: MO +Description: Macao +Added: 2005-10-16 +%% +Type: region +Subtag: MP +Description: Northern Mariana Islands +Added: 2005-10-16 +%% +Type: region +Subtag: MQ +Description: Martinique +Added: 2005-10-16 +%% +Type: region +Subtag: MR +Description: Mauritania +Added: 2005-10-16 +%% +Type: region +Subtag: MS +Description: Montserrat +Added: 2005-10-16 +%% +Type: region +Subtag: MT +Description: Malta +Added: 2005-10-16 +%% +Type: region +Subtag: MU +Description: Mauritius +Added: 2005-10-16 +%% +Type: region +Subtag: MV +Description: Maldives +Added: 2005-10-16 +%% +Type: region +Subtag: MW +Description: Malawi +Added: 2005-10-16 +%% +Type: region +Subtag: MX +Description: Mexico +Added: 2005-10-16 +%% +Type: region +Subtag: MY +Description: Malaysia +Added: 2005-10-16 +%% +Type: region +Subtag: MZ +Description: Mozambique +Added: 2005-10-16 +%% +Type: region +Subtag: NA +Description: Namibia +Added: 2005-10-16 +%% +Type: region +Subtag: NC +Description: New Caledonia +Added: 2005-10-16 +%% +Type: region +Subtag: NE +Description: Niger +Added: 2005-10-16 +%% +Type: region +Subtag: NF +Description: Norfolk Island +Added: 2005-10-16 +%% +Type: region +Subtag: NG +Description: Nigeria +Added: 2005-10-16 +%% +Type: region +Subtag: NI +Description: Nicaragua +Added: 2005-10-16 +%% +Type: region +Subtag: NL +Description: Netherlands +Added: 2005-10-16 +%% +Type: region +Subtag: NO +Description: Norway +Added: 2005-10-16 +%% +Type: region +Subtag: NP +Description: Nepal +Added: 2005-10-16 +%% +Type: region +Subtag: NR +Description: Nauru +Added: 2005-10-16 +%% +Type: region +Subtag: NT +Description: Neutral Zone +Added: 2005-10-16 +Deprecated: 1993-07-12 +%% +Type: region +Subtag: NU +Description: Niue +Added: 2005-10-16 +%% +Type: region +Subtag: NZ +Description: New Zealand +Added: 2005-10-16 +%% +Type: region +Subtag: OM +Description: Oman +Added: 2005-10-16 +%% +Type: region +Subtag: PA +Description: Panama +Added: 2005-10-16 +%% +Type: region +Subtag: PE +Description: Peru +Added: 2005-10-16 +%% +Type: region +Subtag: PF +Description: French Polynesia +Added: 2005-10-16 +%% +Type: region +Subtag: PG +Description: Papua New Guinea +Added: 2005-10-16 +%% +Type: region +Subtag: PH +Description: Philippines +Added: 2005-10-16 +%% +Type: region +Subtag: PK +Description: Pakistan +Added: 2005-10-16 +%% +Type: region +Subtag: PL +Description: Poland +Added: 2005-10-16 +%% +Type: region +Subtag: PM +Description: Saint Pierre and Miquelon +Added: 2005-10-16 +%% +Type: region +Subtag: PN +Description: Pitcairn +Added: 2005-10-16 +%% +Type: region +Subtag: PR +Description: Puerto Rico +Added: 2005-10-16 +%% +Type: region +Subtag: PS +Description: State of Palestine +Added: 2005-10-16 +%% +Type: region +Subtag: PT +Description: Portugal +Added: 2005-10-16 +%% +Type: region +Subtag: PW +Description: Palau +Added: 2005-10-16 +%% +Type: region +Subtag: PY +Description: Paraguay +Added: 2005-10-16 +%% +Type: region +Subtag: QA +Description: Qatar +Added: 2005-10-16 +%% +Type: region +Subtag: QM..QZ +Description: Private use +Added: 2005-10-16 +%% +Type: region +Subtag: RE +Description: Réunion +Added: 2005-10-16 +%% +Type: region +Subtag: RO +Description: Romania +Added: 2005-10-16 +%% +Type: region +Subtag: RS +Description: Serbia +Added: 2006-10-05 +%% +Type: region +Subtag: RU +Description: Russian Federation +Added: 2005-10-16 +%% +Type: region +Subtag: RW +Description: Rwanda +Added: 2005-10-16 +%% +Type: region +Subtag: SA +Description: Saudi Arabia +Added: 2005-10-16 +%% +Type: region +Subtag: SB +Description: Solomon Islands +Added: 2005-10-16 +%% +Type: region +Subtag: SC +Description: Seychelles +Added: 2005-10-16 +%% +Type: region +Subtag: SD +Description: Sudan +Added: 2005-10-16 +%% +Type: region +Subtag: SE +Description: Sweden +Added: 2005-10-16 +%% +Type: region +Subtag: SG +Description: Singapore +Added: 2005-10-16 +%% +Type: region +Subtag: SH +Description: Saint Helena, Ascension and Tristan da Cunha +Added: 2005-10-16 +%% +Type: region +Subtag: SI +Description: Slovenia +Added: 2005-10-16 +%% +Type: region +Subtag: SJ +Description: Svalbard and Jan Mayen +Added: 2005-10-16 +%% +Type: region +Subtag: SK +Description: Slovakia +Added: 2005-10-16 +%% +Type: region +Subtag: SL +Description: Sierra Leone +Added: 2005-10-16 +%% +Type: region +Subtag: SM +Description: San Marino +Added: 2005-10-16 +%% +Type: region +Subtag: SN +Description: Senegal +Added: 2005-10-16 +%% +Type: region +Subtag: SO +Description: Somalia +Added: 2005-10-16 +%% +Type: region +Subtag: SR +Description: Suriname +Added: 2005-10-16 +%% +Type: region +Subtag: SS +Description: South Sudan +Added: 2011-08-25 +%% +Type: region +Subtag: ST +Description: Sao Tome and Principe +Added: 2005-10-16 +%% +Type: region +Subtag: SU +Description: Union of Soviet Socialist Republics +Added: 2005-10-16 +Deprecated: 1992-08-30 +%% +Type: region +Subtag: SV +Description: El Salvador +Added: 2005-10-16 +%% +Type: region +Subtag: SX +Description: Sint Maarten (Dutch part) +Added: 2011-01-07 +%% +Type: region +Subtag: SY +Description: Syrian Arab Republic +Added: 2005-10-16 +%% +Type: region +Subtag: SZ +Description: Eswatini +Description: eSwatini +Description: Swaziland +Added: 2005-10-16 +%% +Type: region +Subtag: TA +Description: Tristan da Cunha +Added: 2009-07-29 +%% +Type: region +Subtag: TC +Description: Turks and Caicos Islands +Added: 2005-10-16 +%% +Type: region +Subtag: TD +Description: Chad +Added: 2005-10-16 +%% +Type: region +Subtag: TF +Description: French Southern Territories +Added: 2005-10-16 +%% +Type: region +Subtag: TG +Description: Togo +Added: 2005-10-16 +%% +Type: region +Subtag: TH +Description: Thailand +Added: 2005-10-16 +%% +Type: region +Subtag: TJ +Description: Tajikistan +Added: 2005-10-16 +%% +Type: region +Subtag: TK +Description: Tokelau +Added: 2005-10-16 +%% +Type: region +Subtag: TL +Description: Timor-Leste +Added: 2005-10-16 +%% +Type: region +Subtag: TM +Description: Turkmenistan +Added: 2005-10-16 +%% +Type: region +Subtag: TN +Description: Tunisia +Added: 2005-10-16 +%% +Type: region +Subtag: TO +Description: Tonga +Added: 2005-10-16 +%% +Type: region +Subtag: TP +Description: East Timor +Added: 2005-10-16 +Deprecated: 2002-05-20 +Preferred-Value: TL +%% +Type: region +Subtag: TR +Description: Turkey +Added: 2005-10-16 +%% +Type: region +Subtag: TT +Description: Trinidad and Tobago +Added: 2005-10-16 +%% +Type: region +Subtag: TV +Description: Tuvalu +Added: 2005-10-16 +%% +Type: region +Subtag: TW +Description: Taiwan, Province of China +Added: 2005-10-16 +%% +Type: region +Subtag: TZ +Description: United Republic of Tanzania +Added: 2005-10-16 +%% +Type: region +Subtag: UA +Description: Ukraine +Added: 2005-10-16 +%% +Type: region +Subtag: UG +Description: Uganda +Added: 2005-10-16 +%% +Type: region +Subtag: UM +Description: United States Minor Outlying Islands +Added: 2005-10-16 +%% +Type: region +Subtag: UN +Description: United Nations +Added: 2016-07-14 +%% +Type: region +Subtag: US +Description: United States +Added: 2005-10-16 +%% +Type: region +Subtag: UY +Description: Uruguay +Added: 2005-10-16 +%% +Type: region +Subtag: UZ +Description: Uzbekistan +Added: 2005-10-16 +%% +Type: region +Subtag: VA +Description: Holy See (Vatican City State) +Added: 2005-10-16 +%% +Type: region +Subtag: VC +Description: Saint Vincent and the Grenadines +Added: 2005-10-16 +%% +Type: region +Subtag: VE +Description: Venezuela +Added: 2005-10-16 +%% +Type: region +Subtag: VG +Description: British Virgin Islands +Added: 2005-10-16 +%% +Type: region +Subtag: VI +Description: U.S. Virgin Islands +Added: 2005-10-16 +%% +Type: region +Subtag: VN +Description: Viet Nam +Added: 2005-10-16 +%% +Type: region +Subtag: VU +Description: Vanuatu +Added: 2005-10-16 +%% +Type: region +Subtag: WF +Description: Wallis and Futuna +Added: 2005-10-16 +%% +Type: region +Subtag: WS +Description: Samoa +Added: 2005-10-16 +%% +Type: region +Subtag: XA..XZ +Description: Private use +Added: 2005-10-16 +%% +Type: region +Subtag: YD +Description: Democratic Yemen +Added: 2005-10-16 +Deprecated: 1990-08-14 +Preferred-Value: YE +%% +Type: region +Subtag: YE +Description: Yemen +Added: 2005-10-16 +%% +Type: region +Subtag: YT +Description: Mayotte +Added: 2005-10-16 +%% +Type: region +Subtag: YU +Description: Yugoslavia +Added: 2005-10-16 +Deprecated: 2003-07-23 +Comments: see BA, HR, ME, MK, RS, or SI +%% +Type: region +Subtag: ZA +Description: South Africa +Added: 2005-10-16 +%% +Type: region +Subtag: ZM +Description: Zambia +Added: 2005-10-16 +%% +Type: region +Subtag: ZR +Description: Zaire +Added: 2005-10-16 +Deprecated: 1997-07-14 +Preferred-Value: CD +%% +Type: region +Subtag: ZW +Description: Zimbabwe +Added: 2005-10-16 +%% +Type: region +Subtag: ZZ +Description: Private use +Added: 2005-10-16 +%% +Type: region +Subtag: 001 +Description: World +Added: 2005-10-16 +%% +Type: region +Subtag: 002 +Description: Africa +Added: 2005-10-16 +%% +Type: region +Subtag: 003 +Description: North America +Added: 2010-08-16 +Comments: Includes Northern America (021), Caribbean (029), and Central + America (013); see also 021 +%% +Type: region +Subtag: 005 +Description: South America +Added: 2005-10-16 +%% +Type: region +Subtag: 009 +Description: Oceania +Added: 2005-10-16 +%% +Type: region +Subtag: 011 +Description: Western Africa +Added: 2005-10-16 +%% +Type: region +Subtag: 013 +Description: Central America +Added: 2005-10-16 +%% +Type: region +Subtag: 014 +Description: Eastern Africa +Added: 2005-10-16 +%% +Type: region +Subtag: 015 +Description: Northern Africa +Added: 2005-10-16 +%% +Type: region +Subtag: 017 +Description: Middle Africa +Added: 2005-10-16 +%% +Type: region +Subtag: 018 +Description: Southern Africa +Added: 2005-10-16 +%% +Type: region +Subtag: 019 +Description: Americas +Added: 2005-10-16 +%% +Type: region +Subtag: 021 +Description: Northern America +Added: 2005-10-16 +Comments: Does not include Caribbean (029) or Central America (013); see + also 003 +%% +Type: region +Subtag: 029 +Description: Caribbean +Added: 2005-10-16 +%% +Type: region +Subtag: 030 +Description: Eastern Asia +Added: 2005-10-16 +%% +Type: region +Subtag: 034 +Description: Southern Asia +Added: 2005-10-16 +%% +Type: region +Subtag: 035 +Description: South-Eastern Asia +Added: 2005-10-16 +%% +Type: region +Subtag: 039 +Description: Southern Europe +Added: 2005-10-16 +%% +Type: region +Subtag: 053 +Description: Australia and New Zealand +Added: 2005-10-16 +%% +Type: region +Subtag: 054 +Description: Melanesia +Added: 2005-10-16 +%% +Type: region +Subtag: 057 +Description: Micronesia +Added: 2005-10-16 +%% +Type: region +Subtag: 061 +Description: Polynesia +Added: 2005-10-16 +%% +Type: region +Subtag: 142 +Description: Asia +Added: 2005-10-16 +%% +Type: region +Subtag: 143 +Description: Central Asia +Added: 2005-10-16 +%% +Type: region +Subtag: 145 +Description: Western Asia +Added: 2005-10-16 +%% +Type: region +Subtag: 150 +Description: Europe +Added: 2005-10-16 +%% +Type: region +Subtag: 151 +Description: Eastern Europe +Added: 2005-10-16 +%% +Type: region +Subtag: 154 +Description: Northern Europe +Added: 2005-10-16 +%% +Type: region +Subtag: 155 +Description: Western Europe +Added: 2005-10-16 +%% +Type: region +Subtag: 202 +Description: Sub-Saharan Africa +Added: 2017-04-18 +%% +Type: region +Subtag: 419 +Description: Latin America and the Caribbean +Added: 2005-10-16 +%% +Type: variant +Subtag: 1606nict +Description: Late Middle French (to 1606) +Added: 2007-03-20 +Prefix: frm +Comments: 16th century French as in Jean Nicot, "Thresor de la langue + francoyse", 1606, but also including some French similar to that of + Rabelais +%% +Type: variant +Subtag: 1694acad +Description: Early Modern French +Added: 2007-03-20 +Prefix: fr +Comments: 17th century French, as catalogued in the "Dictionnaire de + l'académie françoise", 4eme ed. 1694; frequently includes + elements of Middle French, as this is a transitional period +%% +Type: variant +Subtag: 1901 +Description: Traditional German orthography +Added: 2005-10-16 +Prefix: de +%% +Type: variant +Subtag: 1959acad +Description: "Academic" ("governmental") variant of Belarusian as + codified in 1959 +Added: 2008-09-30 +Prefix: be +%% +Type: variant +Subtag: 1994 +Description: Standardized Resian orthography +Added: 2007-07-28 +Prefix: sl-rozaj +Prefix: sl-rozaj-biske +Prefix: sl-rozaj-njiva +Prefix: sl-rozaj-osojs +Prefix: sl-rozaj-solba +Comments: For standardized Resian an orthography was published in 1994. +%% +Type: variant +Subtag: 1996 +Description: German orthography of 1996 +Added: 2005-10-16 +Prefix: de +%% +Type: variant +Subtag: abl1943 +Description: Orthographic formulation of 1943 - Official in Brazil + (Formulário Ortográfico de 1943 - Oficial no Brasil) +Added: 2015-05-06 +Prefix: pt-BR +Comments: Denotes conventions established by the Academia Brasileira de + Letras in 1943 and generally used in Brazil until 2009 +%% +Type: variant +Subtag: alalc97 +Description: ALA-LC Romanization, 1997 edition +Added: 2009-12-09 +Comments: Romanizations recommended by the American Library Association + and the Library of Congress, in "ALA-LC Romanization Tables: + Transliteration Schemes for Non-Roman Scripts" (1997), ISBN + 978-0-8444-0940-5. +%% +Type: variant +Subtag: aluku +Description: Aluku dialect +Description: Boni dialect +Added: 2009-09-05 +Prefix: djk +Comments: Aluku dialect of the "Busi Nenge Tongo" English-based Creole + continuum in Eastern Suriname and Western French Guiana +%% +Type: variant +Subtag: akuapem +Description: Akuapem Twi +Added: 2017-06-05 +Prefix: tw +%% +Type: variant +Subtag: ao1990 +Description: Portuguese Language Orthographic Agreement of 1990 (Acordo + Ortográfico da Língua Portuguesa de 1990) +Added: 2015-05-06 +Prefix: pt +Prefix: gl +Comments: Portuguese orthography conventions established in 1990 but + not brought into effect until 2009 +%% +Type: variant +Subtag: aranes +Description: Aranese +Added: 2018-04-22 +Prefix: oc +Comments: Occitan variant spoken in the Val d'Aran +%% +Type: variant +Subtag: arevela +Description: Eastern Armenian +Added: 2006-09-18 +Deprecated: 2018-03-24 +Prefix: hy +Comments: Preferred tag is hy +%% +Type: variant +Subtag: arevmda +Description: Western Armenian +Added: 2006-09-18 +Deprecated: 2018-03-24 +Prefix: hy +Comments: Preferred tag is hyw +%% +Type: variant +Subtag: asante +Description: Asante Twi +Description: Ashanti Twi +Added: 2017-06-05 +Prefix: tw +%% +Type: variant +Subtag: auvern +Description: Auvergnat +Added: 2018-04-22 +Prefix: oc +Comments: Occitan variant spoken in Auvergne +%% +Type: variant +Subtag: baku1926 +Description: Unified Turkic Latin Alphabet (Historical) +Added: 2007-04-18 +Prefix: az +Prefix: ba +Prefix: crh +Prefix: kk +Prefix: krc +Prefix: ky +Prefix: sah +Prefix: tk +Prefix: tt +Prefix: uz +Comments: Denotes alphabet used in Turkic republics/regions of the + former USSR in late 1920s, and throughout 1930s, which aspired to + represent equivalent phonemes in a unified fashion. Also known as: New + Turkic Alphabet; Birlәşdirilmiş Jeni Tyrk + Әlifbasь (Birlesdirilmis Jeni Tyrk Elifbasi); + Jaŋalif (Janalif). +%% +Type: variant +Subtag: balanka +Description: The Balanka dialect of Anii +Added: 2014-02-15 +Prefix: blo +Comments: Balanka is one of 19 Anii dialects. +%% +Type: variant +Subtag: barla +Description: The Barlavento dialect group of Kabuverdianu +Prefix: kea +Comments: Barlavento is one of the two main dialect groups of + Kabuverdianu. +Added: 2013-12-10 +%% +Type: variant +Subtag: basiceng +Description: Basic English +Added: 2015-12-29 +Prefix: en +%% +Type: variant +Subtag: bauddha +Description: Buddhist Hybrid Sanskrit +Added: 2010-07-28 +Prefix: sa +%% +Type: variant +Subtag: biscayan +Description: Biscayan dialect of Basque +Added: 2010-04-13 +Prefix: eu +%% +Type: variant +Subtag: biske +Description: The San Giorgio dialect of Resian +Description: The Bila dialect of Resian +Added: 2007-07-05 +Prefix: sl-rozaj +Comments: The dialect of San Giorgio/Bila is one of the four major local + dialects of Resian +%% +Type: variant +Subtag: bohoric +Description: Slovene in Bohorič alphabet +Added: 2012-06-27 +Prefix: sl +Comments: The subtag represents the alphabet codified by Adam Bohorič + in 1584 and used from the first printed Slovene book and up to the + mid-19th century. +%% +Type: variant +Subtag: boont +Description: Boontling +Added: 2006-09-18 +Prefix: en +Comments: Jargon embedded in American English +%% +Type: variant +Subtag: bornholm +Description: Bornholmsk +Added: 2019-03-27 +Prefix: da +%% +Type: variant +Subtag: cisaup +Description: Cisalpine +Added: 2018-04-22 +Prefix: oc +Comments: Occitan variant spoken in northwestern Italy +%% +Type: variant +Subtag: colb1945 +Description: Portuguese-Brazilian Orthographic Convention of 1945 + (Convenção Ortográfica Luso-Brasileira de 1945) +Added: 2015-05-06 +Prefix: pt +Comments: Portuguese orthography conventions established in 1945, + generally in effect until 2009. This reform was not ratified in + Brazil. +%% +Type: variant +Subtag: cornu +Description: Cornu-English +Description: Cornish English +Description: Anglo-Cornish +Added: 2015-12-07 +Prefix: en +%% +Type: variant +Subtag: creiss +Description: Occitan variants of the Croissant area +Added: 2018-04-22 +Prefix: oc +%% +Type: variant +Subtag: dajnko +Description: Slovene in Dajnko alphabet +Added: 2012-06-27 +Prefix: sl +Comments: The subtag represents the alphabet codified by Peter Dajnko + and used from 1824 to 1839 mostly in Styria (in what is now Eastern + Slovenia). +%% +Type: variant +Subtag: ekavsk +Description: Serbian with Ekavian pronunciation +Prefix: sr +Prefix: sr-Latn +Prefix: sr-Cyrl +Added: 2013-12-02 +%% +Type: variant +Subtag: emodeng +Description: Early Modern English (1500-1700) +Added: 2012-02-05 +Prefix: en +%% +Type: variant +Subtag: fonipa +Description: International Phonetic Alphabet +Added: 2006-12-11 +%% +Type: variant +Subtag: fonkirsh +Description: Kirshenbaum Phonetic Alphabet +Added: 2018-04-22 +%% +Type: variant +Subtag: fonnapa +Description: North American Phonetic Alphabet +Description: Americanist Phonetic Notation +Added: 2016-06-24 +%% +Type: variant +Subtag: fonupa +Description: Uralic Phonetic Alphabet +Added: 2006-12-11 +%% +Type: variant +Subtag: fonxsamp +Description: X-SAMPA transcription +Added: 2010-10-23 +Comments: Indicates that the content is transcribed according to X-SAMPA +%% +Type: variant +Subtag: gascon +Description: Gascon +Added: 2018-04-22 +Prefix: oc +Comments: Occitan variant spoken in Gascony +%% +Type: variant +Subtag: grclass +Description: Classical Occitan orthography +Added: 2018-04-22 +Prefix: oc +Comments: Classical written standard for Occitan developed in 1935 by + Alibèrt +%% +Type: variant +Subtag: grital +Description: Italian-inspired Occitan orthography +Added: 2018-04-22 +Prefix: oc +%% +Type: variant +Subtag: grmistr +Description: Mistralian or Mistralian-inspired Occitan orthography +Added: 2018-04-22 +Prefix: oc +Comments: Written standard developed by Romanilha in 1853 and used by + Mistral and the Félibres, including derived standards such as Escolo + dóu Po, Escolo Gaston Febus, and others +%% +Type: variant +Subtag: hepburn +Description: Hepburn romanization +Added: 2009-10-01 +Prefix: ja-Latn +%% +Type: variant +Subtag: heploc +Description: Hepburn romanization, Library of Congress method +Added: 2009-10-01 +Deprecated: 2010-02-07 +Preferred-Value: alalc97 +Prefix: ja-Latn-hepburn +Comments: Preferred tag is ja-Latn-alalc97 +%% +Type: variant +Subtag: hognorsk +Description: Norwegian in Høgnorsk (High Norwegian) orthography +Added: 2010-01-02 +Prefix: nn +Comments: Norwegian following Ivar Aasen's orthographical principles, + including modern usage. +%% +Type: variant +Subtag: hsistemo +Description: Standard H-system orthographic fallback for spelling + Esperanto +Added: 2017-03-14 +Prefix: eo +%% +Type: variant +Subtag: ijekavsk +Description: Serbian with Ijekavian pronunciation +Prefix: sr +Prefix: sr-Latn +Prefix: sr-Cyrl +Added: 2013-12-02 +%% +Type: variant +Subtag: itihasa +Description: Epic Sanskrit +Added: 2010-07-28 +Prefix: sa +%% +Type: variant +Subtag: ivanchov +Description: Bulgarian in 1899 orthography +Added: 2017-12-13 +Prefix: bg +Comments: Bulgarian orthography introduced by Todor Ivanchov in 1899 +%% +Type: variant +Subtag: jauer +Description: Jauer dialect of Romansh +Added: 2010-06-29 +Prefix: rm +Comments: The spoken dialect of the Val Müstair, which has no written + standard. +%% +Type: variant +Subtag: jyutping +Description: Jyutping Cantonese Romanization +Added: 2010-10-23 +Prefix: yue +Comments: Jyutping romanization of Cantonese +%% +Type: variant +Subtag: kkcor +Description: Common Cornish orthography of Revived Cornish +Added: 2008-10-14 +Prefix: kw +%% +Type: variant +Subtag: kociewie +Description: The Kociewie dialect of Polish +Added: 2014-11-27 +Prefix: pl +Comments: The dialect of Kociewie is spoken in the region around + Starogard Gdański, Tczew and Świecie in northern Poland. +%% +Type: variant +Subtag: kscor +Description: Standard Cornish orthography of Revived Cornish +Description: Kernowek Standard +Added: 2012-06-27 +Prefix: kw +%% +Type: variant +Subtag: laukika +Description: Classical Sanskrit +Added: 2010-07-28 +Prefix: sa +%% +Type: variant +Subtag: lemosin +Description: Limousin +Added: 2018-04-22 +Prefix: oc +Comments: Occitan variant spoken in Limousin +%% +Type: variant +Subtag: lengadoc +Description: Languedocien +Added: 2018-04-22 +Prefix: oc +Comments: Occitan variant spoken in Languedoc +%% +Type: variant +Subtag: lipaw +Description: The Lipovaz dialect of Resian +Description: The Lipovec dialect of Resian +Added: 2007-08-11 +Prefix: sl-rozaj +Comments: The dialect of Lipovaz/Lipovec is one of the minor local + dialects of Resian +%% +Type: variant +Subtag: luna1918 +Description: Post-1917 Russian orthography +Added: 2010-10-10 +Prefix: ru +Comments: Russian orthography as established by the 1917/1918 + orthographic reforms +%% +Type: variant +Subtag: metelko +Description: Slovene in Metelko alphabet +Added: 2012-06-27 +Prefix: sl +Comments: The subtag represents the alphabet codified by Franc Serafin + Metelko and used from 1825 to 1833. +%% +Type: variant +Subtag: monoton +Description: Monotonic Greek +Added: 2006-12-11 +Prefix: el +%% +Type: variant +Subtag: ndyuka +Description: Ndyuka dialect +Description: Aukan dialect +Added: 2009-09-05 +Prefix: djk +Comments: Ndyuka dialect of the "Busi Nenge Tongo" English-based + Creole continuum in Eastern Suriname and Western French Guiana +%% +Type: variant +Subtag: nedis +Description: Natisone dialect +Description: Nadiza dialect +Added: 2005-10-16 +Prefix: sl +%% +Type: variant +Subtag: newfound +Description: Newfoundland English +Added: 2015-11-25 +Prefix: en-CA +%% +Type: variant +Subtag: nicard +Description: Niçard +Added: 2018-04-22 +Prefix: oc +Comments: Occitan variant spoken in Nice +%% +Type: variant +Subtag: njiva +Description: The Gniva dialect of Resian +Description: The Njiva dialect of Resian +Added: 2007-07-05 +Prefix: sl-rozaj +Comments: The dialect of Gniva/Njiva is one of the four major local + dialects of Resian +%% +Type: variant +Subtag: nulik +Description: Volapük nulik +Description: Volapük perevidöl +Description: Volapük nulädik +Description: de Jong's Volapük +Description: New Volapük +Description: Revised Volapük +Description: Modern Volapük +Added: 2012-01-28 +Prefix: vo +%% +Type: variant +Subtag: osojs +Description: The Oseacco dialect of Resian +Description: The Osojane dialect of Resian +Added: 2007-07-05 +Prefix: sl-rozaj +Comments: The dialect of Oseacco/Osojane is one of the four major local + dialects of Resian +%% +Type: variant +Subtag: oxendict +Description: Oxford English Dictionary spelling +Added: 2015-04-17 +Prefix: en +%% +Type: variant +Subtag: pahawh2 +Description: Pahawh Hmong Second Stage Reduced orthography +Added: 2017-01-13 +Prefix: mww +Prefix: hnj +%% +Type: variant +Subtag: pahawh3 +Description: Pahawh Hmong Third Stage Reduced orthography +Added: 2017-01-13 +Prefix: mww +Prefix: hnj +%% +Type: variant +Subtag: pahawh4 +Description: Pahawh Hmong Final Version orthography +Added: 2017-01-13 +Prefix: mww +Prefix: hnj +%% +Type: variant +Subtag: pamaka +Description: Pamaka dialect +Added: 2009-09-05 +Prefix: djk +Comments: Pamaka dialect of the "Busi Nenge Tongo" English-based + Creole continuum in Eastern Suriname and Western French Guiana +%% +Type: variant +Subtag: peano +Description: Latino Sine Flexione +Description: Interlingua de API +Description: Interlingua de Peano +Prefix: la +Comments: Peano’s Interlingua, created in 1903 by Giuseppe Peano as an + international auxiliary language +Added: 2020-03-12 +%% +Type: variant +Subtag: petr1708 +Description: Petrine orthography +Added: 2010-10-10 +Prefix: ru +Comments: Russian orthography from the Petrine orthographic reforms of + 1708 to the 1917 orthographic reform +%% +Type: variant +Subtag: pinyin +Description: Pinyin romanization +Added: 2008-10-14 +Prefix: zh-Latn +Prefix: bo-Latn +%% +Type: variant +Subtag: polyton +Description: Polytonic Greek +Added: 2006-12-11 +Prefix: el +%% +Type: variant +Subtag: provenc +Description: Provençal +Added: 2018-04-22 +Prefix: oc +Comments: Occitan variant spoken in Provence +%% +Type: variant +Subtag: puter +Description: Puter idiom of Romansh +Added: 2010-06-29 +Prefix: rm +Comments: Puter is one of the five traditional written standards or + "idioms" of the Romansh language. +%% +Type: variant +Subtag: rigik +Description: Volapük rigik +Description: Schleyer's Volapük +Description: Original Volapük +Description: Classic Volapük +Added: 2012-01-28 +Prefix: vo +%% +Type: variant +Subtag: rozaj +Description: Resian +Description: Resianic +Description: Rezijan +Added: 2005-10-16 +Prefix: sl +%% +Type: variant +Subtag: rumgr +Description: Rumantsch Grischun +Added: 2010-06-29 +Prefix: rm +Comments: Supraregional Romansh written standard +%% +Type: variant +Subtag: scotland +Description: Scottish Standard English +Added: 2007-08-31 +Prefix: en +%% +Type: variant +Subtag: scouse +Description: Scouse +Added: 2006-09-18 +Prefix: en +Comments: English Liverpudlian dialect known as 'Scouse' +%% +Type: variant +Subtag: simple +Description: Simplified form +Added: 2015-12-29 +%% +Type: variant +Subtag: solba +Description: The Stolvizza dialect of Resian +Description: The Solbica dialect of Resian +Added: 2007-07-05 +Prefix: sl-rozaj +Comments: The dialect of Stolvizza/Solbica is one of the four major + local dialects of Resian +%% +Type: variant +Subtag: sotav +Description: The Sotavento dialect group of Kabuverdianu +Prefix: kea +Comments: Sotavento is one of the two main dialect groups of + Kabuverdianu. +Added: 2013-12-10 +%% +Type: variant +Subtag: spanglis +Description: Spanglish +Added: 2017-02-23 +Prefix: en +Prefix: es +Comments: A variety of contact dialects of English and Spanish +%% +Type: variant +Subtag: surmiran +Description: Surmiran idiom of Romansh +Added: 2010-06-29 +Prefix: rm +Comments: Surmiran is one of the five traditional written standards or + "idioms" of the Romansh language. +%% +Type: variant +Subtag: sursilv +Description: Sursilvan idiom of Romansh +Added: 2010-06-29 +Prefix: rm +Comments: Sursilvan is one of the five traditional written standards or + "idioms" of the Romansh language. +%% +Type: variant +Subtag: sutsilv +Description: Sutsilvan idiom of Romansh +Added: 2010-06-29 +Prefix: rm +Comments: Sutsilvan is one of the five traditional written standards or + "idioms" of the Romansh language. +%% +Type: variant +Subtag: tarask +Description: Belarusian in Taraskievica orthography +Added: 2007-04-27 +Prefix: be +Comments: The subtag represents Branislau Taraskievic's Belarusian + orthography as published in "Bielaruski klasycny pravapis" by Juras + Buslakou, Vincuk Viacorka, Zmicier Sanko, and Zmicier Sauka (Vilnia- + Miensk 2005). +%% +Type: variant +Subtag: uccor +Description: Unified Cornish orthography of Revived Cornish +Added: 2008-10-14 +Prefix: kw +%% +Type: variant +Subtag: ucrcor +Description: Unified Cornish Revised orthography of Revived Cornish +Added: 2008-10-14 +Prefix: kw +%% +Type: variant +Subtag: ulster +Description: Ulster dialect of Scots +Added: 2010-04-10 +Prefix: sco +%% +Type: variant +Subtag: unifon +Description: Unifon phonetic alphabet +Added: 2013-10-02 +Prefix: en +Prefix: hup +Prefix: kyh +Prefix: tol +Prefix: yur +%% +Type: variant +Subtag: vaidika +Description: Vedic Sanskrit +Added: 2010-07-28 +Prefix: sa +Comments: The most ancient dialect of Sanskrit used in verse and prose + composed until about the 4th century B.C.E. +%% +Type: variant +Subtag: valencia +Description: Valencian +Added: 2007-03-06 +Prefix: ca +Comments: Variety spoken in the "Comunidad Valenciana" region of Spain, + where it is co-official with Spanish. +%% +Type: variant +Subtag: vallader +Description: Vallader idiom of Romansh +Added: 2010-06-29 +Prefix: rm +Comments: Vallader is one of the five traditional written standards or + "idioms" of the Romansh language. +%% +Type: variant +Subtag: vivaraup +Description: Vivaro-Alpine +Added: 2018-04-22 +Prefix: oc +Comments: Occitan variant spoken in northeastern Occitania +%% +Type: variant +Subtag: wadegile +Description: Wade-Giles romanization +Added: 2008-10-03 +Prefix: zh-Latn +%% +Type: variant +Subtag: xsistemo +Description: Standard X-system orthographic fallback for spelling + Esperanto +Added: 2017-03-14 +Prefix: eo +%% +Type: grandfathered +Tag: art-lojban +Description: Lojban +Added: 2001-11-11 +Deprecated: 2003-09-02 +Preferred-Value: jbo +%% +Type: grandfathered +Tag: cel-gaulish +Description: Gaulish +Added: 2001-05-25 +Deprecated: 2015-03-29 +Comments: see xcg, xga, xtg +%% +Type: grandfathered +Tag: en-GB-oed +Description: English, Oxford English Dictionary spelling +Added: 2003-07-09 +Deprecated: 2015-04-17 +Preferred-Value: en-GB-oxendict +%% +Type: grandfathered +Tag: i-ami +Description: Amis +Added: 1999-05-25 +Deprecated: 2009-07-29 +Preferred-Value: ami +%% +Type: grandfathered +Tag: i-bnn +Description: Bunun +Added: 1999-05-25 +Deprecated: 2009-07-29 +Preferred-Value: bnn +%% +Type: grandfathered +Tag: i-default +Description: Default Language +Added: 1998-03-10 +%% +Type: grandfathered +Tag: i-enochian +Description: Enochian +Added: 2002-07-03 +Deprecated: 2015-03-29 +%% +Type: grandfathered +Tag: i-hak +Description: Hakka +Added: 1999-01-31 +Deprecated: 2000-01-10 +Preferred-Value: hak +%% +Type: grandfathered +Tag: i-klingon +Description: Klingon +Added: 1999-05-26 +Deprecated: 2004-02-24 +Preferred-Value: tlh +%% +Type: grandfathered +Tag: i-lux +Description: Luxembourgish +Added: 1997-09-19 +Deprecated: 1998-09-09 +Preferred-Value: lb +%% +Type: grandfathered +Tag: i-mingo +Description: Mingo +Added: 1997-09-19 +%% +Type: grandfathered +Tag: i-navajo +Description: Navajo +Added: 1997-09-19 +Deprecated: 2000-02-18 +Preferred-Value: nv +%% +Type: grandfathered +Tag: i-pwn +Description: Paiwan +Added: 1999-05-25 +Deprecated: 2009-07-29 +Preferred-Value: pwn +%% +Type: grandfathered +Tag: i-tao +Description: Tao +Added: 1999-05-25 +Deprecated: 2009-07-29 +Preferred-Value: tao +%% +Type: grandfathered +Tag: i-tay +Description: Tayal +Added: 1999-05-25 +Deprecated: 2009-07-29 +Preferred-Value: tay +%% +Type: grandfathered +Tag: i-tsu +Description: Tsou +Added: 1999-05-25 +Deprecated: 2009-07-29 +Preferred-Value: tsu +%% +Type: grandfathered +Tag: no-bok +Description: Norwegian Bokmal +Added: 1995-08-23 +Deprecated: 2000-02-18 +Preferred-Value: nb +%% +Type: grandfathered +Tag: no-nyn +Description: Norwegian Nynorsk +Added: 1995-08-23 +Deprecated: 2000-02-18 +Preferred-Value: nn +%% +Type: grandfathered +Tag: sgn-BE-FR +Description: Belgian-French Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: sfb +%% +Type: grandfathered +Tag: sgn-BE-NL +Description: Belgian-Flemish Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: vgt +%% +Type: grandfathered +Tag: sgn-CH-DE +Description: Swiss German Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: sgg +%% +Type: grandfathered +Tag: zh-guoyu +Description: Mandarin or Standard Chinese +Added: 1999-12-18 +Deprecated: 2005-07-15 +Preferred-Value: cmn +%% +Type: grandfathered +Tag: zh-hakka +Description: Hakka +Added: 1999-12-18 +Deprecated: 2009-07-29 +Preferred-Value: hak +%% +Type: grandfathered +Tag: zh-min +Description: Min, Fuzhou, Hokkien, Amoy, or Taiwanese +Added: 1999-12-18 +Deprecated: 2009-07-29 +Comments: see cdo, cpx, czo, mnp, nan +%% +Type: grandfathered +Tag: zh-min-nan +Description: Minnan, Hokkien, Amoy, Taiwanese, Southern Min, Southern + Fujian, Hoklo, Southern Fukien, Ho-lo +Added: 2001-03-26 +Deprecated: 2009-07-29 +Preferred-Value: nan +%% +Type: grandfathered +Tag: zh-xiang +Description: Xiang or Hunanese +Added: 1999-12-18 +Deprecated: 2009-07-29 +Preferred-Value: hsn +%% +Type: redundant +Tag: az-Arab +Description: Azerbaijani in Arabic script +Added: 2003-05-30 +%% +Type: redundant +Tag: az-Cyrl +Description: Azerbaijani in Cyrillic script +Added: 2003-05-30 +%% +Type: redundant +Tag: az-Latn +Description: Azerbaijani in Latin script +Added: 2003-05-30 +%% +Type: redundant +Tag: be-Latn +Description: Belarusian in Latin script +Added: 2005-01-06 +%% +Type: redundant +Tag: bs-Cyrl +Description: Bosnian in Cyrillic script +Added: 2005-02-17 +%% +Type: redundant +Tag: bs-Latn +Description: Bosnian in Latin script +Added: 2005-02-17 +%% +Type: redundant +Tag: de-1901 +Description: German, traditional orthography +Added: 2001-07-17 +%% +Type: redundant +Tag: de-1996 +Description: German, orthography of 1996 +Added: 2001-07-17 +%% +Type: redundant +Tag: de-AT-1901 +Description: German, Austrian variant, traditional orthography +Added: 2001-07-17 +%% +Type: redundant +Tag: de-AT-1996 +Description: German, Austrian variant, orthography of 1996 +Added: 2001-07-17 +%% +Type: redundant +Tag: de-CH-1901 +Description: German, Swiss variant, traditional orthography +Added: 2001-07-17 +%% +Type: redundant +Tag: de-CH-1996 +Description: German, Swiss variant, orthography of 1996 +Added: 2001-07-17 +%% +Type: redundant +Tag: de-DE-1901 +Description: German, German variant, traditional orthography +Added: 2001-07-17 +%% +Type: redundant +Tag: de-DE-1996 +Description: German, German variant, orthography of 1996 +Added: 2001-07-17 +%% +Type: redundant +Tag: en-boont +Description: Boontling +Added: 2003-02-14 +%% +Type: redundant +Tag: en-scouse +Description: Scouse +Added: 2000-05-25 +%% +Type: redundant +Tag: es-419 +Description: Latin American Spanish +Added: 2005-07-15 +%% +Type: redundant +Tag: iu-Cans +Description: Inuktitut in Canadian Aboriginal Syllabic script +Added: 2005-02-17 +%% +Type: redundant +Tag: iu-Latn +Description: Inuktitut in Latin script +Added: 2005-02-17 +%% +Type: redundant +Tag: mn-Cyrl +Description: Mongolian in Cyrillic script +Added: 2005-02-17 +%% +Type: redundant +Tag: mn-Mong +Description: Mongolian in Mongolian script +Added: 2005-02-17 +%% +Type: redundant +Tag: sgn-BR +Description: Brazilian Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: bzs +%% +Type: redundant +Tag: sgn-CO +Description: Colombian Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: csn +%% +Type: redundant +Tag: sgn-DE +Description: German Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: gsg +%% +Type: redundant +Tag: sgn-DK +Description: Danish Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: dsl +%% +Type: redundant +Tag: sgn-ES +Description: Spanish Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: ssp +%% +Type: redundant +Tag: sgn-FR +Description: French Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: fsl +%% +Type: redundant +Tag: sgn-GB +Description: British Sign Language +Added: 2001-03-02 +Deprecated: 2009-07-29 +Preferred-Value: bfi +%% +Type: redundant +Tag: sgn-GR +Description: Greek Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: gss +%% +Type: redundant +Tag: sgn-IE +Description: Irish Sign Language +Added: 2001-03-02 +Deprecated: 2009-07-29 +Preferred-Value: isg +%% +Type: redundant +Tag: sgn-IT +Description: Italian Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: ise +%% +Type: redundant +Tag: sgn-JP +Description: Japanese Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: jsl +%% +Type: redundant +Tag: sgn-MX +Description: Mexican Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: mfs +%% +Type: redundant +Tag: sgn-NI +Description: Nicaraguan Sign Language +Added: 2001-03-02 +Deprecated: 2009-07-29 +Preferred-Value: ncs +%% +Type: redundant +Tag: sgn-NL +Description: Dutch Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: dse +%% +Type: redundant +Tag: sgn-NO +Description: Norwegian Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: nsl +%% +Type: redundant +Tag: sgn-PT +Description: Portuguese Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: psr +%% +Type: redundant +Tag: sgn-SE +Description: Swedish Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: swl +%% +Type: redundant +Tag: sgn-US +Description: American Sign Language +Added: 2001-03-02 +Deprecated: 2009-07-29 +Preferred-Value: ase +%% +Type: redundant +Tag: sgn-ZA +Description: South African Sign Language +Added: 2001-11-11 +Deprecated: 2009-07-29 +Preferred-Value: sfs +%% +Type: redundant +Tag: sl-nedis +Description: Natisone dialect, Nadiza dialect +Added: 2004-06-01 +%% +Type: redundant +Tag: sl-rozaj +Description: Resian, Resianic, Rezijan +Added: 2003-10-09 +%% +Type: redundant +Tag: sr-Cyrl +Description: Serbian in Cyrillic script +Added: 2003-05-30 +%% +Type: redundant +Tag: sr-Latn +Description: Serbian in Latin script +Added: 2003-05-30 +%% +Type: redundant +Tag: tg-Arab +Description: Tajik in Arabic script +Added: 2005-02-17 +%% +Type: redundant +Tag: tg-Cyrl +Description: Tajik in Cyrillic script +Added: 2005-02-17 +%% +Type: redundant +Tag: uz-Cyrl +Description: Uzbek in Cyrillic script +Added: 2003-05-30 +%% +Type: redundant +Tag: uz-Latn +Description: Uzbek in Latin script +Added: 2003-05-30 +%% +Type: redundant +Tag: yi-Latn +Description: Yiddish, in Latin script +Added: 2003-01-07 +%% +Type: redundant +Tag: zh-cmn +Description: Mandarin Chinese +Added: 2005-07-15 +Deprecated: 2009-07-29 +Preferred-Value: cmn +%% +Type: redundant +Tag: zh-cmn-Hans +Description: Mandarin Chinese (Simplified) +Added: 2005-07-15 +Deprecated: 2009-07-29 +Preferred-Value: cmn-Hans +%% +Type: redundant +Tag: zh-cmn-Hant +Description: Mandarin Chinese (Traditional) +Added: 2005-07-15 +Deprecated: 2009-07-29 +Preferred-Value: cmn-Hant +%% +Type: redundant +Tag: zh-gan +Description: Kan or Gan +Added: 1999-12-18 +Deprecated: 2009-07-29 +Preferred-Value: gan +%% +Type: redundant +Tag: zh-Hans +Description: simplified Chinese +Added: 2003-05-30 +%% +Type: redundant +Tag: zh-Hans-CN +Description: PRC Mainland Chinese in simplified script +Added: 2005-04-13 +%% +Type: redundant +Tag: zh-Hans-HK +Description: Hong Kong Chinese in simplified script +Added: 2005-04-11 +%% +Type: redundant +Tag: zh-Hans-MO +Description: Macao Chinese in simplified script +Added: 2005-04-11 +%% +Type: redundant +Tag: zh-Hans-SG +Description: Singapore Chinese in simplified script +Added: 2005-04-11 +%% +Type: redundant +Tag: zh-Hans-TW +Description: Taiwan Chinese in simplified script +Added: 2005-04-11 +%% +Type: redundant +Tag: zh-Hant +Description: traditional Chinese +Added: 2003-05-30 +%% +Type: redundant +Tag: zh-Hant-CN +Description: PRC Mainland Chinese in traditional script +Added: 2005-04-13 +%% +Type: redundant +Tag: zh-Hant-HK +Description: Hong Kong Chinese in traditional script +Added: 2005-04-11 +%% +Type: redundant +Tag: zh-Hant-MO +Description: Macao Chinese in traditional script +Added: 2005-04-11 +%% +Type: redundant +Tag: zh-Hant-SG +Description: Singapore Chinese in traditional script +Added: 2005-04-11 +%% +Type: redundant +Tag: zh-Hant-TW +Description: Taiwan Chinese in traditional script +Added: 2005-04-11 +%% +Type: redundant +Tag: zh-wuu +Description: Shanghaiese or Wu +Added: 1999-12-18 +Deprecated: 2009-07-29 +Preferred-Value: wuu +%% +Type: redundant +Tag: zh-yue +Description: Cantonese +Added: 1999-12-18 +Deprecated: 2009-07-29 +Preferred-Value: yue +'''; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/localizations_utils.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/localizations_utils.dart new file mode 100644 index 0000000000000000000000000000000000000000..bfe3cc9d380f50c641c5ca567a0709db2726fa6a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/localizations_utils.dart @@ -0,0 +1,468 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; +import 'dart:io'; + +import 'package:args/args.dart' as argslib; +import 'package:meta/meta.dart'; + +import 'language_subtag_registry.dart'; + +typedef HeaderGenerator = String Function(String regenerateInstructions); +typedef ConstructorGenerator = String Function(LocaleInfo locale); + +int sortFilesByPath (FileSystemEntity a, FileSystemEntity b) { + return a.path.compareTo(b.path); +} + +/// Simple data class to hold parsed locale. Does not promise validity of any data. +@immutable +class LocaleInfo implements Comparable { + const LocaleInfo({ + required this.languageCode, + this.scriptCode, + this.countryCode, + required this.length, + required this.originalString, + }); + + /// Simple parser. Expects the locale string to be in the form of 'language_script_COUNTRY' + /// where the language is 2 characters, script is 4 characters with the first uppercase, + /// and country is 2-3 characters and all uppercase. + /// + /// 'language_COUNTRY' or 'language_script' are also valid. Missing fields will be null. + /// + /// When `deriveScriptCode` is true, if [scriptCode] was unspecified, it will + /// be derived from the [languageCode] and [countryCode] if possible. + factory LocaleInfo.fromString(String locale, { bool deriveScriptCode = false }) { + final List codes = locale.split('_'); // [language, script, country] + assert(codes.isNotEmpty && codes.length < 4); + final String languageCode = codes[0]; + String? scriptCode; + String? countryCode; + int length = codes.length; + String originalString = locale; + if (codes.length == 2) { + scriptCode = codes[1].length >= 4 ? codes[1] : null; + countryCode = codes[1].length < 4 ? codes[1] : null; + } else if (codes.length == 3) { + scriptCode = codes[1].length > codes[2].length ? codes[1] : codes[2]; + countryCode = codes[1].length < codes[2].length ? codes[1] : codes[2]; + } + assert(codes[0].isNotEmpty); + assert(countryCode == null || countryCode.isNotEmpty); + assert(scriptCode == null || scriptCode.isNotEmpty); + + /// Adds scriptCodes to locales where we are able to assume it to provide + /// finer granularity when resolving locales. + /// + /// The basis of the assumptions here are based off of known usage of scripts + /// across various countries. For example, we know Taiwan uses traditional (Hant) + /// script, so it is safe to apply (Hant) to Taiwanese languages. + if (deriveScriptCode && scriptCode == null) { + switch (languageCode) { + case 'zh': { + if (countryCode == null) { + scriptCode = 'Hans'; + } + switch (countryCode) { + case 'CN': + case 'SG': + scriptCode = 'Hans'; + case 'TW': + case 'HK': + case 'MO': + scriptCode = 'Hant'; + } + break; + } + case 'sr': { + if (countryCode == null) { + scriptCode = 'Cyrl'; + } + break; + } + } + // Increment length if we were able to assume a scriptCode. + if (scriptCode != null) { + length += 1; + } + // Update the base string to reflect assumed scriptCodes. + originalString = languageCode; + if (scriptCode != null) { + originalString += '_$scriptCode'; + } + if (countryCode != null) { + originalString += '_$countryCode'; + } + } + + return LocaleInfo( + languageCode: languageCode, + scriptCode: scriptCode, + countryCode: countryCode, + length: length, + originalString: originalString, + ); + } + + final String languageCode; + final String? scriptCode; + final String? countryCode; + final int length; // The number of fields. Ranges from 1-3. + final String originalString; // Original un-parsed locale string. + + String camelCase() { + return originalString + .split('_') + .map((String part) => part.substring(0, 1).toUpperCase() + part.substring(1).toLowerCase()) + .join(); + } + + @override + bool operator ==(Object other) { + return other is LocaleInfo + && other.originalString == originalString; + } + + @override + int get hashCode => originalString.hashCode; + + @override + String toString() { + return originalString; + } + + @override + int compareTo(LocaleInfo other) { + return originalString.compareTo(other.originalString); + } +} + +/// Parse the data for a locale from a file, and store it in the [attributes] +/// and [resources] keys. +void loadMatchingArbsIntoBundleMaps({ + required Directory directory, + required RegExp filenamePattern, + required Map> localeToResources, + required Map> localeToResourceAttributes, +}) { + + /// Set that holds the locales that were assumed from the existing locales. + /// + /// For example, when the data lacks data for zh_Hant, we will use the data of + /// the first Hant Chinese locale as a default by repeating the data. If an + /// explicit match is later found, we can reference this set to see if we should + /// overwrite the existing assumed data. + final Set assumedLocales = {}; + + for (final FileSystemEntity entity in directory.listSync().toList()..sort(sortFilesByPath)) { + final String entityPath = entity.path; + if (FileSystemEntity.isFileSync(entityPath) && filenamePattern.hasMatch(entityPath)) { + final String localeString = filenamePattern.firstMatch(entityPath)![1]!; + final File arbFile = File(entityPath); + + // Helper method to fill the maps with the correct data from file. + void populateResources(LocaleInfo locale, File file) { + final Map resources = localeToResources[locale]!; + final Map attributes = localeToResourceAttributes[locale]!; + final Map bundle = json.decode(file.readAsStringSync()) as Map; + for (final String key in bundle.keys) { + // The ARB file resource "attributes" for foo are called @foo. + if (key.startsWith('@')) { + attributes[key.substring(1)] = bundle[key]; + } else { + resources[key] = bundle[key] as String; + } + } + } + // Only pre-assume scriptCode if there is a country or script code to assume off of. + // When we assume scriptCode based on languageCode-only, we want this initial pass + // to use the un-assumed version as a base class. + LocaleInfo locale = LocaleInfo.fromString(localeString, deriveScriptCode: localeString.split('_').length > 1); + // Allow overwrite if the existing data is assumed. + if (assumedLocales.contains(locale)) { + localeToResources[locale] = {}; + localeToResourceAttributes[locale] = {}; + assumedLocales.remove(locale); + } else { + localeToResources[locale] ??= {}; + localeToResourceAttributes[locale] ??= {}; + } + populateResources(locale, arbFile); + // Add an assumed locale to default to when there is no info on scriptOnly locales. + locale = LocaleInfo.fromString(localeString, deriveScriptCode: true); + if (locale.scriptCode != null) { + final LocaleInfo scriptLocale = LocaleInfo.fromString('${locale.languageCode}_${locale.scriptCode}'); + if (!localeToResources.containsKey(scriptLocale)) { + assumedLocales.add(scriptLocale); + localeToResources[scriptLocale] ??= {}; + localeToResourceAttributes[scriptLocale] ??= {}; + populateResources(scriptLocale, arbFile); + } + } + } + } +} + +void exitWithError(String errorMessage) { + stderr.writeln('fatal: $errorMessage'); + exit(1); +} + +void checkCwdIsRepoRoot(String commandName) { + final bool isRepoRoot = Directory('.git').existsSync(); + + if (!isRepoRoot) { + exitWithError( + '$commandName must be run from the root of the Flutter repository. The ' + 'current working directory is: ${Directory.current.path}' + ); + } +} + +GeneratorOptions parseArgs(List rawArgs) { + final argslib.ArgParser argParser = argslib.ArgParser() + ..addFlag( + 'help', + abbr: 'h', + help: 'Print the usage message for this command', + ) + ..addFlag( + 'overwrite', + abbr: 'w', + help: 'Overwrite existing localizations', + ) + ..addFlag( + 'remove-undefined', + help: 'Remove any localizations that are not defined in the canonical locale.', + ) + ..addFlag( + 'widgets', + help: 'Whether to print the generated classes for the Widgets package only. Ignored when --overwrite is passed.', + ) + ..addFlag( + 'material', + help: 'Whether to print the generated classes for the Material package only. Ignored when --overwrite is passed.', + ) + ..addFlag( + 'cupertino', + help: 'Whether to print the generated classes for the Cupertino package only. Ignored when --overwrite is passed.', + ); + final argslib.ArgResults args = argParser.parse(rawArgs); + if (args.wasParsed('help') && args['help'] == true) { + stderr.writeln(argParser.usage); + exit(0); + } + final bool writeToFile = args['overwrite'] as bool; + final bool removeUndefined = args['remove-undefined'] as bool; + final bool widgetsOnly = args['widgets'] as bool; + final bool materialOnly = args['material'] as bool; + final bool cupertinoOnly = args['cupertino'] as bool; + + return GeneratorOptions( + writeToFile: writeToFile, + materialOnly: materialOnly, + cupertinoOnly: cupertinoOnly, + widgetsOnly: widgetsOnly, + removeUndefined: removeUndefined, + ); +} + +class GeneratorOptions { + GeneratorOptions({ + required this.writeToFile, + required this.removeUndefined, + required this.materialOnly, + required this.cupertinoOnly, + required this.widgetsOnly, + }); + + final bool writeToFile; + final bool removeUndefined; + final bool materialOnly; + final bool cupertinoOnly; + final bool widgetsOnly; +} + +// See also //master/tools/gen_locale.dart in the engine repo. +Map> _parseSection(String section) { + final Map> result = >{}; + late List lastHeading; + for (final String line in section.split('\n')) { + if (line == '') { + continue; + } + if (line.startsWith(' ')) { + lastHeading[lastHeading.length - 1] = '${lastHeading.last}${line.substring(1)}'; + continue; + } + final int colon = line.indexOf(':'); + if (colon <= 0) { + throw 'not sure how to deal with "$line"'; + } + final String name = line.substring(0, colon); + final String value = line.substring(colon + 2); + lastHeading = result.putIfAbsent(name, () => []); + result[name]!.add(value); + } + return result; +} + +final Map _languages = {}; +final Map _regions = {}; +final Map _scripts = {}; +const String kProvincePrefix = ', Province of '; +const String kParentheticalPrefix = ' ('; + +/// Prepares the data for the [describeLocale] method below. +/// +/// The data is obtained from the official IANA registry. +void precacheLanguageAndRegionTags() { + final List>> sections = + languageSubtagRegistry.split('%%').skip(1).map>>(_parseSection).toList(); + for (final Map> section in sections) { + assert(section.containsKey('Type'), section.toString()); + final String type = section['Type']!.single; + if (type == 'language' || type == 'region' || type == 'script') { + assert(section.containsKey('Subtag') && section.containsKey('Description'), section.toString()); + final String subtag = section['Subtag']!.single; + String description = section['Description']!.join(' '); + if (description.startsWith('United ')) { + description = 'the $description'; + } + if (description.contains(kParentheticalPrefix)) { + description = description.substring(0, description.indexOf(kParentheticalPrefix)); + } + if (description.contains(kProvincePrefix)) { + description = description.substring(0, description.indexOf(kProvincePrefix)); + } + if (description.endsWith(' Republic')) { + description = 'the $description'; + } + switch (type) { + case 'language': + _languages[subtag] = description; + case 'region': + _regions[subtag] = description; + case 'script': + _scripts[subtag] = description; + } + } + } +} + +String describeLocale(String tag) { + final List subtags = tag.split('_'); + assert(subtags.isNotEmpty); + assert(_languages.containsKey(subtags[0])); + final String language = _languages[subtags[0]]!; + String output = language; + String? region; + String? script; + if (subtags.length == 2) { + region = _regions[subtags[1]]; + script = _scripts[subtags[1]]; + assert(region != null || script != null); + } else if (subtags.length >= 3) { + region = _regions[subtags[2]]; + script = _scripts[subtags[1]]; + assert(region != null && script != null); + } + if (region != null) { + output += ', as used in $region'; + } + if (script != null) { + output += ', using the $script script'; + } + return output; +} + +/// Writes the header of each class which corresponds to a locale. +String generateClassDeclaration( + LocaleInfo locale, + String classNamePrefix, + String superClass, +) { + final String camelCaseName = locale.camelCase(); + return ''' + +/// The translations for ${describeLocale(locale.originalString)} (`${locale.originalString}`). +class $classNamePrefix$camelCaseName extends $superClass {'''; +} + +/// Return the input string as a Dart-parseable string. +/// +/// ``` +/// foo => 'foo' +/// foo "bar" => 'foo "bar"' +/// foo 'bar' => "foo 'bar'" +/// foo 'bar' "baz" => '''foo 'bar' "baz"''' +/// ``` +/// +/// This function is used by tools that take in a JSON-formatted file to +/// generate Dart code. For this reason, characters with special meaning +/// in JSON files are escaped. For example, the backspace character (\b) +/// has to be properly escaped by this function so that the generated +/// Dart code correctly represents this character: +/// ``` +/// foo\bar => 'foo\\bar' +/// foo\nbar => 'foo\\nbar' +/// foo\\nbar => 'foo\\\\nbar' +/// foo\\bar => 'foo\\\\bar' +/// foo\ bar => 'foo\\ bar' +/// foo$bar = 'foo\$bar' +/// ``` +String generateString(String value) { + if (['\n', '\f', '\t', '\r', '\b'].every((String pattern) => !value.contains(pattern))) { + final bool hasDollar = value.contains(r'$'); + final bool hasBackslash = value.contains(r'\'); + final bool hasQuote = value.contains("'"); + final bool hasDoubleQuote = value.contains('"'); + if (!hasQuote) { + return hasBackslash || hasDollar ? "r'$value'" : "'$value'"; + } + if (!hasDoubleQuote) { + return hasBackslash || hasDollar ? 'r"$value"' : '"$value"'; + } + } + + const String backslash = '__BACKSLASH__'; + assert( + !value.contains(backslash), + 'Input string cannot contain the sequence: ' + '"__BACKSLASH__", as it is used as part of ' + 'backslash character processing.' + ); + + value = value + // Replace backslashes with a placeholder for now to properly parse + // other special characters. + .replaceAll(r'\', backslash) + .replaceAll(r'$', r'\$') + .replaceAll("'", r"\'") + .replaceAll('"', r'\"') + .replaceAll('\n', r'\n') + .replaceAll('\f', r'\f') + .replaceAll('\t', r'\t') + .replaceAll('\r', r'\r') + .replaceAll('\b', r'\b') + // Reintroduce escaped backslashes into generated Dart string. + .replaceAll(backslash, r'\\'); + + return "'$value'"; +} + +/// Only used to generate localization strings for the Kannada locale ('kn') because +/// some of the localized strings contain characters that can crash Emacs on Linux. +/// See packages/flutter_localizations/lib/src/l10n/README for more information. +String generateEncodedString(String? locale, String value) { + if (locale != 'kn' || value.runes.every((int code) => code <= 0xFF)) { + return generateString(value); + } + + final String unicodeEscapes = value.runes.map((int code) => '\\u{${code.toRadixString(16)}}').join(); + return "'$unicodeEscapes'"; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/localization/localizations_validator.dart b/novelforge-project/agent-workspace/flutter/dev/tools/localization/localizations_validator.dart new file mode 100644 index 0000000000000000000000000000000000000000..4b374fc6862fea855db0f5f261c4ccab0c5da07f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/localization/localizations_validator.dart @@ -0,0 +1,215 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert' show json; +import 'dart:io'; + +import 'localizations_utils.dart'; + +// The first suffix in kPluralSuffixes must be "Other". "Other" is special +// because it's the only one that is required. +const List kPluralSuffixes = ['Other', 'Zero', 'One', 'Two', 'Few', 'Many']; +final RegExp kPluralRegexp = RegExp(r'(\w*)(' + kPluralSuffixes.skip(1).join(r'|') + r')$'); + +class ValidationError implements Exception { + ValidationError(this. message); + final String message; + @override + String toString() => message; +} + +/// Sanity checking of the @foo metadata in the English translations, *_en.arb. +/// +/// - For each foo, resource, there must be a corresponding @foo. +/// - For each @foo resource, there must be a corresponding foo, except +/// for plurals, for which there must be a fooOther. +/// - Each @foo resource must have a Map value with a String valued +/// description entry. +/// +/// Throws an exception upon failure. +void validateEnglishLocalizations(File file) { + final StringBuffer errorMessages = StringBuffer(); + + if (!file.existsSync()) { + errorMessages.writeln('English localizations do not exist: $file'); + throw ValidationError(errorMessages.toString()); + } + + final Map bundle = json.decode(file.readAsStringSync()) as Map; + + for (final String resourceId in bundle.keys) { + if (resourceId.startsWith('@')) { + continue; + } + + if (bundle['@$resourceId'] != null) { + continue; + } + + bool checkPluralResource(String suffix) { + final int suffixIndex = resourceId.indexOf(suffix); + return suffixIndex != -1 && bundle['@${resourceId.substring(0, suffixIndex)}'] != null; + } + if (kPluralSuffixes.any(checkPluralResource)) { + continue; + } + + errorMessages.writeln('A value was not specified for @$resourceId'); + } + + for (final String atResourceId in bundle.keys) { + if (!atResourceId.startsWith('@')) { + continue; + } + + final dynamic atResourceValue = bundle[atResourceId]; + final Map? atResource = + atResourceValue is Map ? atResourceValue : null; + if (atResource == null) { + errorMessages.writeln('A map value was not specified for $atResourceId'); + continue; + } + + final bool optional = atResource.containsKey('optional'); + final String? description = atResource['description'] as String?; + if (description == null && !optional) { + errorMessages.writeln('No description specified for $atResourceId'); + } + + final String? plural = atResource['plural'] as String?; + final String resourceId = atResourceId.substring(1); + if (plural != null) { + final String resourceIdOther = '${resourceId}Other'; + if (!bundle.containsKey(resourceIdOther)) { + errorMessages.writeln('Default plural resource $resourceIdOther undefined'); + } + } else { + if (!optional && !bundle.containsKey(resourceId)) { + errorMessages.writeln('No matching $resourceId defined for $atResourceId'); + } + } + } + + if (errorMessages.isNotEmpty) { + throw ValidationError(errorMessages.toString()); + } +} + +/// This removes undefined localizations (localizations that aren't present in +/// the canonical locale anymore) by: +/// +/// 1. Looking up the canonical (English, in this case) localizations. +/// 2. For each locale, getting the resources. +/// 3. Determining the set of keys that aren't plural variations (we're only +/// interested in the base terms being translated and not their variants) +/// 4. Determining the set of invalid keys; that is those that are (non-plural) +/// keys in the resources for this locale, but which _aren't_ keys in the +/// canonical list. +/// 5. Removes the invalid mappings from this resource's locale. +void removeUndefinedLocalizations( + Map> localeToResources, +) { + final Map canonicalLocalizations = localeToResources[LocaleInfo.fromString('en')]!; + final Set canonicalKeys = Set.from(canonicalLocalizations.keys); + + localeToResources.forEach((LocaleInfo locale, Map resources) { + bool isPluralVariation(String key) { + final Match? pluralMatch = kPluralRegexp.firstMatch(key); + if (pluralMatch == null) { + return false; + } + final String? prefix = pluralMatch[1]; + return resources.containsKey('${prefix}Other'); + } + + final Set keys = Set.from( + resources.keys.where((String key) => !isPluralVariation(key)) + ); + + final Set invalidKeys = keys.difference(canonicalKeys); + resources.removeWhere((String key, String value) => invalidKeys.contains(key)); + }); +} + +/// Enforces the following invariants in our localizations: +/// +/// - Resource keys are valid, i.e. they appear in the canonical list. +/// - Resource keys are complete for language-level locales, e.g. "es", "he". +/// +/// Uses "en" localizations as the canonical source of locale keys that other +/// locales are compared against. +/// +/// If validation fails, throws an exception. +void validateLocalizations( + Map> localeToResources, + Map> localeToAttributes, { + bool removeUndefined = false, +}) { + final Map canonicalLocalizations = localeToResources[LocaleInfo.fromString('en')]!; + final Set canonicalKeys = Set.from(canonicalLocalizations.keys); + final StringBuffer errorMessages = StringBuffer(); + bool explainMissingKeys = false; + for (final LocaleInfo locale in localeToResources.keys) { + final Map resources = localeToResources[locale]!; + + // Whether `key` corresponds to one of the plural variations of a key with + // the same prefix and suffix "Other". + // + // Many languages require only a subset of these variations, so we do not + // require them so long as the "Other" variation exists. + bool isPluralVariation(String key) { + final Match? pluralMatch = kPluralRegexp.firstMatch(key); + if (pluralMatch == null) { + return false; + } + final String? prefix = pluralMatch[1]; + return resources.containsKey('${prefix}Other'); + } + + final Set keys = Set.from( + resources.keys.where((String key) => !isPluralVariation(key)) + ); + + // Make sure keys are valid (i.e. they also exist in the canonical + // localizations) + final Set invalidKeys = keys.difference(canonicalKeys); + if (invalidKeys.isNotEmpty && !removeUndefined) { + errorMessages.writeln('Locale "$locale" contains invalid resource keys: ${invalidKeys.join(', ')}'); + } + + // For language-level locales only, check that they have a complete list of + // keys, or opted out of using certain ones. + if (locale.length == 1) { + final Map? attributes = localeToAttributes[locale]; + final List missingKeys = []; + for (final String missingKey in canonicalKeys.difference(keys)) { + final dynamic attribute = attributes?[missingKey]; + final bool intentionallyOmitted = attribute is Map && attribute.containsKey('notUsed'); + if (!intentionallyOmitted && !isPluralVariation(missingKey)) { + missingKeys.add(missingKey); + } + } + if (missingKeys.isNotEmpty) { + explainMissingKeys = true; + errorMessages.writeln('Locale "$locale" is missing the following resource keys: ${missingKeys.join(', ')}'); + } + } + } + + if (errorMessages.isNotEmpty) { + if (explainMissingKeys) { + errorMessages + ..writeln() + ..writeln( + 'If a resource key is intentionally omitted, add an attribute corresponding ' + 'to the key name with a "notUsed" property explaining why. Example:' + ) + ..writeln() + ..writeln('"@anteMeridiemAbbreviation": {') + ..writeln(' "notUsed": "Sindhi time format does not use a.m. indicator"') + ..writeln('}'); + } + throw ValidationError(errorMessages.toString()); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/mega_gallery.dart b/novelforge-project/agent-workspace/flutter/dev/tools/mega_gallery.dart new file mode 100644 index 0000000000000000000000000000000000000000..f75315d97016c89b86002380458139447f1c1699 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/mega_gallery.dart @@ -0,0 +1,202 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +import 'package:args/args.dart'; +import 'package:path/path.dart' as path; + +/// If no `copies` param is passed in, we scale the generated app up to 60k lines. +const int kTargetLineCount = 60 * 1024; + +/// Make `n` copies of flutter_gallery. +void main(List args) { + // If we're run from the `tools` dir, set the cwd to the repo root. + if (path.basename(Directory.current.path) == 'tools') { + Directory.current = Directory.current.parent.parent; + } + + final ArgParser argParser = ArgParser(); + argParser.addOption('out'); + argParser.addOption('copies'); + argParser.addFlag('delete', negatable: false); + argParser.addFlag('help', abbr: 'h', negatable: false); + + final ArgResults results = argParser.parse(args); + + if (results['help'] as bool) { + print('Generate n copies of flutter_gallery.\n'); + print('usage: dart mega_gallery.dart '); + print(argParser.usage); + exit(0); + } + + final Directory source = Directory(_normalize('dev/integration_tests/flutter_gallery')); + final Directory out = Directory(_normalize(results['out'] as String)); + + if (results['delete'] as bool) { + if (out.existsSync()) { + print('Deleting ${out.path}'); + out.deleteSync(recursive: true); + } + + exit(0); + } + + if (!results.wasParsed('out')) { + print('The --out parameter is required.'); + print(argParser.usage); + exit(1); + } + + int copies; + if (!results.wasParsed('copies')) { + final SourceStats stats = getStatsFor(_dir(source, 'lib')); + copies = (kTargetLineCount / stats.lines).round(); + } else { + copies = int.parse(results['copies'] as String); + } + + print('Making $copies copies of flutter_gallery.'); + print(''); + print('Stats:'); + print(' packages/flutter : ${getStatsFor(Directory("packages/flutter"))}'); + print(' dev/integration_tests/flutter_gallery : ${getStatsFor(Directory("dev/integration_tests/flutter_gallery"))}'); + + final Directory lib = _dir(out, 'lib'); + if (lib.existsSync()) { + lib.deleteSync(recursive: true); + } + + // Copy everything that's not a symlink, dot directory, or build/. + _copy(source, out); + + // Make n - 1 copies. + for (int i = 1; i < copies; i++) { + _copyGallery(out, i); + } + + // Create a new entry-point. + _createEntry(_file(out, 'lib/main.dart'), copies); + + // Update the pubspec. + String pubspec = _file(out, 'pubspec.yaml').readAsStringSync(); + pubspec = pubspec.replaceAll('../../packages/flutter', '../../../packages/flutter'); + _file(out, 'pubspec.yaml').writeAsStringSync(pubspec); + + // Remove the (flutter_gallery specific) analysis_options.yaml file. + _file(out, 'analysis_options.yaml').deleteSync(); + + _file(out, '.dartignore').writeAsStringSync(''); + + // Count source lines and number of files; tell how to run it. + print(' ${path.relative(results["out"] as String)} : ${getStatsFor(out)}'); +} + +// TODO(devoncarew): Create an entry-point that builds a UI with all `n` copies. +void _createEntry(File mainFile, int copies) { + final StringBuffer imports = StringBuffer(); + + for (int i = 1; i < copies; i++) { + imports.writeln('// ignore: unused_import'); + imports.writeln("import 'gallery_$i/main.dart' as main_$i;"); + } + + final String contents = ''' +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +import 'gallery/app.dart'; +${imports.toString().trim()} + +void main() { + runApp(const GalleryApp()); +} +'''; + + mainFile.writeAsStringSync(contents); +} + +void _copyGallery(Directory galleryDir, int index) { + final Directory lib = _dir(galleryDir, 'lib'); + final Directory dest = _dir(lib, 'gallery_$index'); + dest.createSync(); + + // Copy demo/, gallery/, and main.dart. + _copy(_dir(lib, 'demo'), _dir(dest, 'demo')); + _copy(_dir(lib, 'gallery'), _dir(dest, 'gallery')); + _file(dest, 'main.dart').writeAsBytesSync(_file(lib, 'main.dart').readAsBytesSync()); +} + +void _copy(Directory source, Directory target) { + if (!target.existsSync()) { + target.createSync(recursive: true); + } + + for (final FileSystemEntity entity in source.listSync(followLinks: false)) { + final String name = path.basename(entity.path); + + if (entity is Directory) { + if (name == 'build' || name.startsWith('.')) { + continue; + } + _copy(entity, Directory(path.join(target.path, name))); + } else if (entity is File) { + if (name == '.packages' || name == 'pubspec.lock') { + continue; + } + final File dest = File(path.join(target.path, name)); + dest.writeAsBytesSync(entity.readAsBytesSync()); + } + } +} + +Directory _dir(Directory parent, String name) => Directory(path.join(parent.path, name)); +File _file(Directory parent, String name) => File(path.join(parent.path, name)); +String _normalize(String filePath) => path.normalize(path.absolute(filePath)); + +class SourceStats { + int files = 0; + int lines = 0; + + @override + String toString() => '${_comma(files).padLeft(3)} files, ${_comma(lines).padLeft(6)} lines'; +} + +SourceStats getStatsFor(Directory dir, [SourceStats? stats]) { + stats ??= SourceStats(); + + for (final FileSystemEntity entity in dir.listSync(followLinks: false)) { + final String name = path.basename(entity.path); + if (entity is File && name.endsWith('.dart')) { + stats.files += 1; + stats.lines += _lineCount(entity); + } else if (entity is Directory && !name.startsWith('.')) { + getStatsFor(entity, stats); + } + } + + return stats; +} + +int _lineCount(File file) { + return file.readAsLinesSync().where((String line) { + line = line.trim(); + if (line.isEmpty || line.startsWith('//')) { + return false; + } + return true; + }).length; +} + +String _comma(int count) { + final String str = count.toString(); + if (str.length > 3) { + return '${str.substring(0, str.length - 3)},${str.substring(str.length - 3)}'; + } + return str; +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/tools/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..3865fcbc2d41e742edd2c1e34870ed9f12e88b4f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/pubspec.lock @@ -0,0 +1,421 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + _fe_analyzer_shared: + dependency: "direct dev" + description: + name: _fe_analyzer_shared + sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" + url: "https://pub.dev" + source: hosted + version: "65.0.0" + analyzer: + dependency: "direct dev" + description: + name: analyzer + sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 + url: "https://pub.dev" + source: hosted + version: "6.3.0" + archive: + dependency: "direct main" + description: + name: archive + sha256: "80e5141fafcb3361653ce308776cfd7d45e6e9fbb429e14eec571382c0c5fecb" + url: "https://pub.dev" + source: hosted + version: "3.3.2" + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct main" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + clock: + dependency: "direct main" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + convert: + dependency: "direct dev" + description: + name: convert + sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" + url: "https://pub.dev" + source: hosted + version: "3.1.1" + coverage: + dependency: "direct dev" + description: + name: coverage + sha256: "8acabb8306b57a409bf4c83522065672ee13179297a6bb0cb9ead73948df7c76" + url: "https://pub.dev" + source: hosted + version: "1.7.2" + crypto: + dependency: "direct main" + description: + name: crypto + sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab + url: "https://pub.dev" + source: hosted + version: "3.0.3" + file: + dependency: "direct main" + description: + name: file + sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" + url: "https://pub.dev" + source: hosted + version: "7.0.0" + frontend_server_client: + dependency: "direct dev" + description: + name: frontend_server_client + sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + url: "https://pub.dev" + source: hosted + version: "3.2.0" + glob: + dependency: "direct dev" + description: + name: glob + sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" + url: "https://pub.dev" + source: hosted + version: "2.1.2" + http: + dependency: "direct main" + description: + name: http + sha256: "5895291c13fa8a3bd82e76d5627f69e0d85ca6a30dcac95c4ea19a5d555879c2" + url: "https://pub.dev" + source: hosted + version: "0.13.6" + http_multi_server: + dependency: "direct dev" + description: + name: http_multi_server + sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" + url: "https://pub.dev" + source: hosted + version: "3.2.1" + http_parser: + dependency: "direct main" + description: + name: http_parser + sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" + url: "https://pub.dev" + source: hosted + version: "4.0.2" + intl: + dependency: "direct main" + description: + name: intl + sha256: "3bc132a9dbce73a7e4a21a17d06e1878839ffbf975568bc875c60537824b0c4d" + url: "https://pub.dev" + source: hosted + version: "0.18.1" + io: + dependency: "direct dev" + description: + name: io + sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + js: + dependency: "direct dev" + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" + logging: + dependency: "direct dev" + description: + name: logging + sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + mime: + dependency: "direct dev" + description: + name: mime + sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e + url: "https://pub.dev" + source: hosted + version: "1.0.4" + node_preamble: + dependency: "direct dev" + description: + name: node_preamble + sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" + url: "https://pub.dev" + source: hosted + version: "2.0.2" + package_config: + dependency: "direct dev" + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" + path: + dependency: "direct main" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + platform: + dependency: "direct main" + description: + name: platform + sha256: "12220bb4b65720483f8fa9450b4332347737cf8213dd2840d8b2c823e47243ec" + url: "https://pub.dev" + source: hosted + version: "3.1.4" + pool: + dependency: "direct dev" + description: + name: pool + sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" + url: "https://pub.dev" + source: hosted + version: "1.5.1" + process: + dependency: "direct main" + description: + name: process + sha256: "21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32" + url: "https://pub.dev" + source: hosted + version: "5.0.2" + pub_semver: + dependency: "direct main" + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + shelf: + dependency: "direct dev" + description: + name: shelf + sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 + url: "https://pub.dev" + source: hosted + version: "1.4.1" + shelf_packages_handler: + dependency: "direct dev" + description: + name: shelf_packages_handler + sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" + url: "https://pub.dev" + source: hosted + version: "3.0.2" + shelf_static: + dependency: "direct dev" + description: + name: shelf_static + sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e + url: "https://pub.dev" + source: hosted + version: "1.1.2" + shelf_web_socket: + dependency: "direct dev" + description: + name: shelf_web_socket + sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + url: "https://pub.dev" + source: hosted + version: "1.0.4" + source_map_stack_trace: + dependency: "direct dev" + description: + name: source_map_stack_trace + sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + source_maps: + dependency: "direct dev" + description: + name: source_maps + sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + url: "https://pub.dev" + source: hosted + version: "0.10.12" + source_span: + dependency: "direct main" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct main" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct main" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test: + dependency: "direct dev" + description: + name: test + sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f + url: "https://pub.dev" + source: hosted + version: "1.24.9" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + test_core: + dependency: "direct dev" + description: + name: test_core + sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a + url: "https://pub.dev" + source: hosted + version: "0.5.9" + typed_data: + dependency: "direct main" + description: + name: typed_data + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" + source: hosted + version: "1.3.2" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + watcher: + dependency: "direct dev" + description: + name: watcher + sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" + url: "https://pub.dev" + source: hosted + version: "1.1.0" + web: + dependency: "direct dev" + description: + name: web + sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + url: "https://pub.dev" + source: hosted + version: "0.4.0" + web_socket_channel: + dependency: "direct dev" + description: + name: web_socket_channel + sha256: "045ec2137c27bf1a32e6ffa0e734d532a6677bf9016a0d1a406c54e499ff945b" + url: "https://pub.dev" + source: hosted + version: "2.4.1" + webkit_inspection_protocol: + dependency: "direct dev" + description: + name: webkit_inspection_protocol + sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" + url: "https://pub.dev" + source: hosted + version: "1.2.1" + yaml: + dependency: "direct dev" + description: + name: yaml + sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" + url: "https://pub.dev" + source: hosted + version: "3.1.2" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/tools/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7f417337d0c3e24f7f61c67784bbc343c79a947f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/pubspec.yaml @@ -0,0 +1,65 @@ +name: dev_tools +description: Various repository development tools for flutter. + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + archive: 3.3.2 + args: 2.4.2 + http: 0.13.6 + intl: 0.18.1 + meta: 1.11.0 + path: 1.9.0 + process: 5.0.2 + pub_semver: 2.1.4 + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + crypto: 3.0.3 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + file: 7.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_parser: 4.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + platform: 3.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + typed_data: 1.3.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + test: 1.24.9 + test_api: 0.6.1 + + _fe_analyzer_shared: 65.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + analyzer: 6.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + convert: 3.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + coverage: 1.7.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + frontend_server_client: 3.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + glob: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + http_multi_server: 3.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + io: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + js: 0.6.7 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + logging: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + mime: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + node_preamble: 2.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + package_config: 2.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + pool: 1.5.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf: 1.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_packages_handler: 3.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_static: 1.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + shelf_web_socket: 1.0.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_map_stack_trace: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_maps: 0.10.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_core: 0.5.9 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + watcher: 1.1.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web: 0.4.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + web_socket_channel: 2.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + webkit_inspection_protocol: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + yaml: 3.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: c372 diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/repackage_gradle_wrapper.sh b/novelforge-project/agent-workspace/flutter/dev/tools/repackage_gradle_wrapper.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0c1fad39d442d4b210feffe502798e3fee97847 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/repackage_gradle_wrapper.sh @@ -0,0 +1,77 @@ +#!/usr/bin/env bash +# Copyright 2014 The Flutter Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +set -e + +# Update this URL to get another version of the Gradle wrapper. +# If the AOSP folks have changed the layout of their templates, you may also need to update the +# script below to grab the right files... +WRAPPER_SRC_URL="https://android.googlesource.com/platform/tools/base/+archive/0b5c1398d1d04ac245a310de98825cb7b3278e2a/templates.tgz" + +case "$(uname -s)" in + Darwin) + SHASUM="shasum" + ;; + *) + SHASUM="sha1sum" + ;; +esac + +function follow_links() { + cd -P "${1%/*}" + file="$PWD/${1##*/}" + while [ -h "$file" ]; do + # On Mac OS, readlink -f doesn't work. + cd -P "${file%/*}" + file="$(readlink "$file")" + cd -P "${file%/*}" + file="$PWD/${file##*/}" + done + echo "$PWD/${file##*/}" +} + +# Convert a filesystem path to a format usable by Dart's URI parser. +function path_uri() { + # Reduce multiple leading slashes to a single slash. + echo "$1" | sed -E -e "s,^/+,/," +} + +PROG_NAME="$(path_uri "$(follow_links "$BASH_SOURCE")")" +BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)" +FLUTTER_ROOT="$(cd "${BIN_DIR}/../.." ; pwd -P)" + +WRAPPER_VERSION_PATH="$FLUTTER_ROOT/bin/internal/gradle_wrapper.version" +WRAPPER_TEMP_DIR="$FLUTTER_ROOT/bin/cache/gradle-wrapper-temp" + +echo "Downloading gradle wrapper..." +rm -rf "$WRAPPER_TEMP_DIR" +mkdir "$WRAPPER_TEMP_DIR" +curl --continue-at - --location --output "$WRAPPER_TEMP_DIR/templates.tgz" "$WRAPPER_SRC_URL" 2>&1 + +echo +echo "Repackaging files..." +mkdir "$WRAPPER_TEMP_DIR/unpack" +tar xzf "$WRAPPER_TEMP_DIR/templates.tgz" -C "$WRAPPER_TEMP_DIR/unpack" gradle NOTICE + +mkdir "$WRAPPER_TEMP_DIR/repack" +mv "$WRAPPER_TEMP_DIR/unpack/gradle/wrapper"/* "$WRAPPER_TEMP_DIR/repack/" +mv "$WRAPPER_TEMP_DIR/unpack/NOTICE" "$WRAPPER_TEMP_DIR/repack/" + +pushd "$WRAPPER_TEMP_DIR/repack" > /dev/null +STAMP=`for h in $(find . -type f); do $SHASUM $h; done | $SHASUM | cut -d' ' -f1` +echo "Packaged files:" +tar cvzf ../gradle-wrapper.tgz * +popd > /dev/null + +echo +echo "Uploading repackaged gradle wrapper..." +echo "Content hash: $STAMP" +gsutil.py cp -n "$WRAPPER_TEMP_DIR/gradle-wrapper.tgz" "gs://flutter_infra_release/gradle-wrapper/$STAMP/gradle-wrapper.tgz" + +echo "flutter_infra_release/gradle-wrapper/$STAMP/gradle-wrapper.tgz" > "$WRAPPER_VERSION_PATH" + +rm -rf "$WRAPPER_TEMP_DIR" +echo +echo "All done. Updated bin/internal/gradle_wrapper.version, don't forget to commit!" diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/test/create_api_docs_test.dart b/novelforge-project/agent-workspace/flutter/dev/tools/test/create_api_docs_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..811885e13e2911a09ad95e2644594484582a55a7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/test/create_api_docs_test.dart @@ -0,0 +1,470 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:file/file.dart'; +import 'package:file/memory.dart'; +import 'package:platform/platform.dart'; +import 'package:pub_semver/pub_semver.dart'; +import 'package:test/test.dart'; + +import '../../../packages/flutter_tools/test/src/fake_process_manager.dart'; +import '../create_api_docs.dart' as apidocs; +import '../dartdoc_checker.dart'; + +void main() { + group('FlutterInformation', () { + late FakeProcessManager fakeProcessManager; + late FakePlatform fakePlatform; + late MemoryFileSystem memoryFileSystem; + late apidocs.FlutterInformation flutterInformation; + + void setUpWithEnvironment(Map environment) { + fakePlatform = FakePlatform(environment: environment); + flutterInformation = apidocs.FlutterInformation( + filesystem: memoryFileSystem, + processManager: fakeProcessManager, + platform: fakePlatform, + ); + apidocs.FlutterInformation.instance = flutterInformation; + } + + setUp(() { + fakeProcessManager = FakeProcessManager.empty(); + memoryFileSystem = MemoryFileSystem(); + setUpWithEnvironment({}); + }); + + test('getBranchName does not call git if env LUCI_BRANCH provided', () { + setUpWithEnvironment( + { + 'LUCI_BRANCH': branchName, + }, + ); + fakeProcessManager.addCommand(const FakeCommand( + command: ['flutter', '--version', '--machine'], + stdout: testVersionInfo, + )); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'rev-parse', 'HEAD'], + )); + expect( + apidocs.FlutterInformation.instance.getBranchName(), + branchName, + ); + expect(fakeProcessManager, hasNoRemainingExpectations); + }); + + test('getBranchName calls git if env LUCI_BRANCH not provided', () { + fakeProcessManager.addCommand(const FakeCommand( + command: ['flutter', '--version', '--machine'], + stdout: testVersionInfo, + )); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'status', '-b', '--porcelain'], + stdout: '## $branchName', + )); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'rev-parse', 'HEAD'], + )); + + expect( + apidocs.FlutterInformation.instance.getBranchName(), + branchName, + ); + expect(fakeProcessManager, hasNoRemainingExpectations); + }); + + test('getBranchName calls git if env LUCI_BRANCH is empty', () { + setUpWithEnvironment( + { + 'LUCI_BRANCH': '', + }, + ); + fakeProcessManager.addCommand(const FakeCommand( + command: ['flutter', '--version', '--machine'], + stdout: testVersionInfo, + )); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'status', '-b', '--porcelain'], + stdout: '## $branchName', + )); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'rev-parse', 'HEAD'], + )); + + expect( + apidocs.FlutterInformation.instance.getBranchName(), + branchName, + ); + expect(fakeProcessManager, hasNoRemainingExpectations); + }); + + test("runPubProcess doesn't use the pub binary", () { + final Platform platform = FakePlatform( + environment: { + 'FLUTTER_ROOT': '/flutter', + }, + ); + final ProcessManager processManager = FakeProcessManager.list( + [ + const FakeCommand( + command: ['/flutter/bin/flutter', 'pub', '--one', '--two'], + ), + ], + ); + apidocs.FlutterInformation.instance = + apidocs.FlutterInformation(platform: platform, processManager: processManager, filesystem: memoryFileSystem); + + apidocs.runPubProcess( + arguments: ['--one', '--two'], + processManager: processManager, + filesystem: memoryFileSystem, + ); + + expect(processManager, hasNoRemainingExpectations); + }); + + test('calls out to flutter if FLUTTER_VERSION is not set', () async { + fakeProcessManager.addCommand(const FakeCommand( + command: ['flutter', '--version', '--machine'], + stdout: testVersionInfo, + )); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'status', '-b', '--porcelain'], + stdout: '## $branchName', + )); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'rev-parse', 'HEAD'], + )); + final Map info = flutterInformation.getFlutterInformation(); + expect(fakeProcessManager, hasNoRemainingExpectations); + expect(info['frameworkVersion'], equals(Version.parse('2.5.0'))); + }); + test("doesn't call out to flutter if FLUTTER_VERSION is set", () async { + setUpWithEnvironment({ + 'FLUTTER_VERSION': testVersionInfo, + }); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'status', '-b', '--porcelain'], + stdout: '## $branchName', + )); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'rev-parse', 'HEAD'], + )); + final Map info = flutterInformation.getFlutterInformation(); + expect(fakeProcessManager, hasNoRemainingExpectations); + expect(info['frameworkVersion'], equals(Version.parse('2.5.0'))); + }); + test('getFlutterRoot calls out to flutter if FLUTTER_ROOT is not set', () async { + fakeProcessManager.addCommand(const FakeCommand( + command: ['flutter', '--version', '--machine'], + stdout: testVersionInfo, + )); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'status', '-b', '--porcelain'], + stdout: '## $branchName', + )); + fakeProcessManager.addCommand(const FakeCommand( + command: ['git', 'rev-parse', 'HEAD'], + )); + final Directory root = flutterInformation.getFlutterRoot(); + expect(fakeProcessManager, hasNoRemainingExpectations); + expect(root.path, equals('/home/user/flutter')); + }); + test("getFlutterRoot doesn't call out to flutter if FLUTTER_ROOT is set", () async { + setUpWithEnvironment({'FLUTTER_ROOT': '/home/user/flutter'}); + final Directory root = flutterInformation.getFlutterRoot(); + expect(fakeProcessManager, hasNoRemainingExpectations); + expect(root.path, equals('/home/user/flutter')); + }); + test('parses version properly', () async { + fakePlatform.environment['FLUTTER_VERSION'] = testVersionInfo; + fakeProcessManager.addCommands([ + const FakeCommand( + command: ['git', 'status', '-b', '--porcelain'], + stdout: '## $branchName', + ), + const FakeCommand( + command: ['git', 'rev-parse', 'HEAD'], + ), + ]); + final Map info = flutterInformation.getFlutterInformation(); + expect(info['frameworkVersion'], isNotNull); + expect(info['frameworkVersion'], equals(Version.parse('2.5.0'))); + expect(info['dartSdkVersion'], isNotNull); + expect(info['dartSdkVersion'], equals(Version.parse('2.14.0-360.0.dev'))); + }); + test('the engine realm is read from the engine.realm file', () async { + final Directory flutterHome = memoryFileSystem + .directory('/home') + .childDirectory('user') + .childDirectory('flutter') + .childDirectory('bin') + .childDirectory('internal'); + flutterHome.childFile('engine.realm') + ..createSync(recursive: true) + ..writeAsStringSync('realm'); + setUpWithEnvironment({'FLUTTER_ROOT': '/home/user/flutter'}); + fakeProcessManager.addCommands([ + const FakeCommand( + command: ['/home/user/flutter/bin/flutter', '--version', '--machine'], + stdout: testVersionInfo, + ), + const FakeCommand( + command: ['git', 'status', '-b', '--porcelain'], + stdout: '## $branchName', + ), + const FakeCommand( + command: ['git', 'rev-parse', 'HEAD'], + ), + ]); + final Map info = flutterInformation.getFlutterInformation(); + expect(fakeProcessManager, hasNoRemainingExpectations); + expect(info['engineRealm'], equals('realm')); + }); + }); + + group('DartDocGenerator', () { + late apidocs.DartdocGenerator generator; + late MemoryFileSystem fs; + late FakeProcessManager processManager; + late Directory publishRoot; + + setUp(() { + fs = MemoryFileSystem.test(); + publishRoot = fs.directory('/path/to/publish'); + processManager = FakeProcessManager.empty(); + generator = apidocs.DartdocGenerator( + packageRoot: fs.directory('/path/to/package'), + publishRoot: publishRoot, + docsRoot: fs.directory('/path/to/docs'), + filesystem: fs, + processManager: processManager, + ); + final Directory repoRoot = fs.directory('/flutter'); + repoRoot.childDirectory('packages').createSync(recursive: true); + apidocs.FlutterInformation.instance = apidocs.FlutterInformation( + filesystem: fs, + processManager: processManager, + platform: FakePlatform(environment: { + 'FLUTTER_ROOT': repoRoot.path, + }), + ); + }); + + test('.generateDartDoc() invokes dartdoc with the correct command line arguments', () async { + processManager.addCommands([ + const FakeCommand(command: ['/flutter/bin/flutter', 'pub', 'get']), + const FakeCommand( + command: ['/flutter/bin/flutter', '--version', '--machine'], + stdout: testVersionInfo, + ), + const FakeCommand( + command: ['git', 'status', '-b', '--porcelain'], + stdout: '## $branchName', + ), + const FakeCommand( + command: ['git', 'rev-parse', 'HEAD'], + ), + const FakeCommand( + command: ['/flutter/bin/flutter', 'pub', 'global', 'list'], + ), + FakeCommand( + command: [ + '/flutter/bin/flutter', + 'pub', + 'global', + 'run', + '--enable-asserts', + 'dartdoc', + '--output', + '/path/to/publish/flutter', + '--allow-tools', + '--json', + '--validate-links', + '--link-to-source-excludes', + '/flutter/bin/cache', + '--link-to-source-root', + '/flutter', + '--link-to-source-uri-template', + 'https://github.com/flutter/flutter/blob/master/%f%#L%l%', + '--inject-html', + '--use-base-href', + '--header', + '/path/to/docs/styles.html', + '--header', + '/path/to/docs/analytics-header.html', + '--header', + '/path/to/docs/survey.html', + '--header', + '/path/to/docs/snippets.html', + '--header', + '/path/to/docs/opensearch.html', + '--footer', + '/path/to/docs/analytics-footer.html', + '--footer-text', + '/path/to/package/footer.html', + '--allow-warnings-in-packages', + // match package names + RegExp(r'^(\w+,)+(\w+)$'), + '--exclude-packages', + RegExp(r'^(\w+,)+(\w+)$'), + '--exclude', + // match dart package URIs + RegExp(r'^([\w\/:.]+,)+([\w\/:.]+)$'), + '--favicon', + '/path/to/docs/favicon.ico', + '--package-order', + 'flutter,Dart,${apidocs.kPlatformIntegrationPackageName},flutter_test,flutter_driver', + '--auto-include-dependencies', + ], + ), + ]); + + // This will throw while sanity checking generated files, which is tested independently + await expectLater( + () => generator.generateDartdoc(), + throwsA( + isA().having( + (Exception e) => e.toString(), + 'message', + contains(RegExp(r'Missing .* which probably means the documentation failed to build correctly.')), + ), + ), + ); + + expect(processManager, hasNoRemainingExpectations); + }); + + test('sanity checks spot check generated files', () async { + processManager.addCommands([ + const FakeCommand(command: ['/flutter/bin/flutter', 'pub', 'get']), + const FakeCommand( + command: ['/flutter/bin/flutter', '--version', '--machine'], + stdout: testVersionInfo, + ), + const FakeCommand( + command: ['git', 'status', '-b', '--porcelain'], + stdout: '## $branchName', + ), + const FakeCommand( + command: ['git', 'rev-parse', 'HEAD'], + ), + const FakeCommand( + command: ['/flutter/bin/flutter', 'pub', 'global', 'list'], + ), + FakeCommand( + command: [ + '/flutter/bin/flutter', + 'pub', + 'global', + 'run', + '--enable-asserts', + 'dartdoc', + '--output', + '/path/to/publish/flutter', + '--allow-tools', + '--json', + '--validate-links', + '--link-to-source-excludes', + '/flutter/bin/cache', + '--link-to-source-root', + '/flutter', + '--link-to-source-uri-template', + 'https://github.com/flutter/flutter/blob/master/%f%#L%l%', + '--inject-html', + '--use-base-href', + '--header', + '/path/to/docs/styles.html', + '--header', + '/path/to/docs/analytics-header.html', + '--header', + '/path/to/docs/survey.html', + '--header', + '/path/to/docs/snippets.html', + '--header', + '/path/to/docs/opensearch.html', + '--footer', + '/path/to/docs/analytics-footer.html', + '--footer-text', + '/path/to/package/footer.html', + '--allow-warnings-in-packages', + // match package names + RegExp(r'^(\w+,)+(\w+)$'), + '--exclude-packages', + RegExp(r'^(\w+,)+(\w+)$'), + '--exclude', + // match dart package URIs + RegExp(r'^([\w\/:.]+,)+([\w\/:.]+)$'), + '--favicon', + '/path/to/docs/favicon.ico', + '--package-order', + 'flutter,Dart,${apidocs.kPlatformIntegrationPackageName},flutter_test,flutter_driver', + '--auto-include-dependencies', + ], + onRun: () { + for (final File canary in generator.canaries) { + canary.createSync(recursive: true); + } + for (final String path in dartdocDirectiveCanaryFiles) { + publishRoot.childDirectory('flutter').childFile(path).createSync(recursive: true); + } + for (final String path in dartdocDirectiveCanaryLibraries) { + publishRoot.childDirectory('flutter').childDirectory(path).createSync(recursive: true); + } + publishRoot.childDirectory('flutter').childFile('index.html').createSync(); + + final Directory widgetsDir = publishRoot + .childDirectory('flutter') + .childDirectory('widgets') + ..createSync(recursive: true); + widgetsDir.childFile('showGeneralDialog.html').writeAsStringSync(''' +

    +  
    +    import 'package:flutter/material.dart';
    +  
    +
    +''', + ); + expect(publishRoot.childDirectory('flutter').existsSync(), isTrue); + (widgetsDir + .childDirectory('ModalRoute') + ..createSync(recursive: true)) + .childFile('barrierColor.html') + .writeAsStringSync(''' +
    +  
    +    class FooClass {
    +      Color get barrierColor => FooColor();
    +    }
    +  
    +
    +'''); + const String queryParams = 'split=1&run=true&sample_id=widgets.Listener.123&sample_channel=master&channel=master'; + widgetsDir.childFile('Listener-class.html').writeAsStringSync(''' + +'''); + } + ), + ]); + + await generator.generateDartdoc(); + }); + }); +} + +const String branchName = 'stable'; +const String testVersionInfo = ''' +{ + "frameworkVersion": "2.5.0", + "channel": "$branchName", + "repositoryUrl": "git@github.com:flutter/flutter.git", + "frameworkRevision": "0000000000000000000000000000000000000000", + "frameworkCommitDate": "2021-07-28 13:03:40 -0700", + "engineRevision": "0000000000000000000000000000000000000001", + "dartSdkVersion": "2.14.0 (build 2.14.0-360.0.dev)", + "flutterRoot": "/home/user/flutter" +} +'''; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/test/update_icons_test.dart b/novelforge-project/agent-workspace/flutter/dev/tools/test/update_icons_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..3d361d9fc62fff7ca1e3821e627d59feedd698b3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/test/update_icons_test.dart @@ -0,0 +1,121 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:test/test.dart'; + +import '../update_icons.dart'; + +Map codepointsA = { + 'airplane': '111', + 'boat': '222', +}; +Map codepointsB = { + 'airplane': '333', +}; +Map codepointsC = { + 'airplane': '111', + 'train': '444', +}; +Map codepointsUnderscore = { + 'airplane__123': '111', +}; + +void main() { + group('safety checks', () { + test('superset', () { + expect(testIsSuperset(codepointsA, codepointsA), true); + + expect(testIsSuperset(codepointsA, codepointsB), true); + expect(testIsSuperset(codepointsB, codepointsA), false); + }); + test('stability', () { + expect(testIsStable(codepointsA, codepointsA), true); + + expect(testIsStable(codepointsA, codepointsB), false); + expect(testIsStable(codepointsB, codepointsA), false); + + expect(testIsStable(codepointsA, codepointsC), true); + expect(testIsStable(codepointsC, codepointsA), true); + }); + }); + + test('no double underscores', () { + expect(Icon(codepointsUnderscore.entries.first).usage, 'Icon(Icons.airplane_123),'); + }); + + test('usage string is correct', () { + expect( + Icon(const MapEntry('abc', '')).usage, + 'Icon(Icons.abc),', + ); + }); + + test('usage string is correct with replacement', () { + expect( + Icon(const MapEntry('123', '')).usage, + 'Icon(Icons.onetwothree),', + ); + expect( + Icon(const MapEntry('123_rounded', '')).usage, + 'Icon(Icons.onetwothree_rounded),', + ); + }); + + test('certain icons should be mirrored in RTL', () { + // Exact match + expect( + Icon(const MapEntry('help', '')).isMirroredInRTL, + true, + ); + // Variant + expect( + Icon(const MapEntry('help_rounded', '')).isMirroredInRTL, + true, + ); + // Common suffixes + expect( + Icon(const MapEntry('help_alt', '')).isMirroredInRTL, + true, + ); + expect( + Icon(const MapEntry('help_new', '')).isMirroredInRTL, + true, + ); + expect( + Icon(const MapEntry('help_off', '')).isMirroredInRTL, + true, + ); + expect( + Icon(const MapEntry('help_on', '')).isMirroredInRTL, + true, + ); + // Common suffixes + variant + expect( + Icon(const MapEntry('help_alt_rounded', '')).isMirroredInRTL, + true, + ); + expect( + Icon(const MapEntry('help_new_rounded', '')).isMirroredInRTL, + true, + ); + expect( + Icon(const MapEntry('help_off_rounded', '')).isMirroredInRTL, + true, + ); + expect( + Icon(const MapEntry('help_on_rounded', '')).isMirroredInRTL, + true, + ); + // No match + expect( + Icon(const MapEntry('help_center_rounded', '')).isMirroredInRTL, + false, + ); + // No match + expect( + Icon(const MapEntry('arrow', '')).isMirroredInRTL, + false, + ); + }); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/tools.iml b/novelforge-project/agent-workspace/flutter/dev/tools/tools.iml new file mode 100644 index 0000000000000000000000000000000000000000..b1df2810682090e7d4604cad4a47901a1a09cda6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/tools.iml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/update_icons.dart b/novelforge-project/agent-workspace/flutter/dev/tools/update_icons.dart new file mode 100644 index 0000000000000000000000000000000000000000..9d56f540ba958a256d2227fb0c13abad416013ff --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/update_icons.dart @@ -0,0 +1,589 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Regenerates a Dart file with a class containing IconData constants. +// See https://github.com/flutter/flutter/wiki/Updating-Material-Design-Fonts-&-Icons +// Should be idempotent with: +// dart dev/tools/update_icons.dart --new-codepoints bin/cache/artifacts/material_fonts/codepoints + +import 'dart:collection'; +import 'dart:convert' show LineSplitter; +import 'dart:io'; + +import 'package:args/args.dart'; +import 'package:meta/meta.dart'; +import 'package:path/path.dart' as path; + +const String _iconsPathOption = 'icons'; +const String _iconsTemplatePathOption = 'icons-template'; +const String _newCodepointsPathOption = 'new-codepoints'; +const String _oldCodepointsPathOption = 'old-codepoints'; +const String _fontFamilyOption = 'font-family'; +const String _possibleStyleSuffixesOption = 'style-suffixes'; +const String _classNameOption = 'class-name'; +const String _enforceSafetyChecks = 'enforce-safety-checks'; +const String _dryRunOption = 'dry-run'; + +const String _defaultIconsPath = 'packages/flutter/lib/src/material/icons.dart'; +const String _defaultNewCodepointsPath = 'codepoints'; +const String _defaultOldCodepointsPath = 'bin/cache/artifacts/material_fonts/codepoints'; +const String _defaultFontFamily = 'MaterialIcons'; +const List _defaultPossibleStyleSuffixes = [ + '_outlined', + '_rounded', + '_sharp', +]; +const String _defaultClassName = 'Icons'; +const String _defaultDemoFilePath = '/tmp/new_icons_demo.dart'; + +const String _beginGeneratedMark = '// BEGIN GENERATED ICONS'; +const String _endGeneratedMark = '// END GENERATED ICONS'; +const String _beginPlatformAdaptiveGeneratedMark = '// BEGIN GENERATED PLATFORM ADAPTIVE ICONS'; +const String _endPlatformAdaptiveGeneratedMark = '// END GENERATED PLATFORM ADAPTIVE ICONS'; + +const Map> _platformAdaptiveIdentifiers = >{ + // Mapping of Flutter IDs to an Android/agnostic ID and an iOS ID. + // Flutter IDs can be anything, but should be chosen to be agnostic. + 'arrow_back': ['arrow_back', 'arrow_back_ios'], + 'arrow_forward': ['arrow_forward', 'arrow_forward_ios'], + 'flip_camera': ['flip_camera_android', 'flip_camera_ios'], + 'more': ['more_vert', 'more_horiz'], + 'share': ['share', 'ios_share'], +}; + +// Rewrite certain Flutter IDs (numbers) using prefix matching. +const Map _identifierPrefixRewrites = { + '1': 'one_', + '2': 'two_', + '3': 'three_', + '4': 'four_', + '5': 'five_', + '6': 'six_', + '7': 'seven_', + '8': 'eight_', + '9': 'nine_', + '10': 'ten_', + '11': 'eleven_', + '12': 'twelve_', + '13': 'thirteen_', + '14': 'fourteen_', + '15': 'fifteen_', + '16': 'sixteen_', + '17': 'seventeen_', + '18': 'eighteen_', + '19': 'nineteen_', + '20': 'twenty_', + '21': 'twenty_one_', + '22': 'twenty_two_', + '23': 'twenty_three_', + '24': 'twenty_four_', + '30': 'thirty_', + '60': 'sixty_', + '123': 'onetwothree', + '360': 'threesixty', + '2d': 'twod', + '3d': 'threed', + '3d_rotation': 'threed_rotation', +}; + +// Rewrite certain Flutter IDs (reserved keywords) using exact matching. +const Map _identifierExactRewrites = { + 'class': 'class_', + 'new': 'new_', + 'switch': 'switch_', + 'try': 'try_sms_star', + 'door_back': 'door_back_door', + 'door_front': 'door_front_door', +}; + +const Set _iconsMirroredWhenRTL = { + // This list is obtained from: + // https://developers.google.com/fonts/docs/material_icons#which_icons_should_be_mirrored_for_rtl + 'arrow_back', + 'arrow_back_ios', + 'arrow_forward', + 'arrow_forward_ios', + 'arrow_left', + 'arrow_right', + 'assignment', + 'assignment_return', + 'backspace', + 'battery_unknown', + 'call_made', + 'call_merge', + 'call_missed', + 'call_missed_outgoing', + 'call_received', + 'call_split', + 'chevron_left', + 'chevron_right', + 'chrome_reader_mode', + 'device_unknown', + 'dvr', + 'event_note', + 'featured_play_list', + 'featured_video', + 'first_page', + 'flight_land', + 'flight_takeoff', + 'format_indent_decrease', + 'format_indent_increase', + 'format_list_bulleted', + 'forward', + 'functions', + 'help', + 'help_outline', + 'input', + 'keyboard_backspace', + 'keyboard_tab', + 'label', + 'label_important', + 'label_outline', + 'last_page', + 'launch', + 'list', + 'live_help', + 'mobile_screen_share', + 'multiline_chart', + 'navigate_before', + 'navigate_next', + 'next_week', + 'note', + 'open_in', + 'playlist_add', + 'queue_music', + 'redo', + 'reply', + 'reply_all', + 'screen_share', + 'send', + 'short_text', + 'show_chart', + 'sort', + 'star_half', + 'subject', + 'trending_flat', + 'toc', + 'trending_down', + 'trending_up', + 'undo', + 'view_list', + 'view_quilt', + 'wrap_text', +}; + +void main(List args) { + // If we're run from the `tools` dir, set the cwd to the repo root. + if (path.basename(Directory.current.path) == 'tools') { + Directory.current = Directory.current.parent.parent; + } + + final ArgResults argResults = _handleArguments(args); + + final File iconsFile = File(path.normalize(path.absolute(argResults[_iconsPathOption] as String))); + if (!iconsFile.existsSync()) { + stderr.writeln('Error: Icons file not found: ${iconsFile.path}'); + exit(1); + } + final File iconsTemplateFile = File(path.normalize(path.absolute(argResults[_iconsTemplatePathOption] as String))); + if (!iconsTemplateFile.existsSync()) { + stderr.writeln('Error: Icons template file not found: ${iconsTemplateFile.path}'); + exit(1); + } + final File newCodepointsFile = File(argResults[_newCodepointsPathOption] as String); + if (!newCodepointsFile.existsSync()) { + stderr.writeln('Error: New codepoints file not found: ${newCodepointsFile.path}'); + exit(1); + } + final File oldCodepointsFile = File(argResults[_oldCodepointsPathOption] as String); + if (!oldCodepointsFile.existsSync()) { + stderr.writeln('Error: Old codepoints file not found: ${oldCodepointsFile.path}'); + exit(1); + } + + final String newCodepointsString = newCodepointsFile.readAsStringSync(); + final Map newTokenPairMap = stringToTokenPairMap(newCodepointsString); + + final String oldCodepointsString = oldCodepointsFile.readAsStringSync(); + final Map oldTokenPairMap = stringToTokenPairMap(oldCodepointsString); + + stderr.writeln('Performing safety checks'); + final bool isSuperset = testIsSuperset(newTokenPairMap, oldTokenPairMap); + final bool isStable = testIsStable(newTokenPairMap, oldTokenPairMap); + if ((!isSuperset || !isStable) && argResults[_enforceSafetyChecks] as bool) { + exit(1); + } + final String iconsTemplateContents = iconsTemplateFile.readAsStringSync(); + + stderr.writeln("Generating icons ${argResults[_dryRunOption] as bool ? '' : 'to ${iconsFile.path}'}"); + final String newIconsContents = _regenerateIconsFile( + iconsTemplateContents, + newTokenPairMap, + argResults[_fontFamilyOption] as String, + argResults[_classNameOption] as String, + argResults[_enforceSafetyChecks] as bool, + ); + + if (argResults[_dryRunOption] as bool) { + stdout.write(newIconsContents); + } else { + iconsFile.writeAsStringSync(newIconsContents); + + final SplayTreeMap sortedNewTokenPairMap = SplayTreeMap.of(newTokenPairMap); + _regenerateCodepointsFile(oldCodepointsFile, sortedNewTokenPairMap); + + sortedNewTokenPairMap.removeWhere((String key, String value) => oldTokenPairMap.containsKey(key)); + _generateIconDemo(File(_defaultDemoFilePath), sortedNewTokenPairMap); + } +} + +ArgResults _handleArguments(List args) { + final ArgParser argParser = ArgParser() + ..addOption(_iconsPathOption, + defaultsTo: _defaultIconsPath, + help: 'Location of the material icons file') + ..addOption(_iconsTemplatePathOption, + defaultsTo: _defaultIconsPath, + help: + 'Location of the material icons file template. Usually the same as --$_iconsPathOption') + ..addOption(_newCodepointsPathOption, + defaultsTo: _defaultNewCodepointsPath, + help: 'Location of the new codepoints directory') + ..addOption(_oldCodepointsPathOption, + defaultsTo: _defaultOldCodepointsPath, + help: 'Location of the existing codepoints directory') + ..addOption(_fontFamilyOption, + defaultsTo: _defaultFontFamily, + help: 'The font family to use for the IconData constants') + ..addMultiOption(_possibleStyleSuffixesOption, + defaultsTo: _defaultPossibleStyleSuffixes, + help: 'A comma-separated list of suffixes (typically an optional ' + 'family + a style) e.g. _outlined, _monoline_filled') + ..addOption(_classNameOption, + defaultsTo: _defaultClassName, + help: 'The containing class for all icons') + ..addFlag(_enforceSafetyChecks, + defaultsTo: true, + help: 'Whether to exit if safety checks fail (e.g. codepoints are missing or unstable') + ..addFlag(_dryRunOption); + argParser.addFlag('help', abbr: 'h', negatable: false, callback: (bool help) { + if (help) { + print(argParser.usage); + exit(1); + } + }); + return argParser.parse(args); +} + +Map stringToTokenPairMap(String codepointData) { + final Iterable cleanData = LineSplitter.split(codepointData) + .map((String line) => line.trim()) + .where((String line) => line.isNotEmpty); + + final Map pairs = {}; + + for (final String line in cleanData) { + final List tokens = line.split(' '); + if (tokens.length != 2) { + throw FormatException('Unexpected codepoint data: $line'); + } + pairs.putIfAbsent(tokens[0], () => tokens[1]); + } + + return pairs; +} + +String _regenerateIconsFile( + String templateFileContents, + Map tokenPairMap, + String fontFamily, + String className, + bool enforceSafetyChecks, + ) { + final List newIcons = tokenPairMap.entries + .map((MapEntry entry) => + Icon(entry, fontFamily: fontFamily, className: className)) + .toList(); + newIcons.sort((Icon a, Icon b) => a._compareTo(b)); + + final StringBuffer buf = StringBuffer(); + bool generating = false; + + for (final String line in LineSplitter.split(templateFileContents)) { + if (!generating) { + buf.writeln(line); + } + + // Generate for PlatformAdaptiveIcons + if (line.contains(_beginPlatformAdaptiveGeneratedMark)) { + generating = true; + final List platformAdaptiveDeclarations = []; + _platformAdaptiveIdentifiers.forEach((String flutterId, List ids) { + // Automatically finds and generates all icon declarations. + for (final String style in ['', '_outlined', '_rounded', '_sharp']) { + try { + final Icon agnosticIcon = newIcons.firstWhere( + (Icon icon) => icon.id == '${ids[0]}$style', + orElse: () => throw ids[0]); + final Icon iOSIcon = newIcons.firstWhere( + (Icon icon) => icon.id == '${ids[1]}$style', + orElse: () => throw ids[1]); + platformAdaptiveDeclarations.add( + agnosticIcon.platformAdaptiveDeclaration('$flutterId$style', iOSIcon), + ); + } catch (e) { + if (style == '') { + // Throw an error for baseline icons. + stderr.writeln("❌ Platform adaptive icon '$e' not found."); + if (enforceSafetyChecks) { + stderr.writeln('Safety checks failed'); + exit(1); + } + } else { + // Ignore errors for styled icons since some don't exist. + } + } + } + }); + buf.write(platformAdaptiveDeclarations.join()); + } else if (line.contains(_endPlatformAdaptiveGeneratedMark)) { + generating = false; + buf.writeln(line); + } + + // Generate for Icons + if (line.contains(_beginGeneratedMark)) { + generating = true; + final String iconDeclarationsString = newIcons.map((Icon icon) => icon.fullDeclaration).join(); + buf.write(iconDeclarationsString); + } else if (line.contains(_endGeneratedMark)) { + generating = false; + buf.writeln(line); + } + } + return buf.toString(); +} + +@visibleForTesting +bool testIsSuperset(Map newCodepoints, Map oldCodepoints) { + final Set newCodepointsSet = newCodepoints.keys.toSet(); + final Set oldCodepointsSet = oldCodepoints.keys.toSet(); + + final int diff = newCodepointsSet.length - oldCodepointsSet.length; + if (diff > 0) { + stderr.writeln('🆕 $diff new codepoints: ${newCodepointsSet.difference(oldCodepointsSet)}'); + } + if (!newCodepointsSet.containsAll(oldCodepointsSet)) { + stderr.writeln( + '❌ new codepoints file does not contain all ${oldCodepointsSet.length} ' + 'existing codepoints. Missing: ${oldCodepointsSet.difference(newCodepointsSet)}'); + return false; + } else { + stderr.writeln('✅ new codepoints file contains all ${oldCodepointsSet.length} existing codepoints'); + } + return true; +} + +@visibleForTesting +bool testIsStable(Map newCodepoints, Map oldCodepoints) { + final int oldCodepointsCount = oldCodepoints.length; + final List unstable = []; + + oldCodepoints.forEach((String key, String value) { + if (newCodepoints.containsKey(key)) { + if (value != newCodepoints[key]) { + unstable.add(key); + } + } + }); + + if (unstable.isNotEmpty) { + stderr.writeln('❌ out of $oldCodepointsCount existing codepoints, ${unstable.length} were unstable: $unstable'); + return false; + } else { + stderr.writeln('✅ all existing $oldCodepointsCount codepoints are stable'); + return true; + } +} + +void _regenerateCodepointsFile(File oldCodepointsFile, Map tokenPairMap) { + stderr.writeln('Regenerating old codepoints file ${oldCodepointsFile.path}'); + + final StringBuffer buf = StringBuffer(); + tokenPairMap.forEach((String key, String value) => buf.writeln('$key $value')); + oldCodepointsFile.writeAsStringSync(buf.toString()); +} + +void _generateIconDemo(File demoFilePath, Map tokenPairMap) { + if (tokenPairMap.isEmpty) { + stderr.writeln('No new icons, skipping generating icon demo'); + return; + } + stderr.writeln('Generating icon demo at $_defaultDemoFilePath'); + + final StringBuffer newIconUsages = StringBuffer(); + for (final MapEntry entry in tokenPairMap.entries) { + newIconUsages.writeln(Icon(entry).usage); + } + final String demoFileContents = ''' + import 'package:flutter/material.dart'; + + void main() => runApp(const IconDemo()); + + class IconDemo extends StatelessWidget { + const IconDemo({ Key? key }) : super(key: key); + + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + home: Scaffold( + body: Wrap( + children: const [ + $newIconUsages + ], + ), + ), + ); + } + } + '''; + demoFilePath.writeAsStringSync(demoFileContents); +} + +class Icon { + // Parse tokenPair (e.g. {"6_ft_apart_outlined": "e004"}). + Icon(MapEntry tokenPair, { + this.fontFamily = _defaultFontFamily, + this.possibleStyleSuffixes = _defaultPossibleStyleSuffixes, + this.className = _defaultClassName, + }) { + id = tokenPair.key; + hexCodepoint = tokenPair.value; + + // Determine family and HTML class suffix for Dartdoc. + if (id.endsWith('_gm_outlined')) { + dartdocFamily = 'GM'; + dartdocHtmlSuffix = '-outlined'; + } else if (id.endsWith('_gm_filled')) { + dartdocFamily = 'GM'; + dartdocHtmlSuffix = '-filled'; + } else if (id.endsWith('_monoline_outlined')) { + dartdocFamily = 'Monoline'; + dartdocHtmlSuffix = '-outlined'; + } else if (id.endsWith('_monoline_filled')) { + dartdocFamily = 'Monoline'; + dartdocHtmlSuffix = '-filled'; + } else { + dartdocFamily = 'material'; + if (id.endsWith('_baseline')) { + id = _removeLast(id, '_baseline'); + dartdocHtmlSuffix = ''; + } else if (id.endsWith('_outlined')) { + dartdocHtmlSuffix = '-outlined'; + } else if (id.endsWith('_rounded')) { + dartdocHtmlSuffix = '-round'; + } else if (id.endsWith('_sharp')) { + dartdocHtmlSuffix = '-sharp'; + } + } + + _generateShortId(); + _generateFlutterId(); + } + + + late String id; // e.g. 5g, 5g_outlined, 5g_rounded, 5g_sharp + late String shortId; // e.g. 5g + late String flutterId; // e.g. five_g, five_g_outlined, five_g_rounded, five_g_sharp + late String hexCodepoint; // e.g. e547 + late String dartdocFamily; // e.g. material + late String dartdocHtmlSuffix = ''; // The suffix for the 'material-icons' HTML class. + String fontFamily; // The IconData font family. + List possibleStyleSuffixes; // A list of possible suffixes e.g. _outlined, _monoline_filled. + String className; // The containing class. + + String get name => shortId.replaceAll('_', ' ').trim(); + + String get style => dartdocHtmlSuffix == '' ? '' : ' (${dartdocHtmlSuffix.replaceFirst('-', '')})'; + + String get dartDoc => + '$shortId — $dartdocFamily icon named "$name"$style'; + + String get usage => 'Icon($className.$flutterId),'; + + bool get isMirroredInRTL { + // Remove common suffixes (e.g. "_new" or "_alt") from the shortId. + final String normalizedShortId = shortId.replaceAll(RegExp(r'_(new|alt|off|on)$'), ''); + return _iconsMirroredWhenRTL.any((String shortIdMirroredWhenRTL) => normalizedShortId == shortIdMirroredWhenRTL); + } + + String get declaration => + "static const IconData $flutterId = IconData(0x$hexCodepoint, fontFamily: '$fontFamily'${isMirroredInRTL ? ', matchTextDirection: true' : ''});"; + + String get fullDeclaration => ''' + + /// $dartDoc. + $declaration +'''; + + String platformAdaptiveDeclaration(String fullFlutterId, Icon iOSIcon) => ''' + + /// Platform-adaptive icon for $dartDoc and ${iOSIcon.dartDoc}.; + IconData get $fullFlutterId => !_isCupertino() ? $className.$flutterId : $className.${iOSIcon.flutterId}; +'''; + + @override + String toString() => id; + + /// Analogous to [String.compareTo] + int _compareTo(Icon b) { + if (shortId == b.shortId) { + // Sort a regular icon before its variants. + return id.length - b.id.length; + } + return shortId.compareTo(b.shortId); + } + + static String _removeLast(String string, String toReplace) { + return string.replaceAll(RegExp('$toReplace\$'), ''); + } + + /// See [shortId]. + void _generateShortId() { + shortId = id; + for (final String styleSuffix in possibleStyleSuffixes) { + shortId = _removeLast(shortId, styleSuffix); + if (shortId != id) { + break; + } + } + } + + /// See [flutterId]. + void _generateFlutterId() { + flutterId = id; + // Exact identifier rewrites. + for (final MapEntry rewritePair in _identifierExactRewrites.entries) { + if (shortId == rewritePair.key) { + flutterId = id.replaceFirst( + rewritePair.key, + _identifierExactRewrites[rewritePair.key]!, + ); + } + } + // Prefix identifier rewrites. + for (final MapEntry rewritePair in _identifierPrefixRewrites.entries) { + if (id.startsWith(rewritePair.key)) { + flutterId = id.replaceFirst( + rewritePair.key, + _identifierPrefixRewrites[rewritePair.key]!, + ); + } + } + + // Prevent double underscores. + flutterId = flutterId.replaceAll('__', '_'); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/README.md b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/README.md new file mode 100644 index 0000000000000000000000000000000000000000..06d0d4074a0880ab710886bec8d8bcb2939e0d21 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/README.md @@ -0,0 +1,13 @@ +# vitool + +This tool generates Dart files from frames described in SVG files that follow +the small subset of SVG described below. +This tool was crafted specifically to handle the assets for certain Material +design animations as created by the Google Material Design team, and is not +intended to be a general-purpose tool. + +## Supported SVG features + - groups + - group transforms + - group opacities + - paths (strokes are not supported, only fills, elliptical arc curve commands are not supported) diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/bin/main.dart b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/bin/main.dart new file mode 100644 index 0000000000000000000000000000000000000000..3a4b736204c17a65483046a77b2aeb09e5b2c15a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/bin/main.dart @@ -0,0 +1,97 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; + +import 'package:args/args.dart'; +import 'package:vitool/vitool.dart'; + +const String kCodegenComment = + '// AUTOGENERATED FILE DO NOT EDIT!\n' + '// This file was generated by vitool.\n'; + +void main(List args) { + final ArgParser parser = ArgParser(); + + parser.addFlag( + 'help', + abbr: 'h', + negatable: false, + help: "Display the tool's usage instructions and quit.", + ); + + parser.addOption( + 'output', + abbr: 'o', + help: 'Target path to write the generated Dart file to.', + ); + + parser.addOption( + 'asset-name', + abbr: 'n', + help: 'Name to be used for the generated constant.', + ); + + parser.addOption( + 'part-of', + abbr: 'p', + help: "Library name to add a dart 'part of' clause for.", + ); + + parser.addOption( + 'header', + abbr: 'd', + help: 'File whose contents are to be prepended to the beginning of ' + 'the generated Dart file; this can be used for a license comment.', + ); + + parser.addFlag( + 'codegen_comment', + abbr: 'c', + defaultsTo: true, + help: 'Whether to include the following comment after the header:\n' + '$kCodegenComment', + ); + + final ArgResults argResults = parser.parse(args); + + if (argResults['help'] as bool || + !argResults.wasParsed('output') || + !argResults.wasParsed('asset-name') || + argResults.rest.isEmpty) { + printUsage(parser); + return; + } + + final List frames = [ + for (final String filePath in argResults.rest) interpretSvg(filePath), + ]; + + final StringBuffer generatedSb = StringBuffer(); + + if (argResults.wasParsed('header')) { + generatedSb.write(File(argResults['header'] as String).readAsStringSync()); + generatedSb.write('\n'); + } + + if (argResults['codegen_comment'] as bool) { + generatedSb.write(kCodegenComment); + } + + if (argResults.wasParsed('part-of')) { + generatedSb.write('part of ${argResults['part-of']}; // ignore: use_string_in_part_of_directives\n'); + } + + final Animation animation = Animation.fromFrameData(frames); + generatedSb.write(animation.toDart('_AnimatedIconData', argResults['asset-name'] as String)); + + final File outFile = File(argResults['output'] as String); + outFile.writeAsStringSync(generatedSb.toString()); +} + +void printUsage(ArgParser parser) { + print('Usage: vitool --asset-name= --output= '); + print('\nExample: vitool --asset-name=_\$menu_arrow --output=lib/data/menu_arrow.g.dart assets/svg/menu_arrow/*.svg\n'); + print(parser.usage); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/lib/vitool.dart b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/lib/vitool.dart new file mode 100644 index 0000000000000000000000000000000000000000..8312370b78fd0953340531fe57cb5141d1b0622f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/lib/vitool.dart @@ -0,0 +1,570 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:io'; +import 'dart:math'; + +import 'package:collection/collection.dart'; +import 'package:meta/meta.dart'; +import 'package:vector_math/vector_math_64.dart'; +import 'package:xml/xml.dart'; + +// String to use for a single indentation. +const String kIndent = ' '; + +/// Represents an animation, and provides logic to generate dart code for it. +class Animation { + const Animation(this.size, this.paths); + + factory Animation.fromFrameData(List frames) { + _validateFramesData(frames); + final Point size = frames[0].size; + final List paths = []; + for (int i = 0; i < frames[0].paths.length; i += 1) { + paths.add(PathAnimation.fromFrameData(frames, i)); + } + return Animation(size, paths); + } + + /// The size of the animation (width, height) in pixels. + final Point size; + + /// List of paths in the animation. + final List paths; + + static void _validateFramesData(List frames) { + final Point size = frames[0].size; + final int numPaths = frames[0].paths.length; + for (int i = 0; i < frames.length; i += 1) { + final FrameData frame = frames[i]; + if (size != frame.size) { + throw Exception( + 'All animation frames must have the same size,\n' + 'first frame size was: (${size.x}, ${size.y})\n' + 'frame $i size was: (${frame.size.x}, ${frame.size.y})' + ); + } + if (numPaths != frame.paths.length) { + throw Exception( + 'All animation frames must have the same number of paths,\n' + 'first frame has $numPaths paths\n' + 'frame $i has ${frame.paths.length} paths' + ); + } + } + } + + String toDart(String className, String varName) { + final StringBuffer sb = StringBuffer(); + sb.write('const $className $varName = const $className(\n'); + sb.write('${kIndent}const Size(${size.x}, ${size.y}),\n'); + sb.write('${kIndent}const <_PathFrames>[\n'); + for (final PathAnimation path in paths) { + sb.write(path.toDart()); + } + sb.write('$kIndent],\n'); + sb.write(');'); + return sb.toString(); + } +} + +/// Represents the animation of a single path. +class PathAnimation { + const PathAnimation(this.commands, {required this.opacities}); + + factory PathAnimation.fromFrameData(List frames, int pathIdx) { + if (frames.isEmpty) { + return const PathAnimation([], opacities: []); + } + + final List commands = []; + for (int commandIdx = 0; commandIdx < frames[0].paths[pathIdx].commands.length; commandIdx += 1) { + final int numPointsInCommand = frames[0].paths[pathIdx].commands[commandIdx].points.length; + final List>> points = List>>.filled(numPointsInCommand, >[]); + final String commandType = frames[0].paths[pathIdx].commands[commandIdx].type; + for (int i = 0; i < frames.length; i += 1) { + final FrameData frame = frames[i]; + final String currentCommandType = frame.paths[pathIdx].commands[commandIdx].type; + if (commandType != currentCommandType) { + throw Exception( + 'Paths must be built from the same commands in all frames ' + "command $commandIdx at frame 0 was of type '$commandType' " + "command $commandIdx at frame $i was of type '$currentCommandType'" + ); + } + for (int j = 0; j < numPointsInCommand; j += 1) { + points[j].add(frame.paths[pathIdx].commands[commandIdx].points[j]); + } + } + commands.add(PathCommandAnimation(commandType, points)); + } + + final List opacities = + frames.map((FrameData d) => d.paths[pathIdx].opacity).toList(); + + return PathAnimation(commands, opacities: opacities); + } + + /// List of commands for drawing the path. + final List commands; + /// The path opacity for each animation frame. + final List opacities; + + @override + String toString() { + return 'PathAnimation(commands: $commands, opacities: $opacities)'; + } + + String toDart() { + final StringBuffer sb = StringBuffer(); + sb.write('${kIndent * 2}const _PathFrames(\n'); + sb.write('${kIndent * 3}opacities: const [\n'); + for (final double opacity in opacities) { + sb.write('${kIndent * 4}$opacity,\n'); + } + sb.write('${kIndent * 3}],\n'); + sb.write('${kIndent * 3}commands: const <_PathCommand>[\n'); + for (final PathCommandAnimation command in commands) { + sb.write(command.toDart()); + } + sb.write('${kIndent * 3}],\n'); + sb.write('${kIndent * 2}),\n'); + return sb.toString(); + } +} + +/// Represents the animation of a single path command. +class PathCommandAnimation { + const PathCommandAnimation(this.type, this.points); + + /// The command type. + final String type; + + /// A matrix with the command's points in different frames. + /// + /// points[i][j] is the i-th point of the command at frame j. + final List>> points; + + @override + String toString() { + return 'PathCommandAnimation(type: $type, points: $points)'; + } + + String toDart() { + final String dartCommandClass = switch (type) { + 'M' => '_PathMoveTo', + 'C' => '_PathCubicTo', + 'L' => '_PathLineTo', + 'Z' => '_PathClose', + _ => throw Exception('unsupported path command: $type'), + }; + final StringBuffer sb = StringBuffer(); + sb.write('${kIndent * 4}const $dartCommandClass(\n'); + for (final List> pointFrames in points) { + sb.write('${kIndent * 5}const [\n'); + for (final Point point in pointFrames) { + sb.write('${kIndent * 6}const Offset(${point.x}, ${point.y}),\n'); + } + sb.write('${kIndent * 5}],\n'); + } + sb.write('${kIndent * 4}),\n'); + return sb.toString(); + } +} + +/// Interprets some subset of an SVG file. +/// +/// Recursively goes over the SVG tree, applying transforms and opacities, +/// and build a FrameData which is a flat representation of the paths in the SVG +/// file, after applying transformations and converting relative coordinates to +/// absolute. +/// +/// This does not support the SVG specification, but is just built to +/// support SVG files exported by a specific tool the motion design team is +/// using. +FrameData interpretSvg(String svgFilePath) { + final File file = File(svgFilePath); + final String fileData = file.readAsStringSync(); + final XmlElement svgElement = _extractSvgElement(XmlDocument.parse(fileData)); + final double width = parsePixels(_extractAttr(svgElement, 'width')).toDouble(); + final double height = parsePixels(_extractAttr(svgElement, 'height')).toDouble(); + + final List paths = + _interpretSvgGroup(svgElement.children, _Transform()); + return FrameData(Point(width, height), paths); +} + +List _interpretSvgGroup(List children, _Transform transform) { + final List paths = []; + for (final XmlNode node in children) { + if (node.nodeType != XmlNodeType.ELEMENT) { + continue; + } + final XmlElement element = node as XmlElement; + + if (element.name.local == 'path') { + paths.add(SvgPath.fromElement(element)._applyTransform(transform)); + } + + if (element.name.local == 'g') { + double opacity = transform.opacity; + if (_hasAttr(element, 'opacity')) { + opacity *= double.parse(_extractAttr(element, 'opacity')); + } + + Matrix3 transformMatrix = transform.transformMatrix; + if (_hasAttr(element, 'transform')) { + transformMatrix = transformMatrix.multiplied( + _parseSvgTransform(_extractAttr(element, 'transform'))); + } + + final _Transform subtreeTransform = _Transform( + transformMatrix: transformMatrix, + opacity: opacity, + ); + paths.addAll(_interpretSvgGroup(element.children, subtreeTransform)); + } + } + return paths; +} + +// Given a points list in the form e.g: "25.0, 1.0 12.0, 12.0 23.0, 9.0" matches +// the coordinated of the first point and the rest of the string, for the +// example above: +// group 1 will match "25.0" +// group 2 will match "1.0" +// group 3 will match "12.0, 12.0 23.0, 9.0" +// +// Commas are optional. +final RegExp _pointMatcher = RegExp(r'^ *([\-\.0-9]+) *,? *([\-\.0-9]+)(.*)'); + +/// Parse a string with a list of points, e.g: +/// '25.0, 1.0 12.0, 12.0 23.0, 9.0' will be parsed to: +/// [Point(25.0, 1.0), Point(12.0, 12.0), Point(23.0, 9.0)]. +/// +/// Commas are optional. +List> parsePoints(String points) { + String unParsed = points; + final List> result = >[]; + while (unParsed.isNotEmpty && _pointMatcher.hasMatch(unParsed)) { + final Match m = _pointMatcher.firstMatch(unParsed)!; + result.add(Point( + double.parse(m.group(1)!), + double.parse(m.group(2)!), + )); + unParsed = m.group(3)!; + } + return result; +} + +/// Data for a single animation frame. +@immutable +class FrameData { + const FrameData(this.size, this.paths); + + final Point size; + final List paths; + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is FrameData + && other.size == size + && const ListEquality().equals(other.paths, paths); + } + + @override + int get hashCode => Object.hash(size, Object.hashAll(paths)); + + @override + String toString() { + return 'FrameData(size: $size, paths: $paths)'; + } +} + +/// Represents an SVG path element. +@immutable +class SvgPath { + const SvgPath(this.id, this.commands, {this.opacity = 1.0}); + + final String id; + final List commands; + final double opacity; + + static const String _pathCommandAtom = r' *([a-zA-Z]) *([\-\.0-9 ,]*)'; + static final RegExp _pathCommandValidator = RegExp('^($_pathCommandAtom)*\$'); + static final RegExp _pathCommandMatcher = RegExp(_pathCommandAtom); + + static SvgPath fromElement(XmlElement pathElement) { + assert(pathElement.name.local == 'path'); + final String id = _extractAttr(pathElement, 'id'); + final String dAttr = _extractAttr(pathElement, 'd'); + final List commands = []; + final SvgPathCommandBuilder commandsBuilder = SvgPathCommandBuilder(); + if (!_pathCommandValidator.hasMatch(dAttr)) { + throw Exception('illegal or unsupported path d expression: $dAttr'); + } + for (final Match match in _pathCommandMatcher.allMatches(dAttr)) { + final String commandType = match.group(1)!; + final String pointStr = match.group(2)!; + commands.add(commandsBuilder.build(commandType, parsePoints(pointStr))); + } + return SvgPath(id, commands); + } + + SvgPath _applyTransform(_Transform transform) { + final List transformedCommands = + commands.map((SvgPathCommand c) => c._applyTransform(transform)).toList(); + return SvgPath(id, transformedCommands, opacity: opacity * transform.opacity); + } + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is SvgPath + && other.id == id + && other.opacity == opacity + && const ListEquality().equals(other.commands, commands); + } + + @override + int get hashCode => Object.hash(id, Object.hashAll(commands), opacity); + + @override + String toString() { + return 'SvgPath(id: $id, opacity: $opacity, commands: $commands)'; + } + +} + +/// Represents a single SVG path command from an SVG d element. +/// +/// This class normalizes all the 'd' commands into a single type, that has +/// a command type and a list of points. +/// +/// Some examples of how d commands translated to SvgPathCommand: +/// * "M 0.0, 1.0" => SvgPathCommand('M', [Point(0.0, 1.0)]) +/// * "Z" => SvgPathCommand('Z', []) +/// * "C 1.0, 1.0 2.0, 2.0 3.0, 3.0" SvgPathCommand('C', [Point(1.0, 1.0), +/// Point(2.0, 2.0), Point(3.0, 3.0)]) +@immutable +class SvgPathCommand { + const SvgPathCommand(this.type, this.points); + + /// The command type. + final String type; + + /// List of points used by this command. + final List> points; + + SvgPathCommand _applyTransform(_Transform transform) { + final List> transformedPoints = + _vector3ArrayToPoints( + transform.transformMatrix.applyToVector3Array( + _pointsToVector3Array(points) + ) + ); + return SvgPathCommand(type, transformedPoints); + } + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is SvgPathCommand + && other.type == type + && const ListEquality>().equals(other.points, points); + } + + @override + int get hashCode => Object.hash(type, Object.hashAll(points)); + + @override + String toString() { + return 'SvgPathCommand(type: $type, points: $points)'; + } +} + +class SvgPathCommandBuilder { + static const Map kRelativeCommands = { + 'c': null, + 'l': null, + 'm': null, + 't': null, + 's': null, + }; + + Point lastPoint = const Point(0.0, 0.0); + Point subPathStartPoint = const Point(0.0, 0.0); + + SvgPathCommand build(String type, List> points) { + List> absPoints = points; + if (_isRelativeCommand(type)) { + absPoints = points.map>((Point p) => p + lastPoint).toList(); + } + + if (type == 'M' || type == 'm') { + subPathStartPoint = absPoints.last; + } + + if (type == 'Z' || type == 'z') { + lastPoint = subPathStartPoint; + } else { + lastPoint = absPoints.last; + } + + return SvgPathCommand(type.toUpperCase(), absPoints); + } + + static bool _isRelativeCommand(String type) { + return kRelativeCommands.containsKey(type); + } +} + +List _pointsToVector3Array(List> points) { + final List result = List.filled(points.length * 3, 0.0); + for (int i = 0; i < points.length; i += 1) { + result[i * 3] = points[i].x; + result[i * 3 + 1] = points[i].y; + result[i * 3 + 2] = 1.0; + } + return result; +} + +List> _vector3ArrayToPoints(List vector) { + final int numPoints = (vector.length / 3).floor(); + final List> points = >[ + for (int i = 0; i < numPoints; i += 1) + Point(vector[i*3], vector[i*3 + 1]), + ]; + return points; +} + +/// Represents a transformation to apply on an SVG subtree. +/// +/// This includes more transforms than the ones described by the SVG transform +/// attribute, e.g opacity. +class _Transform { + + /// Constructs a new _Transform, default arguments create a no-op transform. + _Transform({Matrix3? transformMatrix, this.opacity = 1.0}) : + transformMatrix = transformMatrix ?? Matrix3.identity(); + + final Matrix3 transformMatrix; + final double opacity; + + _Transform applyTransform(_Transform transform) { + return _Transform( + transformMatrix: transform.transformMatrix.multiplied(transformMatrix), + opacity: transform.opacity * opacity, + ); + } +} + + +const String _transformCommandAtom = r' *([^(]+)\(([^)]*)\)'; +final RegExp _transformValidator = RegExp('^($_transformCommandAtom)*\$'); +final RegExp _transformCommand = RegExp(_transformCommandAtom); + +Matrix3 _parseSvgTransform(String transform) { + if (!_transformValidator.hasMatch(transform)) { + throw Exception('illegal or unsupported transform: $transform'); + } + final Iterable matches =_transformCommand.allMatches(transform).toList().reversed; + Matrix3 result = Matrix3.identity(); + for (final Match m in matches) { + final String command = m.group(1)!; + final String params = m.group(2)!; + if (command == 'translate') { + result = _parseSvgTranslate(params).multiplied(result); + continue; + } + if (command == 'scale') { + result = _parseSvgScale(params).multiplied(result); + continue; + } + if (command == 'rotate') { + result = _parseSvgRotate(params).multiplied(result); + continue; + } + throw Exception('unimplemented transform: $command'); + } + return result; +} + +final RegExp _valueSeparator = RegExp('( *, *| +)'); + +Matrix3 _parseSvgTranslate(String paramsStr) { + final List params = paramsStr.split(_valueSeparator); + assert(params.isNotEmpty); + assert(params.length <= 2); + final double x = double.parse(params[0]); + final double y = params.length < 2 ? 0 : double.parse(params[1]); + return _matrix(1.0, 0.0, 0.0, 1.0, x, y); +} + +Matrix3 _parseSvgScale(String paramsStr) { + final List params = paramsStr.split(_valueSeparator); + assert(params.isNotEmpty); + assert(params.length <= 2); + final double x = double.parse(params[0]); + final double y = params.length < 2 ? 0 : double.parse(params[1]); + return _matrix(x, 0.0, 0.0, y, 0.0, 0.0); +} + +Matrix3 _parseSvgRotate(String paramsStr) { + final List params = paramsStr.split(_valueSeparator); + assert(params.length == 1); + final double a = radians(double.parse(params[0])); + return _matrix(cos(a), sin(a), -sin(a), cos(a), 0.0, 0.0); +} + +Matrix3 _matrix(double a, double b, double c, double d, double e, double f) { + return Matrix3(a, b, 0.0, c, d, 0.0, e, f, 1.0); +} + +// Matches a pixels expression e.g "14px". +// First group is just the number. +final RegExp _pixelsExp = RegExp(r'^([0-9]+)px$'); + +/// Parses a pixel expression, e.g "14px", and returns the number. +/// Throws an [ArgumentError] if the given string doesn't match the pattern. +int parsePixels(String pixels) { + if (!_pixelsExp.hasMatch(pixels)) { + throw ArgumentError( + "illegal pixels expression: '$pixels'" + ' (the tool currently only support pixel units).'); + } + return int.parse(_pixelsExp.firstMatch(pixels)!.group(1)!); +} + +String _extractAttr(XmlElement element, String name) { + try { + return element.attributes.singleWhere((XmlAttribute x) => x.name.local == name) + .value; + } catch (e) { + throw ArgumentError( + "Can't find a single '$name' attributes in ${element.name}, " + 'attributes were: ${element.attributes}' + ); + } +} + +bool _hasAttr(XmlElement element, String name) { + return element.attributes.where((XmlAttribute a) => a.name.local == name).isNotEmpty; +} + +XmlElement _extractSvgElement(XmlDocument document) { + return document.children.singleWhere( + (XmlNode node) => node.nodeType == XmlNodeType.ELEMENT && + _asElement(node).name.local == 'svg' + ) as XmlElement; +} + +XmlElement _asElement(XmlNode node) => node as XmlElement; diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..b79fc7385d153bfe15e3c88481771867b5c8f8f0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/pubspec.lock @@ -0,0 +1,212 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + args: + dependency: "direct main" + description: + name: args + sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + url: "https://pub.dev" + source: hosted + version: "2.4.2" + async: + dependency: "direct dev" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct dev" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + path: + dependency: "direct dev" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + petitparser: + dependency: "direct main" + description: + name: petitparser + sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 + url: "https://pub.dev" + source: hosted + version: "6.0.2" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: "direct dev" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct dev" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct dev" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct dev" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" + xml: + dependency: "direct main" + description: + name: xml + sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 + url: "https://pub.dev" + source: hosted + version: "6.5.0" +sdks: + dart: ">=3.2.0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..148d711bb5eeff3c280e6dead48ca28e0250177b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/pubspec.yaml @@ -0,0 +1,43 @@ +name: vitool +description: A tool for generating Dart vector animation code from SVG sequences. +version: 0.0.1 +homepage: https://flutter.dev + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + args: 2.4.2 + vector_math: 2.1.4 + xml: 6.5.0 + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + petitparser: 6.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vm_service: 13.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: 17cc diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test/vitool_test.dart b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test/vitool_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..3198f82ee96bcccaf8bbc899977f6d5e9f4ecbb9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test/vitool_test.dart @@ -0,0 +1,712 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:collection/collection.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:path/path.dart' as path; +import 'package:vitool/vitool.dart'; + +void main() { + + test('parsePixels', () { + expect(parsePixels('23px'), 23); + expect(parsePixels('9px'), 9); + expect(() { parsePixels('9pt'); }, throwsArgumentError); + }); + + test('parsePoints', () { + expect(parsePoints('1.0, 2.0'), + const >[Point(1.0, 2.0)], + ); + expect(parsePoints('12.0, 34.0 5.0, 6.6'), + const >[ + Point(12.0, 34.0), + Point(5.0, 6.6), + ], + ); + expect(parsePoints('12.0 34.0 5.0 6.6'), + const >[ + Point(12.0, 34.0), + Point(5.0, 6.6), + ], + ); + }); + + group('parseSvg', () { + test('empty SVGs', () { + interpretSvg(testAsset('empty_svg_1_48x48.svg')); + interpretSvg(testAsset('empty_svg_2_100x50.svg')); + }); + + test('illegal SVGs', () { + expect( + () { interpretSvg(testAsset('illegal_svg_multiple_roots.svg')); }, + throwsA(anything), + ); + }); + + test('SVG size', () { + expect( + interpretSvg(testAsset('empty_svg_1_48x48.svg')).size, + const Point(48.0, 48.0), + ); + + expect( + interpretSvg(testAsset('empty_svg_2_100x50.svg')).size, + const Point(100.0, 50.0), + ); + }); + + test('horizontal bar', () { + final FrameData frameData = interpretSvg(testAsset('horizontal_bar.svg')); + expect(frameData.paths, [ + const SvgPath('path_1', [ + SvgPathCommand('M', >[Point(0.0, 19.0)]), + SvgPathCommand('L', >[Point(48.0, 19.0)]), + SvgPathCommand('L', >[Point(48.0, 29.0)]), + SvgPathCommand('L', >[Point(0.0, 29.0)]), + SvgPathCommand('Z', >[]), + ]), + ]); + }); + + test('leading space path command', () { + interpretSvg(testAsset('leading_space_path_command.svg')); + }); + + test('SVG illegal path', () { + expect( + () { interpretSvg(testAsset('illegal_path.svg')); }, + throwsA(anything), + ); + }); + + + test('SVG group', () { + final FrameData frameData = interpretSvg(testAsset('bars_group.svg')); + expect(frameData.paths, const [ + SvgPath('path_1', [ + SvgPathCommand('M', >[Point(0.0, 19.0)]), + SvgPathCommand('L', >[Point(48.0, 19.0)]), + SvgPathCommand('L', >[Point(48.0, 29.0)]), + SvgPathCommand('L', >[Point(0.0, 29.0)]), + SvgPathCommand('Z', >[]), + ]), + SvgPath('path_2', [ + SvgPathCommand('M', >[Point(0.0, 34.0)]), + SvgPathCommand('L', >[Point(48.0, 34.0)]), + SvgPathCommand('L', >[Point(48.0, 44.0)]), + SvgPathCommand('L', >[Point(0.0, 44.0)]), + SvgPathCommand('Z', >[]), + ]), + ]); + }); + + test('SVG group translate', () { + final FrameData frameData = interpretSvg(testAsset('bar_group_translate.svg')); + expect(frameData.paths, const [ + SvgPath('path_1', [ + SvgPathCommand('M', >[Point(0.0, 34.0)]), + SvgPathCommand('L', >[Point(48.0, 34.0)]), + SvgPathCommand('L', >[Point(48.0, 44.0)]), + SvgPathCommand('L', >[Point(0.0, 44.0)]), + SvgPathCommand('Z', >[]), + ]), + ]); + }); + + test('SVG group scale', () { + final FrameData frameData = interpretSvg(testAsset('bar_group_scale.svg')); + expect(frameData.paths, const [ + SvgPath( + 'path_1', [ + SvgPathCommand('M', >[Point(0.0, 9.5)]), + SvgPathCommand('L', >[Point(24.0, 9.5)]), + SvgPathCommand('L', >[Point(24.0, 14.5)]), + SvgPathCommand('L', >[Point(0.0, 14.5)]), + SvgPathCommand('Z', >[]), + ]), + ]); + }); + + test('SVG group rotate scale', () { + final FrameData frameData = interpretSvg(testAsset('bar_group_rotate_scale.svg')); + expect(frameData.paths, const [ + PathMatcher( + SvgPath( + 'path_1', [ + SvgPathCommand('L', >[Point(29.0, 0.0)]), + SvgPathCommand('L', >[Point(29.0, 48.0)]), + SvgPathCommand('L', >[Point(19.0, 48.0)]), + SvgPathCommand('M', >[Point(19.0, 0.0)]), + SvgPathCommand('Z', >[]), + ]), + margin: precisionErrorTolerance, + ), + ]); + }); + + test('SVG illegal transform', () { + expect( + () { interpretSvg(testAsset('illegal_transform.svg')); }, + throwsA(anything), + ); + }); + + test('SVG group opacity', () { + final FrameData frameData = interpretSvg(testAsset('bar_group_opacity.svg')); + expect(frameData.paths, const [ + SvgPath( + 'path_1', + [ + SvgPathCommand('M', >[Point(0.0, 19.0)]), + SvgPathCommand('L', >[Point(48.0, 19.0)]), + SvgPathCommand('L', >[Point(48.0, 29.0)]), + SvgPathCommand('L', >[Point(0.0, 29.0)]), + SvgPathCommand('Z', >[]), + ], + opacity: 0.5, + ), + ]); + }); + + test('horizontal bar relative', () { + // This asset uses the relative 'l' command instead of 'L'. + final FrameData frameData = interpretSvg(testAsset('horizontal_bar_relative.svg')); + expect(frameData.paths, const [ + SvgPath( + 'path_1', [ + SvgPathCommand('M', >[Point(0.0, 19.0)]), + SvgPathCommand('L', >[Point(48.0, 19.0)]), + SvgPathCommand('L', >[Point(48.0, 29.0)]), + SvgPathCommand('L', >[Point(0.0, 29.0)]), + SvgPathCommand('Z', >[]), + ]), + ]); + }); + + test('close in middle of path', () { + // This asset uses the relative 'l' command instead of 'L'. + final FrameData frameData = interpretSvg(testAsset('close_path_in_middle.svg')); + expect(frameData.paths, const [ + SvgPath( + 'path_1', [ + SvgPathCommand('M', >[Point(50.0, 50.0)]), + SvgPathCommand('L', >[Point(60.0, 50.0)]), + SvgPathCommand('L', >[Point(60.0, 60.0)]), + SvgPathCommand('Z', >[]), + SvgPathCommand('L', >[Point(50.0, 40.0)]), + SvgPathCommand('L', >[Point(40.0, 40.0)]), + SvgPathCommand('Z', >[]), + ]), + ]); + }); + }); + + group('create PathAnimation', () { + test('single path', () { + const List frameData = [ + FrameData( + Point(10.0, 10.0), + [ + SvgPath( + 'path_1', + [ + SvgPathCommand('M', >[Point(0.0, 0.0)]), + SvgPathCommand('L', >[Point(10.0, 10.0)]), + ], + ), + ], + ), + ]; + expect(PathAnimation.fromFrameData(frameData, 0), + const PathAnimationMatcher(PathAnimation( + [ + PathCommandAnimation('M', >>[ + >[Point(0.0, 0.0)], + ]), + PathCommandAnimation('L', >>[ + >[Point(10.0, 10.0)], + ]), + ], + opacities: [1.0], + )), + ); + }); + + test('multiple paths', () { + const List frameData = [ + FrameData( + Point(10.0, 10.0), + [ + SvgPath( + 'path_1', + [ + SvgPathCommand('M', >[Point(0.0, 0.0)]), + ], + ), + SvgPath( + 'path_2', + [ + SvgPathCommand('M', >[Point(5.0, 6.0)]), + ], + ), + ], + ), + ]; + expect(PathAnimation.fromFrameData(frameData, 0), + const PathAnimationMatcher(PathAnimation( + [ + PathCommandAnimation('M', >>[ + >[Point(0.0, 0.0)], + ]), + ], + opacities: [1.0], + )), + ); + + expect(PathAnimation.fromFrameData(frameData, 1), + const PathAnimationMatcher(PathAnimation( + [ + PathCommandAnimation('M', >>[ + >[Point(5.0, 6.0)], + ]), + ], + opacities: [1.0], + )), + ); + }); + + test('multiple frames', () { + const List frameData = [ + FrameData( + Point(10.0, 10.0), + [ + SvgPath( + 'path_1', + [ + SvgPathCommand('M', >[Point(0.0, 0.0)]), + ], + opacity: 0.5, + ), + ], + ), + FrameData( + Point(10.0, 10.0), + [ + SvgPath( + 'path_1', + [ + SvgPathCommand('M', >[Point(10.0, 10.0)]), + ], + ), + ], + ), + ]; + expect(PathAnimation.fromFrameData(frameData, 0), + const PathAnimationMatcher(PathAnimation( + [ + PathCommandAnimation('M', >>[ + >[ + Point(0.0, 0.0), + Point(10.0, 10.0), + ], + ]), + ], + opacities: [0.5, 1.0], + )), + ); + }); + }); + + group('create Animation', () { + test('multiple paths', () { + const List frameData = [ + FrameData( + Point(10.0, 10.0), + [ + SvgPath( + 'path_1', + [ + SvgPathCommand('M', >[Point(0.0, 0.0)]), + ], + ), + SvgPath( + 'path_1', + [ + SvgPathCommand('M', >[Point(5.0, 6.0)]), + ], + ), + ], + ), + ]; + final Animation animation = Animation.fromFrameData(frameData); + expect(animation.paths[0], + const PathAnimationMatcher(PathAnimation( + [ + PathCommandAnimation('M', >>[ + >[Point(0.0, 0.0)], + ]), + ], + opacities: [1.0], + )), + ); + + expect(animation.paths[1], + const PathAnimationMatcher(PathAnimation( + [ + PathCommandAnimation('M', >>[ + >[Point(5.0, 6.0)], + ]), + ], + opacities: [1.0], + )), + ); + + expect(animation.size, const Point(10.0, 10.0)); + }); + }); + + group('toDart', () { + test('_PathMoveTo', () { + const PathCommandAnimation command = PathCommandAnimation( + 'M', + >>[ + >[ + Point(1.0, 2.0), + Point(3.0, 4.0), + ], + ], + ); + + expect(command.toDart(), + ' const _PathMoveTo(\n' + ' const [\n' + ' const Offset(1.0, 2.0),\n' + ' const Offset(3.0, 4.0),\n' + ' ],\n' + ' ),\n', + + ); + }); + + test('_PathLineTo', () { + const PathCommandAnimation command = PathCommandAnimation( + 'L', + >>[ + >[ + Point(1.0, 2.0), + Point(3.0, 4.0), + ], + ], + ); + + expect(command.toDart(), + ' const _PathLineTo(\n' + ' const [\n' + ' const Offset(1.0, 2.0),\n' + ' const Offset(3.0, 4.0),\n' + ' ],\n' + ' ),\n', + + ); + }); + + test('_PathCubicTo', () { + const PathCommandAnimation command = PathCommandAnimation( + 'C', + >>[ + >[ + Point(16.0, 24.0), + Point(16.0, 10.0), + ], + >[ + Point(16.0, 25.0), + Point(16.0, 11.0), + ], + >[ + Point(40.0, 40.0), + Point(40.0, 40.0), + ], + ], + ); + + expect(command.toDart(), + ' const _PathCubicTo(\n' + ' const [\n' + ' const Offset(16.0, 24.0),\n' + ' const Offset(16.0, 10.0),\n' + ' ],\n' + ' const [\n' + ' const Offset(16.0, 25.0),\n' + ' const Offset(16.0, 11.0),\n' + ' ],\n' + ' const [\n' + ' const Offset(40.0, 40.0),\n' + ' const Offset(40.0, 40.0),\n' + ' ],\n' + ' ),\n', + + ); + }); + + test('_PathClose', () { + const PathCommandAnimation command = PathCommandAnimation( + 'Z', + >>[], + ); + + expect(command.toDart(), + ' const _PathClose(\n' + ' ),\n', + + ); + }); + + test('Unsupported path command', () { + const PathCommandAnimation command = PathCommandAnimation( + 'h', + >>[], + ); + + expect( + () { command.toDart(); }, + throwsA(anything), + ); + }); + + test('_PathFrames', () { + const PathAnimation pathAnimation = PathAnimation( + [ + PathCommandAnimation('M', >>[ + >[ + Point(0.0, 0.0), + Point(10.0, 10.0), + ], + ]), + PathCommandAnimation('L', >>[ + >[ + Point(48.0, 10.0), + Point(0.0, 0.0), + ], + ]), + ], + opacities: [0.5, 1.0], + ); + + expect(pathAnimation.toDart(), + ' const _PathFrames(\n' + ' opacities: const [\n' + ' 0.5,\n' + ' 1.0,\n' + ' ],\n' + ' commands: const <_PathCommand>[\n' + ' const _PathMoveTo(\n' + ' const [\n' + ' const Offset(0.0, 0.0),\n' + ' const Offset(10.0, 10.0),\n' + ' ],\n' + ' ),\n' + ' const _PathLineTo(\n' + ' const [\n' + ' const Offset(48.0, 10.0),\n' + ' const Offset(0.0, 0.0),\n' + ' ],\n' + ' ),\n' + ' ],\n' + ' ),\n', + ); + }); + + test('Animation', () { + const Animation animation = Animation( + Point(48.0, 48.0), + [ + PathAnimation( + [ + PathCommandAnimation('M', >>[ + >[ + Point(0.0, 0.0), + Point(10.0, 10.0), + ], + ]), + PathCommandAnimation('L', >>[ + >[ + Point(48.0, 10.0), + Point(0.0, 0.0), + ], + ]), + ], + opacities: [0.5, 1.0], + ), + + PathAnimation( + [ + PathCommandAnimation('M', >>[ + >[ + Point(0.0, 0.0), + Point(10.0, 10.0), + ], + ]), + ], + opacities: [0.5, 1.0], + ), + ]); + + expect(animation.toDart('_AnimatedIconData', r'_$data1'), + 'const _AnimatedIconData _\$data1 = const _AnimatedIconData(\n' + ' const Size(48.0, 48.0),\n' + ' const <_PathFrames>[\n' + ' const _PathFrames(\n' + ' opacities: const [\n' + ' 0.5,\n' + ' 1.0,\n' + ' ],\n' + ' commands: const <_PathCommand>[\n' + ' const _PathMoveTo(\n' + ' const [\n' + ' const Offset(0.0, 0.0),\n' + ' const Offset(10.0, 10.0),\n' + ' ],\n' + ' ),\n' + ' const _PathLineTo(\n' + ' const [\n' + ' const Offset(48.0, 10.0),\n' + ' const Offset(0.0, 0.0),\n' + ' ],\n' + ' ),\n' + ' ],\n' + ' ),\n' + ' const _PathFrames(\n' + ' opacities: const [\n' + ' 0.5,\n' + ' 1.0,\n' + ' ],\n' + ' commands: const <_PathCommand>[\n' + ' const _PathMoveTo(\n' + ' const [\n' + ' const Offset(0.0, 0.0),\n' + ' const Offset(10.0, 10.0),\n' + ' ],\n' + ' ),\n' + ' ],\n' + ' ),\n' + ' ],\n' + ');', + ); + }); + }); +} + +// Matches all path commands' points within an error margin. +class PathMatcher extends Matcher { + const PathMatcher(this.actual, {this.margin = 0.0}); + + final SvgPath actual; + final double margin; + + @override + Description describe(Description description) => description.add('$actual (±$margin)'); + + @override + bool matches(dynamic item, Map matchState) { + if (item == null) { + return item == actual; + } + + if (item.runtimeType != actual.runtimeType) { + return false; + } + + final SvgPath other = item as SvgPath; + if (other.id != actual.id || other.opacity != actual.opacity) { + return false; + } + + if (other.commands.length != actual.commands.length) { + return false; + } + + for (int i = 0; i < other.commands.length; i += 1) { + if (!commandsMatch(actual.commands[i], other.commands[i])) { + return false; + } + } + return true; + } + + bool commandsMatch(SvgPathCommand actual, SvgPathCommand other) { + if (other.points.length != actual.points.length) { + return false; + } + + for (int i = 0; i < other.points.length; i += 1) { + if ((other.points[i].x - actual.points[i].x).abs() > margin) { + return false; + } + if ((other.points[i].y - actual.points[i].y).abs() > margin) { + return false; + } + } + return true; + } +} + +class PathAnimationMatcher extends Matcher { + const PathAnimationMatcher(this.expected); + + final PathAnimation expected; + + @override + Description describe(Description description) => description.add('$expected'); + + @override + bool matches(dynamic item, Map matchState) { + if (item == null) { + return item == expected; + } + + if (item.runtimeType != expected.runtimeType) { + return false; + } + + final PathAnimation other = item as PathAnimation; + + if (!const ListEquality().equals(other.opacities, expected.opacities)) { + return false; + } + + if (other.commands.length != expected.commands.length) { + return false; + } + + for (int i = 0; i < other.commands.length; i += 1) { + if (!commandsMatch(expected.commands[i], other.commands[i])) { + return false; + } + } + return true; + } + + bool commandsMatch(PathCommandAnimation expected, PathCommandAnimation other) { + if (other.points.length != expected.points.length) { + return false; + } + + for (int i = 0; i < other.points.length; i += 1) { + if (!const ListEquality>().equals(other.points[i], expected.points[i])) { + return false; + } + } + + return true; + } +} + +String testAsset(String name) { + return path.join('test_assets', name); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_opacity.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_opacity.svg new file mode 100644 index 0000000000000000000000000000000000000000..03ba8c46700d4fc07775de50bb233b372cb56516 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_opacity.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_rotate_scale.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_rotate_scale.svg new file mode 100644 index 0000000000000000000000000000000000000000..d3bd2ecebd214abe9aab51d9aec4ea7a99259628 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_rotate_scale.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_scale.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_scale.svg new file mode 100644 index 0000000000000000000000000000000000000000..24faab61ad6ac387251e3c283b02a24bf7b8d7ec --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_scale.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_translate.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_translate.svg new file mode 100644 index 0000000000000000000000000000000000000000..b572334b347dbdab533673ff32b4be12f936e7eb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bar_group_translate.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bars_group.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bars_group.svg new file mode 100644 index 0000000000000000000000000000000000000000..d09edcc50f61cc3363619201071159071a574e1d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/bars_group.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/close_path_in_middle.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/close_path_in_middle.svg new file mode 100644 index 0000000000000000000000000000000000000000..5c905786ce9bdf268df62a43ce80c86b4e8c1c5c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/close_path_in_middle.svg @@ -0,0 +1,3 @@ + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/empty_svg_1_48x48.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/empty_svg_1_48x48.svg new file mode 100644 index 0000000000000000000000000000000000000000..3edd7b86629e2c84dffcb779e9a6471cad6ed93c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/empty_svg_1_48x48.svg @@ -0,0 +1,2 @@ + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/empty_svg_2_100x50.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/empty_svg_2_100x50.svg new file mode 100644 index 0000000000000000000000000000000000000000..bf94fb283e8baf8df07946b2d07df9e3b95e714e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/empty_svg_2_100x50.svg @@ -0,0 +1,8 @@ + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/horizontal_bar.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/horizontal_bar.svg new file mode 100644 index 0000000000000000000000000000000000000000..dcdbb4b7c22a3ac64e601f3e3c192ea472b1f0c2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/horizontal_bar.svg @@ -0,0 +1,3 @@ + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/horizontal_bar_relative.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/horizontal_bar_relative.svg new file mode 100644 index 0000000000000000000000000000000000000000..a8b9b92e1efd07b155048dc2f6a20f1450be23b2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/horizontal_bar_relative.svg @@ -0,0 +1,3 @@ + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/illegal_path.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/illegal_path.svg new file mode 100644 index 0000000000000000000000000000000000000000..8ab200771c97f304b82b8a2bee585ef71d0bcd32 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/illegal_path.svg @@ -0,0 +1,3 @@ + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/illegal_svg_multiple_roots.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/illegal_svg_multiple_roots.svg new file mode 100644 index 0000000000000000000000000000000000000000..ec714991940a1ef808719fe0f875f6594806e46c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/illegal_svg_multiple_roots.svg @@ -0,0 +1,3 @@ + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/illegal_transform.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/illegal_transform.svg new file mode 100644 index 0000000000000000000000000000000000000000..a5802fff3bd2ececcb2ada55b1655c0a29e8be2a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/illegal_transform.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/leading_space_path_command.svg b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/leading_space_path_command.svg new file mode 100644 index 0000000000000000000000000000000000000000..2c545428d63ae60ca1b3549593da3b0d8bff6b66 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tools/vitool/test_assets/leading_space_path_command.svg @@ -0,0 +1,3 @@ + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/README.md b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b09135a9f5e306e1f72ead928432fa1eaea6667e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/README.md @@ -0,0 +1,18 @@ +# Tracing tests + +## "Application" + +The `lib/test.dart` and `lib/control.dart` files in this directory are +used by `dev/bots/test.dart`'s `runTracingTests` function to check +whether aspects of the tracing logic in the framework get compiled out +in profile and release builds. They're not meant to be run directly. + +The strings in these files are used in `dev/bots/test.dart`. + +## Tests + +The tests in this folder must be run with `flutter test --enable-vmservice`, +since they test that trace data is written to the timeline by connecting to +the observatory. + +These tests will fail if run without this flag. diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/build.gradle b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..5bee59f0a6fd5d44de172ffd63e8001880f40ccf --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/build.gradle @@ -0,0 +1,72 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + compileSdk flutter.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + defaultConfig { + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). + applicationId "com.example.tracing_tests" + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + } + + buildTypes { + release { + // TODO: Add your own signing config for the release build. + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/debug/AndroidManifest.xml b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..f628cb7d7e02d15f671122fb207d3dd506e8fee1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/AndroidManifest.xml b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..dab8bc6b077a4f816aae51dfc3571ede4693cc66 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/kotlin/com/example/tracing_tests/MainActivity.kt b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/kotlin/com/example/tracing_tests/MainActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..a44690912cadeb94f789043cc15079fa74ce7138 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/kotlin/com/example/tracing_tests/MainActivity.kt @@ -0,0 +1,6 @@ +package com.example.tracing_tests + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/drawable-v21/launch_background.xml b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/drawable-v21/launch_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..70e372f4ecb803adc69f2681435e8bbad1de5008 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/drawable-v21/launch_background.xml @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/drawable/launch_background.xml b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..bb6811b2ee10d9304d3c94e1d43db4b7892827a9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,15 @@ + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..db77bb4b7b0906d62b1847e87f15cdcacf6a4f29 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..17987b79bb8a35cc66c3c1fd44f5a5526c1b78be Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..09d4391482be68e9e4a07fab769b5de337d16eb1 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..d5f1c8d34e7a88e3f88bea192c3a370d44689c3c Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..4d6372eebdb28e45604e46eeda8dd24651419bc0 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/values-night/styles.xml b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/values-night/styles.xml new file mode 100644 index 0000000000000000000000000000000000000000..60accd81dc42f5894035fa99d6b97a23f8f62fbb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/values-night/styles.xml @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/values/styles.xml b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000000000000000000000000000000000000..8c276104923a5657f892a937cb423e212039778e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/main/res/values/styles.xml @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/profile/AndroidManifest.xml b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..f628cb7d7e02d15f671122fb207d3dd506e8fee1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/build.gradle b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..68ee66d66c4c12b9faf2bc6384259434b4ba31ee --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/build.gradle @@ -0,0 +1,35 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +buildscript { + ext.kotlin_version = '1.6.0' + repositories { + google() + mavenCentral() + } + + dependencies { + classpath 'com.android.tools.build:gradle:7.3.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +allprojects { + repositories { + google() + mavenCentral() + } +} + +rootProject.buildDir = '../build' +subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" +} +subprojects { + project.evaluationDependsOn(':app') +} + +tasks.register("clean", Delete) { + delete rootProject.buildDir +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/gradle.properties b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/gradle.properties new file mode 100644 index 0000000000000000000000000000000000000000..598d13fee446372f156ecc38527b54c7cdcc8e3b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/gradle.properties @@ -0,0 +1,3 @@ +org.gradle.jvmargs=-Xmx4G +android.useAndroidX=true +android.enableJetifier=true diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e1ca574ef017c1bc00556b96ea372e2c07948771 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/settings.gradle b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/settings.gradle new file mode 100644 index 0000000000000000000000000000000000000000..d3b6a4013d714b88229c524e79414b8881c70bc1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/android/settings.gradle @@ -0,0 +1,15 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +include ':app' + +def localPropertiesFile = new File(rootProject.projectDir, "local.properties") +def properties = new Properties() + +assert localPropertiesFile.exists() +localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } + +def flutterSdkPath = properties.getProperty("flutter.sdk") +assert flutterSdkPath != null, "flutter.sdk not set in local.properties" +apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/lib/control.dart b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/lib/control.dart new file mode 100644 index 0000000000000000000000000000000000000000..c0c73f6173a657e0da6473135ed788eb7d657a46 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/lib/control.dart @@ -0,0 +1,16 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This file is part of dev/bots/test.dart's runTracingTests test. + +import 'package:flutter/foundation.dart'; + +void main() { + // This file is intended to be compiled in profile mode. + // In that mode, the function below throws an exception. + // The dev/bots/test.dart test looks for the string from that exception. + // The string below is matched verbatim in dev/bots/test.dart as a control + // to make sure this file did get compiled. + DiagnosticsNode.message('TIMELINE ARGUMENTS TEST CONTROL FILE').toTimelineArguments(); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/lib/test.dart b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/lib/test.dart new file mode 100644 index 0000000000000000000000000000000000000000..27a47689f679787c41b37d749298a6d7c231de2f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/lib/test.dart @@ -0,0 +1,70 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:developer'; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/rendering.dart'; +import 'package:flutter/widgets.dart'; + +class TestWidget extends LeafRenderObjectWidget { + const TestWidget({ + super.key, + }); + + @override + RenderObject createRenderObject(BuildContext context) => RenderTest(); + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + // This string is searched for verbatim by dev/bots/test.dart: + properties.add(MessageProperty('test', 'TestWidget.debugFillProperties called')); + } +} + +class RenderTest extends RenderBox { + @override + bool get sizedByParent => true; + + @override + void performResize() { + Timeline.instantSync('RenderTest.performResize called'); + size = constraints.biggest; + } + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + super.debugFillProperties(properties); + // This string is searched for verbatim by dev/bots/test.dart: + properties.add(MessageProperty('test', 'RenderTest.debugFillProperties called')); + } +} + + +Future main() async { + // This section introduces strings that we can search for in dev/bots/test.dart + // as a sanity check: + if (kDebugMode) { + print('BUILT IN DEBUG MODE'); + } + if (kProfileMode) { + print('BUILT IN PROFILE MODE'); + } + if (kReleaseMode) { + print('BUILT IN RELEASE MODE'); + } + + // The point of this file is to make sure that toTimelineArguments is not + // called when we have debugProfileBuildsEnabled (et al) turned on. If that + // method is not called then the debugFillProperties methods above should also + // not get called and we should end up tree-shaking the entire Diagnostics + // logic out of the app. The dev/bots/test.dart test checks for this by + // looking for the strings in the methods above. + + debugProfileBuildsEnabled = true; + debugProfileLayoutsEnabled = true; + debugProfilePaintsEnabled = true; + runApp(const TestWidget()); +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/pubspec.lock b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/pubspec.lock new file mode 100644 index 0000000000000000000000000000000000000000..e5cc99f4d5af0b2d8a6266b307bc1c726c38f538 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/pubspec.lock @@ -0,0 +1,188 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + async: + dependency: "direct dev" + description: + name: async + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" + source: hosted + version: "2.11.0" + boolean_selector: + dependency: "direct dev" + description: + name: boolean_selector + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" + source: hosted + version: "2.1.1" + characters: + dependency: "direct main" + description: + name: characters + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" + source: hosted + version: "1.3.0" + clock: + dependency: "direct dev" + description: + name: clock + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" + source: hosted + version: "1.1.1" + collection: + dependency: "direct main" + description: + name: collection + sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a + url: "https://pub.dev" + source: hosted + version: "1.18.0" + fake_async: + dependency: "direct dev" + description: + name: fake_async + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" + source: hosted + version: "1.3.1" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + leak_tracker: + dependency: "direct dev" + description: + name: leak_tracker + sha256: "78eb209deea09858f5269f5a5b02be4049535f568c07b275096836f01ea323fa" + url: "https://pub.dev" + source: hosted + version: "10.0.0" + leak_tracker_flutter_testing: + dependency: "direct dev" + description: + name: leak_tracker_flutter_testing + sha256: b46c5e37c19120a8a01918cfaf293547f47269f7cb4b0058f21531c2465d6ef0 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + leak_tracker_testing: + dependency: "direct dev" + description: + name: leak_tracker_testing + sha256: a597f72a664dbd293f3bfc51f9ba69816f84dcd403cdac7066cb3f6003f3ab47 + url: "https://pub.dev" + source: hosted + version: "2.0.1" + matcher: + dependency: "direct dev" + description: + name: matcher + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb + url: "https://pub.dev" + source: hosted + version: "0.12.16+1" + material_color_utilities: + dependency: "direct main" + description: + name: material_color_utilities + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + url: "https://pub.dev" + source: hosted + version: "0.8.0" + meta: + dependency: "direct main" + description: + name: meta + sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + url: "https://pub.dev" + source: hosted + version: "1.11.0" + path: + dependency: "direct dev" + description: + name: path + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" + url: "https://pub.dev" + source: hosted + version: "1.9.0" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: "direct dev" + description: + name: source_span + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + url: "https://pub.dev" + source: hosted + version: "1.10.0" + stack_trace: + dependency: "direct dev" + description: + name: stack_trace + sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" + url: "https://pub.dev" + source: hosted + version: "1.11.1" + stream_channel: + dependency: "direct dev" + description: + name: stream_channel + sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 + url: "https://pub.dev" + source: hosted + version: "2.1.2" + string_scanner: + dependency: "direct dev" + description: + name: string_scanner + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" + source: hosted + version: "1.2.0" + term_glyph: + dependency: "direct dev" + description: + name: term_glyph + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" + source: hosted + version: "1.2.1" + test_api: + dependency: "direct dev" + description: + name: test_api + sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + url: "https://pub.dev" + source: hosted + version: "0.6.1" + vector_math: + dependency: "direct main" + description: + name: vector_math + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" + source: hosted + version: "2.1.4" + vm_service: + dependency: "direct main" + description: + name: vm_service + sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 + url: "https://pub.dev" + source: hosted + version: "13.0.0" +sdks: + dart: ">=3.2.0-0 <4.0.0" diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/pubspec.yaml b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/pubspec.yaml new file mode 100644 index 0000000000000000000000000000000000000000..32afcd4cdfab7b43d7ddc8ca014a92ce4b028baa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/pubspec.yaml @@ -0,0 +1,39 @@ +name: tracing_tests +description: Various tests for tracing in flutter/flutter + +environment: + sdk: '>=3.2.0-0 <4.0.0' + +dependencies: + flutter: + sdk: flutter + + vm_service: 13.0.0 + + characters: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + collection: 1.18.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + material_color_utilities: 0.8.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + meta: 1.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + vector_math: 2.1.4 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +dev_dependencies: + flutter_test: + sdk: flutter + + async: 2.11.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + boolean_selector: 2.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + clock: 1.1.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + fake_async: 1.3.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker: 10.0.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_flutter_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + leak_tracker_testing: 2.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + matcher: 0.12.16+1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + path: 1.9.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + source_span: 1.10.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stack_trace: 1.11.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + stream_channel: 2.1.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + string_scanner: 1.2.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + term_glyph: 1.2.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + test_api: 0.6.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade" + +# PUBSPEC CHECKSUM: 8023 diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/common.dart b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/common.dart new file mode 100644 index 0000000000000000000000000000000000000000..7c534348805cd41711ea9516e2e1f5a1408452ca --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/common.dart @@ -0,0 +1,82 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:developer' as developer; +import 'dart:isolate' as isolate; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/scheduler.dart'; +import 'package:flutter/widgets.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:vm_service/vm_service.dart'; +import 'package:vm_service/vm_service_io.dart'; + +export 'package:vm_service/vm_service.dart' show TimelineEvent; + +late String isolateId; + +late VmService _vmService; + +void initTimelineTests() { + setUpAll(() async { + final developer.ServiceProtocolInfo info = await developer.Service.getInfo(); + if (info.serverUri == null) { + fail('This test _must_ be run with --enable-vmservice.'); + } + _vmService = await vmServiceConnectUri('ws://localhost:${info.serverUri!.port}${info.serverUri!.path}ws'); + await _vmService.setVMTimelineFlags(['Dart']); + isolateId = developer.Service.getIsolateId(isolate.Isolate.current)!; + }); +} + +Future> fetchTimelineEvents() async { + final Timeline timeline = await _vmService.getVMTimeline(); + await _vmService.clearVMTimeline(); + return timeline.traceEvents!; +} + +Future> fetchInterestingEvents(Set interestingLabels) async { + return (await fetchTimelineEvents()).where((TimelineEvent event) { + return interestingLabels.contains(event.json!['name']) + && event.json!['ph'] == 'B'; // "Begin" mark of events, vs E which is for the "End" mark of events. + }).toList(); +} + +String eventToName(TimelineEvent event) => event.json!['name'] as String; + +Future> fetchInterestingEventNames(Set interestingLabels) async { + return (await fetchInterestingEvents(interestingLabels)).map(eventToName).toList(); +} + +Future runFrame(VoidCallback callback) { + final Future result = SchedulerBinding.instance.endOfFrame; // schedules a frame + callback(); + return result; +} + +// This binding skips the zones tests. These tests were written before we +// verified zones properly, and they have been legacied-in to avoid having +// to refactor them. +// +// When creating new tests, avoid relying on this class. +class ZoneIgnoringTestBinding extends WidgetsFlutterBinding { + @override + void initInstances() { + super.initInstances(); + _instance = this; + } + + @override + bool debugCheckZone(String entryPoint) { return true; } + + static ZoneIgnoringTestBinding get instance => BindingBase.checkInstance(_instance); + static ZoneIgnoringTestBinding? _instance; + + static ZoneIgnoringTestBinding ensureInitialized() { + if (ZoneIgnoringTestBinding._instance == null) { + ZoneIgnoringTestBinding(); + } + return ZoneIgnoringTestBinding.instance; + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/default_streams_test.dart b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/default_streams_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..7cb75f01d899b31aece00a261000d963c17f37e6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/default_streams_test.dart @@ -0,0 +1,41 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:developer' as developer; + +import 'package:flutter_test/flutter_test.dart'; +import 'package:vm_service/vm_service.dart'; +import 'package:vm_service/vm_service_io.dart'; + +// This test ensures that the engine starts the VM with the timeline streams +// for "Dart", "Embedder", and "GC" recorded from startup. + +void main() { + late VmService vmService; + + setUpAll(() async { + final developer.ServiceProtocolInfo info = await developer.Service.getInfo(); + + if (info.serverUri == null) { + fail('This test _must_ be run with --enable-vmservice.'); + } + + vmService = await vmServiceConnectUri( + 'ws://localhost:${info.serverUri!.port}${info.serverUri!.path}ws', + ); + }); + + tearDownAll(() async { + await vmService.dispose(); + }); + + test('Image cache tracing', () async { + final TimelineFlags flags = await vmService.getVMTimelineFlags(); + expect(flags.recordedStreams, containsAll([ + 'Dart', + 'Embedder', + 'GC', + ])); + }, skip: isBrowser); // [intended] uses dart:isolate and io. +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/image_cache_tracing_test.dart b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/image_cache_tracing_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..c1ce7bcd6e2e483c7422ee233940ecfb1f3bc0eb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/image_cache_tracing_test.dart @@ -0,0 +1,113 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:convert'; + +import 'package:flutter/painting.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'common.dart'; + +void main() { + initTimelineTests(); + TestWidgetsFlutterBinding.ensureInitialized(); + + test('Image cache tracing', () async { + final TestImageStreamCompleter completer1 = TestImageStreamCompleter(); + final TestImageStreamCompleter completer2 = TestImageStreamCompleter(); + PaintingBinding.instance.imageCache.putIfAbsent( + 'Test', + () => completer1, + ); + PaintingBinding.instance.imageCache.clear(); + + completer2.testSetImage(ImageInfo(image: await createTestImage())); + PaintingBinding.instance.imageCache.putIfAbsent( + 'Test2', + () => completer2, + ); + PaintingBinding.instance.imageCache.evict('Test2'); + + _expectTimelineEvents( + await fetchTimelineEvents(), + >[ + { + 'name': 'ImageCache.putIfAbsent', + 'args': { + 'key': 'Test', + 'isolateId': isolateId, + 'parentId': null, + }, + }, + { + 'name': 'listener', + 'args': { + 'isolateId': isolateId, + 'parentId': null, + }, + }, + { + 'name': 'ImageCache.clear', + 'args': { + 'pendingImages': 1, + 'keepAliveImages': 0, + 'liveImages': 1, + 'currentSizeInBytes': 0, + 'isolateId': isolateId, + 'parentId': null, + }, + }, + { + 'name': 'ImageCache.putIfAbsent', + 'args': { + 'key': 'Test2', + 'isolateId': isolateId, + 'parentId': null, + }, + }, + { + 'name': 'ImageCache.evict', + 'args': { + 'sizeInBytes': 4, + 'isolateId': isolateId, + 'parentId': null, + }, + }, + ], + ); + }, skip: isBrowser); // [intended] uses dart:isolate and io. +} + +void _expectTimelineEvents(List events, List> expected) { + for (final TimelineEvent event in events) { + for (int index = 0; index < expected.length; index += 1) { + if (expected[index]['name'] == event.json!['name']) { + final Map expectedArgs = expected[index]['args'] as Map; + final Map args = event.json!['args'] as Map; + if (_mapsEqual(expectedArgs, args)) { + expected.removeAt(index); + } + } + } + } + if (expected.isNotEmpty) { + final String encodedEvents = jsonEncode(events); + fail('Timeline did not contain expected events: $expected\nactual: $encodedEvents'); + } +} + +bool _mapsEqual(Map expectedArgs, Map args) { + for (final String key in expectedArgs.keys) { + if (expectedArgs[key] != args[key]) { + return false; + } + } + return true; +} + +class TestImageStreamCompleter extends ImageStreamCompleter { + void testSetImage(ImageInfo image) { + setImage(image); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/image_painting_event_test.dart b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/image_painting_event_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..e190108943c98fa68620daa5c93c902025f603ed --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/image_painting_event_test.dart @@ -0,0 +1,117 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:convert' show jsonEncode; +import 'dart:developer' as developer; +import 'dart:ui' as ui; + +import 'package:flutter/widgets.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:vm_service/vm_service.dart'; +import 'package:vm_service/vm_service_io.dart'; + +void main() { + LiveTestWidgetsFlutterBinding.ensureInitialized(); + + late VmService vmService; + late LiveTestWidgetsFlutterBinding binding; + setUpAll(() async { + final developer.ServiceProtocolInfo info = + await developer.Service.getInfo(); + + if (info.serverUri == null) { + fail('This test _must_ be run with --enable-vmservice.'); + } + + vmService = await vmServiceConnectUri('ws://localhost:${info.serverUri!.port}${info.serverUri!.path}ws'); + await vmService.streamListen(EventStreams.kExtension); + + // Initialize bindings + binding = LiveTestWidgetsFlutterBinding.instance; + binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive; + binding.attachRootWidget(const SizedBox.expand()); + expect(binding.framesEnabled, true); + // Pump two frames to make sure we clear out any inter-frame comparisons. + await binding.endOfFrame; + await binding.endOfFrame; + }); + + tearDownAll(() async { + await vmService.dispose(); + }); + + test('Image painting events - deduplicates across frames', () async { + final Completer completer = Completer(); + vmService + .onExtensionEvent + .firstWhere((Event event) => event.extensionKind == 'Flutter.ImageSizesForFrame') + .then(completer.complete); + + final ui.Image image = await createTestImage(width: 300, height: 300); + final TestCanvas canvas = TestCanvas(); + paintImage( + canvas: canvas, + rect: const Rect.fromLTWH(50.0, 75.0, 200.0, 100.0), + image: image, + debugImageLabel: 'test.png', + ); + + // Make sure that we don't report an identical image size info if we + // redraw in the next frame. + await binding.endOfFrame; + + paintImage( + canvas: canvas, + rect: const Rect.fromLTWH(50.0, 75.0, 200.0, 100.0), + image: image, + debugImageLabel: 'test.png', + ); + await binding.endOfFrame; + + final Event event = await completer.future; + expect(event.extensionKind, 'Flutter.ImageSizesForFrame'); + expect( + jsonEncode(event.extensionData!.data), + contains('"test.png":{"source":"test.png","displaySize":{"width":600.0,"height":300.0},"imageSize":{"width":300.0,"height":300.0},"displaySizeInBytes":960000,"decodedSizeInBytes":480000}'), + ); + }, skip: isBrowser); // [intended] uses dart:isolate and io. + + test('Image painting events - deduplicates across frames', () async { + final Completer completer = Completer(); + vmService + .onExtensionEvent + .firstWhere((Event event) => event.extensionKind == 'Flutter.ImageSizesForFrame') + .then(completer.complete); + + final ui.Image image = await createTestImage(width: 300, height: 300); + final TestCanvas canvas = TestCanvas(); + paintImage( + canvas: canvas, + rect: const Rect.fromLTWH(50.0, 75.0, 200.0, 100.0), + image: image, + debugImageLabel: 'test.png', + ); + + paintImage( + canvas: canvas, + rect: const Rect.fromLTWH(50.0, 75.0, 300.0, 300.0), + image: image, + debugImageLabel: 'test.png', + ); + await binding.endOfFrame; + + final Event event = await completer.future; + expect(event.extensionKind, 'Flutter.ImageSizesForFrame'); + expect( + jsonEncode(event.extensionData!.data), + contains('"test.png":{"source":"test.png","displaySize":{"width":900.0,"height":900.0},"imageSize":{"width":300.0,"height":300.0},"displaySizeInBytes":4320000,"decodedSizeInBytes":480000}'), + ); + }, skip: isBrowser); // [intended] uses dart:isolate and io. +} + +class TestCanvas implements Canvas { + @override + void noSuchMethod(Invocation invocation) {} +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/inflate_widget_tracing_test.dart b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/inflate_widget_tracing_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..8831612e289f73708c8e270c0d944c9b4cc81cf9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/inflate_widget_tracing_test.dart @@ -0,0 +1,85 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/scheduler.dart'; +import 'package:flutter/widgets.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'common.dart'; + +final Set interestingLabels = { + '$Row', + '$TestRoot', + '$TestChildWidget', + '$Container', +}; + +void main() { + ZoneIgnoringTestBinding.ensureInitialized(); + initTimelineTests(); + test('Children of MultiChildRenderObjectElement show up in tracing', () async { + // We don't have expectations around the first frame because there's a race around + // the warm-up frame that we don't want to get involved in here. + await runFrame(() { runApp(const TestRoot()); }); + await SchedulerBinding.instance.endOfFrame; + await fetchInterestingEvents(interestingLabels); + + debugProfileBuildsEnabled = true; + + await runFrame(() { + TestRoot.state.showRow(); + }); + expect( + await fetchInterestingEventNames(interestingLabels), + ['TestRoot', 'Row', 'TestChildWidget', 'Container', 'TestChildWidget', 'Container'], + ); + + debugProfileBuildsEnabled = false; + }, skip: isBrowser); // [intended] uses dart:isolate and io. +} + +class TestRoot extends StatefulWidget { + const TestRoot({super.key}); + + static late TestRootState state; + + @override + State createState() => TestRootState(); +} + +class TestRootState extends State { + @override + void initState() { + super.initState(); + TestRoot.state = this; + } + + bool _showRow = false; + void showRow() { + setState(() { + _showRow = true; + }); + } + + @override + Widget build(BuildContext context) { + return _showRow + ? const Row( + children: [ + TestChildWidget(), + TestChildWidget(), + ], + ) + : Container(); + } +} + +class TestChildWidget extends StatelessWidget { + const TestChildWidget({super.key}); + + @override + Widget build(BuildContext context) { + return Container(); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/inflate_widget_update_test.dart b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/inflate_widget_update_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..edd3237e55705ad5f1b2df157ebc6b31cf0840ac --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/inflate_widget_update_test.dart @@ -0,0 +1,77 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/scheduler.dart'; +import 'package:flutter/widgets.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'common.dart'; + +void main() { + ZoneIgnoringTestBinding.ensureInitialized(); + initTimelineTests(); + test('Widgets with updated keys produce well formed timelines', () async { + await runFrame(() { runApp(const TestRoot()); }); + await SchedulerBinding.instance.endOfFrame; + + debugProfileBuildsEnabled = true; + + await runFrame(() { + TestRoot.state.updateKey(); + }); + + int buildCount = 0; + for (final TimelineEvent event in await fetchTimelineEvents()) { + if (event.json!['name'] == 'BUILD') { + final String ph = event.json!['ph'] as String; + if (ph == 'B') { + buildCount++; + } else if (ph == 'E') { + buildCount--; + } + } + } + expect(buildCount, 0); + + debugProfileBuildsEnabled = false; + }, skip: isBrowser); // [intended] uses dart:isolate and io. +} + +class TestRoot extends StatefulWidget { + const TestRoot({super.key}); + + static late TestRootState state; + + @override + State createState() => TestRootState(); +} + +class TestRootState extends State { + final Key _globalKey = GlobalKey(); + Key _localKey = UniqueKey(); + + @override + void initState() { + super.initState(); + TestRoot.state = this; + } + + void updateKey() { + setState(() { + _localKey = UniqueKey(); + }); + } + + @override + Widget build(BuildContext context) { + return Center( + key: _localKey, + child: SizedBox( + key: _globalKey, + width: 100, + height: 100, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/timeline_test.dart b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/timeline_test.dart new file mode 100644 index 0000000000000000000000000000000000000000..e5a915d5a602174d5c0e361c0c72b0139510876f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/dev/tracing_tests/test/timeline_test.dart @@ -0,0 +1,159 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; +import 'package:flutter/scheduler.dart'; +import 'package:flutter_test/flutter_test.dart'; + +import 'common.dart'; + +final Set interestingLabels = { + 'BUILD', + 'LAYOUT', + 'UPDATING COMPOSITING BITS', + 'PAINT', + 'COMPOSITING', + 'FINALIZE TREE', + '$Placeholder', + '$CustomPaint', + '$RenderCustomPaint', +}; + +class TestRoot extends StatefulWidget { + const TestRoot({ super.key }); + + static late final TestRootState state; + + @override + State createState() => TestRootState(); +} + +class TestRootState extends State { + @override + void initState() { + super.initState(); + TestRoot.state = this; + } + + Widget _widget = const Placeholder(); + + void updateWidget(Widget newWidget) { + setState(() { + _widget = newWidget; + }); + } + + void rebuild() { + setState(() { + // no change, just force a rebuild + }); + } + + @override + Widget build(BuildContext context) { + return _widget; + } +} + +void main() { + ZoneIgnoringTestBinding.ensureInitialized(); + initTimelineTests(); + test('Timeline', () async { + // We don't have expectations around the first frame because there's a race around + // the warm-up frame that we don't want to get involved in here. + await runFrame(() { runApp(const TestRoot()); }); + await SchedulerBinding.instance.endOfFrame; + await fetchInterestingEvents(interestingLabels); + + // The next few cases build the exact same tree so should have no effect. + + debugProfileBuildsEnabled = true; + await runFrame(() { TestRoot.state.rebuild(); }); + expect( + await fetchInterestingEventNames(interestingLabels), + ['BUILD', 'LAYOUT', 'UPDATING COMPOSITING BITS', 'PAINT', 'COMPOSITING', 'FINALIZE TREE'], + ); + debugProfileBuildsEnabled = false; + + debugProfileLayoutsEnabled = true; + await runFrame(() { TestRoot.state.rebuild(); }); + expect( + await fetchInterestingEventNames(interestingLabels), + ['BUILD', 'LAYOUT', 'UPDATING COMPOSITING BITS', 'PAINT', 'COMPOSITING', 'FINALIZE TREE'], + ); + debugProfileLayoutsEnabled = false; + + debugProfilePaintsEnabled = true; + await runFrame(() { TestRoot.state.rebuild(); }); + expect( + await fetchInterestingEventNames(interestingLabels), + ['BUILD', 'LAYOUT', 'UPDATING COMPOSITING BITS', 'PAINT', 'COMPOSITING', 'FINALIZE TREE'], + ); + debugProfilePaintsEnabled = false; + + + // Now we replace the widgets each time to cause a rebuild. + + List events; + Map args; + + debugProfileBuildsEnabled = true; + debugEnhanceBuildTimelineArguments = true; + await runFrame(() { TestRoot.state.updateWidget(Placeholder(key: UniqueKey(), color: const Color(0xFFFFFFFF))); }); + events = await fetchInterestingEvents(interestingLabels); + expect( + events.map(eventToName), + ['BUILD', 'Placeholder', 'CustomPaint', 'LAYOUT', 'UPDATING COMPOSITING BITS', 'PAINT', 'COMPOSITING', 'FINALIZE TREE'], + ); + args = (events.where((TimelineEvent event) => event.json!['name'] == '$Placeholder').single.json!['args'] as Map).cast(); + expect(args['color'], 'Color(0xffffffff)'); + debugProfileBuildsEnabled = false; + debugEnhanceBuildTimelineArguments = false; + + debugProfileBuildsEnabledUserWidgets = true; + debugEnhanceBuildTimelineArguments = true; + await runFrame(() { TestRoot.state.updateWidget(Placeholder(key: UniqueKey(), color: const Color(0xFFFFFFFF))); }); + events = await fetchInterestingEvents(interestingLabels); + expect( + events.map(eventToName), + ['BUILD', 'Placeholder', 'LAYOUT', 'UPDATING COMPOSITING BITS', 'PAINT', 'COMPOSITING', 'FINALIZE TREE'], + ); + args = (events.where((TimelineEvent event) => event.json!['name'] == '$Placeholder').single.json!['args'] as Map).cast(); + expect(args['color'], 'Color(0xffffffff)'); + debugProfileBuildsEnabledUserWidgets = false; + debugEnhanceBuildTimelineArguments = false; + + debugProfileLayoutsEnabled = true; + debugEnhanceLayoutTimelineArguments = true; + await runFrame(() { TestRoot.state.updateWidget(Placeholder(key: UniqueKey())); }); + events = await fetchInterestingEvents(interestingLabels); + expect( + events.map(eventToName), + ['BUILD', 'LAYOUT', 'RenderCustomPaint', 'UPDATING COMPOSITING BITS', 'PAINT', 'COMPOSITING', 'FINALIZE TREE'], + ); + args = (events.where((TimelineEvent event) => event.json!['name'] == '$RenderCustomPaint').single.json!['args'] as Map).cast(); + expect(args['creator'], startsWith('CustomPaint')); + expect(args['creator'], contains('Placeholder')); + expect(args['painter'], startsWith('_PlaceholderPainter#')); + debugProfileLayoutsEnabled = false; + debugEnhanceLayoutTimelineArguments = false; + + debugProfilePaintsEnabled = true; + debugEnhancePaintTimelineArguments = true; + await runFrame(() { TestRoot.state.updateWidget(Placeholder(key: UniqueKey())); }); + events = await fetchInterestingEvents(interestingLabels); + expect( + events.map(eventToName), + ['BUILD', 'LAYOUT', 'UPDATING COMPOSITING BITS', 'PAINT', 'RenderCustomPaint', 'COMPOSITING', 'FINALIZE TREE'], + ); + args = (events.where((TimelineEvent event) => event.json!['name'] == '$RenderCustomPaint').single.json!['args'] as Map).cast(); + expect(args['creator'], startsWith('CustomPaint')); + expect(args['creator'], contains('Placeholder')); + expect(args['painter'], startsWith('_PlaceholderPainter#')); + debugProfilePaintsEnabled = false; + debugEnhancePaintTimelineArguments = false; + + }, skip: isBrowser); // [intended] uses dart:isolate and io. +} diff --git a/novelforge-project/agent-workspace/flutter/docs/about/Flutter's-repository-architecture.md b/novelforge-project/agent-workspace/flutter/docs/about/Flutter's-repository-architecture.md new file mode 100644 index 0000000000000000000000000000000000000000..ba7cea1286ea85a1d4d6b378e0fc06e2bb70b933 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/about/Flutter's-repository-architecture.md @@ -0,0 +1,30 @@ +Flutter uses a deeply multi-repository architecture, which includes, among many others, the following: + +* github.com/flutter/flutter +* github.com/flutter/engine +* github.com/flutter/packages +* github.com/dart-lang/sdk +* llvm.googlesource.com +* skia.googlesource.com +* swiftshader.googlesource.com +* android.googlesource.com +* fuchsia.googlesource.com +* boringssl.googlesource.com +* chromium.googlesource.com, which mirrors a large number of further repositories +* flutter.googlesource.com, which mirrors a large number of further repositories + +There are, all told, hundreds of repositories involved in Flutter's development. + +Generally, the boundaries between repositories represent integration points. For example, Dart is integrated into Flutter's engine, but is also used in other contexts. Dart therefore is in its own repository, separate from Flutter's engine. Flutter's engine is integrated into Flutter's tooling as a prebuilt binary, and therefore they are in separate repositories. + +Our current architecture enables some important features, for example: + + - flutter/packages can be tested against different versions of Flutter with a clean integration point. + - flutter/flutter has an unambiguous integration with the Engine, including on release branches. + - flutter/flutter is entirely code covered by a single license. (This is why that repo does not need a license script the way flutter/engine does.) + - flutter/flutter can be delivered to developers in a way that they can step through the code in a debugger without significant parts of the repo providing distractions. + - flutter/flutter is easy for new contributors to hack on, providing an easy on-ramp to grow the community from where people can get more deeply involved, e.g. with the engine. + - flutter/engine can select specific versions of dependencies (e.g. Skia) rather than having to merge in the actual dependency code. + - flutter/engine binaries can be built in the same way for CI testing as for release. + +Some repositories that were historically split have been merged or are planned to be merged. For example, we have merged our various packages and plugins into a single repository (flutter/packages); previously, they were each in individual packages, then eventually two (plugins and packages). Combining these makes sense as they share near-identical CI testing and development tooling. Another example is flutter/buildroot and flutter/engine, which we plan to merge in due course (previously the buildroot was separated for ease of integration with Fuchsia). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/about/Glossary.md b/novelforge-project/agent-workspace/flutter/docs/about/Glossary.md new file mode 100644 index 0000000000000000000000000000000000000000..14656ffcb0152d687295e6d8c37c274393e84285 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/about/Glossary.md @@ -0,0 +1,39 @@ +Here are some terms that we use in the Flutter project and what they mean: + + + +- **Cold restart**. Quitting and restarting an application and its associated runtime. This contrasts with hot restart, where the process and/or runtime would not be terminated. + +- **Dynamic extension loading**. The ability to download some Dart code that wasn't written when the app was first published, which adds a new feature to the app. This could be done on the fly. It may require the core app to be larger since we can't know ahead of time what is needed by each future extension, and therefore can't do tree shaking (whole program optimization). + +- **Dynamic patching**. The ability to update the Dart code of an app in the field by downloading a patch (of sorts) and providing it to the Dart VM, probably requiring a restart of the application. + +- **Embedder**. The core of the Flutter engine is platform agnostic. But platforms that run Flutter applications need platform specific logic to wire up rendering to the native window toolkit, handle input events, etc.. This platform specific logic is referred to as the Flutter embedder. Embedders interact with the engine using a [very low level C/C++ API](https://github.com/flutter/engine/blob/043d92c48abdebdad926569bc204a59c5cf20a11/shell/platform/embedder/embedder.h). While this API exposed by the engine to its embedders is platform agnostic, it is usually not suitable for developers used to the tools, frameworks and libraries on that specific platform (UIKit using Objective-C/Swift on iOS, or, Android APIs using Java on Android). To make interacting with the engine more ergonomic to developers on a specific platform, there are platform specific embedding APIs ([iOS](https://docs.flutter.io/objcdoc/) and [Android](https://docs.flutter.io/javadoc/)). These APIs provide higher level abstractions but are optional. + +- **Embedding**. Flutter provides "embedders" to port Flutter behavior to specific platforms, as defined elsewhere in this glossary. However, embedders use a [very low level C/C++ API](https://github.com/flutter/engine/blob/043d92c48abdebdad926569bc204a59c5cf20a11/shell/platform/embedder/embedder.h) which would feel unnatural to typical developers of a platform, e.g., Android or iOS. A Flutter "embedding" is a counterpart to an "embedder", which introduces common platform tools for interacting with Flutter. The Android embedding offers a `FlutterActivity`, `FlutterFragment`, `FlutterView`, etc: [Android embedding](https://docs.flutter.io/javadoc/). The iOS embedding offers a `FlutterViewController`, etc: [iOS embedding](https://docs.flutter.io/objcdoc/). An embedding + an embedder signifies the entire story of how Flutter ports to a specific platform. + +- **Engine**. The C++ (and Java and ObjectiveC and...) side of Flutter. Defined in the `engine` repository. Includes Skia, Dart, and other low-level components. Exposed as `dart:ui` and other Dart libraries to author code. + +- **Flakiness**. The tendency of a test to occasionally claim that it has passed even though it is really a failing test. Usually caused by race conditions. Please treat flaky tests as failures; attempt to find the cause and fix it. + +- **Framework**. The `flutter` library (`packages/flutter` in the main repository) that includes the bulk of the Dart classes exposed by Flutter, such as all the built-in widgets. + +- **Hot reload**. During development, causing a running application to update with new logic, without losing any of its state. This contrasts with hot restart because state is maintained despite the code being updated. We consider hot reload to be "hot" if it's subsecond in the normal case, significantly so in favourable conditions (e.g. fast devices, changing a small part of an application's UI). + +- **Hot restart**. During development, causing a running application to rerun from the beginning, using new logic, and with all state reset to initial conditions. This contrasts with a cold restart because it does not require the application to shut down, and contrasts with a hot reload because state is lost in the process. We consider hot restart to be "hot" if it's under four seconds in the normal case. + +- **Landing**. The act of merging a PR into a branch (typically the main trunk, sometimes called "master") of a repository. + +- **Modular application delivery**. The ability to package a single app into multiple separate archives when compiling it, and download them independently as needed. + +- **NTE**. "Needs-Tests Exemption". Indicates that a PR does not need tests, typically because the PR is refactoring code without changing the semantics of the code, or because it actually does have tests but the automated systems didn't recognize them. A test exemption consists of a comment on the PR that has a line that starts with the string `test-exempt: ` followed by an explanation of why, from someone who is allowed to give test exemptions. A bot will add a comment to a PR if a test exemption is required. See [Tree Hygiene](../contributing/Tree-hygiene.md) for instructions on getting test exemptions. + +- **Out-of-band (OOB) failure**. A test failure in our CI that is caused by some change external to the repository, not the failing commit (or flake). For instance, an infrastructure change or a change to an external server used by tests could cause an out-of-band failure. In general, CI should minimize the possibility of out-of-band failures by being as hermetic as possible. + +- **PR**. A _Pull Request_, a code or documentation contribution on GitHub. PRs are _landed_ once they have been reviewed. + +- **Roll**. The act of updating a dependency ("rolling skia", "rolling the engine"), typically by updating a commit hash in a configuration file. A roll is typically created as a PR that is then landed. Automatically rolling dependencies is preferred over manual rolling. + +- **Skia**. The graphics library used by Flutter. + +- **Tool**. The `flutter` program (started from `bin/flutter` on Unix systems, `bin/flutter.bat` on Windows) that developers use to drive their work when using Flutter. diff --git a/novelforge-project/agent-workspace/flutter/docs/about/Project-teams.md b/novelforge-project/agent-workspace/flutter/docs/about/Project-teams.md new file mode 100644 index 0000000000000000000000000000000000000000..dddd6ab8cc64b9d0fa0878ffe21bdfee3ae63bbd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/about/Project-teams.md @@ -0,0 +1,70 @@ +The Flutter project has many teams, including, but not limited to: + +* Design languages, covering: + + * The material library ([flutter/flutter packages/flutter/lib/src/material](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/material); label ["f: material design"](https://github.com/flutter/flutter/labels/f%3A%20material%20design)) + + * The cupertino library ([flutter/flutter packages/flutter/lib/src/cupertino](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/cupertino); label ["f: cupertino"](https://github.com/flutter/flutter/labels/f%3A%20cupertino)) + +* The Flutter framework (code in [flutter/flutter packages/flutter/lib/src/widgets](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/widgets), [...rendering/](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/rendering), [...painting/](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/painting), etc; label ["framework"](https://github.com/flutter/flutter/labels/framework)) + +* The Flutter command line tool ([flutter/flutter packages/flutter_tools](https://github.com/flutter/flutter/blob/main/packages/flutter_tools/), label ["tool"](https://github.com/flutter/flutter/labels/tool)) + +* Ecosystem ([flutter/plugins](https://github.com/flutter/plugins), [flutter/packages](https://github.com/flutter/packages), [the plugin infrastructure in flutter/flutter](https://github.com/flutter/flutter/tree/main/packages/flutter/lib/src/services); labels ["plugins"](https://github.com/flutter/flutter/labels/plugins), and ["packages"](https://github.com/flutter/flutter/labels/packages)) + +* The Engine ([flutter/engine](https://github.com/flutter/engine) and [flutter/buildroot](https://github.com/flutter/buildroot/); label ["engine"](https://github.com/flutter/flutter/labels/engine)) + +* Various platform-specific teams including iOS, Android, Windows, Linux, and macOS (some code in flutter/flutter and flutter/engine); labels ["platform-android"](https://github.com/flutter/flutter/labels/platform-android), ["platform-ios"](https://github.com/flutter/flutter/labels/platform-ios), etc). + +* Desktop-specific features (some code in flutter/flutter and flutter/engine, ["a: desktop"](https://github.com/flutter/flutter/labels/a%3A%20desktop)) + +* Web (some code in flutter/flutter and flutter/engine, label ["platform-web"](https://github.com/flutter/flutter/labels/platform-web)) + +* Developer experience (e.g. [the devtools package](https://github.com/flutter/devtools/)) + +* User Experience Research + +* Developer Relations (e.g. [the samples repo](https://github.com/flutter/samples/), [docs.flutter.dev](https://docs.flutter.dev/)) + +* Infrastructure (mainly [flutter/cocoon](https://github.com/flutter/cocoon) and [flutter/flutter dev/devicelab](https://github.com/flutter/flutter/tree/main/dev), label ["team: infra"](https://github.com/flutter/flutter/labels/team%3A%20infra)) + +There are also specific cross-cutting areas of work that may have their own subteam and that affect multiple subteams (e.g. accessibility, performance, etc). + +We also work closely with other projects, such as [Dart](https://dart.dev) and [Skia](https://skia.org), and with many [customers](../contributing/issue_hygiene/README.md#customers). + +## Responsibilities + +Subteams are responsible for reviewing PRs in their area, triaging issues, and scheduling work. +How subteams organize themselves is not defined by this document. This document does not attempt to impose a process, merely a set of responsibilities. + +See the [Roadmap](../roadmap/Roadmap.md) and [What should I work on?](../contributing/What-should-I-work-on.md) pages for details on how to prioritize work. + +### Reviewing PRs + +Please review PRs in your area (based on label and/or repositories). The goal is to have a prompt (less than one week) turnaround for all PRs. Please have goals around handling of PRs with the relevant label and/or in the relevant repository. Please don't leave lingering stale PRs open. All PRs should be actively being worked on. If nobody has the time to work on a PR, it should be closed; the relevant issue can have the ["has partial patch"](https://github.com/flutter/flutter/labels/has%20partial%20patch) label applied. + +### Triage + +Please triage issues with your label on a regular basis. You may do this in whatever manner you prefer (on your phone while in line for lunch, as a team exercise in a dedicated meeting room, by having some sort of team rotation, whatever). + +[You must cover these bug lists in particular.](../triage/README.md#triage-process-for-teams) + +* Assign bugs that you are working on or that you have committed to work on. + +* Unassign bugs you are not working on and have no specific scheduled plans to work on. + +* Make sure that assigned bugs have a month-based milestone (see section below). + +[See our page on managing issues.](../contributing/issue_hygiene/README.md) + +Keep an eye out for bugs that should block releases, update the [bad builds](../releases/Bad-Builds.md) page accordingly. + +### Be conservative when scheduling + +Customers always assume things will be done sooner than you promise, and there are always going to be emergencies, so you need slack in your schedule. + +You will be more effective, more popular, and your morale will be higher, if you focus on a small set of things and really knock those out of the park, than if you try to do a large number of things and only do a little bit for each, so aim to underpromise and overdeliver. + +This may mean your OKRs are more optimistic than what you report as your scheduled timeline. With OKRs we generally try to hit 67% of the plan. With the roadmap we want to hit 150%. + +(OKRs are how some team members plan their work, notably it is used by Google engineers.) \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/about/The-Engine-architecture.md b/novelforge-project/agent-workspace/flutter/docs/about/The-Engine-architecture.md new file mode 100644 index 0000000000000000000000000000000000000000..24b7da33bffa41515d5b9ec0225bce9db1c42f09 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/about/The-Engine-architecture.md @@ -0,0 +1,149 @@ +Flutter combines [a Dart framework](https://github.com/flutter/flutter) with a high-performance [engine](https://github.com/flutter/engine). + +The Flutter Engine is a portable runtime for high-quality cross-platform applications. It implements Flutter's core libraries, including animation and graphics, file and network I/O, accessibility support, plugin architecture, and a Dart runtime and toolchain for developing, compiling, and running Flutter applications. + +## Anatomy of a Flutter app + +The following diagram gives an overview of the pieces that make up a regular Flutter app generated by `flutter create`. It shows where the Flutter Engine sits in this stack, highlights API boundaries, and identifies the repositories where the individual pieces live. The legend below clarifies some of the terminology commonly used to describe the pieces of a Flutter app. + +Flutter Architecture Diagram + +#### Dart App +* Composes widgets into the desired UI. +* Implements business logic. +* Owned by app developer. + +#### Framework ([source code](https://github.com/flutter/flutter/tree/main/packages/flutter/lib)) +* Provides higher-level API to build high-quality apps (e.g. widgets, hit-testing, gesture detection, accessibility, text input, etc.). +* Composites the app's widget tree into a scene. + +#### Engine ([source code](https://github.com/flutter/engine/tree/main/shell/common)) +* Responsible for rasterizing composited scenes. +* Provides low-level implementation of Flutter's core APIs (e.g. graphics, text layout, Dart runtime, etc.). +* Exposes its functionality via its **dart:ui API** to the framework. +* Integrates with a specific platform via the Engine's **Embedder API**. + +#### Embedder ([source code](https://github.com/flutter/engine/tree/main/shell/platform)) +* Coordinates with the underlying operating system for access to services like rendering surfaces, accessibility, and input. +* Manages the event loop. +* Exposes **platform-specific API** to integrate the Embedder into apps. + +#### Runner +* Composes the pieces exposed by the platform-specific API of the Embedder into an app package runnable on the target platform. +* Part of app template generated by `flutter create`, owned by app developer. + +## Architecture overview + +Flutter's engine takes core technologies, Skia, a 2D graphics rendering library, and Dart, a VM for a garbage-collected object-oriented language, and hosts them in a shell. Different platforms have different shells, for example we have shells for [Android](https://github.com/flutter/engine/tree/main/shell/platform/android) and [iOS](https://github.com/flutter/engine/tree/main/shell/platform/darwin). We also have an [embedder API](https://github.com/flutter/engine/tree/main/shell/platform/embedder) which allows Flutter's engine to be used as a library (see [Custom Flutter Engine Embedders](../engine/Custom-Flutter-Engine-Embedders.md)). + +The shells implement platform-specific code such as communicating with IMEs (on-screen keyboards) and the system's application lifecycle events. + +The Dart VM implements the normal Dart core libraries, plus an additional library called `dart:ui` to provide low-level access to Skia features and the shell. The shells can also communicate directly to Dart code via [Platform Channels](https://flutter.io/platform-channels/) which bypass the engine. + +![Flutter Architecture Diagram](https://raw.githubusercontent.com/flutter/engine/main/docs/flutter_overview.svg?sanitize=true) + + +## Threading + +### Overview + +The Flutter engine does not create or manage its own threads. Instead, it is the responsibility of the embedder to create and manage threads (and their message loops) for the Flutter engine. The embedder gives the Flutter engine task runners for the threads it manages. In addition to the threads managed by the embedder for the engine, the Dart VM also has its own thread pool. Neither the Flutter engine or the embedder have any access to the threads in this pool. + +### Task Runner Configuration + +The Flutter engine requires the embedder to give it references to 4 task runners. The engine does not care if the references are to the same task runner, or, if multiple task runners are serviced on the same thread. For optimum performance, the embedder should create a dedicated thread per task runner. Though the engine does not care about the threads the task runners are serviced on, it does expect that the threading configuration remain stable for the entire lifetime of the engine. That is, once the embedder decides to service a task runner on a particular thread, it should execute tasks for that task runner only on that one thread (till the engine is torn down). + +The main task runners are: +* Platform Task Runner +* UI Task Runner +* Raster Task Runner +* IO Task Runner + +### Platform Task Runner + +This is the task runner for the thread the embedder considers as its main thread. For example, this is typically the [Android Main Thread](https://developer.android.com/guide/components/processes-and-threads.html) or the [Main Thread](https://developer.apple.com/documentation/foundation/nsthread/1412704-ismainthread?language=objc) referenced by Foundation on Apple platforms. + +Any significance assigned to the thread for this task runner is entirely assigned by the embedder. The Flutter engine assigns no special meaning to this thread. In fact, multiple Flutter engines can be launched with platform task runners based on different threads. This is how the Flutter Content Handler in Fuchsia works. A new Flutter engine is created in the process for each Flutter application and a new platform thread is created for each engine. + +Interacting with the Flutter engine in any way must happen on the platform thread. Interacting with the engine on any other thread will trip assertions in unoptimized builds and is not thread safe in release builds. There are numerous components in the Flutter engine that are not thread safe. Once the Flutter engine is setup and running, the embedder does not have to post tasks to any of the task runners used to configure the engine as long as all accesses to the embedder API are made on the platform thread. + +In addition to being the thread on which the embedder interacts with the engine after it is launched, this task runner also executes any pending platform messages. This is handy because accessing most platform APIs is only safe on the platform’s main thread. Plugins don’t have to rethread their calls to the main thread. If plugins manage their own worker threads, it is their responsibility to queue responses back onto the platform thread before they can be submitted back to the engine for processing by Dart code. The rule of always interacting with the engine on the platform thread holds here. + +Even though blocking the platform thread for inordinate amounts of time will not block the Flutter rendering pipeline, platforms do impose restrictions on expensive operations on this thread. So it is advised that any expensive work in response to platform messages be performed on separate worker threads (unrelated to the four threads discussed above) before having the responses queued back on the the platform thread for submission to the engine. Not doing so may result in platform-specific watchdogs terminating the application. Embeddings such as Android and iOS also uses the platform thread to pipe through user input events. A blocked platform thread can also cause gestures to be dropped. + +### UI Task Runner + +The UI task runner is where the engine executes all Dart code for the root isolate. The root isolate is a special isolate that has the necessary bindings for Flutter to function. This isolate runs the application's main Dart code. Bindings are set up on this isolate by the engine to schedule and submit frames. For each frame that Flutter has to render: + +* The root isolate has to tell the engine that a frame needs to be rendered. +* The engine will ask the platform that it should be notified on the next vsync. +* The platform waits for the next vsync. +* On vsync, the engine will wake up the Dart code and [perform the following](https://api.flutter.dev/flutter/widgets/WidgetsBinding/drawFrame.html): + * Update animation interpolators. + * Rebuild the widgets in the application in a build phase. + * Lay out the newly constructed and widgets and paint them into a tree of layers that are immediately submitted to the engine. Nothing is actually rasterized here; only a description of what needs to be painted is constructed as part of the paint phase. + * Construct or update a tree of nodes containing semantic information about widgets on screen. This is used to update platform specific accessibility components. + +Apart from building frames for the engine to eventually render, the root isolate also executes all responses for platform plugin messages, timers, microtasks and asynchronous I/O (from sockets, file handles, etc.). + +Since the UI thread constructs the layer tree that determines what the engine will eventually paint onto the screen, it is the source of truth for everything on the screen. Consequently, performing long synchronous operations on this thread will cause jank in Flutter applications (a few milliseconds is enough to miss the next frame!). Long operations can typically only be caused by Dart code since the engine will not schedule any native code tasks on this task runner. Because of this, this task runner (or thread) is typically referred to as the Dart thread. It is possible for the embedder to post tasks onto this task runner. This may cause jank in Flutter and embedders are advised not to do this and instead assign a dedicated thread for this task runner. + +If it is unavoidable for Dart code to perform expensive work, it is advised that this code be moved into a separate [Dart isolate](https://api.flutter.dev/flutter/dart-isolate/dart-isolate-library.html) (e.g. using the [`compute`](https://api.flutter.dev/flutter/foundation/compute-constant.html) method). Dart code executing on a non-root isolate executes on a thread from a Dart VM managed thread pool. This cannot cause jank in a Flutter application. Terminating the root isolate will also terminate all isolates spawned by that root isolate. Also, non-root isolates are incapable of scheduling frames and do not have bindings that the Flutter framework depends on. Due to this, you cannot interact with the Flutter framework in any meaningful way on the secondary isolate. Use secondary isolates for tasks that require heavy computation. + +### Raster Task Runner + +The raster task runner executes tasks that need to access the rasterizer (usually backed by GPU) on the device. The layer tree created by the Dart code on the UI task runner is client-rendering-API agnostic. That is, the same layer tree can be used to render a frame using OpenGL, Vulkan, software or really any other backend configured for Skia. Components on the GPU task runner take the layer tree and construct the appropriate draw commands. The raster task runner components are also responsible for setting up all the GPU resources for a particular frame. This includes talking to the platform to set up the framebuffer, managing surface lifecycle, and ensuring that textures and buffers for a particular frame are fully prepared. + +Depending on how long it takes for the layer tree to be processed and the device to finish displaying the frame, the various components of the raster task runner may delay scheduling of further frames on the UI thread. Typically, the UI and raster task runners are on different threads. In such cases, the raster thread can be in the process of submitting a frame to the GPU while the UI thread is already preparing the next frame. The pipelining mechanism makes sure that the UI thread does not schedule too much work for the rasterizer. + +Since the raster task runner components can introduce frame scheduling delays on the UI thread, performing too much work on the raster thread will cause jank in Flutter applications. Typically, there is no opportunity for the user to perform custom tasks on this task runner because neither platform code nor Dart code can access this task runner. However, it is still possible for the embedder to schedule tasks on this thread. For this reason, it is recommended that embedders provide a dedicated thread for the raster task runner per engine instance. + +### IO Task Runner + +All the task runners mentioned so far have pretty strong restrictions on the kinds of operations that can be performed on this. Blocking the platform task runner for an inordinate amount of time may trigger the platform's watchdog, and blocking either the UI or raster task runners will cause jank in Flutter applications. However, there are tasks necessary for the raster thread that require doing some very expensive work. This expensive work is performed on the IO task runner. + +The main function of the IO task runner is reading compressed images from an asset store and making sure these images are ready for rendering on the raster task runner. To make sure a texture is ready for rendering, it first has to be read as a blob of compressed data (typically PNG, JPEG, etc.) from an asset store, decompressed into a GPU friendly format and uploaded to the GPU. These operations are expensive and will cause jank if performed on the raster task runner. Since only the raster task runner can access the GPU, the IO task runner components set up a special context that is in the same sharegroup as the main raster task runner context. This happens very early during engine setup and is also the reason there is a single task runner for IO tasks. In reality, the reading of the compressed bytes and decompression can happen on a thread pool. The IO task runner is special because access to the context is only safe from a specific thread. The only way to get a resource like [`ui.Image`](https://docs.flutter.io/flutter/dart-ui/instantiateImageCodec.html) is via an async call; this allows the framework to talk to the IO runner so that it can asynchronously perform all the texture operations mentioned. The image can then be immediately used in a frame without the raster thread having to do expensive work. + +There is no way for user code to access this thread either via Dart or native plugins. Even the embedder is free to schedule tasks on this thread that are fairly expensive. This won’t cause jank in Flutter applications but may delay having the futures images and other resources be resolved in a timely manner. Even so, it is recommended that custom embedders set up a dedicated thread for this task runner. + +### Current Platform Specific Threading Configurations + +As mentioned, the engine can support multiple threading configurations, the configurations currently used by the supported platforms are: + +#### iOS + +A dedicated thread is created for the UI, raster and IO task runners per engine instance. All engine instances share the same platform thread and task runner. + +#### Android + +A dedicated thread is created for the UI, raster and IO task runners per engine instance. All engine instances share the same platform thread and task runner. + +#### Fuchsia + +A dedicated thread is created for the UI, raster, IO and Platform task runners per engine instance. + +#### macOS + +A dedicated thread is created for the UI, raster and IO task runners per engine instance. All engine instances share the same platform thread and task runner. + +#### Windows + +A dedicated thread is created for the UI, raster and IO task runners per engine instance. All engine instances share the same platform thread and task runner. + +#### Linux + +A dedicated thread is created for the UI and IO task runners per engine instance. The platform thread and the raster thread are the same thread. All engine instances share the same platform thread and task runner. + + +#### Flutter Tester (used by `flutter test`) + +The same main thread is used for the UI, raster, IO and Platform task runners for the single instance engine supported in the process. + + +## Text rendering + +Our text rendering stack is as follows: + +- A minikin derivative we call libtxt (font selection, bidi, line breaking). +- HarfBuzz (glyph selection, shaping). +- Skia (rendering/GPU back-end), which uses FreeType for font rendering on Android and Fuchsia, and CoreGraphics for font rendering on iOS. diff --git a/novelforge-project/agent-workspace/flutter/docs/about/The-Framework-architecture.md b/novelforge-project/agent-workspace/flutter/docs/about/The-Framework-architecture.md new file mode 100644 index 0000000000000000000000000000000000000000..8f74a6e6c02316b6e732128c0fd75e611c61c632 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/about/The-Framework-architecture.md @@ -0,0 +1,6 @@ +The following documents and videos describe the Flutter framework's architecture: + +* [Technical Overview (on flutter.dev)](https://flutter.dev/docs/resources/technical-overview) +* [Inside Flutter (on flutter.dev)](https://flutter.dev/docs/resources/inside-flutter) +* [The Mahogany Staircase - Flutter's Layered Design (on YouTube)](https://www.youtube.com/watch?v=dkyY9WCGMi0) +* [Flutter's Rendering Pipeline (on YouTube)](https://www.youtube.com/watch?v=UUfXWzp0-DU) diff --git a/novelforge-project/agent-workspace/flutter/docs/about/Values.md b/novelforge-project/agent-workspace/flutter/docs/about/Values.md new file mode 100644 index 0000000000000000000000000000000000000000..18e2ec5f57e28813cfb88eec7d367d2b7ed3a84d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/about/Values.md @@ -0,0 +1,95 @@ +# Flutter's core values + +## 🏗️ Build the best way to develop user interfaces. + +This tells us what we are creating. It helps narrow our focus. + +The best way to develop user interfaces is a _productive_ way of developing. + +The best way to develop user interfaces creates _beautiful_ applications. + +The best way to develop user interfaces creates _fast_ applications. + +The best way to develop user interfaces enables developers to create applications _fast_. + +The best way to develop user interfaces is _extensible_, so that we are not a barrier to developers. + + +## 🔎 Focus on the user and all else will follow. + +Our user is the developer. Our developer's user is the end user of the application written with Flutter. + +Our first priority is to our developer's user, the end user. Our second priority is to our user, the developer. + +Caring about the end user means having high quality support for accessibility, top performance, stability, high fidelity and compatibility with the user's platform, supporting low-end devices, and so forth. + +Caring about the developer means creating a joyful and productive development experience with quick iteration cycles, creating usable, simple, reliable, predictable APIs, giving the developer full access to the underlying platform, and so forth. + +We respect our users, whoever they are. + +Another way to phrase this is "Build a thing people want". + +## 📖 Openness + +Flutter is an open source project, in the full senses of the word: we are open to ideas, we are open to contributions, our code and our roadmap are open, our priorities are open. Transparency leads to a higher quality product. While the most active part of our team is currently primarily formed of employees from Google, we are growing and welcome anyone to join the team; at this point, the majority of people with commit access are not part of Google's Flutter team. Flutter's stewardship is managed by a team at Google. + + +## 💫 Maintaining quality + +A mediocre product cannot be the best way to develop user interfaces, so we must build processes around maintaining high levels of quality. + +This manifests in various ways. One is that we are feature-driven, not date-driven: we do not plan work based on deadlines. We may sometimes host events where we announce new features, but these events will announce features that have become available, rather than the features becoming available in order to be announced. This means sometimes a feature we intended to announce will slip and not be announced, but we prefer this to announcing a rushed feature. + +We may sometimes gate features behind flags until we are confident of their quality. + + +## 🤣‬ Have fun doing it + +Last, but definitely not least, we want to make sure that our work environment is pleasant for everyone involved. Your health and the health of your family and friends is more important than Flutter. Our community [is welcoming](../../CODE_OF_CONDUCT.md). We don't know everything; all of us can make mistakes. + +We want team members to feel empowered to make changes to the code and to our processes. + +We encourage a bias towards action. It's better to try something and be wrong, than to plan forever and never execute. + +# Support + +When we think about whether we claim to "support" something, e.g. whether Flutter supports Windows 7, we use the following frame of reference. We document [which platforms we consider to fall into each category](https://docs.flutter.dev/reference/supported-platforms) on flutter.dev. + +### Areas of support + +We distinguish several categories along which one can describe a level of support: + +* Supporting for deployment (we support a platform for deployment if you can run release builds of applications on that platform). +* Supporting for _development_ (we support a platform for development if you can run debug builds of applications on that platform, connect them to a debugger, hot reload, view logs, and so forth; we support a plugin for development if it can be stepped through in a debugger). +* Supporting for _hosting_ development (we support a platform for hosting development if it is one on which you can compile a Flutter application; we support an IDE for hosting development if it has a Flutter plugin). +* Supporting for Flutter development (we support a platform for Flutter development if one can contribute to Flutter itself from that platform). + +The list of supported platforms on flutter.dev is describing the platforms supported for deployment. + +### Levels of support + +For each area, we consider the level to which we provide support: + +0. We will literally help you with your code if things don't work. This is very rare. (See also "[top-tier customers](../contributing/issue_hygiene/README.md#customers)".) + +1. We will make a best effort to ensure that well written code works (e.g. we have testing on that platform). This is a common level for target platforms that have reached a label of "stable" (e.g. Android, iOS) on devices that are widely available (e.g. 64bit ARM). This corresponds to the "Supported Google-tested platforms" category on the list of supported platforms. + +2. We will not go out of our way to prevent code from working, but if it works it's because of luck and our best intentions rather than a coordinated effort (e.g. we do no testing on that platform). This is a common level of support for less commonly-used devices. For example, we do minimal testing of 32bit iOS devices. This corresponds to the "Best effort platforms tested by the community" category on the list of supported platforms. + +3. We will pay no attention to whether code works, but we will accept patches that are easy to reason about. This is a common level of support for the many esoteric embedded platforms that we have no way to even manually test. For example, if you have your own SoC and are running Flutter, we want you to succeed but we don't have any way to ensure it keeps working. At this level, we would not accept what we consider "risky" PRs, or PRs that involve significant refactorings. If you are willing to provide reliable CI support for your platform, we are more than happy to work with you to move that platform to level 2 (at which point more invasive PRs become viable). + +4. We won't accept patches. This is the appropriate response for features and platforms that are wildly outside our roadmap. For example, maintaining a Rust port of the framework is not something the Flutter project would accept patches for. This corresponds to the "Unsupported platforms" category on the list of supported platforms. + + +*** + +💙 + +*** + +_See also:_ + +* [Code of Conduct](../../CODE_OF_CONDUCT.md) +* [Contributor Guide](../../CONTRIBUTING.md) +* [Flutter's Culture of Inclusivity](https://flutter.dev/culture) +* [Flutter culture and how to preserve it](https://medium.com/flutter/flutter-culture-and-how-to-preserve-it-436b4ed1031d) \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/about/Why-we-have-a-separate-engine-repo.md b/novelforge-project/agent-workspace/flutter/docs/about/Why-we-have-a-separate-engine-repo.md new file mode 100644 index 0000000000000000000000000000000000000000..c773ca24477361a91e2810867df9c9d381dd788d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/about/Why-we-have-a-separate-engine-repo.md @@ -0,0 +1,33 @@ +The Flutter project is split into a number of repositories, and we sometimes get asked why we don't use a monorepo. + +## Separate products + +There are several reasons. The core reason is that each repo is a separate product. + +The engine repository is where we build the library that executes Dart code. It defines an API used to embed Flutter in applications, and an API for Dart code to interact with the library. This is a standalone product that can be used on its own, in principle (though doing so would require creating a whole framework in Dart). + +The flutter repository is where we build our framework that wraps the engine's APIs and makes them easy to use. This library is intentionally optional when using Flutter; it could be entirely replaced without affecting the engine. + +There's also the [packages](https://github.com/flutter/packages) repo is where we put the packages we ship to pub, each of which are also separate products. + +## Clean separation + +These different products each have APIs to talk to each other. It's important to keep the APIs clean. Any time you put code inside a repository such that the friction for communicating between them is lowered, you run the very real risk that accidental dependencies will be introduced between the two APIs. Keeping the repositories separate helps prevent that kind of intermingling. + +## Licensing + +We intentionally keep the flutter/flutter repository separate from the others because it is single-licensed, unlike our other repositories. + +## Repository size + +Since flutter/flutter is the main repository downloaded by developers, we want to keep it relatively small. This means, for example, that it cannot contain binaries or third-party packages. + +A full checkout of the flutter/engine repository takes >10gb of local space. Additional artifacts for builds of various platforms and release modes can easily take 10s of gigabytes more space. + +## Approachability + +Since flutter/flutter is the main repository for new contributors, we want to keep it approachable, which means minimizing the amount of complexity present in the repo itself. + +## Rolls + +The flutter/flutter repository depends on binaries built from the flutter/engine repo. If the two repositories were merged, we'd either have a confusing situation where part of the repository would depend on binaries built from an older commit of the same repository, or we'd require that developers on the repo build the binaries locally. Both are more confusing than the current setup. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/Chat.md b/novelforge-project/agent-workspace/flutter/docs/contributing/Chat.md new file mode 100644 index 0000000000000000000000000000000000000000..82790ce828ccb7e4c6163d806d524f83a9be6364 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/Chat.md @@ -0,0 +1,74 @@ +# Chatting on Discord + + + +The Flutter team uses a [Discord server](https://discord.com/channels/608014603317936148). [This is invite link for Flutter's Discord server](https://discord.gg/ht477J5PyH). Please do not share either link directly, instead share links to this page. + +The server is open to the public, though some channels are intended only for people who are actively contributing. **See the #welcome channel for instructions on posting to the server (you won't be able to see the channels until you acknowledge the rules there).** + +We recommend you use the same display name on Discord and GitHub. + +(Our Flutter Discord server is unrelated to the [r/FlutterDev Discord server](https://www.reddit.com/r/FlutterDev/), which is where the r/FlutterDev community shares their apps, discusses Flutter, and so on. When in doubt, remember: our server has Dash as an icon!) + +## Existing channels + +We have different channels for different purposes (this list is not exhaustive): + +| Channel | Description | Participants | +| - | - | - | +| #welcome | Welcome message. | Only admins can post.
    Anyone can read. +| #announcements | Flutter announcements (e.g. breaking changes). | Only team members can post (but not frequently).
    Anyone can read. +| #server-support | Forum for asking for your role to be changed, for code of conduct violations to be raised, and for other administrative issues. | Anyone. +| #general | Chat about anything related to Flutter. | Anyone. +| #help | People asking for our help. | Anyone. +| #package-authors | For people who develop Flutter packages. | People writing packages for [pub.dev](https://pub.dev/). +| #dart | Questions about the Dart language. | Anyone. +| #tree-status | Announcements about whether the trees are open or closed. | Anyone, but discussion should happen elsewhere. +| #hackers | Chat about anything related to Flutter. | Flutter contributors.
    Anyone can watch. +| #hackers-* | Chat specifically about foo, where foo is something to do with Flutter development, for example "engine", "framework", "desktop", "devtools", etc. | Flutter contributors.
    Anyone can watch. +| #hackers-dart | Questions about the Dart language. | Flutter contributors.
    Anyone can watch. +| #hackers-new | New people to the team and people who want to help them. | Flutter contributors.
    Anyone can watch. +| #hackers-triage | For use while triaging bugs. | Flutter contributors.
    Anyone can watch. +| #hidden-chat | Chat about anything related to Flutter. | Flutter contributors only.
    Not public. +| general (voice) | Talk (audio) about anything related to Flutter. | Anyone. +| team (voice) | Talk (audio) that is only open to team members. | Flutter contributors. + +The #hidden-chat and #team channels are not publicly-readable, you have to be a member of the "team member" role to see them. + +## New channels + +If you need a new channel, first just use #general or #hackers, or a thread in one of those channels; if the conversation lasts more than a day, ask for a channel in #server-support. + +If you find your team's channel is hard to follow due to having too many topics discussed at once, ask for a new channel, or use threads. + +If you would like a channel for subcommunities, e.g. #women or #china, that should be fine. (Subcommunities that are already overrepresented in the main channels, e.g. #english-speakers, are less likely to be good candidates for dedicated channels.) + +For practical reasons, we do not use Discord for chat groups limited to specific customers. For example, if your company wants a private discussion channel with the Flutter team, we would not use Discord. + +Each channel describes its topic in the channel description. Please read the channel description before posting in a channel, to make sure you're using the appropriate one. + +## Policies + +Our [code of conduct](https://github.com/flutter/flutter/blob/main/CODE_OF_CONDUCT.md) applies to the Discord server, as it does to any communications involving Flutter. + +The #hackers-* channels are visible to anyone, but please only post in those channels if you are actively contributing. If you want help with your app, ask in #help instead. If you want to learn how to contribute, have a look at our [contributing guide](https://github.com/flutter/flutter/blob/main/CONTRIBUTING.md). + +See the [contributor access](Contributor-access.md) wiki page for details on becoming a member of the "team" role. + +Please don't direct-message people unless they are comfortable with it (ask publicly first). +You can disable direct messages on this server by changing your Privacy settings for the server, or on a global basis by changing your Privacy & Safety user settings. + +## Discord features + +### Threading + +Discord has both actual threads (temporary new channels) and a threadingish feature called [Replies](https://support.discord.com/hc/en-us/articles/360057382374-Replies-FAQ) that lets you tie messages to earlier messages and notify the original commenter. + +### Status + +You can [change your status](https://support.discord.com/hc/en-us/articles/360035407531-Custom-Status) (online, away, custom messages) by clicking on your avatar in Discord. + + +# Design documents + +This page used to discuss how to create design docs, but that content is now on its own page: [Design documents](Design-Documents.md). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/Contributor-access.md b/novelforge-project/agent-workspace/flutter/docs/contributing/Contributor-access.md new file mode 100644 index 0000000000000000000000000000000000000000..3723a48064f7fc808689d1230159fc4ff9a58c0f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/Contributor-access.md @@ -0,0 +1,139 @@ +For people who make the occasional contribution to Flutter (filing an issue, submitting the occasional PR, chatting on Discord), the default set of permissions is fine. However, if you are a frequent contributor, whether helping us in triage, or often fixing bugs, or regularly improving our documentation, or regularly helping others in our #help channel, or participating in high-level design discussions and prioritization, you may find your life is more pleasant with commit access (also known as "contributor access", "being a member of the flutter-hackers group", "being a member of the Flutter team"). + +We grant commit access (which includes full rights to the issue database, such as being able to edit labels, and grants access to our internal chat channels) to people who have gained our trust and demonstrated a commitment to Flutter. + +Specifically, if you meet one of the following criteria and you have a sponsor (someone who already has contributor access and agrees that you should be granted access), then please ask your sponsor to propose, on the #server-support [Chat](Chat.md) channel, that you be made a member of the team, and then reply to that message explaining which criteria below you are claiming to meet. The possible criteria are: + +* You have a long history of participating productively, e.g. in our [Chat](Chat.md) channels, helping with [Triage](../triage/README.md), helping other contributors track down problems, finding meaningful issues in submitted PRs, helping people in our #help channel, etc, all while demonstrating exemplary behavior that closely aligns with our [code of conduct](https://github.com/flutter/flutter/blob/main/CODE_OF_CONDUCT.md). +* You have recently submitted several PRs that have landed successfully (received an LGTM, PR was merged, no regressions reported, PR was not reverted), without needing extensive tutoring in the process. +* You are employed by a company with a history of contributing to Flutter, for the purpose of yourself regularly contributing to Flutter. +* You represent a development team that creates applications, plugins, or packages using Flutter and have a close relationship with our developer relations team, including having a customer label, and have a great need to regularly update labels on issues (see [Issue hygiene, Customers](./issue_hygiene/README.md#customers)). (This is rare.) + +Being granted access means that you will be added to the "flutter-hackers" group on GitHub and the "team" role on Discord. This privilege is granted with some expectation of responsibility: contributors are people who care about Flutter and want to help Flutter along our [roadmap](../roadmap/Roadmap.md). A contributor is not just someone who can make changes or comment on issues, but someone who has demonstrated their ability to collaborate with the team, get the most knowledgeable people to review code, contribute high-quality code, follow through to fix bugs (in code or tests), and provide meaningful insights on issues. + +We grant access optimistically based on a reasonably small volume of evidence of good faith. Correspondingly, we will remove access quickly if we find our trust has been violated. Contributors with commit access must still follow all our processes and policies, and must follow our [code of conduct](https://github.com/flutter/flutter/blob/main/CODE_OF_CONDUCT.md) rigorously. (Please read it, it's stricter than most.) + + +### Responsibilities + +#### Code of conduct + +If you have commit access or "team" access on the Discord server, you are responsible for enforcing our [code of conduct](https://github.com/flutter/flutter/blob/main/CODE_OF_CONDUCT.md). + +Our code of conduct is much, much stricter than most. We do not wait until someone has been actively rude or insulting. Being disrespectful in any way is grounds for action. For example, passive-aggressive whining and general unconstructive negativity are all violations of the code of conduct. If someone is in a bad mood, we would rather they avoided contributing to Flutter on that day. + +When you see something that might be described as unwelcoming or is in some other way a violation of our code of conduct, promptly contact the offender and ask them to read the code of conduct and consider how they might more effectively espouse its philosophy. Most people react very positively to this. + +If they react negatively, or if they continue to make the environment unpleasant, they should be removed from the environment. On Discord, this would be kicking them from the channel. Repeat offenders should be banned. On GitHub, they can be blocked from our organisation (you may need to ask @Hixie or another admin of our GitHub org to do this). Please let the #server-support [Chat](Chat.md) channel know when you do anything like this, so that we can keep an eye on how common it is. + +#### Maintaining documentation + +Part of being a contributor is making sure our documentation is up to date, including our internal (team-facing) documentation such as this wiki. If you spot something wrong, please fix it! As a contributor, you have access to the wiki. + +For the wiki specifically, since there's no code review, it's good to mention on Discord that you've made a change when you make one. + +### Privileges + +Being in the GitHub "flutter-hackers" group gives you the following: + +* The ability to merge your own PRs once they are reviewed (see [Tree Hygiene](Tree-hygiene.md)). + +* The ability to add labels, milestones, etc, on issues on GitHub (see [Issue Hygiene](./issue_hygiene/README.md)). + +* PRs will run their tests slightly faster. + +Being in the Discord "team" group gives you the following: + +* The ability to talk without rate-limiting on the #hackers-* channels. + +* The ability to kick people. + +* The ability to manage the server emoji. + + +## Process + +The actual process (as followed by Flutter repo admins) is as follows: + +1. Verify that they qualify under all the terms described above. Make sure they have a sponsor who isn't you. +1. Verify the identity of the person making the request. Ask them to confirm, on Discord, that they have read the style guide, issue or tree hygiene wiki page, code of conduct, and other documents relevant to them. +1. Add them to our private spreadsheet (go/flutter-organization-members). +1. Click the "Add a member" button on [the flutter-hackers team page](https://github.com/orgs/flutter/teams/flutter-hackers/members) on GitHub. +1. Type their name in the text field, select them, then click the "Invite" button. +1. Add them to the "team" group on Discord. Be sure to verify that you are promoting the right person; multiple people can have the same nickname on Discord! + +*For new Googlers joining the team*: You need to ask someone in the team to add you to get added. It's not an automatic process after you join the flutter Google group. + + +## Inactivity + +We occasionally check for account with commit access that have not been used for a while. It takes very little to count as "active" (e.g. commenting on an issue, even adding an emoji reaction to an issue). If your account has been inactive for over a year we will try to reach out (e.g. by e-mail or on Discord) before removing access. + +If your account access was removed but you wish to return to contributing to Flutter, you are most welcome to do so; just reach out on the Discord (see [Chat](Chat.md)) and ask someone to renominate you according to the process described above. + + +# Access rights to Flutter dashboard + +The [Flutter dashboard](https://flutter-dashboard.appspot.com/) shows what recently landed and what tests passed or failed with those commits. To see rerun tasks, you need to be added to an allowlist. Anyone with commit access is eligible to be added to that allowlist, but only certain team members have the permissions required to update the backend database where the permissions are stored. To get access, ask on #hackers-infra to be added to the allowlist. + +## Adding a contributor to Flutter Dashboard + +*This is only for team members with access to the Flutter Dashboard Datastore.* + +1. Open [flutter-dashboard datastore](https://console.cloud.google.com/datastore/entities;kind=AllowedAccount;ns=__$DEFAULT$__/query/kind?project=flutter-dashboard) +2. Click `Create Entity` +3. Click `Email: Empty` -> Edit property. Insert contributor Google account +4. Click `Create` + +# Access to LUCI recipes and configuration repositories + +If you need access to the LUCI recipes, you need to be added to the relevant ACLs. Ask in #hackers-infra to be added to the LUCI ACLs. + +## Process + +A Googler has to be the one to grant permission. Documentation on how to use the relevant tools is available at: https://goto.google.com/gob-ctl#add-or-remove-users-in-host-acl + +# Access to Flutter Gold + +If you need access to triage images in [Flutter Gold](https://flutter-gold.skia.org/), you need to be added as an authorized user. +Users in the `@google.com` domain are already authorized to use Flutter Gold, but `@gmail.com` addresses can also be added to the allow list. + +## Process +The list of authorized users is maintained in the [skia build-bot repository](https://skia.googlesource.com/buildbot), in [this file](https://skia.googlesource.com/buildbot/+/refs/heads/main/golden/k8s-instances/flutter/flutter-skiacorrectness.json5). Googlers can submit a change to add to the authorized users. + +This repository is also [mirrored on GitHub.](https://github.com/google/skia-buildbot) + +# fcontrib.org accounts + +If you are a team member who wants to share design docs (see [Chat](Chat.md)) but you don't want to use your own personal account, you can ask a Flutter admin for an fcontrib.org account. Ping @Hixie or another admin in the #server-support channel on Discord. + +## Process + +You’ll need the user’s email account somewhere else, first and last name, and desired fcontrib.org account login before you begin. + +To add a fcontrib.org participant: +1. Open an incognito window and log in using _your_ admin fcontrib credentials at https://admin.google.com/. (q.v. valentine) +2. Under “Users” in the upper left of the main content area, click “Add a User” and follow the prompts. +3. For a password, choose “Generate Password” and email the password to the new account holder using their non-fcontrib account -- they’ll be able to log in with that and then choose a new password. + +# Review teams + +Some parts of the codebase have teams specified so that PRs get round-robin assigned for review. + +To join one of these teams, request members be added/deleted, or change any settings, ping @Hixie on Discord. Members must be a member of the Flutter Hackers group (as documented at the top of this page). + +We currently have the following review teams: + +* [`android-reviewers`](https://github.com/orgs/flutter/teams/android-reviewers): for folks working on the Android port of Flutter; use `#hackers-android` for discussions. +* [`devtools-reviewers`](https://github.com/orgs/flutter/teams/devtools-reviewers): for the [devtools](https://github.com/flutter/devtools) repo; use `#hackers-devexp` for discussions. +* [`website-reviewers`](https://github.com/orgs/flutter/teams/website-reviewers): for folks working on www.flutter.dev and docs.flutter.dev; use `#hackers-devrel` for discussions. + +To create a new team, contact @Hixie. You will also need to create a `CODEOWNERS` file to actually trigger the review assignment. + +# Pusher permissions + +Some branches are protected to avoid accidents. Only people in the specific branches can push to them. Anyone can ask to be added or removed from these groups, they exist only to reduce accidents, not for security. + +To join one of these teams, request members be added/deleted, or change any settings, ping @Hixie on Discord. Members must be a member of the Flutter Hackers group (as documented at the top of this page). + +The following groups have been defined for these purposes: pushers-beta, pushers-fuchsia \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/Data-driven-Fixes.md b/novelforge-project/agent-workspace/flutter/docs/contributing/Data-driven-Fixes.md new file mode 100644 index 0000000000000000000000000000000000000000..062b58da6915a6653a9d36c694337eb724c2e0b3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/Data-driven-Fixes.md @@ -0,0 +1,535 @@ +# Data-driven Fixes + +_This documentation is preliminary. Suggestions for improvements are welcome. Do not edit this page directly, it is copied from an internal source._ + +Data-driven fixes is a feature that allows the Flutter package authors to provide data about changes that have been made to the package's public API and uses that data to help users of the package update their code when updating to a newer version of the package. It is not supported for other package authors. + +The data is used by two tools: +- The analysis server uses it to provide quick fixes (also known as code actions) in the IDE. +- The `dart fix` command uses it to apply bulk edits to the code in a file or directory. + +The purpose of this document is to describe how to write and test the data used by these tools. It contains four sections: +- [Overview](#overview) provides an overview of how this feature is intended to be used and what kind of data can be expressed. +- [Examples](#examples) provides examples of how to express some common kinds of changes. +- [Reference](#reference) provides a complete definition of the data and how that data is used to update client code. +- [Testing](#testing) provides a guide for how this data can be tested. + + +## Overview + +The data used by this feature describes the changes made to the public API of a package. It's contained in a [data file](#data-file) in the package that defines the API. + +The data is organized around the individual elements of the API, where an [element](#element) is anything that can be referenced outside the library in which it's declared. This includes top-level declarations, such as classes and extensions, and their members, such as methods and fields. + +The changes to an element that can be described are designed to be both fine-grained and high-level. + +By "fine-grained" we mean that the overall change to an API is described in terms of small, composable changes. For example, instead of describing all of the ways in which a method's signature has changed, there are individual changes for adding and removing individual parameters, renaming parameters, etc. This reduces the complexity of describing the overall change. + +By "high-level" we mean that the changes are described in terms of how the API changed, not in terms of what needs to be done to client code in response to those changes. For example, if a parameter is added to a method the data would describe the parameter and the value to be used in invocations, but doesn’t describe how to find invocations or how to find overrides. It's the responsibility of the tools to figure out how to modify the client code in response to those changes. This reduces the amount of work required of package authors initially and allows the tools to adjust as the Dart language evolves, removing the need for package authors to refine the data. + +The description of an [element](#element) and the [change](#change)s to that element are encapsulated in a [transform](#transform) and the [data file](#data-file) is essentially a list of [transform](#transform)s. + +The changes are applied when an analysis of the client code produces diagnostics. For example, if a method is renamed then invocations of the old method will produce a diagnostic indicating that the method isn’t defined. This also works if the old method is still declared and marked as being deprecated because a diagnostic is also produced in that case. Because of that, we encourage you to add data for an API when the API is first deprecated. If the API doesn’t go through a deprecation period, then the changes should be added to the data when the changes are made. + + +## Examples + +This section provides examples of how to express some common kinds of changes. + +Each example includes the API being changed, both the old API marked as deprecated and the new API that replaced it. As noted in the [Overview](#overview), it isn’t necessary for the old API to still be declared in order for the tools to be able to apply the changes, but it’s included in the examples for clarity. + +As a result of always including both the old and new APIs in the examples, the elements are always renamed. It isn’t necessary to rename an element in order for the tools to be able to apply the changes. + +### Rename a method + +One of the most common API changes is to rename an element. In this section we'll show how to specify that a method has been renamed. Let's assume that your package defines a class `C` in the file `lib/c.dart` with a renamed method similar to the following: + +```dart +class C { + @deprecated + int oldName(String s) => newName(s); + + int newName(String s) { ... } +} +``` + +In the data file we need to specify which method was renamed, what it's old name was, and what it's new name is. We do that by writing a data file like the following: + +```yaml +version: 1 +transforms: + - title: 'Rename to newName' + date: 2020-11-20 + element: + uris: ['c.dart'] + method: 'oldName' + inClass: 'C' + changes: + - kind: 'rename' + newName: 'newName' +``` + +This tells the tools that any references to the method `C.oldName` should be updated to refer to the method `C.newName`. That includes both invocations of the method as well as references where the method is being torn off. It also tells the tool that any methods that used to override the old method need to be renamed so that they now override the new method. + + +## Reference + +This section provides a complete definition of what data can be included in a [data file](#data-file) and how that data is used to update client code. + +In the following subsections, the text `...` is a placeholder for a value that is described in a different subsection. + +### data file + +A _data file_ contains the data used to update clients of a package when the public API of the package has been changed. The data is represented by a single [transform set](#transform-set). + +The data is stored in a file named `fix_data.yaml` in the `lib` directory of the package. There is a single data file per package. + +You might find it useful to include a comment at the beginning of the file that has a link to this documentation for easy reference. + +### transform set + +A _transform set_ describes a set of changes made to the API of a single package. It's represented as a map with two keys: `version` and `transforms`. + +The `version` key is required. The value of the `version` key is an integer used to identify the version of the file's content. The version described by this document is version `1`. The version key is typically the first line of the file. + +The version key lets the tooling continue to work with older versions of data files when the format of the file needs to be changed, and allows older versions of the SDK determine when a package is using a newer and not understood format. + +The `transforms` key is required. The value of the `transforms` key is a list of [transform](#transform) objects. While the list is allowed to be empty, there’s no value in having a data file unless there's at least one transform. + +For example, the basic content of a data file generally looks like this: + +```yaml +version: 1 +transforms: + - ... + - ... +``` + +The transforms can be in any order, but to make it easier to maintain the file we recommend putting newer changes at the beginning of the file, just like you would in a change log. You might find it useful to use comments to group sets of transforms, possibly based on the published version of the package in which the changes were made. + +### transform + +A _transform_ describes a set of changes made to a single element in the API. It's represented as a map with seven keys: `title`, `date`, `bulkApply`, `element`, `oneOf`, `changes`, and `variables`. + +The `title` key is required. The value of the `title` key is a string that is displayed in the IDE to describe the changes that will be made to the user's code. It's usually shown as a label in a menu, so it should be kept short. And because most APIs can be referenced in multiple ways, the description should be general enough to cover all of those cases. For example, if a method is renamed then the name will need to be updated both at invocation sites and anywhere the old method was being overridden. Using a title like “Invoke newMethod” wouldn't be appropriate for updating an override, so a better title would be “Rename to newMethod”, which would work for both cases. + +The `date` key is required. The value of the `date` key is a string encoding of a date. The format of the string is required to be the same as the format accepted by the method [`DateTime.parse`](https://api.dart.dev/dart-core/DateTime/parse.html). + +The `bulkApply` key is optional. The value of the `bulkApply` key is a Boolean value indicating whether the transform should be applied when bulk fixes are being made. The default value is `true`. You need to disallow a transform from being used in a bulk fix tool in cases where there are multiple transforms for a single API. If there's a clear default, then you can allow that one transform to be applied. + +The `element` key is required. The value of the `element` key is an [element](#element) object. It specifies the element in the API that was changed, such as a class or a method. + +Either the `oneOf` key or the `changes` key is required, but it isn't valid to have both. These keys are two different ways to specify the list of changes that will be applied when a reference to the element is found. + +The value of the `oneOf` key is a list of [conditional change](#conditional-change) objects. For each reference to the element that's found, the first conditional change whose condition is true will determine the list of changes to be applied to that reference. If more than one conditional change has a condition that's true, only the first one will be applied. If none of the conditions is true, then no changes will be applied. + +The value of the `changes` key is a list of [change](#change) objects. The list of changes is unconditionally selected as the changes that will be applied. + +The `variables` key is optional.The value of the `variables` key is a [variable map](#variable-map). + +For example, you can specify a transform like this: + +```yaml +title: 'Descriptive title' +date: 2020-09-14 +element: ... +changes: + - ... + - ... +``` + +You might find it useful to include a comment to provide more information about each transform, such as design documents, issues, or even PRs that motivated or implemented the change. + +### element + +An _element_ describes a single element in the API that was changed, such as a class or a method. It's represented as a map with either two or three keys depending on the kind of element being described. All elements have a `uris` key and a second key that specifies the type and name of the element, such as `class` or `method`. Elements that are members of a top-level element have a third key specifying the containing element. + +The `uris` key is required. The value of the `uris` key is a list of [uri](#uri)s, each of which is the URI of a public library that includes the element (or the container of the element in the case of members such as methods). + +The second key, which is required, indicates the kind and name of the element. The kind is given by the key itself and the name is given as the value of the second key, which is a string. The possible keys, and hence kinds, are: +- class +- constant (from an enum) +- constructor +- enum +- extension +- field +- function (top-level) +- getter +- method +- mixin +- setter +- typedef +- variable (top-level) + +If the element is a member of a top-level element, then the third key is required and it indicates the kind and name of the top-level element containing the member. The possible container keys are: +- inClass +- inEnum +- inExtension +- inMixin + +For example, you can specify a class named `C`: + +```yaml +uris: ['lib.dart'] +class: 'C' +``` + +or specify a method named `m` in a class named `C`: + +```yaml +uris: ['lib.dart'] +method: 'm' +inClass: 'C' +``` + +To specify the unnamed constructor in a class, use an empty string for the name of the constructor: + +```yaml +uris: ['lib.dart'] +constructor: '' +inClass: 'C' +``` + +Despite the fact that the names of named parameters are used by clients to associate an argument with the parameter, they aren't considered separate API elements and therefore can't be described by an element object. If you have modified the parameters of a method or function, then the element that was changed is the method or function associated with the parameter. + +### conditional change + +A _conditional change_ is a list of [change](#change)s that is applied only when a condition is true. It's represented as a map with two keys: `if` and `changes`. + +The `if` key is required. The value of the `if` key is a [condition](#condition). Any variables declared for the whole transform can be referenced in the condition. + +The `changes` key is required. The value of the `changes` key is a list of [change](#change) objects. + +### condition + +A _condition_ is a Boolean-valued expression. It's represented by a string that uses a subset of Dart’s expression syntax to express the condition. The currently supported syntax is: +``` + ::= + + ::= ('&&' )* + + ::= ( )? + + ::= '==' | '!=' + + ::= | +``` + +where `` is the name of a variable from a [variable map](#variable-map) and `` is a single-line string literal with single quote delimiters. + +### change + +A _change_ describes a single change that was made to the element. It's represented as a map. The number and names of the keys depends on the kind of change being described, but all changes have a `kind` key. + +The `kind` key is required. The value of the `kind` key is a string indicating the kind of change. The valid kinds are: +- [addParameter](#addParameter) +- [addTypeParameter](#addTypeParameter) +- [removeParameter](#removeParameter) +- [rename](#rename) +- [renameParameter](#renameParameter) +- [changeParameterType](#changeParameterType) +- [replacedBy](#replacedBy) + +Individual kinds of changes are described in the section below, titled by the kind. + +#### addParameter + +An _add parameter_ change indicates that a parameter was added to a function or method. It has five keys: `kind`, `index`, `name`, `style` and `argumentValue`. + +The `index` key is required. The value of the `index` key is the zero-based index of the parameter after all the changes related to parameters have been applied. It's used to know: +- where to add the parameter in method overrides. If parameter `p` is to be add to a method `m` in a class `A`, and the user has a subclass of `A` that overrides the method `m`, the tool will add the parameter at `index` to the method `m` in the subclass. +- if the parameter is a positional parameter, which argument to remove at each invocation site. + +The `name` key is required. The value of the `name` key is the name of the parameter. It's used as the name of new parameters added in overrides and, if the parameter is a named parameter, as the name of the argument at invocation sites. + +The `style` key is required. The value of the `style` key is one of the following strings: `'optional_positional'`, `'required_positional'`, `'optional_named'`, `'required_named'`. + +The `defaultValue` key is required if the added parameter is an optional parameter whose type is non-nullable. The value of the `defaultValue` key is a [code template](#code-template) object whose value will be used when adding the parameter to any methods that override the element. + +The `argumentValue` key is required if the added parameter is a required parameter or is an optional positional parameter that was added before at least one pre-existing optional positional parameter. The value of the `argumentValue` key is a [code template](#code-template) object whose value will be used as the value of the corresponding argument at invocation sites. + +```yaml +kind: 'addParameter' +index: 0 +name: 'a' +style: optional_positional +argumentValue: ... +``` + +#### addTypeParameter + +An _addTypeParameter_ change indicates that an element was given a new type parameter. It has five keys: `kind`, `index`, `name`, `extends` and `argumentValue`. + +The `index` key is required. The value of the `index` key is an integer indicating the index of the new type parameter after all the changes related to type parameters have been applied. It's used to know where to add new type parameters in overrides and where to add new type arguments in references to the element. + +The `name` key is required. The value of the `name` key is a string containing the name of the type parameter. It's used as the name of new type parameters added in overrides. + +The `extends` key is required if the type parameter has an extends clause. The value of the `extends` key is a [code template](#code-template) object whose value will be used in the `extends` clause of new type parameters added in overrides. + +The `argumentValue` key is required. The value of the `argumentValue` key is a [code template](#code-template) object whose value will be used as the type argument when updating references to the element. + +```yaml +kind: 'addTypeParameter' +index: 0 +name: 'T' +extends: ... +argumentValue: ... +``` + +#### removeParameter + +A _remove parameter_ change indicates that one of the parameters of a function or method was removed. It has three keys: `kind`, `index`, and `name`. + +The `index` key is required unless the `name` key is provided, and isn't allowed if a `name` key is provided. The `index` key specifies that a positional parameter was removed and its value is the zero-based index of the parameter before the function was modified. It's used to know which parameters to remove in overrides and which arguments to remove at invocation sites. +It's used to know: +- where to remove the parameter in method overrides. If parameter `p` is to be removed from a method `m` in a class `A`, and the user has a subclass of `A` that overrides the method `m`, the tool will remove the parameter at `index` from the method `m` in the subclass. +- if the argument is a positional parameter, which argument to remove at each invocation site. + +For example, if the second positional parameter is removed you would write: + +```yaml +kind: 'removeParameter' +index: 1 +``` + +The `name` key is required unless the `index` key is provided, and isn't allowed if an `index` key is provided. The `name` key specifies that a named parameter was removed and its value is the name of the parameter before the function was modified. It's used to know which parameters to remove in overrides and which arguments to remove at invocation sites. + +For example, if the named parameter `p` is removed you would write: + +```yaml +kind: 'removeParameter' +name: 'p' +``` + +#### rename + +A _rename_ change indicates that an element was renamed. It has two keys: `kind` and `newName`. + +The `newName` key is required. The value of the `newName` key is a string containing the new name of the element. It's used to replace the old name of the element (provided in the element object) in references to the element. + +For example, to rename an element to `B` you would write: + +```yaml +kind: 'rename' +newName: 'B' +``` + +This change is only intended to support simple renames, such as renaming a class or a method. It therefore assumes that the new element is like the old element in several ways: + +- it’s in the same library (that is, the URI’s by which it’s imported don’t change), + +- it’s the same kind of element (for example, you can’t rename a class and change it to be a mixin using this change), and + +- if the element being renamed is a member (such as a method), then the renamed element is a member of the same container. + +If the change that was made doesn’t fit within those constraints, then using a rename to capture it might not work in all situations. You should consider using a [replacedBy](#replacedBy) change instead. + +#### renameParameter + +A _renameParameter_ change indicates that a named parameter in a function or method was renamed. As such, the element in the transform must be a method or function. It has three keys: `kind`, `oldName`, and `newName`. + +The `oldName` key is required. The value of the `oldName` key is a string containing the old name of the parameter. It's used to locate the parameter that was renamed. + +The `newName` key is required. The value of the `newName` key is a string containing the new name of the parameter. It's used to replace the old name of the parameter, both in overrides of a method and in references to the method or function. + +For example, to rename the parameter `a` to `b` you would write: + +```yaml +kind: 'renameParameter' +oldName: 'a' +newName: 'b' +``` + +#### changeParameterType + +A _changeParameterType_ change can be used to indicate that a parameter has been made non nullable. It has five keys: `kind`, `index`, `name`, `nullability` and `argumentValue`. + +The `index` key is required unless the `name` key is provided, and isn't allowed if a `name` key is provided. The `index` key specifies that the position of the parameter that was changed. + +The `name` key is required unless the `index` key is provided, and isn't allowed if an `index` key is provided. The `name` key specifies the name of the parameter that has the type change. + +The `nullability` key is required and indicates the type of change made to the parameter. Currently `non_null` is the only type change that is supported. + +The `argumentValue` key is optional and if provided will be used as the default value of the parameter. The value of the argumentValue key is a [code template](Data-driven-Fixes.md#code-template) object. + +For eg, changing the parameter `a` to non null with a default value you would write: + +```yaml +kind: 'changeParameterType' +name: 'a' +nullability: 'non_null' +argumentValue: + expression: "'newValue'" +``` + + +#### replacedBy + +A _replacedBy_ change indicates that the specified element was replaced by another element. It has two keys: `kind` and `newElement`. + +The `newElement` key is required. The value of the `newElement` key is an [element](#element) representing the element that replaces the specified element. + +For example, to replace a top level variable `v` with a static field `C.f` you would write: + +```yaml +kind: 'replacedBy' +newElement: + uris: ['lib.dart'] + field: 'f' + inClass: 'C' +``` + +This change currently has two limitations that you should be aware of. + +First, it doesn’t allow the list of URIs for the new element to be different from the list for the old element. That means that it currently might not correctly update the imports to make the new element visible in scope. + +Second, it doesn’t support replacing every kind of element, nor can the replacement element be every possible kind. What it does support is the following cases: + +- Replacing one constructor with a different constructor, even when the constructors are in different classes. It doesn’t correctly handle the case of replacing a `const` constructor with a non-`const` constructor. + +- Replacing a function (either a top-level function or a static method) with a different function. + +- Replacing a getter (either a top-level getter, a top-level variable, a static getter, or a static field) with a different getter. + +- Replacing a setter (either a top-level setter, a top-level non-`final` variable, a static setter, or a non-`final` static field) with a different setter. + +As with constructors, if a static member is being replaced by another static member, the members can be in different containers (classes, mixins, or extensions). + +There isn’t currently any way for the tool to detect whether a method, getter, or setter is static, so it’s possible to specify an instance member. As a result, specifying an instance member (as either the replaced or replacing element) might produce invalid changes for your users. + +Similarly, there isn’t currently any way for the tool to detect whether a top-level variable or a static field is `final` (which includes `const`). As a result, specifying a final element (as either the replaced or replacing element) might produce invalid changes for your users. + +### code template + +A _code template_ describes code that can be generated when fixing user code. It's represented as a map with three keys: `expression`, `requiredIf`, and `variables`. + +The `expression` key is required. The value of the key is a template: a string containing Dart code, possibly with embedded references to variables. Variables are referenced by enclosing the name of the variable between `{%` and `%}` delimiters. + +The `requiredIf` key is optional, but is only allowed if the code template is inside an `addParameter` change and the style of the parameter is `'optional_named'`. The value of the `requiredIf` key is a [condition](#condition) that will be evaluated for each invocation of the method or function that was changed. Normally arguments are not added for optional named parameters, but the argument _will_ be added if the `requiredIf` key is provided and the condition evaluates to `true`. + +The `variables` key is optional. The value of the `variables` key is a [variable map](#variable-map). If neither the `expression` template nor the `requiredIf` condition use any variables then the `variables` key can be omitted. + +Variables serve two purposes. The first, and most obvious, is to allow the replacement text to contain values based on the context in which it will appear. For example, if a parameter was removed then it’s possible that the value of the corresponding argument will need to appear somewhere else in the updated code. + +The second purpose is to allow the tool to automate some of the changes for you. For example, if the replacement text needs to refer to an imported name, you should use a variable to do so, and the definition of the variable can specify where the name is imported from. The tool can then determine whether any changes need to be made to the imports in the library being edited and make them correctly. + +The variables that can be referenced in the template are the variables defined in the code template and any variables defined in the enclosing transform whose name isn't hidden by a variable defined in the code template. + +```yaml +expression: '{% type %}({% arg %})' +variables: + arg: ... + type: ... +``` + +### variable map + +A _variable map_ defines one or more variables. It's represented as a map. The keys of the map are variable names and the values are [value](#value) objects. + +The name of a variable is any identifier containing either uppercase or lowercase letters. + +### value + +A _value_ describes a way of computing a string that can be injected into a template. It's represented as a map. The number and names of the keys depends on the kind of value being described, but all value objects have a `kind` key. + +The `kind` key is required. The value of the `kind` key is a string indicating the kind of value. The valid kinds are: +- [fragment](#fragment) +- [import](#import) + +Individual kinds of value objects are described in the sections below, titled by the kind. + +#### fragment + +A _fragment_ value indicates that the value is a fragment copied from the code being updated. It has two keys: `kind` and `value`. + +The `value` key is required. The `value` key specifies the fragment of code to be copied and is expressed as a chain of references in a simplified AST model of the code. The details follow the example. + +```yaml +kind: fragment +value: 'arguments[0]' +``` + +The code fragment is described by a dot separated non-empty list of accessors: + +``` + ::= ('.' )* +``` + +Each accessor consists of an identifier followed by an index operator: + +``` + ::= '[' ( | ) ']' +``` + +When an accessor is evaluated it takes a target node and either produces a result node or fails. The target node of the first accessor is always the node representing the invocation being updated (whether it’s the invocation of a function, method, getter, setter or constructor). The target node of all other accessors is the result node of the preceding accessor. + +There are currently two supported identifiers: `arguments` and `typeArguments`. + +The `arguments` accessor takes any node that includes an argument list and returns one of the arguments to the invocation. The index operator selects the argument to be returned. A zero-based integer is used to select a positional argument and an identifier is used to select a named argument. + +The `typeArguments` accessor takes any node that includes a type argument list and returns one of the type arguments. The index operator selects the argument to be returned using a zero-based integer. + +Here are some examples: +- `arguments[0]` copies the code for the first argument in the argument list. +- `arguments[child]` copies the code for the argument named `child`. +- `arguments[0].typeArguments[0]` copies the code for the first type argument in the expression that is the first argument in the argument list. + +#### import + +An _import_ value indicates that the value is a top-level declaration from a library. It has three keys: `kind`, `uris` and `name`. + +The `uris` key is required. The value of the `uris` key is a list of [uri](#uri)s, each of which is the URI of a public library from which the name can be imported. They will be used to add an `import` directive, if one is needed, to any library in which the value of the code template will be used. If there are multiple URIs in the list and none of them are imported into the library being modified, then the first URI will be used. + +The `name` key is required. The `name` key specifies the name of the top-level declaration and its value is a string containing that name. The name is also the value of the variable. Any use of the variable in the template will ensure that the library is imported into the library being changed and that the name is visible. + +```yaml +kind: import +uris: [ 'package:flutter/material.dart' ] +name: 'Widget' +``` + +### uri + +A _uri_ is a string containing a URI. The URI can be one of the following: +- a `dart:` URI, +- a `package:` URI, or +- an abbreviated URI. + +An abbreviated URI is the portion of the URI following the name of the package containing the data file. For example, if a package named `sample` contains a library named `sample.dart` in the root of the `lib` directory, then within the data file for the package `sample` the URI for that library can be written as either `package:sample/sample.dart` or `sample.dart`. + +### test folder + +A _test folder_ contains dart files and their curresponding golden master `.expect` files that are used to test the data in the [data file](#data-file). These files are located in a folder (conventionally named `test_fixes`) in the package directory. See the [Testing](#testing) section for more documentation. + +You might find it useful to include a `README.md` file that has a link to this documentation for easy reference. + + +## Testing + +This section provides a guide for testing data driven fixes. + +All the test files are contained in the [test folder](#test-folder). Every dart file has a golden counterpart file, which is named as `.dart.expect`. + +Every test has two parts: +1. All possible usages of the public API that is changed by the data driven fix. This is contained in the dart file. +2. All the usages in the dart file with the expected change applied. This is contained in the golden file. + +Extending on the example shown in [Rename a method](#rename-a-method), the change can be tested as below: +```dart +// test_fixes/C.dart +import 'package:/C.dart'; + +C.oldName('Fix me'); // usage before the change. +``` + +```dart +// test_fixes/C.dart.expect +import 'package:/C.dart'; + +C.newName('Fix me'); // expected usage after the change. +``` + +To run these tests locally, execute the below command in the [test folder](#test-folder). +```bash +dart fix --compare-to-golden +``` \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/Design-Documents.md b/novelforge-project/agent-workspace/flutter/docs/contributing/Design-Documents.md new file mode 100644 index 0000000000000000000000000000000000000000..2ef060a02e84051579542e1ddc9c3cd6cae472ae --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/Design-Documents.md @@ -0,0 +1,65 @@ +If you want to write a design doc for people to review, we recommend using Google Docs. +We have a template you can use, at [flutter.dev/go/template](https://flutter.dev/go/template). It describes the process for minting a `flutter.dev/go/foo` shortlink for your design doc. +We recommend you use that template so that people can immediately recognize that this is a Flutter design document and that it is shared publicly. + +Don't forget to configure your document's Sharing settings so that everyone has comment access. The idea of sharing the document in this way is not necessarily to proactively obtain feedback from the entire community; it is to make it _possible_ for people to share the document with anyone in the community, whether they work for your employer or not, and whether you have personally shared the document with them yet or not. + +The template discusses how to create a shortlink for your design doc (flutter.dev/go/...). When creating the shortlink, remember to test the URL you are publishing in an incognito window! + +Googlers: Design docs must be created by non-corp accounts! See [Contributor Access](Contributor-access.md#fcontriborg-accounts) for details on getting `fcontrib.org` accounts if you don't want to use your personal GMail account. + +When you implement a design, document it in the source code in detail. The API documentation is the usual place where we document our designs. It's perfectly reasonable for API docs to be multiple pages long with subheadings (e.g. see the docs for [RenderBox](https://master-api.flutter.dev/flutter/rendering/RenderBox-class.html)!). Do not assume that anyone will ever read your design doc after the discussion has finished. Similarly, do not assume that anyone will look at closed GitHub issues or PR discussions. + +_See also: [list of current design docs](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22design+doc%22)_ + +## Purpose of design docs + +The Flutter project uses design docs as a tool for guiding discussions. + +Decisions are made in PRs, not in design docs. + +Approvals are given in PRs, not in design docs. + +## Soliciting feedback + +If you wish to get feedback on your design doc, you have many options for doing so, depending on how much feedback you want: + +* If there is an issue already filed on the topic, definitely put a link to the design doc there. People who have found the issue and want to get updates on the topic will have subscribed to the issue, so this is the most effective way to communicate with them. + +* File a new issue to track the design doc using [the design doc issue template](https://github.com/flutter/flutter/issues/new?template=8_design_doc.yml). Assign it to yourself. + +* Post the link on Discord. You can post it to #hidden-chat to just get feedback from team members. You can post it to one or more of the #hackers-* channels if you want feedback from people who are interested in the general area. You can post it to the global #hackers channel if you want feedback from anyone interested in working on Flutter. If you really want feedback, you can post a request to #announcements and publish it to any server that is following ours. + +* If you want feedback from the broad community, tweet out the link and let other team members know so that we can retweet it. Similarly, you can post the request to one of the Flutter reddit channels, such as r/FlutterDev. + +* You can ask our developer relations (devrel) team to broadcast a request for comments. (Start by asking in #hackers-devrel; if nobody responds, ping Hixie on that channel.) + +* You can ask our user experience researcher (UXR) team to study the proposal and potentially test it with real users, or collect relevant data from the next quarterly survey. (Start by asking in #hackers-devexp; if nobody responds, ping Hixie on that channel.) + +* If you have commit access, you can ask to talk about the design doc at the next Dash Forum meeting (normally held on Tuesdays at 11am US west coast time). Ping Hixie on #hidden-chat to get on the schedule, or use the form to request to be added, the link for which is pinned in the #hidden-chat channel. + +### How to get good feedback + +Often, you will solicit feedback, and get none. There are many causes of this. + +Maybe your proposal is unclear, and so people don't really know what to suggest. People are often reluctant to provide broad criticisms. Consider if you can improve the clarity of your design doc. Do you have a clear problem statement separate from your solution? Do you show example code of the problem? Do you have screenshots or diagrams of the problem? For your solution, do you start from first principles and explain it? Often it's easy to forget that your readers don't have the same context you do, so without a gentle introduction they'll get lost very quickly. Do you have sample code of your proposed solution(s)? Do you need more diagrams or screenshots? Ask someone you trust if they think your document is sufficiently clear. + +Maybe your proposal is too big for anyone to get their head around. Can it be split into smaller components, so that each one can be understood separately, before bringing all the pieces together into your grand design? (You can do this all in the same doc.) + +Maybe people don't know what to provide feedback about. If you have an area you are particularly interested in getting feedback about, it can be very helpful to explicitly invite such feedback. + +Maybe you are asking the wrong people. Consider the suggestions in the earlier section, and reach out explicitly to people who are affected by your proposal. Consider escalating, asking more and more people until you get the volume of feedback you desire. + +Maybe everyone agrees. Consider leaving some intentionally sketchy details in your proposal to encourage people to engage! (This is a risky strategy, sometimes people end up _liking_ your "bad" ideas...) + +Maybe your proposal is too obvious or uninteresting. Sometimes, a change is so uncontroversial and simple that frankly it would be better just to write the PR and submit it. + +## Content in design docs + +### Screen captures + +The easiest way to capture videos for design docs is using macOS. Press Command+Shift+5 for a whole bunch of options. + +### Diagrams + +As we use Google Docs for the text portion of design docs, the easiest way to draw diagrams is using Google Diagrams. Select `Insert` > `Drawing` > `New` to create a new diagram. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/Labeling-PRs.md b/novelforge-project/agent-workspace/flutter/docs/contributing/Labeling-PRs.md new file mode 100644 index 0000000000000000000000000000000000000000..7b81a55ad005745f0d045614c282377da19d5f10 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/Labeling-PRs.md @@ -0,0 +1,23 @@ +# Labeling PRs + +Across the Flutter organization, the [labeler](https://github.com/actions/labeler) GitHub action is used per repo. + +For repos that already use it, only `.github/labeler.yml` needs to be edited. For bringing up new repos, `.github/workflows/labeler.yml` should be copied from an existing repo into the new repo. + +## How to add new labels + +```yaml +macos: + # **/* recursively searches all subdirectories and files + - shell/platform/darwin/macos/**/* + +# For complex label names, it may need to be wrapped in quotes +'a: accessibility': + - **/accessibility/* +``` + +## Verifying changes in presubmit + +GitHub actions do not test changes in presubmit. To verify, copy your local change into a YAML linter to verify the file is not malformed. + +Once landed, you can look at new workflow runs to see if the matches are being used. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/Setting-up-the-Framework-development-environment.md b/novelforge-project/agent-workspace/flutter/docs/contributing/Setting-up-the-Framework-development-environment.md new file mode 100644 index 0000000000000000000000000000000000000000..bc36c36005d3a085701e6e4ec13bf82bbc2ba692 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/Setting-up-the-Framework-development-environment.md @@ -0,0 +1,64 @@ +## Preqrequisites + + * Linux, Mac OS X, or Windows + + * `git` (used for source version control) + + * An IDE, such as [Android Studio with the Flutter plugin](https://docs.flutter.dev/development/tools/android-studio) or [VS Code](https://docs.flutter.dev/development/tools/vs-code) + + * Android platform tools + - Mac: `brew install --cask android-platform-tools` + - Linux: `sudo apt-get install android-tools-adb` + + Verify that `adb` is in your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) (that `which adb` prints sensible output). + + If you're + [also working on the Flutter engine](../engine/contributing/Setting-up-the-Engine-development-environment.md), + you can use the copy of the Android platform tools in + `.../engine/src/third_party/android_tools/sdk/platform-tools`. + + * Python (used by some of our tools) + +## Set up your environment + +1. Clone the flutter/flutter repo using either SSH or HTTPS (SSH is recommended, but requires a working [SSH key](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh) on your GitHub account): + - SSH: `git clone git@github.com:flutter/flutter.git` + - HTTPS: `git clone https://github.com/flutter/flutter.git` + +1. Change into the directory of the cloned repository and rename the origin remote to upstream: + 1. `cd flutter` + 1. `git remote rename origin upstream` + +1. [Fork the flutter/flutter repo](https://github.com/flutter/flutter/fork) into your own GitHub account. + +1. Add your fork as the origin remote to your local clone either using SSH or HTTPS (SSH is recommended, but requires a working [SSH key](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/about-ssh) on your GitHub account) by replacing ████████ with your GitHub account name: + - SSH: `git remote add origin git@github.com:████████/flutter.git` + - HTTPS: `git remote add origin https://github.com/████████/flutter.git` + +1. Verify the upstream and origin repository you've specified for your clone. + - `git remote -v` + +1. Add the repo's `bin` directory to your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)): e.g. on UNIX, using `export PATH="$PATH:$HOME//bin"` + + - If you already have a Flutter installation you will either need to remove it from your PATH, or use a full path whenever you are running `flutter` in this repository. If you have version solving errors when trying to run examples below, you are running a version of Flutter other than the one checked out here. + +1. `flutter update-packages` + + This will recursively fetch all the Dart packages that + Flutter depends on. If version solving failed, try `git fetch upstream` to update Flutter versions before `flutter update-packages`. + + +> **Tip** +> If you plan on using IntelliJ as your IDE, then also run +> `flutter ide-config --overwrite` to create all of the IntelliJ configuration +> files so you can open the main flutter directory as a project and run examples +> from within the IDE. + + +Next steps: + + * [Running examples](../examples/Running-examples.md), to see if your setup works. + * [The flutter tool](../tool/README.md), to learn about how the `flutter` command line tool works. + * [Style guide for Flutter repo](Style-guide-for-Flutter-repo.md), to learn how to write code for Flutter. + * [Tree hygiene](Tree-hygiene.md), to learn about how to submit patches. + * [Signing commits](Signing-commits.md), to configure your environment to securely sign your commits. diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/Signing-commits.md b/novelforge-project/agent-workspace/flutter/docs/contributing/Signing-commits.md new file mode 100644 index 0000000000000000000000000000000000000000..5c845b65648799255475029e14681598e924fa00 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/Signing-commits.md @@ -0,0 +1,48 @@ +Flutter repositories require that your commits are signed (as of Nov 17, 2021, this is not enabled in all repos, but it's best to be prepared). To get started follow the GitHub instructions in [Signing Commits][1]. + +## Troubleshooting + +### `GIT_TRACE=1` + +If a `git` command fails with a complaint about `gpg`, run the same command again with `GIT_TRACE=1`. For example, if the failing command is: + +``` +git commit -S -m 'some message' +``` + +Run this instead: + +``` +GIT_TRACE=1 git commit -S -m 'some message' +``` + +With tracing enabled `git` will provide more information about the failure. + +### fatal: failed to write commit object + +If you see the following output from `git commit -S`: + +``` +error: gpg failed to sign the data +fatal: failed to write commit object +``` + +This error may indicate that your GPG name, comment, and email do not match those of `git`. To fix this issue, add `user.signingkey` to your git configuration referring to the GPG key by its hash rather than by name. To find out the GPG key hash run: + +``` +gpg --list-secret-keys --keyid-format=long +``` + +In the list of keys printed to the console find the one you want to use (the one you registered with GitHub) and copy its hash from the line that begins with `sec`. For example, the key hash in the following line is `XYZ`: + +``` +sec rsa4096/XYZ 20201-11-16 +``` + +To add it to your git configuration run: + +``` +git config --global user.signingkey XYZ +``` + +[1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/Style-guide-for-Flutter-repo.md b/novelforge-project/agent-workspace/flutter/docs/contributing/Style-guide-for-Flutter-repo.md new file mode 100644 index 0000000000000000000000000000000000000000..61afa254a3b9ea59f741fa1866fa52fbc48d8cf4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/Style-guide-for-Flutter-repo.md @@ -0,0 +1,1914 @@ +# Style guide for Flutter repo + +## Summary + +Optimize for readability. Write detailed documentation. +Make error messages useful. +Never use timeouts or timers. +Avoid `is`, `print`, `part of`, `extension` and `_`. + +## Introduction + +This document contains some high-level philosophy and policy decisions for the Flutter +project, and a description of specific style issues for some parts of the codebase. + +The style portion describes the preferred style for code written as part of the Flutter +project (the framework itself and all our sample code). Flutter application developers +are welcome to follow this style as well, but this is by no means required. Flutter +will work regardless of what style is used to author applications that use it. + +The engine repository uses [other style guides for non-Dart code](https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style). The language-neutral sections in this document still apply to engine code, however. + + +## Overview + +This document describes our approach to designing and programming Flutter, +from high-level architectural principles all the way to indentation rules. +These are our norms, written down so that we can easily convey our shared +understanding with new team members. + +The primary goal of these style guidelines is to improve code readability so +that everyone, whether reading the code for the first time or +maintaining it for years, can quickly determine what the code does. +Secondary goals are to design systems that are simple; to increase the +likelihood of catching bugs quickly; and to avoid arguments when there are +disagreements over subjective matters. + +For anything not covered by this document, check the +[Dart style guide](https://www.dartlang.org/guides/language/effective-dart/) +for more advice. That document is focused primarily on Dart-specific +conventions, while this document is more about Flutter conventions. + +In some cases (for example, line wrapping around `if` statements) the +Dart style guide differs from the Flutter guide. For Flutter project code, +the Flutter guide governs. The differences are a result of slightly different +priorities. The Flutter guide is designed for making code highly readable +even to people who have never seen the code before and are new to Dart, as +the Flutter framework code will be read millions of times more than it is written. +The Dart guide, on the other hand, is designed to provide a more balanced approach +that assumes that the writing of the code will be a bigger proportion of the +interactions with the code, and that the reader is more experienced with Dart. +(The `dart format` tool uses the Dart guide, so we do not use it in the +flutter/flutter and flutter/engine repositories. However, we do recommend its +use in general.) + +### A word on designing APIs + +Designing an API is an art. Like all forms of art, one learns by practicing. The best way to get good at designing APIs is to spend a decade or more designing them, while working closely with people who are using your APIs. Ideally, one would first do this in very controlled situations, with small numbers of developers using one's APIs, before graduating to writing APIs that will be used by hundreds of thousands or even millions of developers. + +In the absence of one's own experience, one can attempt to rely on the experience of others. The biggest problem with this is that sometimes explaining why an API isn't optimal is a very difficult and subtle task, and sometimes the reasoning doesn't sound convincing unless you already have a lot of experience designing them. + +Because of this, and contrary to almost any other situation in engineering, when you are receiving feedback about API design from an experienced API designer, they will sometimes seem unhappy without quite being able to articulate why. When this happens, seriously consider that your API should be scrapped and a new solution found. + +This requires a different and equally important skill when designing APIs: not getting attached to one's creations. One should try many wildly different APIs, and then attempt to write code that uses those APIs, to see how they work. Throw away APIs that feel frustrating, that lead to buggy code, or that other people don't like. If it isn't elegant, it's usually better to try again than to forge ahead. + +An API is for life, not just for the one PR you are working on. + + +## Philosophy + +### Lazy programming + +Write what you need and no more, but when you write it, do it right. + +Avoid implementing features you don't need. You can't design a feature +without knowing what the constraints are. Implementing features "for +completeness" results in unused code that is expensive to maintain, +learn about, document, test, etc. + +When you do implement a feature, implement it the right way. Avoid +workarounds. Workarounds merely kick the problem further down the +road, but at a higher cost: someone will have to relearn the problem, +figure out the workaround and how to dismantle it (and all the places +that now use it), _and_ implement the feature. It's much better to +take longer to fix a problem properly, than to be the one who fixes +everything quickly but in a way that will require cleaning up later. + +You may hear team members say "embrace the [yak shave](http://www.catb.org/jargon/html/Y/yak-shaving.html)!". This is +an encouragement to [take on the larger effort necessary](https://www.youtube.com/watch?v=AbSehcT19u0) to perform a +proper fix for a problem rather than just applying a band-aid. + + +### Write Test, Find Bug + +When you fix a bug, first write a test that fails, then fix the bug +and verify the test passes. + +When you implement a new feature, write tests for it. (See also: [Running and writing tests](./testing/Running-and-writing-tests.md), and the section on writing tests below.) + +Check the code coverage +to make sure every line of your new code is tested. See also: [Test coverage for package:flutter](./testing/Test-coverage-for-package-flutter.md). + +If something isn't tested, it is very likely to regress or to get "optimized away". +If you want your code to remain in the codebase, you should make sure to test it. + +Don't submit code with the promise to "write tests later". Just take the +time to write the tests properly and completely in the first place. + + +### Avoid duplicating state + +There should be no objects that represent live state that reflect +some state from another source, since they are expensive to maintain. +(The Web's `HTMLCollection` object is an example of such an object.) +In other words, **keep only one source of truth**, and **don't replicate +live state**. + + +### Getters feel faster than methods + +Property getters should be efficient (e.g. just returning a cached +value, or an O(1) table lookup). If an operation is inefficient, it +should be a method instead. (Looking at the Web again: we would have +`document.getForms()`, not `document.forms`, since it walks the entire tree). + +Similarly, a getter that returns a Future should not kick-off the work +represented by the future, since getters appear idempotent and side-effect free. +Instead, the work should be started from a method or constructor, and the +getter should just return the preexisting Future. + + +### No synchronous slow work + +There should be no APIs that require synchronously completing an +expensive operation (e.g. computing a full app layout outside of the +layout phase). Expensive work should be asynchronous. + + +### Layers + +We use a layered framework design, where each layer addresses a +narrowly scoped problem and is then used by the next layer to solve +a bigger problem. This is true both at a high level (widgets relies +on rendering relies on painting) and at the level of individual +classes and methods (e.g. `Text` uses `RichText` and `DefaultTextStyle`). + +Convenience APIs belong at the layer above the one they are simplifying. + + +### Avoid interleaving multiple concepts together + +Each API should be self-contained and should not know about other features. +Interleaving concepts leads to _complexity_. + +For example: + +- Many Widgets take a `child`. Widgets should be entirely agnostic about the type +of that child. Don't use `is` or similar checks to act differently based on the +type of the child. + +- Render objects each solve a single problem. Rather than having a render object +handle both clipping and opacity, we have one render object for clipping, and one +for opacity. + +- In general, prefer immutable objects over mutable data. Immutable objects can +be passed around safely without any risk that a downstream consumer will change +the data. (Sometimes, in Flutter, we pretend that some objects are immutable even +when they technically are not: for example, widget child lists are often technically +implemented by mutable `List` instances, but the framework will never modify them +and in fact cannot handle the user modifying them.) Immutable data also turns out +to make animations much simpler through _lerping_. + + +### Avoid secret (or global) state + +A function should operate only on its arguments and, if it is an instance +method, data stored on its object. This makes the code significantly easier +to understand. + +For example, when reading this code: + +```dart +// ... imports something that defines foo and bar ... + +void main() { + foo(1); + bar(2); +} +``` + +...the reader should be confident that nothing in the call to `foo` could affect anything in the +call to `bar`. + +This usually means structuring APIs so that they either take all relevant inputs as arguments, or so +that they are based on objects that are created with the relevant input, and can then be called to +operate on those inputs. + +This significantly aids in making code testable and in making code understandable and debuggable. +When code operates on secret global state, it's much harder to reason about. + + +### Prefer general APIs, but use dedicated APIs where there is a reason + +For example, having dedicated APIs for performance reasons is fine. If one +specific operation, say clipping a rounded rectangle, is expensive +using the general API but could be implemented more efficiently +using a dedicated API, then that is where we would create a dedicated API. + + +### Avoid the lowest common denominator + +It is common for SDKs that target multiple platforms (or meta-platforms that +themselves run on multiple platforms, like the Web) to provide APIs that +work on all their target platforms. Unfortunately, this usually means that +features that are unique to one platform or another are unavailable. + +For Flutter, we want to avoid this by explicitly aiming to be the best way +to develop for each platform individually. Our ability to be used cross- +platform is secondary to our ability to be used on each platform. For example, +[TextInputAction](https://master-api.flutter.dev/flutter/services/TextInputAction-class.html) +has values that only make sense on some platforms. Similarly, our platform +channel mechanism is designed to allow separate extensions to be created on +each platform. + + +### Avoid APIs that encourage bad practices + +For example, don't provide APIs that walk entire trees, or that encourage +O(N^2) algorithms, or that encourage sequential long-lived operations where +the operations could be run concurrently. + +In particular: + + - String manipulation to generate data or code that will subsequently + be interpreted or parsed is a bad practice as it leads to code + injection vulnerabilities. + + - If an operation is expensive, that expense should be represented + in the API (e.g. by returning a `Future` or a `Stream`). Avoid + providing APIs that hide the expense of tasks. + + +### Avoid exposing API cliffs + +Convenience APIs that wrap some aspect of a service from one environment +for exposure in another environment (for example, exposing an Android API +in Dart), should expose/wrap the complete API, so that there's no cognitive cliff +when interacting with that service (where you are fine using the exposed +API up to a point, but beyond that have to learn all about the underlying +service). + + +### Avoid exposing API oceans + +APIs that wrap underlying services but prevent the underlying API from +being directly accessed (e.g. how `dart:ui` exposes Skia) should carefully +expose only the best parts of the underlying API. This may require refactoring +features so that they are more usable. It may mean avoiding exposing +convenience features that abstract over expensive operations unless there's a +distinct performance gain from doing so. A smaller API surface is easier +to understand. + +For example, this is why `dart:ui` doesn't expose `Path.fromSVG()`: we checked, +and it is just as fast to do that work directly in Dart, so there is no benefit +to exposing it. That way, we avoid the costs (bigger API surfaces are more +expensive to maintain, document, and test, and put a compatibility burden on +the underlying API). + + +### Avoid heuristics and magic + +Predictable APIs that the developer feels gives them control are generally preferred +over APIs that mostly do the right thing but don't give the developer any way to adjust +the results. + +Predictability is reassuring. + + +### Solve real problems by literally solving a real problem + +Where possible, especially for new features, you should partner with a real +customer who wants that feature and is willing to help you test it. Only by +actually using a feature in the real world can we truly be confident that a +feature is ready for prime time. + +Listen to their feedback, too. If your first customer is saying that your +feature doesn't actually solve their use case completely, don't dismiss their +concerns as esoteric. Often, what seems like the problem when you start a +project turns out to be a trivial concern compared to the real issues faced +by real developers. + + +### Get early feedback when designing new APIs + +If you're designing a new API or a new feature, consider [writing a design doc](Design-Documents.md). +Then, get feedback from the relevant people, e.g. send it to `flutter-dev` or +post it on the [relevant chat channel](Chat.md#existing-channels). + + +### Start designing APIs from the closest point to the developer + +When we create a new feature that requires a change to the entire stack, it's tempting to design the lowest-level API first, since that's the closest to the "interesting" code (the "business end" of the feature, where we actually do the work). However, that then forces the higher level APIs to be designed against the lower-level API, which may or may not be a good fit, and eventually the top-level API, which developers will primarily be using, may be forced to be a tortured and twisted mess (either in implementation or in terms of the exposed API). It may even be that the final API doesn't fit how people think about the problem or solve their actual issues, but instead merely exposes the lowest-level feature almost verbatim. + +Instead, always design the top-level API first. Consider what the most ergonomic API would be at the level that most developers will be interacting with it. Then, once that API is cleanly designed and usability-tested, build the lower levels so that the higher level can be layered atop. + +Concretely, this means designing the API at the `material` or `widgets` layer first, then the API in the `rendering`, `scheduler`, or `services` layer, then the relevant binding, then the `dart:ui` API or the message channel protocol, then the internal engine API or the plugin API. (The details may vary from case to case.) + + +### Only log actionable messages to the console + +If the logs contain messages that the user can safely ignore, then they will do so, and eventually their logs +will be so chatty and verbose that they will miss the critical messages. Therefore, only log actual errors and +actionable warnings (warnings that can always be dealt with and fixed). + +Never log "informational" messages by default. It is possible that it may be useful to have messages on certain topics while debugging those topics. To deal with that, have debug flags you can enable that enable extra logging for particular topics. For example, setting `debugPrintLayouts` to true enables logging of layouts. + +This also applies to our unopt builds. It's annoying for other people on the team to have to wade through messages that aren't directly relevant to their work. Rely on feature flags, not verbosity levels, when deciding +to output messages. The one exception to this is reporting useful milestones; for example, the `flutter` tool in +verbose mode (`-v`) reports meaningful steps that it is executing because those are almost always useful. + + +### Error messages should be useful + +Every time you find the need to report an error (e.g. throwing an exception in the framework, handling some bad state in the engine, reporting a syntax error in the Dart compiler, etc), consider how you can make this the most useful and helpful error message ever. + +Put yourself in the shoes of whoever sees that error message. Why did they see it? What can we do to help them? They are at a crossroads, having seen your error message: they can either get frustrated and hate Flutter, or they can feel thankful that the error helped them resolve an actual issue. **Every error message is an opportunity to make someone love our product.** + +### Template values should set developers up for success + +Template defaults should focus on providing the best developer experience. Templates should help developers understand the code, be easy to run now and support in the future. Help developers by picking dependencies that are broadly used and/or broadly supported and by leaving [comments that are helpful](#leave-breadcrumbs-in-the-comments). + +See flutter create's templates for an example. + +## Policies + +This section defines some policies that we have decided to honor. In the absence of a very specific policy in this section, the general philosophies in the section above are controlling. + +### Plugin compatibility + +We guarantee that a plugin published with a version equal to or greater than 1.0.0 will require no more recent a version of Flutter than the latest stable release at the time that the plugin was released. (Plugins may support older versions too, but that is not guaranteed.) + +### Workarounds + +We are willing to implement temporary (one week or less) workarounds (e.g. `//ignore` hacks) if it helps a high profile developer or prolific contributor with a painful transition. Please contact @Hixie (ian@hixie.ch) if you need to make use of this option. + +### Avoid abandonware + +Code that is no longer maintained should be deleted or archived in some way that clearly indicates +that it is no longer maintained. + +For example, we delete rather than commenting out code. Commented-out code will bitrot too fast to be +useful, and will confuse people maintaining the code. + +Similarly, all our repositories should have an owner that does regular triage of incoming issues and PRs, +and fixes known issues. Repositories where nobody is doing triage at least monthly, preferably more often, +should be deleted, hidden, or otherwise archived. + +### Widget libraries follow the latest OEM behavior + +For our material and cupertino libraries, we generally implement the latest behavior unless doing so +would be a seriously disruptive breaking change. For example, we use the latest stylings for iOS +switch controls, but when Material Design introduced a whole new type of button, we created a new +widget for that rather than updating the existing buttons to have the new style. + +### Code that is not copyrighted "The Flutter Authors" + +All code in all Flutter repositories must be contributed by developers who have signed [the Google CLA](https://cla.developers.google.com/), and must be licensed using our normal BSD license with a copyright referencing "The Flutter Authors", except if it is "third party code". + +"Third party code" that is not part of a Dart package must be in a subdirectory of a `third_party` directory at the root of the relevant repository, and the subdirectory in question must contain a `LICENSE` file that details the license covering that code and a `README` describing the provenance of that code. + +"Third party code" that is part of a Dart package and is not Dart code must be in a subdirectory of a `third_party` directory at the root of the package, and the subdirectory in question must contain a `LICENSE` file that details the license covering that code and a `README` describing the provenance of that code. The license must then also be duplicated into the package's `LICENSE` file using the syntax described in the [LicenseRegistry](https://master-api.flutter.dev/flutter/foundation/LicenseRegistry-class.html) API docs. + +"Third party code" that is part of a Dart package and is Dart code must be in a subdirectory of the package's `lib/src/third_party` directory, and the subdirectory in question must contain a `LICENSE` file that details the license covering that code and a `README` describing the provenance of that code. The license must then also be duplicated into the package's `LICENSE` file using the syntax described in the [LicenseRegistry](https://master-api.flutter.dev/flutter/foundation/LicenseRegistry-class.html) API docs. + +All licenses included in this manner must have been reviewed and determined to be legally acceptable licenses. + +All such "third party code" must either be a fork for which we take full responsibility, or there must be an automated rolling mechanism that keeps the code up to date when the upstream source changes. + +In general it is _strongly_ recommended that we avoid any such code unless strictly necessary. In particular, we aim for all code in the flutter/flutter repository to be [single-licensed](../about/Why-we-have-a-separate-engine-repo.md#licensing), which is why it does not contain any "third party code" at all. + + +## Documentation (dartdocs, javadocs, etc) + +We use "dartdoc" for our Dart documentation, and similar technologies for the documentation +of our APIs in other languages, such as ObjectiveC and Java. All public members in Flutter +libraries should have a documentation. + +In general, follow the +[Dart documentation guide](https://www.dartlang.org/effective-dart/documentation/#doc-comments) +except where that would contradict this page. + +### Answer your own questions straight away + +When working on Flutter, if you find yourself asking a question about +our systems, please place whatever answer you subsequently discover +into the documentation in the same place where you first looked for +the answer. That way, the documentation will consist of answers to real +questions, where people would look to find them. Do this right away; +it's fine if your otherwise-unrelated PR has a bunch of documentation +fixes in it to answer questions you had while you were working on your PR. + +We try to avoid reliance on "oral tradition". It should be possible +for anyone to begin contributing without having had to learn all the +secrets from existing team members. To that end, all processes should +be documented (typically on the wiki), code should be self-explanatory +or commented, and conventions should be written down, e.g. in our style +guide. + +There is one exception: it's better to _not_ document something in our API +docs than to document it poorly. This is because if you don't document it, +it still appears on our list of things to document. Feel free to remove +documentation that violates our rules below (especially the next one), +so as to make it reappear on the list. + + +### Avoid useless documentation + +If someone could have written the same documentation without knowing +anything about the class other than its name, then it's useless. + +Avoid checking in such documentation, because it is no better than no +documentation but will prevent us from noticing that the identifier is +not actually documented. + +Example (from [`CircleAvatar`](http://docs.flutter.io/flutter/material/CircleAvatar-class.html)): + +```dart +// BAD: + +/// The background color. +final Color backgroundColor; + +/// Half the diameter of the circle. +final double radius; + + +// GOOD: + +/// The color with which to fill the circle. +/// +/// Changing the background color will cause the avatar to animate to the new color. +final Color backgroundColor; + +/// The size of the avatar. +/// +/// Changing the radius will cause the avatar to animate to the new size. +final double radius; +``` + +### Writing prompts for good documentation + +If you are having trouble coming up with useful documentation, here are some prompts that might help you write more detailed prose: + + * If someone is looking at this documentation, it means that they have a question which they couldn't answer by guesswork or by looking at the code. What could that question be? Try to answer all questions you can come up with. + + * If you were telling someone about this property, what might they want to know that they couldn't guess? For example, are there edge cases that aren't intuitive? + + * Consider the type of the property or arguments. Are there cases that are outside the normal range that should be discussed? e.g. negative numbers, non-integer values, transparent colors, empty arrays, infinities, NaN, null? Discuss any that are non-trivial. + + * Does this member interact with any others? For example, can it only be non-null if another is null? Will this member only have any effect if another has a particular range of values? Will this member affect whether another member has any effect, or what effect another member has? + + * Does this member have a similar name or purpose to another, such that we should point to that one, and from that one to this one? Use the `See also:` pattern. + + * Are there timing considerations? Any potential race conditions? + + * Are there lifecycle considerations? For example, who owns the object that this property is set to? Who should `dispose()` it, if that's relevant? + + * What is the contract for this property/method? Can it be called at any time? Are there limits on what values are valid? If it's a `final` property set from a constructor, does the constructor have any limits on what the property can be set to? If this is a constructor, are any of the arguments not nullable? + + * If there are `Future` values involved, what are the guarantees around those? Consider whether they can complete with an error, whether they can never complete at all, what happens if the underlying operation is canceled, and so forth. + + +### Introduce terms as if every piece of documentation is the first the reader has ever seen + +It's easy to assume that the reader has some basic knowledge of Dart or Flutter when writing API documentation. + +Unfortunately, the reality is that everyone starts knowing nothing, and we do not control where they will begin their journey. + +For this reason, avoid using terms without first defining them, unless you are linking to more fundamental documentation that defines that term without reference to the API you are documenting. + +For example, a fancy widget in the Material library can refer to the `StatefulWidget` documentation and assume that the reader either knows about the `StatefulWidget` class, or can learn about it by following the link and then later returning to the documentation for the fancy widget. However, the documentation for the `StatefulWidget` class should avoid assuming that the reader knows what a `State` class is, and should avoid defering to it for its definition, because `State` could is likely to defer back to `StatefulWidget` and the reader would be stuck in a loop unable to grasp the basic principles. This is the documentation equivalent of a bootstrapping problem. + +Another way to express this is that API documentation should follow a similar layering philosophy as code. The goal of documentation is not just to act as a refresher for experts, but to act as a tutorial for new developers. + + +### Avoid empty prose + +It's easy to use more words than necessary. Avoid doing so +where possible, even if the result is somewhat terse. + +```dart +// BAD: + +/// Note: It is important to be aware of the fact that in the +/// absence of an explicit value, this property defaults to 2. + +// GOOD: + +/// Defaults to 2. +``` + +In particular, avoid saying "Note:", or starting a sentence with "Note that". It adds nothing. + + +### Leave breadcrumbs in the comments + +This is especially important for documentation at the level of classes. + +If a class is constructed using a builder of some sort, or can be +obtained via some mechanism other than merely calling the constructor, +then include this information in the documentation for the class. + +If a class is typically used by passing it to a particular API, then +include that information in the class documentation also. + +If a method is the main mechanism used to obtain a particular object, +or is the main way to consume a particular object, then mention that +in the method's description. + +Typedefs should mention at least one place where the signature is used. + +These rules result in a chain of breadcrumbs that a reader can follow +to get from any class or method that they might think is relevant to +their task all the way up to the class or method they actually need. + +Example: + +```dart +// GOOD: + +/// An object representing a sequence of recorded graphical operations. +/// +/// To create a [Picture], use a [PictureRecorder]. +/// +/// A [Picture] can be placed in a [Scene] using a [SceneBuilder], via +/// the [SceneBuilder.addPicture] method. A [Picture] can also be +/// drawn into a [Canvas], using the [Canvas.drawPicture] method. +abstract class Picture ... +``` + +You can also use "See also" links, as in: + +```dart +/// See also: +/// +/// * [FooBar], which is another way to peel oranges. +/// * [Baz], which quuxes the wibble. +``` + +Each line should end with a period. Prefer "which..." rather than parentheticals on such lines. +There should be a blank line between "See also:" and the first item in the bulleted list. + + +### Refactor the code when the documentation would be incomprehensible + +If writing the documentation proves to be difficult because the API is +convoluted, then rewrite the API rather than trying to document it. + + +### Canonical terminology + +The documentation should use consistent terminology: + + * _method_ - a member of a class that is a non-anonymous closure + * _function_ - a callable non-anonymous closure that isn't a member of a class + * _parameter_ - a variable defined in a closure signature and possibly used in the closure body. + * _argument_ - the value passed to a closure when calling it. + +Prefer the term "call" to the term "invoke" when talking about jumping to a closure. + +Prefer the term "member variable" to the term "instance variable" when talking about variables associated with a specific object. + +Typedef dartdocs should usually start with the phrase "Signature for...". + + +### Use correct grammar + +Avoid starting a sentence with a lowercase letter. + +```dart +// BAD + +/// [foo] must not be null. + +// GOOD + +/// The [foo] argument must not be null. +``` + +Similarly, end all sentences with a period. + + +### Use the passive voice; recommend, do not require; never say things are simple + +Never use "you" or "we". Avoid the imperative voice. Avoid value judgements. + +Rather than telling someone to do something, use "Consider", as in "`To obtain the foo, consider using [bar].`". + +In general, you don't know who is reading the documentation or why. Someone could have inherited a terrible codebase and be reading our documentation to find out how to fix it; by saying "you should not do X" or "avoid Y" or "if you want Z", you will put the reader in a defensive state of mind when they find code that contradicts the documentation (after all, they inherited this codebase, who are we to say that they're doing it wrong, it's not their fault). + +For similar reasons, never use the word "simply", or say that the reader need "just" do something, or otherwise imply that the task is easy. +By definition, if they are looking at the documentation, they are not finding it easy. + + +### Provide sample code + +Sample code helps developers learn your API quickly. Writing sample code also helps you think through how your API is going to be used by app developers. + +Sample code should go in a documentation comment that typically begins with `/// {@tool dartpad}`, and ends with `/// {@end-tool}`, with the example source and corresponding tests placed in a file under [the API examples directory](https://github.com/flutter/flutter/blob/main/examples/api). This will then be checked by automated tools, and formatted for display on the API documentation web site [api.flutter.dev](https://api.flutter.dev). For details on how to write sample code, see [the API example documentation](https://github.com/flutter/flutter/blob/main/examples/api/README.md#authoring). + +#### Provide full application samples. + +Our UX research has shown that developers prefer to see examples that are in the context of an entire app. So, whenever it makes sense, provide an example that can be presented as part of an entire application instead of just a snippet that uses the `{@tool snippet}` or ```dart ... ``` indicators. + +An application sample can be created using the `{@tool dartpad}` ... `{@end-tool}` or `{@tool sample}` ... `{@end-tool}` dartdoc indicators. See [here](https://github.com/flutter/flutter/blob/main/examples/api/README.md#authoring) for more details about writing these kinds of examples. + +Dartpad examples (those using the dartdoc `{@tool dartpad}` indicator) will be presented on the [API documentation website](https://api.flutter.dev) as an in-page executable and editable example. This allows developers to interact with the example right there on the page, and is the preferred form of example. Here is [one such example](https://api.flutter.dev/flutter/widgets/AnimatedSwitcher-class.html#widgets.AnimatedSwitcher.1). + +For examples that don't make sense in a web page (for example, code that interacts with a particular platform feature), application examples (using the dartdoc `{@tool sample}` indicator) are preferred, and will be presented on the API documentation website along with information about how to instantiate the example as an application that can be run. + +Supported IDEs viewing the Flutter source code using the Flutter plugin also offer the option of creating a new project with either kind of example. + +### Provide illustrations, diagrams or screenshots + +For any widget that draws pixels on the screen, showing how it looks like in its API doc helps developers decide if the widget is useful and learn how to customize it. All illustrations should be easily reproducible, e.g. by running a Flutter app or a script. + +Examples: + +* A diagram for the AppBar widget + +![AppBar diagram](https://flutter.github.io/assets-for-api-docs/assets/material/app_bar.png) + + +* A screenshot for the Card widget + +![Card screenshot](https://user-images.githubusercontent.com/348942/28338544-2c3681b8-6bbe-11e7-967d-fcd7c830bf53.png) + +When creating diagrams, make sure to provide alternative text [as described in the HTML specification](https://html.spec.whatwg.org/multipage/images.html#alt). + + +### Link to Widget of the Week videos + +Link to a widget's Flutter Widget of the Week video if it has one: + +```dart +/// {@youtube 560 315 https://www.youtube.com/watch?v=} +``` + +The first two arguments are the video's width and height. These should be `560` and `315` respectively. + + +### Clearly mark deprecated APIs + +We have conventions around deprecation. See the [Tree Hygiene](Tree-hygiene.md#deprecations) page for more details. + + +### Use `///` for public-quality private documentation + +In general, private code can and should also be documented. If that documentation is of good enough +quality that we could include it verbatim when making the class public (i.e. it satisfies all the +style guidelines above), then you can use `///` for those docs, even though they're private. + +Documentation of private APIs that is not of sufficient quality should only use `//`. That way, if +we ever make the corresponding class public, those documentation comments will be flagged as missing, +and we will know to examine them more carefully. + +Feel free to be conservative in what you consider "sufficient quality". It's ok to use `//` even if +you have multiple paragraphs of documentation; that's a sign that we should carefully rereview the +documentation when making the code public. + +### Dartdoc templates and macros + +Dartdoc supports creating templates that can be reused in other parts of the code. They are defined +like so: + +```dart +/// {@template } +/// ... +/// {@endtemplate} +``` + +and used via: + +```dart +/// {@macro } +``` + +The `` should be a unique identifier that is of the form `flutter.library.Class.member[.optionalDescription]`. + +For example: + +``` +// GOOD: +/// {@template flutter.rendering.Layer.findAnnotations.aboutAnnotations} +/// Annotations are great! +/// {@endtemplate + +// BAD: +/// {@template the_stuff!} +/// This is some great stuff! +/// {@endtemplate} +``` + +The `optionalDescription` component of the identifier is only necessary if there is more than one +template defined in one Dartdoc block. If a symbol is not part of a library, or not part of a class, then +just omit those parts from the ID. + +### Dartdoc-specific requirements + +The first paragraph of any dartdoc section must be a short self-contained sentence that explains the purpose +and meaning of the item being documented. Subsequent paragraphs then must elaborate. Avoid having the first paragraph have multiple sentences. (This is because the first paragraph gets extracted and used in tables of +contents, etc, and so has to be able to stand alone and not take up a lot of room.) + +When referencing a parameter, use backticks. However, when referencing a parameter that also corresponds to a property, use square brackets instead. (This contradicts the Dart style guide, which says to use square brackets for both. We do this because of [dartdoc issue 1486](https://github.com/dart-lang/dartdoc/issues/1486). Currently, there's no way to unambiguously reference a parameter. We want to avoid cases where a parameter that happens to be named the same as a property despite having no relationship to that property gets linked to the property.) + +```dart +// GOOD + + /// Creates a foobar, which allows a baz to quux the bar. + /// + /// The [bar] argument must not be null. + /// + /// The `baz` argument must be greater than zero. + Foo({ this.bar, int baz }) : assert(bar != null), assert(baz > 0); +``` + +Avoid using terms like "above" or "below" to reference one dartdoc section from another. Dartdoc sections are often shown alone on a Web page, the full context of the class is not present. + + +## Coding patterns and catching bugs early + +### Use asserts liberally to detect contract violations and verify invariants + +`assert()` allows us to be diligent about correctness without paying a +performance penalty in release mode, because Dart only evaluates asserts in +debug mode. + +It should be used to verify contracts and invariants are being met as we expect. +Asserts do not _enforce_ contracts, since they do not run at all in release builds. +They should be used in cases where it should be impossible for the condition +to be false without there being a bug somewhere in the code. + +The following example is from `box.dart`: + +```dart +abstract class RenderBox extends RenderObject { + // ... + + double getDistanceToBaseline(TextBaseline baseline, {bool onlyReal: false}) { + // simple asserts: + assert(!needsLayout); + assert(!_debugDoingBaseline); + // more complicated asserts: + assert(() { + final RenderObject parent = this.parent; + if (owner.debugDoingLayout) + return (RenderObject.debugActiveLayout == parent) && + parent.debugDoingThisLayout; + if (owner.debugDoingPaint) + return ((RenderObject.debugActivePaint == parent) && + parent.debugDoingThisPaint) || + ((RenderObject.debugActivePaint == this) && debugDoingThisPaint); + assert(parent == this.parent); + return false; + }); + // ... + return 0.0; + } + + // ... +} +``` + +### Prefer specialized functions, methods and constructors + +Use the most relevant constructor or method, when there are multiple +options. + +Example: + +```dart +// BAD: +const EdgeInsets.TRBL(0.0, 8.0, 0.0, 8.0); + +// GOOD: +const EdgeInsets.symmetric(horizontal: 8.0); +``` + + +### Minimize the visibility scope of constants + +Prefer using a local const or a static const in a relevant class than using a +global constant. + +As a general rule, when you have a lot of constants, wrap them in a +class. For examples of this, see +[lib/src/material/colors.dart](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/material/colors.dart). + + +### Avoid using `if` chains or `?:` or `==` with enum values + +Use `switch` with no `default` case if you are examining an enum, since the analyzer will warn you if you missed any of the values when you use `switch`. The `default` case should be avoided so that the analyzer will complain if a value is missing. Unused values can be grouped together with a single `break` or `return` as appropriate. + +Avoid using `if` chains, `? ... : ...`, or, in general, any expressions involving enums. + + +### Avoid using `var` and `dynamic` + +All variables and arguments are typed; avoid `dynamic` or `Object` in +any case where you could figure out the actual type. Always specialize +generic types where possible. Explicitly type all list and map +literals. Give types to all parameters, even in closures and even if you +don't use the parameter. + +This achieves two purposes: it verifies that the type that the compiler +would infer matches the type you expect, and it makes the code self-documenting +in the case where the type is not obvious (e.g. when calling anything other +than a constructor). + +Always avoid `var` and `dynamic`. If the type is unknown, prefer using +`Object` (or `Object?`) and casting, as using `dynamic` disables all +static checking. + + +### Avoid using `library` and `part of`. + +Prefer that each library be self-contained. Only name a `library` if you are documenting it (see the +documentation section). + +We avoid using `part of` because that feature makes it very hard to reason about how private a private +really is, and tends to encourage "spaghetti" code (where distant components refer to each other) rather +than "lasagna" code (where each section of the code is cleanly layered and separable). + + +### Avoid using `extension`. + +Extension methods are confusing to document and discover. To an end developer, +they appear no different than the built in API of the class, and discovering +the documentation and implementation of an extension is more challenging than +for class members. + +Prefer instead adding methods directly to relevant classes. If that is not +possible, create a method that clearly identifies what object(s) it works with +and is part of. + +(A rare exception can be made for extensions that provide temporary workarounds +when deprecating features. In those cases, however, the extensions and all their +members must be deprecated in the PR that adds them, and they must be removed +in accordance with our deprecation policy.) + + +### Avoid using `FutureOr` + +The `FutureOr` type is a Dart-internal type used to explain certain aspects of the `Future` API. In public APIs, avoid the temptation to create APIs that are both synchronous and asynchronous by returning this type, as it usually only results in the API being more confusing and less type safe. + +In certain extreme cases where the API absolutely needs to be asynchronous but a synchronous "escape hatch" is needed for performance, consider using `SynchronousFuture` (but be aware that this still suffers from many of the same risks of making the API only subtle and complicated). This is used, for example, when loading images in the Flutter framework. + +You may use `FutureOr` to accept a callback that may or may not return a `Future`. + + +### Avoid using `Expando` + +Generally speaking, `Expando` objects are a sign of an architectural problem. Carefully consider whether your usage is actually necessary. When your classes have clear documented ownership rules, there is usually a better solution. + +Expando objects tend to invite code that is hard to understand because one cannot simply follow references to find all the dependencies. + + +### Avoid using `@visibleForTesting` + +The [`@visibleForTesting`](https://api.flutter.dev/flutter/meta/visibleForTesting-constant.html) annotation marks a public API so that developers that have not disabled the `invalid_use_of_visible_for_testing_member` analyzer error get a warning when they use this API outside of a `test` directory. + +This means that the API has to be treated as being public (nothing prevents a developer from using the API even in non-test code), meaning it must be designed to be a public API, it must be documented, it must be tested, etc. At which point, there's really no reason not to just make it a public API. If anything, the use of `@visibleForTesting` becomes merely a crutch to convince ourselves that it's ok that we're making something public that we should really not have made public. + +So rather than rely on `@visibleForTesting`, consider designing your APIs so that they are directly testable using the public API, without exposing any sensitive internals. + +(One exception is combining `@visibleForTesting` with `@protected`. The `@protected` annotation marks a member as one that is intended for subclasses, so it is already a public API and considered as such. The `@visibleForTesting` annotation in that case merely enables the member to be called directly in tests without having to create a fake subclass and without having to add `//ignore` pragmas.) + + +### Never check if a port is available before using it, never add timeouts, and other race conditions. + +If you look for an available port, then try to open it, it's extremely likely that several times a week some other code will open that port between your check and when you open the port, and that will cause a failure. + +> Instead, have the code that opens the port pick an available port and return it, rather than being given a (supposedly) available port. + +If you have a timeout, then it's very likely that several times a week some other code will happen to run while your timeout is running, and your "really conservative" timeout will trigger even though it would have worked fine if the timeout was one second longer, and that will cause a failure. + +> Instead, have the code that would time out just display a message saying that things are unexpectedly taking a long time, so that someone interactively using the tool can see that something is fishy, but an automated system won't be affected. + +Race conditions like this are the primary cause of flaky tests, which waste everyone's time. + +Similarly, avoid delays or sleeps that are intended to coincide with how long something takes. You may think that waiting two seconds is fine because it normally takes 10ms, but several times a week your 10ms task will actually take 2045ms and your test will fail because waiting two seconds wasn't long enough. + +> Instead, wait for a triggering event. + + +### Avoid mysterious and magical numbers that lack a clear derivation + +Numbers in tests and elsewhere should be clearly understandable. When the provenance of a number is not obvious, +consider either leaving the expression or adding a clear comment (bonus points for leaving a diagram). + +```dart +// BAD +expect(rect.left, 4.24264068712); + +// GOOD +expect(rect.left, 3.0 * math.sqrt(2)); +``` + + +### Have good hygiene when using temporary directories + +Give the directory a unique name that starts with `flutter_` and ends with a period (followed by the autogenerated random string). + +For consistency, name the `Directory` object that points to the temporary directory `tempDir`, and create it with `createTempSync` unless you need to do it asynchronously (e.g. to show progress while it's being created). + +Always clean up the directory when it is no longer needed. In tests, use the `tryToDelete` convenience function to delete the directory. (We use `tryToDelete` because on Windows it's common to get "access denied" errors when deleting temporary directories. We have no idea why; if you can figure it out then that could simplify a lot of code!) + + +### Perform dirty checks in setters + +Dirty checks are processes to determine whether a changed values have been synchronized with the rest of the app. + +When defining mutable properties that mark a class dirty when set, use +the following pattern: + +```dart +/// Documentation here (don't wait for a later commit). +TheType get theProperty => _theProperty; +TheType _theProperty; +void set theProperty(TheType value) { + assert(value != null); + if (_theProperty == value) + return; + _theProperty = value; + markNeedsWhatever(); // the method to mark the object dirty +} +``` + +The argument is called 'value' for ease of copy-and-paste reuse of +this pattern. If for some reason you don't want to use 'value', use +'newProperty' (where 'Property' is the property name). + +Start the method with any asserts you need to validate the value. + +Don't do anything _else_ in setters, other than marking the object as dirty and updating internal state. +Getters and setters should not have significant side-effects. For example, setting a property whose value +is a callback should not result in that callback being invoked. Setting a property whose value is an object +of some sort should not result in any of that object's methods being called. + + +### Common boilerplates for `operator ==` and `hashCode` + +We have many classes that override `operator ==` and `hashCode` ("value classes"). To keep the code consistent, +we use the following style for these methods: + +```dart + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is Foo + && other.bar == bar + && other.baz == baz + && other.quux == quux; + } + + @override + int get hashCode => Object.hash(bar, baz, quux); +``` + +For objects with a lot of properties, consider adding the following at the top of the `operator ==`: + +```dart + if (identical(other, this)) { + return true; + } +``` + +(We don't yet use this _exact_ style everywhere, so feel free to update code you come across that isn't yet using it.) + +In general, consider carefully whether overriding `operator ==` is a good idea. It can be expensive, especially +if the properties it compares are themselves comparable with a custom `operator ==`. If you do override equality, +you should use `@immutable` on the class hierarchy in question. + + +### Override `toString` + +Use [`Diagnosticable`](https://api.flutter.dev/flutter/foundation/Diagnosticable-mixin.html) (rather than directly overriding `toString`) on all but the most trivial classes. That allows us to inspect the object from [devtools](https://pub.dartlang.org/packages/devtools) and IDEs. + +For trivial classes, override `toString` as follows, to aid in debugging: + +```dart + @override + String toString() => '${objectRuntimeType(this, 'NameOfObject')}($bar, $baz, $quux)'; +``` + +...but even then, consider using `Diagnosticable` instead. Avoid using `$runtimeType`, since it adds a non-trivial cost even in release and profile mode. The `objectRuntimeType` method handles this for you, falling back to a supplied constant string when asserts are disabled. + + +### Be explicit about `dispose()` and the object lifecycle + +Even though Dart is garbage collected, having a defined object lifecycle and explicit ownership model (describing in the API documentation who is allowed to mutate the object, for instance) is important to avoid subtle bugs and confusing designs. + +If your class has a clear "end of life", for example, provide a `dispose()` method to clean up references such as listeners that would otherwise prevent some objects from getting garbage collected. For example, consider a widget that has a subscription on a global broadcast stream (that might have other listeners). That subscription will keep the widget from getting garbage collected until the stream itself goes away (which, for a global stream, might never happen). + +In general, pretending that Dart does not have garbage collection is likely to lead to less confusing and buggy code, because it forces you to think about the implications of object ownership and lifecycles. + + +### Test APIs belong in the test frameworks + +Mechanisms that exist for test purposes do not belong in the core libraries, they belong in test harnesses. This keeps the cost of the main library down in production and avoids the risk that people might abuse test APIs. + + +### Immutable classes should not have hidden state + +Immutable classes (those with `const` constructors) should not have hidden state. For example, they should not use private statics or Expandos. If they are stateful, then they should not be `const`. + + +### Avoid `sync*`/`async*` + +Using generator functions (`sync*`/`async*`) can be a powerful improvement when callers will +actually lazily evaluate the iterable and each iteration is expensive _or_ there are a very +large number of iterations. + +It should not be used in place of building and returning a `List`, particularly for trivial methods +that only yield a small number of members or when callers will evaluate the whole collection +anyway. It should also be avoided in very large functions. + +It incurs runtime overhead in maintaining and using an iterator, and space overhead for the compiler +to actually desugar the generator into something that uses an iterator class. + +## Writing tests + +### Make each test entirely self-contained + +Embrace code duplication in tests. It makes it easier to make new tests by copying and pasting them and +tweaking a few things. + +Avoid using `setUp`, `tearDown`, and similar features, as well as test-global variables or other state +shared between tests. They make writing tests easier but make maintaining them, debugging them, and +refactoring code much harder. (These are commonly used in Flutter's codebase today, but that is almost +always a mistake. When you are editing a file that uses those features, aim to reduce the number of +tests using them while you're there.) + +Specifically, we are trying to avoid shared state, which could persist across tests, and non-local +side-effects, which would prevent being able to move a test to another file without breaking the test. +(It's fine to factor out code into functions that are called by tests, so long as the functions don't +have side-effects that might change how other tests run.) + + +### Prefer more test files, avoid long test files + +Avoid adding tests to files that already have more than one or two hundred lines of code. It's easier +to understand a test file when it has only a few related tests, rather than when it has an entire test +suite. (It also makes developing the tests faster because you can run the test file faster.) + + +### Avoid using `pumpAndSettle` + +As per the API docs for [pumpAndSettle](https://main-api.flutter.dev/flutter/flutter_test/WidgetController/pumpAndSettle.html), prefer using explicit [`pump`](https://main-api.flutter.dev/flutter/flutter_test/WidgetController/pump.html) calls rather than `pumpAndSettle`. + +Using `pumpAndSettle`, especially without checking its return value, makes it very easy for bugs to sneak in where we trigger animations across multiple frames instead of immediately. It is almost always the case that a call to `pumpAndSettle` is more strictly correctly written as two `pump` calls, one to trigger the animations and one (with a duration) to jump to the point after the animations. + + +## Naming + +### Begin global constant names with prefix "k" + +Examples: + +```dart +const double kParagraphSpacing = 1.5; +const String kSaveButtonTitle = 'Save'; +``` + +However, where possible avoid global constants. Rather than `kDefaultButtonColor`, consider `Button.defaultColor`. If necessary, consider creating a class with a private constructor to hold relevant constants. + + +### Avoid abbreviations + +Unless the abbreviation is more recognizable than the expansion (e.g. XML, HTTP, JSON), expand abbrevations +when selecting a name for an identifier. In general, avoid one-character names unless one character is idiomatic +(for example, prefer `index` over `i`, but prefer `x` over `horizontalPosition`). + + +### Avoid anonymous parameter names + +Provide full type information and names even for parameters that are otherwise unused. This makes it easier for +people reading the code to tell what is actually going on (e.g. what is being ignored). For example: + +```dart + onTapDown: (TapDownDetails details) { print('hello!'); }, // GOOD + onTapUp: (_) { print('good bye'); }, // BAD +``` + + +### Naming rules for typedefs and function variables + +When naming callbacks, use `FooCallback` for the typedef, `onFoo` for +the callback argument or property, and `handleFoo` for the method +that is called. If `Foo` is a verb, prefer the present tense to the +past tense (e.g. `onTap` instead of `onTapped`). + +If you have a callback with arguments but you want to ignore the +arguments, give the type and names of the arguments anyway. That way, +if someone copies and pastes your code, they will not have to look up +what the arguments are. + +Never call a method `onFoo`. If a property is called `onFoo` it must be +a function type. (For all values of "Foo".) + +Prefer using `typedef`s to declare callbacks. Typedefs benefit from having +documentation on the type itself and make it easier to read and find +common callsites for the signature. + +### Spell words in identifiers and comments correctly + +Our primary source of truth for spelling is the +[Material Design Specification](https://material.google.com/). +Our secondary source of truth is dictionaries. + +Avoid "cute" spellings. For example, 'colors', not 'colorz'. + +Prefer US English spellings. For example, 'colorize', not 'colourise', and 'canceled', not 'cancelled'. + +Prefer compound words over "cute" spellings to avoid conflicts with reserved words. For example, 'classIdentifier', not 'klass'. + + +### Capitalize identifiers consistent with their spelling + +In general, we use [Dart's recommendations](https://dart.dev/guides/language/effective-dart/style#identifiers) for naming identifiers. Please consider the following additional guidelines: + +If a word is correctly spelled (according to our sources of truth as described in the previous section) as a single word, then it should not have any inner capitalization or spaces. + +For examples, prefer `toolbar`, `scrollbar`, but `appBar` ('app bar' in documentation), `tabBar` ('tab bar' in documentation). + +Similarly, prefer `offstage` rather than `offStage`. + +Avoid using class names with `iOS` when possible. The capitalization of `iOS` is supposed to be exactly that, but that doesn't work well with camelCase and even less with UpperCamelCase; use alternatives like "Cupertino" or "UIKit" instead when possible. If you really really must use "iOS" in an identifier, capitalize it to `IOS`. Whether or not [the two-letter exception](https://dart.dev/guides/language/effective-dart/style#do-capitalize-acronyms-and-abbreviations-longer-than-two-letters-like-words) applies to "iOS" is debatable, but `IOS` is consistent with Dart APIs, and the alternatives (`IOs`, `Ios`) are even more jarring. (Previous versions of this guide incorrectly indicated that `Ios` was the correct capitalization when necessary; this form should not be used in new code.) + + +### Avoid double negatives in APIs + +Name your boolean variables in positive ways, such as "enabled" or "visible", even if the default value is true. + +This is because, when you have a property or argument named "disabled" or "hidden", it leads to code such as `input.disabled = false` or `widget.hidden = false` when you're trying to enable or show the widget, which is very confusing. + + +### Prefer naming the argument to a setter `value` + +Unless this would cause other problems, use `value` for the name of a setter's argument. This makes it easier to copy/paste the setter later. + + +### Qualify variables and methods used only for debugging + +If you have variables or methods (or even classes!) that are only used in debug mode, +prefix their names with `debug` or `_debug` (or, for classes, `_Debug`). + +Do not use debugging variables or methods (or classes) in production code. + + +### Avoid naming undocumented libraries + +In other words, do not use the `library` keyword, unless it is a +documented top-level library intended to be imported by users. + +### Avoid "new/old" modifiers in code + +The definition of "New" changes as code grows and time passes. If the code +needed a replacement version the odds of needing another replacement in the +future is higher. Instead find a name that represents the idea being being used +or replaced. + + +## Comments + +### Avoid checking in comments that ask questions + +Find the answers to the questions, or describe the confusion, including +references to where you found answers. + +If commenting on a workaround due to a bug, also leave a link to the issue and +a TODO to clean it up when the bug is fixed. + +Example: + +```dart +// BAD: + +// What should this be? + +// This is a workaround. + + +// GOOD: + +// According to this specification, this should be 2.0, but according to that +// specification, it should be 3.0. We split the difference and went with +// 2.5, because we didn't know what else to do. + +// TODO(username): Converting color to RGB because class Color doesn't support +// hex yet. See http://link/to/a/bug/123 +``` + +TODOs should include the string TODO in all caps, followed by the GitHub username of +the person with the best _context_ about the problem referenced by the TODO in +parenthesis. A TODO is not a commitment that the person referenced will fix the +problem, it is intended to be the person with enough context to explain the problem. +Thus, when you create a TODO, it is almost always your username that is given. + +Including an issue link in a TODO description is required. + +_(See also [#37519](https://github.com/flutter/flutter/issues/37519), +which tracks a proposal to change the syntax of TODOs to not include usernames.)_ + +### Comment all `// ignores` + +Sometimes, it is necessary to write code that the analyzer is unhappy with. + +If you find yourself in this situation, consider how you got there. Is the analyzer actually correct but you +don't want to admit it? Think about how you could refactor your code so that the analyzer is happy. If such a +refactor would make the code better, do it. (It might be a lot of work... embrace the yak shave.) + +If you are really really sure that you have no choice but to silence the analyzer, use `// ignore: `. The ignore +directive should be on the same line as the analyzer warning. + +If the ignore is temporary (e.g. a workaround for a bug in the compiler or analyzer, or a workaround for some known problem in Flutter that you cannot fix), then add a link to the relevant bug, as follows: + +```dart + foo(); // ignore: lint_code, https://link.to.bug/goes/here +``` + +If the ignore directive is permanent, e.g. because one of our lints has some unavoidable false positives and in this case violating the lint is definitely better than all other options, then add a comment explaining why: + +```dart + foo(); // ignore: lint_code, sadly there is no choice but to do + // this because we need to twiddle the quux and the bar is zorgle. +``` + +### Comment all test skips + +On very rare occasions it may be necessary to skip a test. To do that, use the `skip` argument. +Any time you use the `skip` argument, file an issue describing why it is skipped and +include a link to that issue in the code. + + +### Comment empty closures to `setState` + +Generally the closure passed to `setState` should include all the code that changes the state. Sometimes this is not possible because the state changed elsewhere and the `setState` is called in response. In those cases, include a comment in the `setState` closure that explains what the state is that changed. + +```dart + setState(() { /* The animation ticked. We use the animation's value in the build method. */ }); +``` + + +## Formatting + +These guidelines have no technical effect, but they are still important purely +for consistency and readability reasons. + +We do not yet use `dartfmt` (except in flutter/packages). +Flutter code tends to use patterns that +the standard Dart formatter does not handle well. We are +[working with Dart team](https://github.com/flutter/flutter/issues/2025) to make `dartfmt` aware of these patterns. + + +### In defense of the extra work that hand-formatting entails + +Flutter code might eventually be read by hundreds of thousands of people each day. +Code that is easier to read and understand saves these people time. Saving each +person even a second each day translates into hours or even _days_ of saved time +each day. The extra time spent by people contributing to Flutter directly translates +into real savings for our developers, which translates to real benefits to our end +users as our developers learn the framework faster. + + +### Constructors come first in a class + +The default (unnamed) constructor should come first, then the named +constructors. They should come before anything else (including, e.g., constants or static methods). + +This helps readers determine whether the class has a default implied constructor or not at a glance. If it was possible for a constructor to be anywhere in the class, then the reader would have to examine every line of the class to determine whether or not there was an implicit constructor or not. + + +### Order other class members in a way that makes sense + +The methods, properties, and other members of a class should be in an order that +will help readers understand how the class works. + +If there's a clear lifecycle, then the order in which methods get invoked would be useful, for example an `initState` method coming before `dispose`. This helps readers because the code is in chronological order, so +they can see variables get initialized before they are used, for instance. Fields should come before the methods that manipulate them, if they are specific to a particular group of methods. + +> For example, RenderObject groups all the layout fields and layout +> methods together, then all the paint fields and paint methods, because layout +> happens before paint. + +If no particular order is obvious, then the following order is suggested, with blank lines between each one: + +1. Constructors, with the default constructor first. +2. Constants of the same type as the class. +3. Static methods that return the same type as the class. +4. Final fields that are set from the constructor. +5. Other static methods. +6. Static properties and constants. +7. Members for mutable properties, without new lines separating the members of a property, each property in the order: + - getter + - private field + - setter +8. Read-only properties (other than `hashCode`). +9. Operators (other than `==`). +10. Methods (other than `toString` and `build`). +11. The `build` method, for `Widget` and `State` classes. +12. `operator ==`, `hashCode`, `toString`, and diagnostics-related methods, in that order. + +Be consistent in the order of members. If a constructor lists multiple +fields, then those fields should be declared in the same order, and +any code that operates on all of them should operate on them in the +same order (unless the order matters). + + +### Constructor syntax + +If you call `super()` in your initializer list, put a space between the +constructor arguments' closing parenthesis and the colon. If there's +other things in the initializer list, align the `super()` call with the +other arguments. Don't call `super` if you have no arguments to pass up +to the superclass. + +```dart +// one-line constructor example +abstract class Foo extends StatelessWidget { + Foo(this.bar, { Key key, this.child }) : super(key: key); + final int bar; + final Widget child; + // ... +} + +// fully expanded constructor example +abstract class Foo extends StatelessWidget { + Foo( + this.bar, { + Key key, + Widget childWidget, + }) : child = childWidget, + super( + key: key, + ); + final int bar; + final Widget child; + // ... +} +``` + + +### Prefer a maximum line length of 80 characters + +Aim for a maximum line length of roughly 80 characters, but prefer going over if breaking the +line would make it less readable, or if it would make the line less consistent +with other nearby lines. Prefer avoiding line breaks after assignment operators. + +```dart +// BAD (breaks after assignment operator and still goes over 80 chars) +final int a = 1; +final int b = 2; +final int c = + a.very.very.very.very.very.long.expression.that.returns.three.eventually().but.is.very.long(); +final int d = 4; +final int e = 5; + +// BETTER (consistent lines, not much longer than the earlier example) +final int a = 1; +final int b = 2; +final int c = a.very.very.very.very.very.long.expression.that.returns.three.eventually().but.is.very.long(); +final int d = 4; +final int e = 5; +``` + +```dart +// BAD (breaks after assignment operator) +final List _members = + [const Quux(), const Qaax(), const Qeex()]; + +// BETTER (only slightly goes over 80 chars) +final List _members = [const Quux(), const Qaax(), const Qeex()]; + +// BETTER STILL (fits in 80 chars) +final List _members = [ + const Quux(), + const Qaax(), + const Qeex(), +]; +``` + + +### Indent multi-line argument and parameter lists by 2 characters + +When breaking an argument list into multiple lines, indent the +arguments two characters from the previous line. + +Example: + +```dart +Foo f = Foo( + bar: 1.0, + quux: 2.0, +); +``` + +When breaking a parameter list into multiple lines, do the same. + + +### If you have a newline after some opening punctuation, match it on the closing punctuation. + +And vice versa. + +Example: + +```dart +// BAD: + foo( + bar, baz); + foo( + bar, + baz); + foo(bar, + baz + ); + +// GOOD: + foo(bar, baz); + foo( + bar, + baz, + ); + foo(bar, + baz); +``` + +### Use a trailing comma for arguments, parameters, and list items, but only if they each have their own line. + +Example: +```dart +List myList = [ + 1, + 2, +]; +myList = [3, 4]; + +foo1( + bar, + baz, +); +foo2(bar, baz); +``` + +Whether to put things all on one line or whether to have one line per item is an aesthetic choice. We prefer whatever ends up being most readable. Typically this means that when everything would fit on one line, put it all on one line, otherwise, split it one item to a line. + +However, there are exceptions. For example, if there are six back-to-back lists and all but one of them need multiple lines, then one would not want to have the single case that does fit on one line use a different style than the others. + +```dart + // BAD (because the second list is unnecessarily and confusingly different than the others): + List myLongList1 = [ + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + ]; + List myLongList2 = [ Quux(1), Quux(2) ]; + List myLongList3 = [ + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + ]; + + // GOOD (code is easy to scan): + List myLongList1 = [ + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + ]; + List myLongList2 = [ + Quux(1), + Quux(2), + ]; + List myLongList3 = [ + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + FooBarBaz(one: firstArgument, two: secondArgument, three: thirdArgument), + ]; +``` + +### Prefer single quotes for strings + +Use double quotes for nested strings or (optionally) for strings that contain single quotes. +For all other strings, use single quotes. + +Example: + +```dart +print('Hello ${name.split(" ")[0]}'); +``` + + +### Consider using `=>` for short functions and methods + +But only use `=>` when everything, including the function declaration, fits +on a single line. + +Example: + +```dart +// BAD: +String capitalize(String s) => + '${s[0].toUpperCase()}${s.substring(1)}'; + +// GOOD: +String capitalize(String s) => '${s[0].toUpperCase()}${s.substring(1)}'; + +String capitalize(String s) { + return '${s[0].toUpperCase()}${s.substring(1)}'; +} +``` + +### Use `=>` for inline callbacks that just return literals or switch expressions + +If your code is passing an inline closure that merely returns a list or +map literal, or a switch expression, or is merely calling another function, +then if the argument is on its own line, then rather than using braces and a +`return` statement, you can instead use the `=>` form. When doing this, the +closing `]`, `}`, or `)` bracket will line up with the argument name, for +named arguments, or the `(` of the argument list, for positional arguments. + +For example: + +```dart + // GOOD, but slightly more verbose than necessary since it doesn't use => + @override + Widget build(BuildContext context) { + return PopupMenuButton( + onSelected: (String value) { print('Selected: $value'); }, + itemBuilder: (BuildContext context) { + return >[ + PopupMenuItem( + value: 'Friends', + child: MenuItemWithIcon(Icons.people, 'Friends', '5 new') + ), + PopupMenuItem( + value: 'Events', + child: MenuItemWithIcon(Icons.event, 'Events', '12 upcoming') + ), + ]; + } + ); + } + + // GOOD, does use =>, slightly briefer + @override + Widget build(BuildContext context) { + return PopupMenuButton( + onSelected: (String value) { print('Selected: $value'); }, + itemBuilder: (BuildContext context) => >[ + PopupMenuItem( + value: 'Friends', + child: MenuItemWithIcon(Icons.people, 'Friends', '5 new') + ), + PopupMenuItem( + value: 'Events', + child: MenuItemWithIcon(Icons.event, 'Events', '12 upcoming') + ), + ] + ); + } +``` + +The important part is that the closing punctuation lines up with the start +of the line that has the opening punctuation, so that you can easily determine +what's going on by just scanning the indentation on the left edge. + + +### Prefer single line for short collection-if and collection-for + +If the code fits in a single line don't split it. + +For example: + +```dart +// BAD +final List args = [ + 'test', + if (useFlutterTestFormatter) '-rjson' + else '-rcompact', + '-j1', + if (!hasColor) + '--no-color', + for (final String opt in others) + opt, +]; + +// GOOD +final List args = [ + 'test', + if (useFlutterTestFormatter) '-rjson' else '-rcompact', + '-j1', + if (!hasColor) '--no-color', + for (final String opt in others) opt, +]; +``` + +Otherwise indent with 2 spaces + +```dart +// GOOD +final List args = [ + 'test', + if (useFlutterTestFormatter) + '-rjson.very.very.very.very.very.very.very.very.long' + else + '-rcompact.very.very.very.very.very.very.very.very.long', + '-j1', + if (!hasColor) + '--no-color.very.very.very.very.very.very.very.very.long', + for (final String opt in others) + methodVeryVeryVeryVeryVeryVeryVeryVeryVeryLong(opt), +]; +``` + +### Put spread inside collection-if or collection-for on the same line + +Spreads inside collection-if or collection-for are used to insert several elements. It's easier to read to have spread on the line of `if`, `else`, or `for`. + +```dart +// BAD +final List args = [ + 'test', + if (condA) + ...[ + 'b', + 'c', + ] + else + '-rcompact', + for (final String opt in others) + ...[ + m1(opt), + m2(opt), + ], +]; + +// GOOD +final List args = [ + 'test', + if (condA) ...[ + 'b', + 'c', + ] else + '-rcompact', + for (final String opt in others) ...[ + m1(opt), + m2(opt), + ], +]; +``` + + +### Use braces for long functions and methods + +Use a block (with braces) when a body would wrap onto more than one line (as opposed to using `=>`; the cases where you can use `=>` are discussed in the previous two guidelines). + + +### Separate the 'if' expression from its statement + +(This is enforced by the `always_put_control_body_on_new_line` and `curly_braces_in_flow_control_structures` lints.) + +Don't put the statement part of an 'if' statement on the same line as +the expression, even if it is short. (Doing so makes it unobvious that +there is relevant code there. This is especially important for early +returns.) + +Example: + +```dart +// BAD: +if (notReady) return; + +// GOOD: +// Use this style for code that is expected to be publicly read by developers +if (notReady) { + return; +} +``` + +If the body is more than one line, or if there is an `else` clause, wrap the body in braces: + +```dart +// BAD: +if (foo) + bar( + 'baz', + ); + +// BAD: +if (foo) + bar(); +else + baz(); + +// GOOD: +if (foo) { + bar( + 'baz', + ); +} + +// GOOD: +if (foo) { + bar(); +} else { + baz(); +} +``` + +We require bodies to make it very clear where the bodies belong. + +### Align expressions + +Where possible, subexpressions on different lines should be aligned, to make the structure of the expression easier. When doing this with a `return` statement chaining `||` or `&&` operators, consider putting the operators on the left hand side instead of the right hand side. + +```dart +// BAD: +if (foo.foo.foo + bar.bar.bar * baz - foo.foo.foo * 2 + + bar.bar.bar * 2 * baz > foo.foo.foo) { + // ... +} + +// GOOD (notice how it makes it obvious that this code can be simplified): +if (foo.foo.foo + bar.bar.bar * baz - + foo.foo.foo * 2 + bar.bar.bar * 2 * baz > foo.foo.foo) { + // ... +} +// After simplification, it fits on one line anyway: +if (bar.bar.bar * 3 * baz > foo.foo.foo * 2) { + // ... +} +``` + +```dart +// BAD: +return foo.x == x && + foo.y == y && + foo.z == z; + +// GOOD: +return foo.x == x && + foo.y == y && + foo.z == z; + +// ALSO GOOD: +return foo.x == x + && foo.y == y + && foo.z == z; +``` + +### Prefer `+=` over `++` + +We generally slightly prefer `+=` over `++`. + +In some languages/compilers postfix `++` is an antipattern because of performance reasons, and so it's easier to just avoid it in general. + +Because of the former, some people will use the prefix `++`, but this leads to statements that lead with punctuation, which is aesthetically displeasing. + +In general, mutating variables as part of larger expressions leads to confusion about the order of operations, and entwines the increment with another calculation. + +Using `++` does not make it obvious that the underlying variable is actually being mutated, whereas `+=` more clearly does (it's an assignment with an `=` sign). + +Finally, `+=` is more convenient when changing the increment to a number other than 1. + +### Use double literals for double constants + +To make it clearer when something is a double or an integer, even if the number is a round number, include a decimal point in double literals. For example, if a function `foo` takes a double, write `foo(1.0)` rather than `foo(1)` because the latter makes it look like the function takes an integer. + + +## Conventions + +### Expectations around potential crashes in the engine + +The engine should never crash in an uncontrolled fashion. + +In unopt mode, the engine C++ code should have asserts that check for contract violations. + +In opt debug mode, the `dart:ui` code should have asserts that check for contract violations. These asserts should have messages that are detailed and useful, if they are not self-explanatory. + +In opt release mode, the exact behavior can be arbitrary so long as it is defined and non-vulnerable for every input. For example, a contract violation could be checked in Dart, with an exception thrown for invalid data; but equally valid would be for the C++ code to return early when faced with invalid data. The idea is to optimize for speed in the case where the data is valid. + +For practical purposes we don't currently check for out-of-memory errors. Ideally we would. + + +### Features we expect every widget to implement + +Now that the Flutter framework is mature, we expect every new widget to implement all of the following: + +- full accessibility, so that on both Android and iOS the widget works with the native accessibility tools. +- full localization with default translations for all our default languages. +- full support for both right-to-left and left-to-right layouts, driven by the ambient Directionality. +- full support for text scaling up to at least 3.0x. +- documentation for every member; see the section above for writing prompts to write documentation. +- good performance even when used with large amounts of user data. +- a complete lifecycle contract with no resource leaks (documented, if it differs from usual widgets). +- tests for all the above as well as all the unique functionality of the widget itself. + +It's the job of the programmer to provide these before submitting a PR. + +It's the job of the reviewer to check that all these are present when reviewing a PR. + + +### Use of streams in Flutter framework code + +In general we avoid the use of `Stream` classes in Flutter framework code (and `dart:ui`). Streams in general are fine and we encourage people to use them. However, they have some disadvantages and we prefer to keep them out of the framework for this reason. For example: + +* Streams have a heavy API. For example, they can be synchronous or asynchronous, broadcast or single-client, and they can be paused and resumed. It is non-trivial to determine the right semantics for a particular stream when it will be used in all the ways framework code could be used, and it is non-trivial to fully implement the semantics correctly. + +* Streams don't have a "current value" accessor, which makes them difficult to use in `build` methods. + +* The APIs for manipulating streams are non-trivial (e.g. transformers). + +We generally prefer `Listenable` subclasses (e.g. `ValueNotifier` or `ChangeNotifier`). + +In the specific case of exposing a value from `dart:ui` via a callback, we expect the bindings in the framework to register a single listener and then provide a mechanism to fan the notification to multiple listeners. Sometimes this is a rather involved process (e.g. the `SchedulerBinding` exists almost entirely for the purpose of doing this for `onBeginFrame`/`onDrawFrame`, and the `GesturesBinding` exists exclusively for the purpose of doing this for pointer events). Sometimes it's simpler (e.g. propagating changes to life cycle events). + + +## Packages + +### Structure + +As per normal Dart conventions, a package should have a single import +that reexports all of its API. + +> For example, +> [rendering.dart](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/rendering.dart) +> exports all of lib/src/rendering/*.dart + +If a package uses, as part of its exposed API, types that it imports +from a lower layer, it should reexport those types. + +> For example, +> [material.dart](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/material.dart) +> reexports everything from +> [widgets.dart](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/widgets.dart). +> Similarly, the latter +> [reexports](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/widgets/basic.dart) +> many types from +> [rendering.dart](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/rendering.dart), +> such as `BoxConstraints`, that it uses in its API. On the other +> hand, it does not reexport, say, `RenderProxyBox`, since that is not +> part of the widgets API. + +Flutter packages should not have "private" APIs other than those that are +prefixed with underscores. Every file in a Flutter package should be exported. +("Private" files can still be imported so they are still actually public APIs; +by not exporting them explicitly we are tricking ourselves into thinking of +them as private APIs which may lead to poor design.) + +When developing new features in Flutter packages, one should follow the philosophy: + +> Only expose the APIs that are necessities to the features. + +Since the private classes in dart language are file-bound, this may often result in +large file sizes. In Flutter, this is considered to be more preferable than creating +multiple smaller files but exposing intermediate classes that are not needed to use +the features. + + +### Import conventions + +Under `lib/src`, for in-folder import, use relative import. For cross-folder import, +import the entire package with absolute import. + +When importing the `rendering.dart` library into higher level libraries, +if you are creating new +`RenderObject` subclasses, import the entire library. If you are only +referencing specific `RenderObject` subclasses, then import the +`rendering.dart` library with a `show` keyword explicitly listing the +types you are importing. This latter approach is generally good for +documenting why exactly you are importing particularly libraries and +can be used more generally when importing large libraries for very +narrow purposes. + +By convention, `dart:ui` is imported using `import 'dart:ui' show +...;` for common APIs (this isn't usually necessary because a lower +level will have done it for you), and as `import 'dart:ui' as ui show +...;` for low-level APIs, in both cases listing all the identifiers +being imported. See +[basic_types.dart](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/painting/basic_types.dart) +in the `painting` package for details of which identifiers we import +which way. Other packages are usually imported undecorated unless they +have a convention of their own (e.g. `path` is imported `as path`). + +The `dart:math` library is always imported `as math`. + +### Deciding where to put code + +As a general rule, if a feature is entirely self-contained (not requiring low-level integration into the Flutter framework) and is not something with universal appeal, we would encourage that that feature be provided as a package. + +We try to be very conservative with what we put in the core framework, because there's a high cost to having anything there. We have to commit to supporting it for years to come, we have to document it, test it, create samples, we have to consider everyone's varied desires which they may have as they use the feature, we have to fix bugs. If there are design problems, we may not find out for a long time but then once we do we then have to figure out how to fix them without breaking downstream code, or we have to migrate all our existing widgets to the new architecture, etc. + +Basically, code is expensive. So before we take it, if possible, we like to see if we can prove the code's value. By creating a package, we can see if people use the feature, how they like it, whether it would be useful for the framework, etc, without having to take on the costs. + +We have two main kinds of packages that are maintained by the Flutter team, both of which live in [flutter/packages](https://github.com/flutter/packages): + +1. Regular packages, which are pure Dart. Packages can also be written and maintained by people outside the Flutter team. + +2. Plugin packages, which provide access to platform features and therefore include native code (such as Java or Objective-C) as well as Dart. + +You can also consider making an independent package. Packages are published to [pub](https://pub.dartlang.org/). + +Often once we have made a package we find that that is actually sufficient to solve the problem that the code sets out to solve, and there ends up being no need to bring it into the framework at all. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/Tree-hygiene.md b/novelforge-project/agent-workspace/flutter/docs/contributing/Tree-hygiene.md new file mode 100644 index 0000000000000000000000000000000000000000..8684161ff0bb077bf7ef6a3bfd84de95f4bf61fe --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/Tree-hygiene.md @@ -0,0 +1,481 @@ +## tl;dr + +- Regressions should be [reverted first](../infra/Landing-Changes-With-Autosubmit.md) and questions asked later. Bringing the tree to green is higher priority. +- A breaking change is one that breaks the tests in the flutter/tests repo, and those need a migration guide. +- Expect that a new patch will be reviewed within two weeks, unless it is fixing a P0 bug in which case it should be reviewed the same day. If it has not been reviewed in that timeframe, reach out on [Chat](Chat.md). Remember that reviewers are human beings with additional professional and personal responsibilities. + +## Introduction + +This page covers how to land a PR and other aspects of writing code for +Flutter other than the actual writing of the code. For guidance on +designing APIs, documenting, and formatting your code, see the +[Style guide for Flutter repo](Style-guide-for-Flutter-repo.md) document. + +## Overview + +The general process for submitting code to a Flutter repository is as follows: + +1. Fork the repository on GitHub (see the + [contributing guide](https://github.com/flutter/flutter/blob/main/CONTRIBUTING.md) + for advice on doing this and in general setting up your development environment). + +2. If there is not already an issue covering the work you are interested in doing, + then file a new bug to describe the issue you are addressing. Having an issue means + that if we have to revert the PR, we can reopen the issue and not lose track of the + fact that the work didn't fully land. Similarly if someone works on a PR then stops + before it can land, having an issue means we have somewhere to point to the code when + we close the PR without landing it, so other people can take it over. + +3. Discuss your design on the issue. See [Design Documents](Design-Documents.md) for advice. + You may find it useful to create a Google Doc to + solicit feedback (use the template at [flutter.dev/go/template](https://flutter.dev/go/template)). + You may wish to e-mail the mailing list, or discuss the topic + on our [Chat](Chat.md) channels. The more buy-in you get from the rest of the + team (especially the relevant leads), the easier the rest of the process will be. + You can put the label "proposal" on your issue to indicate that you have a design + up for discussion in the issue. + +4. If the work you are doing affects our privacy surface, such as modifying how + we collect analytics, crash logs, or the like, then please reach out to a Googler + to discuss your changes (you'll want to start a Google Doc to + solicit feedback, use the template at [flutter.dev/go/template](https://flutter.dev/go/template)), + who will be happy to loop in one of our engineers who explicitly focus on privacy issues + so that they're able to give feedback on the work you plan to do. + +5. Create a branch off of `main` (or if the repository has not yet switched to + having a `main` branch, from `master`) on your GitHub fork of the repository, and implement + your change. Make sure it is tested (see the next section for details). + + You must follow the guidelines described in the [Style guide for Flutter repo](Style-guide-for-Flutter-repo.md). + Files must not have trailing spaces. + For the engine repository, C, C++, and Objective-C code should be formatted with + `clang-format` before submission (use `buildtools//clang/bin/clang-format + --style=file -i`). + +6. Submit this branch as a PR to the relevant Flutter repository. + _(See also: [Signing commits](./Signing-commits.md))_ + +7. Get your code reviewed (see below). You should probably reach out to the relevant + expert(s) for the areas you touched and ask them to review your PR directly. + GitHub sometimes recommends specific reviewers; if you're not sure who to ask, + that's probably a good place to start. + +8. Make sure your PR passes all the pre-commit tests. Consider running some of the + post-commit tests locally (see the + [devicelab](https://github.com/flutter/flutter/blob/main/dev/devicelab/README.md) + directory). If any tests break, especially the `customer_testing` tests, please + see the breaking change policy section below for details on how to proceed. + + The `luci-flutter` test isn't checking your PR, it's letting you know + whether the tree itself is passing the tests right now (including post- + commit tests). + + **If the trees or dashboards are showing any regressions, only fixes + that improve the situation are allowed to go in.** + +9. Once everything is green and you have an LGTM from the owners of the code you are affecting (or someone to whom they + have delegated), and an LGTM from any other contributor who left comments, add the "autosubmit" label if you're in the flutter-hackers github group. A bot will land the patch when it feels like it. If you're not in the flutter-hackers group a reviewer will add the label for you. + +10. Watch the post-commit tests on the [dashboard](https://dashboard.flutter.dev/#/build) to make sure everything passes. If anything + goes wrong, revert your patch and study the problem. You should aim to be the one to revert your patch. You will be racing everyone + else on the team who will also be trying to revert your patch. (See below for guidance on reverting PRs.) + +_See also: [What should I work on?](What-should-I-work-on.md)_ + +## Tests + +Every change in the flutter/engine, flutter/flutter, and flutter/packages repos must be tested, except for PRs that: + +* only remove code (no modified or added lines) to remove a feature or remove dead code. (Removing code to fix a bug still needs a test.) +* only affect comments (including documentation). +* only affect code inside the `.github` directory, `.cirrus.yml` or `.ci.yaml` config files. +* only affect `.md` files. +* are generated by automated bots (rollers). +* have an _explicit_ exemption (a message from a member of `@test-exemption-reviewer` on Discord starting with `test-exempt:`). + + +**In the repositories listed above, a bot will comment on your PR if you need an explicit exemption.** Do not land a PR that has had such a message from the bot unless it has an explicit exemption! The message tells you how to ask for an exemption. Please follow those instructions. + +**If the PR is in a repository that is not listed above, meaning is not supported by the bot, then it is the responsibility of the pull request reviewer to make sure that tests have been added to support the code change.** + +In particular, the following kinds of PRs are *not* automatically exempt and require an explicit comment even though the answer may be obvious: refactors with no semantic change (e.g. null safety migrations), configuration changes in the aforementioned repos, changes to analysis (fixing lints, turning on lints), changes to test infrastructure, manual dependency rolls, fixes to existing tests, cosmetic fixes to unpublished example apps. + +If a reviewer says a PR should have a test, then it needs a test regardless of the exemptions above. + +PRs adding data-driven fixes require tests that fall under the test_fixes directory, but are not yet recognized by the bot as being tested. + +Consider using the code coverage tools to check that all your new code is covered by tests (see [Test coverage for package:flutter](./testing/Test-coverage-for-package-flutter.md)). + +Feel free to update the bot's logic to catch more cases that should be automatically exempt (it's in the cocoon repo). + +## Using git + +Assuming your environment has been configured according to the instructions in +[Setting up the Engine development environment](../engine/contributing/Setting-up-the-Engine-development-environment.md), +[Setting up the Framework development environment](Setting-up-the-Framework-development-environment.md), or +[Setting up the Packages development environment](../ecosystem/contributing/Setting-up-the-Packages-development-environment.md), +follow these steps to start working on a patch: + + * `git fetch upstream` + * `git checkout upstream/main -b name_of_your_branch` + * `flutter update-packages` + * Hack away. + * `git commit -a -m ""` + * `git push origin name_of_your_branch` + +GitHub provides you with a link for submitting the pull request in the message output by `git push`. + +Because `git pull` will often miss tags that are used to define the release of the flutter tool, it is recommended to use `git fetch` typically to avoid version mismatches when running `flutter update-packages`. + +Use `git fetch upstream; git rebase upstream/main; git push origin your_branch_name` to update your PRs, rather than using merge, because that way our tooling will recognize your PR as being up to date. (Otherwise it'll try testing against the tests at the time you originally branched.) Also, **be wary of force pushing to your PR branch** if you are dealing with golden image tests; see [gold troubleshooting instructions](./testing/Writing-a-golden-file-test-for-package-flutter.md#troubleshooting). + +Please make sure all your patches have detailed commit messages explaining what the problem was and +what the solution is. + +You must complete the +[Contributor License Agreement](https://cla.developers.google.com/clas). +You can do this online, and it only takes a minute. + + +## Getting a code review + +Every PR must be code-reviewed before check-in, including things like +rolling a dependency. Getting a review means that a regular Flutter +contributor (someone with commit access; see [contributor access](Contributor-access.md) for details) has "approved" the PR in the +GitHub UI. We call this "getting an LGTM" ("looks good to me"). + +If you are not yourself someone with commit access, then a second person +with commit access must also review and approve your PR. This ensures that +two people with commit access (trusted contributors) agree on every commit. + +### Why + +Code review serves many critical purposes. There's the obvious +purpose: catching errors. Even the most experienced engineers +frequently make errors that are caught by code review. But there are +also many other benefits of code reviews: + + * It spreads knowledge among the team. Since every line of code will + have been read by two people, it's more likely that once you move + on, someone else will understand the code. + + * It keeps you honest. Knowing that someone will be reading your + code, you are less tempted to cut corners and more motivated to + write code you are proud of. + + * It exposes you to different modes of thinking. Your code reviewer + has probably not thought about the problem in the same way you + have, and so may have a fresh perspective and may find you a better + way to solve the problem. + +We recommend you consider +[these suggestions](https://testing.googleblog.com/2017/06/code-health-too-many-comments-on-your.html) +for addressing code review comments on your PR. + +### When + +If you're working on a big patch, don't hesitate to get reviews early, +before you're ready to check code in. Also, don't hesitate to ask for +multiple people to review your code, and don't hesitate to provide unsolicited +comments on other people's PRs (although approvals in the GitHub UI +should be reserved for those with contributor access). The more +reviews the better. + +If nobody reviews your PR within two weeks, you can ask for +a review via our [Chat](Chat.md) channels. Start by asking in #hackers, +saying what your patch does and providing a link. + +### Who + +PRs are assigned reviewers weekly. The precise process varies by team but tends to be combined with issue [triage](../triage/README.md). + +Code should be reviewed by the owner (tech lead) of the area(s) of the codebase that you are changing, +or someone to whom they have delegated that authority. +If anyone else leaves comments, please also wait for their approval (LGTM) before landing code. + +If nobody has reviewed your code after a week, then reach out on our [Chat](Chat.md) channels. +The `#hackers-new` channel is a good place to ask for help if you're a new contributor. + +_For PRs affecting the `material` and `cupertino` libraries, team members are expected to seek reviewers directly; +they will not be assigned during PR triage._ + +### How + +Code review status is managed via GitHub's approval system. PRs should +not be merged unless one or more contributors with commit access (at +least one of which should be very familiar with the code in question) +have approved the PR in the GitHub UI. + +Reviewers should carefully read the code and make sure they understand +it. A reviewer should check the code for both high level concerns, +such as whether the approach is reasonable and whether the code's structure makes sense, as well as +lower-level issues like how readable the code is and adherence to the +[Flutter style guide](Style-guide-for-Flutter-repo.md). +Use [these best practices](https://mtlynch.io/human-code-reviews-1/) +when reviewing code and providing comments. + +As a reviewer, you are the last line of defense. + +0. Did the author sign the CLA? If not, ask them to do so and don't look at the code. +1. Take a step back. What problem is the PR trying to solve? Is it a real problem? +2. What other solutions could we consider? What could we do to make this even better? +3. Is it the best API? See our [philosophy](Style-guide-for-Flutter-repo.md#philosophy) section. Look for state duplication, synchronous slow work, complecting, global state, overly-specific APIs, API cliffs and API oceans, API design in a vacuum (without a customer). If these terms don't make sense, read the style guide again. :-) +4. Is it the best implementation? Again, see our [style guide](Style-guide-for-Flutter-repo.md#coding-patterns-and-catching-bugs-early), in particular its section on good coding patterns. Are there hacks? Are we taking on more technical debt? Think of ways in which the code could break. +5. Is it testable? Is it tested? **All code must be tested.** Are there asserts? Encourage liberal use of assertions. +6. Look for mistakes in indenting the code and other trivial formatting problems. +7. Is new code licensed correctly? +8. Is the documentation thorough and useful? Look for useless documentation, empty prose, and breadcrumbs. See the [documentation section](hStyle-guide-for-Flutter-repo.md#documentation-dartdocs-javadocs-etc) of our style guide for what that means. +9. Check for good grammar in API docs and comments. Check that identifiers are named according to our conventions. + +Once you are satisfied with the contribution, and _only_ once you are satisfied, +use the GitHub "Approval" mechanism (an "LGTM" comment is not sufficient). +If you feel like you are being worn down, hand the review to someone else. Consider +our [conflict resolution](https://github.com/flutter/flutter/blob/main/CODE_OF_CONDUCT.md#conflict-resolution) +policy if you feel like you are being forced to agree to something you don't like. + +Reviewers should not give an LGTM unless the patch has tests that verify +all the affected code, or unless a test would make no sense. If you +review a patch, you are sharing the responsibility for the patch with +its author. You should only give an LGTM if you would feel confident +answering questions about the code. + +In general, reviewers should favor approving a PR once it is in a state where it definitely improves the overall code health of the system being worked on, even if the PR isn't perfect. Reviewers should also provide positive feedback throughout the process, to offset the impact of the stream of critiques that is code review. + +Reviewers should always feel free to leave comments expressing that something could be better, but if it's not very important, prefix it with something like "Shouldn't block this PR but: " to let the author know that it's just a point of polish that they could choose to ignore in the current PR (these should be documented in TODO comments with a tracking issue). + +If you are not a regular Flutter contributor (someone with commit access), +we very much welcome your reviews on code contributions in the form of comments +on the code, but please refrain from approving or LGTM'ing changes, as it +confuses PR authors, who may think your approval is authoritative and merge +the PR prematurely. + +When commenting on a PR, keep in mind the following mantra: + +* Be polite and grateful. Graceful professionalism. +* Explain what is happening. Explain why it is happening. +* Provide next steps. Set expectations. + +It's better to close a PR than to leave it in limbo. + +_See also: [How to review a Flutter PR](https://docs.google.com/presentation/d/1apKVLEAEqxINby49JhLWSLI-CMH0nxCcnrf90nW4cts/edit?usp=sharing) presentation_ + +### What (to do when the patch is abandoned) + +Sometimes the contributor is unable to finish the work of landing the patch. In that case, if the PR has promise, we may close it but mention it on the relevant issue so that other interested parties can pick it up. Such issues are given the label [`has partial patch`](https://github.com/flutter/flutter/labels/has%20partial%20patch). + +## Landing a patch + +Once you have submitted your patch and received your LGTM, if you do not have commit access to +the repository yet, then wait for one of the project maintainers to submit it for you. + +If you do have access, add the "autosubmit" label. A bot will land the PR for you. + + +### Squashing commits + +When you squash commits, by default, GitHub will concatenate all your commit messages to form a unified commit message. This often yields an overly verbose commit message with many unhelpful entries (e.g. "fix typo"). Please double-check (and hand-edit if necessary) your commit message before merging such that the message contains a helpful description of the overall change. + + +## Tree breakage (regressions in functionality) + +If a check-in has caused a regression on the main branch (sometimes "master") for any of the flutter repositories, +revert (roll back) the check-in (even if it isn't yours). Do not attempt to forward-fix post-submit test failures. + +There is no shame in making mistakes! Reverts happen all the time and are a normal part of engineering. + +To revert a PR, just add the `revert` label to it. _For more details, see [Landing Changes With Autosubmit](../infra/Landing-Changes-With-Autosubmit.md)._ + + +### Avoid "Revert "Revert "Revert "Revert "Fix foo"""" commit messages + +Please limit yourself to one "Revert" per commit message, otherwise we won't +have any idea what is actually landing. Is it putting us back to where we were before? +Is it adding new code? Is it a controversial new feature that actually caused +a regression before but is now fixed (we hope)? + +Only use "Revert" if you are actually returning us to a known-good state. + +Also avoid using "Reland" in the commit message. +When you later revert the revert, just land the PR afresh with the original commit message, +possibly updated with the information since collected, and include a link +to the original PR and to the revert PR so that people can follow the breadcrumbs later. + + +## Regressions in performance + +After each check-in, please monitor the [performance dashboards](https://flutter-dashboard.appspot.com/). + +If you see a regression (any of the charts increasing after your commit), please +follow these steps: + +* Comment on the PR acknowledging the regression. +* If the regression is expected and is a desirable trade-off (e.g. disk size +increased slightly in exchange for a significant improvement in speed), then +rebaseline the relevant benchmarks (log in, then click the magnifying glass +at the top right of each chart, then click the button to auto rebaseline and +commit). +* If the regression is not expected, and may be a problem in your PR, revert +your PR and investigate. +* If the regression is not expected, and is quite severe, revert your PR and +investigate. +* If the regression is not expected, and is not severe, and is definitely not +a problem in your PR (e.g. you changed a comment and the analyzer performance +got worse, or you deleted a README and the rasterizer slowed down), then file +a bug, labeled with the "regression", "performance", `P0` labels, and either +investigate or delegate to someone to investigate. The investigation should be +considered a high priority. It is your responsibility to make sure that the +cause is understood within a few days. + +Performance regressions are not a problem so long as they are promptly dealt with. +Therefore, Flutter considers all unexpected performance regressions to be `P0` until +we have it under control (e.g. we know what caused it and either have a fix under +way or have determined it is an acceptable trade-off). + +### Performance regressions caused by auto-roller commits + +Although reverting a normal commit that caused performance regressions is the default +behavior, reverting an [auto-roller](../infra/Autorollers.md) +(e.g., an engine-roller commit like https://github.com/flutter/flutter/commit/fdcb57b69eff2162e9aead6dec0f8058788e7608) +commit could cause some complications: + +1. The auto-roller commit usually include multiple commits of the source repo (e.g., engine-roller +commit includes multiple commits of https://github.com/flutter/engine). This can be applied +recursively as the engine-roller commit includes a dart-roller commit, or a skia-roller commit. +Therefore, a roller commit could actually include a ton of leaf-level commits, which makes it +really hard to triage which leaf commit actually caused the regression. + +2. The auto-roller will try to roll again as soon as possible that will reland any changes reverted +by a Flutter commit revert. So in order to keep the revert effective, one has to either +(1) pause the auto-roller, or (2) revert the leaf commit in the source repo. + +3. If the auto-roller is paused for a long time (say 1 day), the source repo will accumulate many +commits. That makes the next roll very hard to manage: it's difficult to triage a build failure +or a new performance regression caused by the next roll, since that roll will include all the commits +in the paused period. + +Therefore, reverting a roller commit or pausing the auto-roller is +*NOT* the default action if it causes a performance regression. +The default action should be to file an issue with labels "performance", "regression", and `P0` +immediately, and start investigating which leaf-commit caused the regression. Once the leaf-commit +is identified, check if it's an expected trade-off. If so, remove the `P0` label and try to see +if there's any way to mitigate the regression. If not, revert the leaf commit in the source repo +and let the auto-roller apply that revert. Once the revert is rolled into Flutter, close the issue. + +## Handling interdependent/multi-repo changes + +If you're working on a feature that requires changes in both the [framework](https://github.com/flutter/flutter) and [engine](https://github.com/flutter/flutter) repos, you'll need to make 2 separate PRs. In such situation CI on the framework PR may fail because it depends on engine code that is not (yet) on engine repo's main branch. In such situation, you need to land the changes in the engine first, wait for them to roll into the framework's main branch, and then rebase your framework PR. + +## Handling breaking changes + +In general, we want to avoid making changes to Flutter, our plugins, or our packages, that force developers using Flutter to change their code in order to upgrade to new versions of Flutter. See [our compatibility policy](https://flutter.dev/docs/resources/compatibility). + +Sometimes, however, doing this is necessary for the greater good. We want our APIs to be +intuitive; if being backwards-compatible requires making an API into something that we would +never have designed that way unless forced to by circumstances, then we should instead break +the API and make it good. + +The process for making breaking changes is as follows: + +### 1. Determine if your change is a breaking change + +Implement the change you wish to see and run the existing tests against your new code (without having changed the tests first). Changes that break (i.e. require changes to) one or more of the contributed tests are considered "breaking changes". + +The "contributed tests" are: + +* Those in the [`customer_testing`](https://github.com/flutter/tests) shard on `flutter/flutter` PRs. +* Additional test suites that we have been allowed to run but that are not public. (Notably, Google allows us to run several tens of thousands of [proprietary tests](../infra/Understanding-Google-Testing.md) on each commit.) + +There are no exemptions to this policy, because these tests run in our CI and breaking them will close the tree. + +In cases where these tests pass but we can nonetheless imagine reasonable scenarios where developers would be affected negatively, by courtesy, once the change has landed, engineers are encouraged to announce the changes by sending an e-mail to [flutter-announce@](https://groups.google.com/g/flutter-announce), a message to the `#announcements` channel on our [Chat](Chat.md), and tagging the relevant issues with the [**c: API break** label](https://github.com/flutter/flutter/labels/c%3A%20API%20break) (such that they will be included in our release notes). However, we do not consider these breaking changes. (One reason to do this would be if we see our own tests being significantly affected, even if no contributed test actually fails.) + +### 2. Evaluate the breaking change + +If your change counts as a breaking change, seriously consider whether it is truly necessary and beneficial. Consider writing a [design document](Design-Documents.md). Discuss it with your code reviewer. Raise it in [Chat](Chat.md). + +### 3. Prepare your change. + +If you decide your change is valuable enough to deploy, adjust your PR so that it introduces the new functionality, API, behavior change, etc, in an opt-in fashion, thus avoiding the immediate breakage. + +_For example, rather than replacing a widget with another, introduce the new widget and discourage use of the old one. Rather than changing the order in which a certain argument is processed, provide a flag that selects which order the arguments will be processed in._ + +When changing the semantics of an API with a temporary opt-in, a three-phase change is needed (adding the new API and opt-in, then removing the old API, then removing the opt-in.) + +If possible, avoid four-phase deprecations (adding a new API with a temporary name and deprecating an old API, removing the old API, changing the new API to the old name and deprecating the temporary name, and finally removing the temporary name), because they involve a lot of churn and will irritate our developers. + +Stage your change and the documentation for your change. Typically this will be two or more PRs, plus PRs to fix the tests that were broken (see step 1), as well as writing a migration guide as a PR to the Website repository. + +If possible, include flutter fixes to aid users in migration. Whether or not the change is supported by flutter fix should be included in the migration guide. To learn about authoring fixes, see [Data driven Fixes](Data-driven-Fixes.md). + +**Use our [breaking change migration guide template](https://github.com/flutter/website/blob/main/src/content/release/breaking-changes/template.md)** (follow all the instructions in the comments) to create the migration guide that describes the change. Do not land the migration guide at this time. You will need to update it before you land it in the last step. + +### 4. Land your change. + +Once you are ready, have received feedback, iterated on your design and your migration guide, land your initial change and start migrating clients. *Do not yet land the migration guide.* Once all the clients are migrated, land your final change. (You may have several iterations here if you have a multiphase roll-out.) + +During this process, each individual PR does not break any tests, so it should not block any autorollers. + + +### 5. Document the change, including clear documentation for migrating code, with samples, and clear rationales for each change + +Once everything has landed: + +* update your migration guide based on your experience migrating everyone, +* update the timeline on the guide, and push it to [the flutter.dev Web site](https://flutter.dev/docs/release/breaking-changes) (don't forget to update the [index](https://github.com/flutter/website/blob/main/src/content/release/breaking-changes/index.md) of that directory as well), +* e-mail a copy to [flutter-announce@](https://groups.google.com/g/flutter-announce), +* notify the `#announcements` channel on our [Chat](Chat.md), and +* add the [**c: API break** label](https://github.com/flutter/flutter/labels/c%3A%20API%20break) to the relevant issues, so they get listed in the upcoming Release notes. + +### Deprecations + +Old APIs can be marked as deprecated as part of this process. Deprecation is not a way to avoid making a breaking change; you should consider deprecating an API to be equivalent to removing it, as some of our customers (and we ourselves) consider using a deprecated API to be anathema (triggering a build failure). + +The syntax for deprecations must match the following pattern: + +```dart +@Deprecated( + 'Call prepareFrame followed by owner.requestVisualUpdate() instead. ' + 'This will enable an improvement to performance in a future version of Flutter. ' + 'This feature was deprecated after v2.9.0-0.1.pre.' +) +``` + +In other words: + +```dart +@Deprecated( + '[description of how to migrate] ' + '[brief motivation for why we are breaking the API] ' + 'This feature was deprecated after [beta version at time of deprecation].' +) +``` + +Using this standard form ensures that we can write a script to detect all deprecated APIs and remove them. We have a test that verifies that this syntax is followed. + +To determine the latest beta version, see . + +When adding a deprecation notice to the framework, a flutter fix should be included with your change. This helps users migrate to the new API as easily as possible. To learn more about authoring fixes, see [Data driven Fixes](Data-driven-Fixes.md). If a fix cannot be written for the new API, please file an issue in https://github.com/dart-lang/sdk and link to it in your change. + +When deprecating features, be aware that *you* will not by default be informed when the Flutter code itself uses the deprecated feature (there is a `deprecated_member_use_from_same_package: ignore` line in the root `analysis_options.yaml` file). To find places where the old feature is used, rename its declaration and see where the compiler complains. (You can't just comment out the "ignore" in the `analysis_options.yaml` file because it's hiding hundreds of other warnings...) + +Deprecations are removed in a consistent "first-in-first-out" fashion. The lifetime for a Flutter deprecation is 1 year after reaching the stable channel, or after 4 stable releases, whichever is longer. Deprecations are still subject to the policy described on the [breaking changes page](https://flutter.dev/docs/release/breaking-changes) of the website. Where possible, prepare the dart fix tools and write appropriate migrations guides. + +This policy is currently enforced for `package:flutter`, `package:flutter_driver`, and `package:flutter_test`. + +## Skipped Tests + +Tests can be skipped using the `skip` parameter of `test()`, `group()` and `testWidgets()`. However, they should be kept to a minimum and only done for the following two reasons. + +The first is if there is a test that is flaky, we can mark is as *temporarily* skipped to keep the tree green while a fix for it is developed. For these types of skips you need to file a tracking issue so we can ensure there is follow up to remove the skip. This tracking issue should be tagged with the `skip-test` label. Then in a comment on the same line as the parameter, include a link to this issue: + +```dart + skip: true, // https://github.com/flutter/flutter/issues/XXXXX +``` + +The other reason to use the skip parameter is to mark a test that by design doesn't make sense to test under a specific condition. An example would be a test that only tests a feature available on a specific platform or environment. For these cases, include a comment on the same line as the skip parameter with the text `[intended]` and a short description of why the skip is needed: + +```dart + skip: isBrowser, // [intended] There are no default transitions to test on the web. +``` + +If the analyzer script sees a skip without a comment containing either an issue link or an `[intended]` tag, it will report and error and fail the check. diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/Using-the-Dart-analyzer.md b/novelforge-project/agent-workspace/flutter/docs/contributing/Using-the-Dart-analyzer.md new file mode 100644 index 0000000000000000000000000000000000000000..44ac328144bd3383c2207dc69d2c34831a03d61a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/Using-the-Dart-analyzer.md @@ -0,0 +1,23 @@ +When editing Flutter code, it's important to check the code with the +analyzer. + +If your IDE supports doing this automatically (e.g. using Android Studio with the Flutter plugin), +then that is the easiest solution. + +Alternatively, you can use the `flutter analyze --flutter-repo` tool on the console. When using the +console, you will want to manually run `flutter update-packages` each time you update your tree, so +that the `pubspec.yaml` files are processed to obtain all the dependencies for every package in the +repository. If you don't do this, you may get bogus error messages about core classes like `Offset` +from `dart:ui`. This is because `flutter analyze` does not automatically attempt to update dependencies, +since doing so can take a long time and is only necessary when the tree has been updated. + +For a one-off, use `flutter analyze --flutter-repo`. + +For continuous analysis, use `flutter analyze --flutter-repo --watch`. + +If you omit the `--flutter-repo` option you may end up in a confusing state because that will +assume you want to check a single package and the flutter repository has several packages. + +You can use the `--write` argument with `--watch` to cause each update to write all the results to a file +in ASCII. This can be used e.g. with Emacs' `compile` mode to quickly dump all the latest analysis results +into the compilation buffer so that they are recognized as error messages that Emacs can jump to. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/What-should-I-work-on.md b/novelforge-project/agent-workspace/flutter/docs/contributing/What-should-I-work-on.md new file mode 100644 index 0000000000000000000000000000000000000000..b1b9fa7d2f7d5866c3ceb5688a984040801c14c7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/What-should-I-work-on.md @@ -0,0 +1,27 @@ +This page attempts to be a one-stop shop for figuring out what the most important thing to work on is, so that team members (contributors) can determine the more effective way to improve Flutter. + +1. Build breakage. Check the [dashboard](https://flutter-dashboard.appspot.com/build.html). +1. [P0 issues](https://github.com/flutter/flutter/labels/P0) (e.g. serious regressions). +1. Mentoring promising new contributors. +1. [Code review of open PRs](https://github.com/pulls?utf8=%E2%9C%93&q=is%3Aopen+is%3Apr+archived%3Afalse+user%3Aflutter+). +1. [P1 issues](https://github.com/flutter/flutter/labels/P1), including: + 1. [Flaky tests](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22team%3A+flakes%22+sort%3Aupdated-asc). + 1. Performance regressions. Check the [dashboard](https://flutter-dashboard.appspot.com/benchmarks.html) for new unreported regressions and see GitHub for the list of [reported performance regressions](https://github.com/flutter/flutter/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%22c%3A+performance%22+label%3A%22c%3A+regression%22+). + 1. [Other regressions](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22c%3A+regression%22). + 1. Reducing technical debt. (For example, increasing [our test coverage](./testing/Test-coverage-for-package-flutter.md) by [writing new tests](./testing/Running-and-writing-tests.md), or fixing TODOs.) +1. [P2 issues](https://github.com/flutter/flutter/labels/P1), which correspond to the remaining areas of our [roadmap](../roadmap/Roadmap.md), such as: + * Bugs marked as [annoyances](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22a%3A+annoyance%22+sort%3Areactions-%2B1-desc). + * Bugs labeled as issues of [quality](https://github.com/flutter/flutter/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+label%3A%22a%3A+quality%22+sort%3Areactions-%2B1-desc+). + * Bugs with the [crash](https://github.com/flutter/flutter/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+label%3A%22c%3A+crash%22+sort%3Areactions-%2B1-desc+) label. +1. [Issues sorted by thumbs-up](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc). Focus on bugs in existing code and avoid adding new code. +1. Everything else. Consider [this advice](https://ln.hixie.ch/?start=1674863881&count=1) when prioritizing bugs. + +Bugs in other bug systems should be tracked with bugs in GitHub. OKRs should be reflected in the items listed above. For example, OKRs should reflect what the roadmap covers, expected customer blockers, and so forth. Work that is unique to a particular quarter would be represented by a filed bug with a milestone and assignee. + +During [triage](../triage/README.md), bugs should be prioritized according to the [P0-P3 labels](./issue_hygiene/README.md#priorities) so as to fit the order described above. + +Sometimes, items in the list above escalate. For example, a bug might get filed as a P2 issue, then be recognized as a critical regression and upgraded to P0. + +See also: + + * [Issue Hygiene](./issue_hygiene/README.md), in particular the section on prioritization. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/issue_hygiene/Making-animated-GIFs-of-Flutter-apps.md b/novelforge-project/agent-workspace/flutter/docs/contributing/issue_hygiene/Making-animated-GIFs-of-Flutter-apps.md new file mode 100644 index 0000000000000000000000000000000000000000..08e763332dd7f52c8d7cbd6c10b8befcb647180f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/issue_hygiene/Making-animated-GIFs-of-Flutter-apps.md @@ -0,0 +1,37 @@ +Animated GIFs are useful for documentating animations. Here’s how to make them: + +## Capturing video of an Android device + + * This feature is available on KitKat and later. + * Make sure to launch the app using `flutter run --release` for faster performance. + * Start recording video by running this command on the command line: + + ```adb shell screenrecord /sdcard/recording.mp4``` + + * Interact with the app. When you are done you can terminate the recording with CTRL+c. + + * Pull the recording off the device and onto your local hard drive: + + ```adb pull /sdcard/recording.mp4 ~/Downloads/``` + +## Capturing video of the iOS simulator + + * Move the iOS simulator above your other applications + * Launch the "QuickTime Player" app + * Select “New Screen Recording” from the File menu + * Draw a box around the Simulator and click "Start Recording" + * When you're finished, click on Stop Recording on the Menu Bar. + * If needed, trim your recording using "Trim" from the "Edit" menu. + * Save the recording + +## Converting the recording to GIF + + * Go to http://ezgif.com/video-to-gif and upload the video. + * If further trimming is needed, select the start and end times for your GIF. + * Select an appropriately small size for the GIF (recommended: 320xAUTO). + * Select a high framerate for the GIF (the max is 20) for smoothest animation + * Convert to GIF and download the GIF file + +## Example + +![Example Animated GIF](http://i.imgur.com/tSqVQkx.gif) \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/issue_hygiene/Popular-issues.md b/novelforge-project/agent-workspace/flutter/docs/contributing/issue_hygiene/Popular-issues.md new file mode 100644 index 0000000000000000000000000000000000000000..1a5ba491ca6f13b61ee5e8075869f2db8db1b135 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/issue_hygiene/Popular-issues.md @@ -0,0 +1,82 @@ +When deciding what to work on, we usually focus on issues that have a lot of thumbs-up reactions on the first comment, what we call the "popular issues". + +Some popular issues are topics on which we cannot find a good way to make progress. Since those issues where we _do_ make progress get closed, the result is that [the list of most-popular issues](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc) is now full of issues where we have conspicuously not made progress! + +In the interests of transparency, this wiki page discusses the status of the ten most popular issues. It is only updated occasionally and so may not be entirely up to date; for the most up to date information, please see the latest comments on the relevant issue. (Please avoid asking for an update on issues, otherwise they become full of people asking for updates and nobody can find the actual updates.) + +_See also: [the list of popular issues including closed issues](https://github.com/flutter/flutter/issues?q=is%3Aissue+sort%3Areactions-%2B1-desc), which shows that popular issues do get closed. 😅_ + +## [Code Push / Hot Update / out of band updates](https://github.com/flutter/flutter/issues/14330) (#14330) + + + + + +There are three main areas that people are referring to here: + +* **Modular application delivery**: the ability to package a single app into multiple separate archives when compiling it, and download them independently as needed. This is supported on Android via [deferred components](https://docs.flutter.dev/perf/deferred-components). We suspect it is not possible to achieve this on iOS with Apple's current guidelines and tools. We have not yet attempted to provide this on desktop or web, primarily because we have more important issues to resolve on those platforms first. + +* **Dynamic extension loading**: the ability to download some Dart code that wasn't written when the app was first published, which adds a new feature to the app. This could be done on the fly. It may require the core app to be larger since we can't know ahead of time what is needed by each future extension. There are various solutions in this space, such as combining [the rfw package](https://pub.dev/packages/rfw) and an FFI-based or Wasm-based solution (e.g. [package:wasm](https://pub.dev/packages/wasm)). There is [an example](https://github.com/flutter/packages/tree/main/packages/rfw/example/wasm) that provides a proof-of-concept for this combination of packages: a Flutter desktop application that knows nothing about being a calculator downloads an interface description specifying all the buttons and their layout to show on the screen, and downloads a C program compiled to Wasm to perform the calculations. The Flutter program is merely a bridge between these two downloaded files. We are looking for feedback from people using this feature; please add your experiences to [issue 90218](https://github.com/flutter/flutter/issues/90218). + +* **Dynamic patching**: the ability to update the Dart code of an app in the field by downloading a patch (of sorts) and providing it to the Dart VM. This would require a reload of the app to take effect. Dynamic patching was previously on our roadmap for 2019. After investigating this in greater detail, we decided not to proceed with that work. There were several factors that led us to this decision: + + * To comply with our understanding of store policies on Android and iOS, any solution would be limited to JIT code on Android and interpreted code on iOS. We are not confident that the performance characteristics of such a solution on iOS would reach the quality that we demand of our product. (In other words, "it would be too slow".) + + * There are some serious security concerns. Since these patches would essentially allow arbitrary code execution, they would be extremely attractive malware vectors. We could mitigate this by requiring that patches be signed using the same key as the original package, but this is error prone and any mistake would have serious consequences. This is, fundamentally, the same problem that has plagued platforms that allow execution of code from third-party sources. This problem could be mitigated by integrating with a platform update mechanism, but this defeats the purpose of an out-of-band patching mechanism. + + * There is currently no out-of-the-box open source hosting solution for patching applications, so we would either have to rely on people configuring their Web servers accordingly, or we would have to create integrations for proprietary third-party services, or we would have to create our own bespoke solution. Hosting patches is a space we are not eager to enter. Having people configure their own server leaves them open to making mistakes with potentially serious implications as explained in the previous point about security. Depending on third-party services puts Flutter in an awkward position of having to pick winners and exposes us to the risk of those projects themselves making policy changes that would affect this feature. + +## [Let flutter be installable via homebrew](https://github.com/flutter/flutter/issues/14050) (#14050) + + + +Currently, we see this as a lower priority than our other release-related work (such as working towards [SLSA compliance](https://slsa.dev)). There are a number of other mechanisms for obtaining Flutter today, so this does not immediately unblock anyone, it is "merely" a convenience. That said, we recognize that homebrew is a pretty idiomatic way of getting software for developers on macOS, and so the request is quite valid. + +If anyone would be interested in implementing an official homebrew installation path, the best thing to do would be to reach out on the #hackers-releases channel of our Discord (see [Chat](../Chat.md)). Implementing it would require integrating into our release pipeline, so familiarity with that would be extremely helpful. It would also require carefully negotiating how Flutter's primary distribution mechanism (shipping the `git` repo directly) should interact with Homebrew's mechanisms, so familiarity with both of those would also be needed. + +## [Design a new vector file format](https://github.com/flutter/flutter/issues/1831) (#1831) + +A [design document](https://flutter.dev/go/vector-graphics) containing both a detailed study of the problem and a strawman proposal have been published (comments welcome). The primary goal of the strawman proposal is to see if it is possible to create a format that is implemented entirely on the GPU (the thought being that creating yet another CPU-bound format doesn't really bring the industry forward). The next step is to experiment with implementing the proposal. Unfortunately all our shader experts are currently busy on higher-priority problems (like improving rendering performance and reducing jank), so this work has stalled. + +As usual, contributions are welcome. Reach out to Hixie directly (either by e-mail, ian@hixie.ch, or on our [Chat](../Chat.md) channels) if you are interested in helping out. + +## [Enable "hot reload" (not just "hot restart") for Flutter Web](https://github.com/flutter/flutter/issues/53041) (#53041) + +Nobody has currently volunteered to work on this. Long term web efforts are primarily focused on Wasm, so we don't expect +to see progress soon. It is a technically extremely difficult and subtle problem. + +## [Improve the indexability (SEO) of Flutter apps on the web](https://github.com/flutter/flutter/issues/46789) (#46789) + +This feature is one that is recognized as important. There are some prerequisites, like improving Flutter's deep linking and accessibility features, which we have to deal with first. There are also other issues, like those around performance, plugins, and embedding, that are currently higher on the list for people who are currently contributing to Flutter's web support. + +Fixing this issue is non-trivial, as Flutter's architecture is one that is fundamentally different than what the web usually expects. If you are interested in contributing, the best place to begin would be to discuss potential approaches on our #hackers-web [Chat](../Chat.md) channel, followed by writing up a design doc (the process for which is also on the [Chat](../Chat.md) page). + +## [Bring Material 3 to Flutter](https://github.com/flutter/flutter/issues/91605) (#91605) + +Work continues to implement the latest version of Material Design in Flutter's framework, we are making great progress here! + +## [Apple CarPlay / Android Auto support?](https://github.com/flutter/flutter/issues/26801) (#26801) + +For Apple CarPlay, there is a package called [flutter_carplay](https://pub.dev/packages/flutter_carplay) by Oğuzhan Atalay that gives a Flutter API for controlling the CarPlay API. It's not clear that anything beyond that really makes sense for CarPlay, because Apple's API is template based and so Flutter (with its rendering engine, widgets framework, platform neutrality, etc) doesn't really provide any direct value. + +For Android Auto, our understanding is that the situation is similar: there are some templates that you can fill in using Android APIs. To our knowledge nobody has yet created a plugin to expose those APIs to Dart code, but we are not aware of any reason why that would not be possible. (For extra bonus points, one could imagine a package that tries to intelligently fill both CarPlay and Android Auto templates from the same source data, but that may be hard if the templates are too different from each other.) + +Currently, it does not seem that we can provide substantially more value here than anyone else could in writing plugins like Oğuzhan's, so we do not intend to work on this. We would encourage people to work with Oğuzhan and/or create new plugins for these features. Should the situation change (e.g. if CarPlay or Android Auto supported a way for us to directly send pixels to the car dashboard, allowing the power of Flutter's widgets to be useful here), we would reconsider this feature. + +## [Server-side rendering for Flutter web](https://github.com/flutter/flutter/issues/47600) (#47600) + +Fundamentally, rendering Flutter web apps to HTML is incompatible with Flutter's current architecture, and therefore this is not something we are likely to ever attempt. It's also not something we think is particularly useful. We see Flutter as the first of a new breed of frameworks that target WebGL and Wasm and leave HTML behind. For more detailed thoughts, see [the status update on the issue](https://github.com/flutter/flutter/issues/47600#issuecomment-1016920547). + +We believe indexability (SEO) can be addressed without server-side rendering; see the issue above for a discussion of that topic. + +## [Automatic/scalable shader warm-up](https://github.com/flutter/flutter/issues/32170) (#32170) + +Shader warm-up is available on every platform. To automate the generation of shader warm-up files currently requires first manually writing automated tests, and then running these in CI. + +Our medium-term efforts are around removing the need for shader warm-up entirely, and therefore we are not currently planning on working on further automating the creation of shader warm-up files (no point working on something that we want to make irrelevant). + +If we manage to remove the need for shader warm-up entirely, we will close issue #32170. If not, we will reconsider whether additional efforts to automate shader warm-up file generation are warranted. + +## [OpenContainer jank due to multiple frames of shader compilation](https://github.com/flutter/flutter/issues/76180) (#76180) + +A huge area of focus for us right now is our new graphics backend, [Impeller](https://docs.flutter.dev/perf/impeller), which should remove all runtime shader compilation, thus entirely removing this source of jank. diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/issue_hygiene/README.md b/novelforge-project/agent-workspace/flutter/docs/contributing/issue_hygiene/README.md new file mode 100644 index 0000000000000000000000000000000000000000..eddbe64b7ad4cbc4f4d36e53bfb6c427ac84f7a6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/issue_hygiene/README.md @@ -0,0 +1,387 @@ +## tl;dr + +- Avoid asking about the status of an issue; if we have an update, we'll post it. +- If you have permission, assign bugs to yourself if you're working on them. +- Unassign bugs that you are not working on soon. +- If an issue is not assigned, assume it is available to be worked on. + +## Overview + +We use three issue trackers: the [main one on flutter/flutter](https://github.com/flutter/flutter/issues), one for [the flutter.dev Website, on flutter/website](https://github.com/flutter/website/issues), and one for [the IntelliJ and Android Studio plugins, on flutter/flutter-intellij](https://github.com/flutter/flutter-intellij/issues). + +This page mostly talks about how we handle things for the flutter/flutter issue tracker. + +### Issue philosophy + +We assume that Flutter, like all non-trivial software, has an infinite number of bugs. The issue tracker contains the list of bugs that we are very lucky to have had reported by our generous community. Bugs includes known defects, as well as feature requests, planned work, and proposals. + +Within the bug database we try to make sure each issue is actionable and discoverable. We do this by carefully updating the issue subject line, making sure every issue has steps to reproduce, and using labels to categorize the issue in ways that can be found by GitHub search. + + +## Comments + +### Do not add "me too" or "same" or "is there an update" comments to bugs + +The Flutter team prioritizes issues in part based on the number of +1 (thumbs +up) reactions on the top level comment of the bug. Adding comments like "me +too" or "same here" is generally distracting and makes it harder to find +other more meaningful content in the bug. If you have no new details to add, +consider just thumbs up-ing the issue. If you wish to subscribe to the issue, +click the "subscribe" button in the right hand column of the GitHub UI. + +Adding comments explaining how a bug is dire and how you will stop using Flutter +if it is not fixed is upsetting for the engineers working on Flutter (many of +whom are volunteers, not that being paid to work on Flutter makes such comments +any less upsetting). Out of a respect for the team, and as required by our [code +of conduct](https://github.com/flutter/flutter/blob/main/CODE_OF_CONDUCT.md), we +ask that you avoid adding comments that are not actively helpful. There are other +venues if you want to complain without being constructive. + +Asking for updates is also not generally helpful, because it just leads to issues +being full of comments asking for updates and that makes finding useful information +in a bug harder (an exception might be if you are participating in the triage process, +but even then consider reaching out to people directly if possible). If you believe +there could be information that has not been posted, ask on our Discord server instead +(see [Chat](../Chat.md)). + +### Issues are not always the best venue for discussions + +Discussions within an issue should remain focused on the topic, specifically about what the filed issue is and how to solve it. Broader discussions are best suited to happen on Discord (see [Chat](../Chat.md)) or in design docs using Google Docs (see [Design Documents](../Design-Documents.md)). This is because GitHub hides comments, doesn't have threading, notifications get lost in the swamp of other GitHub e-mails, etc. + +If you move to another tool for part of the discussion, remember to add a summary of the discussion and document any decisions that took place. This allows people following the issue to keep updated and continue to participate. + +Issues are never an appropriate venue for asking for help with your code. Issues are also not a good venue for discussing project direction. + +### Comments providing workarounds + +Providing workarounds for issues can be helpful for developers using Flutter and finding a bug, +but please keep such comments to a minimum so as to avoid disrupting the engineers trying to +fix the issue. Rather than discussing workarounds, provide a pointer to another forum +(e.g. Stack Overflow) where workarounds and temporary solutions are more appropriate. Thanks. +However, when a workaround has been identified, consider applying the `workaround available` label to make that info readily available. + +### Avoid posting screenshots of text + +If you want to show code, quote someone, or show a string of text that does +not render properly with Flutter, please avoid sharing it via an image or +screenshot. Text in images cannot be copied, and cannot be automatically +translated via services like Google Translate. This makes it harder for team +members who do not speak that language to participate in the issue. + +It is perfectly fine to share a screenshot of text rendering invalidly, but +also include the actual string or character(s) that lead to it so that they +can be copied and pasted into a test case. + +### Provide reduced test cases + +To debug a problem, we will need to be able to reproduce it. The best way +to help us do that is to provide code, licensed according to [the BSD license +used by Flutter](https://github.com/flutter/flutter/blob/main/LICENSE), that +has been reduced as far as possible (such that removing anything further stops +showing the bug). Attach such a file or files to the issue itself. + +For legal reasons, we cannot debug problems that require looking at proprietary +code or, generally, code that is not publicly available. + +### Consider posting issues in English + +If you are able to read and write English clearly, consider posting your issue +in English, even if it is about a language specific issue (like the way text +renders in some non-English language). + +It is fine to post issues in languages other than English, but consider that +many readers will rely on automatic translation services to read your issue. +Please avoid using screenshots in languages other than English, as services like +Google Translate will not translate the text in images, and the pool of people +able to assist you will be reduced. + + +## Locking an issue + +**Closed** issues that haven't received any activity in a [few weeks](https://github.com/flutter/flutter/blob/main/.github/lock.yml#L4) +are automatically locked by a [bot](https://github.com/apps/lock). This is +done to encourage developers to file new bugs, instead of piling comments +on old ones. + +Under normal circumstances, open issues should not regularly be locked. The most +common reason for manually locking an open issue is that issue is well +understood by the engineers working on it, +is believed to be appropriately prioritized, has a clear +path to being fixed, and is otherwise attracting +a lot of off-topic or distracting comments like "me too" or +"when will this be fixed" or "I have a similar issue that might +or might not be the same as this one". + +If you are concerned that such an issue is not receiving its due +attention, see Escalating an Issue, described above. If you are +not already a contributor but would like to work on that issue, +consider reaching out on an appropriate [chat](../Chat.md). + +If you have a similar issue and are not sure if it is the same, +it is fine to file a new issue and linking it to the other issue. +Please avoid intentionally filing duplicates. + +Very rarely, an issue gets locked because discussion has become +unproductive and has repeatedly violated the [Code of Conduct](https://github.com/flutter/flutter/blob/main/CODE_OF_CONDUCT.md). + + +## Priorities + +**The [`P0`](https://github.com/flutter/flutter/labels/P0) label** indicates that the issue is one of the following: +* a build break, regression, or failure in an existing feature that prevents us from shipping the current build. +* an important item of technical debt that we want to fix promptly because it is impacting team velocity. +* an issue blocking, or about to block, a top-tier customer. (See [below](#customers) under "customers" for a definition of "top-tier customer".) + +There are generally less than twenty-five P0 bugs (one GitHub search results page). If you find yourself assigning a P0 label to an issue, please be sure that there's a positive handoff between filing and a prospective owner for the issue. + +Issues at this level should be resolved in a matter of weeks and should have weekly updates on GitHub. + +During normal work weeks (e.g. not around the new year), issues marked P0 get audited weekly during the "critical triage" meeting to ensure we do not forget about them. Issues marked P0 should get updates at least once a week, to keep the rest of the team (and anyone affected by the issues) apprised of progress. + +**The [`P1`](https://github.com/flutter/flutter/labels/P1) label** indicates high-priority issues that are at the top of the work list. This is the highest priority level a bug can have if it isn't affecting a top-tier customer or breaking the build. Bugs marked P1 are generally actively being worked on unless the assignee is dealing with a P0 bug (or another P1 bug). + +Issues at this level should be resolved in a matter of months and should have monthly updates on GitHub. + +**The [`P2`](https://github.com/flutter/flutter/labels/P2) label** indicates issues that we agree are important to work on, but are not at the top of the work list. This is the default level for new issues. A bug at this priority level may not be fixed for a long time. Sometimes an issue at this level will first migrate to P1 before we work on them, but that is not required. + +**The [`P3`](https://github.com/flutter/flutter/labels/P3) label** indicates issues that we currently consider less important to the Flutter project. We use "thumbs-up" on these issues as a signal when discussing whether to promote them to P2 or higher based on demand. (Of course, this does not mean the issues are not important to _you_, just that we don't view them as the especially important for Flutter itself.) + +Typically we would accept PRs for `P3` issues (assuming they follow our [style guide](../Style-guide-for-Flutter-repo.md) and follow our [other rules](../Tree-hygiene.md)). Issues marked with the [`would require significant investment`](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22would+require+significant+investment%22) label may require more than just a PR, for example, adding support for a whole new platform will require a commitment to provide CI resources for build and test, and someone to own the maintenance of those systems. + +### When will my bug be fixed? + +Flutter is an open source project and many people contribute their time (or their employees' time) to fix code and implement features. Typically, people fix bugs that are relevant to their customers. For example, Google engineers who contribute to Flutter are going to prioritize issues that affect Flutter apps written by Google teams. Many of us, however, also volunteer time to fix more general issues. + +To determine when a bug will be fixed, look at the issue. + +If there's a recent status update on the issue, that is the best information we have about the bug. If there's a lot of comments on the issue, we try to link to the latest status from the top comment, so look there. (Please [don't _ask_](#do-not-add-me-too-or-same-or-is-there-an-update-comments-to-bugs) for updates, though.) + +If the issue is labeled with priorities `P0` or `P1`, or if the issue is assigned, we are likely to address it in the near term; we just need to find time. + +Otherwise, we don't know when we're going to fix it. We may never get to it. In general, `P2` bugs are seen as more important than `P3` bugs. See the more detailed definitions of _priorities_ above. + +_See also [Popular issues](../issue_hygiene/Popular-issues.md)._ + +### Escalating an issue that has the wrong priority + +If you have a relationship with the Flutter team, raise the issue with +your contact if you think the priority should be changed. + +If you don't, consider finding like-minded developers to either implement +the feature as a team, or to fund hiring someone to work on the feature, +or to [mark the issue with a thumbs-up reaction](#thumbs-up-reactions). + +Please don't comment on an issue to indicate your interest. Comments should +be reserved for making progress on the issue. + + +### Thumbs-up reactions + +To vote on an issue, use the "Thumbs-up" emoji to react to the issue. + +When examining issues, we use the number of thumbs-up reactions to an issue to determine an issue's relative popularity. +This is, of course, but one input. +At the end of the day, Flutter is an open source project and everyone (or every company) who contributes does so to further their own needs. +To the extent that those needs are aligned with making Flutter popular, +they tend to let their priorities be influenced by the "thumbs-up" reactions, +but if you have something on which your business depends, +the best solution is to pay someone to work on it. + +See also: + + * [All open issues sorted by thumbs-up](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc) + + * [Feature requests by thumbs-up](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+label%3A%22c%3A+new+feature%22) + + * [Bugs by thumbs-up](https://github.com/flutter/flutter/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc+-label%3A%22c%3A+new+feature%22+) + +We ignore other emoji reactions. + + + +## Labels + +We use [many labels](https://github.com/flutter/flutter/labels). + +### Naming conventions + +Common naming conventions for labels include: +- **`a: *`** - The `a` ("area") prefix is used for labels that are about a specific topic that could span different layers of Flutter's implementation (for example "accessibility" or "text input"). +- **`browser: *`** - Indicates the browser for browser-specific issues for the web port of Flutter. +- **`c: *`** - The `c` ("category") prefix says what kind of bug we're looking at (regression, crash, new feature request, etc). +- **`d: *`** - The purple `d` ("devtools") labels are for organizing our developer tool issues. +- **`d: *`** - The green `d` ("documentation") labels are for organizing our documentation-related issues. +- **`dependency: *`** - Indicates the upstream team for issues that are blocked on some work from an upstream project (e.g. Skia, Dart). +- **`e: *`** - The `e` ("engine") prefix is for subsets of the Flutter engine ([flutter/engine](https://github.com/flutter/engine)). +- **`f: *`** - The `f` ("framework") prefix is for subsets of the Flutter framework ([flutter/flutter's packages/flutter/](https://github.com/flutter/flutter/tree/main/packages/flutter)). +- **`found in release: x.yy`** - Used for a series of labels that indicate which versions of Flutter an issue was found in. +- **`from: *`** - Labels that indicate where an issue originated (e.g. research, postmortems), if it wasn't filed organically. +- **`t: *`** - The `t` ("tool") prefix is for subsets of the Flutter tool ([flutter/flutter's packages/flutter_tools/](https://github.com/flutter/flutter/tree/main/packages/flutter_tools)). +- **`p: *`** - The `p` ("package") prefix is for specific packages ([flutter/packages](https://github.com/flutter/packages)). Light teal for packages and darker teal for plugins. +- **`platform-*`** - The `platform` prefix is for bugs that are specific to one or more platforms. +- **`r: *`** - The `r` ("resolution") prefix is used for labels that describe why an issue was closed. + +### Adding labels + +Labels are more or less free, so we can add them pretty easily. Please mention it to other team members first, so that they know what you are planning and can give feedback (please at a minimum mention it on `#hidden-chat` in our [Chat](../Chat.md)). Please make sure labels use a consistent color and naming scheme (e.g. all the framework-related labels are blue and start with `f:`). + +Labels should be used for adding information to a bug. If you plan to use a label to find all instances of a particular topic (e.g. finding all PRs where someone wrote a design doc), be aware that there's no way to force people to label issues or PRs. You can, however, rely on automation to do it, for example we have a script that labels all PRs that affect the framework. + +### Customers + +The Flutter team is formed of engineers from many sources, including dedicated volunteers and employees of companies like Google. Each of these may have different ideas of who their customers are. For example, Google engineers consider some Google teams to be their customers, but someone who contributes on a code-for-hire basis may have their own customers. + +Some teams using Flutter have a special relationship with some members of the Flutter team (e.g. they're collaborating with us on a new feature, or they're working with us on a product demo for an upcoming event). This is usually a fairly short-term arrangement for a specific business purpose. We provide such customers with a label (`customer: ...`) in our GitHub issue tracker. When these customers are working closely with members of the Flutter team, we may consider them "top-tier customers" for the purposes of prioritization. + +Priority `P0` (see below) is sometimes used for bugs that affect these top-tier customers. + +#### Coordinating between bug systems + +Some customers have their own separate bug systems, in which they track Flutter +issues. We consider our GitHub issue list to be canonical. However, if there +is a link from the issue in our bug system to the customer's issue in their bug +system, and we have been granted access, we will follow that link and may +communicate in that separate bug system when attempting to track down the issue. + +#### Special customer labels + +The `customer: product` label is used to bring issues that product management +and senior leads want resolved to the attention of the appropriate engineering +team. + +The `customer: crowd` label is used to represent bugs that are affecting large +numbers of people; during initial [Triage](../../triage/README.md), high-profile bugs get labeled in +this way to bring them to the attention of the engineering team. "Large numbers" +is a judgement call. If dozens of people independently run into the same issue +and file a bug and we end up realizing that they're all duplicates of each other, +then that would be a good candidate. On the other hand, if there is an active +campaign to get people to comment on a bug, then it's probably not legitimately +a `customer: crowd` bug, because people generally report bugs without having to +be convinced to do so. + +In general, a bug should only be marked `customer: crowd` `P0` if it +is so bad that it is literally causing large numbers of people to consider changing +careers. + + +#### Other noteworthy labels + +The `blocked` label can be used to indicate that a particular issue is unable to make progress until some other problem is resolved. This is particularly useful if you use your own list of assigned issues to drive your work. + +The `good first issue` label should be used on issues that seem like friendly introductions to contributing to Flutter. They should be relatively well-understood issues that are not controversial, do not require a design doc, and do not require a deep understanding of our stack, but are sufficiently involved that they at least require a basic test to be added. + + +## Milestones + +We do not use GitHub milestones to track work. + + +## Assigning Issues + +Issues are typically self-assigned. Only assign a bug to someone else if +they have explicitly volunteered to do the task. If you don't have permissions +to assign yourself an issue you want to work on, don't worry about it, just +submit the PR (see [Tree Hygiene](../Tree-hygiene.md)). + +Only assign a bug to yourself when you are actively working on it +or scheduled to work on it. If you don't know when you'll be working +on it, leave it unassigned. Similarly, don't assign bugs to +people unless you know they are going to work on it. If you find +yourself with bugs assigned that you have not scheduled specific time +to work on, unassign the bug so that other people feel +empowered to work on them. + +_Do_ assign a bug to yourself if you are working on it, or if you have +scheduled time to work on it and are confident you will do so! This is how +people can figure out what is happening. It also prevents duplicate +work where two people try to fix the same issue at once. + +You may hear team members refer to "licking the cookie". Assigning a +bug to yourself, or otherwise indicating that you will work on it, +tells others on the team to not fix it. If you then don't work on it, +you are acting like someone who has taken a cookie, +licked it to be unappetizing to other people, and then not eaten it. +By extension, "unlicking the cookie" means indicating to the +rest of the team that you are not actually going to work on the bug +after all, e.g. by unassigning the bug from yourself. + +## File bugs for everything + +File bugs for anything that you come across that needs doing. When you +implement something but know it's not complete, file bugs for what you +haven't done. That way, we can keep track of what still needs doing. + +### Exceptions + +Do _not_ file bugs that meet the following criteria: + +- Asking meta-questions like "why was bug #XYZ closed?" Instead, post + on the original issue or raise the actual problem that is still not + resolved. +- Intentional duplicates like "This is the same as bug #ABC but that + one is not getting enough attention." Instead, upvote the original + issue or add a comment that provides new details that are not already + captured or (best of all) assign it to yourself and start working on it! + +### How to propose a specific change + +If you have an idea that you would like to land, the recommended process is: + +1. [File a bug](https://github.com/flutter/flutter/issues/new/choose) describing the problem. +2. Write a [design doc](https://flutter.dev/go/template) that references this problem and describes your solution. +3. Socialize your design on the bug you filed and on [Chat](../Chat.md). Collect feedback from various people. +4. Once you have received feedback, if it is mostly positive, implement your idea and submit it. See the [Tree Hygiene](../Tree-hygiene.md) wiki page for details on submitting PRs. + +### Every issue should be actionable + +Avoid filing issues that are on vague topics without a clear problem description. + +Please close issues that are not actionable. See [Triage](../../triage/README.md) for more details. + +#### Issues should have clear steps to reproduce + +Every issue should have a clear description of the steps to reproduce the problem, the expected results, and the actual results. + +If an issue is lacking this information, request it from the commenter and close the issue if information is not forthcoming. + +## Closing issues + +An issue should be closed if: + +* it is fixed! +* it is a [duplicate](../../triage/README.md#duplicates). +* it makes multiple requests which could be addressed independently. Encourage people to file separate bugs for each independent item. +* it is describing a _solution_ rather than a _problem_. For example, it has no use cases, and the use cases are not obvious, or might have other solutions. +* it is not [actionable](../../triage/README.md#what-makes-an-issue-actionable) and does not [have unusual symptoms](../../triage/README.md#unactionable-bugs-with-unusual-symptoms). This covers a wide variety of cases, such as invalid bugs, bugs without steps to reproduce, bugs that have become irrelevant, or bugs that are unclear and which the reporter has not offered more details for. It also includes non-catastrophic bugs that cannot be reproduced by anyone but the original reporter. For this latter case, encourage the reporter to attempt to debug the issue themselves, potentially giving suggestions for places where they could instrument the code to find the issue, and invite them to join the Discord for help; then add the `waiting for customer response` label. The issue will get automatically closed after a few weeks if they don't respond. +* it is a feature request that we are unlikely to ever address, and if we did address it, it would not be part of the core SDK (e.g. it would be in a package). (For example, anything in the [`would be a good package` `P3`](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22would+be+a+good+package%22+label%3AP3) list is a good candidate for closing without fixing.) +* we would not accept a fix even if one were to be offered ([e.g. support for platforms at level of support 4](../../about/Values.md#levels-of-support)). +* it is an issue regarding internal processes, tooling, or infrastructure (i.e. something that our users are not affected by), that we have no plans to get to (e.g. that would be marked P3). (For example, anything in the [`c: tech-debt` `P3`](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22c%3A+tech-debt%22+label%3AP3) list is a good candidate for closing.) +* it is tracking technical debt but the suggested improvements are marginal at best or would require significant research to be evaluated. Prefer having folks who work in the relevant part of the code make improvements based on their judgment. + + +The following are poor reasons for closing an issue: + +* it has not been updated for a long time. This is fine; if the issue has not changed, then it is normal for it to not be updated. +* it is a low-priority user-facing issue. We would prefer to have one long-lived open bug with a single conversation, than many short-lived closed bugs with many independent conversations. +* it would be hard to fix. + + +In general, any bug that has the following characteristics should definitely not be closed: + +* it is a well-described problem that we can reproduce reliably. +* it is a well-argued feature request with a solid use case and clear goal that cannot reasonably be implemented in a package. (If it's something we're unlikely to ever do, it should be marked P3.) +* it is tracking technical debt that is clearly actionable and whose benefits are clear. +* it is a request to add a customization to a material widget that fits cleanly into the existing material design library's ethos. +* it was filed by a team member and is assigned to that team member. + + +## Tracking bugs for team members + +If you need to track some work item, you can file a bug and assign it to yourself. Self-assigned bugs like this are mostly ignored by the bots and you can ignore the rules for such issues. (When you leave the team, we'll likely close these issues.) Some people like to use bugs like this as "umbrella" bugs for tracking work. You may also find it useful to use GitHub projects to manage work items. + + +## Flaky tests + +When a test flakes, a P0 bug is automatically filed with the label [`team: flakes`](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22team%3A+flakes%22+sort%3Aupdated-asc). This issue should be investigated with all due haste, and a priority level should then be assigned to the issue. At any particular time, the most flaky tests should remain P0. However, flakes that are hard to pin down may be downgraded in priority (e.g. to P1). Please do not ignore the issue entirely, however, and make sure to close bugs once they are resolved, even if it's by magic. + +_See also: [Reducing test flakiness](../../infra/Reducing-Test-Flakiness.md)_ \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Flutter-Test-Fonts.md b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Flutter-Test-Fonts.md new file mode 100644 index 0000000000000000000000000000000000000000..5514dc74949003db3206fc1d0ef1ea16ebd6df91 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Flutter-Test-Fonts.md @@ -0,0 +1,77 @@ +Flutter tests run via the `flutter test` command have access to several readily available test fonts, including [FlutterTest](#the-fluttertest-test-font) and [Ahem](https://www.w3.org/Style/CSS/Test/Fonts/Ahem/). + +In tests, if [`fontFamily`](https://master-api.flutter.dev/flutter/painting/TextStyle/fontFamily.html) isn't specified or the specified font families are not available, the default test font `FlutterTest` will be used. +If you wish to use a custom font in tests, check out the [`FontLoader`](https://master-api.flutter.dev/flutter/services/FontLoader-class.html) class, and [this example](https://github.com/flutter/flutter/blob/6ec444506375cfa94535a45c2320e01094c295e0/packages/flutter/test/material/icons_test.dart#L149-L172). + +## The `FlutterTest` test font + +### Font Metrics (in design units) + +| | Ascent | Descent | Line Gap (Leading) | Units Per EM | Underline Position | +| :-- | :---: | :---: | :---: | :---: | :---: | +| `FlutterTest` | 768 (0.75 em) above the baseline | 256 (0.25 em) below the baseline | 0 | 1024 | 146 under the baseline | +| `Ahem` | 800 (0.8 em) above the baseline | 200 (0.2 em) below the baseline | 0 | 1000 | 142 under the baseline | + +The `FlutterTest` font's `1024 units-per-em` is a power of 2, making it less likely to introduce precision loss in metrics calculations, when used as a divisor. +Thanks to that, the `FlutterTest` font generally provides more precise and font-engine-agnostic font/glyph metrics than `Ahem`. + +**Example** + +You can expect this test to pass on all platforms (currently with the exception of the web HTML renderer): +```dart +final painter = TextPainter( + text: const TextSpan( + text: 'text', + style: TextStyle(fontSize: 14.0, /* "fontFamily: 'FlutterTest'" is implied */), + ), + textDirection: TextDirection.ltr, + textScaleFactor: 1.0, +); +final lineMetrics = textPainer.computeLineMetrics().first; + +expect(lineMetrics.height, 14.0); +expect(lineMetrics.ascent, 10.5); // 0.75em * 14.0pt +expect(lineMetrics.descent, 3.5); // 0.25em * 14.0pt +// 'text' is 4 glyphs. Most glyphs are as wide as they are tall. +expect(lineMetrics.width, 14.0 * 4); +``` +While with the `Ahem` font you would get [slightly different metrics on different platforms](https://github.com/flutter/flutter/issues/62819), since they use different font engines to scale the font. + +### Glyphs + +(images to be added) + +The font covers most types of glyphs defined in the `Ahem` font. + +| Square | Ascent Flushed | Descent Flushed | .notdef | + | :---: | :----: | :----: | :----: | +| a box that fills the em square | the **Square** glyph but without the part above the baseline | the **Square** glyph but without the part below the baseline | a hollow box | + +The remaining glyphs (for example, **Full Advance**, **1/2 Advance**) are defined with no outlines in the glyph, with different x-advances. + + +### Glyph Mapping + +Unmapped codepoints will be mapped to the **.notdef** glyph in the test environment. + +| \ Script
    Glyph | DFLT | grek | hani | latn | + | :--- | :----: | :----: | :----: | :----: | +| Square | **codepoint(s):** 0x21-0x26, 0x28-0x40, 0x5b-0x60, 0x7b-0x7e, 0xa1-0xa9, 0xab-0xb9, 0xbb-0xbf, 0xd7, 0xf7, 0x2c6-0x2c7, 0x2c9, 0x2d8-0x2dd, 0x2013-0x2014, 0x2018-0x201a, 0x201c-0x201e, 0x2020-0x2022, 0x2026, 0x2030, 0x2039-0x203a, 0x2044, 0x2122, 0x2202, 0x2206, 0x220f, 0x2211-0x2212, 0x2219-0x221a, 0x221e, 0x222b, 0x2248, 0x2260, 0x2264-0x2265, 0x22f2, 0x25ca, 0xf000-0xf002
    **character(s):** `!` `"` `#` `$` `%` `&` `(` `)` `*` `+` `,` `-` `.` `/` `0` `1` `2` `3` `4` `5` `6` `7` `8` `9` `:` `;` `<` `=` `>` `?` `@` `[` `\` `]` `^` `_` `` ` `` `{` `\|` `}` `~` `¡` `¢` `£` `¤` `¥` `¦` `§` `¨` `©` `«` `¬` `` `®` `¯` `°` `±` `²` `³` `´` `µ` `¶` `·` `¸` `¹` `»` `¼` `½` `¾` `¿` `×` `÷` `ˆ` `ˇ` `ˉ` `˘` `˙` `˚` `˛` `˜` `˝` `–` `—` `‘` `’` `‚` `“` `”` `„` `†` `‡` `•` `…` `‰` `‹` `›` `⁄` `™` `∂` `∆` `∏` `∑` `−` `∙` `√` `∞` `∫` `≈` `≠` `≤` `≥` `⋲` `◊` `<0xf000>` `<0xf001>` `<0xf002>` | **codepoint(s):** 0x394, 0x3a5, 0x3a7, 0x3a9, 0x3bc, 0x3c0, 0x2126
    **character(s):** `Δ` `Υ` `Χ` `Ω` `μ` `π` `Ω` | **codepoint(s):** 0x3007, 0x4e00, 0x4e03, 0x4e09, 0x4e2d, 0x4e5d, 0x4e8c, 0x4e94, 0x516b, 0x516d, 0x5341, 0x5426, 0x56d7, 0x56db, 0x571f, 0x6587, 0x6587, 0x662f, 0x6728, 0x672c, 0x6b63, 0x6c34, 0x6d4b, 0x706b, 0x786e, 0x8bd5, 0x91d1
    **character(s):** `〇` `一` `七` `三` `中` `九` `二` `五` `八` `六` `十` `否` `囗` `四` `土` `文` `文` `是` `木` `本` `正` `水` `测` `火` `确` `试` `金` | **codepoint(s):** 0x41-0x5a, 0x61-0x7a, 0xaa, 0xba, 0xc0-0xc8, 0xca-0xd6, 0xd8-0xf6, 0xf8-0xff, 0x131, 0x152-0x153, 0x178, 0x192
    **character(s):** `A` `B` `C` `D` `E` `F` `G` `H` `I` `J` `K` `L` `M` `N` `O` `P` `Q` `R` `S` `T` `U` `V` `W` `X` `Y` `Z` `a` `b` `c` `d` `e` `f` `g` `h` `i` `j` `k` `l` `m` `n` `o` `p` `q` `r` `s` `t` `u` `v` `w` `x` `y` `z` `ª` `º` `À` `Á` `Â` `Ã` `Ä` `Å` `Æ` `Ç` `È` `Ê` `Ë` `Ì` `Í` `Î` `Ï` `Ð` `Ñ` `Ò` `Ó` `Ô` `Õ` `Ö` `Ø` `Ù` `Ú` `Û` `Ü` `Ý` `Þ` `ß` `à` `á` `â` `ã` `ä` `å` `æ` `ç` `è` `é` `ê` `ë` `ì` `í` `î` `ï` `ð` `ñ` `ò` `ó` `ô` `õ` `ö` `ø` `ù` `ú` `û` `ü` `ý` `þ` `ÿ` `ı` `Œ` `œ` `Ÿ` `ƒ` | +| Ascent Flushed | | | | **codepoint(s):** 0x70
    **character(s):** `p` | +| Descent Flushed | | | | **codepoint(s):** 0xc9
    **character(s):** `É` | +| Full Advance | **codepoint(s):** 0x20
    **character(s):** `` | | | | +| 1/2 Advance | **codepoint(s):** 0x2002
    **character(s):** `` | | | | +| 1/3 Advance | **codepoint(s):** 0x2004
    **character(s):** `` | | | | +| 1/4 Advance | **codepoint(s):** 0x2005
    **character(s):** `` | | | | +| 1/6 Advance | **codepoint(s):** 0x2006
    **character(s):** `` | | | | +| 1/5 Advance | **codepoint(s):** 0x2009
    **character(s):** `` | | | | +| 1/10 Advance | **codepoint(s):** 0x200a
    **character(s):** `` | | | | +| Zero Advance | **codepoint(s):** 0xfeff
    **character(s):** `` | | | | + +### Caveats + +To disable FreeType auto-hinter, the family name defined within the font is not `FlutterTest` but `MingLiU`. This typically doesn't affect framework tests as the font is registered under the name `FlutterTest`. + +### Adding more Codepoints/Glyphs to the `FlutterTest` Font + +The `FlutterTest` font is generated by [this script](https://github.com/flutter/engine/blob/170cbea/tools/gen_test_font.py). diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/testing/How-to-write-a-memory-test-for-Flutter.md b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/How-to-write-a-memory-test-for-Flutter.md new file mode 100644 index 0000000000000000000000000000000000000000..d88677f5bdec9e956f0f08d247309a0c936b8ea1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/How-to-write-a-memory-test-for-Flutter.md @@ -0,0 +1,121 @@ +There are many ways to write a memory test for Flutter. In this article, we give 3 classes of example tests that are currently used by Flutter device lab. Memory performance is a high priority for Flutter so there are many new memory tools and test utilities in progress. We’ll add them in this doc in the future. + +## [MemoryTest][class MemoryTest] that interacts with adb directly + +These memory tests use the [MemoryTest class defined in the device lab perf_tests.dart][class MemoryTest] to poll adb directly before and after an overridable `useMemory` function. By default, `useMemory` will just run an app in release and wait for a “done” message to be printed in logcat. + +Examples include +- [`complex_layout_scroll_perf__memory`][complex layout memory manifest] + - [device lab task file][complex layout memory task] + - [main file][complex layout memory main] +- [`fast_scroll_large_images_memory`][fast scroll memory manifest] + - [device lab task file][fast scroll memory task] + - [main file][fast scroll memory main] + +To write a new MemoryTest case `some_memory_perf` and add it to Flutter’s device lab so Flutter’s CI system can measure it for each Flutter commit, follow examples above to + +1. Create a `main` function for the test app in a file named like `test_memory/some_memory_perf.dart`. +2. Add a `some_memory_perf` entry to [manifest.yaml][manifest] +3. Add a `some_memory_perf.dart` file to [dev/devicelab/bin/tasks][tasks] folder. + + +### Pros +- Low overhead. +- Works in all runtime modes, including release. +- The test has complete control on when to start and stop the memory measurement. + +### Cons +- Only have 2 memory readings, begin and end, during the app run. +- Polling ADB may trigger collections of the Java heap. +- Only works on Android targets. +- Requires a test environment with access to ADB. +- Requires a host machine with Flutter SDK installed. + +## DevTools Memory Test + +The memory tests use DevTools to poll adb and Dart VM during a normal Flutter driver test run, which typically measures speed performance instead of memory performance. [DevToolsMemoryTest][class DevToolsMemoryTest] handles most of the process so a new test only needs to specify the driver test location. + +Examples include +- [`complex_layout_scroll_perf__devtools_memory`][complex layout devtools memory manifest] + - [device lab task file][complex layout devtools memory task] +- [`large_image_changer_perf_android`][large image changer manifest] + - [device lab task file][large image changer task] + +To write a new DevTools memory test case `some_memory_perf` and add it to Flutter’s device lab so Flutter’s CI system can measure it for each Flutter commit, follow examples above to + +1. Write (or reuse) a normal Flutter driver test for the app in files named like `test_driver/some_memory_perf.dart` and `test_driver/some_memory_perf_test.dart`. +2. Add a `some_memory_perf` entry to [manifest.yaml][manifest] +3. Add a `some_memory_perf.dart` file to [dev/devicelab/bin/tasks][tasks] folder. + +### Pros +- Have finer grained measurements (~1 reading per second). +- Also have Dart VM memory info. +- Can easily turn a speed-focused driver test into a memory test. + +### Cons +- Don’t have much control on when to start and stop the measurement. +- Polling ADB may trigger collections on the Java heap. +- Requires a test environment with access to ADB. +- Only works on Android targets. +- Not available for release mode, so may incur extra memory overhead in profile or debug mode. +- Requires a host machine with Flutter SDK installed. + +## iOS Memory Test + +The iOS embedding of Flutter supports sampling memory usage during runtime, which then writes metrics to the [Dart timeline][Dart timeline]. After recording a timeline for the relevant portion of an application’s execution, the timeline can be analyzed to obtain memory related information from the profile. + +Examples include +- [`large_image_changer_perf_ios`][large image changer manifest ios] + - [device lab task file][large image changer task ios] + +To write a new iOS memory test case `some_memory_perf` and add it to Flutter’s device lab so Flutter’s CI system can measure it for each Flutter commit, follow examples above to + +1. Write (or reuse) a normal Flutter driver test for the app in files named like `test_driver/some_memory_perf.dart` and `test_driver/some_memory_perf_test.dart`. +2. Add a `some_memory_perf` entry to [manifest.yaml][manifest] +3. Add a `some_memory_perf.dart` file to [dev/devicelab/bin/tasks][tasks] folder that specifies `measureMemory: true`. + +### Pros +- Can be run on a machine that does not have the Flutter SDK installed. +- Can adjust the sampling frequency so one can have as many or as few measurements as needed. +- Each sampling has much less overhead compared to calling adb +- Flutter driver tests on iOS get memory measurements for free. + +### Cons +- Only works on iOS targets. +- Not available for release mode, so may incur extra memory overhead in profile or debug mode. +- Memory polling mechanism may incur additional memory overhead. + + +[manifest]: https://github.com/flutter/flutter/blob/main/dev/devicelab/manifest.yaml + +[tasks]: https://github.com/flutter/flutter/tree/main/dev/devicelab/bin/tasks + +[class MemoryTest]: https://github.com/flutter/flutter/blob/51bb11f7cece47840a9ee6d6d43db97ab16b31df/dev/devicelab/lib/tasks/perf_tests.dart#L941 + +[complex layout memory manifest]: https://github.com/flutter/flutter/blob/7e41425d4af21dec7a7ff072a3ec1387859e32c8/dev/devicelab/manifest.yaml#L329 + +[complex layout memory task]: https://github.com/flutter/flutter/blob/main/dev/devicelab/bin/tasks/complex_layout_scroll_perf__memory.dart + +[complex layout memory main]: https://github.com/flutter/flutter/blob/main/dev/benchmarks/complex_layout/test_memory/scroll_perf.dart + +[fast scroll memory manifest]: https://github.com/flutter/flutter/blob/7e41425d4af21dec7a7ff072a3ec1387859e32c8/dev/devicelab/manifest.yaml#L837 + +[fast scroll memory task]: https://github.com/flutter/flutter/blob/main/dev/devicelab/bin/tasks/fast_scroll_large_images__memory.dart + +[fast scroll memory main]: https://github.com/flutter/flutter/blob/main/dev/benchmarks/macrobenchmarks/test_memory/large_images.dart + +[class DevToolsMemoryTest]: https://github.com/flutter/flutter/blob/7e41425d4af21dec7a7ff072a3ec1387859e32c8/dev/devicelab/lib/tasks/perf_tests.dart#L1138 + +[complex layout devtools memory manifest]: https://github.com/flutter/flutter/blob/7e41425d4af21dec7a7ff072a3ec1387859e32c8/dev/devicelab/manifest.yaml#L359 + +[complex layout devtools memory task]: https://github.com/flutter/flutter/blob/main/dev/devicelab/bin/tasks/complex_layout_scroll_perf__devtools_memory.dart + +[large image changer manifest]: https://github.com/flutter/flutter/blob/7e41425d4af21dec7a7ff072a3ec1387859e32c8/dev/devicelab/manifest.yaml#L874 + +[large image changer task]: https://github.com/flutter/flutter/blob/main/dev/devicelab/bin/tasks/large_image_changer_perf_android.dart + +[Dart timeline]:https://flutter.dev/docs/development/tools/devtools/timeline + +[large image changer manifest ios]: https://github.com/flutter/flutter/blob/7e41425d4af21dec7a7ff072a3ec1387859e32c8/dev/devicelab/manifest.yaml#L880 + +[large image changer task ios]: https://github.com/flutter/flutter/blob/main/dev/devicelab/bin/tasks/large_image_changer_perf_ios.dart diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/testing/How-to-write-a-render-speed-test-for-Flutter.md b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/How-to-write-a-render-speed-test-for-Flutter.md new file mode 100644 index 0000000000000000000000000000000000000000..bc5d281ac5b45295e434718a8c153a55326ec4c4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/How-to-write-a-render-speed-test-for-Flutter.md @@ -0,0 +1,258 @@ +There are many ways to write a render speed test for Flutter. In this article, we give one example that uses [e2e][] (or [Flutter driver][flutter_driver]), the [dev/benchmarks/macrobenchmarks][macrobenchmarks] app, and the [dev/devicelab][devicelab] to automatically collect metrics for every future Flutter commit and send them to [flutter/cocoon][cocoon]. + +The instructions below are for contributors who want to expose a Flutter SDK (framework or engine) performance issue, or write pull requests to fix such issues. If one only needs to test the performance of a particular Flutter app, please reference +- https://flutter.dev/docs/cookbook/testing/integration/introduction. +- [https://flutter.dev/docs/perf/rendering](https://flutter.dev/docs/perf/rendering) + +Since Flutter Web and Flutter Desktop are still in their early stages, the content here is only well tested and supported on mobile platforms (Android/iOS). We'll come up with docs on how to write performance tests for Web/Desktop later. + +Throughout this doc, we assume that the render speed test is for some `super_important_case`. + +## 1. Add a page to macrobenchmarks + +The [macrobenchmarks][] is a Flutter app that includes many pages each of which corresponds to a specific performance test scenario. It provides some boilerplate code and auto-generated files so when a new scenario needs to be tested, one only needs to add a single page and a handful of files to the [Flutter repo][flutter_repo] instead of adding a new Flutter app with dozens of auto-generated files. (The "macro" means that it's benchmarking a big system, including the whole Flutter framework and engine, instead of just a micro Dart or C++ function.) + +To add a new test scenario `super_important_case`, do the following: + +1. Create a `super_important_case.dart` inside [macrobenchmarks/lib/src][] to define a `SuperImportantCasePage extends StatelessWidget {...}`. If there's a minimal Flutter app with a single `main.dart` file that reproduces the performance issue in the `super_important_case`, we'd often copy the content of that `main.dart` to `super_important_case.dart`. +2. Add a `const String kSuperImportantCaseRouteName = '/super_important_case'` to [macrobenchmarks/lib/common.dart][] for later use. +3. Open [macrobenchmarks/lib/main.dart][] and add the `kSuperImportantCaseRouteName: (BuildContext conttext) => SuperImportantCasePage(),` to the routes of [`MacrobenchmarksApp`][]. +4. Scroll down to [`HomePage`'s `ListView`][] and add the following `RaisedButton` so manual testers and the Flutter driver can tap it to navigate to the `super_important_case`. + + ```Dart + RaisedButton( + key: const Key(kSuperImportantCaseRouteName), + child: const Text('Super Important Case'), + onPressed: () { + Navigator.pushNamed(context, kSuperImportantCaseRouteName); + }, + ), + ``` + +## 2. Add an e2e test + +When the `super_important_case` page above is finished and manually tested, one can then add an automated integration test to get some performance metrics as follows. + +1. We use [macrobenchmarks/test_driver/e2e_test.dart][] as the host side script. All other tests depends on this file, so discuss with other Flutter members first if you want to change it. + +2. Add `super_important_case_e2e.dart` to [macrobenchmarks/test][] with the following content. The `macroPerfTestE2E` function will navigate the macrobenchmarks app to the `super_important_case` page, and starts collecting performance metrics. The optional arguments are: + - The `pageDelay` is the time delay for loading the page. By default it doesn't wait. + - The `duration` is the performance metric sampling time. + - The `timeout` specifies the backstop timeout implemented by the test package, See [testWidgets](https://api.flutter.dev/flutter/flutter_test/testWidgets.html). + - The `body` provides custom ways of driving that page during the benchmark such as scrolling through lists. When this is used together with `duration`, the test will perform for which ever last longer. + - The `setup` provides the operation needed to setup before benchmark starts. + + + ```Dart + // Copyright 2014 The Flutter Authors. All rights reserved. + // Use of this source code is governed by a BSD-style license that can be + // found in the LICENSE file. + + import 'package:flutter/gestures.dart'; + import 'package:flutter/widgets.dart'; + import 'package:flutter/foundation.dart'; + import 'package:flutter_test/flutter_test.dart'; + import 'package:macrobenchmarks/common.dart'; + + import 'util.dart'; + + void main() { + macroPerfTestE2E( + 'super_important_case', + kSuperImportantCaseRouteName, + /* optional */ pageDelay: const Duration(seconds: 1), + /* optional */ duration: const Duration(seconds: 3), + /* optional */ timeout: const Duration(seconds: 30), + /* optional */ body: (WidgetController controller) async { + ... + }, + /* optional */ setup: (WidgetController controller) async { + ... + }, + ); + } + ``` + +Once all steps above are done, one should be able to run `flutter drive -t test/super_important_case_perf.dart --driver test_driver/e2e_test.dart` inside the [macrobenchmarks][] directory. After the driver test finished, the metrics should be written into a json file named `e2e_perf_summary.json` inside a temporary `build` directory under the current [macrobenchmarks][] directory. + + + +Some useful metrics in that json file include +- `average_frame_build_time_millis` +- `average_frame_rasterization_time_millis` +- `worst_frame_build_time_millis` +- `worst_frame_rasterization_time_millis` + +## 2a. Add a driver test (deprecated) + +(Skip this if step 2 is sufficient for you.) + +When the `super_important_case` page above is finished and manually tested, one can then add an automatic driver test to get some performance metrics as follows. + +1. We use [macrobenchmarks/test_driver/run_app.dart] as the device side app. All other tests depends on this file, so discuss with other Flutter members first if you want to change it. + +2. Add `super_important_case_perf_test.dart` to [macrobenchmarks/test_driver][] with the following content. The `macroPerfTest` function will navigate the macrobenchmarks app to the `super_important_case` page, and starts collecting performance metrics. The `driverOps` provides custom ways of driving that page during the benchmark such as scrolling through lists. The `setupOps` provides the operation needed to setup before benchmark starts. + + ```Dart + import 'package:flutter_driver/flutter_driver.dart'; + import 'package:macrobenchmarks/common.dart'; + + import 'util.dart'; + + void main() { + macroPerfTest( + 'super_important_case', + kSuperImportantCaseRouteName, + pageDelay: const Duration(seconds: 1), + /* optional */ driverOps: (FlutterDriver driver) async { + ... + }, + /* optional */ setupOps: (FlutterDriver driver) async { + ... + }, + ); + } + ``` + +Once all steps above are done, one should be able to run `flutter drive -t test_driver/run_app.dart --driver test_driver/super_important_case_perf.dart` inside the [macrobenchmarks][] directory. After the driver test finished, the metrics should be written into a json file named `super_important_case_perf__timeline_summary.json` inside a temporary `build` directory under the current [macrobenchmarks][] directory. + + + +Some useful metrics in that json file include +- `average_frame_build_time_millis` +- `average_frame_rasterization_time_millis` +- `worst_frame_build_time_millis` +- `worst_frame_rasterization_time_millis` + +## 3. Update README + +Add the new test to the list in [macrobenchmarks/README.md]. + +## 4. Add a task to devicelab + +To keep Flutter performant, running a test locally once in a while and check the metrics manually is insufficient. The following steps let the [devicelab][] run the test automatically for every Flutter commit so performance regressions or speedups for the `super_important_case` can be detected quickly. + +1. Add `super_important_case_perf__e2e_summary` to [dev/devicelab/manifest.yaml][] under `tasks`. Follow other tasks to properly set descriptions and choose agent such as `linux/android` (Moto G4) or `mac/ios` (iPhone 6s). Mark it `flaky: true` so that while we observe the test case behavior on devicelab, we don't block the build tree. + +2. Add `super_important_case_perf__e2e_summary.dart` to [dev/devicelab/bin/tasks][] with a content like + + ```Dart + import 'dart:async'; + + import 'package:flutter_devicelab/tasks/perf_tests.dart'; + import 'package:flutter_devicelab/framework/adb.dart'; + import 'package:flutter_devicelab/framework/framework.dart'; + + Future main() async { + deviceOperatingSystem = DeviceOperatingSystem.android; // or ios + await task(createSuperImportantCasePerfE2ETest()); + } + ``` + +3. Add the following `createSuperImportantCasePerfTest` function to [dev/devicelab/lib/tasks/perf_tests.dart][] + + ```Dart + TaskFunction createSuperImportantCasePerfE2ETest() { + return PerfTest.e2e( + '${flutterDirectory.path}/dev/benchmarks/macrobenchmarks', + 'test/super_important_case_e2e.dart', + ).run; + } + ``` + +4. Locally test the devicelab task by running `../../bin/cache/dart-sdk/bin/dart bin/run.dart -t super_important_case_perf__e2e_summary` inside the [dev/devicelab][devicelab] directory with an Android or iOS device connected. You should see a success and a summary of metrics being printed out. + +5. Submit a pull request of everything above. + +6. Finally, remove `flaky: true` once the test is proven to be reliable for a few days. Since this may take a while, creating a reminder calendar event could be a good idea. + +## 4a. Add a task to devicelab for driver tests (deprecated) + +(Skip this if you didn't do step 2a.) + +To keep Flutter performant, running a test locally once in a while and check the metrics manually is insufficient. The following steps let the [devicelab][] run the test automatically for every Flutter commit so performance regressions or speedups for the `super_important_case` can be detected quickly. + +1. Add `super_important_case_perf__timeline_summary` to [dev/devicelab/manifest.yaml][] under `tasks`. Follow other tasks to properly set descriptions and choose agent such as `linux/android` (Moto G4) or `mac/ios` (iPhone 6s). + +2. Add `super_important_case_perf__timeline_summary.dart` to [dev/devicelab/bin/tasks][] with a content like + + ```Dart + import 'dart:async'; + + import 'package:flutter_devicelab/tasks/perf_tests.dart'; + import 'package:flutter_devicelab/framework/adb.dart'; + import 'package:flutter_devicelab/framework/framework.dart'; + + Future main() async { + deviceOperatingSystem = DeviceOperatingSystem.android; // or ios + await task(createSuperImportantCasePerfTest()); + } + ``` + +3. Add the following `createSuperImportantCasePerfTest` function to [dev/devicelab/lib/tasks/perf_tests.dart][] + + ```Dart + TaskFunction createSuperImportantCasePerfTest() { + return PerfTest( + '${flutterDirectory.path}/dev/benchmarks/macrobenchmarks', + 'test_driver/run_app.dart', + 'super_important_case_perf', + testDriver: 'test_driver/super_important_case_perf_test.dart', + ).run; + } + ``` + +4. Locally test the devicelab task by running `../../bin/cache/dart-sdk/bin/dart bin/run.dart -t super_important_case_perf__timeline_summary` inside the [dev/devicelab][devicelab] directory with an Android or iOS device connected. You should see a success and a summary of metrics being printed out. + +5. Submit a pull request of everything above. + +6. Finally, remove `flaky: true` once the test is proven to be reliable for a few days. Since this may take a while, creating a reminder calendar event could be a good idea. + +## 5. Set benchmark baseline + +Tasks will be run automatically in the [devicelab], and the result is shown in [flutter-dashboard]. Set the baseline in [flutter-dashboard] once the new test gets enough data. Also for metrics like "vsync_transitions_missed", change the unit from default ms to frames or other suitable units. + +## Acknowledgement + +Big congratulations if you've successfully finished all steps above! You just made a big contribution to Flutter's performance. Please also feel encouraged to improve this doc to help future contributors (which probably include a future yourself that would forget something above in a few months)! + + +[flutter_driver]: https://github.com/flutter/flutter/tree/main/packages/flutter_driver + +[macrobenchmarks]: https://github.com/flutter/flutter/tree/main/dev/benchmarks/macrobenchmarks + +[cocoon]: https://github.com/flutter/cocoon + +[devicelab]: https://github.com/flutter/flutter/tree/main/dev/devicelab + +[dev/devicelab/manifest.yaml]: https://github.com/flutter/flutter/tree/main/dev/devicelab/manifest.yaml + +[flutter_repo]: https://github.com/flutter/flutter + +[macrobenchmarks/lib/src]: https://github.com/flutter/flutter/tree/main/dev/benchmarks/macrobenchmarks/lib/src + +[macrobenchmarks/lib/common.dart]: https://github.com/flutter/flutter/tree/main/dev/benchmarks/macrobenchmarks/lib/common.dart + +[macrobenchmarks/lib/main.dart]: https://github.com/flutter/flutter/tree/main/dev/benchmarks/macrobenchmarks/lib/main.dart + +[`MacrobenchmarksApp`]: https://github.com/flutter/flutter/blob/94b7ff241e6e5445b7f30215a777eb4971311797/dev/benchmarks/macrobenchmarks/lib/main.dart#L24 + +[`HomePage`'s `ListView`]: https://github.com/flutter/flutter/blob/94b7ff241e6e5445b7f30215a777eb4971311797/dev/benchmarks/macrobenchmarks/lib/main.dart#L58 + +[macrobenchmarks/test_driver]: https://github.com/flutter/flutter/tree/main/dev/benchmarks/macrobenchmarks/test_driver + +[macrobenchmarks/test_driver/run_app.dart]: https://github.com/flutter/flutter/tree/main/dev/benchmarks/macrobenchmarks/test_driver/run_app.dart + +[macrobenchmarks/README.md]: https://github.com/flutter/flutter/blob/main/dev/benchmarks/macrobenchmarks/README.md + +[dev/devicelab/bin/tasks]: https://github.com/flutter/flutter/tree/main/dev/devicelab/bin/tasks + +[dev/devicelab/lib/tasks/perf_tests.dart]: https://github.com/flutter/flutter/tree/main/dev/devicelab/lib/tasks/perf_tests.dart + +[flutter-dashboard]: https://flutter-dashboard.appspot.com/benchmarks.html + +[e2e]: https://pub.dev/packages/e2e + +[macrobenchmarks/test_driver/e2e_test.dart]: https://github.com/flutter/flutter/blob/main/dev/benchmarks/macrobenchmarks/test_driver/e2e_test.dart + +[macrobenchmarks/test]: https://github.com/flutter/flutter/blob/main/dev/benchmarks/macrobenchmarks/test \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Running-Flutter-Driver-tests-with-Web.md b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Running-Flutter-Driver-tests-with-Web.md new file mode 100644 index 0000000000000000000000000000000000000000..07c5cf2772cd38819c08d2469575c8caf49c0cc9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Running-Flutter-Driver-tests-with-Web.md @@ -0,0 +1,108 @@ +In the last months Flutter Driver tests has been enabled for most browsers. + +This document explains the steps that should be followed before running the tests, how to run the tests, example usages and handy tools that can be used. + +## Preparing the driver + +The first step of using Flutter Driver tests for Flutter Web testing is to install(prepare) the driver for the target browser. + +### Using Chrome + +For Chrome Desktop browsers: + +- Check the version of Chrome. +- Download the Chrome driver for that version from [driver downloads](https://chromedriver.chromium.org/downloads). +- Start the driver on port 4444. `chromedriver --port=4444` + +Chrome on Android browser tests can be run both on device and on the emulator. + +- Both for using a real device and emulator, make sure that Android platform tools are installed +- For using an emulator, follow the [instructions](https://developer.android.com/studio/run/managing-avds) for creating and managing one. +- For real device tests check the devices Chrome's version. Please note that the Chrome installed on the emulator will probably have a different version than the host machine. Check the emulator's Chrome's version. +- Download the driver [driver downloads](https://chromedriver.chromium.org/downloads). +- Start the adb server: `adb start-server` you can later kill with `adb kill-server` +- For the web port you are planning to use for Flutter driver tests, let's say 8080 for example: + - Test the browser has access to a server running on localhost:8080 + - One can utilize adb for this purpose. For more [details](https://developer.android.com/studio/command-line/adb). + - Another alternative is using Chrome Remote devices from browser page `chrome://inspect/devices#devices`. For more details on useful links: [remote debugging webviews](https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews), [remote debugging android devices](https://developers.google.com/web/tools/chrome-devtools/remote-debugging) +- Start the Chrome driver on port 4444. `chromedriver --port=4444` + +### Using Safari + +Like Safari browser Safari driver also comes installed on the macOS devices. For using Safari on macOS steps are easy: + +- Use the [instructions](https://developer.apple.com/documentation/webkit/testing_with_webdriver_in_safari) to enable safari driver. +- start safari driver on port 4444 `./usr/bin/safaridriver --port=4444` + +IOS Safari can be run on a simulator. Simulators are part of Xcode, more [details](https://developer.apple.com/documentation/xcode). After making sure your macOS have simulators, follow the steps above to start the Safari driver. Unlike Android the Desktop Safari version and simulator version is the same. + +### Using Firefox + +- Check the version of Firefox. +- Download the Gecko driver for that version from [the releases](https://github.com/mozilla/geckodriver/releases). +- Add the Firefox driver to your path. + +Note that this section is experimental, at this point we don't have automated tests running on Firefox. + +### Using Edge + +More information can be found on Edge Drivers on [developer site](https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/). Edge driver should also be added to the path after installation. + +Note that this section is experimental, at this point we don't have automated tests running on Edge. + +## Running Flutter Driver tests + +The command for running the driver tests: + +``` +flutter drive --target=test_driver/[driver_test].dart -d web-server --release --browser-name=chrome --web-port=8080 +``` + +Let's go over the different arguments that can be used: + +- Use one of the six browsers for `--browser-name` parameter: chrome, safari, ios-safari, android-chrome, firefox, edge. +- Use `--local-engine=host_debug_unopt --local-engine-host=host_debug_unopt` for running tests with a local engine. +- Use `--release` or `--profile` mode for running the tests. Debug mode will be supported soon. +- Change the `--webport` as needed, don't forget to change remote debugging settings for Android Chrome. +- Use `--no-android-emulator` for using Android with real devices. + +## Web Installers Repo + +Web installers is a new Flutter project [repository](https://github.com/flutter/web_installers) where we are planning to add utilities for launching, downloading browsers/drivers. + +Currently it can be used for downloading/running Chrome Driver: + +``` +dart lib/web_driver_installer.dart chromedriver --driver-version="78.0.3904.105" +``` + +Or for running the Safari driver: + +``` +dart lib/web_driver_installer.dart safaridriver +``` + +For more details use the [documentation](https://github.com/flutter/web_installers/tree/master/packages/web_drivers). + +## Examples From Flutter Project + +We already use Flutter Driver in many different places in Flutter Project. We have a smoke test running as a [Cirrus CI task](https://github.com/flutter/flutter/blob/main/.cirrus.yml#L291) in Flutter repo, which is also a great example for showing web_installers + flutter drive usage. + +``` +script: + - flutter config --enable-web + - git clone https://github.com/flutter/web_installers.git + - cd web_installers/packages/web_drivers/ + - pub get + - dart lib/web_driver_installer.dart & + - sleep 20 + - chromedriver/chromedriver --port=4444 & + - sleep 5 + - cd ../../../examples/hello_world/ + - flutter drive --target=test_driver/smoke_web_engine.dart -d web-server --profile --browser-name=chrome +``` + +Other example usages: + +- e2e tests under flutter/packages repo. ([PR](https://github.com/flutter/plugins/pull/2554)) +- web engine integration tests under engine repo. ([PR](https://github.com/flutter/engine/pull/16930)) diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Running-and-writing-tests.md b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Running-and-writing-tests.md new file mode 100644 index 0000000000000000000000000000000000000000..51ffb010a00953a87d085a79e04901a1a0256779 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Running-and-writing-tests.md @@ -0,0 +1,125 @@ +## For the framework + +Dart tests are written using the `flutter_test` package's API, +named with the suffix `_test.dart`, and placed inside the +`test/` subdirectory of the package under test. + +We support several kinds of tests: + +- Unit tests, e.g. using [`flutter_test`](https://api.flutter.dev/flutter/flutter_test/flutter_test-library.html). See below. + +- Unit tests that use golden-file testing, comparing pixels. + See [Writing a golden-file test for package:flutter](Writing-a-golden-file-test-for-package-flutter.md). + +- End-to-end tests, e.g. using [`flutter_driver`](https://api.flutter.dev/flutter/flutter_driver/flutter_driver-library.html) and our [device lab](https://github.com/flutter/flutter/blob/main/dev/devicelab/README.md). + +Our bots run on our [test and build infrastructure](https://github.com/flutter/flutter/blob/main/dev/bots/README.md). + +## Running unit tests + +Flutter tests use the `flutter_test` package ([source](https://github.com/flutter/flutter/tree/main/packages/flutter_test), [API documentation](https://api.flutter.dev/flutter/flutter_test/flutter_test-library.html)), +which provides flutter-specific extensions on top of the [Dart `test` package](https://pub.dartlang.org/packages/test). + +To automatically find all files named `*_test.dart` inside a package's `test/` subdirectory, and +run them inside the headless flutter shell as a test, use the `flutter test` command, e.g: + +- `cd examples/hello_world` +- `flutter test` + +Individual tests can also be run directly, e.g.: `flutter test lib/my_app_test.dart` + +You can view these tests on a device by running them directly using `flutter run`. +For tests inside the `packages/flutter` directory, you will need to copy them to +(or symlink to them from) the `test/` directory of an actual app (e.g. the flutter +gallery), since the `flutter` package itself is not set up to execute as an +application (which is necessary to use `flutter run` with a test). + +Unit tests run with `flutter test` run inside a headless flutter shell on your workstation, +you won't see any UI. You can use `print` to generate console output or you can interact +with the Dart VM via the Dart Observatory at [http://localhost:8181/](http://localhost:8181/). + +To debug tests in Observatory, use the `--start-paused` option to start the test in a +paused state and wait for connection from a debugger. This option lets you set breakpoints +before the test runs. + +To run analysis and all the tests for the entire Flutter repository, the same way that Cirrus +runs them, run `dart dev/bots/test.dart` and `dart --enable-asserts dev/bots/analyze.dart`. + +If you've built your own flutter engine (see [Setting up the Engine development environment](../../engine/contributing/Setting-up-the-Engine-development-environment.md)), you +can pass `--local-engine` to change what flutter shell `flutter test` uses. For example, +if you built an engine in the `out/host_debug_unopt` directory, you can use: + +``` +flutter test \ + --local-engine=host_debug_unopt \ + --local-engine-host=host_debug_unopt +``` + +to run the tests in the locally built engine. Note that in this case you need to specify `host_debug_unopt` +as both arguments. + +To learn how to see how well tested the codebase is, see [Test coverage for package:flutter](Test-coverage-for-package-flutter.md). + +_See also: [Flutter Test Fonts](Flutter-Test-Fonts.md)_ + +## Running device lab tests locally + +Flutter runs a number of end-to-end tests in a device lab. The Flutter repo contains code for bootstrapping and executing these tests, in addition to the tests themselves. + +The code that runs the device lab end-to-end tests can be found here: + +``` +dev/devicelab +``` + +The tests that run in the device lab can be found here: + +``` +dev/integration_tests +``` + +When a device lab test fails, it is important to be able to run the test locally to verify the problem and intended solution. To execute a device lab test locally, do the following: + +1. Navigate in your terminal to the `dev/devicelab` directory. +1. Ensure that a physical device, simulator, or emulator is connected. +1. Ensure that the current locale is en_US by executing the command: `export LANG=en_US.UTF-8`. +1. Execute the command: `../../bin/dart bin/run.dart -t [task_name]` where `[task_name]` is replaced by the name of the task you want to run as defined within `.ci.yaml`. + +### Device lab tests with a local engine + +Sometimes a device lab test fails due to engine changes that you've made. In these cases, you'd like to run the impacted device lab tests locally with your local version of the engine. To do this, pass the appropriate flags to `run.dart`: + +```shell +../../bin/dart bin/run.dart \ + --local-engine-src-path=[path_to_src] \ + --local-engine=[engine_build_for_your_device] \ + --local-engine-host=[host_engine_build_for_your_device] \ + -t [task_name] +``` + +If your local Flutter engine is in the same directory as your `flutter/` directory then you can omit the `--local-engine-src-path` parameter because it will be resolved automatically: + +``` +../../bin/dart bin/run.dart \ + --local-engine=[engine_build_for_your_device] \ + --local-engine-host=[host_engine_build_for_your_device] \ + -t [task_name] +``` + +The following is an example of what running the local engine command might look like: + +``` +../../bin/dart bin/run.dart \ + --local-engine-src-path=/Users/myname/flutter/engine/src \ + --local-engine=android_debug_unopt_x86 \ + --local-engine-host=host_debug_unopt_x86 \ + -t external_ui_integration_test +``` + +The above command would use the local Flutter engine located at `/Users/myname/flutter/engine` to execute the `external_ui_integration_test` test on an Android emulator, which is why the `android_debug_unopt_x86` version of the engine is used. + +Note that some tests may require `profile` mode instead of `debug` mode when running with local engine. Make sure to pass in the correct local engine. See [Compiling the engine](../../engine/contributing/Compiling-the-engine.md) for more details. + +## For the engine + +See the [Testing the engine](../../engine/testing/Testing-the-engine.md) wiki. diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Test-coverage-for-package-flutter.md b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Test-coverage-for-package-flutter.md new file mode 100644 index 0000000000000000000000000000000000000000..c1df392a7b1f0f65b578f6ea1b8ea8c9b908fe9c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Test-coverage-for-package-flutter.md @@ -0,0 +1,50 @@ +## How to view test coverage + +When you run `flutter update-packages`, we download the latest coverage data for `package:flutter` to `packages/flutter/coverage/lcov.info`. This data isn't synchronized to your git revision, so expect discrepancies between your git repo and the coverage file. Usually, this version skew isn't too harmful, but it's valuable to be aware that it might exist. + +⚠️ Currently, the latest test coverage data is stale by a few years because of [flutter#81803](https://github.com/flutter/flutter/issues/81803). You will need to [recompute this data manually](#how-recompute-test-coverage-slowly) to view test coverage. + +### Visual Studio Code + +Here is how to show test coverage information in Visual Studio Code: + +1. Install the [Coverage Gutters](https://marketplace.visualstudio.com/items?itemName=ryanluker.vscode-coverage-gutters) extension. +2. Open a `dart` file in `packages/flutter/lib/src`. You should see green and red highlights next to line numbers in the gutter. The green lines mean this line was executed in a test. The red line means that this line is a candidate for execution but was not executed in a test. The status bar at the bottom should also report the current file's code coverage percentage. + +If you run into issues, check for errors in the `Output` pane under the `coverage-gutters` output stream. + +### Atom + +Here is how to show test coverage information in Atom: + +1. Install the [lcov-info](https://atom.io/packages/lcov-info) package. This package has a few quirks to its UI, but it generally seems to work. + +2. Open `packages/flutter` in Atom. The lcov-info plugin only seems to work if you open `packages/flutter` directly (as opposed to opening one of its parent directories). + +3. Open a `dart` file in the `lib/src` directory. For some reason, you need to have a Dart file open in order to activate the lcov-info plugin. + +4. Activate the lcov-info package using the `Packages > Lcov Info > Toggle` menu command. + +5. At this point, you should see green and red highlighted lines in `dart` files (hopefully more green than red) as well as a scrollable list of the coverage percentages for each file in `package:flutter`. The green lines mean this line was executed in a test. The red line means that this line is a candidate for execution but was not executed in a test. Lines that are highlighted are not considered candidates for execution. Some of the non-highlighted lines are a bit surprising (e.g., return statements or constant declarations), but they appear to be correct. + +### Emacs + +If you use Emacs, you can use the `coverlay` package. Use `coverlay-load-file` to specify the `.../packages/flutter/coverage/lcov.info` file, configure `coverlay:base-path` to point to the `.../packages/flutter`, and configure other aspects of the `coverlay` package as you desire. + +### Coveralls + +The easiest way to see our overall test coverage used to be using the [Flutter page on Coveralls](https://coveralls.io/github/flutter/flutter?branch=master). The graph at the top is supposed to be updated with green commit to the master branch. Unfortunately, Coveralls has been broken for Flutter for a long time and no progress has been made to resolve [the issue](https://github.com/lemurheavy/coveralls-public/issues/1103). + +## How to recompute test coverage quickly + +If you're using a Linux machine, you can see the updated coverage after adding a test quickly using the `--merge-coverage` option to `flutter test`. For example, suppose you added a test case to `test/material/dialog_test.dart`. You can run `flutter test --merge-coverage test/material/dialog_test.dart` to run just that one test and merge the coverage data into your view. In Atom, to get lcov-info to see the new data, sometimes you need to change tabs. In Emacs, to see new data, press `C-c C-l g`. + +Merging coverage works by combining the `packages/flutter/coverage/lcov.base.info` coverage data, which `flutter update-packages` downloaded from the cloud, with the coverage data from that one test run. The combined data is written back into `packages/flutter/coverage/lcov.info`, where it is picked up by the lcov-info plugin. + +Each time you run `--merge-coverage`, the tool goes back to the original `lcov.base.info` data before adding the current run. If you want to see the change in coverage when changing more than one test file, you'll need to pass all the test file names explicitly on the command line. + +## How recompute test coverage slowly + +If you want to recompute coverage data from scratch, you can use the `--coverage` flag. For example, `cd packages/flutter && flutter test --coverage`. + +The `lcov.base.info` file is generated automatically by bots and recomputing from scratch is unnecessary. It is fetched when you run `flutter update-packages`. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Writing-Effective-Tests.md b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Writing-Effective-Tests.md new file mode 100644 index 0000000000000000000000000000000000000000..e2a8668c053f3cfb66bdf0be9cd94631b3eaef68 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Writing-Effective-Tests.md @@ -0,0 +1,230 @@ +Tests are a critical framework tool for stability and education. Tests fulfill the following roles: + +* Automatically protect against regressions +* Define an executable specification that engrains original intent +* Educate other developers about why and how to use an API + +To facilitate the above roles, there are some practices to keep in mind when writing tests: + +## Name tests based on the behavior being tested + +It is common to find tests that are simply named after the object under test rather than the behavior under test. For example, a developer might find tests that look like the following: + +```dart +// Bad test name +test('ListView', () {...}); + +// Bad test name +test('RenderViewport', () {...}); + +// etc. +``` + +The above test names do not communicate anything useful to the developer reading the tests. The developer probably already knows which object is being tested, so these names are no better than an empty string. Instead, each test should succinctly declare the behavior under test and/or the expected results: + +```dart +// Better test name +test('Shrink-wrapped ListView resizes to match its content height', () {...}); + +// Better test name +test('RenderViewport applies its offset to all child Slivers', () {...}); + +// etc. +``` + +## One behavior per test + +It is common to find single tests that exercise multiple behaviors: + +```dart +// Single test that tests multiple behaviors +test('SliverGeometry', () { + expect(const SliverGeometry().debugAssertIsValid(), isTrue); + expect(() { + const SliverGeometry(layoutExtent: 10.0, paintExtent: 9.0).debugAssertIsValid(); + }, throwsFlutterError); + expect(() { + const SliverGeometry(paintExtent: 9.0, maxPaintExtent: 8.0).debugAssertIsValid(); + }, throwsFlutterError); +}); +``` + +Don't test multiple behaviors in a single test. When multiple behaviors exist within a test then reported test failures become misleading. Is one thing broken, or many things? Is one method broken, or multiple methods, or are entire object interactions broken? When multiple behaviors exist in a single test then a broken test requires a developer to carefully analyze the code within the test just to get a feel for the magnitude of the bug. Add to this fact that the name of the test probably does not explain everything the test is doing, because the test is doing multiple things. Instead, include exactly one behavior per test: + +```dart +test('SliverGeometry with no arguments is valid', () { + expect(const SliverGeometry().debugAssertIsValid(), isTrue); +}); + +test('SliverGeometry throws error when layoutExtent exceeds paintExtent', () { + expect(() { + const SliverGeometry(layoutExtent: 10.0, paintExtent: 9.0).debugAssertIsValid(); + }, throwsFlutterError); +}); + +test('SliverGeometry throws error when maxPaintExtent is less than paintExtent', () { + expect(() { + const SliverGeometry(paintExtent: 9.0, maxPaintExtent: 8.0).debugAssertIsValid(); + }, throwsFlutterError); +}); +``` + +What constitutes a single behavior? The answer to that question can vary. In most circumstances, only a single method should be invoked on the object under test, and it should be invoked only one time. However, that heuristic is not always correct. There can be cases where multiple method calls represent a singular behavior and a single set of expectations. Developers should use their discretion in this regard. That said, a higher number of shorter tests will tend to be a safer bet than a smaller number of longer tests. + +## Only include relevant details in a test + +Tests often involve some amount of setup before the behavior-under-test can be executed. Some of these setup details are critical to the behavior-under-test, but many of these details are completely irrelevant. + +Including irrelevant details in a test can only confuse the issue in the mind of the developer reading the test. The developer may become confused about which parts are relevant to him/her, and which are not. In such a scenario, the developer is likely to copy and paste the entire test without fully understanding what the code is doing, which is a recipe for disaster in a production app. + +```dart +// Notice how much of the widget setup has nothing to do with the behavior-under-test... +testWidgets('Title Section is empty, Button section is not empty.', (WidgetTester tester) async { + const double textScaleFactor = 1.0; + final ScrollController scrollController = new ScrollController(keepScrollOffset: true); + await tester.pumpWidget( + new MaterialApp(home: new Material( + child: new Center( + child: new Builder(builder: (BuildContext context) { + return new RaisedButton( + onPressed: () { + showDialog( + context: context, + builder: (BuildContext context) { + return new MediaQuery( + data: MediaQuery.of(context).copyWith(textScaleFactor: textScaleFactor), + child: new CupertinoAlertDialog( + actions: const [ + const CupertinoDialogAction( + child: const Text('One'), + ), + const CupertinoDialogAction( + child: const Text('Two'), + ), + ], + actionScrollController: scrollController, + ), + ); + }, + ); + }, + child: const Text('Go'), + ); + }), + ), + )), + ); + + await tester.tap(find.text('Go')); + + await tester.pump(); + await tester.pump(const Duration(seconds: 1)); + + // Check that the title/message section is not displayed + expect(scrollController.offset, 0.0); + expect(tester.getTopLeft(find.widgetWithText(CupertinoDialogAction, 'One')).dy, equals(283.5)); + + // Check that the button's vertical size is the same. + expect(tester.getSize(find.widgetWithText(CupertinoDialogAction, 'One')).height, + equals(tester.getSize(find.widgetWithText(CupertinoDialogAction, 'Two')).height)); +}); +``` + +Strive to write tests that only communicate details that are relevant to the behavior-under-test. This can be accomplished by extracting unrelated setup into other methods that are clearly named by their purpose: + +```dart +// Now the unrelated details are factored out... +testWidgets('Title Section is empty, Button section is not empty.', (WidgetTester tester) async { + final ScrollController scrollController = new ScrollController(keepScrollOffset: true); + await _launchDialog( + dialog: CupertinoAlertDialog( + actions: const [ + const CupertinoDialogAction( + child: const Text('One'), + ), + const CupertinoDialogAction( + child: const Text('Two'), + ), + ], + actionScrollController: scrollController, + ), + ); + + // Check that the title/message section is not displayed + expect(scrollController.offset, 0.0); + expect(tester.getTopLeft(find.widgetWithText(CupertinoDialogAction, 'One')).dy, equals(283.5)); + + // Check that the button's vertical size is the same. + expect(tester.getSize(find.widgetWithText(CupertinoDialogAction, 'One')).height, + equals(tester.getSize(find.widgetWithText(CupertinoDialogAction, 'Two')).height)); +}); +``` + +## Optimize tests for comprehension + +To illustrate the way that a small adjustment can make a test much more comprehensible to another developer, consider this test from above: + +```dart +testWidgets('Title Section is empty, Button section is not empty.', (WidgetTester tester) async { + final ScrollController scrollController = new ScrollController(keepScrollOffset: true); + await _launchDialog( + dialog: CupertinoAlertDialog( + actions: const [ + const CupertinoDialogAction( + child: const Text('One'), + ), + const CupertinoDialogAction( + child: const Text('Two'), + ), + ], + actionScrollController: scrollController, + ), + ); + + // Check that the title/message section is not displayed + expect(scrollController.offset, 0.0); + expect(tester.getTopLeft(find.widgetWithText(CupertinoDialogAction, 'One')).dy, equals(283.5)); + + // Check that the button's vertical size is the same. + expect(tester.getSize(find.widgetWithText(CupertinoDialogAction, 'One')).height, + equals(tester.getSize(find.widgetWithText(CupertinoDialogAction, 'Two')).height)); +}); +``` + +This test was presented as an improvement because it factored out unrelated details. But we can make this test better by slightly adjusting how we decompose the individual lines in the test: + +```dart +testWidgets('Title Section is empty, Button section is not empty.', (WidgetTester tester) async { + final ScrollController scrollController = new ScrollController(keepScrollOffset: true); + + final Widget dialog = CupertinoAlertDialog( + actions: const [ + const CupertinoDialogAction( + child: const Text('One'), + ), + const CupertinoDialogAction( + child: const Text('Two'), + ), + ], + actionScrollController: scrollController, + ); + + await _launchDialog(dialog); + + // Check that the title/message section is not displayed + expect(scrollController.offset, 0.0); + expect(tester.getTopLeft(find.widgetWithText(CupertinoDialogAction, 'One')).dy, equals(283.5)); + + // Check that the button's vertical size is the same. + expect(tester.getSize(find.widgetWithText(CupertinoDialogAction, 'One')).height, + equals(tester.getSize(find.widgetWithText(CupertinoDialogAction, 'Two')).height)); +}); +``` + +By extracting the declaration of the `CupertinoAlertDialog` into its own statement, we have clearly disambiguated between the dialog we're here to test vs. the action of launching the dialog for testing purposes. + +When writing tests, think about the developer who will read this test 6 months from now and ask if there is anything you can do to help that developer comprehend what the test is doing, and why. + +# See also + +- [Flutter Test Fonts](Flutter-Test-Fonts.md) diff --git a/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Writing-a-golden-file-test-for-package-flutter.md b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Writing-a-golden-file-test-for-package-flutter.md new file mode 100644 index 0000000000000000000000000000000000000000..49ec2cf7f118498bb7ec49d543c2bd0ae61285ad --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/contributing/testing/Writing-a-golden-file-test-for-package-flutter.md @@ -0,0 +1,143 @@ +# Writing a golden file test for package:flutter + +_(This page is referenced by comments in the Flutter codebase.)_ + +**If you want to learn how to write a golden test for your package, see [the `matchesGoldenFile` API docs](https://api.flutter.dev/flutter/flutter_test/matchesGoldenFile.html).** This wiki page describes the special process specifically for the Flutter team itself. + +Golden file tests for `package:flutter` use [Flutter Gold](https://flutter-gold.skia.org/?query=source_type%3Dflutter) for baseline and version management of golden files. This allows for golden file testing on Linux, Windows, MacOS and Web, which accounts for the occasional subtle rendering differences between these platforms. + +## Index +- [Known Issues](#known-issues) +- [Build Breakage](#build-breakage) +- [Creating a New Golden File Test](#creating-a-new-golden-file-test) +- [Adding a new key in the Skia Client](#Adding-a-new-key-in-the-Skia-Client) +- [Updating a Golden File Test](#updating-a-golden-file-test) +- [Flutter Gold Login](#flutter-gold-login) +- [`flutter-gold` Check](#flutter-gold-check) +- [`reduced-test-set` tag](#reduced-test-set-tag) +- [Troubleshooting](#troubleshooting) + + +## Known Issues + +### Negative Images + +https://github.com/flutter/flutter/issues/145043 + +If an image is marked `negative` the flutter-gold check will not catch it in presubmit testing. Images should not be marked negative, as the system relies on the `untriaged` and `approved` states. If a negative image is produced in postsubmit, testing will fail and the change can be reverted so the image can be addressed. +If you would like to instantly invalidate all prior renderings, changing the name of the golden file test will accomplish this. Gold already has a process to 'forget' images after they have changed, but does so over time. + +## Build Breakage + +If the Flutter build is broken due to a golden file test failure, this typically means an image change has landed without being triaged. Golden file images should be triaged in pre-submit before a change lands (as described in the steps below). If this process is not followed, a test with an unapproved golden file image will fail in post-submit testing. This will present in the following error message: + + + +``` + Skia Gold received an unapproved image in post-submit + testing. Golden file images in flutter/flutter are triaged + in pre-submit during code review for the given PR. + + Visit https://flutter-gold.skia.org/ to view and approve + the image(s), or revert the associated change. For more + information, visit the wiki: + https://github.com/flutter/flutter/blob/main/docs/contributing/testing/Writing-a-golden-file-test-for-package-flutter.md +``` + +To resolve, visit the [Flutter Gold dashboard](https://flutter-gold.skia.org/) to view the batch of images in question. If they are intended changes, approve them by clicking the checkmark, and re-run the failing test to resolve. If the image changes are not intended, revert the associated change. + +Notice, Gold may wrongly attribute blame for image changes on the dashboard. Post-submit testing for flutter/flutter is not executed in the order that commits land. Commits are tested by order of the most recent change. If older commits have not completed testing yet, Gold may assign blame incorrectly until all image results have been processed for pending commits. + +## Creating a New Golden File Test + +Write your test as a normal test, using `testWidgets` and `await tester.pumpWidget` and so on. + +Put a `RepaintBoundary` widget around the part of the subtree that you want to verify. If you don't, the output will be a 2400x1800 image, since the tests by default use an 800x600 viewport with a device pixel ratio of 3.0. If you would like to further control the image size, put a `SizedBox` around your `RepaintBoundary` to set constraints. + +Add an expectation along the following lines: + +```dart + await expectLater( + find.byType(RepaintBoundary), + matchesGoldenFile('test_name.subtest.subfile.png'), + ); +``` + +The argument to `matchesGoldenFile` is the filename for the screen shot. The part up to the first dot should exactly match the test filename (e.g. if your test is `widgets/foo_bar_test.dart`, use `foo_bar`). The `subtest` part should be unique to this `testWidgets` entry, and the part after that should be unique within the `testWidgets` entry. This allows each file to have multiple `testWidgets` tests each with their own namespace for the images, and then allows for disambiguation within each test in case there are multiple screen shots per test. + +Golden tests may be executed locally on Linux, MacOS, and Windows platforms. All reference images can be found at [Flutter Gold baselines](https://flutter-gold.skia.org/list?fdiffmax=-1&fref=false&frgbamax=255&frgbamin=0&head=true&include=false&limit=50&master=false&match=name&metric=combined&neg=false&new_clstore=true&offset=0&pos=true&query=source_type%3Dflutter&sort=desc&unt=true). Some tests may have multiple golden masters for a given test, to account for rendering differences across platforms. The parameter set for each image is listed in each image digest to differentiate renderings. + +Once you have written your test, run `flutter test --update-goldens test/foo/bar_test.dart` in the `flutter` package directory (where the filename is the relative path to your new test). This will update the images in `bin/cache/pkg/skia_goldens/packages/flutter/test/`; the directories below that will match the hierarchy of the directories in the `test` directory of the `flutter` package. Verify that the images are what you expect; update your test and repeat this step until you are happy with the image. + +When running `flutter test` locally without the `--update-goldens` flag, your test will pass, as it does not yet have a baseline for comparison on the [Flutter Gold](https://flutter-gold.skia.org/?query=source_type%3Dflutter) dashboard. The test will be recognized as new, and provide output for validation. + +When you are happy with your image, you are ready to submit your PR for review. The reviewer should also verify your golden image(s), so make sure to include the golden(s) in your PR description. + +New test results will be compiled into a tryjob on the Flutter Gold dashboard, under [ChangeLists](https://flutter-gold.skia.org/changelists). There you will see your pull request and the associated golden files that were generated. Gold will also leave a comment on your pull request linking to your image results. + +New tests can be triaged from these tryjobs, which will cause the pending `flutter-gold` check to pass. Review the tryjob and the images that were generated, making sure they look as expected. Currently, we generate images for Linux, Mac, Windows, and Web platforms. It is common for there to be slight differences between them. Click the checkmark to approve the change, completing triage. + +And that’s it! Your new golden file(s) will be checked in as the baseline(s) for your new test(s), and your PR will be ready to merge. :tada: + +## Adding a new key in the Skia Client + +Approved golden file images on the [Flutter Gold Dashboard] [Flutter Gold](https://flutter-gold.skia.org/?query=source_type%3Dflutter) +are keyed with parameters like platform, CI environment, test name, browser, and image extension. + +When adding new keys, consider all possible values, and whether or not they are covered by the CI environments that are used +to test changes in presubmit and postsubmit testing. If not all possible values are accounted for, false negatives can occur +in local testing. + +For example, we once included an abi key, which in our CI environments at the time could be linux_x64, windows_x64, or mac_x64. +These keys are used to look up approved images for local testing, so when a mac_arm64 machine would run local tests, +no image could be found and the tests would fail. +Omitting the key in the lookup did most often find the right image, but it was not consistently reliable, so we removed it. + +If the CI environments available for testing changes do not cover all value of a particular key, it is not a good key to +include as part of testing. + +## Updating a Golden File Test + +If renderings change, then the golden baseline in [Flutter Gold](https://flutter-gold.skia.org/?query=source_type%3Dflutter) will need to be updated. + +When developing your change, local testing will produce a failure along with visual diff output. This visual diff will be generated using the golden baseline from [Flutter Gold](https://flutter-gold.skia.org/?query=source_type%3Dflutter) that matches the current paramset of your testing environment (currently based on platform). This allows for quick iterations and validation of your change. Locally, this test will not pass until the new baseline has been checked in. + +When you are happy with your golden change, you are ready to submit your PR for review. The reviewer should also verify your golden image(s), so make sure to include the golden changes you have made in your PR description. Changes to tests will be compiled into a tryjob on the Flutter Gold dashboard, under [ChangeLists](https://flutter-gold.skia.org/changelists). There you will see your pull request and the associated golden files that were generated, as well as the visual differences between the pre-existing baselines. Gold will also leave a comment on your pull request linking to your image results. + +The updated tests can be triaged from these tryjobs, which will cause the pending `flutter-gold` check to pass. Review the tryjob and the images that were generated, making sure they look as expected. Currently, we generate images for Linux, Mac, Windows and Web platforms. It is common for there to be slight differences between them. Click the checkmark to approve the change, completing triage. + +And that’s it! Your new golden file(s) will be checked in as the baseline(s) for your new test(s), and your PR will be ready to merge. :tada: + + +## Flutter Gold Login + +Triage permission is currently restricted to members of *flutter-hackers*. For more information, see [Contributor Access](../Contributor-access.md). +Once you have been added as an authorized user for Flutter Gold, you can log in through the [homepage of the Flutter Gold dashboard](https://flutter-gold.skia.org/) and proceed to triage your image results under [Changelists](https://flutter-gold.skia.org/changelists). + +## `flutter gold` Check + +The `flutter-gold` check is applied to pull requests in flutter/flutter that execute golden file tests and are ready for review. + +As golden file tests are run across multiple test shards, this check waits for all other tests to complete before checking to see if Gold received new images. While awaiting test completion, and in the event there are image changes, the `flutter-gold` check will hold a pending state. This is primarily due to how the auto-roller used by flutter/engine works (context: https://github.com/flutter/flutter/issues/48744). + +If there are no image changes, the `flutter-gold` check will go green. If image changes were detected, a comment on your pull request will notify and provide a direct link to the images. Upon triaging, or approving, the images, the `flutter-gold` check will go green within five minutes. + +## `reduced test set` tag + +On some CI platforms in pre-submit, hermetic tests suites are not executed in order to conserve resources and expedite testing of other changes. To ensure that a golden file image is available for every platform, test files with golden tests are tagged with `reduced-test-set`. This marks them for execution in these conservative test environments. Currently, framework tests on Mac and Windows platforms execute these reduced test sets. The analyzer will alert you if the tag is omitted from the test file. The tag should be formatted as such at the top of the file: + +```dart +@Tags(['reduced-test-set']) +``` + +For more context, see [flutter.dev/go/reduce-ci-tests](https://flutter.dev/go/reduce-ci-tests). + +## Troubleshooting + +* Trouble: the `flutter-gold` is stuck at pending status while all other checks are successful (if they are not, see [flutter-gold check](#flutter-gold-check)). + * Solution: this may be a side-effect of force-pushed commits (`git push -f`) and a known Skia Gold issue (https://issues.skia.org/issues/40044676), typically after a rebase. If this happens, try rebasing or pushing an empty commit without force pushing. This side-effect is flaky. +* Trouble: the `flutter-gold` check posted a message saying "Golden file changes have been found..." but the triage page is empty. + * Solution: this may be another side-effect of force-pushed commits (see above), but may also be a side-effect of untriaged goldens from already submitted PRs. Try rebasing again, or reach out in #hackers-infra on the Discord. + +## Additional Resources +- [Gold APIs used by the Flutter Framework](https://docs.google.com/document/d/1H3CDqT7zBUt4Je2HPQpleYA-drwj2oy0mdPlSdf2d4A/edit?usp=sharing) \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/ecosystem/Package-migration-to-1.0.0.md b/novelforge-project/agent-workspace/flutter/docs/ecosystem/Package-migration-to-1.0.0.md new file mode 100644 index 0000000000000000000000000000000000000000..34287440141ff78a06b6eb09ad071c9c390280e0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/ecosystem/Package-migration-to-1.0.0.md @@ -0,0 +1,16 @@ +_**TL;DR** To facilitate a smooth ecosystem migration, a package author may ask dependent packages to migrate to a 1.0.0 version with a `>=0.x.y+z <2.0.0` constraint rather than a `^1.0.0`._ + +API stability* is an important milestone in a package’s lifetime and bumping the version to 1.0.0 is an exciting way to celebrate this moment. + +This is what the [Semantic Versioning Specification](https://semver.org/#spec-item-4) (2.0.0) is saying about pre 1.0.0 versions: + +> Major version zero (0.y.z) is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable. + +Pub on the other hand treats pre 1.0.0 versions semantically (see [pub_semver corner cases](https://pub.dev/packages/pub_semver)), shifting the numbers by one position. + +Often, at the time a package author is ready to announce API stability their package is versioned 0.x.y+z. Bumping a package version from 0.x.y+z to 1.0.0 is a major version bump in the Dart ecosystem. Migrations across a major version bump are slower, and may result in some period of ecosystem fragmentation (when some dependent packages are only willing to take ^0.x.y+z and some require ^1.0.0). + +To go through an ecosystem migration to 1.0.0 in a smoother way, users of the newly API-stable package (particularly dependent packages) are encouraged to update their constraints to `>=0.a.b+c <2.0.0` instead of `^1.0.0`, this reduces friction during the transition period while some dependents have updated to post 1.0.0 and some have not. + + +* While an API can never be guaranteed to be stable, version 1.0.0 is the milestone in which the package author is feeling comfortable to let others depend on the current API, and does not have concrete plans to change it in a breaking way. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/ecosystem/Plugins-and-Packages-repository-structure.md b/novelforge-project/agent-workspace/flutter/docs/ecosystem/Plugins-and-Packages-repository-structure.md new file mode 100644 index 0000000000000000000000000000000000000000..e8aabaf1c93d836c18587c85330baf8ad9577b14 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/ecosystem/Plugins-and-Packages-repository-structure.md @@ -0,0 +1,47 @@ +This provides an overview of the structure of the flutter/packages repository. + +# Packages + +Most packages are located in `packages`. A few which are derived heavily from third-party code are instead in `third_party/packages/`. + +## Plugins + +Plugins in flutter/packages uses the federated plugin model. If you are not familiar with federated plugins, start with reading [the federated plugin overview](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#federated-plugins) to understand the terms below. + +All plugins are located in the `packages/` directory. Almost all plugins have the following layout: +- `some_plugin/` - A directory containing the individual packages of the federated plugin: + - `some_plugin/` - The app-facing package + - `some_plugin_platform_interface/` - The platform interface + - `some_plugin_android/`, `some_plugin_ios/`, `some_plugin_web/`, `some_plugin_windows/`, `some_plugin_macos/`, and/or `some_plugin_linux/` - The individual platform implementations, as applicable + - In some special cases, implementation packages have different names; examples include `webview_flutter_wkwebview` and `in_app_purchase_storekit`. These would normally be named `_ios`, but have more generic names because they include (or expected to include in the future) macOS implementations. Sharing a package allows sharing the code, as the OS APIs are largely the same across the two platforms. + +This layout reflects the goal of having all multi-platform plugins in flutter/packages being fully federated. (While this is not strictly necessary, as all packages are being maintained by the Flutter team, using a fully federated structure ensures that we are testing the federated model and finding issues and areas for improvement specific to federation.) + +### Android Specifics + +#### Gradle structure + +`package/example/android/settings.gradle` imports the flutter tooling, includes the app directory (same as `flutter create` projects) additionally it configures GoogleCloudPlatform/artifact-registry-maven-tools for use in CI. + +This repo has a GCP instance that mirrors dependencies available from `google()` and `mavenCentral()` used by CI (or Googlers). This gives us redundant uptime for dependency availability. + +Using the specific google hosted cache is not intended for contributors outside of CI. We protect that execution with an environment variable `ARTIFACT_HUB_REPOSITORY` to ensure that by default users do not see rejected cloud credentials or errors in builds. Contributors could setup an artifact repository and set the environment variable to point to a hosted repository but that is practically not worth it for almost all contributors. + +Googlers can debug locally by setting `ARTIFACT_HUB_REPOSITORY` to the valid artifact hub value and authenticating with GCP. To authenticate run `gcloud auth application-default login`. To find artifact hub url use `` section of go/artifact-hub#maven or inspect the value on CI servers. CI uses a service account for billing. That is defined in go/artifact-hub-service-account (Googler access only). + +## Useful links for debuging +https://github.com/GoogleCloudPlatform/artifact-registry-maven-tools/blob/master/README.md +https://docs.gradle.org/current/userguide/declaring_repositories.html +https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html + +Command to force refresh of dependencies `./gradlew app:dependencies --configuration --refresh-dependencies` + +### Unfederated plugins + +A few plugins are inherently single-platform (for example, `flutter_plugin_android_lifecycle`), and so are not federated. For those plugins the structure is: + +- `some_plugin/` - A plugin containing the app-facing API and its implementation + +# Tools + +`script/tool/` contains the tooling used to manage tasks across all packages in the repository. See [its README](https://github.com/flutter/packages/blob/main/script/tool/README.md) for more information. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/ecosystem/README.md b/novelforge-project/agent-workspace/flutter/docs/ecosystem/README.md new file mode 100644 index 0000000000000000000000000000000000000000..8a53cc47df9cd1912fe194862e0c7c2ee286ceb4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/ecosystem/README.md @@ -0,0 +1,12 @@ +This is an index of team-facing documentation for the [flutter/packages repository](https://github.com/flutter/packages/). + +- [Contributing to Plugins and Packages](contributing/README.md) +- [Flutter migrate](../wiki_archive/Flutter-migrate.md) +- [Package migration to 1.0.0](Package-migration-to-1.0.0.md) +- [Plugin Tests](testing/Plugin-Tests.md) +- [Plugins and Packages repository structure](Plugins-and-Packages-repository-structure.md) +- [Setting up the Packages development environment](contributing/Setting-up-the-Packages-development-environment.md) +- [Setting up the Plugins development environment](contributing/Setting-up-the-Plugins-development-environment.md) +- [Understanding Packages tests](testing/Understanding-Packages-tests.md) +- [Releasing a Plugin or Package](release/README.md) +- [Updating Packages repo for a stable release](release/Updating-Packages-repo-for-a-stable-release.md) diff --git a/novelforge-project/agent-workspace/flutter/docs/ecosystem/contributing/README.md b/novelforge-project/agent-workspace/flutter/docs/ecosystem/contributing/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4a4627911426d0398a02eca36e4027deac7379ce --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/ecosystem/contributing/README.md @@ -0,0 +1,433 @@ +This page covers additional information that is specific to contributing to flutter/packages. If you aren't already familiar with the general guidance on Flutter contribution, start with [Tree hygiene](../../contributing/Tree-hygiene.md). + +## Version and CHANGELOG updates + +Most changes need version and CHANGELOG changes; see below for details. + +In most cases, the easiest way to create them is to use [the `update-release-info` repository command](https://github.com/flutter/packages/blob/main/script/tool/README.md#update-changelog-and-version). If you are adding a feature, use `--version=minor`, otherwise `--version=minimal` will almost always do the right thing. + +### Version + +Any change that needs to be published in order to take effect must update the version in `pubspec.yaml`. There are very few exceptions: +- PRs that only affect tests. +- PRs that only affect unpublished parts of example apps. +- PRs that only affect local development of the package (e.g., changes to ignored lints). +- Breaking change batching (see below). +- Non-code changes that we make to future-proof development in some way, but don't directly benefit clients. Examples of this include + - Updating the minimum Dart or Flutter SDK for all packages when we adjust our test matrix. + - Updating the minimum OS version of plugins to match changes to [Flutter support](https://docs.flutter.dev/reference/supported-platforms) (on `stable`). + + (Unless you are a member of the Flutter team, you are likely not making changes that fall under this exemption.) + +This is because the packages in flutter/packages use a continuous release model rather than a set release cadence. This model gets improvements to the community faster, makes regressions easier to pinpoint, and simplifies the release process. + +(The `override: no versioning needed` label can be added to skip this check, but only if the criteria above are met, or team members agree there is a compelling reason for a new exemption. Team members: please leave a comment when adding the `override` label explaining the reason for the override.) + +### CHANGELOG + +All version changes must have an accompanying CHANGELOG update. Even version-exempt changes should often update CHANGELOG by adding a special `NEXT` entry at the top of `CHANGELOG.md` (unless they only affect development of the package, such as test-only changes): +``` +## NEXT + +* Description of the change. + +## 1.0.2 +... +``` + +This policy exists because some changes (e.g., certain updates to examples) that do not need to be published may still be of interest to clients of a package. + +The tooling errs on the side of false positives, so will sometimes flag changes that should be exempt for one of the reasons listed above. In these cases, or if the reviewer feels that the change would not be relevant to package clients, they can add the `override: no changelog needed` label can to skip this check. Team members: please leave a comment when adding the `override` label explaining the reason for the override. + +#### CHANGELOG style + +For consistency, all CHANGELOG entries should follow a common style: +- Use `##` for the version line. A version line should have a blank line before and after it. +- Use `*` for individual items. + - Exception: When editing an existing CHANGELOG that uses `-`, use that instead for local consistency. +- Entries should use present tense indicative for verbs, with "this version" as an implied subject. For example, "Adds cool new feature.", + not "Add", "Added", or "Adding". +- Entries should end with a `.`. +- Breaking changes should be introduced with `**BREAKING CHANGE**:`, or `**BREAKING CHANGES**:` + if there is a sub-list of changes. + - Breaking change notifications should include information about how to migrate. If extensive migration is required, this can be a reference to a longer description elsewhere (usually README.md) rather than inline instructions. + +Example: +``` +## 2.0.0 + +* Adds the ability to fetch data from the future. +* **BREAKING CHANGES**: + * Removes the deprecated `neverCallThis` method. + * URLs parameters are now `Uri`s rather than `String`s. + +## 1.0.3 + +* Fixes a crash when the device teleports during a network operation. +``` + +#### Updating a CHANGELOG that has a `NEXT` + +*Note: If you are using `update-release-info`, this will be handled correctly for you.* + +If you are adding a version change to a CHANGELOG that starts with `NEXT`, and your change also doesn't require a version update, just add a description to the existing `NEXT` list: +``` +## NEXT + +* Description of your new change. +* Existing entry. + +## 1.0.2 +... +``` + +If your change does require a version change, do the same, but then replace `NEXT` with the new version. For example: + +``` +## 1.0.3 + +* Description of your new change. +* Existing entry. + +## 1.0.2 +... +``` + +If you leave `NEXT` when adding a version change, automated tests for your PR will fail. + +### FAQ + +**Do I need to update the version if I'm just changing the README?** Yes. Most people read the README on pub.dev, not GitHub, so a README change is not very useful unless it is published. + +**Do I need to update the version if I'm just changing comments?** If the comment is intended for clients of the package (a `///` comment on anything exported by the package), then yes, since what developers using the package will see in their IDE will come from the published version. If the comment is only useful for someone working on the package (such as an implementation comment within a method, or a comment in a non-exported file), then no. + +**What do I do if I there are conflicts to those changes before or during review?** This is common. You can leave the conflicts until you're at the end of the review process to avoid needing to resolve frequently. Including the version changes at the beginning despite the likelihood of conflicts makes it much harder to forget that step, and also means that a reviewer can easily fix it from the GitHub UI just before landing. + +### Breaking changes + +Because we prefer to minimize breaking changes to packages after 1.0, breaking changes do not always follow the normal one-version-change-per-PR approach. Instead, when making a breaking change consider whether there are other breaking changes that should be made at the same time, and discuss with other regular contributors. If there are multiple changes to make, they can be batched as follows: +1. File an issue tracking all of the breaking changes to include. +1. Prepare PRs for all of the changes, without version changes. Ensure that they have all been reviewed, but do not land them yet. (They should fail CI due to the lack of version change, preventing accidental landing.) +1. Land a PR that temporarily adds `publish_to: none` to the package, with a comment referencing the issue from step 1. +1. Land all of the breaking change PRs. This step should be done in a relatively short window of time (thus the advance preparation above) to avoid having the plugin be unpublishable for longer than necessary. The PRs will pass CI once rebased, since the version check is disabled for unpublishable packages. +1. Once all breaking changes have landed, land a final PR to update the version and remove `publish_to: none`. + +## Dependencies + +We try to minimize external package dependencies as much as possible, where "external" means packages that are not generally within the control of the Flutter or Dart teams (Examples non-external packages include `sdk:` dependencies, packages in flutter/packages, and packages published by dart.dev), or by an organization with a track record of strong support for both engineering best practices and Flutter. This is for several reasons: +- Maintainability: + - We have a policy of always supporting Flutter `master`; if we can't guarantee that fixes for breaking changes can be landed immediately in dependencies, it can block our roller. + - If a package is abandoned by its authors, we will have to fork or migrate in order to unblock the entire repository. + - External packages increase our expose to out-of-band breakage (e.g., if breaking change is published without following semver). +- Security: We cannot make any guarantees about the code in an external package. For example, if a package we depend on is later taken over by a malicious actor, our dependency would expose all clients of our own package to potential attack via the transitive dependency. + +If you are considering adding an external dependency: +- Consider other options, and discuss with #hackers-ecosystem in Discord. +- If you add a `dev_dependency` on an external package, pin it to a specific version if at all possible. +- If you add a `dependency` on an external package in an `example/`, pin it to a specific version if at all possible. +- Some dependencies should only be linked as dev_dependencies like integration_test + +### Native dependencies + +The same general principles apply to native dependencies for plugins (e.g., dependencies specified in an Android Gradle file or iOS podspec file): minimize dependencies—and especially non-test dependencies—on libraries that are not created by either the platform vendor or another organization with a track record of strong support for engineering best practices in whom we can have a very high degree of confidence in ongoing support and prompt updates. + +## Platform Support + +The goal is to have any plugin feature work on every platform on which that feature makes sense; having a lot of features that are only partially implemented across platforms is often confusing and frustrating for developers trying to use those plugins. However, a single developer will not always have the expertise to implement a feature across all supported platforms. + +Given that, we welcome PRs that only implement a feature for a subset of platforms, including just one. To set expectations for how such PRs will be handled: +- They will not be fully reviewed until there's an understanding of what support would look like across other platforms, for several reasons: + - API for features that will be permanently platform-specific may structured in ways that make that limitation more clear, so knowing if other platforms can support it will affect the review process. + - We want to avoid over-fitting the plugin APIs to a single platform's API. It is often the case that several platforms can implement a feature, but the behavior is different enough across platforms that we need to design the API in a way that covers those variations in a cohesive way. This means that knowing at a high level what the implementation on other platform also affects the review process. + - Features that are missing implementations on some platforms need to be clearly documented as such in the API, and those comments should clearly express whether those platform are temporarily missing implementations, or are not expected to ever have implementations due to platform limitations. + + The PR author isn't necessarily responsible for answering these questions. These cases will be noted in comments during PR triage; if the PR author, or others in the community, can contribute that information, that will certainly help. If not, that investigation will be part of the review process (in which case the review will likely take longer). +- In some cases, a reviewer may wait on approving a PR for landing until there is a plan in place for landing implementations for other platforms. This is not a hard rule, and will be up to reviewer judgement. This could take a number of forms: + - Waiting for other PRs from the community that implement the feature for other platforms, and then moving forward with all of them at once. + - Finding resources within the Flutter team for implementing other platforms before moving forward. + - Landing the platform interface change and the platform implementations that are done, but waiting on one of the options above before adding the API to the app-facing package's API (allowing developers the option of drilling down to the platform implementation to use the feature on some platforms before it's ready everywhere). + + "Other platforms" might not always include all other platforms. E.g., a feature might be something that's much more likely to be useful on mobile than desktop, or the reverse, and so we might only wait for implementations of that subset. Again, this will be up to reviewer judgement. + +In the case where a PR is put on hold for the reasons above, it should be clearly noted in the PR and on the associated issue. We encourage anyone interested in contributing more platform implementation PRs to comment in the bug in such cases. + +### API support queries + +In cases where a plugin offers API in the app-facing package that is not implemented on all platforms (or not implemented on some OS versions of some platforms), there should also be an API to query for support of that API at runtime. That is, plugin clients should always be able to write code like: + +```dart +if (somePluginInstance.supportsDoingThing) { + somePluginInstance.doThing(); +} +``` + +rather than hard-coding a platform check. (See [`image_picker`'s `supportsImageSource`](https://github.com/flutter/packages/blob/9323e33ed9d8345d87514711dcaeb4cf4159ad1c/packages/image_picker/image_picker/lib/image_picker.dart#L309-L315) for an example.) This is for several reasons: +- It is federation-friendly: a new implementation of the plugin (including the addition of 1P support for a previously-unsupported platform) will automatically be covered. +- It allow seamless adoption of new functionality: if we add previously-missing support to an existing implementation, clients will automatically benefit without any code changes on their part. +- It makes our own documentation more evergreen: we've frequently had app-facing APIs that had a comment saying that an API is only available on platform X, and then forgotten to update it when adding support for platform Y. + +These APIs can take a variety of forms, including specific methods to check individual methods or parameters, a single method with an enum of API options, etc. Discuss with your reviewer what pattern is best suited to the specific case, and aim for consistency within a plugin when possible. + +*We currently have many cases of APIs that do not follow this guidance because they predate it. This is technical debt, rather than something that should be pointed to as a justification for adding new APIs that do not.* + +## Languages + +On some platforms, there are multiple native languages that can be used to write plugins; repository policy limits the languages that are used in some cases. These are currently the allowed languages for each platform: +- Android: Depends on the plugin; mixing languages within a plugin is currently not allowed: + - Kotlin if the plugin is already in Kotlin. + - Currently our policy is to have a limited number of plugins in Kotlin, to ensure that we are finding Kotlin-specific plugin issues in our own development. + - Java if the plugin is already in Java (which is almost all of them). + - Allowing Kotlin more broadly is [under consideration](https://docs.google.com/document/d/1Ok_mUPgmw8_l-ynLueEKtXm2Fs48lEVB0JqZd7M7uyA/edit?usp=sharing), but currently most plugin development is limited to Java to avoid adding another language to the set of languages Flutter team members need to interact with regularly. + - If you are interested in taking on a **long-term ownership role in a plugin**, and would like to migrate it to Kotlin, please reach out in the `hackers-ecosystem` channel [on Discord](../../contributing/Chat.md). +- iOS: Depends on the plugin. The goal is to eventually migrate all plugins to Swift; see [the migration section below](#swift-migration-for-1p-plugins) for details. For non-migration PRs, use: + - Swift if the plugin is entirely Swift. + - Swift or Objective-C if the plugin is partially migrated. + - Objective-C if the plugin is still entirely Objective-C. +- Linux: C. Use of C++ constructs is strongly discouraged; see [repo style notes](../../../CONTRIBUTING.md#style) for details +- macOS: Swift only\*. + - \* In some cases an existing iOS implementation has been updated to support macOS, so is Objective-C (e.g., `in_app_purchase`). This is the only case where Objective-C is allowed for macOS plugins. +- Windows: C++. +- Web: Dart. + +For all platforms, use of Dart for platform-specific features is both allowed and encouraged. While there are no specific rules about this in most plugins, in general we are moving toward having more logic written in Dart rather than a host language, as having more code in the project's primary language eases maintenance. + +## Changing federated plugins + +Most of the plugins in flutter/packages are [federated](https://flutter.dev/docs/development/packages-and-plugins/developing-packages#federated-plugins). Because a logical plugin consists of multiple packages, and our CI tests using published package dependencies—in order to ensure that every PR can be published without breaking the ecosystem—changes that span multiple packages will need to be done in multiple PRs. This is common when adding new features. + +We are investigating ways to streamline this, but currently the process for a multi-package PR is: + +1. Create a PR that has all the changes, and update the pubspec.yamls to have path-based dependency overrides. This can be done with the [plugin repo tool](https://github.com/flutter/packages/blob/main/script/tool/README.md)'s `make-deps-path-based` command, targeting any dependency packages changed in the PR. For instance, for an Android-specific change to `video_player` that required platform interface changes as well: + ``` + $ dart run script/tool/bin/flutter_plugin_tools.dart make-deps-path-based --target-dependencies=video_player_platform_interface,video_player_android + ``` + +1. Upload that PR and get it into a state where the only test failure is the one complaining that you can't publish a package that has dependency overrides, then go through the normal process of getting reviews and approvals. + * The overall review is completed first to prevent situations where part of the overall change (usually a platform interface change) lands but the rest is never landed, or where the review of the changes in a higher-level part of the change (the app-facing and/or implementation packages) identifies issues in the lower-level parts. + +1. **Once the combined PR is approved**, create a new PR that has only the platform interface package changes from the PR above, and ask the reviewers of the main package to review that. + * This review is generally trivial (unless the CI finds an issue that wasn't noticed in the main PR) since it's a subset of the PR that was already reviewed. + +1. Once it has been reviewed, landed, and published, update the initial PR to: + * remove the changes that are part of the other PR, + * replace the dependency overrides on the platform interface package with a dependency on the published version, and + * merge in (or rebase to) the latest version of `master`. + +1. If there are any dependency overrides remaining, repeat the previous two steps with those packages. There should never be interdependencies between platform implementation packages, so all implementations should be able to be handled in a single new PR. + * If new functionality is being added to the API surface of the app-facing package, be sure to update the version constraints of the implementation packages in its `pubspec.yaml`. Even though it's possible to compile with only the interface package's constraint updated, we don't want clients of the package who update without using `pub upgrade` to have surprising failures (e.g., `UnimplementedError`s) when using the new functionality due to not having the updated platform packages that implement the new feature. + +1. Once there are no dependency overrides, ask the reviewer to land the main PR. + +### Breaking changes to plugin platform interfaces + +Breaking changes to platform interfaces (any package ending in `_platform_interface`) are strongly discouraged: +- They require each platform implementation to adopt the new version, and the app-facing package can't pick up any of those changes until all implementations have been updated. This could cause situations where bug fixes for one platform are held up on another platform adopting a feature change. +- They require a series of changes to CI to selectively disable testing the latest versions of all packages, then later re-enable them. +- They temporarily lock out unendorsed implementations, until their developers can update. + +Because platform interfaces are not expected to be called by clients of the plugins, we favor backward compatibility over having a clean API at that layer. + +In order to avoid accidental breaking changes that are missed in review, CI will by default fail for any breaking change to the platform interface. If you believe you need to make a breaking change, discuss with your reviewer and make sure they agree; once they do, add (or if you are not a project member, ask the reviewer to add) the `override: allow breaking change` label, then re-run the failing check. You should also adding something like the following to the PR description: +``` +## Breaking change justification + + +``` + +This makes it easy for someone looking back at the change to find the reason for the breaking change without reading all of the comments. + +### Changing platform interface method parameters + +Because platform implementations are subclasses of the platform interface and override its methods, almost *any* change to the parameters of a method is a breaking change. In particular, adding an optional parameter to a platform interface method *is* a breaking change even though it doesn't break callers of the the method. + +The least disruptive way to make a parameter change is: + +1. Add a new method to the platform interface with the new parameters, whose default implementation calls the existing method. This is not a breaking change. + 1. Strongly consider replacing some or all of the parameters with a parameter object (see [`AuthenticationOptions`](https://github.com/flutter/packages/blob/0ba896b35b2f33517c38ccbb1654ed646ad07af7/packages/local_auth/local_auth_platform_interface/lib/types/auth_options.dart#L7-L9) for [`authenticate`](https://github.com/flutter/packages/blob/0ba896b35b2f33517c38ccbb1654ed646ad07af7/packages/local_auth/local_auth_platform_interface/lib/local_auth_platform_interface.dart#L60) as an example), as this will allow adding other parameters in the future without breaking changes or new methods. + 2. Mark the old method as `@Deprecated`, and file an issue about updating all uses of that method in the other packages in the plugin. + + Note: The delegation of this method will feel backwards, because the implementing the new method in terms of the old method will discard the information from the new parameters. This is correct though, because the goal is to allow the app-facing package to call the new method regardless of whether implementation packages have implemented it. By forwarding to the existing method by default, implementation packages that haven't been updated will continue to have the behavior they had before (which, by necessity, won't include support for the new parameters). Implementation packages that have been updated will override this implementation with their own that honors the new parameters. + +2. Update the implementations to override both methods. + + * Usually this will involve having the old method call the new method (the opposite of the delegation done above in the interface package), or in some cases extracting a private helper method that both versions call. + +3. Update the app-facing package to call the new method. + +At some later point the deprecated method can be cleaned up by: + +1. Making a breaking change in the platform interface package to remove any deprecated methods. + +2. Updating the app-facing package to allow either the new major version or the previous version of the platform interface (to minimize version lock issues with implementations). + +3. Updating all the implementations to use the new major version, removing the override of the deprecated methods. + +This cleanup step is low priority though; deprecated methods in a platform interface should be largely harmless, as it's an API with very few direct customers. It's actually preferable to wait quite some time before doing this, as it gives any unendorsed third-party implementations that may exist more time to adapt to the change without disruption. + +## Supported Flutter versions + +flutter/packages has a general policy of supporting the latest `stable` version of Flutter, as well as the current `master`. In practice, many packages often support older versions as well, as minimum version requirements are generally only updated when there is a specific need, such as using a new Flutter feature. +- One exception is new packages which require features that aren't yet available on `stable`. In this rare case, discuss with `#hackers-ecosystem` as it requires adding conditional logic to the CI scripts. + +Most CI only runs against those two version. There are only minimal tests of versions older that current `stable` (currently analysis only, for the previous two stable versions of Flutter). + +### When to update the required version + +- If you know your change requires a feature of Flutter that was added recently, you should update the minimum version accordingly. In particular, if your change was originally written against `master` and had to wait until a change reached `stable`, that means you need to update the minimum version. (Adding a constraint update as soon as the PR fails on `stable` tests is a good way to make sure you don't forget.) + - If your change requires a newer version of Flutter than is available on `stable`, and it can't wait until that feature reaches `stable`, ask in `#hackers-ecosystem` to see if there's a good solution. +- If your change fails a `*_legacy` CI test, update the minimum version accordingly. + +The ecosystem team may also mass-update minimum versions from time to time, to reduce the potential of breaking untested versions (see below). In general, this should use a minimum version somewhat older than the current `stable`, but in some special cases may use the current stable version instead. + +### Handling breakage in old versions + +Sometimes a change to a package accidentally breaks older version of Flutter; because the full CI test suite does not run anything older than the current stable, such breakage will not necessarily be caught by CI, and will only be discovered via issue reports. When that happens there are several options: +- If the breakage is found quickly enough that retraction is still possible: + - Retract the latest release. + - Release a new version that is identical except for updating the minimum Flutter version. + This minimizes disruption to developers using old versions of Flutter, with no effect on people using current versions. +- Otherwise, there are several options; discuss with `#hackers-ecosystem` to decide which makes sense for the specific case: + 1. Release a new update that restores compatibility with the old version. This should generally only be done if it's trivial to do so. + 1. Release a revert, then release a new version that reverts the revert but with a constraint update. Consider this option if the number of people affected is likely to be large (e.g., a popular plugin is broken for the previous stable version of Flutter shortly after a stable release). This has essentially the same outcome as retraction, but can be done at any time. + 1. Document the need to pin an old version of the package in the issue, and close it (along with making a `## NEXT` PR for the package that updates its minimum version, to document the correct reality). This will require all affected users to find the issue to learn how to fix it, so should generally only be done if the number of people affected is likely to be small (e.g., when it only affects versions of Flutter that are several stable releases behind). + +## Plugin architecture conventions + +All plugins in flutter/packages should follow the following conventions. Note that existing plugins do not currently always follow those conventions because they predate them. PRs that update plugins to follow conventions are welcome. + +### Federation + +All plugins should be fully [federated](https://docs.flutter.dev/development/packages-and-plugins/developing-packages#federated-plugins). This is to ensure that: +- Unofficial federated implementations can be created for any of our plugins. This allows for alternate implementations, as well as supporting unofficial embeddings. + - Our development processes for federated plugins also helps ensure that we don't accidentally break any such implementations. For instance, our federated safety checks help ensure that we don't make breaking changes to the platform interface without changing the major version. +- We are eating our own dogfood with federation. Federation adds non-trivial complexity to maintaining a plugin, and best practices for federation aren't always obvious. Using federation ourselves means that we are aware of potential issues, and encourages us to create documentation and tooling to improve the developer experience of using federation. + +The only exception to this policy is plugins that are inherently specific to a single platform, such as `espresso`. + +### In-package platform channels + +All implementations should use in-package platform channels, for the reasons outlined in [the proposal document](https://flutter.dev/go/platform-channels-in-federated-plugins). Most plugins that predate this policy and have a legacy "shared method channel" default implementation in the platform interface package, but it is not be used by any first-party implementations. + +### Platform exception handling + +Having consistent error handling across platforms is an important part of providing a usable cross-platform API surface. Maintaining consistent errors directly from the native implementations is challenging since there is no easy way to share constants for error code strings across all the different languages, nor any clear reference point for what the possible errors are without reading all of the other implementations. It's also challenging to make changes, as it potentially requires changing every package in the federated plugin. + +To ensure that the native errors are a coherent part of the interface, plugins that can throw `PlatformException`s internally should follow these best practices: +- The platform interface package should define a clear, structured error system as part of its interface. Options include: + - A plugin-specific `Exception` subclass, including constants or enums for known error types (e.g., permission failures). + - An alternate structured error-returning mechanism, such as return values that include either a successful value or an error state (e.g., result classes, or Dart 3 patterns and records). +- App-facing packages should `export` that definition, and should include it in relevant API documentation. +- Implementation packages should, in general, have Dart code to catch any `PlatformExceptions` that the native implementation is likely to throw, and convert them to the appropriate interface-defined error types. + - This means that the string constants for error codes returned from native need only be consistent within that platform implementation package, since it won't be passed out of the package (and thus only need to be kept in sync between two languages). + +This means that in general, clients of a plugin should not be expected to see raw `PlatformException`s created from error responses in native code. (This is not a strict rule; failure cases that are so obscure that clients would be unlikely to actually have specific handlers for them don't necessarily need to be converted to a common exception type.) + +**Note:** Existing `PlatformException`s are a de-facto part of the API, so updating plugins to follow this practice should be done as a breaking change. + +### Enum handling + +The best practice for doing `switch`es over `enum`s varies depending on the situation: +- If the `enum` is defined in the same package as the `switch`, the `switch` should cover all cases with no fallback, as it can be updated at the same time as any changes to the enum. +- If the `enum` is defined in a different package—this is not uncommon in federated plugins—the code should be robust against new enum values (unless it is just example code), since adding enum values is generally not considered a breaking change: + - Do not use `default:`; instead put the fallback code outside the enum. This will cause the linter to flag code in other packages that we need to update when an `enum` is changed. (This will often require the use of `ignore: dead_code`.) The fallback is needed because even though we can and should [update the package(s) containing the `switch` as a follow-up](https://github.com/flutter/flutter/issues/89866), we **cannot** guarantee that someone won't use an older version of the package containing the `switch` with a newer version of the package containing the `enum`, so that combination must have some well-defined behavior. + - When there is a reasonable default, use that so that the package continues to work, even if it's not the ideal behavior. + - When there is no reasonable default, throw a clear `UnimplementedError` so the client knows they need a new version of the package. + +## README code + +All new code samples in `README.md` files must `` pragmas to manage the code. With ``, the source of truth for the code is an actual Dart file, which is analyzed, compiled, and tested by our CI. This ensures that it stays updated as the package APIs, Flutter, Dart, and repository analyzer settings change. + +### Updating ``-managed examples + +If a code block has a `` tag just before it, it is already using `code-excerpt`. To update it: +1. Find the file referenced in that tag (e.g., `` comes from `lib/main.dart`; if there is a `` directive earlier in the file, paths are resolved relative to the given `path-base` instead of the markdown file's path). +2. Update the code in that file. If you are fixing a bug, add unit tests or widget tests for the change. +3. Run the `update-excerpts` [repository tool command](https://github.com/flutter/packages/blob/main/script/tool/README.md#update-readmemd-from-example-sources), which will update `README.md`. From the root of the packages repository, the command to run this is: `dart run script/tool/bin/flutter_plugin_tools.dart update-excerpts` + +### Add or converting a code block + +To add a new code block, or fix a legacy code block: + +1. Optionally, if this is the first code block to be added, add the following line to the start of the package's `README.md`: + + ``` + + ``` + + replacing `example/lib` with the directory from which samples will be taken. This sets the base against which other paths are resolved. By default, the base is the path of the markdown file being updated. The base itself is resolved relative to the path of that file as well. + +2. Find or write the code that you want to use in the example, then annotate it with `#docregion` and `#enddocregion` comments. Ideally the code should be in one of the examples, but you could also put the code in a test. The key is to put the code somewhere that is analyzed and, ideally, tested in CI. + + For example: + + ~~~ + // #docregion purple + const Color purple = Color(0xFFE6E6FA); + // #enddocregion purple + ~~~ + +3. Reference the code from the `README.md` (or other markdown file where you want the sample to appear): + + ~~~ + + ```dart + ``` + ~~~ + + So if you added `#docregion Foo` to `example/lib/main.dart` and specified `example/lib` as the path base, you would put the following in `README.md`: + + ~~~ + + ```dart + ``` + ~~~ + +4. Follow the steps in the "Updating" section above to automatically fill the new block with the code excerpt. + +### Documentation + +Samples can come from any file. In XML and HTML files, use `` and ``. In CSS files, use `/* #docregion sectionname */` and `/* #enddocregion sectionname */`. In YAML files, use `# #docregion sectionname` and `# #enddocregion sectionname`. In C++, Dart, JS, Kotlin, Swift, and other similar languages, use `// #docregion sectionname` and `// #enddocregion sectionname`. + +You can extract multiple segments into one sample by just having multiple docregions with the same name. The regions will be concatenated with a language-appropriate comment such as `// ···`. You can control what this looks like by using the `plaster` control, as in: + + + ```dart + ``` + +To disable this feature, use `plaster="none"`. + +The plaster is indented as much as the `#enddocregion` of the region where the splice occurs. + +Regions are maximally unindented before being injected into the markdown files (while preserving relative indentation within the block). + +## Swift Migration for 1P Plugins + +### Preparation + +1. Read the [Swift migration design doc](https://docs.google.com/document/d/1XsaulkJA6_ZSpM7chkQLhQY25sQqhEMiqHMYzw8H85o/edit?resourcekey=0-_cUjF1c0iBvRLKfV-3gK5A), which covers several important topics such as the ["top down approach"](https://docs.google.com/document/d/1XsaulkJA6_ZSpM7chkQLhQY25sQqhEMiqHMYzw8H85o/edit?resourcekey=0-_cUjF1c0iBvRLKfV-3gK5A#heading=h.reauq7bq8vak). Feel free to leave any comments and feedback in the doc. + +2. Read Google's [Swift Style Guide](https://google.github.io/swift/) and Apple's [API Design Guidelines](https://www.swift.org/documentation/api-design-guidelines/) (which is endorsed by Google's Swift Style Guide). + +3. Pick a plugin that you are interested in from the [umbrella GitHub issue](https://github.com/flutter/flutter/issues/119015). This is for multiple contributors to coordinate with each other, and to avoid duplicate or conflicting work. + +### Project Settings + +1. Remove custom modulemap ([example](https://github.com/flutter/plugins/pull/6229/files)). This is due to a limitation in Cocoapods ([details](https://github.com/flutter/plugins/pull/6369#issue-1363961940)). This unfortunately means that we cannot use `Test` submodules, and all ObjC headers are exposed publicly during the migration. + +2. Add Swift dependency information to the podspec ([example](https://github.com/flutter/packages/blob/617f9d99954fe394dc91258c431c9a2626921e08/packages/quick_actions/quick_actions_ios/ios/quick_actions_ios.podspec#L17-L22)). Note that `.h` and `.m` should be removed from the `spec.source_files` after migration is done. + +3. After the plugin class is migrated to Swift, update `pluginClass` in `pubspec.yaml` ([example](https://github.com/flutter/packages/blob/617f9d99954fe394dc91258c431c9a2626921e08/packages/quick_actions/quick_actions_ios/pubspec.yaml#L16)). + +### Format your Swift code + +1. Install [swift-format](https://github.com/apple/swift-format). If you also contribute to the flutter engine, there is [an issue](https://github.com/flutter/flutter/issues/41129#issuecomment-1400812109) with the swift-format under `depot_tools`. Make sure to set up the export PATH properly to run your own copy of `swift-format`. + +2. Run `./script/tool_runner.sh format` + +### Testing + +To reduce the risk of regression, it is important to backfill unit tests to full coverage before the migration, and maintain full coverage during the migration. If possible (i.e., if adding testing does not require refactoring the plugin to make it testable), adding test coverage should be done in a separate PR before the conversion of the implementation. + +We do not report code coverage on the CI, since the number can actually be misleading (for example, a 100% coverage may make PR reviewers think that everything is fine, which is not necessarily true). Instead, you (and your PR reviewer) should evaluate whether the test is complete, by actually reading the test code (rather than just looking at the coverage). You may well want to use a coverage tool as part of your evaluation. + +During the migration, especially when backfilling tests, it is possible to discover existing bugs. Migration PRs should just focus on migration and should not contain bug fixes. You can either (1) fix the bug in ObjC first in a separate PR, or (2) if the bug is too hard to fix, just acknowledge the bug in a comment so that someone can fix it in the future. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/ecosystem/contributing/Setting-up-the-Packages-development-environment.md b/novelforge-project/agent-workspace/flutter/docs/ecosystem/contributing/Setting-up-the-Packages-development-environment.md new file mode 100644 index 0000000000000000000000000000000000000000..a223ecb2356769399bc81687f8b1c18045f901fd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/ecosystem/contributing/Setting-up-the-Packages-development-environment.md @@ -0,0 +1,37 @@ +## Things you will need + + * A working [Flutter](https://flutter.dev/docs/get-started/install) installation. + * git (used for source version control). + * An ssh client (used to authenticate with GitHub). + +## Getting the code and configuring your repository + + * Ensure all the dependencies described in the previous section are installed. + * Fork `https://github.com/flutter/packages` into your own GitHub account. If + you already have a fork, and are now installing a development environment on + a new machine, make sure you've updated your fork so that you don't use stale + configuration options from long ago. + * If you haven't configured your machine with an SSH key that's known to github, then + follow [GitHub's directions](https://help.github.com/articles/generating-ssh-keys/) + to generate an SSH key. + * `git clone git@github.com:/packages.git` + * `cd packages` + * `git remote add upstream git@github.com:flutter/packages.git` (So that you + fetch from the master repository, not your clone, when running `git fetch` + et al.) + +## Setting up tools + +### Repository tools + +There are scripts for many common tasks (testing, formatting, etc.) that will likely be useful in preparing a PR. +See [the tools README](https://github.com/flutter/packages/blob/main/script/tool/README.md) for more details. + +You will need to [set up the tools](https://github.com/flutter/packages/blob/main/script/tool/README.md#getting-started) +before using them for the first time. + +### Android tooling + +The repository is configured to treat warnings as errors in most cases; on Android that includes enforcing many Java and Android lint options. Not all of these are configured to show up by default in Android Studio, so if you are working on Android plugin implementations consider [enabling all of the Android lint options in Android Studio](https://developer.android.com/studio/write/lint#cis) (by checking the box by Android > Lint). + +There are warnings that show up in Android Studio that are not enforced in CI, so it's not always necessary to fix every warning. You can check if warnings you see need to be addressed by running the `lint-android` repository tool command. (In general, we encourage fixing warnings that show up in Android Studio even when they are not enforced; the IDE has an extra linting options that unfortunately aren't accessible via CI. If you aren't sure if a specific unenforced warning needs to be addressed, please ask your reviewer.) \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/ecosystem/contributing/Setting-up-the-Plugins-development-environment.md b/novelforge-project/agent-workspace/flutter/docs/ecosystem/contributing/Setting-up-the-Plugins-development-environment.md new file mode 100644 index 0000000000000000000000000000000000000000..ac605bb46aa8d610e3c3f34d603a1d2ce11cbc1b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/ecosystem/contributing/Setting-up-the-Plugins-development-environment.md @@ -0,0 +1 @@ +The flutter/plugins repository is no longer in use. See [Setting up the Packages development environment](Setting-up-the-Packages-development-environment.md) instead. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/ecosystem/release/README.md b/novelforge-project/agent-workspace/flutter/docs/ecosystem/release/README.md new file mode 100644 index 0000000000000000000000000000000000000000..cccb0a9a220f9f584c80df68c0600bc54db91157 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/ecosystem/release/README.md @@ -0,0 +1,70 @@ +Any PR that changes a package's version (which should be most PRs) should be published +to pub.dev. + +_See also: [Package migration to 1.0.0](../Package-migration-to-1.0.0.md) + +## Automatic release + +The packages in flutter/packages are automatically released with a Github Action workflow named [“release”](https://github.com/flutter/packages/blob/main/.github/workflows/release.yml). If a commit on master branch contains version updates to one or more packages, the “release” CI will publish the new versions to pub.dev and push the release tag to GitHub. The “release” CI passes if +1. the release process is successful, or +2. there are no version updates in the commit, or +3. the new versions have already been published. + +If you are a Flutter team member at Google and you need access to the publisher account, please see b/191674407. + +The “release” CI only runs on post-submit, and waits until all the other CI jobs have passed before starting. Like any other CI job, The “release” CI blocks future PRs if failed. + +_Note: the “release” CI does not automatically publish the `flutter_plugin_tools` package._ + +### New packages + +When a new package is released for the first time, it will be owned by the publisher account rather than the flutter.dev verified publisher. Someone with access (see above) needs to log into pub.dev with the publisher account and transfer the package to the verified publisher using the package's Admin tab. + +### What if the “release” CI failed? + +If it is a flake (for example, network issue), a Flutter team member can simply run the CI again. For more complicated cases, a Flutter team member can also manually release the packages, then re-run the CI to pass. + +The most common source of failure of the `release` task is that another test failed; if that is due to flake, you will need to first re-run the failing test task, then once it's green re-run `release`. + +## Manual release (only when necessary) + +If something has gone wrong that prevents auto-publishing—most commonly, an out-of-band breakage that caused post-submit tests to fail for reasons unrelated to the PR that should have been published—a Flutter team member can publish manually. (An alternative to publishing manually is to revert and re-land the relevant PR; this is especially worth considering for PRs that affect many plugins.) + +Some things to keep in mind before publishing the release: + +- Is the post-submit CI for that commit green? Or if not (due to OOB breakage), is a subsequent post-submit green without having changed anything related to the plugin? Always check the post-submit CI before publishing. +- [Publishing is + forever.](https://dart.dev/tools/pub/publishing#publishing-is-forever) + Hopefully any bugs or breaking in changes in this PR have already been caught + in PR review, but now's a second chance to revert before anything goes live. +- "Don't deploy on a Friday." Consider carefully whether or not it's worth + immediately publishing an update before a stretch of time where you're going + to be unavailable. There may be bugs with the release or questions about it + from people that immediately adopt it, and uncovering and resolving those + support issues will take more time if you're unavailable. + +To release a package: +1. `git checkout `. This should be the commit of the + PR you are publishing unless there's a very, **very** good reason you are using + a different version. +1. Ensure that `git status` is clean, and that there are no extra files in + your local repository (e.g., via `git clean -xfd`). +1. Use the [`publish` command from + `flutter_plugin_tools`](https://github.com/flutter/packages/blob/main/script/tool/README.md). + This command checks that you've done the step above, publishes the new version to pub.dev, + and tags the commit in the format of `-v` then pushes + it to the upstream repository. + +### Fully manual backup option + +If for some reason you can't use `flutter_plugin_tools` in step 3, you can publish manually: + 1. Push the package update to [pub.dev](https://pub.dev) using `dart pub publish`. + 2. Tag the commit with `git tag` in the format of `-v` + 3. Push the tag to the upstream master branch with `git push upstream `. + +## Recovering from a bad release + +Sometimes, despite our best efforts, breakage is found only after a package is published. Unlike flutter/engine or flutter/flutter a breaking PR that has been published **cannot be directly reverted**, since that would revert to an earlier, also-already-published version, which cannot be published. To fix published breakage: +1. Land a fix as a new version. This can either be a revert with version and CHANGELOG updates, or a fix-forward, depending on the situation. +2. **Optional**: If the release was within the last seven days, anyone in the 'flutter.dev' publisher group can retract the bad version, using the Admin tab on the package's pub.dev page. This step is especially useful if the problem was related to a bad Flutter or Dart version constraint (i.e., the package relies on functionality from a new version of Flutter or Dart, but doesn't set that minimum), to ensure that package clients on that old version don't still resolve to the broken version even once a new version with the constraint fixed is released. It can also be useful an immediate-term step while the fixed version is being rolled out, to prevent more people from being broken while the fix is prepared. + * If a package is retracted, this should if at all possible be in conjunction with releasing a fixed version, not instead, to make it easy for already-broken users to get to a fixed state. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md b/novelforge-project/agent-workspace/flutter/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md new file mode 100644 index 0000000000000000000000000000000000000000..c2813bf88b6b78324e3805167a6dab2dce4b7d20 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/ecosystem/release/Updating-Packages-repo-for-a-stable-release.md @@ -0,0 +1,27 @@ +This page describes the process of updating flutter/packages after a stable Flutter release. Hotfix releases don't require any changes, since the auto-roller will update the [pinned stable version](https://github.com/flutter/packages/blob/main/.ci/flutter_stable.version), but full stable releases (roughly once per quarter) require manual updates to the repository: +* [The stable pin](https://github.com/flutter/packages/blob/main/.ci/flutter_stable.version) needs to be updated. The autoroller will open a PR, but because it includes a separate commit for every Flutter commit since the last stable, it will overwhelm the CLA check and it will fail. Either the CLA check can be overridden (which is safe since the source repo enforces the CLA), or a new manual PR can be made that updates the hash. +* The [Flutter Dart version mapping](https://github.com/flutter/packages/blob/b4985e25fe0763ece3cfd7af58e0e8c9b9f04fc4/script/tool/lib/src/common/core.dart#L59-L71) needs to be updated. The [Flutter SDK releases page](https://docs.flutter.dev/release/archive) is a useful reference. + * In addition to adding the new release, add the last bugfix version of the previous stable, for the next step. +* The [N-1 and N-2 legacy analysis tests](https://github.com/flutter/packages/blob/b4985e25fe0763ece3cfd7af58e0e8c9b9f04fc4/.ci.yaml#L223-L237) need to be updated. We generally use the latest bugfix versions for these tests. +* The [minimum allowed Flutter version](https://github.com/flutter/packages/blob/b4985e25fe0763ece3cfd7af58e0e8c9b9f04fc4/.ci/targets/repo_checks.yaml#L19) for the repo needs to be updated to the N-2 version. (We generally use .0 here, not the latest hotfix, under the assumption that there are not going to be analysis-breaking changes in a hotfix.) + * This should ideally be done in the same PR as the previous step, since that is the point at which we no longer have any coverage of the previous minimum version. +* All packages need to be updated to that minimum version. This can be trivially done with the repo tooling. E.g.: + + `dart run script/tool/bin/flutter_plugin_tools.dart update-min-sdk --flutter-min=3.7.0` + + * Per [repo policy](../contributing/README.md#version), we do not version-bump these changes, so the associated `update-release-info` command should use `--version=next`. A convenient way to run the `update-release-info` command on only the necessary packages is to make the `update-min-sdk` run its own commit, then use `--base-branch HEAD^ --run-on-changed-packages` to target only the packages changed in that commit. + * This must be done in the same PR as the previous step, or CI will fail. +* The [release action](https://github.com/flutter/packages/blob/e7d812cefce083fa09762d25cd42303737d05b9f/.github/workflows/release.yml#L34) should be updated to use the new stable. + +Many of these steps can be done separately, but they can also be done in combined PRs (as few as one). As an example, 3.13 was done in two PRs: [#4370](https://github.com/flutter/packages/pull/4730) and [#4371](https://github.com/flutter/packages/pull/4731). + +### Issue Updates + +Sweep all [`p: waiting for stable update` issues](https://github.com/flutter/flutter/labels/p%3A%20waiting%20for%20stable%20update), and update those that are now unblocked to indicate that they can now be addressed (removing the label). + +For any that are about deprecated API usage, upgrade them to `P1`, and either find an owner for them or remove the owning team's `triaged-*` label, leaving a comment that the deprecated API usage needs to be removed ASAP to minimize future disruption to package clients. + * The motivation for treating these as P1 is that many clients do not update their packages (in particular, their transitive dependencies) frequently, so the further in advance of the eventual API *removal* the publishing of an update is, the fewer clients will have build errors on future updates of Flutter. + +### PR Updates + +Similarly sweep all [`p: waiting for stable update` PRs](https://github.com/flutter/packages/labels/waiting%20for%20stable%20update) and comment and remove labels as necessary. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/ecosystem/testing/Plugin-Tests.md b/novelforge-project/agent-workspace/flutter/docs/ecosystem/testing/Plugin-Tests.md new file mode 100644 index 0000000000000000000000000000000000000000..4c9aa6dd10e217f6b3578b094156486fd52b01a5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/ecosystem/testing/Plugin-Tests.md @@ -0,0 +1,237 @@ +*If you haven't already read it, start with [the repository structure overview](../Plugins-and-Packages-repository-structure.md) to familiarize yourself with the types of packages discussed below.* + +## Types of Tests + +Because of the complexities of having native code, plugins have many more types of tests than most other Flutter packages. A plugin will generally have some combination of the following: +- **Dart unit tests**. All plugin packages should have these, with the exception of a federated implementation package that contains only native code (i.e., one that only implements a shared method channel). In a plugin, Dart unit tests would cover: + - The Dart code in a monolithic plugin (generally using a mock method channel). + - The Dart code in an app-facing plugin package (using a mock implementation of the platform interface). + - The Dart code in a platform interface package that contains a shared method channel implementation (using a mock method channel). + - The Dart code of an implementation package, if any. Some federated implementations are pure Dart, and would be largely tested via unit tests, and some have Dart code binding to a package-internal method channel. + + These should live in `test/` +- **Integration tests**. These use [the `integration_test` package](https://flutter.dev/docs/testing/integration-tests). Unlike Dart unit tests, integration tests run in the context of a Flutter application (the `example/` app), and can therefore load and exercise native plugin code. Almost all plugin packages other than the platform interface package should have these. The only exceptions would be: + - Plugins that need native UI tests (see below) + - Plugins that have pure Dart implementations which can be comprehensively tested with Dart unit tests. + + These should live in `example/integration_tests/` +- **Native unit tests**. Most plugins that have native code should have unit tests for that native code. (Currently, many do not; fixing that is currently a priority for plugins work.) They are written as: + - Android: **JUnit** - These should live in `android/src/test/` + - iOS: **XCTest** - These should live in `example/ios/RunnerTests/` (**Note**: These are in the example directory, not the main package directory, because they are run via the example app's project) + - macOS: **XCTest** - These should live in `example/macos/RunnerTests/` (**Note**: These are in the example directory, not the main package directory, because they are run via the example app's project) + - Linux: **Google Test** - These should live in `linux/test/`, and be named `*_test.cc`. + - Windows: **Google Test** - These should live in `windows/test/`, and be named `*_test.cpp`. +- **Native UI tests**. Some plugins show native UI that the test must interact with (e.g., `image_picker`). For these normal integration tests won't work, as there is not way to drive the native UI from Dart. They are written as: + - Android: **Espresso**, via the [`espresso` plugin](https://pub.dev/packages/espresso) - These should live in `example/android/app/src/androidTest/` + - iOS: **XCUITest** - These should live in `example/ios/RunnerUITests/` + - macOS: **XCUITest** - These should live in `example/macos/RunnerUITests/` + - Windows and Linux: **TBD**, see [#70233 (Windows)](https://github.com/flutter/flutter/issues/70233) and [#70235 (Linux)](https://github.com/flutter/flutter/issues/70235) + +## Running Tests + +### Dart unit tests + +These can be run like any other Flutter unit tests, either from your preferred Flutter IDE, or using `flutter test`. The one exception is unit tests for `*_web` packages, which must be run with `flutter test --platform=chrome`. + +You can also run them via the [repository tools `drive-examples` command](https://github.com/flutter/packages/blob/main/script/tool/README.md): + +```sh +dart run script/tool/bin/flutter_plugin_tools.dart drive-examples --packages= +``` + +### Integration tests + +To run the integration tests using Flutter test (while in a plugin directory): + +```sh +cd example +flutter test integration_test +``` + +(optionally including a `-d ` flag to select the target device), or use the [repository tools `drive-examples` command](https://github.com/flutter/packages/blob/main/script/tool/README.md) +from the root of the repository: + +```sh +dart run script/tool/bin/flutter_plugin_tools.dart drive-examples --packages= -- +``` + +To run integration tests as instrumentation tests on a local Android device: + +```sh +cd example +flutter build apk +cd android && ./gradlew -Ptarget=$(pwd)/../test_driver/_test.dart app:connectedAndroidTest +``` + +### Native tests + +From a terminal (while at the repository root), use the [repository tools `native-test` command](https://github.com/flutter/packages/blob/main/script/tool/README.md). Examples: + +```sh +# Unit and integration (UI) tests, multiple platforms +dart run script/tool/bin/flutter_plugin_tools.dart native-test --android --ios --packages= +# iOS, integration tests only +dart run script/tool/bin/flutter_plugin_tools.dart native-test --ios --no-unit --packages= +# Android, unit tests only +dart run script/tool/bin/flutter_plugin_tools.dart native-test --android --no-integration --packages= +``` + +It's also possible to run them from native IDEs: + +#### JUnit + +Run from Android Studio once the example app is opened as an Android project + +#### XCTest and XCUITest + +[Run from Xcode](https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/05-running_tests.html) +once the example app is opened as an Xcode project. + +#### Google Test + +For Windows plugins, Visual Studio should auto-detect the tests and allow running them as usual. + +### Web Tests + +Most web tests are written as Integration Tests because they need a web browser (like Chrome) to run. Web integration tests are located in the `example` directory of the `` package. + +To run web integration tests: + +1. Check what version of Chrome is running on the machine you're running tests on. +2. Download and install the ChromeDriver for that version from here: + * https://chromedriver.chromium.org/downloads +3. Start ChromeDriver with: +```sh +chromedriver --port=4444 +``` +4. Run tests: + * **All:** from the root `plugins` directory, run: + ```sh + dart run script/tool/bin/flutter_plugin_tools.dart drive-examples --packages=/ --web + ``` + * **One:** `cd` into the `example` directory of the package, then run: + ```sh + flutter drive -d web-server --web-port 7357 --browser-name chrome --driver test_driver/integration_test.dart --target integration_test/NAME_OF_YOUR_test.dart + ``` + +All web packages contain a standard `test` directory in the root of the package that can be run with `flutter test`. In most cases, the test there will direct users to the Integration Tests that live in the `example` directory. In some cases (like `file_selector_web`), the directory contains actual Unit Tests that are not web-specific and can run in the Dart VM. + +#### Mocks + +Some packages (like `google_maps_flutter_web`) contain `.mocks.dart` files alongside the test files that use them. + +Mock files are [generated by `package:mockito`](https://pub.dev/packages/mockito#lets-create-mocks). The contents of mock files can change with how the mocks are used within the tests, in addition to actual changes in the APIs they're mocking. + +Mock files must be updated by running the following command: + +```sh +flutter pub run build_runner build +``` + + +## Adding tests + +A PR changing a plugin [should add tests](../../contributing/Tree-hygiene.md#tests). Which type(s) of tests you should add will depend on what exactly you are changing. See below for some high-level guidance, but if you're not sure please ask in your PR or in `#hackers-ecosystem` [on Discord](../../contributing/Chat.md). +Hopefully the scaffolding to run the necessary kinds of tests are already in place for that plugin, in which case you just add tests to the existing files in the locations referenced above. If not, see below for more information about adding test scaffolding. + +### FAQ: Do I need to add tests even if the part of the code I'm changing isn't already tested? + +**Yes.** Much of the plugin code predates the current strict policy about testing, and as a result the coverage is not as complete as it should be. The goal of having a strict policy going forward is to ensure that the situation improves. + +### What types of tests to add + +The type(s) of tests to add depends on the details of the PR, and there is not always one right answer. Some high level principles to keep in mind: +- Your tests should cover all of the new code you've added whenever possible. For instance, if your change has an error path you should test both the normal path and the error path. +- Unit tests are more reliable, faster to run, and more precise at isolating bugs than integration tests, so it is generally good to have unit testing of any non-trivial logic. +- New functionality should generally include integration tests that validate that the feature works end to end. (In some cases asserting that the native code has done the right thing is impractical in a full integration test, however.) + +Some specific guidelines about different test types: +- **Dart unit tests**: If you are changing Dart code, you should almost always have Dart unit tests as well. They are fast to run, and generally easy to write and maintain. Even if your Dart changes are just wiring a new parameter through an app-facing package to the platform interface, or a platform interface implementation to a method channel, Dart unit tests can easily validate that they are being passed through correctly at each step. + - Unless your change has no native code changes, remember that Dart unit tests **are not sufficient by themselves**. No native code is run as part of Dart unit tests. +- **Dart integration tests**: These are the only fully end-to-end tests for plugins, so should be written when possible. This is the only kind of test that can actually test the entire flow as it will be run by plugin clients. Some comment cases where they won't work, however: + - The test requires interacting with native UI (e.g., pushing a button in a modal dialog before the test can complete). + - The test requires inspecting native UI (e.g., changing the properties of a view inside a platform view provided by the native code—although in some cases it may be viable to write a special platform interface just for testing, that can query those properties from Dart via calls to native code). + - The test requires specific hardware state. +- **Native unit tests**: Native unit tests are the only way to unit-test native code; if your native code is non-trivial, then it should probably have native unit tests. In particular: + - It is often much easier to get complete coverage of edge cases in native unit tests than via full integration tests. + - If you need to mock out system components (such as hardware state), you'll need native unit tests. +- **Native integration tests**: These are usually the most complex to maintain (being both per-platform, and more likely to be flaky than unit tests), so use with caution. However, they are the only way to get end-to-end testing when interacting with native UI. + +Some patterns to consider given all of the above: +- If Dart integration tests are viable, use that to ensure end-to-end behavior of the overall feature, and add Dart and/or native unit testing to cover specific implementation details. +- If the test requires interacting with native UI (e.g., image or file selection): + - use native integration tests to validate the overall flow, plus unit testing of specific details, or + - use native unit tests that are set up to test the native portion end to end (i.e., calling into the method channel entry point with a synthesized call, and checking the method call response) with the UI APIs stubbed out, plus Dart unit tests that everything is plumbed through from the Dart API surface to the method call, or + - use the first to validate basic functionality, and the second for edge cases that can't be easily tested that way. +- If the tests require mocking device state (e.g., camera), use native unit tests that are set up to test the native portion end to end (i.e., calling into the method channel entry point with a synthesized call, and checking the method call response) with the UI APIs stubbed out, plus Dart unit tests that everything is plumbed through from the Dart API surface to the method call. + +### Adding test scaffolding + +If a plugin is missing test scaffolding for the type of tests you want to add, you have several options: +- If it's simple to enable them, and you are comfortable making the changes, you can enable them as part of your PR. +- If it's non-trivial to enable them, but you are comfortable doing it, you can make a new PR that enables them with some minimal test, and ask for that to be reviewed and landed before continuing with your PR. +- If you aren't comfortable making the change, reach out [via Discord](../../contributing/Chat.md) and ask in `#hackers-ecosystem`. + +Regardless of the approach you use, please reach out on Discord if a PR that sets up a new kind of test doesn't get reviewed within two weeks. Filling in the gaps in test scaffolding is a priority for the team, so we want to review such PRs quickly whenever possible. + +See below for instructions on bringing up test scaffolding in a plugin (*does not yet cover all types of tests*): + +#### Enabling XCTests or XCUITests + +1. Open `/example/ios/Runner.xcworkspace` using Xcode. (For macOS, replace `ios` with `macos`.) +1. Create a new "Unit Testing Bundle" or "UI Testing Bundle", depending on the type of test. +1. In the target options window, populate details as following, then click on "Finish". + * In the "product name" field, type "RunnerTests" or "RunnerUITests", depending on the type of test. + * In the "Team" field, select "None". + * Set the Organization Identifier to "dev.flutter.plugins". + * In the Language field, select "Objective-C" for iOS, or "Swift" for macOS. + * In the Project field, select the xcodeproj "Runner" (blue color). + * In the Target to be Tested, select xcworkspace "Runner" (white color). + * In the Build Settings tab, remove most of the target-level overrides that are generated by the + template. In particular: + * `CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER` is currently incompatible with Flutter. + * `IPHONEOS_DEPLOYMENT_TARGET` and `TARGETED_DEVICE_FAMILY` may cause issues running tests. + * The compiler settings (`CLANG_*`, `GCC_*`, and `MTL_*`) shouldn't be needed. +1. For XCTests, edit `example/ios/Podfile` (`example/macos/Podfile` for macOS) to add the following to the `target 'Runner' do` block: + + ```ruby + target 'RunnerTests' do + inherit! :search_paths + pod 'OCMock', '3.5' + end + ``` + The `OCMock` line is only necessary if your tests use OCMock. +1. A RunnerTests/RunnerUITests folder should be created and you can start hacking in the added `.m`/`.swift` file. + +#### Enabling Android UI tests + +1. Duplicate the `DartIntegrationTests.java` file from another plugin to `example/android/app/src/androidTest/java/io/flutter/plugins/DartIntegrationTest.java` +1. Create a file under `example/android/app/src/androidTest/java/` with a sub-path corresponding to the example app's package identifier from `example/android/app/src/main/AndroidManifest.xml`. The file should be called `FlutterActivityTest.java` (or if the example uses a custom MainActivity as its `android:name` in `AndroidManifest.xml`, `MainActivityTest.java`). + * For example, if `AndroidManifest.xml` uses `io.flutter.plugins.fooexample` as the package identifier, and `io.flutter.embedding.android.FlutterActivity` as its `android:name`, the file should be `example/android/app/src/androidTest/java/io/flutter/plugins/fooexample/FlutterActivityTest.java`. + + The file should look like: + ``` + package io.flutter.plugins.fooexample; + + import androidx.test.rule.ActivityTestRule; + import dev.flutter.plugins.integration_test.FlutterTestRunner; + import io.flutter.embedding.android.FlutterActivity; + import io.flutter.plugins.DartIntegrationTest; + import org.junit.Rule; + import org.junit.runner.RunWith; + + @DartIntegrationTest + @RunWith(FlutterTestRunner.class) + public class FlutterActivityTest { + @Rule + public ActivityTestRule rule = new ActivityTestRule<>(FlutterActivity.class); + } + ``` + + Note: + * Update the `package` to match the actual package. + * If using a custom `MainActivity`, replace the `FlutterActivity` references with `MainActivity`. +1. Ensure that `example/android/app/build.gradle`'s `defaultConfig` section contains: + ``` + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + ``` \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/ecosystem/testing/Understanding-Packages-tests.md b/novelforge-project/agent-workspace/flutter/docs/ecosystem/testing/Understanding-Packages-tests.md new file mode 100644 index 0000000000000000000000000000000000000000..8f985a018ef41c917bb775cf787e4defe1b35433 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/ecosystem/testing/Understanding-Packages-tests.md @@ -0,0 +1,168 @@ +The flutter/packages repository has a variety of tests; while many are relatively self-explanatory (for instance, a failure in `dart_unit_tests` in presubmit can be debugged simply by running the failing Dart unit tests locally), others are less straightforward to understand. This page covers test structure and details for the repository, and how to investigate failures. + +# Structure + +## Tooling + +Almost every test run by CI is run via the [repository tooling](https://github.com/flutter/packages/tree/main/script/tool). In general, the CI configuration for a task is a minimal wrapper around one (or, rarely, more than one) repository tool command. This has several benefits: +- It makes it easy to run almost any failing CI task locally, using the same command. +- It makes transitioning between different CI systems relatively straightforward. + +CI often runs commands via the `script/tool_runner.sh` script. This is just a thin wrapper that passes arguments that are commonly used for CI (such as `--packages-for-branch`, which makes CI behave differently depending on the branch being run) but are unlikely to be useful when running locally. To run a failing test locally, substitute [`dart run script/tool/bin/flutter_plugin_tools.dart`](https://github.com/flutter/packages/tree/main/script/tool#getting-started) for `script/tool_runner.sh`. + +## Infrastructure + +flutter/packages uses the same LUCI infrastructure as most of the rest of Flutter. The main exception is the `release` step, which uses GitHub Actions. + +### LUCI + +This is the CI system used by flutter/flutter and flutter/engine. For information about LUCI results pages, see [Understanding a LUCI build failure](../../infra/Understanding-a-LUCI-build-failure.md). + +#### Results + +Results for LUCI runs are available on [the Packages dashboard](https://flutter-dashboard.appspot.com/#/build?repo=packages&branch=main). + +#### Configuration + +LUCI tasks are configured in `.ci.yaml`, and files in `.ci/`. To find the commands corresponding to a given failing target and task, look in `.ci.yaml` for `name: your-target-name-here`, find the YAML file listed in the `target_file` entry, and look in `.ci/targets/that_yaml_file_name.yaml`. Each task will be an entry in that file, which runs `script` (a file relative to the repository root, usually either `script/tool_runner.sh` or in `.ci/scripts/`), optionally with given `args`. + +### GitHub Actions + +#### Results + +GitHub Actions results only show up [in the GitHub UI](https://github.com/flutter/packages/commits/main/packages): click a check mark (passed), red X (failed) or yellow circle (running) for the list of tasks. + +#### Configuration + +GitHub Actions tasks are configured in `.github/workflows/`. + +## Test matrix + +The overall testing structure for flutter/packages is: +- Most tests are run on only one host platform: Linux when possible, or the relevant platform if necessary (e.g., Windows target tests must run on Windows hosts, and iOS and macOS tests must run on macOS hosts). +- Most tests are run with both Flutter `master` and Flutter `stable` (see [discussion of supported platforms](../contributing/README.md#supported-flutter-versions) for more details). + - Since in practice `stable`-only failures are very rare, CI is currently configured to only run `stable` in post-submit to reduce CI time and costs. +- Architecture coverage is as-needed; we generally don't duplicate tests across architectures. For plugins, where architecture is most likely to be an issue, we try to run: + - the majority of the tests (`*_platform_tests`) on the most popular architecture, and + - `build_all_packages` on the other. + + This gives us build coverage on both architectures. + +## Exclusions + +Many test commands in the repository tooling are configured to make having no tests of that type an error, to avoid cases where packages are misconfigured such that we aren't running tests that we think they are (or that an important category of tests is just forgotten). In cases where a missing test is intentional, you can add it to the relevant [exclusion file](https://github.com/flutter/packages/tree/main/script/configs), which are files that are passed to the relevant CI runs. + +Exclusions **must** include explanatory comments, and in cases where they are not intended to be permanent, a link to an issue tracking its removal. + +# Specific tests + +In addition to Dart unit tests, Dart integration tests, and for plugins the various kinds of [native plugin tests](Plugin-Tests.md), there are a number of tests that check for repository best practices or to catch problems that have affected packages in the past. As a rule of thumb, any time we find a bug or mistake only *after* publishing a package, we try to add a check for that in CI to prevent similar issues in the future. + +Below are descriptions of many of the less self-evident CI tests, and common solution to failures. Anyone adding new tests is encouraged to document them here. + +- **`submit-queue`**: This only shows in PRs (presubmit), and reflects the current state of the tree: if it is red, the tree is currently closed to commits (which can mean either that the tree is red, or that a recently landed PR is still running post-submit tests), and if it is green the tree is open. This has **no relation** to the PR itself, and as a PR author you do not need to do anything about it; Flutter team members monitor the state of the tree, and will handle failures. + - There is a known issue that sometimes causes the status of this check to be stale; the causes is unknown. If this happens (i.e., the check in red but the tree state as described in the Infrastructure section above is actually green), you an either update your PR by merging in the latest `main` to force updates, or you can reach out to a Flutter team member (in a comment on the PR, or in Discord) to override the incorrect check. +- **`*_platform_tests`**: This runs each package's integration tests on the given target platform, as well as any [native plugin tests](Plugin-Tests.md) for that platform. This can also include native-language-specific analysis or lint checks. +- **`analyze`**: The initial `analyze` step is a straightforward Dart `analyze` run, but the `pathified_analyze` step is more complicated; it is intended to find issues that will cause out-of-band breakage in our own repository when the change being tested is published (most commonly with federated plugins). It does this by finding all packages that have non-breaking-version changes in the PR, and then rewriting all references to those packages in the repository to be `path:` dependencies, then re-running analysis. + + A failure here does not necessarily mean that the PR is wrong; because we use very strict analysis options, changes that are not considered breaking by Dart semver conventions can break our CI. Common sources of failures here include: + - Accidentally making a breaking change without making a major version change to the plugin. + - **Solution**: Fix the versioning. + - Deprecating something that is still in use by another package within the repository. + - **Solution**: Suppress the warnings with `// ignore: deprecated_member_use` annotations in the other packages using that method, [with a comment](../../contributing/Style-guide-for-Flutter-repo.md#comment-all--ignores) linking to the issue that tracks updating it. Once it lands, do a follow-up PR to update the calls and remove the `ignore`s. + - Adding a new enum value. We generally do not consider this breaking, but use your judgement and discuss with your reviewer; consider whether it is likely that clients have critical logic that depends on exhaustively handling all enum values, and what the effects are likely to be for those use cases if a new value is added. + - **Solution**: If it's not treated as breaking, then temporary disable that analyzer warning while adding the value: + * In the PR that adds the value, suppress the warnings with `// ignore: exhaustive_cases` annotations, [with a comment](../../contributing/Style-guide-for-Flutter-repo.md#comment-all--ignores) linking to the issue that tracks updating it. + * In the follow-up PR that picks up the new enum value and uses it, remove the `ignore`. +- **`legacy_version_analyze`**: Runs `analyze` with older versions of Flutter than the current `stable` on any package that claims to support them; see [the supported version policy](../contributing/README.md#supported-flutter-versions) for details. + - **Solution**: Unless you have a specific need to keep support for the old version (unlikely), just update the Flutter constraint in `pubspec.yaml` to exclude the failing version(s) of Flutter. +- **`analyze_downgraded`**: Runs `analyze` after running a `pub downgrade`, to ensure that minimum constraints are correct (e.g., that you don't add usage of an API from version `x.1` of a dependency that is specified as `^x.0` in `pubspec.yaml`). + - **Solution**: Update the relevant constraint to the version that introduced the new APIs. +- **`*_build_all_packages`**: Builds all packages into the same application, to ensure that there are no conflicts between dependencies, as we generally want clients to be able to use the latest versions of any of our packages in the same project. + - **Solutions**: + - If possible, fix the conflict. E.g., if you update a dependency of one package to a new major version, do the same in other packages using that same dependency. + - Otherwise, temporarily add the necessary package(s) to the `exclude_all_packages_app.yaml` exclusion file (see discussion of exclusion files above). +- **`repo_checks`**: Enforces various best practices (formatting, style, common mistakes, etc.). In most cases, the error messages should give clear and actionable explanations of what is wrong and how to fix it. Some general notes on specific steps: + - **`license_script`**: All code files must have the repository copyright/license block at the top. In most cases a failure here just means you forgot to add the license to a new file. + - **`federated_safety_script`**: Changing interdependent sub-packages of a federated plugin in the same PR can mask serious issues, such as undesired breaking changes in platform APIs. See the documentation on [changing federated plugins](../contributing/README.md#changing-federated-plugins) for next steps. + +# Out-of-band failures + +The flutter/packages repository is more prone to out-of-band failures—persistent failures that do not originate with a PR within the repository—than flutter/engine and flutter/flutter. These are more difficult to debug than most failures since the source may not be obvious, and can be difficult to resolve since there's not necessarily anything that can be reverted to fix them. This page collects information on sources of these failures to help debug and resolve them. + +This section doesn't cover flakes. While these failures are easily confused with flakes at first, they can be distinguished by being persistent across retries, as well as showing up in in-progress PRs. + +## Infrastructure + +This category covers anything that is a function of the CI infrastructure itself: services, machines, etc. It occurs across all repositories, but instances may be specific to one repository. + +### LUCI + +LUCI tasks are run on Flutter-infrastructure-managed VMs, using an [out-of-repo recipe](https://flutter.googlesource.com/recipes/+/main/recipes/packages/packages.py). Since LUCI images are changed by infrastructure team rollouts, and recipes are out-of-repo, almost any LUCI change is out of band. Potential failure sources include: +- Images changes. +- Recipe changes (very uncommon now that the recipe is generic). + +#### Distinguishing features +- May affect all of the LUCI tests. +- Image changes generally result in builds not proceeding at all due to missing dependencies. +- Recipe changes generally cause setup failures or failure to start the test. + +#### Distinguishing features +- Usually easy to identify since failures are generally before the tests even run. + +#### Investigation & resolution tips +- File an [infrastructure ticket](../../infra/Infra-Ticket-Queue.md). +- Check the recipe file for recent changes. + +### Firebase Test Lab (Also known as: "FTL") + +Integration tests on Android are run in real devices through the Firebase Test Lab infrastructure by [the `firebase-test-lab` command in the repository tooling](https://github.com/flutter/packages/blob/main/script/tool/lib/src/firebase_test_lab_command.dart). From time to time, the Firebase Test Lab will change what devices are available for testing, and tests will start timing out. + +#### Distinguishing features +- `firebase_test_lab` task starts timing out. The output is normally just: `Timed out!` ([Example](https://github.com/flutter/plugins/runs/3930255308).) + - These timeouts will start as "flake" tests, and get progressively worse, until no amount of "retries" helps them pass (as devices are phased out / less available). + - `firebase_test_lab` timing out is almost always related to this. Either because of devices becoming unavailable, or by a temporary lack of resource availability. + +#### Investigation & resolution tips +- Check the [Deprecation List](https://firebase.google.com/docs/test-lab/android/available-testing-devices#deprecated_devices) in the Firebase documentation, and see if it affects any of the devices [used by the script](https://github.com/flutter/packages/blob/1598ccd896653cbe40b7401fb0eafd890e784b39/.ci/targets/android_device_tests.yaml#L14). +- Pick another device that is more available and update the script. See a [sample PR](https://github.com/flutter/plugins/pull/4436). + - It is likely that `flutter/engine` and `flutter/flutter` have had the same problem. Use the same devices picked by them. + +## Publishing + +There are some interdependencies between packages in the repository (notably federated plugins, but a few other cases as well, such as examples of one package that depend on another package). Inter-package dependencies are only tested with published versions ([#52115](https://github.com/flutter/flutter/issues/52115)), so publishing a package can potentially break other packages. + +#### Distinguishing features +- Timing will correspond to a package being published. (With autorelease, this will be shortly after the version-updating PR lands, unless something goes wrong.) +- May have a clear reference to the published package in the failure. + - This is not guaranteed; e.g., Android plugin Gradle changes can have transitive effects on example apps that depend on those packages. + +#### Investigation & resolution tips +- Pinning a specific dependency version can confirm or eliminate this as a source of errors. + - This should generally **not** be used as a mitigation; this category of error is often a failure that will affect clients of the package as well. + +## External build dependencies + +On platforms where the plugin system includes a dependency management system, there are build-time dependencies on external servers (e.g., Maven for Android, Cocoapods for iOS and macOS). Potential failure sources include: +- Temporary server outages. +- Removal of a package. + +#### Distinguishing features +- The logs will be very clear that fetching a dependency failed. + - The only challenge in identifying them quickly is that they look the same as transient server or network issue flakes, which are much more common. + +#### Investigation & resolution tips +- Check for reports of outages on the relevant servers. +- Check whether the entire server is failing, or only fetching a specific package is failing. +- Server-level outages are usually short-lived and just have to be waited out; i.e., they are persistent for a matter of hours before the server issue is resolved. +- Package issues may require repository changes. E.g., for Maven, switching to another server that has the package, or to another version of the package that is still available. + +## `pub` + +The `publish` command periodically enables new checks. Rarely, such a check will be enabled after presubmits for a PR have run, but before it's submitted. + +#### Distinguishing features +- Either the `publish` validation step or the `release` step will fail with a clear error message from the `publish` command. + +#### Investigation & resolution tips +- These are usually straightforward to resolve by fixing the newly-flagged issue. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Crashes.md b/novelforge-project/agent-workspace/flutter/docs/engine/Crashes.md new file mode 100644 index 0000000000000000000000000000000000000000..3d20b20b85fd535cbc32b7e4349be6f0a9d672b8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Crashes.md @@ -0,0 +1,134 @@ +## Symbolicating stack traces for engine crashes + +The easiest way to symbolicate stack traces for Android and iOS is running the [dart_ci symbolizer locally](https://github.com/dart-lang/dart_ci/blob/main/github-label-notifier/symbolizer/README.md#using-this-locally). If that is not an option, the steps below explain how to do it manually. + +### Android + +#### Get the symbols + +1. Get the Flutter Framework or Flutter Engine revision from the report. If you have the Engine revision, skip to step 3. + +2. Get the Engine revision from the Framework (this could be automated). https://github.com/flutter/flutter/blob/main/bin/internal/engine.version is the file which contains the information. Substitute the framework hash for `main` in that url. + +3. With the full engine revision (e.g. cea5ed2b9be42a981eac762af3664e4a17d0a53f), you can now get the proper symbol files: + + To view the available artifacts for a build, visit this URL in a browser (replacing the engine hash with your hash): `https://console.cloud.google.com/storage/browser/flutter_infra_release/flutter/cea5ed2b9be42a981eac762af3664e4a17d0a53f` + + To download the symbols for android-arm, download this URL _using your browser_ (replacing the hash again, and noting that this URL is on a different host, "storage", compared to the one above, which uses "console"): `https://storage.cloud.google.com/flutter_infra_release/flutter/cea5ed2b9be42a981eac762af3664e4a17d0a53f/android-arm/symbols.zip`. + + Please be aware that the type of the symbol must match your Apps release type. In above example, this refers to a android-arm **debug** build. If you work with a **release** or **profile** build, the URLs would look like this: + + * https://storage.cloud.google.com/flutter_infra_release/flutter/cea5ed2b9be42a981eac762af3664e4a17d0a53f/android-arm-release/symbols.zip + * https://storage.cloud.google.com/flutter_infra_release/flutter/cea5ed2b9be42a981eac762af3664e4a17d0a53f/android-arm-profile/symbols.zip + + You have to use your browser because it does authentication. + +#### Symbolicate with ndk-stack + +Once you have the symbols unzipped, you can use ndk-stack from your Android NDK. Suppose `stack.txt` contains the stack (including the leading `*** *** ***` line from the crash): + +```bash +.../ndk/prebuilt/linux-x86_64/bin/ndk-stack -sym .../path/to/downloaded/symbols < stack.txt +``` + +Or on macOS: +```bash +.../ndk/prebuilt/darwin-x86_64/bin/ndk-stack -sym .../path/to/downloaded/symbols < stack.txt +``` + +Some debugging tools, like _pidcat_ may not show the full tombstone logs. In that case, please use `adb logcat` directly and copy the full output. + +#### Symbolicate with addr2line + +A alternative way to symbolicate is by using the addr2line tool. It is bundled with the NDK. +To use it, simply call it with a path to the .so file downloaded above and feed the stack addresses to it manually. For example, on macOS: + +``` +% $ANDROID_HOME/ndk/20.0.5594570/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android-addr2line -e ~/Downloads/libflutter.so +``` +_The tool is now awaiting your input, so let's feed it a memory address_: +``` +0x00000000006a26ec +/b/s/w/ir/cache/builder/src/out/android_release_arm64/../../third_party/dart/runtime/vm/dart_api_impl.cc:1366 +``` +This revealed address `0x00000000006a26ec` to correspond with `dart_api_impl.cc:1366`. + +#### Making sure you got the right libflutter.so + +The build system sets a build id for each `libflutter.so` file. In the tombstones, you would see the ID like so: + +``` +#00 pc 000000000062d6e0 /data/app/com.app-tARy3eLH2Y-QN8J0d0WFog==/lib/arm64/libflutter.so!libflutter.so (offset 0x270000) (BuildId: 34ad5bdf0830d77a) +``` + +This equals to a build id of **34ad5bdf0830d77a**. The `libflutter.so` debug files downloaded as shown above could be verified using the `file` command: + +``` +% file ~/Downloads/libflutter.so +/Users/user/Downloads/libflutter.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[xxHash]=34ad5bdf0830d77a, with debug_info, not stripped +``` + +Ensure the build IDs match, else you will not be able to symbolicate. + +#### Expanding Git Revisions + +Go to a commit page with the short commit as the last fragment of the URL: +(e.g. https://github.com/flutter/flutter/commit/9cb914df1 or https://github.com/flutter/engine/commit/2a13567) and then find the full revision on the page. + + +#### Symbolicating local builds + +If you have made your own builds, you can use ndk-stack directly: + +```bash +# dev/engine is where your engine's .gclient file is +# android_debug_unopt is whatever build of your engine you are using +adb logcat | ~/dev/engine/src/third_party/android_tools/ndk/prebuilt/linux-x86_64/bin/ndk-stack -sym ~/dev/engine/src/out/android_debug_unopt +``` + +### iOS + +The dSYM file for `Flutter.framework` (which is the Flutter Engine) for ios-release builds can be downloaded from Google Cloud Storage. Follow the steps from the Android section in this guide, but in the last step use a download url following this schema: `https://storage.cloud.google.com/flutter_infra_release/flutter/38a646e14cc25f5a56a989c6a5787bf74e0ea386/ios-release/Flutter.dSYM.zip` (replace the engine hash with your hash). + +#### Symbolicating local builds + +If you built your local engine in debug or profile Dart modes, the framework's dylib's symbols aren't stripped and are available by default. + +#### Crashes in Dart AOT code + +If the crash is in AOT Dart code (in `--release` or `--profile` builds) on iOS, and you can build your own engine, these steps will be helpful for the VM team to fix the bug: + +* Prepare a reduced test case. +* Compile the engine in profile mode and disable optimizations for symbolicated traces. + * `sky/tools/gn --ios --unopt --runtime-mode profile; ninja -C out/ios_profile_unopt -j800`. +* Launch the application via the Xcode project and make it crash in the debugger. +* File a bug on [dart-lang/sdk](https://github.com/dart-lang/sdk/issues/new). +* Dump the register state and paste it into the bug. + * In `lldb`, `register read`. +* Copy the backtrace and paste it into the bug. + * In `lldb`, `thread backtrace`. Assumes you are on the thread that crashed. If not, `thread select n`. +* Disassemble the last frame and paste it into the bug. + * In `lldb`, `frame select 0` then `disassemble --frame`. +* Disassemble using the `gen_snapshot` and paste the function into the bug for more detailed information. + * In the backtrace, look for the name of the precompiled function that caused the crash. + * Open `SnapshotterInvoke` from Xcode and to the `RunCommand ... Snapshotter` call, add the `--disassemble` flags. + * Modify the `RunCommand` function to dump to a file. + * Build again. The results should end up in the file. + * Look for the function name (by substring match) in this file and copy out that information to the bug. +* Ping someone on dart-lang/sdk. + + +### Android Local Engine Builds + +When running with a local engine build, the symbolization workflow can be cumbersome and unecessary. Instead, it is possible to build the engine itself with symbols and disable Gradle's automatic symbol stripping. This is also required to see symbol names in Android Studio CPU profiles. + +1. In the android engine configuration, provide a --no-stripped argument to gn. For example: `gn --android --android-cpu=arm64 --unopt --no-stripped` + +2. In the flutter project file `android/app/build.gradle`, add the following line under the `android` block: + +``` + packagingOptions{ + doNotStrip "**/*.so" + } + +``` diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Custom-Flutter-Engine-Embedders.md b/novelforge-project/agent-workspace/flutter/docs/engine/Custom-Flutter-Engine-Embedders.md new file mode 100644 index 0000000000000000000000000000000000000000..c4e965b9b0804166fa1affb69349bca89cd7c3b4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Custom-Flutter-Engine-Embedders.md @@ -0,0 +1,23 @@ +The Flutter Engine is window toolkit agnostic. If you want to build Flutter embedders on one of the platforms not supported out of the box (i.e, iOS & Android), this page is for you. + +This is a very low level API and is not suitable for beginners. + +* The window toolkit agnostic component of the Flutter engine is available as a dynamic library in the `flutter_engine` GN target in [`//shell/platform/embedder:flutter_engine`](https://github.com/flutter/engine/blob/080fbcb1759e5916f0d6cdcdfd945c053320e6b3/shell/platform/embedder/BUILD.gn#L51). +* That target must be built as part of the host GN build. Such builds are already available for desktop Linux & Mac. If you want to target another platform, you will have to configure a GN toolchain for the same. +* You may build this target yourself or download the same artifacts uploaded by the buildbots on each commit. + * The Mac buildbot uploads the artifacts to a known location. Access it here [`https://storage.googleapis.com/flutter_infra_release/flutter/FLUTTER_ENGINE/darwin-x64/FlutterEmbedder.framework.zip`](https://storage.googleapis.com/flutter_infra_release/flutter/080fbcb1759e5916f0d6cdcdfd945c053320e6b3/darwin-x64/FlutterEmbedder.framework.zip). + * Replace `FLUTTER_ENGINE` with the SHA of the Flutter engine you wish to use. + * The Linux buildbot uploads the artifacts to a known location. Access it here [`https://storage.googleapis.com/flutter_infra_release/flutter/FLUTTER_ENGINE/linux-x64/linux-x64-embedder`](https://storage.googleapis.com/flutter_infra_release/flutter/080fbcb1759e5916f0d6cdcdfd945c053320e6b3/linux-x64/linux-x64-embedder) + * Replace `FLUTTER_ENGINE` with the SHA of the Flutter engine you wish to use. + * The binary is not stripped and contains debug information. Embedders are advised to strip the binary before deployment. + * The Windows buildbot uploads the artifacts to a known location. Access it here [`https://storage.googleapis.com/flutter_infra_release/flutter/FLUTTER_ENGINE/windows-x64/windows-x64-embedder.zip`](https://storage.googleapis.com/flutter_infra_release/flutter/080fbcb1759e5916f0d6cdcdfd945c053320e6b3/windows-x64/windows-x64-embedder.zip) + * Replace `FLUTTER_ENGINE` with the SHA of the Flutter engine you wish to use. + * You can also obtain that SHA from the [`engine.version`](https://github.com/flutter/flutter/blob/main/bin/internal/engine.version) file in your Flutter framework checkout. This allows you to exactly match the engine version with the Flutter framework version. +* The Flutter engine API has no platform specific dependencies, has a stable ABI and is available in its entirety in a [single C header file available here](https://github.com/flutter/engine/blob/main/shell/platform/embedder/embedder.h). +* To use as a guide, you may use [this example embedder that uses GLFW](https://github.com/flutter/engine/blob/main/examples/glfw/FlutterEmbedderGLFW.cc) for window management and rendering. + +While we do not object to teams creating custom builds of the Flutter engine for their purposes, we do not support this configuration. Not supporting it means that we do not commit to any timelines for fixing bugs that may come up in such a configuration, even for customers for which we would usually be willing to make commitments (see the [Issue Hygiene](../contributing/issue_hygiene/README.md) page). It also means that we encourage teams to view such configurations as short-term solutions only and encourage teams to transition away from such configurations at the earliest possible opportunity. + +We do not expect custom engine builds to be long-term sustainable. They are not supported on any platform where we plan to be the publisher of a Flutter runtime distinct from the applications that run on the runtime, and they require significant effort to port to our new target platforms such as Web and desktop. There is also an expensive maintenance burden (for example, if we add new features, a custom engine build would need to be updated to support that feature). + +We would generally recommend using custom engine builds only when porting Flutter to platforms that are not supported out of the box, for example in embedded hardware. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Custom-Flutter-Engine-Embedding-in-AOT-Mode.md b/novelforge-project/agent-workspace/flutter/docs/engine/Custom-Flutter-Engine-Embedding-in-AOT-Mode.md new file mode 100644 index 0000000000000000000000000000000000000000..64f181c9a9cc14a97070b4b4725f3d4cba31f952 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Custom-Flutter-Engine-Embedding-in-AOT-Mode.md @@ -0,0 +1,132 @@ +This document is intended for developers of third party embedders who wish to package and ship their Flutter applications for AOT mode operation. A third party embedder uses [the stable C embedder API](https://github.com/flutter/engine/blob/869d9f528503778be1e5ab27ba53502f0cb20de2/shell/platform/embedder/embedder.h) to embed Flutter applications on their platform. + +## Building an AOT Flutter Engine + +By default, the Flutter engine packaged for embedders assumes that the mode of operation is JIT. An engine configured for JIT packages a VM that is incompatible with AOT snapshots. Build an AOT engine using the following invocation. This is also the invocation where custom target, sysroot and toolchain selection flags can be specified. + +``` +./flutter/tools/gn --runtime-mode release +``` + +**Note:** Throughout this document, the `gn` flags mentioned work fine with other non-runtime mode or configuration selection options (stuff like `--no-lto`,` --unoptimized`, etc..). Such options are particularly useful during development and their use is highly encouraged. + +This will produce a Flutter engine configured for AOT mode targeting the host. Note that we are repurposing Flutter’s “release” mode policy to prepare an AOT engine. The application of this policy to third party embedders is optional and a decision the authors of such embedders need to make themselves. + +## Building the Architecture Specific `gen_snapshot` + +The binary that converts Dart code to architecture specific AOT instructions is called `gen_snapshot`. A successful invocation of `gen_snapshot` should produce four binary blobs. These are the Dart VM heap and instructions snapshots as well as the isolate heap and instruction snapshots. Refer to the [wiki article on engine operation in AOT mode](Flutter-engine-operation-in-AOT-Mode.md) for the purpose of these snapshots. + +A specific `gen_snapshot` can only produce AOT instructions for one target architecture. To verify that the `gen_snapshot` you have is producing instructions for the architecture you care about, invoke the same with the `--version` flag. It should produce something like the following. + +``` +Dart VM version: 2.1.1-dev.2.0.flutter-ac1bf656c4 (Thu Jan 17 16:55:19 2019 +0000) on "macos_x64" +``` + +The final string denotes the host/target pair. In the case of the example above, the host is `macos` and the target `x64`. An example of a `gen_snapshot` that produces instructions for `aarch64` would read “macos_simarm64” (the author is on MacOS X). + +It is easiest to just pick the supported Flutter target whose architecture is closest to the one of the embedder. For example, if the target is `armv7`, the following invocation will generate a `gen_snapshot` that is suitably configured for that target. + +``` +./flutter/tools/gn --android --runtime-mode release +``` + +Another useful invocation for aarch64 AOT targeted `gen_snapshot` is: + +``` +./flutter/tools/gn --android --runtime-mode release --android-cpu arm64 +``` + +**Important:** Calling convention and alignment must be the same (in addition to just the target architecture) for the AOT instructions generated by `gen_snapshot` and the target. Repurposing Flutter’s build targets makes sure that all those subtleties are taken care of. But it is still up to the embedder to pick and match the AOT instructions. For example, the `--android` --android-cpu arm64`configured`gen_snapshot`will not generate completely compatible instructions for iOS on`aarch64` (even though the target architectures are the same). A mismatch between the snapshot's architecture/ABI and the device's architecture/ABI will be detected when the snapshot is loaded and clearly reported. + +## Building the AOT Snapshot + +There are two separate steps involved in the generation of AOT instructions for the target architecture. First, a target architecture agnostic kernel snapshot (~AST) of the Flutter Dart application needs to be generated. Then, this snapshot is given to `gen_snaphost` which generates the AOT snapshot in the form of the four blobs (~machine code) listed above (and detailed on the wiki page). + +### The Short and Easy Way + +Both iOS and Android AOT modes need to do this step when they build their artifacts. So, if the embedder targets are similar, the workflow supported by the Flutter tooling can be repurposed for custom AOT embedders. For example, in the case of `aarch64` AOT instructions for Android like targets, the following instructions will generated the four AOT blobs in the intermediates. + +```bash +flutter --local-engine --local-engine-host build aot --target-platform android-arm64 --release +``` + +**Note:** The `--local-engine` (and `--local-engine-host`) flag is technically optional. However, not specifying the flag will make the tools pick the released version on of the Flutter engine. This version may contain subtle version mismatches with the engine you are using to prepare the `gen_snapshot` binary. So it is safer to just make sure the version are the same. +See [running with a local engine](Debugging-the-engine.md#running-a-flutter-app-with-a-local-engine) for more details. + +The result of the invocation will be the generation of the following binary blobs in the `build/aot directory`: + +- `vm_snapshot_data`: The VM snapshot data. +- `vm_snapshot_instr`: The VM snapshot instructions. +- `isolate_snapshot_data`: The Isolate snapshot data. +- `isolate_snapshot_instr`: The isolate snapshot instructions. + +### The Hard Way + +To generate the four AOT snapshot blobs directly, you will have to generate the kernel snapshot and then prepare the AOT snapshot manually. The exact flags to use are rather esoteric but self explanatory. And, when necessary, the `-v` flag can be passed to the `flutter build aot` instruction to dump the exact flags used by Flutter. These can then be modified as necessary for the target architecture. + +#### Generating the Kernel Snapshot + +The following invocation will generate a file called `kernel_snapshot.dill` in the build directory. Make sure you run `flutter packages get` in your project first to fetch all package dependencies. + +``` +$FLUTTER_ENGINE_OUT_DIR/dart \ + $FLUTTER_ENGINE_OUT_DIR/frontend_server.dart.snapshot \ + --sdk-root $FLUTTER_ENGINE_OUT_DIR/flutter_patched_sdk/ \ + --strong \ + --target=flutter \ + --aot \ + --tfa \ + -Ddart.vm.product=true \ + --packages .packages \ + --output-dill build/kernel_snapshot.dill \ + package:flutter_gallery/main.dart +``` + +#### Generating the AOT Snapshot + +Once the `kernel_snapshot.dill` file has been obtained, `gen_snapshot` can be invoked with the following arguments to generate the four blobs that form the AOT snapshot. + +``` +$FLUTTER_ENGINE_OUT_DIR/gen_snapshot \ + --causal_async_stacks \ + --packages=.packages \ + --deterministic \ + --snapshot_kind=app-aot-blobs \ + --vm_snapshot_data=build/vm_snapshot_data \ + --isolate_snapshot_data=build/isolate_snapshot_data \ + --vm_snapshot_instructions=build/vm_snapshot_instr \ + --isolate_snapshot_instructions=build/isolate_snapshot_instr \ + --no-sim-use-hardfp \ + --no-use-integer-division \ + build/kernel_snapshot.dill +``` + +**Note:** The `-no*` flags in the invocation above may not be necessary for all targets and can be skipped. As always, when in doubt, call `flutter build aot -v` after selecting the most similar target and see the flags used by Flutter. + +## Packaging the AOT Blobs + +The four AOT blobs need to be shipped with the application and are necessary for the `FlutterEngineRun` call. Embedders have to make a decision about how best to package and ship these blobs to the target. + +On the target at runtime, these blobs need to be mapped into the address space with the following restrictions: + +- `vm_snapshot_data`: Read-Only. +- `vm_snapshot_instr`: Read-Execute. +- `isolate_snapshot_data`: Read-Only. +- `isolate_snapshot_instr`: Read-Execute. + +The responsibility of keeping the mappings alive is upto the embedder. The mappings must be maintained as long as the `FlutterEngine` is running and alive. + +## Configuring the Engine for AOT Operation + +In the `FlutterProjectArgs` struct given the `FlutterEngineRun` call, provide the following options: + +- `vm_snapshot_data`: Pointer to the read-only VM snapshot mapping. +- `vm_snapshot_data_size`: Size of the VM snapshot mapping. +- `vm_snapshot_instructions`: Pointer to the read-execute VM instructions mapping. +- `vm_snapshot_instructions_size`: Size of the VM instructions mapping. +- `isolate_snapshot_data`: Pointer to the read-only isolate snapshot mapping. +- `isolate_snapshot_data_size`: Size of the isolate snapshot mapping. +- `isolate_snapshot_instructions`: Pointer to the read-execute isolate instructions mapping. +- `isolate_snapshot_instructions_size`: Size of the isolate instructions mapping. + +Flutter Engine is now running in AOT mode! diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Debugging-the-engine.md b/novelforge-project/agent-workspace/flutter/docs/engine/Debugging-the-engine.md new file mode 100644 index 0000000000000000000000000000000000000000..7dad334547035416a81059b0d24adaeb1884c866 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Debugging-the-engine.md @@ -0,0 +1,147 @@ +This page has some hints about debugging the engine. + +See also [Crashes](Crashes.md) for advice on handling engine crashes (specifically around obtaining stack traces, and reporting crashes in AOT Dart code). + +## Running a Flutter app with a local engine + +First, make sure the appropriate version of the engine is built (see [Compiling the engine](./contributing/Compiling-the-engine.md)). + +### Using the Flutter tool + +Run your Flutter app with: + +```bash +flutter run --local-engine=XXXX --local-engine-host=YYYY +``` + +to run an app with the local engine where `XXXX` should be replaced with the version you wish to use. For example, use `--local-engine=android_debug_unopt --local-engine-host=host_debug_unopt` to run a debug android engine or `--local-engine=ios_debug_sim_unopt --local-engine-host=host_debug_unopt` to run a debug iOS simulator engine. + +> 💡 **TIP**: When developing on a Mac with ARM (M CPU), use `--local-engine-host=host_debug_unopt_arm64`. +> +> You can continue to use `host_debug_unopt` (required for Intel Macs), but the engine will be run under Rosetta +> which may be slower. See [Developing with Flutter on Apple Silicon](../platforms/desktop/macos/Developing-with-Flutter-on-Apple-Silicon.md) +> for more information. + + +It is important to always have a `host_XXXX` version of the engine built when using a local engine since Flutter uses the host build's version of Dart. + +### Using Visual Studio Code + +You will need to add a new [launch configuration](https://code.visualstudio.com/docs/editor/debugging#_launch-configurations) in the `launch.json` file: + +```json +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Launch (local engine)", + "request": "launch", + "type": "dart", + "args": ["--local-engine", "XXX", "--local-engine-host", "YYY"] + } + + // Other profiles below.. + ] +} +``` + +## Bisecting a roll failure + +If the engine roll is failing (see [Autorollers](../infra/Autorollers.md)), you can use `git bisect` on the engine repo to track down the offending commit, using the `--local-engine` and `--local-engine-host` arguments as described above to run the failing framework test with each version of the engine. + +## Tracing OpenGL calls in Skia + +All OpenGL calls in Skia are guarded by either the `GR_GL_CALL_NOERRCHECK` or `GR_GL_CALL_RET_NOERRCHECK` macros. Trace events may be added in these macros to trace all GL calls made by Skia, for example [in a patch like this](https://gist.github.com/chinmaygarde/607eb86d5447615b9cf2804a4f8fb1ce). + +Due to the number of events traced to the timeline, the trace buffer may be filled up very quickly. Unless you want to see only the traces for the past few frames, use an endless trace buffer (`flutter run --endless-trace-buffer` turns on an endless trace buffer). + +Also, make sure to run your application with the `--trace-skia` flag. + +## Debugging iOS builds with Xcode + +Building with `flutter --local-engine` will set a `LOCAL_ENGINE` Xcode build setting in your Flutter application's `ios/Flutter/Generated.xcconfig` file. This will be set until you run `flutter run` again with either a different `--local-engine` option, or with none at all (which will unset it). + +You can speed up your workflow by adding the `--config-only` flag to set up the Xcode build settings and plugins, but not compile the app. For example: + +```bash +flutter build ios --local-engine ios_debug_unopt --local-engine-host host_debug_unopt --config-only +``` + +To start debugging, open your Flutter app `ios/Runner.xcworkspace` file in Xcode. Ensure **Product > Scheme > Edit Scheme > Run > Build Configuration** matches your engine runtime mode (defaults to `Debug`). + +Product > Scheme > Edit Scheme > Run > Build Configuration + +Add an engine symbol breakpoint via **Debug > Breakpoints > Create Symbolic Breakpoint...**. The **Symbol** field should be the engine symbol you're interested in, like `-[FlutterEngine runWithEntrypoint:]` (note the `-[` prefix has no space). + +You can also set a breakpoint directly with [lldb](https://lldb.llvm.org/tutorial.html) by expanding **Flutter > Runner** in the Runner Project Navigator. Put a breakpoint in `AppDelegate.swift`'s `application(didFinishLaunchingWithOptions:)` (Swift project) or `main.m`'s `main()` (Objective-C project) and start the application by clicking the Run button (CMD + R). Then, set your desired breakpoint in the engine in `lldb` via `breakpoint set -...`. + +## Debugging Android builds with gdb + +See https://github.com/flutter/engine/blob/main/sky/tools/flutter_gdb#L13 + +## Debugging native engine code on Android with Android Studio + +1. Build the local engine with the `--no-stripped` flag. +2. Decide on a Flutter app that you with to debug and run it with `flutter run` and the local engine flags. i.e.: `--debug --local-engine-src-path path/to/my/engine/src --local-engine=android_debug_unopt_arm64` +3. Open Android Studio and use `File > Profile or Debug APK`. The location of the debug build APK should be `build/app/outputs/apk/debug/app-debug.apk` under the Flutter app project. +4. To attach the debugger, use `Run > Attach Debugger to Android Process`. For "Use Android Debugger Settings from" choose `[Use default settings]`, and for "Debug Type" choose `Native Only`. +5. Once attached, you can use Android Studio to open local engine C++ source files and set breakpoints. + +## Debugging Windows builds with Visual Studio + +Compiling the engine creates a Visual Studio solution file. You can use it to debug the engine: + +1. Launch your Flutter app using a locally built engine `flutter run -d windows --local-engine host_debug_unopt --local-engine-host host_debug_unopt` +2. Using Visual Studio, open the engine's solution file `.\out\host_debug_unopt\all.sln` +3. Open `Debug` > `Attach to Process...` (or press `CTRL+ALT+P`) +4. Choose your Flutter app using either `Select Window`, or, the list of available processes. +5. Press the `Attach` button + +Building a Flutter app also creates a Visual Studio solution file. You can use it to debug the +engine, your app's runner, and your app's plugins: + +1. Build your Flutter app using a locally built engine using `flutter build windows --debug --local-engine host_debug_unopt --local-engine-host host_debug_unopt` +2. Using Visual Studio, open the Flutter app's `.\build\windows\.sln` +3. In the `Solution Explorer` pane, right click the project whose name matches your app, and select `Set as Startup Project` + + ![Set as Startup Project example](https://user-images.githubusercontent.com/737941/215009513-d31c59fd-1f54-44d9-a702-6dd3fdf71492.png) + +4. Now run your app by pressing `F5` or `DEBUG` > `Start Debugging`. This will launch your app with Visual Studio's debugger attached. + +Read this guide to [learn how to debug C++ using Visual Studio](https://learn.microsoft.com/visualstudio/debugger/getting-started-with-the-debugger-cpp?view=vs-2022). + +## Debugging with gdb on Linux + +Once you have built the engine, you'll find the unstripped libraries in `out/host_debug_unopt/lib.unstripped`, and the executables in `out/host_debug_unopt/exe.unstripped`. + +So, for instance, to run the unit tests under the debugger you would execute: + +```shell +flutter/tools/gn --runtime-mode=debug --unoptimized +ninja -C out/host_debug_unopt +gdb out/host_debug_unopt/exe.unstripped/flutter_linux_unittests +``` + +And then debug the test normally using GDB commands. + +To debug a Flutter app using GDB, the stripped flutter engine GTK library in the built application needs to be replaced with the unstripped one in the engine build output directory. + +First, in your Flutter project, build your Flutter app using the local engine: + +```shell +flutter build linux --debug --local-engine=host_debug_unopt --local-engine-host=host_debug_unopt lib/main.dart +``` + +Then, replace the library in your Flutter application's build directory: `build/linux/x64/debug/bundle/lib/libflutter_linux_gtk.so` with a copy or symbolic link to the engine build's output file `out/host_debug_unopt/lib.unstripped/libflutter_linux_gtk.so`. + +Then you can open it in the debugger with: + +```shell +gdb build/linux/x64/debug/bundle/your_app_name +``` + +Note that this won't help you debug the Dart portion of the app: this is just for debugging the engine code. If you need to simultaneously debug the Dart portion, you can connect to the observatory port given when you run the app in `gdb`. + +## Logging in the engine + +Flutter tool will by default parse out any non-error output from the engine. Error logs will be displayed. Logging is handled though the FML library's `logging.h`. diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Engine-disk-footprint.md b/novelforge-project/agent-workspace/flutter/docs/engine/Engine-disk-footprint.md new file mode 100644 index 0000000000000000000000000000000000000000..0ce647128c755cd322533b220f9fcd53d8a0aec5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Engine-disk-footprint.md @@ -0,0 +1,33 @@ +## Treemaps + +For each commit to [flutter/engine](https://github.com/flutter/engine) the Chromebots generate treemaps illustrating the sizes of the individual components within release builds of `libflutter.so`. The treemap is uploaded to Google Cloud Storage and linked from the [LUCI](https://ci.chromium.org/p/flutter/g/engine/console) console: Select a "Linux aot" build and search for "Open Treemap". + +Alternatively, a link to a treemap can be constructed as follows: + +`https://storage.googleapis.com/flutter_infra_release/flutter///sizes/index.html` where: +* `` is the git hash from [flutter/engine](https://github.com/flutter/engine) for which you want the treemap, and +* `` can be any android release build, e.g. `android-arm-release` or `android-arm64-release`. + +## Benchmarks + +In [devicelab](https://github.com/flutter/flutter/tree/main/dev/devicelab) we run various benchmarks to track the APK/IPA sizes and various (engine) artifacts contained within. These benchmarks run for every commit to [flutter/flutter](https://github.com/flutter/flutter) and are visible on our [build dashboard](https://flutter-dashboard.appspot.com/). The most relevant benchmarks for engine size are: + +* APK/IPA size of Flutter Gallery + * Android: `flutter_gallery_android__compile/release_size_bytes` + * iOS: `flutter_gallery_ios__compile/release_size_bytes` +* APK/IPA size of minimal hello_world app + * Android: `hello_world_android__compile/release_size_bytes` + * iOS: `hello_world_ios__compile/release_size_bytes` +* Size of bundled `icudtl.dat` + * Compressed in APK: `hello_world_android__compile/icudtl_compressed_bytes` + * Uncompressed: `hello_world_android__compile/icudtl_uncompressed_bytes` +* Size of bundled `libflutter.so` (release mode) + * Compressed in APK: `hello_world_android__compile/libflutter_compressed_bytes` + * Uncompressed: `hello_world_android__compile/libflutter_uncompressed_bytes` +* Size of VM & isolate snapshots (data and instructions) + * Compressed in APK: `hello_world_android__compile/snapshot_compressed_bytes` + * Uncompressed: `hello_world_android__compile/snapshot_uncompressed_bytes` + +## Comparing AOT Snapshot Sizes + +A detailed comparison of AOT snapshot sizes can be performed using the [instructions documented here](./benchmarks/Comparing-AOT-Snapshot-Sizes.md). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Engine-specific-Service-Protocol-extensions.md b/novelforge-project/agent-workspace/flutter/docs/engine/Engine-specific-Service-Protocol-extensions.md new file mode 100644 index 0000000000000000000000000000000000000000..73e5b28fcd623ec4e26928f2e217949cbc8be263 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Engine-specific-Service-Protocol-extensions.md @@ -0,0 +1,203 @@ +The Flutter engine adds several extensions to the [Dart VM Service Protocol](https://github.com/dart-lang/sdk/blob/main/runtime/vm/service/service.md). The Flutter Engine specific extensions are documented here. Applications may also choose to register their [own extensions](https://api.dartlang.org/stable/1.24.3/dart-developer/registerExtension.html). + +## List views: `_flutter.listViews` + +Tooling requests this very early in the application lifecycle to ask for the details of the root isolate. + +No arguments. + +Response: + +```json +{ + "type": "FlutterViewList", + "views": [ + { + "type": "FlutterView", + "id": "_flutterView/0x1066096d8", + "isolate": { + "type": "@Isolate", + "fixedId": true, + "id": "isolates/453229818", + "name": "main.dart$main-453229818", + "number": 453229818 + } + } + ] +} +``` + +## Isolate Restart or Cold Reload: `_flutter.runInView` + +The IDE has requested (or the user pressed ‘R’ from the ‘flutter run’ interactive console) a cold reload. For example, this happens when the user presses the green play button. + +Used to "cold reload" a running application where the shell (along with the platform view and its rasterizer bindings) remains the same but the root isolate is torn down and restarted with the new configuration. Only used in the development workflow. + +The previous root isolate is killed and its identifier invalidated after this call. Callers can query the new isolate identifier using the `_flutter.listViews` method. + +Four arguments: + +``` +viewId = _flutterView/0x14ba08c68 +mainScript = /path/to/application/lib/main.dart +packagesFile = /path/to/application/.packages +assetDirectory = /path/to/application/build/flutter_assets +``` + +Response: + +```json +{ + "type": "Success", + "view": { + "type": "FlutterView", + "id": "_flutterView/0x104e0ab58", + "isolate": { + "type": "@Isolate", + "fixedId": true, + "id": "isolates/1056589762", + "name": "main.dart$main-1056589762", + "number": 1056589762 + } + } +} +``` + +The object in the **view** key is constructed in the same way as the views in the **List Views** method. + + +## Flush UI thread tasks: `_flutter.flushUIThreadTasks` + +Does nothing but waits for all pending tasks on the UI thread to be completed before returning success to the service protocol caller. + +No arguments. + +Response: + +```json +{"type": "Success"} +``` + +## Get screenshot of view as PNG: `_flutter.screenshot` + +Get the screenshot as PNG of a random Flutter view on the device. The screenshot data will be base64 encoded in the response body. + +No arguments. + +Response: + +```json +{ + "type": "Screenshot", + "screenshot": "" +} +``` + +## Get screenshot of view as Skia picture: `_flutter.screenshotSkp` + +Get the Skia SKP of a random Flutter view on the device. The SKP data will be base64 encoded in the response body. + +No arguments. + +Response: + +```json +{ + "type": "ScreenshotSkp", + "skp": "" +} +``` + +## Update asset bundle path: `_flutter.setAssetBundlePath` + +In case of a hot-reload, the service protocol handles source code updates. However, there may be changes to assets. The DevFS updates assets in an separate directory that needs to be used by the engine. + +Two arguments: + +``` +viewId = _flutterView/0x15bf057f8 +assetDirectory = /path/to/flutter_assets +``` + +Response: + +```json +{ + "type": "Success", + "view": { + "type": "FlutterView", + "id": "_flutterView/0x104e0ab58", + "isolate": { + "type": "@Isolate", + "fixedId": true, + "id": "isolates/1056589762", + "name": "main.dart$main-1056589762", + "number": 1056589762 + } + } +} +``` + +The object in the **view** key is constructed in the same way as the views in the **List Views** method. + +## Get the display refresh rate: `_flutter.getDisplayRefreshRate` + +Get the display refresh rate of the actual device that runs the Flutter view. For example, most devices would return an fps of 60, while iPad Pro would return an fps of 120. + +One argument: + +``` +viewId = _flutterView/0x15bf057f8 +``` + +Response: + +```json +{ + "type": "DisplayRefreshRate", + "fps": 60.0 +} +``` + +## Get Skia SkSL shader artifacts: `_flutter.getSkSLs` + +Get Skia SkSL shader artifacts from an actual device that runs the Flutter view. Such artifacts can be used to warm up shader compilations and avoid jank. One has to first tell Flutter to prepare SkSL shaders by `flutter run --cache-sksl` or `flutter drive --cache-sksl`, and trigger some shader compilations by going through some animations/transitions. Otherwise, this service protocol extension may return an empty set of SkSLs. + +The key of the returned `SkSLs` map will be Base32 encoded. It should be used directly as the filename of the shader artifact. The value in that map is the Base64 encoded SkSL shader. Once decoded, it should be the content of the shader artifact file. + +One argument: + +``` +viewId = _flutterView/0x15bf057f8 +``` + +Response: + +```json +{ + "type": "GetSkSLs", + "SkSLs": { + "CAZAAAACAAAAAAAAAAABGAABAAOAAFAADQAAGAAQABSQAAAAAAAAAAAAAABAAAAAEAAGGAA": "eQ==" + } +} +``` + +## Estimate raster cache memory usage: `_flutter.estimateRasterCacheMemory` + +Estimate the memory usage of both picture and layer raster cache. For each picture or layer cached, there is a rasterized `SkImage` of that picture or layer to speed up future draws. Only `SkImage`'s memory usage is counted as other objects in the cache system are often much smaller compared to `SkImage`. Function `SkImageInfo::computeMinByteSize` is used to estimate the `SkImage` memory usage. + +One argument + + ``` +viewId = _flutterView/0x15bf057f8 +``` + +Response: + +```json +{ + "type": "EstimateRasterCacheMemory", + "layerBytes": 40000, + "pictureBytes": 400 +} +``` diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Flutter's-modes.md b/novelforge-project/agent-workspace/flutter/docs/engine/Flutter's-modes.md new file mode 100644 index 0000000000000000000000000000000000000000..5300a72d573ff6de015bada13fac82e23eaf479c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Flutter's-modes.md @@ -0,0 +1,42 @@ +We aspire to reach a state where developers are able to use the following modes for running Flutter code. Our tools should not expose any other combinations of features or modes. Each mode corresponds to a separate build of the engine that we provide. + +1. **Debug** mode on device (including simulators, emulators): Turns on all the assertions in the world, includes all debugging information, enables all the debugger aids (e.g. observatory) and service extensions. Optimizes for fast develop/run cycles. Does not optimize for execution speed, binary size, or deployment. Used by `flutter run`. Built with `sky/tools/gn --android` or `sky/tools/gn --ios`. Also sometimes called "**checked** mode" or "**slow** mode". + +2. **Release** mode on device (excluding simulators, emulators): Turns off all assertions, strips as much debugging information as possible, turns off all the debugger tools. Optimizes for fast startup, fast execution, small package sizes. Disables any debugging aids. Disables service extensions. Intended for deployment to end-users. Used by `flutter run --release`. Built with `sky/tools/gn --android --runtime-mode=release` or `sky/tools/gn --ios --runtime-mode=release`. + +3. **Profile** mode on device (excluding simulators, emulators): Same as release mode except that profile-mode service extensions (like the one that turns on the performance overlay) is enabled, and tracing is enabled, as well as the minimum required to support using the tracing information (e.g. observatory can probably connect to the process). Used by `flutter run --profile`. Built with `sky/tools/gn --android --runtime-mode=profile` or `sky/tools/gn --ios --runtime-mode=profile`. Not available on simulators or emulators because profiling on simulators is not representative of real performance. + +4. Headless **test** mode on desktop: Same as debug mode except headless and for desktop platforms. Used by `flutter test`. Built with `sky/tools/gn`. + +In addition, for our purposes during development, each of the above should be able to be built in two modes: optimized, which is what end-developers use, and unoptimized, which is what we would use when debugging the engine. Optimized is the default, unoptimized engines are built by adding `--unoptimized` to the arguments. + + +### Artifact differences + +Debug mode produces a script snapshot, which is basically tokenized sources. Comments and whitespace are missing, literals are canonicalized. There is no machine code, tree-shaking or obfuscation. + +Profile and release modes produce app-aot snapshots, either as dylibs (iOS and Fuchsia) or 4-tuples of blobs (Android). Both include machine code for all the compiled functions, code metadata, method dictionaries, class and library structures, types, etc. The machine code is fully position-independent. The dylib additionally has DWARF debug info such as function names and source positions. There is tree-shaking. Obfuscation is opt-in. + +### Matrix + +The following axes, as described above, exist: + +* debug, release, profile +* opt, unopt +* iOS, Android, macOS, Linux, Windows + +In addition, some versions can select alternative graphics backends: + +* iOS can choose between: OpenGL, software +* Android can choose between: Vulkan, OpenGL, software +* macOS can choose between, OpenGL, software, headless (debug only) +* Linux can choose between: OpenGL, software, headless (debug only) +* Windows can choose between: OpenGL, software, headless (debug only) + +Separate from all the above, Fuchsia has the following modes: + +* AOT, JIT, interpreted DBC +* Observatory present, observatory absent +* opt, unopt + +In total therefore there are 3×2×(2+3+2+2+2) + 1×2×3 + 3×2×2 modes, which is 84 modes. diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Flutter-engine-operation-in-AOT-Mode.md b/novelforge-project/agent-workspace/flutter/docs/engine/Flutter-engine-operation-in-AOT-Mode.md new file mode 100644 index 0000000000000000000000000000000000000000..e232ebf287419486b6c701f5bd2ea27586de4088 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Flutter-engine-operation-in-AOT-Mode.md @@ -0,0 +1,75 @@ +# Overview + +The Flutter Engine in AOT mode requires four artifacts to run any given isolate. These are: + +* **Dart VM Snapshot** + * Represents the initial state of the Dart heap shared between isolates. + * Helps launch Dart isolates faster. + * Does not contain any isolate specific information. + * Mostly predefined Dart strings used by the VM + * Should live in the data segment. + * From the VM's perspective, this just needs to be loaded in memory with READ permissions and does not need WRITE or EXECUTE permissions. Practically this means it should end up in rodata when putting the snapshot in a shared library. +* **Dart VM Instructions** + * Contains AOT instructions for common routines shared between all Dart isolates in the VM. + * This snapshot is typically extremely small and mostly contains stubs. + * Must live in the text segment. +* **Isolate Snapshot** + * Represents the initial state of the Dart heap and includes isolate specific information. + * Along with the VM snapshot, helps in faster launches of the specific isolate. + * Should live in the data segment. +* **Isolate Instructions** + * Contains the AOT code that is executed by the Dart isolate. + * Must live in the text segment. + +The VM snapshot and instructions can be shared between all isolates. These must be available during the initialization of the Dart VM. The Dart VM is initialized when the first Flutter view initializes an instance of the Flutter shell. The Flutter shell manages thread safe initialization of the Dart VM. Once the Dart VM is initialized, multiple instances of the Flutter view reference the same VM to run their isolates. There can only be one VM running in the process at any given time. + +Given this configuration, launching each root isolate (for a Flutter application) requires two artifacts along with two other artifacts that are shared between all the other isolates. + +Isolates launched by Dart code (e.g., Isolate.spawn) inherit the snapshots of their parents. + +# Snapshot Generation + +These artifacts on all platforms are generated by the same binary on the host. This binary is shipped with Flutter tools and is called `gen_snapshot`. The way these artifacts are packed and referenced on the device differs however. + +## iOS Configuration + +`gen_snapshot` is invoked on the host by Xcode to generate the four binary blobs for each artifact. + +Using the native toolchain in Xcode, these artifacts are compiled into a framework bundle that is packaged into the application. This framework is typically called `App.framework` and is present in the `Frameworks/` folder of the application bundle. The name of the framework is configurable and if the embedder wishes to name it anything other than `App.framework`, the embedder can choose a custom name and specify the same in the `FLTLibraryPath` `Info.plist` key for the main application bundle. + +The Flutter engine, itself in a Framework called `Flutter.framework` will dynamically open the resolved application framework and look for four specific symbols in that library. These symbols are called `kDartVmSnapshotData`, `kDartVmSnapshotInstructions`, `kDartIsolateSnapshotData` and `kDartIsolateSnapshotInstructions`. These refer to the four snapshots mentioned above. + +Once snapshot resolution is finalized, the Flutter engine initializes the VM and launched the isolates. + +This configuration was chosen because the Flutter engine is not able to mark pages as executable at runtime. Packaging the instruction in a binary makes sure all instructions are present in a separate dynamic library. This arrangement helps in isolate of code for a specific Flutter view’s root isolate. + +## Android Configuration + +`gen_snapshot` is invoked by Gradle to generate the four binary blobs for each artifact. + +Gradle actually invokes `flutter build aot` under the hood to generate these artifacts. These binary artifacts are packaged into the APK directly. These artifacts are named `vm_snapshot_data`, `vm_snapshot_instr`, `isolate_snapshot_data` and `isolate_snapshot_instr`. They refer to the four snapshots mentioned above. + +The embedder may choose to put these artifacts in custom locations. In such cases, the embedder must place these artifacts in a directory and specify the location using the following 5 flags: + * `aot-snapshot-path`: Path to the directory in the APK assets containing the snapshot. + * `vm-snapshot-data`: Path to the VM snapshot in that directory. + * `vm-snapshot-instr`: Path to the VM instructions in that directory. + * `isolate-snapshot-data`: Path to the isolate snapshot in that directory. + * `isolate-snapshot-instr`: Path to the isolate instructions in that directory. + +Once the Flutter engine, itself packaged as a separate dynamic library called `libflutter.so`, resolves the locations of the required artifacts, it maps them in and makes sure the instructions are executable before launching the VM and isolate. + +The tooling on Android does not require the presence of the Android NDK because the engine can mark pages as executable at runtime. If the embedder wishes to package the snapshots into a single dynamic library (and make the configuration look like the one used on iOS), it can do so and specify the library to the engine via the flag `aot-shared-library-path`. A native toolchain is necessary on the host to achieve this. + +# Notes + +`gen_snapshot` can only generate AOT instructions for a specific architecture. For example, generating AOT instructions for `armv7`, `aarch64`, `i386` and `x86-64` requires four different `gen_snapshot` variants. + +The VM and isolate snapshot data is specific to the `gen_snapshot` variant used and must also be generated along with the AOT instructions. Embedders may not mix and match the AOT instructions and data snapshots from different `gen_snapshot` variants. All four artifacts must typically be generated at the same time. + +Using the current Flutter tools, only an `i386` `gen_snapshot` on the host can generate `armv7` AOT instructions and an `x86-64` `gen_snapshot` on the host can generate `aarch64` instructions. The mac builds take advantage of this quirk and `lipo` the two `gen_snapshot` variants and select the executable architecture correctly when generating AOT instructions for the target architecture. This can be inspected with the `lipo` tool on the host while analyzing the `gen_snapshot` binary. In reality, the word sizes of `gen_snapshot` on host and the engine running on the target must match. Theoretically, an `armv7` `gen_snapshot` running on a Raspberry Pi host could generate an AOT snapshot for `armv7` target. The tools don’t ship this configuration however. + +Packaging multiple Flutter AOT application in the same application bundle will currently result in redundant copies of the VM data and instructions. However, these buffers are extremely small. + +Flags to the Flutter engine are typically specified when the platform launches the underlying Flutter shell (platform agnostic way of interacting with the innards of the Flutter engine). This happens in `FlutterViewController` on iOS and `FlutterNativeView` in Java on Android. + +To list all the flags currently supported by the Flutter engine, embedders may locate the `flutter_tester` binary in the tools distribution and pass the `--help` flag to the same. All currently supported flags along with a short help blob will be dumped to the console. diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Image-Codecs-in-the-Flutter-Engine.md b/novelforge-project/agent-workspace/flutter/docs/engine/Image-Codecs-in-the-Flutter-Engine.md new file mode 100644 index 0000000000000000000000000000000000000000..4ea514f02e29c15bc0afe4c460ccd8acb7fa8144 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Image-Codecs-in-the-Flutter-Engine.md @@ -0,0 +1,11 @@ +# Image Codecs in the Flutter Engine + +Flutter has built-in support for a number of common codecs. Images in the supported formats can be decompressed by the Flutter Engine even if they are not supported by the underlying platform. + +However, each codec supported out-of-the-box by the Flutter Engine adds to the binary size of the engine. Unlike AOT compiled Dart code, this binary size increase cannot be tree shaken away. Every user of the Flutter application will be forced to download the codec irrespective of whether their Flutter applications actually decompress images of that type. Flutter users and developers are extremely sensitive to increases in binary size of the application. + +If the Flutter engine is unable to decompress specific images because it doesn’t support that codec, it will delegate responsibility of image decompression to the platform. This comes in handy if the platform has support for newer or less widely used codecs. The downside of course is that the application author will need to provide an alternative in case both the engine and platform don’t support a specific codec. + +If the application wishes to support a codec that isn’t supported by either the engine or the platform, it will have to ship the codec along with their application and expose its functionality via a plugin. This is more cumbersome but the current recommendation for applications for whom support for specific formats is table stakes. + +Speculatively adding and removing codecs into the Flutter engine may lead to fragmentation in the supported codecs across Flutter engine versions. But, if a format does become widely used, it strengthens the case for adding the codec to the engine in spite of the binary size increase. diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/JIT-Release-Modes.md b/novelforge-project/agent-workspace/flutter/docs/engine/JIT-Release-Modes.md new file mode 100644 index 0000000000000000000000000000000000000000..a6b991b7774a8f6dae0b5abbc1851de55cb5347d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/JIT-Release-Modes.md @@ -0,0 +1,15 @@ +Normally Flutter runs in JIT for faster compilation/debugging support in `debug` mode and AOT mode for better performance in `profile` and `release` mode. For platforms that Flutter cannot produce AOT artifacts for, such as Android x86 (32 bit), a JIT release build may be used instead. The advantage of this mode over a regular debug build is that it removes debugging support and disables assertions which makes the final artifact smaller and more performant, though less so than a full AOT build. + + +JIT release mode can be used with a local engine configuration. For example, to setup an Android x86 jit_release and host build you can use the GN command below. Both device and host artifacts need to be built, except in cases where they are the same such as the Desktop shells. + +```shell +./flutter/tools/gn --runtime-mode=jit_release --android --android-cpu=x86 +ninja -C out/android_jit_release_x86 +./flutter/tools/gn --runtime-mode=jit_release +ninja -C out/host_jit_release +``` + +This can be used with the flutter tool [via the `--local-engine`](Debugging-the-engine.md#running-a-flutter-app-with-a-local-engine) flag to produce a bundle containing the jit release artifacts using the `flutter assemble` command. By default, flutter.gradle does not know how to package this artifacts so it requires custom integration into a build pipeline. Nevertheless, the artifact structure should be identical to a debug build, but with asserts disabled and product mode enabled. + +jit_release is not supported on iOS devices. Applications built in JIT mode cannot be distributed on the Apple App Store. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Life-of-a-Flutter-Frame.md b/novelforge-project/agent-workspace/flutter/docs/engine/Life-of-a-Flutter-Frame.md new file mode 100644 index 0000000000000000000000000000000000000000..94ab02ef6915beb25167ca1bbb08483863f3ea4e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Life-of-a-Flutter-Frame.md @@ -0,0 +1,86 @@ +Flutter apps work by transforming the widget tree in an application to a render tree that describes how to graphically render the widgets onscreen, and animating in response to input events or the passage of time. We refer to a single still image within the sequence of images composing an animation as a frame, similar to a frame in a movie filmstrip. In the context of a complete Flutter application these are rendered into a `FlutterView` class which is typically an instance of a platform-specific view class like [SurfaceView][surfaceview] on Android, [UIView][uiview] on iOS, [HWND][hwnd] on Windows, [NSView][nsview] on macOS, or [GtkBox][gtkbox] on Linux. + +This page attempts to describe the life of a Flutter frame in the engine from initial trigger to rasterization, presentation, and finally destruction/recycling. For an overview of the Framework side of this process, see the [Flutter's Rendering Pipeline][renderingPipelineTalk] tech talk. + +[gtkbox]: https://docs.gtk.org/gtk3/class.Box.html +[hwnd]: https://learn.microsoft.com/en-us/windows/win32/winprog/windows-data-types#HWND +[nsview]: https://developer.apple.com/documentation/appkit/nsview +[surfaceview]: https://developer.android.com/reference/android/view/SurfaceView +[uiview]: https://developer.apple.com/documentation/uikit/uiview + +## How a frame begins + +All frames are born with a call to `RequestFrame` in the [Animator][animator]. + +A frame may be requested for a variety of reasons, ranging from resizing the Flutter view, to lifecycle events like backgrounding or foregrounding an app, to requests from either the app (via dart:ui's [PlatformDispatcher.scheduleFrame][scheduleFrame]) or the embedder (via the [embedder API][embedderAPI]'s `FlutterEngineScheduleFrame`). + +Flutter does some minimal housekeeping when a frame is requested, primarily to ignore any duplicate requests to schedule a frame before the frame is actually produced. + +Once a frame is scheduled, Flutter [waits for a vsync][vsyncWaiter] from the operating system to proceed. + +## Building the frame + +At the heart of Flutter's graphics workflow is the frame [pipeline][pipeline]. The pipeline is responsible for coordinating work between the UI thread, where the application code runs, and the Raster thread, where rasterization and compositing is performed. See the [threading section][engineArchThreading] of the Engine Architecture wiki for more details on threading in the engine. + +When a vsync occurs, Flutter begins the work of producing the frame in [Animator][animator]'s aptly-named `BeginFrame`. At this point, the animator reserves a spot in the pipeline and notifies the framework to begin the process of producing a frame by triggering the [PlatformDispatcher.onBeginFrame][onBeginFrame] dart:ui callback. + +When using the engine with the Flutter framework, `onBeginFrame` is handled by [handleBeginFrame][handleBeginFrame] in the framework, whose job it is to kick off the production of a [Scene][scene] in the framework. A good overview of this process can be found in the documentation of [RendererBinding.drawFrame][drawFrame] and the [Flutter's Rendering Pipeline][renderingPipelineTalk] tech talk. This process ultimately culminates in the production of a `Scene` which is handed back to the engine through a call to [FlutterView.render][flutterViewRender]. + +On the engine side, a `Scene` is represented as a [LayerTree][layerTree]. Calling `FlutterView.render` hands the layer tree to the Animator via a call its `Render` method, which posts the layer tree to the pipeline and notifies the Rasterizer that it's time to start rasterizing the frame. + +## Rasterizing the frame + +Rasterization is the process of converting the in-memory layer tree into pixels on a surface. Rasterization-related code in Flutter is executed on the Raster thread, which coordinates with the GPU. On some platforms, the Raster thread and the Platform thread may be the same thread. + +Rasterization starts with a call to the `Draw` method in the [Rasterizer][rasterizer]. At this point, the recently-produced `LayerTree` is pulled from the pipeline. The rasterizer does a quick check to see whether the app is running in headless mode (e.g. backgrounded) and if so, the frame is discarded; otherwise, rasterization proceeds. + +Rasterization begins with a request for a surface to which the GPU can draw via a call to the `AcquireFrame` method of [Surface][surface]. This delegates platform-specific code implemented in each embedder in response to callbacks configured in `FlutterRendererConfig` which acquires an appropriate Metal, OpenGL, Vulkan, or software surface for use by the rasterizer. + +Once a surface is acquired, the [LayerTree][layerTree] is rasterized to the surface via recursive `Preroll` and `Paint` calls through the layers. Behavior of these calls is specific to each layer type, but in the end, generally resolves to drawing via either either Skia or Impeller. Once the layer tree has been walked and all graphics operations have been collected, the frame is submitted to the GPU, and embedders are provided a callback to perform further platform-specific handling on their part -- typically presenting the surface via the platform-specific view implementation. + +The above process is repeated until the pipeline is empty. + +## Warm-up frame + +Normally, the Flutter framework begins producing a frame when it receives +a vsync event from the operating system. However, this may not happen for +several milliseconds after the app starts (or after a hot reload). To make +use of the time between when the widget tree is first configured and when +the engine requests an update, the framework schedules a _warm-up frame_ +using [PlatformDispatcher.scheduleWarmUpFrame][scheduleWarmUpFrame]. + +A warm-up frame may never actually render (as it invokes +[FlutterView.render][flutterViewRender] outside of the scope of +[PlatformDispatcher.onBeginFrame][onBeginFrame] or +[PlatformDispatcher.onDrawFrame][onDrawFrame]), but it will cause the framework +to go through the steps of building, laying out, and painting, which can +together take several milliseconds. Thus, when the engine requests a real frame, +much of the work will already have been completed, and the framework can +generate the frame with minimal additional effort. + +At startup, a warm-up frame can be produced before the Flutter engine has reported the +initial view metrics using [PlatformDispatcher.onMetricsChanged][onMetricsChanged]. +As a result, the first frame can be produced with a size of zero. + +## Cleaning up frame resources + +TODO(cbracken): write this up using [this patch](https://github.com/flutter/engine/pull/38038) as a reminder. + +[animator]: https://github.com/flutter/engine/blob/main/shell/common/animator.h +[drawFrame]: https://api.flutter.dev/flutter/rendering/RendererBinding/drawFrame.html +[embedderAPI]: https://github.com/flutter/engine/blob/main/shell/platform/embedder/embedder.h +[engineArchThreading]: ../about/The-Engine-architecture.md#threading +[flutterViewRender]: https://api.flutter.dev/flutter/dart-ui/FlutterView/render.html +[handleBeginFrame]: https://api.flutter.dev/flutter/scheduler/SchedulerBinding/handleBeginFrame.html +[layerTree]: https://github.com/flutter/engine/blob/main/flow/layers/layer_tree.h +[onBeginFrame]: https://api.flutter.dev/flutter/dart-ui/PlatformDispatcher/onBeginFrame.html +[onDrawFrame]: https://api.flutter.dev/flutter/dart-ui/PlatformDispatcher/onDrawFrame.html +[onMetricsChanged]: https://api.flutter.dev/flutter/dart-ui/PlatformDispatcher/onMetricsChanged.html +[pipeline]: https://github.com/flutter/engine/blob/main/shell/common/pipeline.h +[rasterizer]: https://github.com/flutter/engine/blob/main/shell/common/rasterizer.h +[renderingPipelineTalk]: https://www.youtube.com/watch?v=UUfXWzp0-DU +[scene]: https://api.flutter.dev/flutter/dart-ui/Scene-class.html +[scheduleWarmUpFrame]: https://api.flutter.dev/flutter/dart-ui/PlatformDispatcher/scheduleWarmUpFrame.html +[surface]: https://github.com/flutter/engine/blob/main/flow/surface.h +[scheduleFrame]: https://api.flutter.dev/flutter/dart-ui/PlatformDispatcher/scheduleFrame.html +[vsyncWaiter]: https://github.com/flutter/engine/blob/main/shell/common/vsync_waiter.h diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/README.md b/novelforge-project/agent-workspace/flutter/docs/engine/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5bfd804770cc7165e5161abe52733e78dfefb122 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/README.md @@ -0,0 +1,32 @@ +This is an index of team-facing documentation for the [flutter/engine repository](https://github.com/flutter/engine/). + +- [Accessibility on Windows](../platforms/desktop/windows/Accessibility-on-Windows.md) +- [Code signing metadata](./release/Code-signing-metadata.md) for engine binaries +- [Compiling the engine](./contributing/Compiling-the-engine.md) +- [Comparing AOT Snapshot Sizes](./benchmarks/Comparing-AOT-Snapshot-Sizes.md) +- [Crashes](./Crashes.md) +- [Custom Flutter engine embedders](./Custom-Flutter-Engine-Embedders.md) +- [Custom Flutter Engine Embedding in AOT Mode](./Custom-Flutter-Engine-Embedding-in-AOT-Mode.md) +- [Debugging the engine](./Debugging-the-engine.md) +- [Flutter engine operation in AOT Mode](./Flutter-engine-operation-in-AOT-Mode.md) +- [Flutter Test Fonts](../contributing/testing/Flutter-Test-Fonts.md) +- [Flutter's modes](./Flutter's-modes.md) +- [Engine Clang Tidy Linter](./ci/Engine-Clang-Tidy-Linter.md) +- [Engine disk footprint](./Engine-disk-footprint.md) +- [Engine-specific Service Protocol extensions](./Engine-specific-Service-Protocol-extensions.md) +- [Engine pre‐submits and post‐submits](./ci/Engine-pre-submits-and-post-submits.md) +- [Image Codecs in the Flutter Engine](Image-Codecs-in-the-Flutter-Engine.md) +- [Impeller](./impeller/README.md) documentation index +- [Life of a Flutter Frame](Life-of-a-Flutter-Frame.md) +- [Reduce Flutter engine size with MLGO](Reduce-Flutter-engine-size-with-MLGO.md) +- [Resolving common build failures](../platforms/android/Resolving-common-build-failures.md) +- [Setting up the Engine development environment](./contributing/Setting-up-the-Engine-development-environment.md) +- [Supporting legacy platforms](Supporting-legacy-platforms.md) +- [Testing Android Changes in the Devicelab on an Emulator](../platforms/android/Testing-Android-Changes-in-the-Devicelab-on-an-Emulator.md) +- [Testing the engine](./testing/Testing-the-engine.md) +- [Testing presubmit Engine PRs with the Flutter framework](Testing-presubmit-Engine-PRs-with-the-Flutter-framework.md) +- [The Engine architecture](../about/The-Engine-architecture.md) +- [Upgrading Engine's Android API version](../platforms/android/Upgrading-Engine's-Android-API-version.md) +- [Using the Dart Development Service (DDS) and Flutter DevTools with a custom Flutter Engine Embedding](./Using-the-Dart-Development-Service-(DDS)-and-Flutter-DevTools-with-a-custom-Flutter-Engine-Embedding.md) +- [Using Sanitizers with the Flutter Engine](./Using-Sanitizers-with-the-Flutter-Engine.md) +- [Why we have a separate engine repo](../about/Why-we-have-a-separate-engine-repo.md) diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Reduce-Flutter-engine-size-with-MLGO.md b/novelforge-project/agent-workspace/flutter/docs/engine/Reduce-Flutter-engine-size-with-MLGO.md new file mode 100644 index 0000000000000000000000000000000000000000..75ed9b2c02e6eb0e72fb48a03ece810b9b61852d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Reduce-Flutter-engine-size-with-MLGO.md @@ -0,0 +1,233 @@ +Mobile apps are very sensitive to their download sizes as every increase in KB +may result in a user number decrease. Flutter engine (`libflutter.so`) has to be +included in every Flutter app and it has a size of several MBs. So we'll try to +reduce its size by using [MLGO][MLGO]. It's different from the previous Flutter +attempt of reducing sizes as MLGO does not require any code or dependency +removals. + +Reducing engine size with MLGO needs to 1) train a model once, 2) apply that +model to compile the Flutter engine. Note that model training does not need to +happen too frequently - the model should 'hold up' to code changes over +weeks/months. On Ubuntu, do the following: + +- **Follow the [Setting-up-the-Engine-development-environment][engine setup]**. + To check if this step is successful, try [compiling for Android][compile + android]. For size comparisons, we recommend using the release Android build + `./flutter/tools/gn --android --runtime-mode=release --no-goma`. (Option + `--no-goma` is needed if you're not a Googler, or if you're using a custom + Clang as we'll do later with MLGO.) +- **Set up [MLGO] LLVM**. (The steps are adapted from [MLGO demo][MLGO demo].) + 1. Prerequisites: `sudo apt-get install cmake ninja-build lld`. + 2. Create a root directory for everything MLGO related `mkdir ~/mlgo && + export MLGO_DIR=~/mlgo` + 3. Clone MLGO repo + `cd $MLGO_DIR && git clone https://github.com/google/ml-compiler-opt.git` + 4. Tensorflow dependencies + ```bash + cd $MLGO_DIR + sudo apt-get install python3-pip + python3 -m pip install --upgrade pip + python3 -m pip install --user -r ml-compiler-opt/requirements.txt + + TF_PIP=$(python3 -m pip show tensorflow | grep Location | cut -d ' ' -f 2) + + export TENSORFLOW_AOT_PATH="${TF_PIP}/tensorflow" + + mkdir $MLGO_DIR/tensorflow + export TENSORFLOW_C_LIB_PATH=$MLGO_DIR/tensorflow + + wget --quiet https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-1.15.0.tar.gz + + tar xfz libtensorflow-cpu-linux-x86_64-1.15.0.tar.gz -C "${TENSORFLOW_C_LIB_PATH}" + ``` + 5. Clone llvm-project + ```bash + cd $MLGO_DIR && git clone https://github.com/llvm/llvm-project.git + export LLVM_SRCDIR=$MLGO_DIR/llvm-project + export LLVM_INSTALLDIR=$MLGO_DIR/llvm-install + ``` + 6. Build LLVM + ```bash + cd ${LLVM_SRCDIR} + mkdir build + cd build + cmake -G Ninja \ + -DLLVM_ENABLE_LTO=OFF \ + -DCMAKE_INSTALL_PREFIX= \ + -DTENSORFLOW_C_LIB_PATH=${TENSORFLOW_C_LIB_PATH} \ + -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=On \ + -C ${LLVM_SRCDIR}/clang/cmake/caches/Fuchsia-stage2.cmake \ + ${LLVM_SRCDIR}/llvm + + ninja distribution + DESTDIR=${LLVM_INSTALLDIR} ninja install-distribution-stripped + ``` +- **Build Flutter engine for MLGO training** + ```bash + # Set your engine dir appropriately if it's not in the default location + export ENGINE_DIR=~/flutter/engine/src + cd $ENGINE_DIR + + sed -i \ + 's/cflags += lto_flags/cflags += lto_flags + ["-Xclang", "-fembed-bitcode=all"]/' \ + build/config/compiler/BUILD.gn + + sed -i \ + "s/prefix = rebase_path(\"\/\/buildtools\/\$host_dir\/clang\/bin\", root_build_dir)/prefix = \"${LLVM_INSTALLDIR//\//\\/}\/bin\"/" \ + build/toolchain/android/BUILD.gn + + ./flutter/tools/gn --android --runtime-mode=release --no-goma --no-lto + ninja -C out/android_release + ``` +- **Train the model** + ```bash + export CORPUS=$MLGO_DIR/corpus + cd $MLGO_DIR/ml-compiler-opt + python3 compiler_opt/tools/extract_ir.py \ + --cmd_filter="^-Oz$" \ + --input=$ENGINE_DIR/out/compile_commands.json \ + --input_type=json \ + --llvm_objcopy_path=$LLVM_INSTALLDIR/bin/llvm-objcopy \ + --output_dir=$CORPUS + + export DEFAULT_TRACE=$MLGO_DIR/default_trace + export WARMSTART_OUTPUT_DIR=$MLGO_DIR/warmstart + export OUTPUT_DIR=$MLGO_DIR/model + + rm -rf $DEFAULT_TRACE && \ + PYTHONPATH=$PYTHONPATH:. python3 \ + compiler_opt/tools/generate_default_trace.py \ + --data_path=$CORPUS \ + --output_path=$DEFAULT_TRACE \ + --compile_task=inlining \ + --clang_path=$LLVM_INSTALLDIR/bin/clang \ + --llvm_size_path=$LLVM_INSTALLDIR/bin/llvm-size \ + --sampling_rate=0.2 + + rm -rf $WARMSTART_OUTPUT_DIR && \ + PYTHONPATH=$PYTHONPATH:. python3 \ + compiler_opt/rl/train_bc.py \ + --root_dir=$WARMSTART_OUTPUT_DIR \ + --data_path=$DEFAULT_TRACE \ + --gin_files=compiler_opt/rl/inlining/gin_configs/behavioral_cloning_nn_agent.gin + + # The following will take about half a day. + rm -rf $OUTPUT_DIR && \ + PYTHONPATH=$PYTHONPATH:. python3 \ + compiler_opt/rl/train_locally.py \ + --root_dir=$OUTPUT_DIR \ + --data_path=$CORPUS \ + --clang_path=$LLVM_INSTALLDIR/bin/clang \ + --llvm_size_path=$LLVM_INSTALLDIR/bin/llvm-size \ + --num_modules=100 \ + --gin_files=compiler_opt/rl/inlining/gin_configs/ppo_nn_agent.gin \ + --gin_bindings=train_eval.warmstart_policy_dir=\"$WARMSTART_OUTPUT_DIR/saved_policy\" + ``` +- **Build LLVM with the trained model** + ```bash + cd $LLVM_SRCDIR + rm -rf llvm/lib/Analysis/models/inliner/* + cp -rf $OUTPUT_DIR/saved_policy/* llvm/lib/Analysis/models/inliner/ + + mkdir build-release + cd build-release + cmake -G Ninja \ + -DLLVM_ENABLE_LTO=OFF \ + -DCMAKE_INSTALL_PREFIX= \ + -DTENSORFLOW_AOT_PATH=${TENSORFLOW_AOT_PATH} \ + -C ${LLVM_SRCDIR}/clang/cmake/caches/Fuchsia-stage2.cmake \ + ${LLVM_SRCDIR}/llvm + + export LLVM_INSTALLDIR_RELEASE=$LLVM_INSTALLDIR-release + ninja distribution + DESTDIR=${LLVM_INSTALLDIR_RELEASE} ninja install-distribution-stripped + ``` +- **Build Flutter engine using LLVM with the trained model** + ```bash + cd $ENGINE_DIR + git stash # Undo previous changes for model training + + sed -i \ + 's/cflags += lto_flags/cflags += lto_flags + ["-mllvm", "-enable-ml-inliner=release"]/' \ + build/config/compiler/BUILD.gn + + sed -i \ + "s/prefix = rebase_path(\"\/\/buildtools\/\$host_dir\/clang\/bin\", root_build_dir)/prefix = \"${LLVM_INSTALLDIR_RELEASE//\//\\/}\/bin\"/" \ + build/toolchain/android/BUILD.gn + + ./flutter/tools/gn --android --runtime-mode=release --no-goma --no-lto + ninja -C out/android_release libflutter.so + ``` +- **Compare**. To compare the engine size with or without MLGO, one can add or + remove the `["-mllvm", "-enable-ml-inliner=release"]` flags in + `build/config/compiler/BUILD.gn`, compile the engine, and check the size of + `out/android_release/lib.stripped/libflutter.so`. As end-users will download + zipped engine, we also recommend comparing its zipped size. + ```bash + export ENGINE_LIB_DIR=$ENGINE_DIR/out/android_release/lib.stripped + + cd $ENGINE_DIR + ./flutter/tools/gn --android --runtime-mode=release --no-goma --no-lto + ninja -C out/android_release libflutter.so + cd $ENGINE_LIB_DIR + mv libflutter.so libflutter.ml_nolto.so + zip libflutter.ml_nolto.so.zip libflutter.ml_nolto.so + + cd $ENGINE_DIR + ./flutter/tools/gn --android --runtime-mode=release --no-goma + ninja -C out/android_release libflutter.so + cd $ENGINE_LIB_DIR + mv libflutter.so libflutter.ml_lto.so + zip libflutter.ml_lto.so.zip libflutter.ml_lto.so + + # Remove the ML flags to disable ML. + cd $ENGINE_DIR + sed -i \ + 's/cflags += lto_flags + \["-mllvm", "-enable-ml-inliner=release"\]/cflags += lto_flags/' \ + build/config/compiler/BUILD.gn + + cd $ENGINE_DIR + ./flutter/tools/gn --android --runtime-mode=release --no-goma --no-lto + ninja -C out/android_release libflutter.so + cd $ENGINE_LIB_DIR + mv libflutter.so libflutter.noml_nolto.so + zip libflutter.noml_nolto.so.zip libflutter.noml_nolto.so + + cd $ENGINE_DIR + ./flutter/tools/gn --android --runtime-mode=release --no-goma + ninja -C out/android_release libflutter.so + cd $ENGINE_LIB_DIR + mv libflutter.so libflutter.noml_lto.so + zip libflutter.noml_lto.so.zip libflutter.noml_lto.so + + ls -l + ``` + + Here's the table of size comparisons for engine version b9ecd8a. + + | Flutter engine size comparison | ML_LTO | ML_NOLTO | NOML_LTO | NOML_NOLTO | + | --- | --- | --- | --- | --- | + | unzipped size (bytes) | 6270960 | 6338580 | 6312012 | 6577684 | + | zipped size (bytes) | 3586091 | **3577604** | 3606484 | 3689468 | + | unzipped size change over NOML_LTO | -0.65% | 0.4% | 0 | 4.21% | + | zipped size change over NOML_LTO | -0.57% | **-0.80%** | 0 | 2.3% | + | unzipped size change over NOML_NOLTO | -4.66% | -3.64% | -4.04% | 0 | + | zipped size change over NOML_NOLTO | -2.80% | -3.03% | -2.25% | 0 | + +## Conclusion + +As shown in the table above, for the zipped size, the winner here is the +ML_NOLTO version which is even smaller than the ML_LTO version. It has a 0.8% +reduction over our previous art of NOML_LTO. + +The ML_LTO version is not very good because currently the model can only be +trained without LTO. [MLGO][MLGO] is planning to allow ThinLTO in their +training. Hopefully, it will help achieve the MLGO's normal reduction of 3%-5% +(e.g., ML_NOLTO vs NOML_NOLTO) when the training and final build are in the same +condition. + + +[MLGO]: https://github.com/google/ml-compiler-opt +[engine setup]: ./contributing/Setting-up-the-Engine-development-environment +[compile android]: ./contributing/Compiling-the-engine#compiling-for-android-from-macos-or-linux +[MLGO demo]: https://github.com/google/ml-compiler-opt/blob/main/docs/demo/demo.md diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Supporting-legacy-platforms.md b/novelforge-project/agent-workspace/flutter/docs/engine/Supporting-legacy-platforms.md new file mode 100644 index 0000000000000000000000000000000000000000..632a65613fbba3fce11ded4bc3d90320017a4f5e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Supporting-legacy-platforms.md @@ -0,0 +1,28 @@ +## Building ARMv7 (iOS) & armeabi v7a (Android) with Xcode10 + +In Xcode10, the i386 architecture is deprecated for macOS, so building the Flutter engine for armv7/armeabi-v7a fails. Specifically, libraries like CoreFoundation contain only code for the x86_64 architecture. + +![iOS ARMv7](https://user-images.githubusercontent.com/817851/45751101-e7a54980-bc43-11e8-833f-b6458c9a4762.png) + +![Android armeabi-v7a](https://user-images.githubusercontent.com/817851/45751099-e70cb300-bc43-11e8-97fa-a877dff5449d.png) + +To address this, get the MacOS 10.13 SDK from Xcode 9.x from [Apple](https://developer.apple.com/download/more/), and extract the SDK components from the `.xip` file. Uncompress the SDK into `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs` and name the SDK `MacOSX10.13.sdk`: + +![Uncompressed SDK in Xcode10](https://user-images.githubusercontent.com/817851/45752211-47512400-bc47-11e8-88fe-b738ac53831f.png) + +To check if the logic is fine, run command below: + +```bash +python your-flutter-engine-path/engine/src/build/mac/find_sdk.py 10.12 +``` + +When `find_sdk.py` return 10.13, the ninja build will succeed for gen_snapshot (i386), Flutter.framework (ARMv7) and libflutter.so (armeabi-v7a). + +## Build Flutter engine for 32bit iOS simulator on modern Mac(x86_64) + +To build the Flutter engine for iOS simulator on a modern Mac(x86_64), the gn command will generate a `target_cpu` value with x64. Henceforth, the Flutter.framework and gen_snapshot will be x86_64. +However, sometimes you may want to develop Flutter on a 32bit simulator(like iPhone5), you will need both Flutter.framework and gen_snapshot to be i386. + +Follow instruction below to change the default behavior in gn command: +1. Edit your-flutter-engine-path/engine/src/flutter/tools/gn +![Edit gn](https://user-images.githubusercontent.com/817851/49006557-57840300-f1a4-11e8-850a-d019dc854bbd.png) \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Testing-presubmit-Engine-PRs-with-the-Flutter-framework.md b/novelforge-project/agent-workspace/flutter/docs/engine/Testing-presubmit-Engine-PRs-with-the-Flutter-framework.md new file mode 100644 index 0000000000000000000000000000000000000000..d0961a23885b3ed79c739033c39f0f725ff31595 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Testing-presubmit-Engine-PRs-with-the-Flutter-framework.md @@ -0,0 +1,48 @@ +# Running Framework presubmit tests on Engine PRs + +This documentation describes how to run flutter/flutter presubmit checks on flutter/engine PRs before submitting them. + +# Overview + +1. Wait for all presubmit checks on your flutter/engine PR to be green. +2. Determine the commit hash for your flutter/engine PR. +3. Create and upload a flutter/flutter PR, (OR run tests locally). +4. Wait for flutter/flutter presubmits/tests to run ☕. + +Step (1) is the usual flutter/engine workflow. + +# 2. The commit hash + +1. Go to the "Commits" tab in the GitHub UI for you Engine PR. +1. Click the button to copy the most recent commit hash to your clipboard. + +Screenshot 2023-08-04 at 12 54 55 PM + +# 3. Create and upload a flutter/flutter PR. + +Edit your flutter/flutter checkout as follows: + +1. `bin/internal/engine.version` should be edited to contain the commit hash from (2). +1. `bin/internal/engine.realm` should be edited to contain the string `flutter_archives_v2`. + +To run flutter/flutter presubmits on CI, you can accomplish these two edits directly in the GitHub editor UI, if desired. Otherwise, upload a flutter/flutter PR with these changes. + +You can also build apps, and run tests locally at this point. + +# 4. Wait for flutter/flutter presubmits to run ☕. + +The flutter/flutter presubmit checks will run. There will be at least two failures: +1. A Flutter CLI test will ensure that a PR with a non-empty `engine.realm` file will fail a presubmit check. +1. The `fuchsia_precache` test will fail because Fuchsia artifacts are not uploaded from Engine presubmit runs. + +Any other failures are possibly due to the changes to flutter/engine, so deflake and examine them carefully. + +# 5. Devicelab tests + +A subset of devicelab tests are available for optionally running in presubmit on flutter/flutter PRs. They are the tests listed in the flutter/flutter [.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml) file that are prefixed with `Linux_android`, `Mac_android`, and `Mac_ios`. + +To run one of these tests, remove the line `presubmit: false` from the `.ci.yaml` file under the test you'd like to run. For an example, see the PR [here](https://github.com/flutter/flutter/pull/135254). + +Screenshot 2023-09-21 at 3 19 51 PM + +This will trigger the devicelab test to run. The test will show up in the list of presubmit checks, and you can click through to the [LUCI page](https://ci.chromium.org/ui/p/flutter/builders/try/Linux_android%20new_gallery__transition_perf/2/overview) to see the results. diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Using-Sanitizers-with-the-Flutter-Engine.md b/novelforge-project/agent-workspace/flutter/docs/engine/Using-Sanitizers-with-the-Flutter-Engine.md new file mode 100644 index 0000000000000000000000000000000000000000..9540d12d803c9799dec6fcad96a05b42bf33d9d8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Using-Sanitizers-with-the-Flutter-Engine.md @@ -0,0 +1,125 @@ + +All Flutter Engine builds can now enable a combination of the following sanitizers. The different sanitizers are used to isolate specific classes of construction issues. + +* **Thread Sanitizer**: Detects data races. +* **Address Sanitizer**: Detects memory errors like use-after-free, buffer overflows... +* **Memory Sanitizer**: Detects reads on uninitialized memory. +* **Undefined Behavior Sanitizer**: Detects undefined behavior. +* **Leak Sanitizer**: Detects memory leaks. + +While the buildroot is wired up to attempt sanitizer enabled builds for all targets, not all target architectures, host platform and sanitizer combinations are supported. Support for each sanitizer also varies greatly with each toolchain version. For this reason, and due to general constraints in available build/test infrastructure, these sanitizers are not enabled by default on presubmits or build-bots. It is best to work backwards from a problem and choose a sanitizer that has the best shot of isolating the same. + + +## General Usage Guidelines + +Most sanitizer enabled variants will either fail to build at all or fail when running specific unit-test targets. These failures are either because there are false positives that have not been annotated correctly or genuine issues in either the Flutter Engine or Dart VM. However, it is possible to discover further issues without fixing them all. This is done by selectively suppressing known issues. The suppressions and other sanitizer options have to be specified as environment options. These options can be specified in one shot by invoking the following in the current shell: + + +``` +source ./flutter/testing/sanitizer_suppressions.sh +``` + + +This should enable relevant options for all known sanitizers and also print the files containing suppressions for each sanitizer. + +Sample output: + + +``` +Using Thread Sanitizer suppressions in ./flutter/testing/tsan_suppressions.txt +Using Leak Sanitizer suppressions in ./flutter/testing/lsan_suppressions.txt +``` + + +You can run the specific unit-test binaries in the terminal and all sanitizer options and suppressions will take hold. + +If an issue is raised that is not previously known, a suppression may be added and a bug filed to track the same. Instructions on how to add suppressions for the specific sanitizer are specific at the top of the relevant suppressions file. + +Make sure to add suppression that are as detailed as possible. Adding suppressions that are too broad may suppress errors from issues that are actually new and untracked. If you find that the issue you expect is not caught by the sanitizer, make sure to check the list of suppressions to see if any of the suppressed issues look relevant. If so, you might need to selectively disable suppressions: + + +``` +----------------------------------------------------- +Suppressions used: + count bytes template + 1 120 class_createInstance + 5 80 MakeSkSurfaceFromBackingStore + 3 128 _dispatch_once_callout +----------------------------------------------------- +``` + + +Support for sanitizer enabled builds using Goma is spotty. Disable Goma for more reliable builds till these issues are addressed. + +All sanitizer caught issues are tagged with the [sanitizer](https://github.com/flutter/flutter/labels/sanitizer) label. + + +## Leak Sanitizer + +A tool used to detect memory leaks. Official documentation is at [https://clang.llvm.org/docs/LeakSanitizer.html](https://clang.llvm.org/docs/LeakSanitizer.html). Enable using the `--lsan` GN flag on any target. For best results, use this with unoptimized build variants. The buildroot is configured to use the ideal arguments in this mode. Full documentation on how to add suppressions to this file is at [https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer#suppressions](https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer#suppressions). This tool can be used either in standalone mode or in conjunction with Address Sanitizer. + + +``` +$ ./flutter/tools/gn --runtime-mode debug --lsan --unoptimized --no-goma +$ autoninja -C out/host_debug_unopt +$ source ./flutter/testing/sanitizer_suppressions.sh +$ ./out/host_debug_unopt/embedder_unittests +``` + + +## Address Sanitizer + +Address sanitizer detects memory errors. Official documentation is at [https://github.com/google/sanitizers/wiki/AddressSanitizer](https://github.com/google/sanitizers/wiki/AddressSanitizer). Enable using the `--asan` flag. Enabling address sanitizer also implicitly enables +Leak Sanitizer. The `./flutter/testing/sanitizer_suppressions.sh` script enables leak sanitization in Address Sanitizer builds. + + +``` +$ ./flutter/tools/gn --runtime-mode debug --asan --unoptimized --no-goma +$ autoninja -C out/host_debug_unopt +$ source ./flutter/testing/sanitizer_suppressions.sh +$ ./out/host_debug_unopt/embedder_unittests +``` + + +Address sanitizer has [spotty support on aarch64](https://github.com/google/sanitizers/wiki/AddressSanitizer#introduction) targets. Use it on x64 target for best results. + + +## Undefined Behavior Sanitizer + +Catches undefined behavior. Official documentation at [https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html). Enable using the `--ubsan` flag. The `sanitizer_suppressions.sh` file will specify a suppressions files. [Classes of errors](https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html#id4) can be disabled at runtime. + + +``` +$ ./flutter/tools/gn --runtime-mode debug --ubsan --unoptimized --no-goma +$ autoninja -C out/host_debug_unopt +$ source ./flutter/testing/sanitizer_suppressions.sh +$ ./out/host_debug_unopt/embedder_unittests +``` + + + +## Thread Sanitizer + +Catches data races. Official documentation at [https://clang.llvm.org/docs/ThreadSanitizer.html](https://clang.llvm.org/docs/ThreadSanitizer.html). + + +``` +$ ./flutter/tools/gn --runtime-mode debug --tsan --unoptimized --no-goma +$ autoninja -C out/host_debug_unopt +$ source ./flutter/testing/sanitizer_suppressions.sh +$ ./out/host_debug_unopt/embedder_unittests +``` + + + +## Memory Sanitizer + +Detects reads of uninitialized memory. This sanitizer is only available on Linux. Enable using the `--msan` flag. + + +``` +$ ./flutter/tools/gn --runtime-mode debug --msan --unoptimized --no-goma +$ autoninja -C out/host_debug_unopt +$ source ./flutter/testing/sanitizer_suppressions.sh +$ ./out/host_debug_unopt/embedder_unittests +``` diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/Using-the-Dart-Development-Service-(DDS)-and-Flutter-DevTools-with-a-custom-Flutter-Engine-Embedding.md b/novelforge-project/agent-workspace/flutter/docs/engine/Using-the-Dart-Development-Service-(DDS)-and-Flutter-DevTools-with-a-custom-Flutter-Engine-Embedding.md new file mode 100644 index 0000000000000000000000000000000000000000..1f6177c521b185c4a4140536d4ecc5f734ae32a9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/Using-the-Dart-Development-Service-(DDS)-and-Flutter-DevTools-with-a-custom-Flutter-Engine-Embedding.md @@ -0,0 +1,61 @@ +When attempting to connect to the VM service URI output by the Flutter engine in the context of a custom embedder, users may encounter the following error: + +`This VM does not have a registered Dart Development Service (DDS) instance and is not currently serving Dart DevTools.` + +This happens when a Flutter application is launched without using the `flutter` CLI tool, which typically is responsible for starting a Dart Development Service (DDS) instance. DDS is middleware for the Dart VM Service that provides additional functionality like log and event history, and can be configured to serve the DevTools developer tooling suite. + +Developers working on custom embeddings of the Flutter engine can start a DDS instance in one of two ways: + +1) Using the `dart development-service` command shipped with the Dart SDK (**recommended**). +2) Starting a Flutter DevTools instance using the `dart devtools` shipped with the Dart SDK, providing the VM service URI as an argument (e.g., `dart devtools http://localhost:8181`). + +## Using `dart development-service` + +DDS can be started using the `dart development-service` command. As of writing, the command has the following interface allowing for configuration of the service: + +``` +Start Dart's development service. + +Usage: dart [vm-options] development-service [arguments] +-h, --help Print this usage information. + --vm-service-uri= (mandatory) The VM service URI DDS will connect to. + --bind-address=
    The address DDS should bind to. + (defaults to "localhost") + --bind-port= The port DDS should be served on. + (defaults to "0") + --[no-]disable-service-auth-codes Disables authentication codes. + --[no-]serve-devtools If provided, DDS will serve DevTools. If not specified, "--devtools-server-address" is ignored. + --devtools-server-address Redirect to an existing DevTools server. Ignored if "--serve-devtools" is not specified. + --[no-]enable-service-port-fallback Bind to a random port if DDS fails to bind to the provided port. + --cached-user-tags A set of UserTag names used to determine which CPU samples are cached by DDS. + --google3-workspace-root Sets the Google3 workspace root used for google3:// URI resolution. + +Run "dart help" to see global options. +``` + +The `--vm-service-uri` option is required and specifies the URI of the Dart VM service served by the Flutter engine. If provided, the `--serve-devtools` flag will result in the DevTools instance shipped with the Dart SDK from DDS's HTTP server. + +Running the command will result in JSON encoded connection information being output to `stdout`: + +```bash +$ dart development-service --vm-service-uri=http://127.0.0.1:59113/BBPoXnZUWFU=/ --serve-devtools +{"state":"started","ddsUri":"http://127.0.0.1:59123/tbrR0DzW2j8=/","devToolsUri":"http://127.0.0.1:59123/tbrR0DzW2j8=/devtools?uri=ws://127.0.0.1:59123/tbrR0DzW2j8=/ws","dtd":{"uri":"ws://127.0.0.1:59122/R1LbdlhtkUygRWNA"}} +``` + +Once DDS has started, all VM service requests should be made through the URI provided by DDS instead of the original VM service URI. In the context of the standalone Dart VM (i.e., `dart`) and the `flutter` tool, the original VM service URI is hidden and the DDS URI is advertised as the Dart VM service URI to reduce the likelihood of developers accidentally connecting to the VM service directly. Direct connections to a VM service with an active DDS instance attached will be rejected. + +The DDS instance will automatically shutdown when the target application is closed, requiring no manual lifecycle management. + +## Using `dart devtools` + +Developers are also able to start DevTools using the `dart devtools` command. By providing the VM service URI as a positional parameter, the served DevTools instance will automatically connect to the provided target application. However, before connecting directly to the VM service URI, the command first checks that the provided VM service URI points to a DDS instance. If it doesn't, the command will start DDS, print the DDS URI to console, and then launch a DevTools instance that connects to the DDS instance directly instead of to the provided VM service URI. + +```bash +$ dart devtools http://127.0.0.1:59251/2LS6f3Kb2JI=/ +Started the Dart Development Service (DDS) at http://127.0.0.1:59260/38XeuQpIHRE=/ +Serving DevTools at http://127.0.0.1:9101. + + Hit ctrl-c to terminate the server. +``` + +As with the `dart development-service` command, the lifecycle of DDS is tied directly to the lifecycle of the application it's connected to. However, using the `dart devtools` command does not cause DevTools to be served by DDS, meaning that DevTools will not be available if the `dart devtools` process is killed, even though DDS will remain attached to the target application. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/benchmarks/Comparing-AOT-Snapshot-Sizes.md b/novelforge-project/agent-workspace/flutter/docs/engine/benchmarks/Comparing-AOT-Snapshot-Sizes.md new file mode 100644 index 0000000000000000000000000000000000000000..c397f41fe7ee0ed0c1b656d545834ca619308b11 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/benchmarks/Comparing-AOT-Snapshot-Sizes.md @@ -0,0 +1,90 @@ +These instructions can be used to prepare a tabulated summary of the differences in the sizes of two AOT snapshots. The instructions assume that the Flutter Engine has been [setup](../contributing/Setting-up-the-Engine-development-environment.md) on the host (at `FLUTTER_ENGINE` in these instructions). + +Build the AOT snapshot (`flutter build aot`) for the application but pass in the `--verbose` flag. We need to find the `gen_snapshot` invocation and re-run it with an extra option (`--print-instructions-sizes-to`). If you are instrumenting with a local engine, the `flutter build` [takes a `--local-engine` and `--local-engine-host` flag](../Debugging-the-engine.md#running-a-flutter-app-with-a-local-engine) as well. + +Here is an example of the updated invocation. Specify the path to a JSON file that acts as a summary (`SUMMARY_LOCATION` in these instructions) as follows. + +```bash +$FLUTTER_ENGINE/out/host_debug_unopt/gen_snapshot \ + --print-instructions-sizes-to=$SUMMARY_LOCATION \ + --causal_async_stacks \ + --packages=.packages \ + --deterministic \ + --snapshot_kind=app-aot-blobs \ + --vm_snapshot_data=build/aot/vm_snapshot_data \ + --isolate_snapshot_data=build/aot/isolate_snapshot_data \ + --vm_snapshot_instructions=build/aot/vm_snapshot_instr \ + --isolate_snapshot_instructions=build/aot/isolate_snapshot_instr \ + build/aot/app.dill +``` + +Save the file at `SUMMARY_LOCATION` as `before.json` + +Now, either change the Dart code with the changes you wish to see the effects, or, rebuild the engine to create an updated `gen_snapshot` binary. + +After you have made necessary changes, re-run `flutter build aot` again. This step is important because AOT compilation has a [kernel compilation step](../Custom-Flutter-Engine-Embedding-in-AOT-Mode.md#generating-the-kernel-snapshot) before the `gen_snapshot` invocation. + +Re-run the gen_snapshot invocation and save the resulting file to `after.json`. + +Run the `compare_size.dart` tool and pass in the `before.json` and `after.json` files to generate the summary. + +An example invocation looks as follow. + +``` +$FLUTTER_ENGINE/out/host_debug_unopt/dart-sdk/bin/dart \ + before.json \ + after.json +``` + +This should dump something like the following to the console. + +``` ++------------+----------------------------------------------------------+--------------+ +| Library | Method | Diff (Bytes) | ++------------+----------------------------------------------------------+--------------+ +| dart:async | new ZoneSpecification.from | +2136 | +| dart:async | runZoned | +1488 | +| dart:async | new _CustomZone | +927 | +| dart:async | runZoned. | +881 | +| dart:async | _rootFork | +504 | +| dart:async | _rootCreatePeriodicTimer | +500 | +| dart:async | _rootCreateTimer | +498 | +| dart:async | _rootRegisterUnaryCallback | +485 | +| dart:async | _rootRegisterBinaryCallback | +485 | +| dart:async | _rootRegisterCallback | +485 | +| dart:async | _rootPrint | +453 | +| dart:async | _CustomZone.fork | +396 | +| dart:async | _rootErrorCallback | +389 | +| dart:async | _CustomZone.bindUnaryCallbackGuarded | +368 | +| dart:async | _rootHandleUncaughtError | +342 | +| dart:async | _CustomZone.runBinary | +296 | +| dart:async | _CustomZone.runUnary | +293 | +| dart:async | _CustomZone.[] | +291 | +| dart:async | _CustomZone.registerCallback | +290 | +| dart:async | _CustomZone.run | +290 | +| dart:async | _CustomZone.registerUnaryCallback | +290 | +| dart:async | _CustomZone.registerBinaryCallback | +290 | +| dart:async | _CustomZone.runBinaryGuarded | +289 | +| dart:async | _CustomZone.runUnaryGuarded | +286 | +| dart:async | _RootZone.fork | +283 | +| dart:async | _CustomZone.bindCallback | +259 | +| dart:async | _CustomZone.bindUnaryCallback | +259 | +| dart:async | _CustomZone.bindUnaryCallback. | +248 | +| dart:async | _RootZone.bindUnaryCallback. | +248 | +| dart:async | _CustomZone.bindUnaryCallbackGuarded. | +248 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +| | [Stub] Type Test Type: class 'PopupMenuEntry' | -128 | +| | [Stub] Type Test Type: class '_SyncIterator@0150898' | -128 | +| | [Stub] Type Test Type: class 'PopupMenuItem' | -128 | +| | [Stub] Type Test Type: class 'FormFieldState' | -128 | +| | [Stub] Type Test Type: class 'PopupMenuButton' | -128 | +| | [Stub] Type Test Type: class '_SyncIterator@0150898' | -131 | +| | [Stub] Type Test Type: class '_SplayTreeMapNode@3220832' | -139 | +| | [Stub] Type Test Type: class '_SplayTreeMapNode@3220832' | -165 | +| dart:io | new Directory | -211 | +| dart:io | new Link | -211 | ++------------+----------------------------------------------------------+--------------+ +Total change +24036 bytes. + +``` diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/ci/Engine-Clang-Tidy-Linter.md b/novelforge-project/agent-workspace/flutter/docs/engine/ci/Engine-Clang-Tidy-Linter.md new file mode 100644 index 0000000000000000000000000000000000000000..05879f82181e6423742964fb22f2a2bb31cf07a2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/ci/Engine-Clang-Tidy-Linter.md @@ -0,0 +1,56 @@ +# Engine Clang Tidy Linter + +## Description + +In May 2020, [`clang-tidy`](https://clang.llvm.org/extra/clang-tidy/) was added as a CI step to the Flutter Engine. Previously the only lint checks that were happening in the engine were formatting, there were no semantic checks. Now there are, but that means there is work to be done migrating all the code to conform to all the lint checks. + +If a file has `// FLUTTER_NOLINT` at the top, it has issues with the lint that haven't been addressed and the linter will ignore it. As the issues are fixed the comments should be removed. + +You can run the linter locally by running `flutter/ci/lint.sh`. + +## CI background information + +* The clang-tidy ci step is run 4 times: host_debug on mac, ios_debug on mac, host_debug on linux, android_debug_arm64 on linux. +* Before the linter can run, the target must be built in order to generate code. +* Clang-tidy jobs are sharded such that the intersection of files in iOS and macOS are shared, similarly for Linux and Android. + +## FAQs + +### I don't understand this lint error, where do I get help? + +You can ask on the `hackers-engine` discord channel. Ping @gaaclarke or @zanderso if you don't get the response you want. + +### Hey, why are/aren't you checking for X? + +The checks that are enabled are negotiable. If you think we are missing something, please discuss it on `hacker-engine`. + +### Can I just use `NOLINT` to turn off the error? + +You can, but please get explicit approval to do from someone on the team. + +### How do I turn on a large new lint? + +Here are things that can make it easier to land large new lints. + +#### Tips + +* Try to reduce the number of checks you are turning on at a time, they can have cascading effects where fixing one check with "clang-tidy fix" can cause violations with other checks. +* Prefer using NOLINTNEXTLINE over NOLINT since auto formatting can move NOLINT comments and break them. + +#### Clang-tidy fix on CI + +Instead of running clang-tidy fix locally on your machines 4 times you can get the CI bots to print out the fix. Here's steps on how to do that: + +1. Edit `//ci/clang_tidy.sh`: + ```diff + # To run on CI, just uncomment the following line: + -# FLUTTER_LINT_PRINT_FIX=1 + +FLUTTER_LINT_PRINT_FIX=1 + ``` + This will run on _all_ files, and print out the patch generated by `clang-tidy fix` in the CI bots. + +2. Make a draft PR with the check added and FLUTTER_LINT_PRINT_FIX=1 +3. Look at the output of failed clang-tidy runs and make sure that it didn't garble the fix. Sometimes that happens and if it does, you'll have to manually fix where it garbled the fix or use NOLINTNEXTLINE. +4. Copy the patch the CI bot printed out to the clipboard, in the terminal, at the engine repo, use `git apply`, paste the patch, press ctrl+d then enter. Watch out that there can be overlapping patches between the mac runs and the linux runs since we don't shard across platforms. +5. Commit and push that. +6. When the 4 CI runs are green, remove FLUTTER_LINT_PRINT_FIX=1 and put up for review diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/ci/Engine-pre-submits-and-post-submits.md b/novelforge-project/agent-workspace/flutter/docs/engine/ci/Engine-pre-submits-and-post-submits.md new file mode 100644 index 0000000000000000000000000000000000000000..d137d97d616baf0407d4ceeb49f68a7378deac8a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/ci/Engine-pre-submits-and-post-submits.md @@ -0,0 +1,79 @@ +The Flutter engine repo runs both pre-submit (before merging) and post-submit (after merging) suites of tests and checks, defined in [`.ci.yaml`](https://github.com/flutter/engine/blob/main/.ci.yaml). + +> [!TIP] +> See [Cocoon Scheduler](https://github.com/flutter/cocoon/blob/main/CI_YAML.md) for details. + +Failure to run appropriate tests for changes can (and do) result in the engine tree turning red, which in turn causes an expensive cascade of developers being blocked, investigative work, reverts, and roll-forwards. Where possible, all attempts should be made to run any/all tests _before_ merging a PR. See nuances (below) for exceptional cases. + + + +* [Pre-submit](#pre-submit) +* [Post-submit](#post-submit) + * [Running post-submits eagerly](#running-post-submits-eagerly) + +## Pre-submit + +Presubmits run (and are required to be passing) to merge a PR: + +Checks + +

    + +For example, the `linux_host_engine` target above runs based on the configuration in [`ci/builders/linux_host_engine.json`](https://github.com/flutter/engine/blob/458956228dad9837956aeb78b2988879e764a0b2/ci/builders/linux_host_engine.json). + +### Nuances + +Typically, pre-submits _always_ run on every PR, and don't need any special attention (other than keeping them green). There are two exceptions: + +1. Targets that provide a `runIf: ...` configuration +2. Changes that impact Clang Tidy + +> [!WARNING] +> +> `runIf: ...` is a powerful (but dangerous) feature that trades predictability for speed. +> +> `runIf` will skip certain targets if a particular file (or commonly, sets of files) are not changed in a given PR. +> +> For example, the [`linux_clang_tidy_presubmit`](https://github.com/flutter/engine/blob/991676f3bc9482eaaeb3764b6b835f0e3ff8b3c5/.ci.yaml#L219-L235) target will not run if only markdown (`*.md`) files are changed. + +Clang Tidy, on the other hand, is only run on _files that have changed in a given PR_. For example, if you have: + +```h +// impeller/a.h +struct A {} +``` + +... files that import that header, such as `impeller/foo/bar/baz.cc`, will _not_ be run in pre-submit. This means that changing (or updating the `DEPS` of libraries that provide) headers is _not_ a safe change, and will _not_ be detected in pre-submit. As an example, [#48705](https://github.com/flutter/engine/pull/48705) had to be reverted (despite passing all pre-submit checks), because the Clang Tidy _post-submit_ caught a failure. + +See [post-submit](#post-submit) below for options to run post-submits eagerly (i.e. as a pre-submit). + +## Post-submit + +Some (albeit fewer) targets are configured with the property `presubmit: false`: + +```yaml + - name: Mac mac_clang_tidy + recipe: engine_v2/engine_v2 + presubmit: false +``` + +These targets will _not_ show up during a PR, and will not be executed, but can (and do) turn the tree red. + +### Running post-submits eagerly + +We've intentionally chosen to make it _easier_ to land PRs, at the cost of turning the tree red periodically because post-submit checks catch something that the developer did not intend (or even know about). As a code author (or reviewer), you can optionally turn on post-submits to run eagerly (during pre-submit) by adding the label `test: all` (available only in the `flutter/engine` repo). + +Add the label, and push the PR (or a new commit, **the scheduler will not understand the label being added without a commit**): + +Screenshot 2023-12-07 at 1 55 48 PM + +

    + +For example, [#48158](https://github.com/flutter/engine/pull/48158) ran _all_ of the checks, including what is typically post-submits: + +Screenshot 2023-12-07 at 1 55 39 PM + +

    + +> [!WARNING] +> This increases the use of workers/capacity, and should be discouraged to be used on _all_ PRs. diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/contributing/Compiling-the-engine.md b/novelforge-project/agent-workspace/flutter/docs/engine/contributing/Compiling-the-engine.md new file mode 100644 index 0000000000000000000000000000000000000000..f209d34afad93d3f957c8305ac284b8491576444 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/contributing/Compiling-the-engine.md @@ -0,0 +1,330 @@ +_If you've never built the engine before, first see [Setting up the Engine development environment](Setting-up-the-Engine-development-environment.md)._ + +# Contents + +Depending on the platform you are making changes for, you may be interested in all or only some of the sections below: + +* [General Compilation Tips](#general-compilation-tips) +* [Using a custom Dart SDK](#using-a-custom-dart-sdk) +* [Compiling for Android](#compiling-for-android-from-macos-or-linux) +* [Compiling for iOS (from macOS)](#compiling-for-ios-from-macos) +* [Compiling for macOS or Linux](#compiling-for-macos-or-linux) +* [Compiling for Windows](#compiling-for-windows) +* [Compiling for Fuchsia](#compiling-for-fuchsia) +* [Compiling for the Web](#compiling-for-the-web) +* [Compiling for testing](#compiling-for-testing) + +## General Compilation Tips + +- For local development and testing, it's generally preferable to use `--unopt` builds. + These builds will have additional logging and checks enabled, and generally use build + and link flags that lead to faster compilation and better debugging symbols. + If you are trying to do performance testing with a local build, do not use the `--unopt` + flag. +- Link Time Optimization: Optimized builds also perform Link Time Optimization of all + binaries. This makes the linker take a lot of time and memory to produce binaries. If + you need optimized binaries but don't want to perform LTO, add the `--no-lto` flag. +- Android and iOS expect both a `host` and `android` (or `ios`) build. It is critical to + recompile the host build after upgrading the Dart SDK (e.g. via a `gclient sync` after + merging up to head), since artifacts from the host build need to be version matched to + artifacts in the Android/iOS build. +- Web, Desktop, and Fuchsia builds have only one build target (i.e. `host` or `fuchsia`). +- Make sure to exclude the `out` directory from any backup scripts, as many large binary + artifacts are generated. This is also generally true for all of the directories outside + of the `engine/src/flutter` directory. + +## Using a custom Dart SDK + +When targeting the host and desktop, on CI we use a pre-built Dart SDK vended by the Dart team. +To build and use the SDK from the Dart sources downloaded by `gclient sync`, after editing those +source files, pass the flag `--no-prebuilt-dart-sdk` to `//flutter/tools/gn`. + +## Compiling for Android (from macOS or Linux) + +These steps build the engine used by `flutter run` for Android devices. + +Run the following steps, from the `src` directory created in [Setting up the Engine development environment](Setting-up-the-Engine-development-environment.md): + +1. `git pull upstream main` in `src/flutter` to update the Flutter Engine repo. + +2. `gclient sync` to update dependencies. + +3. Prepare your build files + * `./flutter/tools/gn --android --unoptimized` for device-side executables. + * `./flutter/tools/gn --android --android-cpu arm64 --unoptimized` for newer 64-bit Android devices. + * `./flutter/tools/gn --android --android-cpu x86 --unoptimized` for x86 emulators. + * `./flutter/tools/gn --android --android-cpu x64 --unoptimized` for x64 emulators. + * `./flutter/tools/gn --unoptimized` for host-side executables, needed to compile the code. + * On Apple Silicon ("M" chips), add `--mac-cpu arm64` to avoid using emulation. This will generate `host_debug_unopt_arm64`. + +> 💡 **TIP**: When developing on a Mac with ARM (M CPU), prefer `host_debug_unopt_arm64`. +> +> You can continue to use `host_debug_unopt` (required for Intel Macs), but the engine will be run under Rosetta +> which may be slower. See [Developing with Flutter on Apple Silicon](../../platforms/desktop/macos/Developing-with-Flutter-on-Apple-Silicon.md) +> for more information. + +4. Build your executables + * `ninja -C out/android_debug_unopt` for device-side executables. + * `ninja -C out/android_debug_unopt_arm64` for newer 64-bit Android devices. + * `ninja -C out/android_debug_unopt_x86` for x86 emulators. + * `ninja -C out/android_debug_unopt_x64` for x64 emulators. + * `ninja -C out/host_debug_unopt` (or `ninja -C out/host_debug_unopt_arm64`, see above) for host-side executables. + * These commands can be combined. Ex: `ninja -C out/android_debug_unopt && ninja -C out/host_debug_unopt` + * For MacOS, you will need older version of XCode(9.4 or below) to compile android_debug_unopt and android_debug_unopt_x86. If you only care about x64, you can ignore this + +This builds a debug-enabled ("unoptimized") binary configured to run Dart in +checked mode ("debug"). There are other versions, see [Flutter's modes](../Flutter's-modes.md). + +If you're going to be debugging crashes in the engine, make sure you add +`android:debuggable="true"` to the `` element in the +`android/AndroidManifest.xml` file for the Flutter app you are using +to test the engine. + +See [The flutter tool](../../tool/README.md) for instructions on how to use the `flutter` tool with a local engine. +You will typically use the `android_debug_unopt` build to debug the engine on a device, and +`android_debug_unopt_x64` to debug in on a simulator. Modifying dart sources in the engine will +require adding a `dependency_override` section in you app's `pubspec.yaml` as detailed +[here](../../tool/README.md#using-a-locally-built-engine-with-the-flutter-tool). + +Note that if you use particular android or ios engine build, you will need to have corresponding +host build available next to it: if you use `android_debug_unopt`, you should have built `host_debug_unopt`, +`android_profile` -> `host_profile`, etc. One caveat concerns cpu-flavored builds like `android_debug_unopt_x86`: you won't be able to build `host_debug_unopt_x86` as that configuration is not supported. What you are expected to do is to build `host_debug_unopt` and symlink `host_debug_unopt_x86` to it. + +### Compiling everything that matters on Linux + +The following script will update all the builds that matter if you're developing on Linux and testing on Android and created the `.gclient` file in `~/dev/engine`: + +```bash +set -ex + +cd ~/dev/engine/src/flutter +git fetch upstream +git rebase upstream/main +gclient sync +cd .. + +flutter/tools/gn --unoptimized --runtime-mode=debug +flutter/tools/gn --android --unoptimized --runtime-mode=debug +flutter/tools/gn --android --runtime-mode=profile +flutter/tools/gn --android --runtime-mode=release + +cd out +find . -mindepth 1 -maxdepth 1 -type d | xargs -n 1 sh -c 'ninja -C $0 || exit 255' +``` +For `--runtime-mode=profile` build, please also consider adding `--no-lto` option to the `gn` command. It will make linking much faster with a small sacrifice on the binary size and memory usage (which probably doesn't matter for debugging or performance benchmark purposes.) + +## Compiling for iOS (from macOS) + +These steps build the engine used by `flutter run` for iOS devices. + +Run the following steps, from the `src` directory created in the steps above: + +1. `git pull upstream main` in `src/flutter` to update the Flutter Engine repo. + +2. `gclient sync` to update dependencies. + +3. `./flutter/tools/gn --ios --unoptimized` to prepare build files for device-side executables (or `--ios --simulator --unoptimized` for simulator). + * This also produces an Xcode project for working with the engine source code at `out/ios_debug_unopt/flutter_engine.xcodeproj` + * For a discussion on the various flags and modes, see [Flutter's modes](../Flutter's-modes.md). + * Add the `--simulator-cpu=arm64` argument for an arm64 Mac simulator to output to `out/ios_debug_sim_unopt_arm64`. + +4. `./flutter/tools/gn --unoptimized` to prepare the build files for host-side executables. + * On Apple Silicon ("M" chips), add `--mac-cpu arm64` to avoid using emulation. This will generate `host_debug_unopt_arm64`. + +5. `ninja -C out/ios_debug_unopt && ninja -C out/host_debug_unopt` to build all artifacts (use `out/ios_debug_sim_unopt` for Simulator). + +See [The flutter tool](../../tool/README.md) for instructions on how to use the `flutter` tool with a local engine. +You will typically use the `ios_debug_unopt` build to debug the engine on a device, and +`ios_debug_sim_unopt` to debug in on a simulator. Modifying dart sources in the engine will +require adding a `dependency_override` section in you app's `pubspec.yaml` as detailed +[here](../../tool/README.md#using-a-locally-built-engine-with-the-flutter-tool). + +See also [instructions for debugging the engine in a Flutter app in Xcode](../Debugging-the-engine.md#debugging-ios-builds-with-xcode). + +## Compiling for macOS or Linux + +These steps build the desktop embedding, and the engine used by `flutter test` on a host workstation. + +1. `git pull upstream main` in `src/flutter` to update the Flutter Engine repo. + +2. `gclient sync` to update your dependencies. + +3. `./flutter/tools/gn --unoptimized` to prepare your build files. + * `--unoptimized` disables C++ compiler optimizations. On macOS, binaries are emitted unstripped; on Linux, unstripped binaries are emitted to an `exe.unstripped` subdirectory of the build. + +4. `ninja -C out/host_debug_unopt` to build a desktop unoptimized binary. + * If you skipped `--unoptimized`, use `ninja -C out/host_debug` instead. + +See [The flutter tool](../../tool/README.md) for instructions on how to use the `flutter` tool with a local engine. +You will typically use the `host_debug_unopt` build in this setup. Modifying dart sources in the engine will +require adding a `dependency_override` section in you app's `pubspec.yaml` as detailed +[here](../../tool/README.md#using-a-locally-built-engine-with-the-flutter-tool). + + +## Compiling for Windows + +> [!WARNING] +> You can only build selected binaries on Windows (mainly `gen_snapshot` and the desktop embedding). + +On Windows, ensure that the engine checkout is not deeply nested. This avoid the issue of the build scripts working with excessively long paths. + +1. Make sure you have Visual Studio installed (non-Googlers only). [Debugging Tools for Windows 10](https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-tools#small-classic-windbg-preview-logo-debugging-tools-for-windows-10-windbg) must be installed. + +2. `git pull upstream main` in `src/flutter` to update the Flutter Engine repo. + +3. Ensure long path support is enabled on your machine. Launch PowerShell as an administrator and run: +``` +Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -Force +``` + +4. If you are not a Google employee, you must set the following environment variables to point the depot tools at Visual Studio: +```shell +DEPOT_TOOLS_WIN_TOOLCHAIN=0 +GYP_MSVS_OVERRIDE_PATH="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community" # (or your location for Visual Studio) +WINDOWSSDKDIR="C:\Program Files (x86)\Windows Kits\10" # (or your location for Windows Kits) +``` +Also, be sure that Python27 is before any other python in your Path. + +5. `gclient sync` to update your dependencies. + +6. switch to `src/` directory. + +7. `python .\flutter\tools\gn --unoptimized` to prepare your build files. + * If you are only building `gen_snapshot`: `python .\flutter\tools\gn [--unoptimized] --runtime-mode=[debug|profile|release] [--android]`. + +8. `ninja -C .\out\

    ` to build. + * If you used a non-debug configuration, use `ninja -C .\out\ gen_snapshot`. + Release and profile are not yet supported for the desktop shell. + +## Compiling for Fuchsia + +### Build components for Fuchsia + +1. Building fuchsia is only supported on linux. You need to run `gclient config --custom-var=download_fuchsia_deps=True` then `gclient sync`. + +It will set `"download_fuchsia_deps": True` in `"custom_vars"` section in `.gclient` file, and download necessary binaries to build fuchsia components. + +2. If you'd like to run tests locally, also run `gclient config --custom-var=run_fuchsia_emu=True` then `gclient sync`. + +It will set `"run_fuchsia_emu": True` in `"custom_vars"` section in `.gclient` file, and download necessary binaries and images to run tests on fuchsia emulators. +You can set both `custom_vars` and run `gclient sync` only once. + +You will also need kvm enabled, or nested virtualization on the gcloud VMs. Fuchsia and the tests will all be executed on the qemu. + +3. Prepare and build + +``` +./flutter/tools/gn --fuchsia --no-lto +``` + + * It will create a `out/fuchsia_debug_x64`. + * Use `--fuchsia-cpu arm64` to build components for arm64. It will be created in a folder `out/fuchsia_debug_arm64`. + * Use `--runtime-mode=release` or `--runtime-mode=profile` to select other profiles as other platforms. + * Ignore `--no-lto` to use lto or link-time optimization. + +``` +ninja -C out/fuchsia_debug_x64 -k 0 +``` + + * It builds all but ignores known errors. + * Or specify following targets to avoid using `-k 0`. + +``` +flutter/shell/platform/fuchsia:fuchsia \ +flutter/shell/platform/fuchsia/dart_runner:dart_runner_tests \ +fuchsia_tests +``` + + * Use `autoninja` if it's available. + * `-C out/fuchsia_release_x64` for release build; other configurations are similar with a different folder name in `out/`. + +4. Run all tests locally + +``` +python3 flutter/tools/fuchsia/with_envs.py flutter/testing/fuchsia/run_tests.py +``` + + * It runs the tests in `out/fuchsia_debug_x64` by default. According to the configuration, it may take 5 minutes with regular gtest output to the terminal. + * Add `fuchsia_release_x64` at the end of the command for release build; other configurations are similar with a different folder name in `out/`. + +## Compiling for the Web + +For building the engine for the Web we use the [felt](https://github.com/flutter/engine/blob/main/lib/web_ui/README.md) tool. + +To test Flutter with a local build of the Web engine, add `--local-web-sdk=wasm_release` to your `flutter` command, e.g.: + +``` +flutter run --local-web-sdk=wasm_release -d chrome +flutter test --local-web-sdk=wasm_release test/path/to/your_test.dart +``` + +## Compiling for the Web on Windows + +Compiling the web engine might take a few extra steps on Windows. Use cmd.exe and "run as administrator". + +1. Make sure you have Visual Studio installed. Set the following environment variables. For Visual Studio use the path of the version you installed. + * `GYP_MSVS_OVERRIDE_PATH = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"` + * `GYP_MSVS_VERSION = 2017` +2. Make sure, depot_tools, ninja and python are installed and added to the path. Also set the following environment variable for depot tools: + * `DEPOT_TOOLS_WIN_TOOLCHAIN = 0` + * Tip: if you get a python error try to use Python 2 instead of 3 +3. `git pull upstream main` in `src/flutter` to update the Flutter Engine repo. +4. `gclient sync` to update your dependencies. + * Tip: If you get a git authentication errors on this step try Git Bash instead +5. `python .\flutter\tools\gn --unoptimized --full-dart-sdk` to prepare your build files. +6. `ninja -C .\out\` to build. + +To test Flutter with a local build of the Web engine, add `--local-web-sdk=wasm_release` to your `flutter` command, e.g.: + +``` +flutter run --local-web-sdk=wasm_release -d chrome +flutter test --local-web-sdk=wasm_release test/path/to/your_test.dart +``` + +For testing the engine again use [felt](https://github.com/flutter/engine/blob/main/lib/web_ui/README.md) tool +this time with felt_windows.bat. + +``` +felt_windows.bat test +``` + +## Compiling for testing + +### Dart tests + +To run dart tests, build the engine: + +``` +flutter/tools/gn --unoptimized +ninja -C out/host_debug_unopt/ +``` + +execute `run_tests` for native: +``` +python3 flutter/testing/run_tests.py --type dart +``` + +and `felt` for web: +``` +cd flutter/lib/web_ui +dev/felt test [test file] +``` + + +## Troubleshooting Compile Errors + +### Version Solving Failed + +From time to time, as the Dart versions increase, you might see dependency errors such as: + +``` +The current Dart SDK version is 2.7.0-dev.0.0.flutter-1ef444139c. + +Because ui depends on 1.0.0 which requires SDK version >=2.7.0 <3.0.0, version solving failed. +``` + +Running `gclient sync` does not update the tags, there are two solutions: +1. under `engine/src/third_party/dart` run `git fetch --tags origin` +2. or run gclient sync with with tags parameter: `gclient sync --with_tags` + +_See also: [Debugging the engine](../Debugging-the-engine.md), which includes instructions on running a Flutter app with a local engine._ diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/contributing/Setting-up-the-Engine-development-environment.md b/novelforge-project/agent-workspace/flutter/docs/engine/contributing/Setting-up-the-Engine-development-environment.md new file mode 100644 index 0000000000000000000000000000000000000000..6bf60feeb019c915e0fc9c893b712391d3adbc03 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/contributing/Setting-up-the-Engine-development-environment.md @@ -0,0 +1,176 @@ +_If you've already built the engine and have the configuration set up but merely need a refresher on +actually compiling the code, see [Compiling the engine](Compiling-the-engine.md)._ + +_If you are checking these instructions to refresh your memory and your fork of the engine is stale, +make sure to merge up to HEAD before doing a `gclient sync`._ + +# Getting dependencies + +Make sure you have the following dependencies available: + + * A Linux, macOS, or Windows host + * Linux supports cross-compiling artifacts for Android and Fuchsia, but not iOS. + * macOS supports cross-compiling artifacts for Android and iOS. + * Windows doesn't support cross-compiling artifacts for any of Android, Fuchsia, or iOS. + * `git` (used for source version control). + * An ssh client (used to authenticate with GitHub). + * `python3` (used by many of our tools, including `gclient`). + * **Chromium's + [depot_tools](https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up)** (Which includes gclient) + * Add the `depot_tools` directory to the *front* of your `PATH`. + * On macOS and Linux: `curl` and `unzip` (used by `gclient sync`). + * On Linux: The `pkg-config` package. + * On Windows: + - Visual Studio 2017 or later (required for non-Googlers only). + - [Windows 10 SDK](https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/) (required for non-Googlers only). Be sure to install the "Debugging Tools for Windows" feature. + * On macOS: + - Install the latest Xcode. + - On Apple Silicon arm64 Macs, install the Rosetta translation environment by running `softwareupdate --install-rosetta`. + - Install Oracle's Java JDK, version 1.8 or later. + +You do not need to install [Dart](https://www.dartlang.org/downloads/linux.html). +A Dart toolchain is automatically downloaded as part of the "Getting the source" +step. Similarly for the Android SDK, it is downloaded by the `gclient sync` step below. + +## Getting the source + +Run the following steps to set up your environment: + +> [!IMPORTANT] +> Non-Googler Windows users should set the following environment variables to point +> `depot_tools` to their Visual Studio installation directory: +> * `DEPOT_TOOLS_WIN_TOOLCHAIN=0` +> * `GYP_MSVS_OVERRIDE_PATH=C:\Program Files\Microsoft Visual Studio\2022\Community` +> * Use the path of your installation. + +Create a new directory to hold the source code and move into it. Here, we are using the "engine" directory. +```sh +mkdir engine; cd engine; +``` + +> [!IMPORTANT] +> On Windows, the following must be run as an Administrator due to [a known issue](https://github.com/flutter/flutter/issues/94580). + +Fetch the Flutter engine sources. This may take a while on a slow connection. Do **not** interrupt this process. Otherwise, a partial checkout cannot be resumed and you'll have to delete all the files including the hidden files in the engine directory and start over. +```sh +fetch flutter +``` +The [Flutter Engine](https://github.com/flutter/engine) repository resides at `src/flutter`. The convention is to refer to this repository as `upstream`. + +```sh +git -C src/flutter remote rename origin upstream +``` + +Optionally, if you are working with a fork of the engine, add that as a Git remote. + +```sh +git -C src/flutter remote add origin +``` + +The "Engine Tool" called `et` is useful when working with the engine. It is located in the `flutter/bin` directory in the source checkout. Add this to your `$PATH` in your `.rc`. + +### Additional Steps for Web Engine + +Amend the generated `.gclient` file in the root of the source directory to add the following: +``` +solutions = [ + { + # Same as above... + "custom_vars": { + "download_emsdk": True, + }, + }, +] +``` + +Now, run + +```sh +gclient sync +``` + +## Next steps: + + * [Compiling the engine](Compiling-the-engine.md) explains how to actually get builds, now that you have the code. + * [The flutter tool](../../tool/README.md) has a section explaining how to use custom engine builds. + * [Signing commits](../../contributing/Signing-commits.md), to configure your environment to securely sign your commits. + +## Editor autocomplete support + +### Xcode [Objective-C++] + +On Mac, you can simply use Xcode (e.g., `open out/host_debug_unopt/products.xcodeproj`). + +### VSCode with C/C++ Intellisense [C/C++] + +VSCode can provide some IDE features using the [C/C++ extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools). It will provide basic support on install without needing any additional configuration. There will probably be some issues, like header not found errors and incorrect jump to definitions. + +Intellisense can also use our `compile_commands.json` for more robust functionality. Either symlink `src/out/compile_commands.json` to the project root at `src` or provide an absolute path to it in the `c_cpp_properties.json` config file. See ["compile commands" in the c_cpp_properties.json reference](https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference). This will likely resolve the basic issues mentioned above. + +For example, in `src/.vscode/settings.json`: + +```json +{ + "clangd.path": "buildtools/mac-arm64/clang/bin/clangd", + "clangd.arguments": [ + "--compile-commands-dir=out/host_debug_unopt_arm64" + ], + "clang-format.executable": "buildtools/mac-arm64/clang/bin/clang-format" +} +``` + +... which is built with: + +```shell +# M1 Mac (host_debug_unopt_arm64) +./tools/gn --unopt --mac-cpu arm64 --enable-impeller-vulkan --enable-impeller-opengles --enable-unittests +``` + +For adding IDE support to the Java code in the engine with VSCode, see ["Using VSCode as an IDE for the Android Embedding"](#using-vscode-as-an-ide-for-the-android-embedding-java). + +### Zed Editor + +[Zed](https://zed.dev/) can be used to edit C++ code in the Engine. To enable analysis and auto-completion, symlink `src/out/compile_commands.json` to the project root at `src`. + +### cquery/ccls (multiple editors) [C/C++/Objective-C++] + +Alternatively, [cquery](https://github.com/cquery-project/cquery) and a derivative [ccls](https://github.com/MaskRay/ccls) are highly scalable C/C++/Objective-C language server that supports IDE features like go-to-definition, call hierarchy, autocomplete, find reference etc that works reasonably well with our engine repo. + +They(https://github.com/cquery-project/cquery/wiki/Editor-configuration) [supports](https://github.com/MaskRay/ccls/wiki/Editor-Configuration) editors like VSCode, emacs, vim etc. + +To set up: +1. Install cquery + 1. `brew install cquery` or `brew install ccls` on osx; or + 1. [Build from source](https://github.com/cquery-project/cquery/wiki/Getting-started) +1. Generate compile_commands.json which our GN tool already does such as via `src/flutter/tools/gn --ios --unoptimized` +1. Install an editor extension such as [VSCode-cquery](https://marketplace.visualstudio.com/items?itemName=cquery-project.cquery) or [vscode-ccls](https://marketplace.visualstudio.com/items?itemName=ccls-project.ccls) + 1. VSCode-query and vscode-ccls requires the compile_commands.json to be at the project root. Copy or symlink `src/out/compile_commands.json` to `src/` or `src/flutter` depending on which folder you want to open. + 1. Follow [Setting up the extension](https://github.com/cquery-project/cquery/wiki/Visual-Studio-Code#setting-up-the-extension) to configure VSCode-query. + +![](https://media.giphy.com/media/xjIrToRDVvMPvjkBcl/giphy.gif) + +### Using VSCode as an IDE for the Android Embedding [Java] + +1. Install the extensions vscjava.vscode-java-pack (Extension Pack for Java) and vscjava.vscode-java-dependency (Project Manager for Java). + +1. Right click on the `shell/platform/android` folder in the engine source and click on `Add Folder to Java Source Path`. This creates an anonymous workspace and turns those files from ["syntax mode"](https://code.visualstudio.com/docs/java/java-project#_syntax-mode) to "compile mode". At this point, you should see a lot of errors since none of the external imports are found. + +1. Find the "Java Dependencies" pane in your Explorer view. Use the "Explorer: Focus on Java Dependencies View" command if hidden. + +1. Refresh the view and find the "flutter_*" project. There should be a "_/shell/platform/android" source folder there. + +1. In the "Referenced Libraries" sibling node, click the + button, navigate to `engine/src/third_party/android_embedding_dependencies` and add the entire folder. This is the equivalent of adding + ``` + "java.project.referencedLibraries": [ + "{path to engine}/src/third_party/android_embedding_dependencies/lib/**/*.jar" + ] + ``` + to your VSCode's settings.json for your user or for your workspace. + +1. If you previously had a `shell/platform/android/.classpath`, delete it. + +## VSCode Additional Useful Configuration + +1. Create [snippets](https://code.visualstudio.com/docs/editor/userdefinedsnippets) for header files with [this configuration](https://github.com/chromium/chromium/blob/master/tools/vscode/settings.json5). This will let you use `hdr` keyboard macro to create the boiler plate header code. Also consider some of [these settings](https://github.com/chromium/chromium/blob/master/tools/vscode/settings.json5) and [more tips](https://chromium.googlesource.com/chromium/src/+show/lkgr/docs/vscode.md). + +2. To format GN files on save, [consider using this extension](https://marketplace.visualstudio.com/items?itemName=persidskiy.vscode-gnformat). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/impeller/Flutter-GPU.md b/novelforge-project/agent-workspace/flutter/docs/engine/impeller/Flutter-GPU.md new file mode 100644 index 0000000000000000000000000000000000000000..676f0b426b6618725eecd877eb8d247edd77c8ca --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/impeller/Flutter-GPU.md @@ -0,0 +1,49 @@ +**Flutter GPU** (previously referred to as "Dart GPU" or "Impeller Dart") is an effort to expose a low level graphics API in the Flutter Framework. + +Design doc: https://flutter.dev/go/impeller-dart + +Flutter GPU's runtime is a thin wrapper over [Impeller](README.md)'s HAL, from which custom renderers may be entirely built using Dart. Just like with Impeller, Flutter GPU shader bundles are compiled ahead of time using [impellerc](https://github.com/flutter/engine/tree/main/impeller/compiler). As such, Flutter GPU is only available on platforms that support Impeller. + +## Dart FFI + +Under the hood, the API communicates with Flutter Engine via Dart FFI, calling symbols publicly exported by libflutter and/or embedders. These symbols are prefixed with `InternalFlutterGpu`, and are considered unstable. Direct usage of the exported symbols is not supported and will break without notice; the only supported way to use Flutter GPU is by importing `package:flutter_gpu`. + +## Try out Flutter GPU + +Once released, Flutter GPU will be shipped as part of the Flutter SDK in the form of a Dart package called `flutter_gpu`. An early implementation of the `flutter_gpu` package is being developed under the [`lib/gpu` directory](https://github.com/flutter/engine/tree/main/lib/gpu) of the Flutter Engine repository. + +> [!CAUTION] +> _All_ aspects of Flutter GPU are subject to breakage or removal at any time without prior deprecation notice or viable feature replacement. DO NOT rely on Flutter GPU for production projects at this time, but DO have fun playing with it and sharing your experiments with the community. + +Flutter GPU is currently unfinished, extremely experimental, and not well documented. [bdero](https://github.com/bdero) is actively developing and testing Flutter GPU against the MacOS desktop embedder; shader compilation and import likely don't function correctly on other platforms yet. However, if you wish to experiment with Flutter GPU, it is possible to do so without a custom Engine build: + +1. Update your Flutter checkout to the latest version in the [master channel](https://docs.flutter.dev/release/upgrade#other-channels). +1. Clone [Flutter Engine](https://github.com/flutter/engine) and checkout the Engine commit that the Flutter master channel is currently pinned to. This can be found in the [`bin/internal/engine.version` file](https://github.com/flutter/flutter/blob/main/bin/internal/engine.version) of the main Flutter repository. + ```sh + git clone https://github.com/flutter/engine.git + cd engine + git reset --hard [PINNED_ENGINE_COMMIT] + ``` +1. Create a new Flutter project using the Flutter tool and add `flutter_gpu` as a dependency in `pubspec.yaml` with a local path pointing to the `lib/gpu` directory within the Flutter Engine repository cloned in step 2. For example: + ```yaml + dependencies: + flutter: + sdk: flutter + flutter_gpu: + path: ../engine/src/flutter/lib/gpu + ``` +1. From here, you can import the API and begin using it. + ```dart + import 'package:flutter_gpu/gpu.dart' as gpu; + ``` + Check out this [examples repository](https://github.com/bdero/flutter-gpu-examples), which includes an example of [drawing a triangle](https://github.com/bdero/flutter-gpu-examples/blob/master/lib/triangle.dart), among other things. + +## Reporting bugs + +If you run into issues while using Flutter GPU, please file a bug using the standard [bug report template](https://github.com/flutter/flutter/issues/new?template=2_bug.yml). Additionally, mention "Flutter GPU" in the title, label the bug with the `e: impeller` label, and tag [bdero](https://github.com/bdero) in the issue description. + +## Questions or feedback? + +If you have non-bug report questions surrounding Flutter GPU, there are several ways you can reach out to the developer: +* Create a thread in the #help channel of the [Discord server](../../contributing/Chat.md). Place "Flutter GPU" in the title of the thread and tag @bdero in the message. +* Send a Twitter DM to [@algebrandon](https://twitter.com/algebrandon). diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/impeller/Impeller-Scene.md b/novelforge-project/agent-workspace/flutter/docs/engine/impeller/Impeller-Scene.md new file mode 100644 index 0000000000000000000000000000000000000000..dd09db8c79019670a640d65f9424f6a602745d94 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/impeller/Impeller-Scene.md @@ -0,0 +1,19 @@ +We are excited to have you tinker on [the Impeller Scene Demo presented at Flutter Forward](https://www.youtube.com/live/zKQYGKAe5W8?feature=share&t=7048). While we spend time learning the use-cases and finalizing the API, the functionality for Impeller Scene is behind a compile-time flag. During this time, there are no guarantees around API stability. + +**Compiling the Engine** + +- Configure your Mac host to compile the Flutter Engine by [following the guidance in wiki](../contributing/Setting-up-the-Engine-development-environment.md). +- Ensure that you are on the [main branch of the Flutter Engine](https://github.com/flutter/engine/tree/main). +- Ensure that you are on the [main branch of the Flutter Framework](https://github.com/flutter/flutter/tree/main). +- Configure the host build: `./flutter/tools/gn --enable-impeller-3d --no-lto` +- Configure the iOS build: `./flutter/tools/gn --enable-impeller-3d --no-lto --ios` + - Add the `--simulator --simulator-cpu=arm64` flag to the iOS build if you are going to test on the simulator. +- Build host artifacts (this will take a while): `ninja -C out/host_debug` +- Build iOS artifacts (this will take a while): `ninja -C out/ios_debug` + - If targeting the simulator: `ninja -C out/ios_debug_sim_arm64` +- Clone the demo repository: `git clone https://github.com/bdero/flutter-scene-example.git` and move into the directory. +- Plug in your device or open `Simulator.app`, then run `flutter devices` to note the device identifier. +- Run the demo application: `flutter run -d [device_id] --local-engine ios_debug --local-engine-host host_debug` (or `ios_debug_sim_arm64` if you are running on the Simulator). + - On Silicon Macs, prefer `--local-engine-host host_debug_arm64` (adjusting your `ninja` command above accordingly) + +We hope to continue evolving the API and have it available on the stable channel soon! diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/impeller/README.md b/novelforge-project/agent-workspace/flutter/docs/engine/impeller/README.md new file mode 100644 index 0000000000000000000000000000000000000000..0f04e700ad935c131b843933349241af73ac97c1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/impeller/README.md @@ -0,0 +1,7 @@ +_For user information about Flutter's new rendering backend, check out [Impeller preview](https://docs.flutter.dev/perf/impeller)._ + +Team-facing documentation specific to Impeller: + +- [Setting up MoltenVK on macOS for Impeller](Setting-up-MoltenVK-on-macOS-for-Impeller.md) +- [Flutter GPU](Flutter-GPU.md) +- [Instructions for playing with the Impeller Scene demo|Impeller Scene](Impeller-Scene.md) diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/impeller/Setting-up-MoltenVK-on-macOS-for-Impeller.md b/novelforge-project/agent-workspace/flutter/docs/engine/impeller/Setting-up-MoltenVK-on-macOS-for-Impeller.md new file mode 100644 index 0000000000000000000000000000000000000000..2c0231e137c78df42efb11a4ced73fe39f567108 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/impeller/Setting-up-MoltenVK-on-macOS-for-Impeller.md @@ -0,0 +1,7 @@ +- Get the MoltenVK SDK from https://vulkan.lunarg.com/sdk/home#mac. +- Make sure to check off `System Global Installation`: +image + +- When running `flutter/tools/gn`, add the `--impeller-enable-vulkan` flag, e.g. `./flutter/tools/gn --impeller-enable-vulkan --unopt --mac-cpu arm64` + +You should now be able to build and run the Vulkan host tests, e.g. `out/host_debug_unopt_arm64/impeller_unittests --gtest_filter="*Vulkan*"`. diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/release/Code-signing-metadata.md b/novelforge-project/agent-workspace/flutter/docs/engine/release/Code-signing-metadata.md new file mode 100644 index 0000000000000000000000000000000000000000..4efd26a13ad4908b47a8adb10a625cc13918222a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/release/Code-signing-metadata.md @@ -0,0 +1,196 @@ +# Code signing + +This covers the process of how to add / update code signing metadata of flutter +engine binaries. + +## Overview + +Flutter engine binaries are built with GN and ninja, referencing pre-defined +configurations such as ci/builders +[JSON files](https://github.com/flutter/engine/blob/main/ci/builders/mac_host_engine.json). +During flutter releases, engineers need to code sign mac engine binaries to +assure users that they come from a known source, have not been tampered with, +and should not be quarantined by Gatekeepers. + +Each of the Flutter engine binaries are either code signed with entitlements, or +code signed without entitlements. (An entitlement, along with information from +the developer account, grant particular permissions to binaries, such as +capability to access the user's home automation network.) For example, impellerc +is code signed with flutter entitlements, whereas .dylib files are usually code +signed without entitlements. + +## Add / Update code signing metadata + +### Glossary + +1. BUILD.gn files: files that include build rules of GN targets. An example is + the + [BUILD.gn file of flutter engine](https://github.com/flutter/engine/blob/main/BUILD.gn). +2. leaf node of an engine binary: the minimal gn target that could produce such + an engine binary. That is, this target does not have any dependencies on + other gn targets that could build this engine binary. +3. dependencies: Every gn target could have dependencies on other gn targets. + The dependency of a gn target is defined in the `deps` field of the target's + build rule. + +### ways to generate engine binary + +Generally, there are two ways to generate an engine binary: + +1. Through build rules defined in BUILD.gn files. + +2. Through global generator scripts. (these scripts are normally .py files) + +To distinguish between the two, an engine binary is built through global +generator if it is listed in the `archives` -> `destination` field of the +builder JSON +([mac_ios_engine.json](https://github.com/flutter/engine/blob/main/ci/builders/mac_ios_engine.json) +or +[mac_host_engine.json](https://github.com/flutter/engine/blob/main/ci/builders/mac_host_engine.json)). +For example, `darwin-x64/FlutterEmbedder.framework.zip`. Whereas binaries built +with BUILD.gn files are listed among the `builds` field of the JSON file. For +example, `darwin-x64/artifacts.zip`. We will provide examples for both +scenarios. + +### To add / update code signing metadata in BUILD.gn files: + +1. Find the leaf node where the target engine binary is built. To do so, + Recursively trace the `deps` field of the engine artifact. The paths in + `deps` field of the GN target correspond to the paths of other GN targets + that are dependencies of the current GN target. + +2. Add / Update the `metadata` field of the leaf node. For a new engine binary: + + 2.1 if it should be code signed with entitlements, add [the name of the + engine binary] to the `entitlement_file_path` field in `metadata` . + + 2.2 if the binary shouldn't be code signed with entitlements, add [the name + of the engine binary] to the `without_entitlement_file_path` field in + `metadata` . + +3. If a `entitlement_file_path` or a `without_entitlement_file_path` field does + not exist: + + **note**: this step is only needed if the target includes solely binaries + that have never been code signed before. This step also requires some + background on flutter engine and gn build rules. + + Add a `metadata` field in the gn target of the leaf node, and put the name + of the binary in this field. e.g. + + ``` + metadata = { + entitlement_file_path = [ "libtessellator.dylib" ] + } + ``` + + In the same file that produces the engine artifact(zip file), add a build + rule to collect the data keys. e.g. + + ``` + generated_file("artifacts_entitlement_config") { + outputs = [ "$target_gen_dir/entitlements.txt" ] + + data_keys = [ "entitlement_file_path" ] + + deps = [ "//flutter/lib/snapshot:generate_snapshot_bin" ] + if (flutter_runtime_mode == "debug") { + deps += [ + "//flutter/impeller/compiler:impellerc", + "//flutter/impeller/tessellator:tessellator_shared", + "//flutter/shell/testing:testing", + "//flutter/tools/path_ops:path_ops", + ] + } + } + ``` + + Finally, embed the file with collected data keys in the zip artifact. e.g. + + ``` + if (host_os == "mac") { + deps += [ ":artifacts_entitlement_config" ] + files += [ + { + source = "$target_gen_dir/entitlements.txt" + destination = "entitlements.txt" + }, + ] + } + ``` + +#### Example + +Suppose impellerc is a binary that exist in a zip bundle called artifacts.zip. +Then impellerc is the name of the binary, and artifacts.zip is the flutter +engine artifact. + +1. Following step 1, the `deps` field of the GN target of artifacts.zip + includes the path of impeller dependency: + `//flutter/impeller/compiler:impellerc`. Following this path, we locate the + GN file at `flutter/impeller/compiler/BUILD.gn`, and find the leaf node that + builds impellerc: `impeller_component("impellerc")`. + +2. Following step 2, since `impellerc` should be code signed with entitlements, + we go to the `metadata` field of the impellerc target, and add the name + `impellerc` to the `entitlement_file_path` array inside the `metadata` + field. + +You can reference the +[BUILD.gn file of impellerc](https://github.com/flutter/engine/blob/main/impeller/compiler/BUILD.gn). + +### To add / update code signing metadata in global generator files: + +1. Find the generator script path listed under `generators` -> `tasks` -> + `script` of the ci/builder JSON files + ([mac_ios_engine.json](https://github.com/flutter/engine/blob/main/ci/builders/mac_ios_engine.json) + or + [mac_host_engine.json](https://github.com/flutter/engine/blob/main/ci/builders/mac_host_engine.json)). + + The generator script related to iOS is located at + `sky/tools/create_full_ios_framework.py`, and generator script related to + macOS is located at `sky/tools/create_macos_framework.py`. + +2. Add / Update the variables ending with `with_entitlements` / + `without_entitlements` suffix from the generator script you found in step + one. + + As an example, you can find variables `ios_file_without_entitlements` and + `ios_file_with_entitlements` in sky/tools/create_full_ios_framework.py; and + find variables `filepath_without_entitlements` and + `filepath_with_entitlements` in sky/tools/create_macos_framework.py + + 2.1 if the binary should be code signed with entitlements, add [the name of + the binary] to the variable name with the `with_entitlements` suffix. + (`ios_file_with_entitlements` or `filepath_with_entitlements` depending on + which script) + + 2.2 if the binary shouldn't be code signed with entitlements, add [the name + of the binary] to the variable name with the `without_entitlements` suffix. + +#### Example + +Suppose `Flutter.xcframework/ios-arm64/Flutter.framework/Flutter` is a binary +that exist in a zip bundle called `ios/artifacts.zip`. + +1. Following step 1, in + [mac_ios_engine.json](https://github.com/flutter/engine/blob/main/ci/builders/mac_ios_engine.json), + it builds the artifact with the + `flutter/sky/tools/create_full_ios_framework.py` script. + +2. Following step 2, since + `Flutter.xcframework/ios-arm64/Flutter.framework/Flutter` shouldn't be code + signed with entitlements, we add the binary name + `Flutter.xcframework/ios-arm64/Flutter.framework/Flutter` to the + `ios_file_without_entitlements` variable. + +You can reference the generator script +[create_full_ios_framework.py](https://github.com/flutter/engine/blob/main/sky/tools/create_full_ios_framework.py). + +## Code signing artifacts other than flutter engine binaries + +The code signing functionality is implemented as [a recipe module in flutter recipes](https://cs.opensource.google/flutter/recipes/+/master:recipe_modules/signing/api.py). Therefore it can also be used to +code sign arbitrary flutter artifacts built through recipe, for example, flutter iOS usb dependencies. + +To code sign, after the artifacts are built, pass the file paths into +the code signing recipe module and invoke the function. An example is [how engine V2 invokes the code signing recipe module](https://cs.opensource.google/flutter/recipes/+/master:recipes/engine_v2/engine_v2.py;l=197-212). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/engine/testing/Testing-the-engine.md b/novelforge-project/agent-workspace/flutter/docs/engine/testing/Testing-the-engine.md new file mode 100644 index 0000000000000000000000000000000000000000..4426f805736d5051b1097be4ca1acf41aa3cf483 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/engine/testing/Testing-the-engine.md @@ -0,0 +1,350 @@ +## Testing the engine + +Pull requests submitted to the [engine repository](https://github.com/flutter/engine) +should be tested to prevent functional regressions. + +This guide describes how to write and run various types of tests in the engine. + +## C++ - core engine + +If you edit `.cc` files in https://github.com/flutter/engine/tree/main, +you're working on the core, portable Flutter engine. + +### Unit tests + +C++ unit tests are co-located with their header and source files. For instance, +`fml/file.h` and `fml/file.cc` have a `fml/file_unittest.cc` in the same +directory. When editing C++ files, look for its `_unittest.cc` sibling or create +one if there isn't one present. + +The engine repo has a unified build system to build C, C++, Objective-C, +Objective-C++, and Java files using [GN](https://gn.googlesource.com/gn/) and +[Ninja](https://ninja-build.org/). Individual `_unittest.cc` files are +referenced by the `BUILD.gn` build rule located in the folder or in an ancestor +folder. + +You can run the C++ unit tests with: + +``` +testing/run_tests.py --type=engine +``` + +from the `flutter` directory, after building the engine variant to test +(by default `host_debug_unopt`). To use a different variant (e.g. if you use +an Apple Silicon Mac), run: + +``` +testing/run_tests.py --type=engine --variant=host_debug_unopt_arm64 +``` + +Behind the scenes, those tests in the same directory are built together as a +testonly executable when you build the engine variant. The `run_tests.py` script +executes them one by one. + +C++ unit tests are executed during pre-submit on our CI system when submitting +PRs to the `flutter/engine` repository. + +#### Google Tests + +C++ unit tests in the core engine uses the [Google Test](https://google.github.io/googletest/primer.html) +C++ testing framework to facilitate C++ test discovery, assertions, etc. + +Since the engine is portable, these unit tests are compiled and run directly +on and for your host machine architecture. + +It's best practice to test only one real production class per test and create +mocks for all other dependencies. + +## Java - Android embedding + +If you edit `.java` files in the https://github.com/flutter/engine/tree/main/shell/platform/android +directory, you're working on the Android embedding which connects the core C++ +engine to the Android SDK APIs and runtime. + +### Robolectric JUnit tests + +For testing logic within a class at a unit level, create or add to a JUnit test. + +Existing Java unit tests are located at https://github.com/flutter/engine/tree/main/shell/platform/android/test +and follow the Java package directory structure. Files in the `shell/platform/android/io/flutter/` +package tree can have a parallel file in the `shell/platform/android/test/io/flutter/` +package tree. Files in matching directories are considered [package visible](https://docs.oracle.com/javase/tutorial/java/javaOO/accesscontrol.html) +as is the case in standard Java. + +When editing production files in `shell/platform/android/io/flutter/`, +the easiest step to add tests is to look for a matching `...Test.java` file in +`shell/platform/android/test/io/flutter/`. + +See the [Java unit test README](https://github.com/flutter/engine/blob/main/shell/platform/android/test/README.md) +for details. + +The engine repo has a unified build system to build C, C++, Objective-C, +Objective-C++, and Java files using [GN](https://gn.googlesource.com/gn/) and +[Ninja](https://ninja-build.org/). Because it doesn't use the more common +Gradle build system (which can't build C++ for instance), the tests and its +dependencies can't be directly built and run inside Android Studio like a +standard Android project. + +Instead, the engine provides the script: + +``` +testing/run_tests.py --type=java +``` + +to easily build and run the JUnit tests. + +This script only has a limited amount of smartness. If you've never built the engine before, it'll build the test and classes under test with a reasonable default configuration. If you've built the engine before, it'll re-build the engine with the same GN flags. You may want to double check your [GN flags](../contributing/Compiling-the-engine.md#compiling-for-android-from-macos-or-linux) if you haven't built the engine for a while. + +Behind the scenes, it invokes GN and Ninja to build a single .jar file +containing the test runner and dependencies. Then it uses the system `java` +runtime to execute the .jar. JDK v8 must be set as your `$JAVA_HOME` to run +the Robolectric tests. + +See [Setting-up-the-Engine-development-environment#using-vscode-as-an-ide-for-the-android-embedding-java](../dev/Setting-up-the-Engine-development-environment.md) +for tips on setting up Java code completion and syntax highlighting in Visual +Studio when working on the engine and tests. + +JUnit tests are executed during pre-submit on our CI system when submitting +PRs to the `flutter/engine` repository. + +#### Robolectric + +[Robolectric](http://robolectric.org/) is a standard Android testing library to +mock the Android runtime. It allows tests to be executed on a lightweight Java +JVM without booting a heavy Android runtime in an emulator. This allows for +rapid test iterations and allows our tests to run better on CI systems. + +All engine JUnit tests are Robolectric tests. This means all `android.*` imports +are mocked by Robolectric. If you need to modify how Android components (such as +an [android.view.View](https://developer.android.com/reference/android/view/View.html) +or an [android.app.Activity](https://developer.android.com/reference/android/app/Activity.html)) +behave in the test, see other tests for examples or see docs at +http://robolectric.org/ on how to interact with shadows. + +#### Mockito + +[Mockito](https://site.mockito.org/) is also a standard Android testing library +used to mock non-Android dependencies needed to construct and test interactions +with your your under-test production class. + +It's best practice to test only one real production class per test and +mock all other dependencies with mockito. + +The Mockito library is an available test dependency when writing Robolectric +tests. + +### Component integration tests + +Component tests test the interaction of multiple embedding Java classes together +but they don't test all production classes end-to-end. In the Android embedding +case, we test groups of Java classes by their function in `...ComponentTest.java` +files that are also in the `shell/platform/android/test/io/flutter/` +directory. C++ engine parts via JNI are not tested here. + +Component tests are also Robolectric JUnit tests and are invoked together with +unit tests when running: + +``` +testing/run_tests.py --type=java +``` + +JUnit component tests are executed during pre-submit on our CI system when +submitting PRs to the `flutter/engine` repository. + +### End-to-end tests + +End-to-end tests exercise the entire Android embedding with the C++ engine on +a real Android runtime in an emulator. It's an integration test ensuring that +the engine as a whole on Android is functioning correctly. + +The project containing the Android end-to-end engine test is at +https://github.com/flutter/engine/tree/main/testing/scenario_app/android. + +This test project is build similarly to a normal Flutter app. The Dart code is +compiled into AOT and the Android part is compiled via Gradle with a dependency +on the prebuilt local engine. The built app then installed and executed on an +emulator. + +Unlike a normal Flutter app, the Flutter framework on the Dart side is a +lightweight fake at https://github.com/flutter/engine/tree/main/testing/scenario_app/lib +that implements some of the basic functionalities of `dart:ui` Window rather +than using the real Flutter framework at `flutter/flutter`. + +The end-to-end test can be executed by running: + +``` +testing/scenario_app/run_android_tests.sh +``` + +Additional end-to-end instrumented tests can be added to https://github.com/flutter/engine/tree/main/testing/scenario_app/android/app/src/androidTest/java/dev/flutter/scenarios. + +If supporting logic is needed for the test case, it can be added to the +Android app under-test in https://github.com/flutter/engine/tree/main/testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios +or to the fake Flutter framework under-test in https://github.com/flutter/engine/tree/main/testing/scenario_app/lib. + +As best practice, favor adding unit tests if possible since instrumented tests +are, by nature, non-hermetic, slow and flaky. + +End-to-end tests on Android are run on presubmit for flutter/engine PRs. + +## Objective-C - iOS embedding + +If you edit `.h` or `.mm` files in the https://github.com/flutter/engine/tree/main/shell/platform/darwin/ios +directory, you're working on the iOS embedding which connects the core C++ +engine to the iOS SDK APIs and runtime. + +### XCTest unit tests + +For testing logic within a class in isolation, create or add to a XCTestCase. + +The iOS unit testing infrastructure is split in 2 different locations. The +`...Test.mm` files in https://github.com/flutter/engine/tree/main/shell/platform/darwin/ios +contain the unit tests themselves. The +https://github.com/flutter/engine/tree/main/testing/ios/IosUnitTests directory +contains an Xcode container project to execute the test. + +See the [iOS unit test README](https://github.com/flutter/engine/blob/main/testing/ios/IosUnitTests/README.md) +for details on adding new test files. + +The engine repo has a unified build system to build C, C++, Objective-C, +Objective-C++, and Java files using [GN](https://gn.googlesource.com/gn/) and +[Ninja](https://ninja-build.org/). Since GN and Ninja has to build the C++ +dependencies that the Objective-C classes reference, the tests aren't built by +the Xcode project in https://github.com/flutter/engine/tree/main/testing/ios/IosUnitTests. + +Instead, the engine provides the script: + +``` +testing/run_tests.py --type=objc +``` + +to easily build and run the XCTests. + +- Add the `--ios-variant ios_debug_sim_unopt_arm64` argument when using an arm64 Mac simulator (built with `--simulator-cpu=arm64`). + +This script only has a limited amount of smartness. If you've never built the engine before, it'll build the test and classes under test with a reasonable default configuration. If you've built the engine before, it'll re-build the engine with the same GN flags. You may want to double check your GN flags ([See compiling for ios from macos](../contributing/Compiling-the-engine.md#compiling-for-ios-from-macos)) if you haven't built the engine for a while. + +Behind the scenes, it invokes GN and Ninja to build the tests and dependencies +into a single `.dylib`. Then it uses Xcode and the Xcode project at +`testing/ios/IosUnitTests` to import and execute the XCTests in the `.dylib`. + +If you get an `AssertionError: libios_test_flutter.dylib doesn't exist` error, you may need to manually run the ninja command that is printed to the terminal. e.g. `ninja -C $FLUTTER_ENGINE/out/ios_debug_sim_unopt_arm64 ios_test_flutter` + +See [Setting-up-the-Engine-development-environment#editor-autocomplete-support](../dev/Setting-up-the-Engine-development-environment.md) +for tips on setting up C/C++/Objective-C code completion and syntax highlighting +when working on the engine and tests. + +To debug the XCTests, you can open the Xcode project at `testing/ios/IosUnitTests/IosUnitTests.xcodeproj` +and run the tests (such as via ⌘U). Note you cannot modify the test source and +build the tests in Xcode for reasons mentioned above. If you modify the test, +you need to run `testing/run_tests.py` again. + +XCTests are executed during pre-submit on our CI system when submitting PRs to +the `flutter/engine` repository. + +#### XCTest + +[XCTest](https://developer.apple.com/documentation/xctest) is the standard way +of creating unit tests in Xcode projects. Since iOS has x86 simulators and +since we can build x86 engines, we can execute the XCTests directly on macOS +in a headless simulator using the real iOS SDK. + +#### OCMock + +[OCMock](https://ocmock.org) is a standard iOS testing library used to mock +dependencies needed to construct and test interactions with your under-test +production class. + +It's best practice to test only one real production class per test and +mock all other dependencies with OCMock. + +The OCMock library is available as a test dependency when writing XCTests for +the engine. + +### End-to-end tests + +End-to-end tests exercise the entire iOS embedding with the C++ engine on +a headless iOS simulator. It's an integration test ensuring that +the engine as a whole on iOS is functioning correctly. + +The project containing the iOS end-to-end engine test is at +https://github.com/flutter/engine/tree/main/testing/scenario_app/ios. + +This test project is build similarly to a normal debug Flutter app. The Dart +code is bundled in JIT mode and is brought into Xcode with a `.framework` +dependency on the prebuilt local engine. It's then installed and executed on a +simulator via Xcode. + +Unlike a normal Flutter app, the Flutter framework on the Dart side is a +lightweight fake at https://github.com/flutter/engine/tree/main/testing/scenario_app/lib +that implements some of the basic functionalities of `dart:ui` Window rather +than using the real Flutter framework at `flutter/flutter`. + +The end-to-end test can be executed by running: + +``` +testing/scenario_app/run_ios_tests.sh +``` + +Additional end-to-end instrumented tests can be added to https://github.com/flutter/engine/tree/main/testing/scenario_app/ios/Scenarios/ScenariosTests. + +If supporting logic is needed for the test case, it can be added to the +Android app under-test in https://github.com/flutter/engine/tree/main/testing/scenario_app/ios/Scenarios/Scenarios +or to the fake Flutter framework under-test in https://github.com/flutter/engine/tree/main/testing/scenario_app/lib. + +As best practice, favor adding unit tests if possible since end-to-end tests +are, by nature, non-hermetic, slow and flaky. + +End-to-end tests on iOS are executed during pre-submit on our CI system when +submitting PRs to the `flutter/engine` repository. + +## Dart - dart:ui + +If you edit `.dart` files in https://github.com/flutter/engine/tree/main/lib/ui, +you're working on the 'dart:ui' package which is the interface between +the C++ engine and the Dart Flutter framework. + +### Unit tests + +Dart classes in https://github.com/flutter/engine/tree/main/lib/ui have matching +unit tests at https://github.com/flutter/engine/tree/main/testing/dart. + +When editing production files in the 'dart:ui' package, add to or create a +test file in `testing/dart`. + +To run the Dart unit tests, use the script: + +``` +testing/run_tests.py --type=dart +``` + +Behind the scenes, it invokes the engine repo's unified [GN](https://gn.googlesource.com/gn/) +and [Ninja](https://ninja-build.org/) build systems to use a version of the Dart +SDK specified in the `DEPS` file to create a `sky_engine` Dart package. Then it +compiles and runs each `_test.dart` file under `testing/dart`. + +To debug the test, open `src/out/ios_debug_sim_unopt/scenario_app/Scenarios.xcodeproj` in +Xcode and hit CMD+U. + +Dart unit tests are executed during pre-submit on our CI system when submitting +PRs to the `flutter/engine` repository. + +_See also: [Flutter Test Fonts](../../contributing/testing/Flutter-Test-Fonts.md)_ + +### Framework tests + +Dart tests in the `flutter/flutter` framework repo are also executed on top of +the `dart:ui` package and underlying engine. + +These tests are executed during pre-submit on our CI system when +submitting PRs to the `flutter/engine` repository. + +Assuming your `flutter` and `engine` working directories are siblings, you can run the framework tests locally using the following command from the root of your `flutter` repository: + +```bash +(cd packages/flutter; ../../bin/flutter test --local-engine=host_debug_unopt --local-engine-host=host_debug_unopt) +``` + +## Web engine + +Web tests are run via the `felt` command. More details can be found in [lib/web_ui/README.md](https://github.com/flutter/engine/blob/main/lib/web_ui/README.md#hacking-on-the-web-engine). diff --git a/novelforge-project/agent-workspace/flutter/docs/examples/Running-examples.md b/novelforge-project/agent-workspace/flutter/docs/examples/Running-examples.md new file mode 100644 index 0000000000000000000000000000000000000000..14cd4e4fb1c8db457a0049b6544407b4a4f340b1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/examples/Running-examples.md @@ -0,0 +1,12 @@ +To run an example, switch to that example's directory, and use `flutter run`. +Make sure you have an emulator running, or a device connected over USB and +debugging enabled on that device. + + * `cd examples/hello_world` + * `flutter run` + +You can also specify a particular Dart file to run if you want to run an example +that doesn't have a `lib/main.dart` file using the `-t` command-line option. For +example, to run the `widgets/spinning_square.dart` example in the [examples/layers](https://github.com/flutter/flutter/tree/main/examples/layers) +directory on a connected Android device, from that directory you would run: +`flutter run -t widgets/spinning_square.dart` \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Adding-a-new-Test-Shard.md b/novelforge-project/agent-workspace/flutter/docs/infra/Adding-a-new-Test-Shard.md new file mode 100644 index 0000000000000000000000000000000000000000..bbd7d9ba0b3789863328931c86bedc56b2e96c1b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Adding-a-new-Test-Shard.md @@ -0,0 +1,19 @@ +Further documentation on Flutter's build infrastructure can be found in . + +## Requirements for a Flutter/LUCI build + +A general outline of the requirements that a Flutter CI test shard has: + +1. On LUCI, test shards map to builders. Each test shard must have its own LUCI builder. For the Framework, these are defined in [framework_config.star](https://flutter.googlesource.com/infra/+/refs/heads/main/config/framework_config.star). Generally you will need to have both a pre-submit ("try" in LUCI terminology) builder and a post-submit ("prod") builder. +1. This LUCI builder will specify a "recipe" to run. These are [starlark](https://github.com/bazelbuild/starlark) scripts that determine the actual CI steps to run, and are defined in [flutter.googlesource.com/recipes](https://flutter.googlesource.com/recipes). Most Framework tests use the [flutter/flutter_drone.py](https://flutter.googlesource.com/recipes/+/refs/heads/main/recipes/flutter/flutter_drone.py) recipe. To learn how to edit these, see . +1. Builders are then added to [.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml). These files are read by [Flutter's build dashboard](https://flutter-dashboard.appspot.com/#/build), and are used for scheduling builds. + +## Steps to add a new Framework Test Shard + +It is important to land these changes in order to prevent any failing builds during the migration period: + +1. Framework tests are run by a Dart test runner called [test.dart](https://github.com/flutter/flutter/blob/main/dev/bots/test.dart) that lives in the framework repository. Any new test shards must first be added to this file. Merge this framework change. Note that sharding an existing test doesn't need to update test.dart. +1. Update [.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml) in the Framework tree to include the newly added builder following [CI_YAML.md](https://github.com/flutter/cocoon/blob/main/CI_YAML.md#adding-new-targets). Ensure that the "shard" and "subshard"/"subshards" properties match what was added to test.dart in the previous step. Verify that the entry is marked as `bringup: true`. New shards should always be marked in bringup to verify they are passing on master before being able to block the tree. Merge this change. Note that the new shard will not run in presubmit at this point as the target is with `bringup: true`. +1. Monitor the CI results of the new shard on the [Flutter build dashboard](https://flutter-dashboard.appspot.com/#/build). After 50 consecutive passing builds without any flakes, the flake bot will create a PR to remove the `bringup: true` parameter from `.ci.yaml` in the Framework tree. This will allow the test to block the tree, preventing breakages. With this change, the new shard will start running in presubmit automatically, unless specify `presubmit: false`. Note the flake bot runs once a week on Weds. + +Note: if a new post-submit target is renamed from an existing target, there is no need to follow the bringup process. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Autorollers.md b/novelforge-project/agent-workspace/flutter/docs/infra/Autorollers.md new file mode 100644 index 0000000000000000000000000000000000000000..2746826c1132b75aa43ce90646645d57ef657d39 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Autorollers.md @@ -0,0 +1,66 @@ +Several of our dependencies are automatically rolled (updated) by bots. + +## Clang to Engine + +We use an auto-roller for Clang on [Linux](https://autoroll.skia.org/r/clang-linux-flutter-engine) and [MacOS](https://autoroll.skia.org/r/clang-mac-flutter-engine) (Windows is pending availability of a Windows Clang package from the Fuchsia infra team). In case of build failures or other errors, ping the #hackers-engine channel on [Discord](../contributing/Chat.md). + +These rollers may fail if Clang catches a new compilation warning or error that it previously did not, or if a test relies on undefined behavior that has now changed in the new revision of Clang. It is best to resolve such issues ASAP to let the rollers continue and avoid a pile up of issues to resolve. + +The rollers work by updating a [CIPD](https://chrome-infra-packages.appspot.com/p/fuchsia/third_party/clang/) package version in the DEPS file. You can map from a CIPD version to a git revision by checking in CIPD. + +## Fuchsia SDK to Engine + +We use an auto-roller for the Fuchsia SDK on [Linux](https://autoroll.skia.org/r/fuchsia-linux-sdk-flutter-engine) and [MacOS](https://autoroll.skia.org/r/fuchsia-mac-sdk-flutter-engine) (Windows is pending availability of a Windows Fuchsia SDK package from the Fuchsia infra team). In case of build failures or other errors, ping the #hackers-engine channel on [Discord](../contributing/Chat.md). + +These rollers may fail if the Fuchsia SDK contains a breaking change. It is best to resolve such issues ASAP to let the rollers continue and avoid a pile up of issues to resolve. + +The rollers work by updating a [CIPD](https://chrome-infra-packages.appspot.com/p/fuchsia/sdk/core) package version in the DEPS file. You can map from a CIPD version to a JIRI snapshot or a git revision by checking in CIPD. + +## Skia to Engine + +We use an auto-roller for Skia rolls. It's status can be viewed at . In case of build failures or other errors, ping the Flutter-Skia chat channel. In case you get no response, you can login with an @google.com account and pause the roller (or ask someone with an @google.com account to do so). Please specify a descriptive reason and file a bug to re-enable the rollers as soon as possible. + +The bot updates the `skia_revision` line of . + +Skia also uses an auto-roller for Fuchsia; see . + +## Engine to Framework + +The engine is automatically rolled to the framework. It is configured by . + +The bot updates to point to the latest revision of the engine *whose artifacts built successfully*, as determined by looking at the [Engine Console](https://ci.chromium.org/p/flutter/g/engine/console). + + +### Making a breaking change + +Our [breaking change policy](../contributing/Tree-hygiene.md#handling-breaking-changes) disallows making changes to the engine that require changes to the framework. If you find the need to do this, you should instead make a soft-breaking change which you can land in multiple phases, as described in that process. + +### Doing a manual roll + +To roll the engine manually in the case you have a breaking change exemption, you'll need to land the change to `engine.version` manually in the same PR to the framework as the one where you fix the framework to work with the new API. + +When you change the `engine.version` file locally, you should delete `$FLUTTER_ROOT/bin/cache` and then run `flutter precache` to ensure that all your local artifacts and snapshots are updated. You can then run tests and be sure that they are running against the latest version of the assets you need. + +You may find it helpful to use the [`$ENGINE_ROOT/src/flutter/tools/engine_roll_pr_desc.sh`](https://github.com/flutter/engine/blob/main/tools/engine_roll_pr_desc.sh) to create a PR description. Doing this helps us track down what commits have rolled in more quickly, and properly link to other commits and pull requests for commenting and tracking. + +For example, to generate a description from hash deadbeef to beefdead: + +```bash +$ ./tools/engine_roll_pr_desc.sh deadbeef..beefdead +``` + +_See also: [Debugging the engine](../engine/Debugging-the-engine.md), which includes instructions on bisecting a roll failure._ + + +## Dart to Engine + +The Dart SDK is automatically rolled into the engine on a regular basis, following the steps laid out at the [Rolling Dart](Rolling-Dart.md) page. Since this process is a bit more involved, this autoroller does not use the Skia infrastructure and has a custom dashboard hosted at [go/dart-sdk-roller-dashboard](http://go/dart-sdk-roller-dashboard) (**note: this is likely only accessible from a machine on the Google network**). Using the dashboard, the autoroller can be paused, rolls can be triggered and cancelled, and rolls to a particular revision can be done. + +If there are any issues with this process or the autoroller dashboard, contact bkonyi@ or a member of the Dart VM team. + +## Flutter Pub Roller + +The bot account [flutter-pub-roller-bot](https://github.com/flutter-pub-roller-bot) runs the script at +https://github.com/flutter/flutter/blob/main/dev/conductor/bin/packages_autoroller on post-submit of +every framework commit to keep the pub dependencies in the [framework](https://github.com/flutter/flutter) +up to date. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Autosubmit-bot.md b/novelforge-project/agent-workspace/flutter/docs/infra/Autosubmit-bot.md new file mode 100644 index 0000000000000000000000000000000000000000..d75b10a85df1a906df38a41802f46b4b05da982f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Autosubmit-bot.md @@ -0,0 +1,168 @@ +# What is the Autosubmit Bot +The Flutter autosubmit bot is a tool that helps developers submit changes to the Flutter codebase. It automates the process of validating pull requests, test validation, and merging changes. This frees up developers to focus on writing code, and makes it easier to contribute to the Flutter project. + +# The Autosubmit Workflow +## Submitting a Pull Request +When a developer opens a pull request against any of the currently supported repositories, the cocoon backend will schedule tests and checks against that pull request. Rather than have the developer wait around to make sure all these tests and validations have completed, they can add a label and the Autosubmit bot will then queue that pull request for merge upon successfully passing all checks and validations. It will look something like this: + +1. You have a change you would like to contribute to flutter so you open a pull request. +2. Dozens of tests will start in the background against your changes. +3. You can add the `autosubmit` label to notify the Autosubmit bot that you would like it to merge the pull request upon successful validation. +4. If all validations are successful the Autosubmit bot will merge the pull request. + +## What Validations does the Autosubmit Bot Perform +### Code Reviews +The following are the rules for code reviews: +* If the author is a member of the GitHub `flutter-hackers` org then they will need **at least 1 other review** from a member of the `flutter-hackers` org, preferable a code owner from that repository. +* If the author is not a member of the GitHub `flutter-hackers` org then they will need **at least 2 other reviews** from members of the `flutter-hackers` org. +* If any reviewer requests changes then regardless of the number of approvals you have the pull request will not be merged by the Autosubmit bot and the `autosubmit` label will be removed until the reviewer who requested changes has approved the pull request. + +### Check Runs and Statuses +When a pull request is opened the Cocoon backend service will create a number of test runs that will be used to validate the code change that was submitted. Once the `autosubmit` label is added, the Autosubmit bot will check the statuses of those tests and will not merge the pull request until all of them have succeeded. If the any of the tests have failed the `autosubmit` label will be removed and the bot will no longer process that pull request. However the developer can re-trigger the test and add the label again to retry. + +### Other Checks +The Autosubmit bot will make several other checks to determine viability of the pull request up until the moment the pull request is queued for merge. They are: +* merge-ability - this is a GitHub status that says the code can be merged into the mainline branch. +* code conflicts - the bot will check for this and notify the author in the event conflicts happen before merging of the pull request. + +## Submitting a Revert Request +Autosubmit can also undo a change automatically simply by adding a label and a comment to a pull request. By adding the label 'revert' to a closed pull request the autosubmit bot will know to create a new request to revert this change and provide the specified reason in the body of the resulting revert request. + +## Conditions on creating a Revert Request +* The initiator of the revert request must be a member of the flutter-hackers team. +* The pull request being targeted for revert must have been merged less than 24 hours ago. +* The initiator of the revert must supply a reason for the revert. In order to do this they must add a comment that begins with 'Reason for revert:' and then supply a reason for the revert. + +If an empty reason is supplied then the 'revert' label will be removed and a comment supplied that you must supply a reason. + +# How it Works +## Basic Design +The Autosubmit bot is a service hosted within GCP that listens to GitHub's webhook events utilizing PubSub to store the messages it is interested in for further processing. A cron job calls the service every two minutes to look for new events from GitHub to see if any new pull requests need to be processed. + +If an event contains a new pull request we look at it for the 'autosubmit' label. If the pull request is valid, i.e. it came from GitHub then we send it in a message to our PubSub topic. + +A cron job will then call the Autosubmit service which will pull messages from the topic for processing and validation. If the pull request has passed the validations outlined above then the it will be merged and the PubSub message acknowledged. Autosubmit will no longer process that pull request. + +{TODO add a diagram of the components} + +## Configuration +The Autosubmit bot gets its configuration from a configuration file in the Orgs `.github` repository, specifically at `.github/autosubmit/autosubmit.yml`. These configurations govern the validations that the Autosubmit will perform and can be updated on the fly. These configs can also be overridden in other repositories so that the configuration can be tuned according to the repositories code owners liking. + +### Configuration Values +| Config Name | Optional | Type | Default Value | Explanation | +| --- | --- | --- | --- | --- | +| `default_branch` | Yes | String | 'main' | the default branch of the repository where pull requests are merged into. This can be provided in the configuration but if it is not, the bot will collect this from a call to the Github API. | +| `allow_config_override` | Yes | boolean | false | flag to allow specific repositories to override the values defined at the Org level for Autosubmit. See below. | +| `auto_approval_accounts` | Yes | Array of String | [ ] | the accounts that can submit pull requests automatically with automatic review approval. The values here should be reserved for trusted entities such as dependabot or org created accounts. | +| `approving_reviews` | Yes | integer | 2 | Integer, the number of reviews required before Auto-submit will merge a pull request upon approval. | +| `approval_group` | No | String | | the group a pull request author must get approval from in order to merge their pull request into the repository. See the rules on Approvals above. | +| `run_ci_checks` | Yes | boolean | true | a flag to determine whether or not to run target checks from ci.yaml or not. Not all repositories may want to do this initially. It is strongly recommended that this be set to True always. | +| `support_no_review_revert` | Yes | boolean | true | flag to toggle condition of reviews required on revert requests. Flutter does not require an initial review but other repos may not want this. | +| `required_checkruns_on_revert` | Yes | Array of String | [ ] | a list of check runs that Auto-submit will require to complete before merging a revert pull request regardless of what `support_no_review_revert` is set to. | + +### Configuration File Examples +Here is an example of a full Autosubmit bot configuration file: +``` +default_branch: main +allow_config_override: false +auto_approval_accounts: + - skia-flutter-autoroll + - engine-flutter-autoroll + - dependabot[bot] + - dependabot + - DartDevtoolWorkflowBot +approving_reviews: 2 +approval_group: flutter-hackers +run_ci: true +support_no_review_revert: true +required_checkruns_on_revert: + - ci.yaml validation +``` + +An example of the minimum configuration file +``` +approval_group: flutter-hackers +``` + +### Allowing Configuration Overrides +All repositories within an Org need not follow the same rules. Some may want more Approvals for a review, some may not want to allow Reverts without a review. Autosubmit allows this by allowing an override configuration file to be defined in the repositories .github directory. This is different than the Org .github repository. + +In order to override the configuration at the Org level, the `allow_config_override` flag must be set to `true`. This tells Autosubmit that it will need to look in the local repositories .github directory for an autosubmit.yml file. Specifically that file will need to be places here: `/.github/autosubmit/autosubmit.yml`. + +The following rules will apply to override values: +* Non array values will overwrite the Org level config. +* Array values will be additive, meaning that anything specified in the local config will be 'in addition to' what is defined in the Org level config. +* The number of approving reviews may not be set lower than what is defined in the Org level config. + +An example of Config Override: + +The Org level config is defined as follows: +``` +allow_config_override: true +auto_approval_accounts: + - skia-flutter-autoroll + - engine-flutter-autoroll +approving_reviews: 2 +approval_group: flutter-hackers +run_ci: true +support_no_review_revert: true +required_checkruns_on_revert: + - ci.yaml validation +``` + +At the repository level the team would like to add a few more accounts to the `auto_approval_accounts` for automation purposes and required 1 more review but also would like revert requests to require reviews. So the repository level config would define the new values as follows: +``` +auto_approval_accounts: + - dependabot[bot] + - dependabot + - DartDevtoolWorkflowBot +approving_reviews: 3 +support_no_review_revert: false +``` + +The final merged configuration for the repository would then become: +``` +auto_approval_accounts: + - skia-flutter-autoroll + - engine-flutter-autoroll + - dependabot[bot] + - dependabot + - DartDevtoolWorkflowBot +approving_reviews: 3 +approval_group: flutter-hackers +run_ci: true +support_no_review_revert: false +required_checkruns_on_revert: + - ci.yaml validation +``` + +# Where it Lives +The code for the Autosubmit bot is part of the flutter infra tools and can be found here: https://github.com/flutter/cocoon + +# Onboarding with Autosubmit {WIP} +### Installing the Autosubmit App +Currently the bot is not available from the Github marketplace so it is only available to support internal Google Repositories. +In order to install the App you will need to: +1. Open a request with the Flutter Infrastructure team and request 'Autosubmit Support for ORG/REPO' in the title. +2. A Flutter Infrastructure Admin will then install the App on that repository so you must look out for a request from Autosubmit for the installation. +3. Next the bot will need to be added as a Pusher to the repository it will be servicing. This is done in the Branch Protections section of the repository. + +### Adding the Configuration +After the app is installed you will need to place a configuration file into your ORGs .github repository. If you do not have one then you will need to create onc in your ORG level .github repository. + +Once the repository is created then you will need to add the Autosubmit configuration file at .github/autosubmit/autosubmit.yml. This is the primary location that Autosubmit will check first for the configuration. Repositories in your ORG can override the ORG level configs by placing a configuration file at repo/.github/autosubmit/autosubmit.yml. See the section on [configuration](Autosubmit-bot.md#configuration) above on the fields you may want to include in your configuration. + +Make sure that the App has read write access to the ORG level .github repository. + +### Configuring the Repository +In order for the Autosubmit bot to merge pull requests it will need write access on the repository and it will need to be added to the branch protection section on who can push to the repository. + +An 'autosubmit' label will also need to be created for the supported repository. You can visit this [page](https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/managing-labels#creating-a-label) to view instructions on creating the label. + +### Usage +Once the Autosubmit app has been installed in the repository, the configuration has been added and the target repository has been configured for write access you are ready to utilize the Autosubmit bot. In order to use the Autosubmit on pull requests in the target repository, follow these steps: +1. Open a pull request for review. +2. Make sure the pull request has tests as the bot will warn about this. +3. Get at least 1 other team member to review your pull request. +4. Once you have a review add the 'autosubmit' label. +5. Autosubmit will validate the pull request and if everything is okay it will automatically merge the pull request for you. No need to wait around to merge it! \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Dashboards.md b/novelforge-project/agent-workspace/flutter/docs/infra/Dashboards.md new file mode 100644 index 0000000000000000000000000000000000000000..3f2875918dee806b35a20bce7d87fa981d38fe09 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Dashboards.md @@ -0,0 +1,40 @@ +The index of Flutter dashboards is available at: https://flutter-dashboard.appspot.com/ + +## Using the Skia Performance dashboard + +There are two, one for [benchmarks derived from running flutter/flutter tests](https://flutter-flutter-perf.skia.org/e/), and one [derived from flutter/engine tests](https://flutter-engine-perf.skia.org/e/). + +### Viewing results for a specific benchmark + +Each data set (results from a benchmark value) consists of date/value pairs associated with a set of parameters. These parameters include things like the branch that was being tested, the benchmark test name ("test"), and the specific value ("sub_result"). There are other parameters but they aren't important (see below). + +1. Click Query. +2. A dialog shows, with a "Filter" text field focused. Type into that field the parts of the benchmark name you want to see that you remember. +3. Click "test" in the list box. This causes a second list box to appear. +4. Select the specific test from the list box that you care about. +5. Refocus the "Filter" text field, and type the name of the specific data point (the sub_result name) you care about. +6. Click "sub_result" in the list box. +7. Select the specific sub_result that you care about. +8. Click "Time Range", then "Date Range". +9. Click the calendar icon next to the "Begin" text field. (Don't just type in a new date, because https://bugs.chromium.org/p/skia/issues/detail?id=11279.) +10. Select the start date you care about. +11. Click "Plot". + +You can navigate the X axis of the graph using WASD. + + +### Parameters + +The parameters for a data set are as follows: + +sub_result: the specific data stream provided by the test. Tests can provide multiple data points, in a JSON map; each key in that map becomes a sub_result in the Skia Perf system. + +branch: the branch that was being tested. + +config: always "default". + +originId: always "devicelab" except for data that was migrated from the old database, which are labeled "legacy-flutter". + +test: the name of the test that ran to collect the data. + +unit: in theory, the units in which the data was collected (so each sub_result should only ever be associated with one unit). In practice this parameter is often incorrect. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-FirebaseLab-Tests.md b/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-FirebaseLab-Tests.md new file mode 100644 index 0000000000000000000000000000000000000000..d0b16a6eeba97c04d6d274e76eed78c2f1ba6a75 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-FirebaseLab-Tests.md @@ -0,0 +1,95 @@ +## FirebaseLab Tests + +Flutter FirebaseLab tests are used to build flutter applications and to run them using different versions of emulators and physical devices. + +These tests consist of two parts: + +* [Firebaselab recipe](https://flutter.googlesource.com/recipes/+/refs/heads/main/recipes/firebaselab/firebaselab.py) +* [.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml#L413) configuration file + +The recipe supports three properties: **physical\_devices** to specify actual hardware connected to firebase infra to run tests, **virtual\_devices** to specify the virtual devices(avd) to use and **task\_name** for selecting the integration test to build. + +physical\_device and virtual\_device are strings that take the **MODEL\_ID** format defined by firebase. Use `gcloud firebase test android models list` (assuming you have [gcloud](https://cloud.google.com/sdk/gcloud) installed) for a list of possible model id’s. + +Task name is the subdirectory of [dev/integration\_tests](https://github.com/flutter/flutter/tree/main/dev/integration_tests) (e.g. android\_views, channels, etc ) that contains the integration test to build. + +The following is an example of the properties format: + +```json +physical_devices: >- + [ + "--device", "model=oriole,version=33", + "--device", "model=griffin,version=24" + ], +virtual_device: >- + [ + "--device", "model=Nexus5,version=21", + "--device", "model=Nexus6P,version=27" + ] +``` + +The recipe executes the following workflow: + + + +1. Reads **physical\_devices** property and if not empty it builds an app bundle for the integration test referenced by **task\_name**. +2. Reads **virtual\_devices** property and if not empty it builds an apk for the integration test. Apks are built for virtual\_devices to prevent them from picking the wrong binary and using runtime translation. +3. Uses the `gcloud firebase` command to upload the binary and delegates the execution of the test to firebase lab. +4. The gcloud command blocks until the execution is complete +5. The recipe reads the logcat and the test succeeds if no `E/flutter` is found in the logcat file. +6. If the test fails it retries for maximum of 3 times +7. The recipe also supports [infra\_failure\_codes = (1, 15, 20)](https://firebase.google.com/docs/test-lab/ios/command-line#script-exit-codes) to prevent firebaselab infrastructure failures from closing the tree. + + +## Prerequisites (googlers) + +This is only required for manually running the steps + +* [Install gcloud CLI](https://cloud.google.com/sdk/docs/install) +* Request access on demand write access to `flutter-infra-staging` +* Build the application and run the gcloud command. You can check the [firebaselab recipe](https://flutter.googlesource.com/recipes/+/refs/heads/main/recipes/firebaselab/firebaselab.py) for the details. + +## Adding a Firebaselab Test + +* Step 1: Select the integration test to use from [dev/integration\_tests](https://github.com/flutter/flutter/tree/main/dev/integration_tests) +* Step 2: Select the physical and virtual devices to run the test on. You can use `gcloud firebase test android models list` and `gcloud firebase test ios models list` to find the available devices. +* Step 3: Write a .ci.yaml target configuration in the [flutter/flutter .ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml) file providing the task\_name, virtual\_devices, physical\_devices and recipe properties. +* Step 4: Create a PR with the new target. The presubmit checks will run basic validations on yaml format. +* Step 5: Wait for the change to propagate. +* Step 6: Fix any potential issues and remove `bringup: true` to validate the changes end to end in presubmit. + +The following is an example of a full target: **Linux firebase_oriol33_abstract_method_smoke_test**. By convention the name should follow the format “<host os> firebase\_<model id>\_<taskname>” + +In the example below `recipe: firebaselab/firebaselab` refers to the recipe to use to run the test and should probably always be the same, `dependencies` refers to the android sdk to use for the test, in general all tests should use the same android sdk unless specifically testing something that changes across android sdk versions, `task_name` refers to the integration test to use see the definition above for where to find the code that is run, `physical_devices` `virtual_devices` are defined above. + +```yaml + - name: Linux firebase_oriol33_abstract_method_smoke_test + # This is required for new tests to allow the + # configuration to propagate. + bringup: true + recipe: firebaselab/firebaselab + # The unit for timeout is minutes. 1 hour is enough + # for most use cases unless the test is using a device + # with low capacity and the queue is expected to be + # longer than 30 minutes. + timeout: 60 + Properties: + # These top level dependencies are shared between firebaselab + # tests. For the current values you can copy paste the + # dependencies from another firebaselab target. Changing these + # values are only necessary when upgrading to a new android sdk + # version. + dependencies: >- + [ + {"dependency": "android\_sdk", "version": "version:33v6"} + ] + # Use for metrics collection and to be able to filter tasks** + # in swarming. + tags: > + ["firebaselab"] + task_name: abstract_method_smoke_test + physical_devices: >- + ["--device", "model=oriole,version=33"] + virtual_devices: >- + [] +``` \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-Framework-Gardener-Rotation.md b/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-Framework-Gardener-Rotation.md new file mode 100644 index 0000000000000000000000000000000000000000..e6bf0f9a25d42304325d2acdc2a60473b111c8a4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-Framework-Gardener-Rotation.md @@ -0,0 +1,185 @@ +The framework gardener role currently makes use of several tools and communication channels only available to Google employees. See [On-call scheduling for Flutter] for an overview of work required to make this process more open. + +## Objective + +The framework gardener's role is to eliminate impediments to engineering velocity on the framework, tool, and related teams working on the [Flutter framework][flutter/flutter] repository, to unblock rolls into the repository, and to minimize the latency with which critical fixes arrive in our customers' hands. To that end, we maintain a rotation so that there is a clear owner and point of contact for Flutter repo issues, and so that engineers can plan their work around an assumption of reduced productivity during their rotation. + +The framework gardener's core responsibilities are: +* Keep the framework tree green to keep developers, upstream autorollers, and the release process unblocked. +* Ensure others are informed of issues which may affect them. +* Ensure bugs/investigations are delegated and taken care of by the right person, which may be themself. + +Gardener responsibility does not include: +* Work beyond working hours. **Tree redness does not trump work-life balance.** Contributors may escalate issues outside of the gardener's working hours, but the gardener is not responsible for responding until the next work day. +* Personally investigate issues or fix bugs, unless the right person to investigate and fix is the gardener themself. + +As such, the gardener should use their badge and hat to: +* Aggressively roll back problematic changes. +* Delegate investigations/issues to the right engineer(s) on the team, and follow-up. +* Detect infrastructure issues that cause test failures and flakiness and report to the infrastructure team. +* Notify the engine sheriff when an engine roll causes the [flutter/flutter] tree to close. +* Proactively communicate issues/status to others upstream/downstream. + +## Rotation +Rotations are managed in the [Rotations tool]. The [Framework Gardener calendar] can be added to your calendar. Both of these links are currently Google internal. + +Team members are not expected to participate in multiple Flutter rotations. For example, those on the engine rotation are exempt and vice versa. New team members should be added to a single rotation, depending on the team to which they belong. + +Before heading out on holiday, or if you get to your shift and find you can't do it, check the upcoming rotations and find a volunteer to swap shifts with while you're out. During some holiday periods when many team members are out and activity is particularly low on the tree, it may not be essential to have a dedicated gardener. + +## Periodic scan +Open the [Framework build dashboard]. +1. If the tree is closed, identify which test shards are failing. If there are yellow boxes with an exclamation point, that means that the failed tests are automatically re-running themselves. The tree is not fully closed until there are solid red boxes or red boxes with exclamation points. You can begin investigation as soon as you notice the tree going red, but it is suggested not to begin escalation until re-runs have completed. +1. Identify which test within the shard failed, and try to locate obvious errors or failures in the logs. This procedure will be different if the failure is in [devicelab](#handling-a-devicelab-failure) or [LUCI](#handling-a-luci-failure). +1. Update the [tree-status channel] on [Discord] with an announcement that the tree is red, the affected shard(s), and the failure message from the logs. +1. Cross reference the failure with the commit in question. If it is obvious the PR in question caused the failure, [revert](#reverting-commits) immediately. +1. Search through the [Flutter issues] for any existing issues with the same error. Some flakes are not specific to a specific test suite, but are nonetheless flakes and should not require a revert. +1. If the failure is happening on an engine roll, [escalate to the engine sheriff](#handling-an-engine-roll-failure). +1. If the test failure is not a known flake or infrastructure issue, [revert it immediately](#reverting-commits). +1. Escalate to the [test owner][TESTOWNERS]. +1. When the tree reopens, announce it in the [tree-status channel] on [Discord]. +1. If the tree is open, investigate green exclamation point squares, which are tests that have failed, rerun, and then passed. They may be [flaky and warrant an investigation](#handling-a-flaky-test). They also may have hit an intermittent infrastructure issue. +1. Check [benchmarks](#handling-a-benchmark-regression) for regressions. File issues and escalate. + +Unmute the [tree-status channel] and [hackers-infra channel] on [Discord]. Contributors are encouraged to escalate tree closures to you. Respond there as quickly as possible. + +### Escalation +Escalate to the [test owner][TESTOWNERS]. File GitHub issues if none are already open. +1. The title should include the name of the failing test. +1. Assign the issue to the test owner with a `P1` priority. +1. Add the `team` label. +1. Include links to the failing tests. Download any relevant logs and attach them to the issue, even if the link to the failing tests has the same information. This prevents the issues from becoming stale when logs are expunged. +1. @ mention the test owner in the [tree-status channel] on [Discord] with a link to the GitHub issue. If they are unavailable, escalate to another team member. Continue escalating until someone acknowledges the issue is being investigated. +1. Investigation updates and questions should not be posted in the [tree-status channel]. This channel should remain free of noise to discourage notification muting. + +### Handling a devicelab failure +See [Why Flutter Devicelab Tests Break]. +1. If devicelab square (Android, Apple, or Windows icon) is red or yellow, click the square and click the _Download All Logs_ button. Note these logs may include the output from several test runs, since they will automatically rerun on failure to detect flakes. +1. If many different tests are failing on the same agent, this may be an indication of infra failure. File an [infrastructure ticket] if needed. +1. Note that phones occasionally require manual reboot. If this occurs, escalate on the [hackers-infra channel] on [Discord] file an [infrastructure ticket]. + +### Handling a Firebase Test Lab failure +The devices in the Firebase test lab are not managed by the Flutter infra team. + +1. The LUCI logs will typically list the device that the test failed for. Check the logs for a Firebase link that will contain logs from the failing device. [Example log](https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8772117221814493585/+/u/test_execution/gcloud_firebase__2_/stdout). +1. If the failure described in the logs does not appear to be related to a recent commit, contact the [omnilab-ftl-flutter](https://groups.google.com/a/google.com/g/omnilab-ftl-flutter/about) group. +1. Alternatively, check the LUCI log for instructions on how to notify Firebase via Slack. + +### Handling a LUCI failure +1. If Chrome icon (LUCI) square is red, click the red square and _Open Log for Build #1234_ to see the failing test in LUCI. +1. File an [infrastructure ticket] if needed. + +### Reverting commits +If the test failure is not a known flake or infrastructure issue, revert the commit immediately. + +If the commit landed within the last 24 hours: +1. Locate the patch PR and add the `Revert` label. Our infrastructure will automatically create a revert PR and land it. + +If the commit could not be automatically reverted: +1. Create a revert pull request from the bad merged pull request via the "Revert" button at the bottom. +1. Add the `revert` label to the PR to allow the bot to land it without approval. +1. Add the original author to the as a reviewer so they are notified. If they are not a member of [flutter-hackers], also include the original pull request reviewers. +1. In "Related Issues" add a link to any GitHub issues that describe the failure. +1. @ mention the author in the [tree-status channel] with a link to the revert pull request. If they are unavailable, send an email. If they are not a [Flutter committer][flutter-hackers] and are not on Discord, escalate to the reviewers of the original pull request. +1. As soon as the `analyze-linux` test passes, merge it. You do not need to wait for all presubmit tests to pass, or for an LGTM. +1. Reopen any issues that were automatically closed by the original commit. Add a comment: "This has been reverted with pull request #1234." + +### Handling a flaky test +Flakes are particularly productivity-killing since they silently trigger all of the key problems the gardener is meant to prevent: red tree status. As such flakes should be treated in the same way a reproducible breakage is treated -- as though it were always failing. + +If you see a test failure that appears to be a flake: +1. Re-trigger the test. +1. If the build fails to fail (i.e. "passes"), it's a flake and should be treated as a failing test. +1. Follow the instructions in this guide to find or create a new GitHub issue. +1. If the test has neither been recently introduced, nor recently changed, disable the test. The test owner will turn it back on or delete the test as part of their investigation. + +### Handling an engine roll failure +If the failure is happening on an engine roll, contact the [Engine Sheriff chat] so the engine sheriff can locate and revert the engine or upstream commit(s) causing the issue. + +Coordinate with the engine sheriff on pausing and unpausing the [Engine to Framework autoroller] during this process. + +### Handling a benchmark regression +Check [framework benchmarks] for regressions. File issues and escalate. + +Review [engine benchmarks] for any regressions. Choose the _Triage_ item on the left, and walk through new issues. For each commit that caused a regression you'll see marks in columns corresponding to the regression --- those marks indicate whether the results at that commit are low or high. + +Click a mark, and you'll be taken to a popup with the plot of recent data around the commit in question. From here you can: +1. Choose _View Dashboard_ to see long term trends around the commit. (When in the dashboard you can use the WASD keys to zoom in and out). +1. Click the commit to get a sub-popup with a link that can take you to the commit in question. + +If there is a new regression not deemed to be noise in a benchmark: +1. [Add a new issue to Github][new issue] +1. Label the issue with `team: benchmark`, and `severe:regression` labels. Label it with the `severe:performance` label if the benchmark is a performance one. +1. Paste a link to the performance plot from skia-perf into the bug. This is a "permalink", and will help others see what you're seeing. +1. Determine the CL at which the regression started and label with which part of the codebase might be causing the problem and whoever submitted the CL if possible. +1. Attempt to determine the team who should receive the issue. Usually the suspect roll is a clue. +1. Assign an initial priority. + 1. Reserve `P0` for regressions significantly (1.5x or more) above the noted baselines, or with regular spikes that suggests a possible issue with the device lab. + 1. Reserve `P2` for issues where slow creep appears to be happening. +1. Note the bug ID in the comment where you address the regression in skia-perf and reject the benchmark (click the _X_). +1. Notify the target teams where you've identified regressions on [Discord], and include links. When you do so, make sure you @ someone (ideally the TL for that team) so that it's noticed. +1. Notify the Flutter engine sheriff and Flutter Hackers Discord chats with any issues you file. +If it's noise, accept the benchmark by clicking the checkbox in the triage details popup. + +### Handling a Skia gold failure +See the [golden test build breakage] guide. + +## Filing an infra ticket +1. Open a [new infra issue]. +1. Add a descriptive title. A message like "Add a LUCI builder for linux web engine" or "Debug gallery startup" is much more helpful than "quick request" or "test doesn't work?". +1. Clearly describe the issue or request in the description field. For example, if a ticket is requesting running several commands on the bots, the ticket should explain why, what commands are needed, on which bots and how to verify the results. +1. Add the `team: infra` label and a priority label: + * `P0` (immediate): Such as a build break or regression. + * Fix as soon as possible, before any other work. + * Should be very rare, and only used when critical work is blocked without a workaround. + * Ideally is downgraded to P1 as soon as a workaround is found. + * `P1` (high): Users are suffering but not blocked; or, an immediate-level incident will happen if this is not addressed (e.g., almost out of quota). + * Fix today (8 business hours). + * Degraded service (Build bots work but are slow to start). + * Time-sensitive requests. + * Should be relatively rare. + * Anything below `P1` is not suitable for the infra ticket queue and will be treated as a normal infra bug. +1. Add the project "Infra Ticket Queue". +1. Click the create button. No need to set an assignee; infra oncall will handle all new tickets. + +## Communication channels (public) +The bulk of communication happens on [Discord]. +* Tree closure escalation and announcements: [tree-status channel]. +* Infra issues: [hackers-infra channel] +* Infrastructure tickets: File an [infrastructure ticket]. + +## Communication channels (Google-internal) +* Engine issues: [🐣 Flutter Engine Sheriff ($USERNAME) ⛑️][Engine Sheriff chat] +* LUCI help chat: [LUCI Users][LUCI Users chat] + +## References +* [Flutter Engine Sheriff Playbook] (Google internal) +* [On-call scheduling for Flutter] + +[infrastructure ticket]: #filing-an-infra-ticket + +[flutter/flutter]: https://github.com/flutter/flutter +[Flutter issues]: https://github.com/flutter/flutter/issues +[TESTOWNERS]: https://github.com/flutter/flutter/blob/main/TESTOWNERS +[flutter-hackers]: https://github.com/orgs/flutter/teams/flutter-hackers +[golden test build breakage]: /docs/contributing/testing/Writing-a-golden-file-test-for-package-flutter.md#build-breakage +[new issue]: https://github.com/flutter/flutter/issues/new/choose +[new infra issue]: https://github.com/flutter/flutter/issues/new?template=6_infrastructure.yml + +[Framework build dashboard]: https://flutter-dashboard.appspot.com/#/build +[framework benchmarks]: https://flutter-flutter-perf.skia.org/e/ +[engine benchmarks]: https://flutter-engine-perf.skia.org/e/ + +[Discord]: https://discord.gg/BS8KZyg +[tree-status channel]: https://discord.com/channels/608014603317936148/613398423093116959 +[hackers-infra channel]: https://discord.com/channels/608014603317936148/608021351567065092 +[Engine Sheriff chat]: http://go/engine-sheriff +[LUCI Users chat]: https://mail.google.com/chat/u/0/#chat/space/AAAAXGgrwSo + +[Rotations tool]: https://rotations.corp.google.com/rotation/5721991649689600 +[Framework Gardener calendar]: https://calendar.google.com/calendar/render?cid=c_him0pti4q5k4h9999u2dv9oouk@group.calendar.google.com + +[Flutter Engine Sheriff Playbook]: https://goto.google.com/engine-sheriff +[On-call scheduling for Flutter]: https://docs.google.com/document/d/1i-11by4J3zvxWG3qLMm4MKfJ8DrjIJna6DPA9tBmJWc/edit#heading=h.w8bl5vic6x95 + +[Engine to Framework autoroller]: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll?tab=status diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-Infrastructure-Foundation.md b/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-Infrastructure-Foundation.md new file mode 100644 index 0000000000000000000000000000000000000000..2a843da52cf867b0e6ff6e62b536c3e43e442213 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-Infrastructure-Foundation.md @@ -0,0 +1,616 @@ +# Flutter Infrastructure Foundation + +The Flutter Infrastructure Foundation Team is responsible for setting up, maintaining and improving the low level infrastructure used to build, test and release Flutter. + + +## DeviceLab Hardware + +Flutter keeps a lab of test beds that include hosts and phones for all the supported platforms. These test beds are used to collect performance benchmarks and detect regressions. + +As of May 2023 the Flutter DeviceLab contains 99 test beds with the following hardware and software: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Host + Architecture + Phone + Count +
    Linux + X64 + Android + 36 +
    Windows + X64 + Android + 6 +
    Windows + Arm64 + Android + 1 +
    Windows + Arm64 + + 9 +
    Mac + X64 + iOS + 18 +
    Mac + X64 + + 2 +
    Mac + Arm64 + iOS + 12 +
    Mac + Arm64 + + 1 +
    Mac + X64 + Android + 9 +
    Mac + Arm64 + Android + 5 +
    + + + +## VMs + +Flutter uses Linux and Windows virtual machines to build and test Flutter. These VMs are auto-provisioned and distributed to 4 different pools. The following is the configuration distribution: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    LUCI pool + config + os + cpus + count + total cpus +
    luci.flutter.prod + e2-standard-32 + Linux +

    +32

    + +

    +15

    + +

    +480

    + +
    luci.flutter.prod + n1-standard-8 + Linux +

    +8

    + +

    +135

    + +

    +1080

    + +
    luci.flutter.try + e2-standard-32 + Linux +

    +32

    + +

    +30

    + +

    +960

    + +
    luci.flutter.try + n1-standard-8 + Linux +

    +8

    + +

    +137

    + +

    +1096

    + +
    luci.flutter.staging + e2-standard-32 + Linux +

    +32

    + +

    +4

    + +

    +128

    + +
    luci.flutter.staging + n1-standard-8 + Linux +

    +8

    + +

    +30

    + +

    +240

    + +
    luci.dart-internal.flutter + e2-standard-32 + Linux +

    +32

    + +

    +20

    + +

    +640

    + +
    luci.flutter.prod + e2-highmem-8 + Windows +

    +8

    + +

    +59

    + +

    +472

    + +
    luci.flutter.try + e2-highmem-8 + Windows +

    +8

    + +

    +130

    + +

    +1040

    + +
    luci.flutter.staging + e2-highmem-8 + Windows +

    +8

    + +

    +12

    + +

    +96

    + +
    luci.dart-internal.flutter + e2-highmem-8 + Windows +

    +8

    + +

    +20

    + +

    +160

    + +
    + + + + + +
    Totals + + + +

    +592

    + +

    +6392

    + +
    + + + +## Mac hostonly machines + +Mac machines are organized in a different category because they are provisioned in chrome labs and have no phones attached. The machine configurations are the following: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    LUCI pool + model + os + count +
    luci.flutter.prod + Macmini8,1 + Mac-12.6-21G115 +

    +28

    + +
    luci.flutter.prod + Macmini9,1 + Mac-12.6-21G115 +

    +31

    + +
    luci.flutter.try + Macmini8,1 + Mac-12.6-21G115 +

    +74

    + +
    luci.flutter.try + Macmini9,1 + Mac-12.6-21G115 +

    +71

    + +
    luci.flutter.staging + Macmini8,1 + Mac-12.6-21G115 +

    +5

    + +
    luci.flutter.staging + Macmini9,1 + Mac-12.6-21G115 +

    +7

    + +
    luci.dart-internal.flutter + Macmini8,1 + Mac-12.6-21G116 +

    +15

    + +
    luci.dart-internal.flutter + Macmini9,1 + Mac-12.6-21G117 +

    +2

    + +
    + + + +
    Totals + + +

    +233

    + +
    + + + +## Services + +Flutter Infrastructure Foundation owns the DeviceLab provisioning services, maintains Flutter LUCI service configurations, and provides lab maintenance services. + +This is the list of services with their descriptions: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Service + Type + Description +
    SALT + Owned + Configuration provisioning service used to push configurations as code for host and devices for all the supported platforms. +
    Machine Provider + Configuration management + Configuration service to provision, spin up and tear down virtual machines. +
    LUCI swarming bot + Owned + Scripts used to set up and tear down LUCI services on the supported platforms. +
    Capacity planning and delivery + Owned + Budgeting for lab expansions, delivery of new capacity, and decommissioning of end of life hardware. +
    Lab maintenance + Owned + Faulty hardware replacement, hardware recovery and reprovisioning. +

    +Lab migrations planning and execution. +

    Onboarding of new platforms + Owned + Creating provisioning SALT scripts and onboarding on LUCI services. +
    Device doctor + Owned + Phone configuration validation and device recovery. +
    \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-Installation-Bundles.md b/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-Installation-Bundles.md new file mode 100644 index 0000000000000000000000000000000000000000..4bc5dd2362bd60ea728af44cf139010c6641d3ca --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Flutter-Installation-Bundles.md @@ -0,0 +1,25 @@ +Flutter has installation bundles which you can download and install for the [`beta` channel](../releases/Flutter-build-release-channels.md). (They were previously also available for the `dev` channel, but [the dev channel has been retired](https://medium.com/flutter/whats-new-in-flutter-2-8-d085b763d181#34c4).) + +The installation bundles were designed to allow you to have a completely populated environment without having to first download the Git repository, then compile the flutter tool, etc. + +Creating an installation bundle consists of running the following steps. These steps will pre-cache all of the necessary components for working offline. One could follow these steps e.g. to create an installation bundle for the `master` branch. + +1) _OPTIONAL_: Set and export the `PUB_CACHE` environment variable to point to the location where you would like your pub cache to be stored. If you don't set this, it will be stored in pub's default location in your home directory (varies based on your OS). Alternatively, if you create the `flutter/.pub-cache` directory before any commands that invoke `pub` (e.g. the `flutter packages` command), then the flutter tool will automatically use it, and you won't have to set PUB_CACHE in your environment. +1) _WINDOWS ONLY_: Download and install a command line version of Git. Windows doesn't come with git pre-installed, so you'll have to download it from one of the many sources on the Internet. +1) `git clone -b master https://github.com/flutter/flutter.git` to clone the Flutter Git repo into the directory "flutter" in the current directory. +1) Change directories into the newly created "flutter" directory. +1) Add the Flutter `bin` directory to your path: + - Windows: `set PATH="%PATH%;%CD%\bin\flutter"` + - Other platforms: `export PATH="$PATH:$PWD/flutter"` +1) `flutter doctor` to check your installation and build the initial snapshot of the `flutter` tool. Install any missing software it tells you about, such as the Android SDK, or XCode tools. +1) `flutter update-packages` will download all of the pub package dependencies needed to build any of the packages in the Flutter main distribution. +1) `flutter precache` will make sure that the `flutter` tool's cache of binary artifacts is up-to-date. +1) _OPTIONAL_: `flutter ide-config --overwrite` will generate and update IDE configuration files for the Flutter repo. You only need to do this if you are using an IDE like IntelliJ or VS Code. +1) In a temporary directory, run `flutter create --template=app app_sample`, `flutter create --template=package package_sample`, and `flutter create --template=plugin plugin_sample`. You may then remove the app_sample, package_sample, and plugin_sample directories. This will populate the pub cache with any additional packages needed for creating new flutter projects using each of those templates. + +Another alternative to the above steps is to run the prepare_package.dart script directly (which is what we use to create the installation bundles in the first place). You would invoke that script like this: + +1) Go as far as the `flutter doctor` step in the above steps (or if you have a working flutter repo already, you can skip that: it can be from another channel, but use a fairly current one for best results). +1) Invoke `./bin/cache/dart-sdk/bin/dart ./dev/bots/prepare_package.dart --temp_dir $TMPDIR --revision $REVISION --branch master --output $PWD`, from the `flutter` root, where `TMPDIR` is set to a directory where there are several gigabytes of free space, and `REVISION` is set to the 40-character git hash of the revision you wish to be working on. + +This will build an archive bundle in the current directory that has done all of the above steps, and contains the `master` branch. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/GitHub-Action-Workflows.md b/novelforge-project/agent-workspace/flutter/docs/infra/GitHub-Action-Workflows.md new file mode 100644 index 0000000000000000000000000000000000000000..926e7377566b2df58579941fc393096568f8bbdd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/GitHub-Action-Workflows.md @@ -0,0 +1,59 @@ +# GitHub actions at Flutter + +Action workflows can be enabled by writing a yaml file inside .github/workflows +folder of a given repository. These workflows run arbitrary code from GitHub +repositories and with read/write permissions in the repository assets. This can +be dangerous as anyone with write permissions to the repository can enable +workflows using malicious code. To mitigate this only workflows with pinned +commits within an allowed list can be executed. + +Flutter repositories have workflows enabled with readonly ACLs by default. The +ACLs can be overwritten providing specific permissions in the configuration +file. + +Determining whether a given workflow is secure or not goes well beyond flutter's +capacity and it is the responsibility of the person enabling the workflow to +diligently check the workflow for any potential security issues. + +## Adding a new GitHub Actions workflow + +To add a new workflow please open a new bug using the [ticket queue process](Infra-Ticket-Queue.md). The following data points are required: + +* Description/reason to enable this workflow +* workflow repository +* pinned commit + +## Updating a GitHub Actions workflow + +To update an existing workflow please open a new bug using the [ticket queue process](Infra-Ticket-Queue.md). The following data points are required: + +* Description/reason to update the pinned version +* workflow/old_pinned_version +* workflow/new_pinned_version + +## flutter/engine and flutter/flutter + +***flutter/engine*** please do not add any action workflows to this repository. +The preferred way of building and testing is to use LUCI. This allows to plan +for scalability, security and maintainability. + +***flutter/flutter*** the main use of workflows in this repo is to process bugs, +projects, etc. Please do not use action workflows to build, run tests or release +artifacts. + +## Checklist + +New workflow: + +* Does it have an associated bug? +* Was the workflow/commit added to the allow list? Is the workflow pinned to a + given commit? +* If the workflow require write access, is it overriding the ACLs explicitly? +* If the target repository has branch protection, is the configuration using + ***secrets.FLUTTERGITHUBBOT_TOKEN*** instead of the default one? +* Is the workflow configured to not run on forks? + +Update workflow: + +* Does it have an associated bug? +* Was the workflow with old and new commits added to the allowed list? \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/How-to-add-a-new-integration-test-to-Framework-CI.md b/novelforge-project/agent-workspace/flutter/docs/infra/How-to-add-a-new-integration-test-to-Framework-CI.md new file mode 100644 index 0000000000000000000000000000000000000000..c6134b0f3799487fd650e7db04bfc84f9e9cf26f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/How-to-add-a-new-integration-test-to-Framework-CI.md @@ -0,0 +1,95 @@ +This wiki is for [Framework](https://github.com/flutter/flutter) CI, and is not applicable to other repositories like Engine, Packages. The integration test is referred to an end-to-end target/test presented in [Flutter build dashboard](https://flutter-dashboard.appspot.com/#/build), which is an one-on-one mapping to the entries listed in the [.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml) file. + +## Overview +Types of integration tests (based on how they are being executed): +* DeviceLab + * Uses test harness: [`test_runner.dart`](https://github.com/flutter/flutter/blob/main/dev/devicelab/bin/test_runner.dart) + * Relies on recipe: [`devicelab_drone.py`](https://flutter.googlesource.com/recipes/+/refs/heads/main/recipes/devicelab/devicelab_drone.py) + * This consists of two types further + * One needs a physical phone (a valid value for either `device_type` or `device_os` in [.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml)) + * The other runs on a host only testbed (either `none` or not defined for both `device_type` or `device_os` in [.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml)) + * `DeviceLab` here for host only testbed is a legacy name which refers to using the `devicelab_drone.py` recipes and relying on a `task.dart` file defined under `dev/devicelab/bin/tasks`. But this does NOT need a physical device. In the long term, we may want to rename to avoid confusion. +* Shard + * Uses test harness: [`test.dart`](https://github.com/flutter/flutter/blob/main/dev/bots/test.dart) + * Relies on recipe: [`flutter_drone.py`](https://flutter.googlesource.com/recipes/+/refs/heads/main/recipes/flutter/flutter_drone.py) + * A `shard` property is defined for these targets +* Others + * most likely are specific targets used to test specific functionality + * examples: + * [firebaselab](https://github.com/flutter/flutter/blob/2d3166b7f9d94c8449fd7224c0b36787146434cd/.ci.yaml#L435) + * [packaging](https://github.com/flutter/flutter/blob/2d3166b7f9d94c8449fd7224c0b36787146434cd/.ci.yaml#L529) + * [docs](https://github.com/flutter/flutter/blob/2d3166b7f9d94c8449fd7224c0b36787146434cd/.ci.yaml#L5980) + * [test_ownership](https://github.com/flutter/flutter/blob/2d3166b7f9d94c8449fd7224c0b36787146434cd/.ci.yaml#L944) + * [pub_autoroller](https://github.com/flutter/flutter/blob/2d3166b7f9d94c8449fd7224c0b36787146434cd/.ci.yaml#L261) + +The word `DeviceLab` initially was used to represent targets running in Flutter's self-maintained hardware lab where bots are connected with a physical device. Later it has been extended to represent targets that use the test harness `test_runner.dart` which is located under `dev/devicelab/bin`. All these targets need an entry defined under `dev/devicelab/bin/tasks`, and they include ones that do not need a physical device (known as host only tests). + +`Shard` tests are using the test harness `test.dart`, which supports targets that are shardable to run in parallel. Additionally it supports tests with a single shard, which means these tests are not feasible to run in parallel. These tests have only a single shard running a block of scripts. + +There is an overlap happens between `DeviceLab` and `Shard`: a single shard test can also run under the `DeviceLab` test harness. + +## Where to add an integration test +Most likely, we can fit a new integration test to existing types, like `DeviceLab`, `Shard` or other case-by-case tests that use their own **`recipes`** in addition to `DeviceLab` and `Shard`, e.g. firebaselab, packaging, docs, etc. If your new test doesn't fit in any of these (very rarely), it may need a new recipe. + +> [!NOTE] +> **`Recipes`** are just python scripts detailing steps to setup env. and execute corresponding test harness. Different recipes basically mean different test harness with different environment setup. + +For the two main types (`DeviceLab`/`Shard`): +* if a new integration test needs a physical device, it should be under `DeviceLab` +* if a new integration test doesn't need a physical device but needs to collect benchmarks, it should be under host only `Devicelab` +* if a new integration test need to run in parallel with sharding, it should be under `Shard` +* others should be good with either host only `DeviceLab` or `Shard` with a single shard. + +## How to add an integration test as a `DeviceLab` target + +Please refer to how to write a [`DeviceLab` test](https://github.com/flutter/flutter/tree/main/dev/devicelab#writing-tests) and how to add it to [continuous integration](https://github.com/flutter/flutter/tree/main/dev/devicelab#adding-tests-to-continuous-integration). + +Quick steps: +* creates a test file under `dev/devicelab/bin/tasks/.dart` +* adds a new [.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml) entry by mirroring an existing target with `recipe: devicelab_drone` (see .ci.yaml [readme](https://github.com/flutter/cocoon/blob/main/CI_YAML.md)) + * begins with `bringup: true` + * specifies `device_type` or `device_os` if needed + * removes `bringup: true` after validated in post-submit CI (in staging pool). +* adds an ownership entry to [TESTOWNERS](https://github.com/flutter/flutter/blob/main/TESTOWNERS) +* adds entries for other platforms if needed + +## How to add an integration test as a `Shard` target + +Please refer to [steps-to-add-a-new-framework-test-shard](./Adding-a-new-Test-Shard.md#steps-to-add-a-new-framework-test-shard). + +## How to add an integration tests with Android emulator support + +In this section we will build a new target for the `Linux` platform that will run in the `DeviceLab` with an Android emulator. Note: it is also supported in `Shard`. + +### Name and platform + +To add a test in the Framework Repository with Android Emulators via the DeviceLab recipe, you will not have to do anything on the recipe side of the code as simply specifying the configuration will allow you to create an Android Emulator on demand. Using other custom tests will possibly require changes in the recipes repository. + +When adding a new target make sure that the target platform is `Linux_android_emu`. This is done through the name of the target. This means that you can define your new target as something like: + +```yaml +- name: Linux_android_emu new_test_to_add +``` + +This tells the CI that you want to use the `Linux` platform and your test is named `new_test_to_add`. See [.ci.yaml] (https://github.com/flutter/cocoon/blob/main/CI_YAML.md) for more details. The platform-level config already defines all necessary dimensions/properties that an emulator test needs. + +The `dimensions` are a way to use the correct machine type with the supported virtualization, the `dependency` on the android_virtual_device tells the recipes framework that an emulator was requested and which api level to use and finally the `device_type` tells it to use a machine without a connected device. This will avoid issues with multiple devices found during testing. + +### Target configs + +Add any additional properties/dependencies your test may need. + +```yaml + name: Linux_android_emu new_test_to_add + recipe: devicelab/devicelab_drone + bringup: true + properties: + tags: > + ["framework","hostonly","linux"] + task_name: android_views + timeout: 60 +``` + +You will notice that `task_name` is new and the `tags` are new. The `task_name` is the name of your test script (minus the .dart suffix) and the tags allow infra to perform statistical analysis based on these in order to monitor SLO for task times, execution time as well as many other metrics. + +The above target can be added and run assuming there exists a ·new_test_to_add.dart· file in the Flutter repo. diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/How-to-download-a-timeline-from-a-benchmark.md b/novelforge-project/agent-workspace/flutter/docs/infra/How-to-download-a-timeline-from-a-benchmark.md new file mode 100644 index 0000000000000000000000000000000000000000..909cf2574d2f547b9df29495ef991f51d902d4da --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/How-to-download-a-timeline-from-a-benchmark.md @@ -0,0 +1,13 @@ +1. Find the benchmark that you're interested in on the [dashboard](https://flutter-dashboard.appspot.com/#/build) by clicking on the gear in the upper-right corner, and searching for it by "Task Name". + +Screenshot 2023-06-21 at 6 56 08 PM + +2. Click on the column header icon. + +Screenshot 2023-06-21 at 6 59 36 PM + + +3. Click on the build link corresponding to the commit that you're interested in. +4. In the build page, expand the "log links" step. +5. Download the "timeline.json" file. +Screenshot 2023-06-21 at 4 29 17 PM diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Infra-Ticket-Queue.md b/novelforge-project/agent-workspace/flutter/docs/infra/Infra-Ticket-Queue.md new file mode 100644 index 0000000000000000000000000000000000000000..74a111e86d01cb7dd788e6186388fcb2f03c657a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Infra-Ticket-Queue.md @@ -0,0 +1,75 @@ +# Quick Links +* [Ticket queue kanban board](https://github.com/orgs/flutter/projects/81) +* [Build dashboards](https://flutter-dashboard.appspot.com/) +* [Current on-call](https://rotations.corp.google.com/rotation/5729708174999552) (Google internal link) + +# Background + +The Flutter infra team uses a ticket queue to manage operational tasks, such as: +* Configuration requests: "Please add a new LUCI builder" +* Outage/degradation notifications: "Build dashboard is down/slow" +* Requests for help: "How do I debug a test on devicelab machine X?" + +This allows the team to separate their engineering work from ["toil" work](https://landing.google.com/sre/sre-book/chapters/eliminating-toil/). It also lets them see which types of tasks are common and worth automating. + +IMPORTANT: Whenever you have a request for the infra team, please file a ticket instead of contacting team members directly, even for seemingly trivial things or even if an individual has done the same thing for you in the past. Infra on-call will be there to handle your request, and it lets non on-call team members focus on their engineering tasks. + +When in doubt, ask on the `#hackers-infra` channel in [Chat](../contributing/Chat.md). + +# How to File a Ticket as an Infra Customer +1. Open a [new infra issue](https://github.com/flutter/flutter/issues/new?template=6_infrastructure.yml). (That template summarizes the information on this page.) +2. Add a descriptive **title**. A message like "Add a LUCI builder for linux web engine" or "Debug gallery startup" is much more helpful than "quick request" or "test doesn't work?". +3. Clearly describe the issue or request in the description field. For example, if a ticket is requesting running several commands on the bots, the ticket should explain why, what commands are needed, on which bots and how to verify the results. +4. Skip the priority label which infra on-call will add after triaging. +5. **Add the project "Infra Ticket Queue".** This is the step that is important to get it into the queue! +6. Click the **Submit new issue** button. No need to set an **assignee**; infra on-call will handle all new tickets. + +Please note that **the ticket queue is meant for high priority P0 and P1 issues** and should not be used to file low priority issues like feature requests or minor bugs. We have another separate weekly triage meeting that will look through ALL of the open infra issues. The ticket queue should only be used for issues that fall into the following categories, which should be very rare: + + * Build break or regression. + * Critical work is blocked without a workaround. + * An immediate-level incident will happen if this is not addressed (e.g., almost out of quota). + * Degraded service (Build bots work but are slow to start). + * Other time-sensitive requests. + +# How to Serve Tickets as an Infra On-call +Below are instructions for infra on-call on how to process the ticket queue. It describes the processes that on-call should follow, along with useful tips and tricks. If you are on call and see a problem or omission on this page, please change it! + +## Triaging +SLO: A ticket in the queue will be triaged within 4 business hours provided it is opened during regularly kept office hours (9 a.m. to 5 p.m. PST). Otherwise it will be triaged the following business day. + +The issue priorities can be found [here](../contributing/issue_hygiene/README.md#priorities). Issues that are **not P0 or P1** will still be seen (during the infra weekly triage meeting) but do not belong on the ticket queue. + +New, un-triaged tickets will be in the **New** column in [the ticket queue](https://github.com/orgs/flutter/projects/81/views/1). + +When a new ticket comes in, an on-call should: +1. Double check to see if the issue is a duplicate and close with a reference to the existing open issue. +2. Check the issue summary and description. If the summary isn't clear, clarify it. +3. Validate that the priority of the issue is accurate. +4. Move triaged issues to the **Triaged** column. +5. Assign the issue to the correct team member. + +This is meant to be quick and mechanical, and doesn't require a lot of thought. Even if you don't have time to take any immediate action, it's helpful to keep the new column empty. Your marking it triaged also lets the ticket creator know that someone has seen it. + +## Serving +Once all tickets have been triaged, on-call's job is to service them. Apply judgement regarding which is most pressing. The order will also depend on your expertise and how much time you have. If a lower-priority ticket can be resolved in a couple minutes, don't feel like it has to wait behind a higher-priority ticket. + +From the top of the priority queue down, on-call makes sure that someone is working on each ticket. It's important to keep things moving if you see that they're stuck; try CC'ing people with more information and making it clear what a given ticket is blocked on. + +1. Set the assignee. Read the [guideline](../contributing/issue_hygiene/README.md#assigning-issues) first. In addition: + * All tickets must be assigned to someone who is working on them. +2. Start working on the ticket + * Set the status to "in progress", typically by dragging its card to the **In progress** column. + * Add a comment, if you think it helps. +3. P0 issue should be updated daily and P1 issue should be updated weekly, since many people may be blocked and will be waiting for updates. +4. Update the ticket's workflow state when you reach a stopping point + * If it's closed, move it to **Done**. + * If it's blocked on something else, make it clear in the comments. + * If you (or the assignee) can no longer work on the ticket, find a new owner or move it back to **New**. + * If you're heading home for the day, add a final status update, especially if they're not going to get resolved in their urgency window. + +When servicing a ticket as an on-call, remember that **it is not your responsibility to fix every ticket, only to make sure that someone is working on it**. You may not be the most appropriate person to do the work, but you make sure the work gets done. This goes for new tickets as well as older tickets that someone has claimed but dropped on the floor -- some of those tickets may even have been created and assigned during the previous on-call shift, so it's important to check up on older tickets and re-assign if necessary. + +## Handoff + +On Monday during the 15-minute handoff meeting, please add comments and update the status on any tickets on which you have context, as this will help the next on-call person ramp up and understand the coming workload. diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Landing-Changes-With-Autosubmit.md b/novelforge-project/agent-workspace/flutter/docs/infra/Landing-Changes-With-Autosubmit.md new file mode 100644 index 0000000000000000000000000000000000000000..a64bc744601303087e49d8fab2f84bcdb2f3fdbb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Landing-Changes-With-Autosubmit.md @@ -0,0 +1,87 @@ +# Using the Auto-submit Bot + +This page details the workflow for Flutter's Auto-submit bot and how to use it to submit your changes into Flutter owned repositories. + +## Auto-submit Labels + +### Label descriptions and Who Applies these Labels + +The following is a table of the labels that Auto-submit currently responds to +and who adds them. + +| Label | Description | Human | Bot | Why? | +| --- | --- | :---: | :---: | --- | +| `autosubmit` | Merge a pull request when the tree becomes green. | X | | Merge on a validated pull request. | +| `revert` | Label used to initiate a revert request on a closed and merged PR. | X | | Revert a particular change that has been merged. | +| `revert of` | Tracking label for the revert request generated from the closed and merged original pull request. | | X | To track the new pull request that reverts a previous change. | +| `warning: land on red to fix tree breakage` | Override the tree-status check and land even when tree is closed. | X | | To submit a potential fix for the current tree-status | + +Note: that `warning: land on red to fix tree breakage` cannot be used on its own +and should be used in conjunction with the `autosubmit` label. + +### Usage Examples + +#### Merging a change (tree is open) +This is the happy path. The tree is green and you just need to make +sure validations pass and have the correct number of reviews. + +**Labels to use:** [ `autosubmit` ] + +**Validations:** + +* ci checks +* approvals (2 from flutter hackers) +* mergeability + +#### Merging a fix on red tree-status (tree is closed) +This path should only be done in the event you have a change that will +contribute a fix to the status of the tree. + +**Labels to use:** [ `autosubmit`, `warning: land on red to fix tree breakage` ] + +**Validations:** + +* ci checks +* approvals (2 from flutter hackers) +* mergeability +* ignores the results of the tree status check. + +Warning: if you are not merging a fix for the tree you should not use the +`warning: land on red to fix tree breakage` label. You will need to wait for the +tree to open again. + +#### Reverting a change from the tree +This path is a way to revert a broken change from the tree that is +within 24 hours old. + +The reasoning behind this is that there will be someone with context as to +why the change needed to be reverted. + +Note: that it might make sense to add the `warning: land on red to fix tree breakage` +label to a revert request but you do not need to do this. The revert request is +assumed to be done out of urgency. + +**Labels to use:** [ `revert` ] + +**Validations:** + +* "required" ci checks \* +* mergeability + +\* There are two types of required 'ci checks'. Ones that are controlled +by/through Github and those enforced through our auto-submit configuration +(TODO add link to the config). Currently there is only one required check in +both cases but the later can be extended to support additional checks. + +#### Reverting older changes from the tree +This path describes what you should do in order to revert a change that is +older than 24 hours. + +In this case you will need to open the revert request in the traditional way. +That is by navigating to your change in the Github UI and clicking the +'Revert' button from the pull request page. + +The pull request will then need to be treated as a regular pull request where +you will need to wait for all ci checks to complete and gather 2 reviews from +members of the 'flutter-hackers' team. See +[Merging a change (tree is open)]() above. diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Packages-Gardener-Rotation.md b/novelforge-project/agent-workspace/flutter/docs/infra/Packages-Gardener-Rotation.md new file mode 100644 index 0000000000000000000000000000000000000000..cbcf358a065a79c3b6ec55c415d0ba5fc7575bf4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Packages-Gardener-Rotation.md @@ -0,0 +1,143 @@ +The packages gardener role currently makes use of several tools and communication channels only available to Google employees. See [On-call scheduling for Flutter] for an overview of work required to make this process more open. + +## Objective + +The packages gardener’s role is to eliminate impediments to engineering velocity on teams working on the [flutter/packages] repository, and to minimize the latency with which critical fixes arrive in our customers' hands. To that end, we maintain a rotation so that there is a clear owner and point of contact for flutter/packages issues, and so that engineers can plan their work around an assumption of reduced productivity during their rotation. + +The packages gardener's core responsibilities are: +* Keep the flutter/packages tree green to keep developers, and the release process unblocked. +* Keep the various packages rollers (see below) rolling. +* Ensure others are informed of issues which may affect them. +* Ensure bugs/investigations are delegated and taken care of by the right person, which may be themself. +* Update the list of known deprecations (see below). + +The gardener's responsibilities do not include: +* Work beyond working hours. **Tree redness does not trump work-life balance.** Contributors may escalate issues outside of the gardener's working hours, but the gardener is not responsible for responding until the next work day. +* Personally investigate issues or fix bugs, unless the right person to investigate and fix is the gardener themself. + +As such, the gardener should use their trowel and hat to: +* Aggressively roll back problematic changes (in all relevant repositories including [flutter/packages] and [flutter/flutter]). +* Delegate investigations/issues to the right engineer(s) on the team, and follow-up. +* Detect infrastructure issues that cause test failures and flakiness and report to the infrastructure team. +* Notify the [Flutter framework gardener] when a framework change causes the flutter/packages roller to fail in a way that can’t easily be fixed locally. +* Proactively communicate issues/status to others upstream/downstream. + +## Rotation +Rotations are managed in the [Rotations tool]. The [packages gardener calendar] can be added to your calendar. Both of these links are currently Google internal. + +Team members are not expected to participate in multiple Flutter rotations. For example, Flutter framework gardeners are exempt and vice versa. New team members should be added to a single rotation. + +Before heading out on holiday, or if you get to your shift and find you can't do it, check the upcoming rotations and find a volunteer to swap shifts with while you're out. During some holiday periods when many team members are out and activity is particularly low on the tree, it may not be essential to have a dedicated gardener. + +### Journal + +Please briefly describe any issues you encountered during your week of gardening in the [packages gardening journal], along with any solutions you think may be useful for other gardeners in the future! + +## Periodic scan + +Below are the tasks that should be done routinely while gardening. + +### Dashboard +Open the [packages build dashboard]. +1. If the tree is closed, identify which test shards are failing. If there are yellow boxes with an exclamation point, that means that the failed tests are automatically re-running themselves. The tree is not fully closed until there are solid red boxes or red boxes with exclamation points. You can begin investigation as soon as you notice the tree going red, but it is suggested not to begin escalation until re-runs have completed. +1. Identify which test within the shard failed, and try to locate obvious errors or failures in the logs. +1. Update the [hackers-ecosystem channel] on [Discord] with an announcement that the tree is red, and that you are working on it. +1. Cross reference the failure with the commit in question. If it is obvious the PR in question caused the failure, [revert](#reverting-commits) immediately. +1. Search through the [Flutter issues] for any existing issues with the same error. Some flakes are not specific to a specific test suite, but are nonetheless flakes and should not require a revert. +1. If the test failure is not a known flake or infrastructure issue, [revert it immediately](#reverting-commits). +1. When the tree reopens, announce it in the [hackers-ecosystem channel] on [Discord]. +1. If the tree is open, investigate green exclamation point squares, which are tests that have failed, rerun, and then passed. They may be [flaky and warrant an investigation](#handling-a-flaky-test). They also may have hit an intermittent infrastructure issue. + +Unmute the [hackers-ecosystem channel] and [hackers-infra channel] on [Discord]. Contributors are encouraged to escalate tree closures to you. Respond there as quickly as possible. + +### Rollers + +Check that all of the auto-rollers are running: +* [flutter/flutter → flutter/packages][flutter-to-packages roller] +* [flutter/packages → flutter/flutter][packages-to-flutter roller] + * This roller only rolls once per day, on weekdays, in order to avoid roller loops with the flutter/flutter → flutter/packages roller. +* [Flutter `stable` → flutter/packages][flutter-stable-to-packages roller] + * This should only do something when there is a Flutter stable channel update, so will often be idle. + +If a roller's status is not `running`, contact the person who paused it and work with them make sure whatever work needs to be done to re-activate the roller is happening. + +If a roller is failing, check the recent runs to see why, and take action to ensure that the roller starts succeeding again. If the issue will take a while to resolve, pause the roller while resolving it, and include an explanation of why. + +### Deprecations + +Our analysis options do not flag deprecated API usage ([context][deprecation context]), but it’s important that we not leave deprecated API usage in our packages for any longer than necessary, since when the APIs are eventually removed anyone still using versions of the package predating the fix will get build errors that many developers find confusing and hard to resolve. + +Once during your rotation, do a manual check for any new deprecations: +1. Ensure that your local checkout is updated and has no changes. +1. Comment out `deprecated_member_use: ignore` in `analysis_options.yaml` at the root of the repository. +1. Run `dart run script/tool/bin/flutter_plugin_tools.dart analyze \ + --custom-analysis=script/configs/custom_analysis.yaml` +1. Compare the failures to [this list][deprecated api issues] to see if there is anything new, and if so file it. + * Include the deprecated API in the issue name, and any details from the error message (e.g. suggested replacement) in the issue. + * Add the `team-ecosystem`, `packages`, `p: deprecated api`, and `c: tech-debt` labels. + * If possible, assign the issue to the person who did the deprecation. Searching the relevant repository for the deprecation message is often a quick way to find the PR and its author. + * If fixing it requires an API that is not yet available on stable, add the `p: waiting for stable update` label. + * If it's easy to determine, include the version that the replacement API will be available in the issue description. + * Exception: If a deprecation warning is from a package integration test that is testing a deprecated API from that package (which does not count as `deprecated_member_use_from_same_package` since the example is technically a different package), annotate it with an `ignore` instead, so it doesn’t show up in this manual check in the future. + +#### Consider fixing deprecated APIs +If old deprecations have reached the point where they can be fixed without losing support for stable, considering using some of your gardening time to replace the deprecated API usage. + +## Handling failures + +### Tracking +File GitHub issues if none are already open. +1. The title should include the name of the failing test. +1. Assign the issue to the test owner with a `P1` priority. +1. Add the `team` label. +1. Include links to the failing tests. Download any relevant logs and attach them to the issue, even if the link to the failing tests has the same information. This prevents the issues from becoming stale when logs are expunged. +1. @ mention the test owner in the [hackers-ecosystem channel] on [Discord] with a link to the GitHub issue. If they are unavailable, escalate to another team member. Continue escalating until someone acknowledges the issue is being investigated. +1. Investigation updates and questions should not be posted in the [tree-status channel]. This channel should remain free of noise to discourage notification muting. + +### Escalation +* If the issue is specific to infrastructure, see [filing an infra ticket] in the Flutter gardener rotation. +* If the [flutter/flutter → flutter/packages][flutter-to-packages roller] is failing in ways that can't easily be resolved locally, contact the Flutter gardener and/or the author of the PR causing the issue, to discuss a revert or fix. + +### Reverting commits +If a test failure is attributable to a commit, revert the commit immediately. + +If the commit landed within the last 24 hours: +1. Locate the patch PR and add the `Revert` label. Our infrastructure will automatically create a revert PR and land it. + +If the commit could not be automatically reverted: +1. Create a revert pull request from the bad merged pull request via the "Revert" button at the bottom. +1. Add the `revert` label to the PR to allow the bot to land it without approval. +1. Add the original author to the as a reviewer so they are notified. If they are not a member of [flutter-hackers], also include the original pull request reviewers. +1. In "Related Issues" add a link to any GitHub issues that describe the failure. +1. @ mention the author in the [hackers-ecosystem channel] with a link to the revert pull request. If they are unavailable, send an email. If they are not a [Flutter committer][flutter-hackers] and are not on Discord, escalate to the reviewers of the original pull request. +1. As soon as analysis test passes, merge it. You do not need to wait for all presubmit tests to pass, or for an LGTM. +1. Reopen any issues that were automatically closed by the original commit. Add a comment: "This has been reverted with pull request #1234." + +### Handling a flaky test +Flakes are particularly productivity-killing since they silently trigger all of the key problems the gardener is meant to prevent: red tree status. As such flakes should be treated in the same way a reproducible breakage is treated -- as though they were always failing. + +If you see a test failure that appears to be a flake: +1. Re-trigger the test. +1. If the build fails to fail (i.e. "passes"), it's a flake and should be treated as a failing test. +1. Follow the instructions in this guide to find or create a new GitHub issue. +1. If the test has neither been recently introduced, nor recently changed, disable the test. The test owner will turn it back on or delete the test as part of their investigation. + +[flutter/packages]: https://github.com/flutter/packages +[flutter/flutter]: https://github.com/flutter/flutter +[Flutter framework gardener]: /docs/infra/Flutter-Framework-Gardener-Rotation.md +[Flutter issues]: https://github.com/flutter/flutter/issues +[deprecation context]: https://github.com/flutter/packages/pull/6111 +[deprecated api issues]: https://github.com/flutter/flutter/labels/p%3A%20deprecated%20api +[flutter-hackers]: https://github.com/orgs/flutter/teams/flutter-hackers +[packages build dashboard]: https://flutter-dashboard.appspot.com/#/build?repo=packages +[Discord]: https://discord.gg/BS8KZyg +[hackers-ecosystem channel]: https://discord.com/channels/608014603317936148/608020293944082452 +[hackers-infra channel]: https://discord.com/channels/608014603317936148/608021351567065092 +[Rotations tool]: https://rotations.corp.google.com/rotation/4867844301914112 +[packages gardener calendar]: https://calendar.google.com/calendar/render?cid=c_6q4le5gj1d9jb5lpvk246vug5s@group.calendar.google.com +[filing an infra ticket]: /docs/infra/Flutter-Framework-Gardener-Rotation.md#filing-an-infra-ticket +[flutter-to-packages roller]: https://autoroll.skia.org/r/flutter-packages +[packages-to-flutter roller]: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll +[packages gardening journal]: https://goto.google.com/flutter-packages-gardener-journal +[flutter-stable-to-packages roller]: https://autoroll.skia.org/r/flutter-stable-packages +[On-call scheduling for Flutter]: https://docs.google.com/document/d/1i-11by4J3zvxWG3qLMm4MKfJ8DrjIJna6DPA9tBmJWc/edit#heading=h.w8bl5vic6x95 diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/README.md b/novelforge-project/agent-workspace/flutter/docs/infra/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b2ca64d6c569d7101a93c418456011abfb688887 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/README.md @@ -0,0 +1,16 @@ +This is an index of team-facing documentation for topics relating to Engineering Productivity (also known as EngProd, and including topics relating to our CI infrastructure, security, autorollers, etc). + +- [Autorollers](Autorollers.md) +- [Autosubmit bot](Autosubmit-bot.md) +- [Dashboards](Dashboards.md) +- [Flutter FirebaseLab Tests](Flutter-FirebaseLab-Tests.md) +- [Flutter Infrastructure Foundation](Flutter-Infrastructure-Foundation.md) +- [Flutter Installation Bundles](Flutter-Installation-Bundles.md) +- [Flutter Self Service Index](../Flutter-Self-Service-Index.md) +- [Flutter Test Fonts](../contributing/testing/Flutter-Test-Fonts.md) +- [Flutter's Build Infrastructure](../../dev/bots/README.md) +- [Flutter's repository architecture](../about/Flutter's-repository-architecture.md) +- [GitHub Action Workflows](GitHub-Action-Workflows.md) +- [Infra Ticket Queue](Infra-Ticket-Queue.md) +- [Labeling PRs](../contributing/Labeling-PRs.md) +- [New Android Version](../platforms/android/New-Android-version.md) \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Reducing-Test-Flakiness.md b/novelforge-project/agent-workspace/flutter/docs/infra/Reducing-Test-Flakiness.md new file mode 100644 index 0000000000000000000000000000000000000000..ed491c8672122a0a76c51e2d5b0b0acbf1d8d0e2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Reducing-Test-Flakiness.md @@ -0,0 +1,109 @@ +Flakiness issue has caused a large portion of the [Flutter tree](https://flutter-dashboard.appspot.com/#/build) redness, and below workflow will be enforced to reduce flaky issues. The framework post-submit DeviceLab tests will be focused on in the beginning, and the logic will be extended to other host only tests in the future. + +From [Flutter tree dashboard](https://flutter-dashboard.appspot.com/#/build), a flake is identified as a box with an exclamation icon. There are two types that will result in same flaky box. +* Multiple reruns on the same commit and same task (earlier run fails, but the last run succeeds). For this case, check logs by clicking different build runs. + +![Task flakes](https://github.com/flutter/assets-for-api-docs/blob/main/assets/wiki/task_flake_multiple_builds.png) + +* A single run on the same commit and same task, but multiple reruns from test runner. For this case, check logs by clicking `stdout` of the test step: it shows data about failed or succeeded runs in the end ([example](https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.com/8841146512187805536/+/u/run_build_aar_module_test/stdout)). See [Understanding a LUCI build failure](Understanding-a-LUCI-build-failure.md) for how to locate the test step and `stdout`. + +![Flake test runner](https://github.com/flutter/assets-for-api-docs/blob/main/assets/wiki/task_flake_test_runner.png) + +# Preventing flaky tests +## [Adding a new DeviceLab test](https://github.com/flutter/flutter/tree/main/dev/devicelab#writing-tests) +DeviceLab tests are located under [`/dev/devicelab/bin/tasks`](https://github.com/flutter/flutter/tree/main/dev/devicelab/bin/tasks). If you plan to add a new DeviceLab test, please follow +* Create a PR to add test files + * Make sure an ownership entry is created for the test in [TESTOWNERS](https://github.com/flutter/flutter/blob/main/TESTOWNERS) file +* Enable the test in staging pool first + * Use `bringup: true` in .ci.yaml + * Monitor the test execution in the [flutter dashboard](https://flutter-dashboard.appspot.com/#/build) +* If no flakiness issue pops up, then enable the test in the prod env. + * Switch `bringup` to `true`. + +# Detecting flaky tests +On a weekly basis, [an automation script](https://github.com/flutter/cocoon/blob/main/app_dart/lib/src/request_handlers/file_flaky_issue_and_pr.dart) will scan through test execution statistics over the past 15 days and identify top flaky ones +* If there are any test builders whose Flaky Ratio >= 2% + * Create a tracking bug if not existing in the [bug pool](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+project%3Aflutter%2Fflutter%2F189+label%3A%22team%3A+flakes%22). + * The sub-team TL will be assigned by default for further triage/re-assign. + * P0 will be labeled + * If it is not a shard test, the script marks the tests as flaky by updating the entry in [.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml). + * Add a `# TODO(username): github issue url` above the `bringup: true` line + +If an issue is closed, there will be a grace period of 15 days before the automation script refile the issue if the same flakiness persists. + +# Triaging flaky tests +Figuring out how and why a set of tests is failing can be tricky. Here are a few tips to help kickstart the process. + +## Use the generated ticket +The [auto-generated ticket](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+author%3Afluttergithubbot+label%3A%22severe%3A+flake%22) will provide links to: + +* An example of recent flakes on the same commit with a link to its Luci build page if available +* A list of flaky builds with links to their Luci build page +* A link to the recent test runs on the flutter dashboard + +All of these pieces of information are helpful for further narrowing down the issue. + +## Identify infrastructure issues +Things not directly related to the tests being run can be difficult to determine from the stdout logs. Things like timeouts are easier to determine using the `execution details` rather than `test_stdout`. From the Luci build page: + +* The failing step should have a red icon with an exclamation point and be expanded +* Click on the `execution details` link +* At the bottom of these logs, look for non-zero exit codes + * If you find a non-zero exit code, reach out on the [infrastructure discord channel](https://discord.com/channels/608014603317936148/608021351567065092) for further guidance + +Some other common infra issues: +* Device not found: [`adb: device 'ZY223CXXGL' not found`](https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8777723365016202673/+/u/run_flutter_gallery__transition_perf_with_semantics/test_stdout) +* [Device disappeared](https://github.com/flutter/flutter/issues/120802) in the middle of test +* Firebase test flakes due to [firebase regression](https://github.com/flutter/flutter/issues/124217) +* [Polluted xcode cache](https://github.com/flutter/flutter/issues/118328) +* [Transient network issue](https://github.com/flutter/flutter/issues/99007) + +## Identify failing tests +Sometimes, the reported error is not immediately obvious as to what test has failed. In these cases, digging into the `test_stdout` for clues can be helpful. From the Luci build page: + +* The failing step should have a red icon with an exclamation point and be expanded, e.g. step [`run flutter_view_ios__start_up`](https://ci.chromium.org/ui/p/flutter/builders/prod/Mac_ios%20flutter_view_ios__start_up/6939/overview). +* Click on the `test_stdout` link + * [Example 1](https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8798110684145503985/+/u/run_flutter_view_ios__start_up/test_stdout) + * Search for "ERROR:" in the logs (don't skip the ":") + * There will be a "RUNNING:" above any "ERROR:"s that are found, between the preceding "RUNNING:" and the "ERROR:" there are a few different things that could point to a test failure: + * Keep an eye out for "Failed assertion:" which points to specific failures in dart/flutter tests + * For non-dart/flutter tests, the output between "RUNNING:" and "ERROR:" can vary greatly, but is usually shorter and should provide some guidance as to what the failure was and how to address it + * [Example 2](https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8778092604637310577/+/u/run_test.dart_for_web_tests_shard_and_subshard_2/test_stdout) + * Search for "[E]" for shard tests flaking on a unit test + +## Identifying a pattern +Flakes, by their nature, are inconsistent. Determining a pattern can be very helpful in figuring out what causes the issue, and may help in identifying a fix or workaround. The most useful tool for this is the flutter dashboard link provided by the ticket under "Recent test runs" which will filter to just the relevant flaky test set. E.g. [Linux_android flutter_gallery__transition_perf_with_semantics](https://flutter-dashboard.appspot.com/#/build?taskFilter=Linux_android+flutter_gallery__transition_perf_with_semantics) + +### Verify repeating failures +Flakes are reported on the set of tests run, not specific test failures. This can mean that the issue raising us above our 2% threshold is actually more than one issue. This is pretty rare, but does happen on occasion. There's no need to waste a lot of time verifying that _every_ failure is the same, but taking some time to verify _some_ of the failures can save time in the long run. The list of "Flaky builds:" on the automated ticket is very useful for this, and you can often find additional flaky builds in the flutter dashboard. + +### Find a first instance +Flakes can be under the 2% threshold for a long time and slowly build up from various small increases in flakiness. Other times they can have a specific cause that started in an obvious location. The latter are much easier to resolve, so it's a good idea to check for a root cause. In the Flutter dashboard: + +* Scroll down to load more builds +* Scroll down until you have a long string of green builds (say, a full screen or two) + * This is a heuristic, so it may not _truly_ be the first instance, but it works well for triaging +* Scroll back up to the first red build or green build with an exclamation point +* Clicking on the profile picture next to the failed/flaky build pops up a link to the commit where this failure occurred + * See if the commit directly affects any of the tests that are failing by adding randomness, new asserts + * Keep an eye out for rolls that might affect the tests that are failing as well +* Compare the first instance of the flake with the previous successful run (see "Compare against successful runs" below for tips!) + +### Compare against successful runs +Sometimes it can be easier to identify patterns of what's different between test runs than it is to identify a reason for the failure just from the failing runs. After you've identified what's failing, if you can't figure out what's causing the test to fail, keep an eye out for these common patterns: + +* Do the tests fail when they're run in a certain order? + * Our test sets' order is randomized, so sometimes interaction between tests can cause issues that only come up occasionally + * If you notice that the failing builds fail tests in a certain order, also validate that the successful builds do not fail in that same order +* Do the tests tend to flake at certain times? + * If the test isn't using something like DateTime.now(), then this may be a coincidence, but it's a good thing to check if you're stumped + * If the test flakes the first build on a VM each day, it is likely due to the daily fresh provisioning of the bots. +* Do the tests flake on same bot/device? + * If yes, it is most likely due to hardware issues, and can be routed to infra team for help. + +# Fixing flaky tests +The TL will help triage, reassign, and attempt to fix the flakiness. + +If the test was marked flaky in CI and then fixed, the test can be re-enabled after being validated for 50 consecutive runs without flakiness issues (task without exclamation point in flutter build dashboard and task not failed due to the same flaky failure). This can be done by updating the test entry in [.ci.yaml](https://github.com/flutter/flutter/blob/main/.ci.yaml) to remove the `bringup: true` entry for that target. + +If not fixable, the test will be removed from the flutter build dashboard or deleted from CI completely depending on specific cases. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Rolling-Dart.md b/novelforge-project/agent-workspace/flutter/docs/infra/Rolling-Dart.md new file mode 100644 index 0000000000000000000000000000000000000000..bd4a03955f73417e4d452168c3428cef182be9b9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Rolling-Dart.md @@ -0,0 +1,109 @@ +Flutter is a series of connected repositories. Within each repository there are files (normally named `DEPS`) which determine which version of the other repositories the repository currently works with. + +The three relevant repositories for this document are: + +- Flutter. This is the top half of the Flutter project: [flutter/flutter on GitHub](https://github.com/flutter/flutter) +- Engine. This is the Flutter Engine, the lower half of the Flutter project: [flutter/engine on GitHub](https://github.com/flutter/engine) +- Dart SDK. This is the language used for big parts of Flutter: [dart-lang/sdk on GitHub](https://github.com/dart-lang/sdk) + +This document describes how to update the version of the Dart SDK that the Engine uses, and then update the version of the Engine that Flutter uses, so that Flutter gets the latest Dart. + +The Flutter repo does not use a `DEPS` file and `gclient` for its dependencies. Instead, the Flutter Engine version is in `flutter/bin/internal/engine.version`. + +## Dart Autoroller + +Dart is now automatically rolled into the Flutter engine repository on a regular basis. See [Autorollers](Autorollers.md) for more information. + +## Using dart_roll_helper.py to roll the version of Dart used by the engine + +The `dart_roll_helper.py` script automates a large number of the Dart SDK roll steps, including: + +- Updating the Dart revision in DEPS +- Updating the Dart dependencies in DEPS +- Syncing dependencies with `gclient sync` +- Generating GN files for relevant engine configurations +- Building relevant engine configurations +- Running tests in 'example/flutter_gallery' and 'packages/flutter' +- Launching flutter_gallery in release and debug mode +- Running license.sh and updating license files in + 'flutter/ci/licenses_golden' +- Generating a commit with relevant Dart SDK commit logs (optional) + +The following environment variables can be set instead of being passed as +arguments: + +- `$FLUTTER_HOME`: the absolute path to the 'flutter' directory +- `$ENGINE_HOME`: the absolute path to the 'engine/src' directory +- `$DART_SDK_HOME`: the absolute path to the root of a Dart SDK project + +These paths are required for the tool to work. + +Ensure your repository is in a clean state, as `gclient sync` may delete files. + +To do a roll, run the following command (if the environment variables described above are not set, `--REPO-home` flags should be provided for each repository): + +```console +python $ENGINE_HOME/tools/dart/dart_roll_helper.py --create-commit $TARGET_SDK_HASH +``` + +If the script completes without errors, move on to step 10 in the next section to complete the roll. + +## Manually rolling the version of Dart used by the engine + +1. Set up your Engine and Flutter environments by following the instructions described in the pages + linked to from [our contributing guide](../../CONTRIBUTING.md). +2. Build the engine according to the instructions on the [Compiling the engine](../engine/contributing/Compiling-the-engine.md) page. +3. Select a target Dart revision, typically use the [latest revision](https://github.com/dart-lang/sdk/commits/main). Check that the tests for that revision have all passed (all green) on the [Dart buildbot](https://ci.chromium.org/p/flutter/g/engine/console) and the [Internal Dart Flutter buildbot](https://ci.chromium.org/p/dart/g/flutter/console). +4. Create a PR (see [Tree hygiene](../contributing/Tree-hygiene.md)) that updates `dart_revision` in [DEPS](https://github.com/flutter/engine/blob/main/DEPS) to your selected revision. Invoke `gclient sync` in the src directory to ensure versions corresponding to the DEPS file are synched up. +5. Update all Dart-dependent DEPS entries using `engine/src/tools/dart/create_updated_flutter_deps.py` script. In case script complains that dart dependency was removed, remove entry from flutter DEPS file manually. If the list of library source files or patch files is modified, update the file [libraries.yaml](https://github.com/flutter/engine/blob/main/lib/snapshot/libraries.yaml) and regenerate the corresponding json file. +6. Invoke `gclient sync` in the src directory to ensure versions corresponding to the DEPS file are synched up +7. Build the debug, profile, and release versions of the engine, following the normal [Compiling the engine](../engine/contributing/Compiling-the-engine.md) instructions. You will need to build the host versions of the engine too. Here is a script with the build commands: + +```bash +#!/bin/bash -e + +set -ex + +cd ~/engine/src +flutter/tools/gn --goma --runtime-mode=debug +flutter/tools/gn --goma --runtime-mode=profile +flutter/tools/gn --goma --runtime-mode=release +flutter/tools/gn --goma --android --runtime-mode=debug +flutter/tools/gn --goma --android --runtime-mode=profile +flutter/tools/gn --goma --android --runtime-mode=release +cd out +find . -mindepth 1 -maxdepth 1 -type d | xargs -n 1 sh -c 'ninja -C $0 -j1000 || exit 255' +``` + +7. Test the engine version you just built against the top of tree flutter/flutter version using the `--local-engine` and `--local-engine-host` options (see [The flutter tool](../tool/README.md)) against the Flutter Gallery app. + +```bash +cd $FLUTTER_HOME/examples/flutter_gallery +flutter run --release --local-engine=android_release --local-engine-host=host_release +flutter run --local-engine=android_debug_unopt --local-engine-host=host_debug_unopt +flutter test --local-engine=host_debug --local-engine-host=host_debug +``` + +In the debug version of flutter, run flutter_gallery and do a hot-reload and hot-restart of the app and ensure they both work. + +```bash +cd $FLUTTER_HOME/packages/flutter +flutter test --local-engine=host_debug --local-engine-host=host_debug +``` + +> See [Running a Flutter app with a local engine](../engine/Debugging-the-engine.md#running-a-flutter-app-with-a-local-engine) for more information. + +8. Make sure your path contains `engine/src/third_party/dart/tools/sdks/dart-sdk/bin`, run the script `flutter/ci/licenses.sh` in the src directory, update `flutter/ci/licenses_golden/licenses_third_party` by copying `out/license_script_output/licenses_third_party` into it. Include this change in your pull request. + **If any licenses changed, make sure to also update the actual `LICENSE` file.** + +9. It is useful to include the output of `git log --oneline ...` (executed in the Dart SDK repository) in the commit message. + +10. `git push origin ` + +11. Get a code review of the pull request done, check to make sure the [flutter engine build bot](https://build.chromium.org/p/client.flutter/console) is green and merge the pull request. + +12. Wait for the [flutter engine build bot](https://ci.chromium.org/p/flutter/g/engine/console) to build your change and go green. + +13. Once the bot cycles green, the [Autorollers](../infra/Autorollers.md) will roll the engine into the flutter/flutter repo. When this happens, monitor the flutter [build bots](https://flutter-dashboard.appspot.com/build.html). If there is a failure, revert the Dart roll in flutter/engine, debug the problem and fix it or file a P0 issue against Dart. Please monitor the [flutter benchmarks dashboard](https://flutter-dashboard.appspot.com/benchmarks.html) and if any regressions are noticed please file P0 issues for all regressions **and revert the Dart roll**. The next roll is blocked until these issues/regressions are fixed. + +14. When you are done please update the spread sheet at [http://go/dart-flutter-rolls](http://go/dart-flutter-rolls) with the git hash of the Dart revision that was rolled into the flutter engine. This hash will be used for rolling Dart into Google's internal code repository and would be picked as a potential candidate for a dev release. Also make sure you send an email to the next person on the list and make sure the person acknowledges picking up the roll baton. diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Security.md b/novelforge-project/agent-workspace/flutter/docs/infra/Security.md new file mode 100644 index 0000000000000000000000000000000000000000..b5198ef5af2001f97bfa62770a4b8608e0bb3f11 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Security.md @@ -0,0 +1,23 @@ +## Best Practices + +### Runtime assertions + +Unopt builds use [FML_DCHECK](https://cs.opensource.google/flutter/engine/+/master:fml/logging.h;l=86?q=FML_DCHECK&ss=flutter%2Fengine) to enable assertion checks across the engine repository. Assertions on dependencies like Dart VM or Skia are not enabled because local and CI builds would be extremely slow. +Unopt builds are not published or consumed by the flutter/flutter CI to run integration tests or benchmarks. + +### Sanitizers + +[flutter/engine](https://github.com/flutter/engine) supports thread, address, memory, undefined behavior and leak sanitizers. Sanitizers are not enabled by default but they can be enabled on local builds following the [sanitizers with the flutter engine](../engine/Using-Sanitizers-with-the-Flutter-Engine.md) instructions. + +### Builds with sanitizers, and tests with assertions enabled + +[flutter/engine](https://github.com/flutter/engine) runs automated builds with sanitizers and testing with assertions. Testing with assertions is enabled in all the supported platforms and sanitizers are enabled only on the Linux platform. +Sanitizer builds: + +* [Linux unopt](https://ci.chromium.org/p/flutter/builders/prod/Linux%20Unopt) + +Tests with assertions enabled: + +* [Linux unopt](https://ci.chromium.org/p/flutter/builders/prod/Linux%20Unopt) +* [Mac unopt](https://ci.chromium.org/p/flutter/builders/prod/Linux%20mac_unopt) +* [Windows unopt](https://ci.chromium.org/p/flutter/builders/prod/Windows%20Unopt) \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Understanding-Google-Testing.md b/novelforge-project/agent-workspace/flutter/docs/infra/Understanding-Google-Testing.md new file mode 100644 index 0000000000000000000000000000000000000000..c24815184a9bde574b6805ac4371b2f8231e9b6f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Understanding-Google-Testing.md @@ -0,0 +1,45 @@ +"Google testing" is the test suite that Google runs to test a flutter pull request against their internal code base. This check shows up as one of the many check runs at the bottom of a open pull request. + +![Screenshot 2023-02-24 at 3 45 33 PM](https://user-images.githubusercontent.com/38773539/221321907-edaca6c3-2165-4bfe-b436-00fcd64e820e.png) + +## Validation Pipeline (60 minutes total) + +1. Triggering google testing (<1 minute) + + Google testing starts once an approval from a Flutter hacker is given. For Googlers, the check is run immediately. Google testing is triggered on GitHub webhooks, and uses a 30 minute cron job to backfill when webhooks are dropped. + +2. Running google testing (30 minutes) + + A subset of tests have been selected to run on presubmit as our smoke test suite. This gives quick, high coverage for PRs without running everything. + +3. Propagating results back to Github (30 minutes) + + Once Google Testing finishes, it takes up to 1 hour for the results to be propagated back to Github. Once the result is available on Github, it will show "Google Testing" as either "success" or "failure". + +## Common issues + +### There's goldens failures on my PR, but those are expected + +If a Googler has verified the goldens are expected, the Googler can update internally the check to passing. This will indicate that we should accept the scubas. However, once merged, this will go through a second round of review as our smoke test suite only runs a subset of the codebase. + +### My PR got reverted due to it breaking Google, but the check never ran on presubmit! + +As of January 2024, Google testing is using webhooks to power most of the validation. In the rare case this happens, please file a bug and add "team-google-testing" as the label to it so we can see what went wrong. + +### My PR has an infra error + +Use the GitHub check run UI to rerun. If it goes from failing -> passing, it will be marked as a flake. The team that owns Google testing monitors the flake rate, and is working to get it under <1%. + +If the issue is not a flake, a Googler is necessary to investigate the infra error. As of Feb 2024, the most common infra error is related to race conditions when creating the internal CL for testing. + +#### What if the failure is expected or unrelated to my change? + +Googlers can go to http://frob and override the results. + +## Where can I get help? + +GitHub issues with the label "team-google-testing" are triaged weekly. + +For Googlers, you can use go/file-frob-bug for issues where confidential information is needed for debugging. + +For live questions, you can ask in [#hackers-infra](https://discord.com/channels/608014603317936148/608021351567065092). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Understanding-a-LUCI-build-failure.md b/novelforge-project/agent-workspace/flutter/docs/infra/Understanding-a-LUCI-build-failure.md new file mode 100644 index 0000000000000000000000000000000000000000..0257f90c221f7641bf68cda342408109f8487681 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Understanding-a-LUCI-build-failure.md @@ -0,0 +1,53 @@ +Most tests have been running in Flutter CI [LUCI](https://github.com/flutter/flutter/tree/main/dev/bots#luci-layered-universal-continuous-integration) for multiple flutter repositories, including [post-submit framework](https://flutter-dashboard.appspot.com/#/build), [pre-submit framework](https://ci.chromium.org/p/flutter/g/framework-try/builders), etc. This page uses framework as an example, and talks about what to do when a LUCI build failure happens. + +## Build dashboards +* [Flutter build dashboard](https://flutter-dashboard.appspot.com/#/build) +* [LUCI Milo dashboard](https://ci.chromium.org/p/flutter) + +## Infra Failure +An infra failure comes with network connection issues, hardware outage, recipe breakage, cipd dependency issues, etc. It shows up as a purple box in the dashboards: + +* Framework post-submit build dashboard: ![three green squares, a purple square, and four green squares, representing build results](https://github.com/flutter/assets-for-api-docs/blob/main/assets/wiki/luci_post_submit_infra_failure.png) +* Framework pre-submit build console: ![one green rectangle, a purple rectangle, and one more green rectangle, representing build results](https://github.com/flutter/assets-for-api-docs/blob/main/assets/wiki/luci_pre_submit_infra_failure.png) + +### Overview of an infra failure build +An example build: [Linux color_filter_and_fade_perf__e2e_summary](https://ci.chromium.org/ui/p/flutter/builders/prod/Linux%20color_filter_and_fade_perf__e2e_summary/1563/overview) + + + +* (i) Link to the historical build list of this builder +* (ii) A quick glimpse of the infra failure +* (iii) The step list of this builder, defined by the recipe on the right +* (iv) The real failed step causing the build failure +* (v) Check `stdout` for detailed log + +### What to do +1. Check if the infra failure has happened on earlier builds by clicking (i) +2. Check if issue already exists in the [infra bug pool](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22team%3A+infra%22) +3. If not, file [an infra bug](https://github.com/flutter/flutter/issues/new?template=6_infrastructure.yml) +4. If this is a blocking failure, please add Projects [`Infra Ticket Queue`](./Infra-Ticket-Queue.md). The infra gardener will scan through the queue frequently. +5. If you want to get an immediate help, please ask in the discord `hackers-infra` channel +6. If this is an infra flake, and a retry is needed + * For pre-submit test, click `Re-run` in the [check run page](https://github.com/flutter/flutter/pull/83894/checks?check_run_id=2738146673). ![The presubmit rerun interface](https://github.com/flutter/assets-for-api-docs/blob/main/assets/wiki/luci_pre_submit_rerun.png) + * Limited to `flutter-hackers` group. + * Ask a team member to re-run in [Chat](../contributing/Chat.md) channel `#hackers-infra` if you don't have access. + * For post-submit test, login to [framework build dashboard](https://flutter-dashboard.appspot.com/#/build), click the task box, and click `RERUN`. ![The post submit rerun interface](https://github.com/flutter/assets-for-api-docs/blob/main/assets/wiki/luci_post_submit_rerun.png) + * Limited to Googlers currently due to some technical limitations of our infrastructure. + * Ask a Googler to re-run in [Chat](../contributing/Chat.md) channel `#hackers-infra`. + +## Test Failure +A test failure shows up as a red box in the dashboards: + +* Framework post-submit build dashboard: ![two green squares, a red square, and three green squares, representing build results](https://github.com/flutter/assets-for-api-docs/blob/main/assets/wiki/luci_post_submit_test_failure.png) +* Framework pre-submit build console: ![two green squares, a red square, and two green squares, representing build results](https://github.com/flutter/assets-for-api-docs/blob/main/assets/wiki/luci_pre_submit_test_failure.png) + +### Overview of a test failure build +Please refer to the above example of the infra failure. + +### What to do +1. Check if it happens in earlier builds/commits via (i) +2. Debug based on the error message (ii) and detailed log (v) to see if a real test failure caused by code changes. +3. Check if the issue already exists in the [issues list](https://github.com/flutter/flutter/issues) +4. Check if a flaky bug has been filed in [the flaky issues list](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22c%3A+flake%22) +5. File a new bug if needed +6. If a rerun is needed, please refer to step 6 in the above infra failure session. diff --git a/novelforge-project/agent-workspace/flutter/docs/infra/Updating-dependencies-in-Flutter.md b/novelforge-project/agent-workspace/flutter/docs/infra/Updating-dependencies-in-Flutter.md new file mode 100644 index 0000000000000000000000000000000000000000..b097513061fa5bdc5fb8c4caf01a07c6147f6978 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/infra/Updating-dependencies-in-Flutter.md @@ -0,0 +1,21 @@ +Instead of manually updating dependencies in a `pubspec.yaml` file, use the [`update-packages`](packages/flutter_tools/lib/src/commands/update_packages.dart) CLI tool: + +## To update all dependencies: + +`flutter update-packages --force-upgrade` + +## To pin a dependency: + +Sometimes you need to prevent a dependency from being updated when you run `flutter update-packages --force-upgrade`. + +In that case, first pin the dependency in [`kManuallyPinnedDependencies`](https://github.com/flutter/flutter/blob/5bd34ef541575eddae6aaa82fc76a59ae7e464c3/packages/flutter_tools/lib/src/update_packages_pins.dart#L17) and a include a comment with a link to an issue to unpin the dependency. + +You can then re-run `flutter update-packages --force-upgrade`. + +## To update a single dependency for cherrypicks: + +Sometimes you need to update a single dependency as a [cherrypick to a release candidate branch](../releases/Flutter-Cherrypick-Process.md). + +In that case, you can run: + +`flutter update-packages --cherry-pick-package=[pub package name] --cherry-pick-version='[pub package version]'` diff --git a/novelforge-project/agent-workspace/flutter/docs/libraries/material/Updating-Material-Design-Fonts-&-Icons.md b/novelforge-project/agent-workspace/flutter/docs/libraries/material/Updating-Material-Design-Fonts-&-Icons.md new file mode 100644 index 0000000000000000000000000000000000000000..1b4a32bec13641c8300c621530335e5fcc774f39 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/libraries/material/Updating-Material-Design-Fonts-&-Icons.md @@ -0,0 +1,5 @@ +The process to update the framework's Material fonts (currently, Roboto) and [icons](https://github.com/flutter/flutter/blob/main/packages/flutter/lib/src/material/icons.dart) has been largely simplified and automated. See [go/effortless-flutter-font-updates](http://go/effortless-flutter-font-updates) (Google-only, sorry). The steps used prior to automation are available in this page's history. + +If you notice an issue with fonts or icons (e.g. a missing icon), please file an [issue](https://github.com/flutter/flutter/issues/new/choose). Consider starting the issue title with `[Fonts]` or `[Icons]` to make it stand out. + +_(This page is referenced by comments in the Flutter codebase.)_ \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/Hybrid-Composition.md b/novelforge-project/agent-workspace/flutter/docs/platforms/Hybrid-Composition.md new file mode 100644 index 0000000000000000000000000000000000000000..4044dab4742a512a19ff7e4458040c511c38fd8e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/Hybrid-Composition.md @@ -0,0 +1,394 @@ +Hybrid composition refers to the ability of composing native views alongside Flutter widgets. For example, displaying the native Webview inside a Flutter app. + +## Android +*Requires API level 19* + +_See also: [Texture Layer Hybrid Composition](./android/Texture-Layer-Hybrid-Composition.md)_ + +Starting from Flutter 1.20.0, hybrid composition can be used on Android. This new feature fixes most of the [issues with the preview platform view approach](./android/Virtual-Display.md#associated-problems-and-workarounds) (Virtual Display); in particular, accessibility and keyboard related issues. See also [Android Platform Views](./android/Android-Platform-Views.md) for an overview of modes. + +To see all known issues specific to this mode, search for the [`hc-only` label](https://github.com/flutter/flutter/labels/hc-only). + +### Dart side + +To start using this feature, you would need to create a `Widget`, and add the following `build` implementation: + +`native_view_example.dart` + +1. Add imports: +```dart +import 'package:flutter/foundation.dart'; +import 'package:flutter/gestures.dart'; +import 'package:flutter/rendering.dart'; +import 'package:flutter/services.dart'; +``` + +2. Implement `build` method: +```dart +Widget build(BuildContext context) { + // This is used in the platform side to register the view. + final String viewType = 'hybrid-view-type'; + // Pass parameters to the platform side. + final Map creationParams = {}; + + return PlatformViewLink( + viewType: viewType, + surfaceFactory: + (BuildContext context, PlatformViewController controller) { + return AndroidViewSurface( + controller: controller, + gestureRecognizers: const >{}, + hitTestBehavior: PlatformViewHitTestBehavior.opaque, + ); + }, + onCreatePlatformView: (PlatformViewCreationParams params) { + return PlatformViewsService.initSurfaceAndroidView( + id: params.id, + viewType: viewType, + layoutDirection: TextDirection.ltr, + creationParams: creationParams, + creationParamsCodec: StandardMessageCodec(), + ) + ..addOnPlatformViewCreatedListener(params.onPlatformViewCreated) + ..create(); + }, + ); +} +``` + +For more documentation see: [PlatformViewLink](https://api.flutter.dev/flutter/widgets/PlatformViewLink-class.html), [AndroidViewSurface](https://api.flutter.dev/flutter/widgets/AndroidViewSurface-class.html), [PlatformViewsService](https://api.flutter.dev/flutter/services/PlatformViewsService-class.html). + +### Platform side + +Finally, on the platform side, you use the standard `io.flutter.plugin.platform` package in Java or Kotlin: + +`NativeView.java` + +```java +package dev.flutter.example; + +import android.content.Context; +import android.graphics.Color; +import android.view.View; +import android.widget.TextView; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; +import io.flutter.plugin.platform.PlatformView; + +class NativeView implements PlatformView { + @NonNull private final TextView textView; + + NativeView(@NonNull Context context, int id, @Nullable Map creationParams) { + textView = new TextView(context); + textView.setTextSize(72); + textView.setBackgroundColor(Color.rgb(255, 255, 255)); + textView.setText("Rendered on a native Android view (id: " + id + ")"); + } + + @NonNull + @Override + public View getView() { + return textView; + } + + @Override + public void dispose() {} +} +``` + +`NativeViewFactory.java` + +```java +package dev.flutter.example; + +import android.content.Context; +import android.view.View; +import androidx.annotation.Nullable; +import androidx.annotation.NonNull; +import io.flutter.plugin.common.BinaryMessenger; +import io.flutter.plugin.common.StandardMessageCodec; +import io.flutter.plugin.platform.PlatformView; +import io.flutter.plugin.platform.PlatformViewFactory; +import java.util.Map; + +class NativeViewFactory extends PlatformViewFactory { + @NonNull private final BinaryMessenger messenger; + @NonNull private final View containerView; + + NativeViewFactory(@NonNull BinaryMessenger messenger, @NonNull View containerView) { + super(StandardMessageCodec.INSTANCE); + this.messenger = messenger; + this.containerView = containerView; + } + + @NonNull + @Override + public PlatformView create(@NonNull Context context, int id, @Nullable Object args) { + final Map creationParams = (Map) args; + return new NativeView(context, id, creationParams); + } +} +``` + +Register the platform view. This can be done in an app or a plugin. + +For app registration, modify the main activity (e.g. `MainActivity.java`): + +```java +package dev.flutter.example; + +import androidx.annotation.NonNull; +import io.flutter.embedding.android.FlutterActivity; +import io.flutter.embedding.engine.FlutterEngine; + +public class MainActivity extends FlutterActivity { + @Override + public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { + flutterEngine + .getPlatformViewsController() + .getRegistry() + .registerViewFactory("", new NativeViewFactory()); + } +} +``` + +For plugin registration, modify the main plugin file (e.g. `PlatformViewPlugin.java`): + +```java +package dev.flutter.plugin.example; + +import androidx.annotation.NonNull; +import io.flutter.embedding.engine.plugins.FlutterPlugin; +import io.flutter.plugin.common.BinaryMessenger; + +public class PlatformViewPlugin implements FlutterPlugin { + @Override + public void onAttachedToEngine(@NonNull FlutterPluginBinding binding) { + binding + .getFlutterEngine() + .getPlatformViewsController() + .getRegistry() + .registerViewFactory("", new NativeViewFactory()); + } +} +``` + +For more documentation, see [PlatformViewRegistry](https://api.flutter.dev/javadoc/io/flutter/plugin/platform/PlatformViewRegistry.html), [PlatformViewFactory](https://api.flutter.dev/javadoc/io/flutter/plugin/platform/PlatformViewFactory.html), and [PlatformView](https://api.flutter.dev/javadoc/io/flutter/plugin/platform/PlatformView.html). + +Finally, indicate the minimum API Level required for the application to run in `build.gradle`. + +```groovy +android { + defaultConfig { + minSdkVersion 19 + } +} +``` +## iOS + +In Flutter 1.22, platform views are enabled by default. This means +that it's no longer required to add the +`io.flutter.embedded_views_preview` flag to `Info.plist`. + +To create a platform view on iOS, follow these steps: + +### On the Dart side + +On the Dart side, create a `Widget` +and add the following build implementation, +as shown in the following steps. + +In your Dart file, for example `native_view_example.dart`, +do the following: + +1. Add the following imports: + + +```dart +import 'package:flutter/widget.dart'; +``` + + +2. Implement a `build()` method: + + +```dart +Widget build(BuildContext context) { + // This is used in the platform side to register the view. + final String viewType = ''; + // Pass parameters to the platform side. + final Map creationParams = {}; + + return UiKitView( + viewType: viewType, + layoutDirection: TextDirection.ltr, + creationParams: creationParams, + creationParamsCodec: const StandardMessageCodec(), + ); +} +``` + +For more information, see the API docs for: +[`UIKitView`](https://api.flutter.dev/flutter/widgets/UiKitView-class.html). + +### On the platform side + +In your native code, implement the following: + +`FLNativeView.h` + +```objc +#import + +@interface FLNativeViewFactory : NSObject +- (instancetype)initWithMessenger:(NSObject*)messenger; +@end + +@interface FLNativeView : NSObject + +- (instancetype)initWithFrame:(CGRect)frame + viewIdentifier:(int64_t)viewId + arguments:(id _Nullable)args + binaryMessenger:(NSObject*)messenger; + +- (UIView*)view; +@end +``` + +Implement the factory and the platform view in `FLNativeView.m` + +```objc +#import "FLNativeView.h" + +@implementation FLNativeViewFactory { + NSObject* _messenger; +} + +- (instancetype)initWithMessenger:(NSObject*)messenger { + self = [super init]; + if (self) { + _messenger = messenger; + } + return self; +} + +- (NSObject*)createWithFrame:(CGRect)frame + viewIdentifier:(int64_t)viewId + arguments:(id _Nullable)args { + return [[FLNativeView alloc] initWithFrame:frame + viewIdentifier:viewId + arguments:args + binaryMessenger:_messenger]; +} + +@end + +@implementation FLNativeView { + UIView *_view; +} + +- (instancetype)initWithFrame:(CGRect)frame + viewIdentifier:(int64_t)viewId + arguments:(id _Nullable)args + binaryMessenger:(NSObject*)messenger { + if (self = [super init]) { + _view = [[UIView alloc] init]; + } + return self; +} + +- (UIView*)view { + return _view; +} + +@end +``` + +Finally, register the platform view. This can be done in an app or a plugin. + + +For app registration, modify the App's `AppDelegate.m`: + +```objc +#import "AppDelegate.h" +#import "FLNativeView.h" +#import "GeneratedPluginRegistrant.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application + didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + [GeneratedPluginRegistrant registerWithRegistry:self]; + + NSObject* registrar = + [self registrarForPlugin:@"plugin-name"]; + + FLNativeViewFactory* factory = + [[FLNativeViewFactory alloc] initWithMessenger:registrar.messenger]; + [[self registrarForPlugin:@""] registerViewFactory:factory + withId:@""]; + return [super application:application didFinishLaunchingWithOptions:launchOptions]; +} + +@end +``` + +For plugin registration, modify the main plugin file (e.g. `FLPlugin.m`): + +```objc +#import "FLPlugin.h" +#import "FLNativeView.h" + +@implementation FLPlugin + ++ (void)registerWithRegistrar:(NSObject*)registrar { + FLNativeViewFactory* factory = + [[FLNativeViewFactory alloc] initWithMessenger:registrar.messenger]; + [registrar registerViewFactory:factory withId:@""]; +} + +@end +``` + +For more information, see the API docs for: + +* [`FlutterPlatformViewFactory`](https://api.flutter.dev/objcdoc/Protocols/FlutterPlatformViewFactory.html) +* [`FlutterPlatformView`](https://api.flutter.dev/objcdoc/Protocols/FlutterPlatformView.html) +* [`PlatformView`](https://api.flutter.dev/javadoc/io/flutter/plugin/platform/PlatformView.html) + +By default, the `UIKitView` widget appends the native `UIView` to the view hierarchy. For more documentation, see [UIKitView](https://api.flutter.dev/flutter/widgets/UiKitView-class.html). + +## Performance + +Platform views in Flutter come with performance trade-offs. + +For example, in a typical Flutter app, the Flutter UI is composed +on a dedicated raster thread. This allows Flutter apps to be fast, +as the main platform thread is rarely blocked. + +While a platform view is rendered with Hybrid Composition, the Flutter UI is composed from +the platform thread, which competes with other tasks like +handling OS or plugin messages, etc. + +Prior to Android 10, Hybrid Composition copies each Flutter frame +out of the graphic memory into main memory and then copied back to +a GPU texture. As this copy happens per frame, the performance of +the entire Flutter UI may be impacted. + +On the other hand, Virtual Display makes each pixel of the native view +flow through additional intermediate graphic buffers, which cost graphic +memory and drawing performance. + +For complex cases, there are some techniques that can be used to mitigate +these issues. + +For example, you could use a placeholder texture while an animation is +happening in Dart. In other words, if an animation is slow while a +platform view is rendered, then consider taking a screenshot of the +native view and rendering it as a texture. + +For more information, see: + +* [`TextureLayer`](https://api.flutter.dev/flutter/rendering/TextureLayer-class.html) +* [`TextureRegistry`](https://api.flutter.dev/javadoc/io/flutter/view/TextureRegistry.html) +* [`FlutterTextureRegistry`](https://api.flutter.dev/objcdoc/Protocols/FlutterTextureRegistry.html) diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/Android-Multidex-support.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Android-Multidex-support.md new file mode 100644 index 0000000000000000000000000000000000000000..cd6d894dc0c190cd650590b46247b2aa58202bba --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Android-Multidex-support.md @@ -0,0 +1,15 @@ +# Dex Overview + +Android apps are compiled into .dex (dalvik executable) files that run on the Dalvik virtual machine. Before Android API 21, apps compiled into a single .dex file, which has the limitation of only supporting 64k method names. This means that larger apps frequently exceed this limit, thus requiring enabling "Multidex" support (see [https://android-doc.github.io/tools/building/multidex.html](https://android-doc.github.io/tools/building/multidex.html) for more details). + +In Flutter applications, it is easy to exceed the single dex limit primarily through using plugins. Thus, even small apps may occasionally exceed the limit by importing a full suite of standard Google plugins. Even though unused methods are stripped from releases, the dex limit can still prevent apps from building. + +# Multidex support + +Flutter supports automatic multidex error detection and support for apps targeting API 20 and below. When apps fail to build due to the multidex error, Flutter will automatically prompt the user if multidex support should be enabled. Answering yes will add support and subsequent builds in the future will build with multidex support enabled. + +You may pass the `--no-multidex` flag to temporarily disable multidex support during a build. + +# API 21+ + +Apps that target API 21+ devices already have multidex natively supported. However, we do not recommend targeting API 21+ purely to resolve the multidex issue as this may inadvertently exclude potential users running older devices. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/Android-Platform-Views.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Android-Platform-Views.md new file mode 100644 index 0000000000000000000000000000000000000000..bbf3eb30a2a69237412dfa888736dfb3f88cd777 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Android-Platform-Views.md @@ -0,0 +1,89 @@ +# Background + +Flutter UIs function conceptually similar to a WebView on Android. The +Flutter Framework takes a widget tree described by the app developer and +translates that into an internal widget hierarchy, and then from that decides +what pixels to actually render. Web developers can think of this as analogous +to how a browser takes HTML/CSS, creates a Document Object Model ("DOM"), and +then uses that DOM to actually render pixels each frame. Also like a WebView, +Flutter UIs aren't translated to a set of Android View widgets and composited +by the Android OS itself. Flutter controls a texture (generally through a +[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView)) +and uses Skia to render directly to the texture without ever using any kind of +Android View hierarchy to represent its internal Flutter widget hierarchy or +UI. + +This means that like a WebView, by default a Flutter UI could never contain +an Android View within its widget hierarchy. Since the Flutter UI is just +being drawn to a texture and its widget tree is entirely internal, there's no +place for the View to "fit" within Flutter's internal model or render +interleaved within Flutter widgets. That's a problem for developers that would +like to include complex pre-existing Android views in their Flutter apps, like +WebViews themselves, or maps. + +To solve this problem Flutter created an [AndroidView +widget](https://api.flutter.dev/flutter/widgets/AndroidView-class.html) that +Flutter developers can use to visually embed actual Android View components +within their Flutter UI. + +# Approaches + +There are currently three different implementations of Android platform views: +- [Virtual Display](Virtual_Display.md) (VD) +- [Hybrid Composition](../Hybrid-Composition.md) (HC) +- [Texture Layer Hybrid Composition](Texture-Layer-Hybrid-Composition.md) (TLHC) + +Each has a different set of limitations and tradeoffs, as discussed below. The pages linked above give details about each implementation. + +## Virtual Display + +This mode works by rendering the platform view into [a `VirtualDisplay`](https://developer.android.com/reference/android/hardware/display/VirtualDisplay), whose contents are connected to [a Flutter `Texture`](https://api.flutter.dev/flutter/widgets/Texture-class.html). + +Because this renders to a `Texture`, it integrates well into the Flutter drawing system. However, the use of `VirtualDisplay` introduces a number of compatibility issues, including with text input, accessibility, and secondary views (see [the Virtual Display page](Virtual-Display.md) for details). + +This display mode requires SDK 20 or later. + +## Hybrid Composition + +This mode directly displays the native Android [`View`](https://developer.android.com/reference/android/view/View) in the view hierarchy. This requires several significant changes to the way Flutter renders: +- The Flutter widget tree is divided into two different Android `View`s, one below the platform view and one above it. +- To avoid tearing or other visual artifacts, Flutter's composition must be done on the platform thread rather than a dedicated thread. + +Because the native view is being displayed directly, just as it would be in non-Flutter application, this mode is the least likely to have compatibility issues with the platform view. However, the rendering changes can significantly impact Flutter's performance. In addition, on versions of Android before SDK 29 (Android 10) Flutter frames have a GPU->CPU->GPU round trip that further impacts performance. + +This display mode requires SDK 19 or later, and uses the FlutterImageView based renderer. + +## Texture Layer Hybrid Composition + +This mode, introduced in Flutter 3.0, attempted to address the limitations of the modes above, and was originally intended to replace both. Like Hybrid Composition, the view is actually placed on the screen at the correct location. However, as with Virtual Display the drawing uses a `Texture`, which in this case is populated by redirecting [`draw`](https://developer.android.com/reference/android/view/View#draw(android.graphics.Canvas)). + +In most cases this combines the best aspects of Virtual Display and Hybrid Composition, and should be preferred when possible. One notable exception however is that if the platform view is, or contains, a [`SurfaceView`](https://developer.android.com/reference/android/view/SurfaceView) this mode will not work correctly, and the `SurfaceView` will be drawn at the wrong location and/or z-index. + +This display mode requires SDK 23 or later. + +# Selecting a mode + +Usually Android platform views are created with one of the `init*` methods: +- `initAndroidView` creates a [`TextureAndroidViewController`](https://api.flutter.dev/flutter/services/TextureAndroidViewController-class.html), which will use TLHC mode if possible, and fall back to VD if not. The fallback is triggered if: + - the current SDK version is <23, or + - the platform view hierarchy contains a `SurfaceView` (or subclass) **at creation time**. + + There is [a known issue](https://github.com/flutter/flutter/issues/109690) where if the view hierarchy does not contain a `SurfaceView` at creation time, but one is added later, rendering will not work correctly. Until that issue is resolved, plugin authors can work around this by either: + - including a 0x0 `SurfaceView` in the view hierarchy at creation time, to trigger fallback to VD, or + - switching to `initExpensiveAndroidView` to require HC. + + (The behavior described above is for Flutter 3.3+. Flutter 3.0 did not include the fallback to VD, and in Flutter <3.0 this always used VD.) +- `initSurfaceAndroidView` creates a [`SurfaceAndroidViewController`](https://api.flutter.dev/flutter/services/SurfaceAndroidViewController-class.html), which will use TLHC if possible, and fall back to HC if not. As above, the fallback is triggered if: + - the current SDK version is <23, or + - the platform view hierarchy contains a `SurfaceView` (or subclass) **at creation time**. + + There is [a known issue](https://github.com/flutter/flutter/issues/109690) where if the view hierarchy does not contain a `SurfaceView` at creation time, but one is added later, rendering will not work correctly. Until that issue is resolved, plugin authors can work around this by either: + - including a 0x0 `SurfaceView` in the view hierarchy at creation time, to trigger fallback to HC, or + - switching to `initExpensiveAndroidView` to require HC directly. + + (The behavior described above is for Flutter 3.7+. In Flutter 3.0 and 3.0 this behaved identically to `initAndroidView`, and in Flutter <3.0 this always used HC.) +- `initExpensiveAndroidView` creates an [`ExpensiveAndroidViewController`](https://api.flutter.dev/flutter/services/ExpensiveAndroidViewController-class.html), which will always use HC. + + (This API was introduced in Flutter 3.0.) + +In general, plugins will likely get the best performance by using `initAndroidView` or `initSurfaceAndroidView` (depending on which fallback mode is desired for older versions of Android), and should only use `initExpensiveAndroidView` if the plugin is found to be incompatible with TLHC (such as dynamically adding a `SurfaceView`). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/How-Flutter-apps-are-compiled-with-Gradle-for-Android.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/How-Flutter-apps-are-compiled-with-Gradle-for-Android.md new file mode 100644 index 0000000000000000000000000000000000000000..88fca2736ac3c51fbd111922d9e8632746a7474f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/How-Flutter-apps-are-compiled-with-Gradle-for-Android.md @@ -0,0 +1,151 @@ +Flutter builds APKs through a long set of steps that ultimately defer to Gradle. +The logic lives in many places: the Flutter framework, the Flutter app template, +and a mix of both Dart and Gradle scripts. This doc is a high level description +of the overall flow, which can be hard to follow given how many different +places at once it lives and how asynchronous Gradle builds are. + +- The Flutter tool fetches any plugin dependencies of the Flutter app from pub + and downloads it to the pub cache. This step follows normal `pub get` behavior + and version solving. +- The Flutter tool writes project metadata to some local temporary files. This + includes things like the location of the local Flutter SDK, and paths to all + the newly downloaded plugins from pub on disk. +- The Flutter tool invokes Gradle to build the APK. +- Gradle reads the app's `build.gradle`, which applies the Flutter framework's + `flutter.gradle` plugin. +- `flutter.gradle` adds the Flutter engine and all of its support library + dependencies as a `jar` dependency to the Flutter app. +- `flutter.gradle` adds all of the Flutter plugins of an app as "subproject" + Gradle dependencies (usually). +- Gradle compiles the Flutter app and all of its subprojects (Flutter plugins) + into a root APK. + +Those steps are deliberately listed as bullet points and not a numbered list. +Gradle invokes a lot of these steps at seemingly random and parallel times. +Time is relative. + +## Plugins are compiled as subprojects (usually) + +Flutter plugins are typically included in Flutter apps as source code and +compiled by Gradle, the same as the rest of the code in the Flutter app. + +This is done by using the Gradle concept of +["subprojects"](https://docs.gradle.org/current/userguide/multi_project_builds.html#sec:subproject_configuration), +a way of structuring build tasks so that they're marked as being dependent on +each other. All Flutter apps are built with one subproject for the actual +Android code of the app and other subprojects for the Android code of any +plugins. + +For example, let's assume that there's a Flutter app that uses two plugins: +`foo` and `bar`. Let's also assume `foo` depends on `baz`, so `baz` is included +as part of the build at runtime. Running `./gradlew projects` in the app's +`android` directory (after first running `flutter build apk` to give the Flutter +tool's Dart code an opportunity to set up the build) would reveal the following +project structure: + +```console +$ ./gradlew projects + +> Task :projects + +------------------------------------------------------------ +Root project +------------------------------------------------------------ + +Root project 'android' ++--- Project ':app' ++--- Project ':bar' ++--- Project ':baz'' +\--- Project ':foo' +``` + +### The how + +- [The Flutter tool's Dart + code](https://github.com/flutter/flutter/blob/82410a5ae7159b9f39e85b713decf532840ac70c/packages/flutter_tools/lib/src/build_system/targets/assets.dart#L115-L119) + writes a `.flutter-plugins` file containing a list of all the plugins used by + the app and their location on disk. +- [`flutter.gradle`](https://github.com/flutter/flutter/blob/508c35940b4989c400e7b5a2851d03e4bd0b2ca2/packages/flutter_tools/gradle/flutter.gradle#L243-L264) + reads from this file and actually adds the plugins as Gradle subproject + dependencies of the app. +- This also depends on the Flutter app having a block of code in its template + that actually references and builds these subprojects once they're defined, + see ["hello world" as an example of the app's Gradle + script](https://github.com/flutter/flutter/blob/508c35940b4989c400e7b5a2851d03e4bd0b2ca2/examples/hello_world/android/settings.gradle#L15-L19). + +### Special Considerations + +Including plugin dependencies as source code and then compiling them is not +something Gradle generally expects apps to be doing. In the past we've hit +several issues caused by Gradle tooling around dependency management being built +for typical Android patterns (including dependencies as `.aars` or `.jars`) and +breaking down for the Flutter use case. + +For example: + +- Plugins have their own `build.gradle` scripts that may conflict with the app + and other plugins in unexpected ways. How Gradle handles these conflicts is + situational and sometimes undefined behavior. +- If a plugin has a problem in its Android code, the entire user's app will fail + to compile with a stack trace that may or may not really point to the plugin's + code on disk. +- If the plugin's code conflicts with the app's Android source code (for + example, the plugin has a conflicting transitive dependancy), Gradle will + generally fail to compile with difficult to translate stack traces. +- These subprojects are added in an `afterEvaluate` hook in `flutter.gradle`. + Generally adding any logic in `afterEvaluate` blocks is discouraged because it + runs after so much of Gradle's standard pipeline. + +## Sometimes plugins are compiled as AARs + +Because of the problems with compiling the plugins as subprojects, the +Flutter team explored switching the plugins to instead be compiled first as +standalone AARs and then included as binary dependencies as is more typical for +Android dependencies and expected by Gradle. This effort ended up being blocked, +but is still occasionally automatically used as a fallback attempt when one of the typical +problems with building as subprojects is detected as failing a build today. + +The basic AAR flow goes like this: + +- The Flutter tool fetches any plugin dependencies of the Flutter app from pub + and downloads it to the pub cache. This step follows normal `pub get` behavior + and version solving. +- The Flutter tool writes project metadata to some local temporary files. This + includes things like the location of the local Flutter SDK, and paths to all + the newly downloaded plugins from pub on disk. +- The Flutter tool invokes Gradle to build the APK. +- Gradle reads the app's `build.gradle`, which applies the Flutter framework's + `flutter.gradle` plugin. +- `flutter.gradle` adds the Flutter engine and all of its support library + dependencies as a `jar` dependency to the Flutter app. +- `flutter.gradle` compiles all of the plugins individually into `aars`, and + adds all of the Flutter plugins as `aar` dependencies to the Flutter app. +- Gradle compiles the Flutter app and all of its binary dependencies into a root + APK. + +### Why this isn't the standard + +There were a couple blocking issues that kept us from following this flow in all +cases: + +- The implementation of this depends on `TaskInternal.execute()`, a Gradle API + that's been removed with no replacement in Gradle 5. +- This style of build is extremely slow compared to the previous build flow. +- The plugins currently in the Flutter ecosystem were written under the previous + build system and in many cases depend on the transitive dependency bleed to + work. For example, many plugins built this way will fail to compile + individually because they're missing an explicit dependency on + `androidx.annotation`. There are also other plugins that deliberately expose + their own transitive `jar` dependencies in a way where they're automatically + included in the app at build time by the subproject system, but apps including them as + AARs will fail with "Class not found errors" unless the transitive plugin dependencies + from the plugin are manually added into the apps' Gradle dependencies as well. + +### When this is still used + +We still fall back on this as a silent retry if we detect that the failure is +caused by one of the likely error cases from the subproject structure: +specifically, if we detect that the build has failed because of a likely +AndroidX incompatibility issue. Jetifier is one of the Gradle tools that doesn't +function normally with the subproject structure, so building the plugins as AARs +can sometimes fix errors in that class. diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/New-Android-version.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/New-Android-version.md new file mode 100644 index 0000000000000000000000000000000000000000..eabe19e5b801e094f5b387975ae0c32a02c17be9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/New-Android-version.md @@ -0,0 +1,73 @@ +Support a new android API level flutter +go/flutter-android-new-api-level + +## Objective +Provide a list of areas to consider and examples of former work for how to update flutter to support a new version of the android API. This happens every fall and flutter developers expect to build against the latest versions quickly after they are available. +### Overview +#### New Android features +New android features can require a broad spectrum of work. Some will require nothing from flutter. Some will require a lot of work, such as the support for “back preview”. The android team generally needs to be aware and schedule work ahead of time. +#### Update Gradle/AGP support +Sometimes newer versions of gradle are required to build without warning against a new version of android api. The warning looks like +``` +WARNING:We recommend using a newer Android Gradle plugin to use compileSdkPreview = "somenamedversion" +This Android Gradle plugin (X.X.X) was tested up to compileSdk = XX +``` +Bump the gradle version used in the engine. + + +#### Update Robolectric +Robolectric is a dependency that allows us to write unit tests that run on a local development machine against the android api surface without being on an android device. +Update what version of Robolectric we use in framework, engine and packages. +Example packages: https://github.com/flutter/packages/pull/4018 +Example engine: https://github.com/flutter/engine/pull/42965 + + +#### Update CI + +Update emulator and/or physical device testing to use the new android api version for framework, engine and packages. +Firebase test lab emulators and physical devices need support from the firebase team +Run command `gcloud firebase test android models list` [documentation](https://firebase.google.com/docs/test-lab/android/available-testing-devices) to see available devices. +Flutter managed Emulators (engine) require a new AVD image to one that supports the new api: https://flutter-review.googlesource.com/c/recipes/+/45049 +Example Framework: https://flutter-review.googlesource.com/c/recipes/+/45048 +Example Engine: https://github.com/flutter/engine/pull/42492 +Packages +Modify https://github.com/flutter/packages/blob/main/.cirrus.yml “firebase_test_lab_script” +Specifically the value for “--device” `./script/tool_runner.sh firebase-test-lab --device model=redfin,version=30 --exclude=script/configs/exclude_integration_android.yaml` +https://github.com/flutter/packages/pull/4430 +#### Update documentation +Update documentation page to indicate the new api is tested +https://docs.flutter.dev/reference/supported-platforms +#### Modify defaults +In flutter/flutter: +Update default compile sdk version and target sdk version to the new api value +[Code here](../../../packages/flutter_tools/gradle/src/main/groovy/flutter.groovy) +Follow comments in that file to update other locations that are assumed to be the same. +Example bumping min sdk which is similar but different: https://github.com/flutter/flutter/pull/125515 +In flutter/buildroot: +Upload new android sdk version to CIPD (steps at end of document) +Update default android sdk version +https://github.com/flutter/buildroot/blob/7984a08044b94bfb4c466ac881c6b56fdfe9148b/build/config/android/config.gni#L19 +In flutter/engine: +Update android SDK in DEPS file +https://github.com/flutter/engine/blob/9289cb6a36aa86990e3ffe0f20324dafa38e7c11/DEPS#L731 +Update buildroot version in DEPS file to consume the changes in the flutter/buildroot steps above +https://github.com/flutter/engine/blob/9289cb6a36aa86990e3ffe0f20324dafa38e7c11/DEPS#L260 +In flutter/packages +Set examples to build with the new api. +#### Test “Integration Test” package +Integration test is a package shipped in the flutter tool for running integration tests on flutter apps. Ensure that the integration test package has an example that targets the new api level on the most recent published stable version of the flutter tool. + +#### Related documents +[Emulators for Flutter Android Testing (PUBLICLY SHARED)](https://docs.google.com/document/d/10wYUcLcSTF4Epg2EUGoBqOkkOe4zxKHvYKjXFZAOgGs/edit?resourcekey=0-pltjPvEtVezXDADMbUwFHQ) + +### Additional notes +#### Upload new SDK version to CIPD and consume in buildroot + +Make a fork of the [buildroot](https://github.com/flutter/buildroot) if you haven’t yet. +Get CIPD temporary write access, if you don’t have it: +Make a github issue describing that there is a new android release that needs to be uploaded to CIPD + Go to [go/flutter-luci-cipd#requesting-writeread-access-to-cipd-packages](http://goto.google.com/flutter-luci-cipd#requesting-writeread-access-to-cipd-packages) and click request access on the hyperlinked page +Fill out the justification with b/12345 - (the form requires a buganizer link, and the addition of b/12345 satisfies this). +Reach out to someone on the infra team to get your request approved +Run the [create_cipd_packages.sh script](https://github.com/flutter/engine/blob/a2adaa39a2c35d1ab23394d550c9a7e50fe41fe9/tools/android_sdk/create_cipd_packages.sh) with your desired version tag (note that there is a .ci.yaml validation step that requires this version tag to be a combination of lowercase letters and numbers). The script pulls the version that will be uploaded from the packages.txt file in the same subdirectory. +The remaining steps are to consume the changes in the buildroot, and then consume those buildroot changes in the engine. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/Resolving-common-build-failures.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Resolving-common-build-failures.md new file mode 100644 index 0000000000000000000000000000000000000000..6825f65e6b4f5d483e5ae645cda5292033c08aca --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Resolving-common-build-failures.md @@ -0,0 +1,42 @@ +# Why does my build fail? + +Flutter utilizes native build systems on Android and iOS. +As these systems evolve and introduce additional features on their own pace, developers sometimes need to re-adjust the configuration to prevent build failures. + +This page collects such errors and the standard procedure to work around them. + +## Android + +Android builds are handled by the Gradle tool, which is configured using .gradle files. +Android Apps themselves are packaged, compiled & optimized by a variety of tools - all being orchestrated by the Android Gradle Plugin (AGP). + +Usually, Android Studio and AGP are aligned in their versions. Android Studio also contains a few assistants to smoothen the upgrade process for existing projects. + +### Quick Fix (suitable for most build errors) + +- Open Android Studio +- Use the File Menu, then "Check for Updates" & retrieve the latest version if necessary +- After the upgrade, use the File Menu and open the "android/build.gradle" or "example/android/build.gradle" file directly. Android Studio will then import the Android portion of the project and will offer you to upgrade the Gradle plugin and the Gradle wrapper +- If you develop a plugin, you need to manually check `android/build.gradle` and `example/android/build.gradle` afterwards and ensure they are referring to the same AGP version + +### Minimum supported Gradle version is 5.4.1. Current version is 4.10.2. + +In this example, the Gradle plugin upgrade was stopped mid-way and the build can not continue. + +To fix it, open `android/gradle/wrapper/gradle-wrapper.properties` (`example/android/gradle/wrapper/gradle-wrapper.properties` if you develop a plugin) and replace the version in there with the required version. + +### The Android Gradle plugin only supports Kotlin Gradle Plugin 1.3.10 or higher + +With the steps above, only AGP and the wrapper got upgraded. The Kotlin compiler infrastructure is a secondary dependency which is also dependent on certain AGP/Gradle versions. +To resolve it: + - Scan your build.gradle files for a placeholder like `ext.kotlin_version = '1.2.71'` and replace it with the latest Kotlin version (or the version named in the error message). + - Android Studio can recommend the latest version, if you open the build.gradle file in it + - New Kotlin versions introduce language & syntax optimizations; it is therefore recommended to use Android Studio again and open the native part of the App (see above) and let it run a full compilation, including a clean operation. Android Studio will report build failures and suggestions to optimize your code. + +### Gradle task assembleDebug failed with exit code 1 + +If `assembleDebug` or `assembleRelease` failed but no error message can be seen, you are likely on a older Flutter version (`<= 1.9.1.hotfix4`) which may suppress the root cause of the error. + +This problem can be solved in two ways: + - Please try a more recent channel, like `beta` or `dev` and restart the compilation. It may still fail, but the error will now be printed + - Open the `$FLUTTER_ROOT/packages/flutter_tools/gradle/flutter.gradle` file in your local installation and comment the line which reads `gradle.useLogger(new FlutterEventLogger())`, then retry your build \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/Testing-Android-Changes-in-the-Devicelab-on-an-Emulator.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Testing-Android-Changes-in-the-Devicelab-on-an-Emulator.md new file mode 100644 index 0000000000000000000000000000000000000000..9efb4e6c05738ada48ec3f821a78fbd53e5242d7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Testing-Android-Changes-in-the-Devicelab-on-an-Emulator.md @@ -0,0 +1,59 @@ +## Testing on Emulators in the Devicelab +While the Devicelab is typically for testing on Devices we have added support so that developers can now test Android changes via the LUCI recipes on an Android Emulator. + +You can specify a new test via the .ci.yaml file in the repository. This allows the infra framework to run the test automatically with minimal work from the developer. + +### Adding a Brand New Target +Adding a new Devicelab Android Emulator test for Android feature changes requires the following steps: + +Starting with the finished target yaml definition: + +``` +- name: Linux_android android_defines_test + recipe: devicelab/devicelab_drone + presubmit: true + timeout: 60 + dimensions: { + kvm: “1”, + cores: “8”, + Machine_name: “n1-standard-8” + } + properties: + device_type: “none” + task_name: android_defines_test + use_emulator: “true” + dependencies: >- + [ + {"dependency": "android_virtual_device", "version": "31"} + ] + tags: > + ["devicelab", “linux”] + timeout: 300 +``` + +1. The `name` of the target consists of the platform which can be either `Linux` or `Linux_Android`. It is better to pick `Linux_Android` since it will provide you more of the needed dependencies. +2. The `recipe` is always `devicelab/devicelab_drone`. This is the recipe that will launch the emulator and drive the test. +3. `presubmit` can be `true` or `false`. To run the test in any PR that is opened you should set this to `true`. This is the best approach to catch bugs before they are mirrored to google3. +4. `timeout` is an integer value. +5. `dimensions` is needed to tell the LUCI framework that we need to run this test on a machine that supports nested virtualization and should be set as shown. +6. `properties`: + + a. `device_type` must be set to `none` so that we use a machine without an attached android phone. This will cause problems if not set. + + b. `task_name` is the name to apply to the task. + + c. `use_emulator` is the flag to tell the test recipe that we need to create an Emulator for this test. + + d. `dependencies` can be used to override the `android_virtual_device` api version. + + e. `tags` should be set to `devicelab` and `linux` + + f. `timeout` the timeout here is for the time to give the test to run before killing it. + +### Updating an Existing Target +If you want to update an existing target you will only need to add the following changes: +1. add a `dimensions` field as described above. +2. Set the `device_type: "none"`. +3. Add `use_emulator: "true"` flag in properties. Note this is not a boolean but must be a string. +4. Add a dependency for the android emulator version to the properties. If there are no dependencies add it as shown above. +5. Remove any tags that specify android. These are for benchmark tests and having them in will cause some of the device checks to fail. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/Texture-Layer-Hybrid-Composition.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Texture-Layer-Hybrid-Composition.md new file mode 100644 index 0000000000000000000000000000000000000000..670494ac07c454655ad6f56e6332e5c369afdff8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Texture-Layer-Hybrid-Composition.md @@ -0,0 +1,20 @@ +_See also: [Hybrid Composition|Hybrid Composition#Android](../Hybrid-Composition.md)_ + +# Background + +Texture Layer Hybrid Composition (TLHC) is one of several modes for displaying platform views on Android. See [Android Platform Views](Android-Platform-Views.md) for an overview of modes. + +It was introduced in Flutter 3.0 to combine the best aspects of Virtual Display and Hybrid Composition while addressing their most significant issues. While it was originally intended to replace both, it turned out to have some limitations that prevented serving as a complete replacement, so is now a third option. + +# Approach + +TLHC uses a [custom `FrameLayout`](https://github.com/flutter/engine/blob/7025645c52bfaeb1cc67be5ca842b65772c89c8e/shell/platform/android/io/flutter/plugin/platform/PlatformViewWrapper.java#L35-L46), which is placed in the native view hierarchy as normal, but [redirects drawing](https://github.com/flutter/engine/blob/7025645c52bfaeb1cc67be5ca842b65772c89c8e/shell/platform/android/io/flutter/plugin/platform/PlatformViewWrapper.java#L299-L309) to a canvas that backs a Flutter [`Texture`](https://api.flutter.dev/flutter/widgets/Texture-class.html) in order to compose with the rest of the Flutter UI as normal (without the layering and threading complexities of Hybrid Composition). + +# Limitations + +- Because of the APIs involved, this requires SDK level 23 or later, so does not support quite as far back as Virtual Display (SDK 20+) or Hybrid Composition (SDK 19+). +- [Android `SurfaceView`s](https://developer.android.com/reference/android/view/SurfaceView) bypass the normal drawing mechanism of Android views, so are not redirected as expected. Instead, they draw as if the redirect did not happen, which generally causes them to draw over all Flutter content. + - To mitigate this, platform views attempt to automatically fall back to another mode when a `SurfaceView` is present. However, this currently [only works if the `SurfaceView` is present when the platform view is created](https://github.com/flutter/flutter/issues/109690). +- [Android `TextureView`s](https://developer.android.com/reference/android/view/TextureView) do not always show updates correctly. This is [still under investigation](https://github.com/flutter/flutter/issues/103686), and for now affected plugins are best off using another mode. + +To see all known issues specific to this mode, search for the [`tlhc-only` label](https://github.com/flutter/flutter/labels/tlhc-only). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-Engine's-Android-API-version.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-Engine's-Android-API-version.md new file mode 100644 index 0000000000000000000000000000000000000000..c13426d4ca6f2368ca9f6a105f9ce98731a165fd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-Engine's-Android-API-version.md @@ -0,0 +1,44 @@ +When new Android versions become available, the following steps should be taken in order to fully support the new API version in the Flutter Engine. These steps only change the Engine to build against and target the new API and does not guarantee everything works with the changes in the new android API. + +## Buildroot: + +build/config/android/config.gni: Edit default_android_sdk_version and default_android_sdk_build_tools_version + +## SDK and other dependencies: + +Flutter now includes a script to download, package, and upload the Android SDK to CIPD. These CIPD packages are then used as dependencies by the Flutter engine and recipes so that there is a stable archived version of the Android SDK to depend on. The script is located in the Flutter engine repo under `tools/android-sdk/create_cipd_packages.sh`. + +Edit `tools/android-sdk/packages.txt` to refer to the updated versions you want. The format for each line in packages.txt is `:`. Typically, each should be updated to the latest available version which can be found with the `sdkmanager --list --include_obsolete`. `sdkmanager` can be found in your `commandline-tools` package of the android sdk. + +The script must be run on a Linux or Mac host. Run: + + `$ ./tools/android-sdk/create_cipd_packages.sh ` + +This script will download and re-upload the entire SDK, so it may take a long time to complete. `cmdline-tools` should be installed in your local sdk as the script uses `sdkmanager`. Once the CIPD packages are finished uploading, you can update the sdk version tag used in `.ci.yaml`, `DEPS`, and elsewhere. + +It is no longer recommended to upload CIPD android sdk packages manually, but if it must be done, run the following commands to zip and upload each package to CIPD: + + `$ cipd create -in /Android/sdk/ -name flutter/android/sdk/ -tag version:` + +Typically, `` is in your home directory under `~/Library/Android`. The `` is what you will use to specify the new package you uploaded in the Flutter engine DEPS file. + +The `flutter-cipd-writers` role is required in order to complete this operation. Googlers can apply for access [here](https://grants.corp.google.com/#/grants?request=8h%2Fflutter-cipd-writers) Once this role is granted, `cipd auth-login` must be run in order for cipd to update the user's available roles. + +## Engine: + +* DEPS: Roll buildroot hash +* DEPS: Change the version parameter under `flutter/android/sdk/all/${{platform}}` to the newly uploaded CIPD version tag. Eg, `'version': 'version:30r2'` +* Change any references to the old SDK version to the latest in build.gradle across the repo. +* In `tools/javadoc/gen_javadoc.py`, bump the reference to `android-XX` in `classpath` to the latest version. +* In `tools/cipd/android_embedding_bundle/build.gradle`, bump `compileSdkVersion XX` to the latest version. +* In `shell/platform/android/test_runner/build.gradle`, bump `compileSdkVersion XX` to the latest version. +* In all android projects in `testing`, upgrade the `compileSdkVersion` and `targetSdkVersion` in `android/app/build.gradle`. + +## Flutter LUCI Recipes: + +Scenario tests recipes/engine/scenarios.py: Update the CIPD hash to the latest version that contains the configuration for the Android Virtual Device (AVD) desired `generic_android.textpb` and change the script to use the new textpb config and change the API number in the logs. The CIPD package for the AVD launcher can be found at https://chrome-infra-packages.appspot.com/p/chromium/tools/android/avd/+/ and updating the packages uploaded there is tracked in https://bugs.chromium.org/p/chromium/issues/detail?id=1112429#c7 + +## Framework, examples and samples + +* Templates in tooling: Change `targetSdkVersion` in various `build.gradle.tmpl` files to use the new API version +* Examples, samples, gallery, etc: Change `targetSdkVersion` in `android/app/build.gradle` for each project to the new API version. diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-Flutter-projects-to-Gradle-4.1-and-Android-Studio-Gradle-plugin-3.0.1.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-Flutter-projects-to-Gradle-4.1-and-Android-Studio-Gradle-plugin-3.0.1.md new file mode 100644 index 0000000000000000000000000000000000000000..22e11593fbded4f399041903b1fce0c7b5d460b1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-Flutter-projects-to-Gradle-4.1-and-Android-Studio-Gradle-plugin-3.0.1.md @@ -0,0 +1,136 @@ +(This wiki page applies to people migrating code written before December 2017. It is unlikely to still be relevant.) + +## Introduction + +Prior to [#13492](https://github.com/flutter/flutter/pull/13492) (merged on 2017-12-13), Flutter tooling created projects whose Android part used Gradle 3.3 and the Android Studio Gradle plugin version 2.3.3. + +After #13492, Flutter tooling creates projects based on Gradle 4.1 and the Android Studio Gradle plugin version 3.0.1. + +This page describes how you can manually upgrade your Flutter projects from the old mode to the new one. This may be needed to consume new-mode Flutter plugins. + +Where in doubt, please consult https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html. + +## Upgrading a Flutter app project + +1. In `android/gradle/wrapper/gradle-wrapper.properties`, replace `3.3` with `4.1` in the last line. +1. In `android/build.gradle`, replace + ```gradle + repositories { + jcenter() + maven { + url "https://maven.google.com" + } + } + ``` + by + ```gradle + repositories { + google() + jcenter() + } + ``` + twice. + + Also replace + ```gradle + dependencies { + classpath 'com.android.tools.build:gradle:2.3.3' + } + ``` + by + ```gradle + dependencies { + classpath 'com.android.tools.build:gradle:3.0.1' + } + ``` + + Finally, replace + ```gradle + subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" + project.evaluationDependsOn(':app') + } + ``` + by + ```gradle + subprojects { + project.buildDir = "${rootProject.buildDir}/${project.name}" + } + subprojects { + project.evaluationDependsOn(':app') + } + ``` + This change prevents a "Gradle build failed to produce an Android package" error message when your app + depends on plugins whose name comes before "app" in lexicographic order. +1. In `android/app/build.gradle`, replace version `25` by `27` and `25.0.3` by `27.0.3` (three places total). + + If you are using a version of Flutter from before [#13558](https://github.com/flutter/flutter/pull/13558), + add the following to the `android`,`buildTypes` section: + + ```yaml + profile { + matchingFallbacks = ['debug', 'release'] + } + ``` + + Replace configurations named `compile` by `api` (or `implementation`) and `provided` by + `compileOnly` in the `dependencies` section. You may also want to update dependencies with newer + versions as applicable. In the default project templates generated by Flutter tooling we have replaced + ```gradle + dependencies { + androidTestCompile 'com.android.support:support-annotations:25.4.0' + androidTestCompile 'com.android.support.test:runner:0.5' + androidTestCompile 'com.android.support.test:rules:0.5' + } + ``` + by + ```gradle + dependencies { + testImplementation 'junit:junit:4.12' + androidTestImplementation 'com.android.support.test:runner:1.0.1' + androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' + } + ``` + loosely following the lead of Android Studio. + +## Upgrading a Flutter plugin project + +1. Upgrade the `example/` Flutter app project as indicated above. +1. Remove the Gradle wrapper files and folder (`gradlew`, `gradlew.bat`, `gradle/`) from the top-level + `android` folder, if present. The Gradle wrapper is used by the `example` app only, and it should + already contain these files. +1. In `android/build.gradle`, replace + ```gradle + repositories { + jcenter() + maven { + url "https://maven.google.com" + } + } + ``` + by + ```gradle + repositories { + google() + jcenter() + } + ``` + twice. + + Also replace + ```gradle + dependencies { + classpath 'com.android.tools.build:gradle:2.3.3' + } + ``` + by + ```gradle + dependencies { + classpath 'com.android.tools.build:gradle:3.0.1' + } + ``` + + Replace version `25` by `27` and `25.0.3` by `27.0.3`. + + Lastly, replace configurations named `compile` by `api` (or `implementation`) and `provided` by `compileOnly` + in any custom `dependencies` section. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-Flutter-projects-to-build-with-gradle.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-Flutter-projects-to-build-with-gradle.md new file mode 100644 index 0000000000000000000000000000000000000000..90853490c65649fd4931e2ee6446ecbc66c0eabe --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-Flutter-projects-to-build-with-gradle.md @@ -0,0 +1,97 @@ +(This wiki page applies to people migrating code written before February 2017. It is unlikely to still be relevant. The `flutter` tool directs people to this page when a non-Gradle project is detected.) + +## Introduction + +Prior to [Pull Request 7902](https://github.com/flutter/flutter/pull/7902) -- which was merged to master on February 6th 2017 -- we used a custom build process when building for Android. We now build for Android using the same standard 'gradle-based' build process that Android Studio project uses. This makes it easier to edit the native Android code; after the upgrade you can open the `android` folder in Android Studio, and it will know how to build the project, and will allow you to add java code. + +If you have a project that was created prior to this date, please follow these steps to switch to building with gradle. This is required as we will be removing the custom build support shortly. + +*Note*: These steps apply to projects created with `flutter create` prior to February 6th 2017. If your project was based on a copy of `/examples/hello_services/`, then you just need to synchronize the contents of [`/android/build.gradle`](../../../packages/flutter_tools/templates/create/android.tmpl/build.gradle) and [`/android/app/build.gradle`](../../../packages/flutter_tools/templates/create/android.tmpl/app/build.gradle). + +## Upgrading an existing project + +The steps below use `` as a placeholder for the directory containing your existing app, e.g. `~/dev/flutter/awesomeapp`. + +### Step 0: Ensure flutter is up to date + +Make sure you flutter SDK is up to date. You need a recent (March 1st, 2017 later) SDK from the master branch of https://github.com/flutter/flutter. + +You can upgrade by running `flutter upgrade` in a terminal. + +### Step 1: Create a new project with the new template + +``` +flutter create +mv /lib /lib.template +``` + +### Step 2: Merge over your Flutter UI code + +Main Dart UI code: +``` +cp -r /lib / +``` + +If `/assets` exists: +``` +cp -r /assets / +``` + + + +### Step 3: Synchronize AndroidManifest.xml + +**Note:** This step is only required if you made any changes to
    `android/AndroidManifest.xml` + +If that is the case, apply those changes to the new manifest,
    `/android/app/src/main/AndroidManifest.xml` + +### Step 4: Synchronize pubspec.yaml + +**Note:** This step is only required if you made any changes to
    `/pubspec.yaml` + +If that is the case, apply those changes to the new manifest,
    `/pubspec.yaml` + +### Step 5: Move icon resources, and other resources as applicable + +**Note:** This step is only required if your app has custom launcher icons. + +``` +cp -r /android/res android/app/src/main/ +``` + +Repeat this for any other resources you may have. + +### Step 6: Move over iOS code if applicable + +**Note:** This step is only required if your app has any custom iOS code. + +``` +mv /ios /ios.template +cp -r /ios/ +``` + +### Step 7: Validate you can build, and clean-up + +When you are done, the structure of your `android` folder should match that of a new flutter project created with `flutter create` using a recent framework. + +Validate that you can build for both Android and iOS. *Note*: The first build will take a little longer (as it will download and then cache a few gradle files). + +``` +cd +flutter build apk +flutter build ios +``` + +Finally, once you are sure everything is working as intended, consider removing the `.template` folders. + +## Working with the project after upgrading + +You can still build with `flutter build apk` and run with `flutter run`. + +In addition, you can edit and build from Android Studio: + +1. Start Android Studio +1. Invoke File > Open... +1. Select the `android` folder inside your folder, and press OK +1. Press the Run button, or use the Run > Run menu item to build and run the app +1. Edit java code by locating the .java file in the file tree on the right hand side. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-pre-1.12-Android-projects.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-pre-1.12-Android-projects.md new file mode 100644 index 0000000000000000000000000000000000000000..9c37e2fb32b5df6ceed5c9884a3061af5b8698bb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Upgrading-pre-1.12-Android-projects.md @@ -0,0 +1,263 @@ +_If you `flutter create`d your project prior to version 1.12, this may apply to your project_ + +# Background + +In order to better support the execution environments of adding Flutter to an existing project, the old Android platform-side wrappers hosting the Flutter runtime at [`io.flutter.app.FlutterActivity`](https://github.com/flutter/engine/blob/main/shell/platform/android/io/flutter/app/FlutterActivity.java) and their associated classes are now deprecated. New wrappers at [`io.flutter.embedding.android.FlutterActivity`](https://github.com/flutter/engine/blob/main/shell/platform/android/io/flutter/embedding/android/FlutterActivity.java) and associated classes now replace them. + +Those classes better support real world scenarios where the FlutterActivity isn't the first and only Android Activity in an application. + +# Motivation + +Your existing full-Flutter projects aren't immediately affected and will continue to work as before for the foreseeable future. + +However, the new Android wrappers also introduce a new set of Android plugin development APIs. Plugins developed exclusively on the new plugins API will not work on older pre-1.12 Android projects. Building a pre-1.12 Android project that uses plugins created after 1.12 will yield a build-time error unless the plugin developer explicitly opted to create a second backward compatible implementation. + +Add-to-app was not officially supported on the old Android APIs. If you followed the experimental instructions in the wiki for add-to-app prior to 1.12, you should follow the migration steps under the [add-to-app section](#add-to-app-migration) below. + +# Full-Flutter app migration + +_This guide assumes you haven't manually modified your Android host project for your Flutter project. If you did, consult the add-to-app migration guide below._ + +If you opt to migrate your standard `flutter create`d project, follow the following steps: + +**1a.** If you don't have any of your own added code to `android/app/src/main/java/[your/package/name]/MainActivity.java` - remove the body of your `MainActivity.java` and change the `FlutterActivity` import. The new `FlutterActivity` no longer requires manually registering your plugins. It will now perform the registration automatically when the underlaying `FlutterEngine` is created. + + ```diff + // MainActivity.java + -import android.os.Bundle; + -import io.flutter.app.FlutterActivity; + +import io.flutter.embedding.android.FlutterActivity; + -import io.flutter.plugins.GeneratedPluginRegistrant; + + public class MainActivity extends FlutterActivity { + - @Override + - protected void onCreate(Bundle savedInstanceState) { + - super.onCreate(savedInstanceState); + - GeneratedPluginRegistrant.registerWith(this); + - } + } + ``` + + ```diff + // MainActivity.kt + -import android.os.Bundle + -import io.flutter.app.FlutterActivity + +import io.flutter.embedding.android.FlutterActivity + -import io.flutter.plugins.GeneratedPluginRegistrant + + class MainActivity: FlutterActivity() { + - override fun onCreate(savedInstanceState: Bundle?) { + - super.onCreate(savedInstanceState) + - GeneratedPluginRegistrant.registerWith(this) + - } + } + ``` + + Since the body of the `MainActivity` is now empty, you can also optionally delete the `MainActivity.java/kt` file if you'd like. If you do, you need to change your `AndroidManifest.xml`'s reference to `.MainActivity` to `io.flutter.embedding.android.FlutterActivity`. + +**1b.** If you had existing custom platform channel handling code in your `MainActivity.java`, below is an example of the change you can make to adopt the new embedding API: + + ```diff + -import io.flutter.app.FlutterActivity; + -import io.flutter.plugin.common.MethodCall; + +import androidx.annotation.NonNull; + +import io.flutter.embedding.android.FlutterActivity; + +import io.flutter.embedding.engine.FlutterEngine; + import io.flutter.plugin.common.MethodChannel; + -import io.flutter.plugin.common.MethodChannel.MethodCallHandler; + -import io.flutter.plugin.common.MethodChannel.Result; + +import io.flutter.plugins.GeneratedPluginRegistrant; + + public class MainActivity extends FlutterActivity { + private static final String CHANNEL = "samples.flutter.dev/battery"; + - + - @Override + - public void onCreate(Bundle savedInstanceState) { + - + - super.onCreate(savedInstanceState); + - GeneratedPluginRegistrant.registerWith(this); + - + - new MethodChannel(getFlutterView(), CHANNEL).setMethodCallHandler( + - new MethodCallHandler() { + - @Override + - public void onMethodCall(MethodCall call, Result result) { + - // Your existing code + - } + - }); + - } + + + + @Override + + public void configureFlutterEngine(@NonNull FlutterEngine flutterEngine) { + + GeneratedPluginRegistrant.registerWith(flutterEngine); + + new MethodChannel(flutterEngine.getDartExecutor().getBinaryMessenger(), CHANNEL) + + .setMethodCallHandler( + + (call, result) -> { + + // Your existing code + + } + + ); + + } + } + ``` + + In other words, move the channel registration part of the code in your `onCreate` into the `configureFlutterEngine` override of the FlutterActivity subclass and use `flutterEngine.getDartExecutor().getBinaryMessenger()` as the binary messenger rather than `getFlutterView()`. + +**2.** Open `android/app/src/main/AndroidManifest.xml`. + +**3.** Replace the reference to `FlutterApplication` in the application tag with `${applicationName}`. + +Previous configuration: +```xml + + + +``` + +New configuration: +```xml + + + +``` + +**4.** Update splash screen behavior (if splash behavior is desired). + +Remove all `` tags with key `android:name="io.flutter.app.android.SplashScreenUntilFirstFrame"`. + +Add a launch theme to `styles.xml` that configures the desired launch screen as a background `Drawable`: +```xml + + +``` + +If you created your Flutter project with `flutter create` then you likely already have a `LaunchTheme` defined, along with a drawable called `launch_background`. You can re-use that configuration and adjust it as desired. + +Add a normal theme that to `styles.xml` that should replace the launch screen when the Android process is fully initialized: +```xml + + +``` + +The "normal theme" draws the background behind your Flutter experience. That background is typically seen for a brief moment just before the first Flutter frame renders. The "normal theme" also controls Android's status bar and navigation bar visual properties for the duration of your Flutter experience. + +Configure `MainActivity` to start with your launch theme and then shift to your normal theme. Also specify that you want your launch screen to continue being displayed until Flutter renders its first frame: +```xml + + + + + + + + + + +``` + + +**5.** Add a new `` tag under ``. +```xml + +``` + +Once you make this declaration in your AndroidManifest and also use plugins, the new GeneratedPluginRegistrants created by the Flutter tools during build will now be able to also use plugins that uses the new Android embedding (which registers the plugins against a `FlutterEngine` instead of a `PluginRegistry.Registrar`). + +Your app should still build as normal (such as via `flutter build apk`) but you're now using the new Android classes. + +# Add-to-app migration + +This section details how to take add-to-app scenarios that were built using Flutter's experimental embedding, and transition that code to Flutter's new stable embedding. + +## Same steps as full-Flutter + +Some instructions from the "Full-Flutter app migration" section above still apply. Follow the above steps for: + +3. Remove the reference to `FlutterApplication` from the application tag. +5. Update splash screen behavior (if splash behavior is desired). +6. Add a new `` tag under ``. + +## Changes specific to add-to-app + +If you invoke `FlutterMain.startInitialization(...)` or `FlutterMain.ensureInitializationComplete(...)` anywhere in your code, you should remove those calls. Flutter now initializes itself at the appropriate time. + +### Migrating FlutterActivity Uses + +Add-to-app scenarios often involve modifications to subclasses of `FlutterActivity`. For example, such a scenario might introduce new `MethodChannel`s, a custom `FlutterEngine` instance, custom splash screen behavior, or other behaviors that require overriding existing methods. Therefore, whereas full-Flutter apps can delete their `MainActivity` and replace it with a standard `FlutterActivity`, you will need to retain your subclass so that you can keep your behavior overrides. + +If your add-to-app use-cases do not modify behavior within `FlutterActivity`, you should delete your subclasses and replace them with standard `FlutterActivity`s as described in the previous section. + +If your add-to-app use-cases do require modifying behavior within `FlutterActivity`, you need to migrate your code from the old `io.flutter.app.FlutterActivity` to the new `io.flutter.embedding.android.FlutterActivity`. + +From: +```java +package [your.package.name]; + +import android.os.Bundle; +import io.flutter.app.FlutterActivity; +import io.flutter.plugins.GeneratedPluginRegistrant; + +public class MainActivity extends FlutterActivity { + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + GeneratedPluginRegistrant.registerWith(this); + } + + // ...some amount of custom code for your app is here. +} +``` + +To: +```java +package [your.package.name]; + +import io.flutter.embedding.android.FlutterActivity; + +public class MainActivity extends FlutterActivity { + // You do not need to override onCreate() in order to invoke + // GeneratedPluginRegistrant. Flutter now does that on your behalf. + + // ...retain whatever custom code you had from before (if any). +} +``` + +Some apps may have required pre-warming a Flutter experience. It is now recommended that all add-to-app use-cases pre-warm Flutter experiences to achieve optimal visual performance when initially rendering a Flutter UI. Please refer to the [Use a cached FlutterEngine](https://docs.flutter.dev/development/add-to-app/android/add-flutter-screen#step-3-optional-use-a-cached-flutterengine) to update your code for pre-warming Flutter. + +Your `FlutterActivity` subclass is now up to date with the new, stable Android embedding. + +### Migrating FlutterFragment uses + +The experimental embedding provides a class called `io.flutter.facade.FlutterFragment`, along with other classes in the `io.flutter.facade` package. The entire `io.flutter.facade` package is deprecated and you should not use any classes in that package. + +The experimental `io.flutter.facade.FlutterFragment` has been replaced by `io.flutter.embedding.android.FlutterFragment`, which was designed for a much broader set of use-cases than the original `FlutterFragment`. + +If you are instantiating a `io.flutter.facade.FlutterFragment` via `Flutter.createFragment(...)`, you should delete any such calls and instantiate the new `io.flutter.embedding.android.FlutterFragment` via one of the following factory methods: + + * `FlutterFragment.createDefault()` + * `FlutterFragment.withNewEngine()` + * `FlutterFragment.withCachedEngine(...)` + +The use of these factory methods are discussed in depth in website guides at http://flutter.dev. + +### Migrating FlutterView uses + +The deprecated `io.flutter.facade.Flutter` class has a factory method called `createView(...)`. This method is deprecated, along with all other code in the `io.flutter.facade` package. + +Flutter does not currently provide convenient APIs for utilizing Flutter at the `View` level, so the use of a `FlutterView` should be avoided, if possible. However, it is technically feasible to display a `FlutterView`, if required. Be sure to use `io.flutter.embedding.android.FlutterView` instead of `io.flutter.view.FlutterView`. You can instantiate the new `FlutterView` just like any other Android `View`. Then, follow instructions in the associated Javadocs to display Flutter via a `FlutterView`. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/android/Virtual-Display.md b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Virtual-Display.md new file mode 100644 index 0000000000000000000000000000000000000000..049cfc52d71557cb849b2d652c5fb3ed350b8c8a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/android/Virtual-Display.md @@ -0,0 +1,228 @@ +# Background + +Virtual Display is one of several modes for displaying platform views on Android. See [Android Platform Views](Android-Platform-Views.md) for an overview of modes. + +# The approach + +`AndroidView` widgets need to be composited within the Flutter UI and +interleaved between Flutter widgets. However the entire Flutter UI is +rendered to a single texture. + +In order to solve this problem, Flutter inflates and renders `AndroidView` +widgets inside of +[VirtualDisplays](https://developer.android.com/reference/android/hardware/display/VirtualDisplay#summary) +instead of attempting to add it to the Android View hierarchy alongside +Flutter's texture directly. The `VirtualDisplay` renders its output to a raw +graphical buffer (accessed through +[`getSurface()`](https://developer.android.com/reference/android/hardware/display/VirtualDisplay#getSurface())), +and not to any actual real display(s) of the device. This allows Flutter to +graphically interleave the Android View inside of its own Flutter widget tree +by taking the texture from the `VirtualDisplay` output and treating it as a +texture associated with any other Flutter widget in its internal hierarchy. +Then the `VirtualDisplay's` `Surface` output is composited with the rest of +the Flutter widget hierarchy and rendered as part of Flutter's larger texture +output on Android. + +# Associated problems and workarounds + +While this approach unblocks the core problem with embedding Android views in +a Flutter UI visually, the `VirtualDisplay` choice causes a long tail of issues +that we've needed to work around. + +The heart of the problem with this approach is that the Android View inside of +the `VirtualDisplay` is, as far as Android is concerned, inside of its own View +hierarchy in a completely invisible +[Display](https://developer.android.com/reference/android/view/Display.html) and +completely unconnected and unrelated to the View hierarchy that contains the +Flutter texture output. + +Much of the internal functionality to Android depends on walking the View +hierarchy and querying information about the given View in its current hierarchy +and window in order to function. Since the information for the embedded view is +"wrong" here this internal functionality tends to break down. In addition to +that this logic can change based on Android version, so we've needed to case +some of our logic based on the runtime version of the OS. + +Some of our issues with this approach and extended workarounds are described +below. + +To see all known issues specific to this mode, search for the [`vd-only` label](https://github.com/flutter/flutter/labels/vd-only). + +## Touch events + +By default touch events would not work with PlatformViews. The Android View is +inflated inside of a `VirtualDisplay`. Whenever the user taps what they _see_ as +the Android View on their primary display, they're "really" tapping the part of +Flutter's texture output that we're rendering to look like the actual Android +View. The touch event created by their input is getting sent straight to +Flutter's View, not to the Android View they're actually trying to tap on. + +### The workaround + +- We detect whether or not the touch from the user should collide with the + `AndroidView` Flutter widget using [hit testing logic within the Flutter + Framework](https://github.com/flutter/flutter/blob/068fa84/packages/flutter/lib/src/rendering/platform_view.dart#L774). +- When the touch is a hit, we [dispatch a message to the Android engine + embedding containing the details of the touch + event](https://github.com/flutter/flutter/blob/068fa84/packages/flutter/lib/src/rendering/platform_view.dart#L595). +- [Within the Android + embedding](https://github.com/flutter/engine/blob/5b952f286fc070e99cf192775fa5c9dfe858b692/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java#L194), + we convert the coordinates of this event from the ones describing the touch + inside of the larger Flutter texture to ones that would match the real Android + View inside of its `VirtualDisplay`. We then create a new `MotionEvent` + describing the touch and forward it to the real Android View inside of its + `VirtualDisplay`. + +### Limitations + +- We're dispatching the new `MotionEvent` directly to the known Android View + embedded by the user. In cases where the View spawns other Views this dispatch + may be sent to the wrong place. +- We're synthesizing a new `MotionEvent` based on the information handed to us + by the Flutter framework. It's possible that there's data being lost and not + totally carried over to our new `MotionEvent`, or some other general problem + with synthesizing `MotionEvent`s. + +## Accessibility + +### Background + +Explaining our problems with accessbility (or "a11y") requires a brief detour +into explaining a11y itself on Android, and how a11y typically works on Flutter. + +Android itself builds up a tree of a11y nodes for each Android View rendered to +the screen. Each a11y node contains semantic information about what information +is represented by a UI element: for example, whether it's a button, and what the +text on button is. Typically the OS builds this information itself by directly +walking the View hierarchy. A11y services on the device then use this tree of +a11y nodes to deliver the semantic information in an accessible way to the user, +by example drawing highlights over interactable UI elements and reading the +semantic information described by the UI aloud to the user. Users can then use +a11y services to interact with a UI, for example by using it to activate the +button without needing to press once directly on where the button is graphically +rendering on screen. + +Some UIs, like Flutter and WebViews, don't have a tree of Android Views to +describe their UIs. For these Android has a concept of a "virtual" a11y node +hierarchy. Instead of walking the View hierarchy, Android Views may implement +an +[AccessibilityNodeProvider](https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeProvider) +that returns a tree of a11y nodes to describe whatever is being rendered +within its own View subtree. The Flutter Android embedding uses this concept to +generate an a11y node tree that matches the +[`Semantics`](https://api.flutter.dev/flutter/widgets/Semantics-class.html) +tree created by the Flutter framework. + +### The problem + +Theoretically we should have been able to attach the a11y tree from the +embedded Android View to our `AccessibilityNodeProvider` in Flutter, but in +reality we've found that any attempts to do so directly fail. The reality of +the situation appears to be that a11y code in Android frequently relies on +the View hierarchy for state management and querying extra information, so +attempting to parent the child’s hierarchy from the embedded view to our +virtual hierarchy fails to really correctly associate the underlying view +hierarchy in a functional way for a11y. In other words, reparenting the a11y +node trees only "fixes" the a11y node tree itself, but there are still multiple +places where Android a11y code relies on being able to query the "real" view +hierarchy for required info and ends up failing with bugs in our reparented +case. + +### The workaround + +- Create a mirror copy of the Android View's a11y nodes as a subtree within [the + Flutter Android + embedding](https://github.com/flutter/engine/blob/5b952f286fc070e99cf192775fa5c9dfe858b692/shell/platform/android/io/flutter/view/AccessibilityViewEmbedder.java). + This mirror copy consists of virtual nodes and is part of the larger virtual + a11y node tree created by [Flutter's + `AccessibilityNodeProvider`](https://github.com/flutter/engine/blob/5b952f286fc070e99cf192775fa5c9dfe858b692/shell/platform/android/io/flutter/view/AccessibilityBridge.java#L64). +- (P and above only): blacklisted APIs and reflection are usually used to create + a mirror copy of the Android View's a11y nodes. The critical private + information are the node IDs of the parent and children of the a11y hierarchy, + which we need to construct our mirror correctly but which are private data to + the nodes. On newer Android versions [we read the data we need from the + serialized binary form of the + node](https://github.com/flutter/engine/blob/5b952f286fc070e99cf192775fa5c9dfe858b692/shell/platform/android/io/flutter/view/AccessibilityViewEmbedder.java#L546) + instead. +- [We forward all events sent to mirror a11y nodes to the "real" a11y nodes in + the Android View's subtree as + well](https://github.com/flutter/engine/blob/5b952f286fc070e99cf192775fa5c9dfe858b692/shell/platform/android/io/flutter/view/AccessibilityViewEmbedder.java#L268). + This forwarding involves translating any coordinates on the event, similar to + forwarding touch events. This means users can use a11y services to still + interact with the embedded Android UI. + +### Limitations + +- Only pre-existing virtual hierarchies can be duplicated and mirrored to our + own virtual subtree in this way. That means that embedded views like WebView + are accessible through this mechanism, but things like `Button` are not. +- The use of reflection and serialization to read private a11y node data in + order to make an accurate mirror tree is extremely fragile. This could + easily be broken by Android in a future release. + +Tracked in +[flutter/flutter#19418](https://github.com/flutter/flutter/issues/19418). Better +support for reparenting a11y hierarchies is also an [Android SDK issue](https://issuetracker.google.com/issues/138442751). + +## Text input + +Normally the embedded Android view wouldn’t be able to get any text input +because it's inside of a `VirtualDisplay` that is always reported as being +unfocused. Android doesn't offer any APIs to dynamically set or change the focus +of a `Window`. The focused `Window` for a Flutter app would normally be the one +actually holding the "real" Flutter texture and UI, and directly visible to the +user. `InputConnections` (how text is entered in Android) to unfocused Views are +normally discarded. + +### Workaround + +- We override + [checkInputConnectionProxy](https://github.com/flutter/engine/blob/036ddbb0ee6858ae532df82a2747aa93faee4487/shell/platform/android/io/flutter/plugin/platform/PlatformViewsController.java#L376) + so that Android treats the Flutter View as a proxy for the Input Method Editor + (IME) when it tries to talk to the embedded Android View. Basically, Android + asks the Flutter View for an `InputConnection` when the embedded Android View + wants one. +- Q changed the `InputMethodManager` (IMM) to be instantiated per `Window` + instead of being a global singleton. So our naive attempt at setting up a + proxy no longer worked on Q. To work around this further we [created a + subclass of `Context` that returned the same `IMM` as the Flutter View instead + of the real `IMM` for the window when `getSystemService` is + queried](https://github.com/flutter/engine/blob/44f24bd/shell/platform/android/io/flutter/plugin/platform/SingleViewPresentation.java#L257). + This means whenever Android tries to use the `IMM` in our `VirtualDisplay` it + still sees and uses the `IMM` from the real display that has been set to use + the Flutter View as a proxy. +- When the Flutter Android embedding is asked for an `InputConnection`, it + checks to see if an embedded Android View is "really" the target of the input. + If so it [internally goes to the embedded Android View, gets the + `InputConnection` from + there](https://github.com/flutter/engine/blob/036ddbb0ee6858ae532df82a2747aa93faee4487/shell/platform/android/io/flutter/plugin/editing/TextInputPlugin.java#L206), + and returns it to Android as if the embedded Android View's `InputConnection` + is its own. +- Android sees that the Flutter view is focused and available, so it takes the + `InputConnection` that's ultimately from the embedded Android View and uses it + successfully. + +### In embedded WebViews + +WebViews running on Android versions pre N have additional complications because +they have their own internal logic for creating and setting up input connections +that don't completely defer to Android. Within the `flutter_webview` plugin +we've also needed to add extra workarounds in order to enable text input there. + +- [Set a proxy view that listens for input connections on the same thread as + WebView.](https://github.com/flutter/packages/blob/27f3de3/packages/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/InputAwareWebView.java#L113). + Without this WebView would internally consume all `InputConnection` calls + without the Flutter View proxy ever being notified. +- [Within the proxy thread, refer back to the Flutter View for input + creation.](https://github.com/flutter/packages/blob/27f3de3e1e6ed1c0f2cd23b0d1477ff3f0955aaa/packages/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/ThreadedInputConnectionProxyAdapterView.java#L67). +- [Reset the input connection back to the Flutter thread when the WebView is + unfocused](https://github.com/flutter/packages/blob/27f3de3/packages/webview_flutter/android/src/main/java/io/flutter/plugins/webviewflutter/InputAwareWebView.java#L128). + This prevents the text input from being "stuck" inside of the WebView. + +### Limitations + +- In general this depends on internal Android behavior and is brittle. The Q + workaround was a surprise for us as we were broken by what was supposed to be + an internal Android refactoring. +- Some text functionality is still broken. For example the "Copy" and "Share" + dialogue is currently not usable. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/desktop/macos/Developing-with-Flutter-on-Apple-Silicon.md b/novelforge-project/agent-workspace/flutter/docs/platforms/desktop/macos/Developing-with-Flutter-on-Apple-Silicon.md new file mode 100644 index 0000000000000000000000000000000000000000..624b61e397e66e4fc444516e9925be32d0016820 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/desktop/macos/Developing-with-Flutter-on-Apple-Silicon.md @@ -0,0 +1,32 @@ +Flutter includes support for developing on macOS devices with [Apple Silicon (M1) hardware](https://www.apple.com/mac/m1/). This wiki page documents ongoing work relating to the Flutter toolchain providing native support for this processor architecture. + +We recommend using Flutter 2.5 or later on Apple Silicon machines. You must also have the [Rosetta 2 translation environment](https://developer.apple.com/documentation/apple_silicon/about_the_rosetta_translation_environment) available, which you can install manually by running: + +```sh +$ sudo softwareupdate --install-rosetta --agree-to-license +``` + +If you see CocoaPods crashes related to `ffi`, try reinstalling the Ruby gem with the `--enable-libffi-alloc` flag: +``` +sudo gem uninstall ffi && sudo gem install ffi -- --enable-libffi-alloc +``` + +## Using macOS on Apple Silicon to develop Flutter apps (host) + +You can use Apple Silicon-based Mac devices as a developer workstation (host) for building Flutter apps. While some tools still use Rosetta, Apple Silicon-based Macs are fully supported as a host. + +As we build more Apple Silicon support into the tooling, and depending on your tolerance for risk, [you may want to experiment with the `beta` channel](https://flutter.dev/docs/development/tools/sdk/upgrading#switching-flutter-channels). (This was previously also available on the dev channel, but [it has been retired](https://medium.com/flutter/whats-new-in-flutter-2-8-d085b763d181#34c4).) + +[Issue 60118](https://github.com/flutter/flutter/issues/60118) tracks the full set of work to support this feature. + +## Developing Flutter apps for macOS running on Apple Silicon (target) + +Flutter has [support for building macOS apps](https://flutter.dev/desktop), with beta snapshots available in the `stable` channel and ongoing development taking place. + +Compiled Intel macOS binaries work on Apple Silicon without change thanks to the [Rosetta 2 translation environment](https://developer.apple.com/documentation/apple_silicon/about_the_rosetta_translation_environment), which converts x86_64 instructions to ARM64 equivalents. + +We also plan to offer support for compilation directly to ARM64, as well as universal binaries that combine x86_64 and ARM64 assets. [Issue 60113](https://github.com/flutter/flutter/issues/60113) is the umbrella bug tracking this work. + +## Filing Issues + +If you experience a problem relating to using Flutter on Apple Silicon hardware, please [file an issue on GitHub](https://github.com/flutter/flutter/issues/new?template=1_activation.yml) with specific repro steps and information about your hardware and software configuration (paste the results of `flutter doctor -v`). Thank you! \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/desktop/windows/Accessibility-on-Windows.md b/novelforge-project/agent-workspace/flutter/docs/platforms/desktop/windows/Accessibility-on-Windows.md new file mode 100644 index 0000000000000000000000000000000000000000..199c89d400a64f7bf6b984b8bda1022119ce76c2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/desktop/windows/Accessibility-on-Windows.md @@ -0,0 +1,14 @@ +## Microsoft Active Accessibility + +Microsoft Active Accessibility (MSAA) is an older interface used for accessibility. It can interact with screen readers such as Windows Narrator or NVDA, and has a more limited set of available functionality compared to newer interfaces. +The base of MSAA is the `IAccessible` interface, which all a11y-providing classes extend. MSAA methods are prefixed with `acc_`. In the Flutter engine, `AXPlatformNodeWin` extends `IAccessible`. Any `IAccessible` objects used are COM interfaces, and should be initialized and reference counted accordingly. +When a program such a screen reader queries an application for an a11y object, it sends a `WM_GETOBJECT` window message, to which the window will respond with the result of passing the `IAccessible` of its root to the function `LresultFromObject`. + +## UI Automation + +UI Automation is one framework for Windows that is used for accessibility, for example, by screen readers such as Windows Narrator or NVDA. The interface class `IRawElementProviderFragment` must be implemented by any object representing a UIA fragment, i.e. an accessibility item that exists on the screen, such as a text label, a pane, a button, etc.. For the Flutter engine, the class `AXPlatformNodeWin` extends `IRawElementProviderFragment` in order to serve this purpose. Abstract methods in `IRawElementProviderFragment` provide functionality including retrieving the bounds of the fragment on screen, testing if an on-screen point is within the fragment, and retrieving properties of the fragment such as name and role. Each of the methods of `IRawElementProviderFragment` implemented by `AXPlatformNodeWin` are listed in `ax_platform_node_win.h`. Additionally, `IRawElementProviderFragment` contains a method that returns the fragment root of the fragment. +The fragment root represents the root of a fragment tree, and extends the class `IRawElementProviderFragmentRoot`. Generally, and in the case of Flutter, these correspond 1-1 to a window. We extend this class in `AXFragmentRootPlatformNodeWin` in ax_fragment_root_win.cc. This class contains methods to retrieve the fragment at a given point, and the current focus of the tree. +The Window class’s `OnGetObject` handles WM_GETOBJECT window messages, which a screen reader will dispatch to access the UIA fragment tree. When the `lparam` parameter of the message is equal to the constant `UiaRootObjectId`, the request is asking for the UIA root, and a reference is created out of the window’s fragment root with `UiaReturnRawElementProvider`, which is then returned to the message sender. +Patterns are optional interfaces which UIA elements can provide for additional functionality. For example, providing the `ITextProvider` allows a fragment to be treated as formatted text, and `IToggleProvider` indicates that a fragment can be toggled (e.g. a checkbox) and provides its current toggle state (i.e. on, off, mixed). The UIA method `GetPatternProvider` is used to return an instance of a requested interface type, or none if it is not provided. Provided patterns may or may not be the same as the fragment itself. For example, in `AXPlatformNodeWin`, when `IToggleProvider` is requested, a casted pointer to the node is returned, as `AXPlatformNodeWin` extends `IToggleProvider`. By contrast, when an `ITextProvider` is requested, a separate object is returned, rather than `AXPlatformNodeWin` being a subclass of `ITextProvider`. In this case, this is necessary, as other inherited methods of `AXPlatformNodeWin` share a name but different signature to those in `ITextProvider`, so it cannot extend both. + +Whether or not the engine makes use of UI Automation is controlled in the `Window` class, in `Window::OnGetObject`. When a UIA message is received, a UIA response is only issued if the engine was built with the `FLUTTER_ENGINE_USE_UIA` macro defined. diff --git a/novelforge-project/agent-workspace/flutter/docs/platforms/web/Debugging-issues-on-the-Web.md b/novelforge-project/agent-workspace/flutter/docs/platforms/web/Debugging-issues-on-the-Web.md new file mode 100644 index 0000000000000000000000000000000000000000..b4646ee00ac5aceb5ae066107c8492e306af1c2e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/platforms/web/Debugging-issues-on-the-Web.md @@ -0,0 +1,32 @@ +# Debugging issues on the Web + +The tips below can help you debug Web issues quicker and file more readable Github issues. + +## Chrome DevTools + +Dart Dev Tools are not available when running an app in profile or release mode. However, you can still debug your app using [Chrome DevTools][chrome_dev_tools]. When Flutter builds your app it also produces _source maps_. [Source maps][source_maps] is a browser technology that allows you to debug applications that are compiled from any language to JavaScript. Dart, TypeScript, CoffeeScript, and even JavaScript minifiers use it for debugging. + +To open Chrome DevTools enter Ctrl + Shift + J (on Linux or Windows) or Command + Options + J (on Mac). + +Chrome DevTools provide network request/response information, performance profiling tools, a memory profiler, HTML element debugger, a console with REPL (JavaScript-only), and more. + +## Getting readable stack traces and profile traces + +When building in release mode the dart2js compiler _minifies_ your code to reduce the size of the app's JavaScript bundle. This process results in obfuscated class, method, and function names. An exception may look like this: + +``` +Uncaugh TypeError: Cannot read property 'c' of undefined js_helper.dart:1234 + at a3R.$0 (app.dart:123) + at afG.b (util.dart:321) +``` + +To get more readable stack-traces in release builds, you can build and run your app in `--profile` mode. While the compiler does optimize the app in profile mode, it does not obfuscate the symbols from the original source code, making stack traces and profile traces much more readable. + +Here's an example of a profile trace recorded in Chrome DevTools in profile mode: + +![Profile trace sample](https://user-images.githubusercontent.com/211513/70833918-cdf2a380-1dad-11ea-8aa6-3b856a104789.png) + +You can see that symbols appear unchanged, e.g. "makeSkRRect", and "fillLiteralMap". + +[chrome_dev_tools]: https://developers.google.com/web/tools/chrome-devtools +[source_maps]: https://developers.google.com/web/tools/chrome-devtools/javascript/source-maps \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-AndroidX-plugin-migration.md b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-AndroidX-plugin-migration.md new file mode 100644 index 0000000000000000000000000000000000000000..82e1c1ec551b46b11ff0ab542444a594fc6cc3c7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-AndroidX-plugin-migration.md @@ -0,0 +1,251 @@ +# Flutter postmortem: AndroidX Plugin Migration + +Status: draft + +Owners: @mklim, @amirh, @dnfield, @hixie + +## Summary + +Description: The flutter/plugins repo was updated with a breaking change to +resolve +[flutter/flutter#23995](https://github.com/flutter/flutter/issues/23995). The +change migrated and deprecated Android dependencies in the plugins' +`build.gradle` files and required any apps using the plugins to also have Gradle +files that were either migrated or compatible with the AndroidX. Gradle errors +in hard-to-debug ways on Flutter apps broken by the change, without surfacing a +clear explanation or migration path to affected users. In addition this was a +known breaking change but originally incorrectly incremented the minor semantic +version number in 6/32 of the affected packages. + +Component: `flutter/plugins` + +Date/time: 2019-01-24 13:24 -0800 + +Duration: 4 days for the semantic versioning problem. 2 weeks for the confusing +Gradle error. + +User impact: Users pinned to the major version of firebase_analytics, +firebase_database, firebase_messaging, firebase_storage, google_sign_in, and +url_launcher were broken by pub despite deliberately trying to avoid any +breaking changes. All other first party plugin users that try to use the latest +major version are affected by the confusing Gradle error. + +## Timeline (all times in PST/PDT) + +### 2019-01-24 + +* 13:24 - First breaking change with incorrect versioning merged, + [flutter/plugins#1103](https://github.com/flutter/plugins/pull/1103). +* 14:20 - [flutter/plugins#1103](https://github.com/flutter/plugins/pull/1103) + uploaded to pub. **<START OF OUTAGE>** + +### 2019-01-25 + +* 09:44 - [flutter/plugins#1115](https://github.com/flutter/plugins/pull/1115), + the final commit with breaking changes and incorrect semver, is merged to + master. +* 10:55 - Final batch of incorrectly versioned plugins is published to pub. +* 13:53 - @hixie files + [flutter/flutter#27106](https://github.com/flutter/flutter/issues/27106) for + the obscure Gradle error following a fresh run of `flutter create` on the + `stable` channel. Links the error to the AndroidX migration and tags @mklim, + @amirh, and @dnfield. +* 14:03 - @mklim confirms the root cause of the error as an incompatibility + between the app and plugin's Gradle files. *(The semantic versioning issue is + not known at this point.)* +* 14:45 - @dnfield, @mklim, and @amirh discuss mitigating the user unfriendly + `flutter create` error on `stable` offline. Decide to republish the AndroidX + migration with a constraint so that users are on a version of flutter that + produces AndroidX-compatible Gradle files. [pub](http://pub.dartlang.org) + maintainers are contacted to remove the broken packages. + +### 2019-01-26 + +* 00:30 - Email back and forth begins with pub maintainers. +* 08:07 - + [flutter/flutter#27128](https://github.com/flutter/flutter/issues/27128) filed + about upgrading a >= 1.0.0 plugin's minor version number. +* 12:33 - @mklim briefly explains the problem in + [flutter/flutter#27128](https://github.com/flutter/flutter/issues/27128) and + recommends to downgrade plugin versions since a revert for `flutter stable` is + incoming. However his comment doesn't have details on all of the plugins to + downgrade and what versions to downgrade them to. User discussion continues on + this bug over the next 48 hours. +* 14:00 - Discussion with pub maintainers concludes. The affected packages can't + be replaced because pub has safeguards against removing a "stable" package + version. Decided to replace the packages with a patch+1 revert, and then a + patch+2 migration with the minimum Flutter SDK constraint. + +### 2019-01-28 + +* 09:00 - *Semantic versioning issue discovered.* Offline discussion scheduled + with @mklim, @amirh, @kevmoo, @hixie, and @dnfield to re-assess a fix. +* 11:00 - @mklim, @amirh, @kevmoo, @hixie, and @dnfield re-review the issue with + the semantic versioning issue also in mind. Decide that the minimum Flutter + constraint is useless to address the problem since it really has to do with + the app's `build.gradle`, which could have been generated by any Flutter + version including the current one and which also could have been manually + edited. Decide that the semver problem should be fixed by patching the 6 + affected plugins with a revert and then incrementing them with a major bump + and the migration. +* 11:45 - @mklim updates + [flutter/flutter#27128](https://github.com/flutter/flutter/issues/27128) with + a detailed description of the bug, root cause, way to fix via migration or + downgrade, and plan to fix the semantic versioning for the affected plugins. +* 14:28 - [flutter/plugins#1127](https://github.com/flutter/plugins/pull/1127) + (the patch revert) is merged to master. +* 15:05 - [flutter/plugins#1128](https://github.com/flutter/plugins/pull/1128) + (the correct forward roll) is merged to master. +* 15:08 - @dnfield alerts users following the AndroidX migration + ([flutter/flutter#23995](https://github.com/flutter/flutter/issues/23995)) of + the semantic version issues and that there's going to be a major version bump. +* 15:46 - The last affected package is updated on pub with both the patch revert + and the forward roll with correct semver bump. **<END OF SEMVER + OUTAGE>** +* 15:58 - @mklim updates + [flutter/flutter#27128](https://github.com/flutter/flutter/issues/27128) and + [flutter/flutter#23995](https://github.com/flutter/flutter/issues/23995) with + info on the 6 packages that have had their semantic versions updated. +* 17:09 - @mklim updates + [flutter/flutter#27106](https://github.com/flutter/flutter/issues/27106) with + more details on the bug and the fixed semantic versioning problem. + +### 2019-01-30 + +* 10:27 - @mklim updates the Flutter website via + [flutter/website#2310](https://github.com/flutter/website/pull/2310) to + explain how to import a Flutter app into the Android Studio IDE for automatic + migration. +* 11:28 - @mklim opens + [flutter/plugins#1138](https://github.com/flutter/plugins/pull/1138) so that + the plugins warn about the AndroidX migration when Gradle fails to compile. + +### 2019-02-05 + +* 13:41- @mklim opens + [flutter/flutter#27566](https://github.com/flutter/flutter/pull/27566) to + detect gradle error messages and link to a Flutter AndroidX migration guide on + the Flutter website in Flutter itself. +* 17:35 - @mklim opens + [flutter/website#2349](https://github.com/flutter/website/pull/2349) to add a + migration guide to AndroidX for Flutter apps and plugins. + +### 2019-02-07 + +* 13:23 - [flutter/website#2349](https://github.com/flutter/website/pull/2349) + is merged. +* 17:30 - [flutter/plugins#1138](https://github.com/flutter/plugins/pull/1138) + and [flutter/flutter#27566](https://github.com/flutter/flutter/pull/27566) are + merged. Plugins are uploaded with the change. **<END OF GRADLE ERROR + OUTAGE>** + +## Impact + +### Some first party plugin users were broken in a minor version upgrade + +It looks like the only issue filed for this directly has been +[flutter/flutter#27128](https://github.com/flutter/flutter/issues/27128). + +### All first party plugin users were broken in a confusing way + +An explanation and migration path exists in the CHANGELOG.md of each plugin, but +this information is hard to find and the actual Gradle error is not helpful. +Several bugs on Github have been filed from affected users. + +* [flutter/flutter#27106](https://github.com/flutter/flutter/issues/27106) +* [flutter/flutter#27226](https://github.com/flutter/flutter/issues/27226) +* [flutter/flutter#27146](https://github.com/flutter/flutter/issues/27146) +* [flutter/flutter#27156](https://github.com/flutter/flutter/issues/27156) + +## Root causes + +[flutter/plugins#1103](https://github.com/flutter/plugins/pull/1103), +[flutter/plugins#1115](https://github.com/flutter/plugins/pull/1115) migrated +the plugins to support AndroidX instead of the original Android support +libraries. See #23995 for more details, but in short the original support +libraries are deprecated and not recommended for Android app development +anymore. + +This was a known breaking change and the changelog links to the official +[migration steps](https://developer.android.com/jetpack/androidx/migrate). BUT +plugins that were greater than or equal to `1.0.0` weren't updated according to +[pubspec's semantic versioning +philosophy](https://www.dartlang.org/tools/pub/versioning#semantic-versions). On +pub for packages < `1.0.0` the versioning is `0.major.minor+patch`, and for >= +1.0.0 it's `major.minor.patch`. The AndroidX PRs universally incremented the +middle number, so any plugin that was already at or above `1.0.0` is being +incorrectly treated as non-breaking by pub. This caused the semantic versioning +issue. + +In addition the breaking change was only surfaced in the CHANGELOG.md of each +plugin, but resulted in breaking Gradle errors at runtime. These Gradle errors +did not provide any obvious ways to debug the incompatibility. + +## Lessons learned + +### What worked + +* The plugins were migrated to AndroidX! + +### Where we got lucky + +* @hixie diagnosed the problem with standard `flutter create` templates + relatively quickly and cc'ed the relevant devs. + +### What didn't work + +* We understood that the AndroidX migration was breaking, but underestimated the + scale of the breakage. We didn't realize that it applied to all untouched + `build.gradle` files produced by released versions of `flutter create`. Also + failed to verify that the Gradle errors mentioned AndroidX or were otherwise + easily understable. +* The `flutter/plugins` CI failed to verify that the new plugins could be used + with the template from `flutter create` on stable. +* No manual sanity checks were recommended and insufficient ones were performed + before publishing the packages to pub. There could have been manual checks to + catch the `flutter create` and semantic versioning issues. +* The packages were pushed Thursday/Friday (24-25) and remained broken over the + weekend until a fix was decided communally when everyone was in the office + Monday morning (28). +* The breaking change and suggested migration were only surfaced in the + CHANGELOG of the plugins, not in the actual Gradle compile error. The + changelogs are not very findable and the Gradle error is confusing. +* There was no way to mark the incorrect semver packages as broken in pub, so we + needed to push a breaking revert along with a forward migration. + +## Action items + +### Prevention + +* [flutter/flutter#27110](https://github.com/flutter/flutter/issues/27110) - + Test the plugins from a blank, stable `flutter create` template on the plugins + CI + +### Detection + +* [flutter/flutter#27258](https://github.com/flutter/flutter/issues/27258) - The + plugins releasing process should be improved to help detect regressions. + +### Mitigation + +* [flutter/flutter#14818](https://github.com/flutter/flutter/issues/14818) - + Translate Gradle errors into actionable steps for our users when possible. +* [dart-lang/pub#2038](https://github.com/dart-lang/pub/issues/2038) - Show a + migration prompt and ask for confirmation on updating a breaking change in + pub. +* [dart-lang/pub-dartlang-dart#378](https://github.com/dart-lang/pub-dartlang-dart/issues/378) - Tag + specific pub releases as broken. + +### Process + +* [flutter/flutter#27258](https://github.com/flutter/flutter/issues/) - Have a + better/more formalized releasing process for flutter/plugins. + +### Fixes + +* [flutter/plugins#1127](https://github.com/flutter/plugins/pull/1127) +* [flutter/plugins#1128](https://github.com/flutter/plugins/pull/1128) +* [flutter/website#2310](https://github.com/flutter/website/pull/2310) +* [flutter/plugins#1138](https://github.com/flutter/plugins/pull/1138) +* [flutter/flutter#27566](https://github.com/flutter/flutter/pull/27566) +* [flutter/website#2349](https://github.com/flutter/website/pull/2349) \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Beta-1-Release.md b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Beta-1-Release.md new file mode 100644 index 0000000000000000000000000000000000000000..7b7e811798034b9aa5819e78b4c7b31ebcda8470 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Beta-1-Release.md @@ -0,0 +1,123 @@ +# Flutter postmortem: Beta 1 release process + +Status: draft
    +Owners: [@tvolkert](https://github.com/tvolkert), [@Hixie](https://github.com/Hixie) + +## Summary + +Description: Flutter launched beta 1 on February 27, 2018. This document attempts to dissect what could have gone smoother strictly from a technical release process point of view.
    + +## Timeline (all times in PST) + +### _2018/02/20 - 2018/02/25_ + +[@tvolkert](https://github.com/tvolkert) tests v0.1.4 in preparation for releasing it to beta on 2018/02/27. + +### _2018/02/26_ + +| Time | | +| --- | --- | +| _11:40_ | [@tvolkert](https://github.com/tvolkert) tries to push v0.1.4 to beta but doesn’t have sufficient permissions, because the branch is protected on GitHub. | +| _12:02_ | [@Hixie](https://github.com/Hixie) adds [@tvolkert](https://github.com/tvolkert) to the beta branch ACL so can push the beta release. | +| _12:07_ | [@tvolkert](https://github.com/tvolkert) pushes v0.1.4 to the beta branch | +| _12:20_ | [@mit-mit](https://github.com/mit-mit) tries to upgrade to the new beta and runs into [#15096](https://github.com/flutter/flutter/issues/15096). The exact cause is not yet known. | +| _12:39_ | From similar reports from [@timsneath](https://github.com/timsneath) and [@mit-mit](https://github.com/mit-mit), [@tvolkert](https://github.com/tvolkert) notices that switching channels doesn’t fetch updated refs from GitHub and files [#14893](https://github.com/flutter/flutter/issues/14893). | +| _14:40_ | [@timsneath](https://github.com/timsneath) runs into more trouble upgrading. [@tvolkert](https://github.com/tvolkert) begins trying to diagnose based on the reports. | +| _16:53_ | After a few back-and-forths with [@timsneath](https://github.com/timsneath) over email, [@tvolkert](https://github.com/tvolkert) enlists the help of [@jason-simmons](https://github.com/jason-simmons) and [@cbracken](https://github.com/cbracken) in tracking down the cause for the problems [@timsneath](https://github.com/timsneath) is encountering. The goal is to determine whether the problems are an outlier unique to [@timsneath's](https://github.com/timsneath) setup or whether they’re likely to affect most users once the influx of users begins. | +| _17:30_ | [@jason-simmons](https://github.com/jason-simmons) discovers that before [#14507](https://github.com/flutter/flutter/pull/14507) (v0.0.24), the “channel” command could create local (non-tracking) branches and that if [@timsneath](https://github.com/timsneath) was bitten by this, it would explain the behavior he’s seeing. The team tentatively decides the errors that [@timsneath](https://github.com/timsneath) is seeing are likely an outlier. | +| _20:00_ | [@tvolkert](https://github.com/tvolkert) manages to reconstruct [@timsneath's](https://github.com/timsneath) environment setup and confirms [@jason-simmons'](https://github.com/jason-simmons) theory. The team adds a [section to the wiki](../releases/Flutter-build-release-channels.md#workaround) covering this case for users who may run into it. | + +### _2018/02/27_ + +| Time | | +| --- | --- | +| _01:48_ | [@mit-mit](https://github.com/mit-mit) discovers that the gallery doesn’t run against the beta build and files [#14912](https://github.com/flutter/flutter/issues/14912). +| _02:18_ | [@mravn-google](https://github.com/mravn-google) tracks down the cause of the failing gallery builds and discovers that it’s already been fixed in [#14714](https://github.com/flutter/flutter/pull/14714) (v0.1.5). +| _06:00_ | The beta release is announced publicly. +| _09:30_ | The Flutter team decides to push v0.1.5 to beta to pick up the fix to the gallery builds. [@tvolkert](https://github.com/tvolkert) begins testing v0.1.5. + +### _2018/02/28_ + +| Time | | +| --- | --- | +| _10:00_ | [@tvolkert](https://github.com/tvolkert) pushes v0.1.5 to beta. +| _10:20_ | [@tvolkert](https://github.com/tvolkert) [announces](https://groups.google.com/d/msg/flutter-dev/AFj7Rd_MNhY/lkMfRTDwAQAJ) the updated beta to the flutter-dev mailing list. +| _16:00_ | [@tvolkert](https://github.com/tvolkert) discovers that docs.flutter.io did not update to reflect the beta release and files [#15002](https://github.com/flutter/flutter/issues/15002). + +## Lessons Learned + +### What Worked + +* Beta 1 was successfully released on the target date! + +* Most users have been able to successfully install Flutter against the beta release or upgrade from the dev channel. We’ve received only a few reports of problems; e.g. [#15074](https://github.com/flutter/flutter/issues/15074), [#14959](https://github.com/flutter/flutter/issues/14959) + +* When the report of the failing gallery build hit, we were able to successfully vet a new dev build and push a new release to beta a day and a half later. + +### What Didn't Work + +* Our internal Google tests purposely don’t exercise our external build code paths (e.g. Gradle builds) — since within Google, everything is built using Bazel. This meant that although the gallery was unable to be built on the beta branch ([#14912](https://github.com/flutter/flutter/issues/14912)), we had no knowledge of this failure until after beta was pushed (and [@mit-mit](https://github.com/mit-mit) manually discovered the breakage). The bug had actually already been fixed on a newer dev build (in [#14714](https://github.com/flutter/flutter/pull/14714)), but we didn’t mark the affected build range as bad until after this was discovered and traced back to code that pointed to the existing fix. Our external tests were also [allowing failures on Travis](https://github.com/flutter/flutter/blob/5b46e0a4bef24e1c1302ba3ca40a99bd20a192da/.travis.yml#L18-L19), which was intentional at the time because we didn’t yet have confidence in those tests. In addition to fixing the issue, [#14714](https://github.com/flutter/flutter/pull/14714) also enabled those tests on Travis. + +* The Flutter [release process](../releases/Release-process.md#rolling-the-beta-channel) didn’t call out the need to build and run the gallery as part of the beta vetting process, which further allowed the previous issue to go unnoticed. + +* The Flutter team didn’t have on its radar to mark builds as bad when they saw or fixed issues that would warrant marking a build as bad. It’d be nice to have a better (ideally more automated) process around this. + +* The release process instructs the person doing the release to ensure that the build: + > can be successfully upgraded _to_ from an earlier dev build (via 'flutter upgrade')
    + > can be successfully upgraded _from_ to a later dev builds (via 'flutter upgrade') + + Yet, there’s no way to cause the upgrade to stop at the target build - it always upgrades to tip-of-tree on the relevant branch. This means that the person doing the release is not experiencing the exact same upgrade path that the user will be experiencing. + +* [@tvolkert](https://github.com/tvolkert), who was doing the roll, didn’t have permission to update `HEAD:beta` because it’s a restricted branch on GitHub. + +* We pushed a follow-on beta build (v0.1.4 -> v0.1.5) the day after launch to fix the issue with the gallery building. Yet absent of [reading the flutter-dev email list](https://groups.google.com/forum/#!msg/flutter-dev/AFj7Rd_MNhY/lkMfRTDwAQAJ), users had no way of knowing that an upgrade was available because the flutter tool doesn’t alert them. + +* The release process calls for the person doing the roll to simulate the upgrade path of our users, but it says “can be successfully upgraded to from an earlier dev build,” which is not explicitly the same upgrade that our users will face; they’ll be upgrading from one of the previous beta releases. This distinction would have led us to realize that such users would be bitten by [#15096](https://github.com/flutter/flutter/issues/15096). + +* Users who stay exclusively on the beta channel and only upgrade when new beta releases are available will have Git repositories without any of the newer refs that have been added since their last upgrade. The person doing the beta release, on the other hand, will have a fresh clone of our Git repository and will be simulating our users’ upgrade path by issuing a `git reset --hard ` command. This distinction turned out to be substantive when trying to reproduce an error report from [@timsneath](https://github.com/timsneath). Ideally, the person doing the roll would be able to construct a Git repository synced to the previous beta release without any refs newer than that release. + +### Bugs That Got in the Way + +* In the “channel” command, we weren’t fetching updated refs from GitHub before [checking out the branch](https://github.com/flutter/flutter/blob/eaa9b47a4ac278a9439468911d2c361a472b114b/packages/flutter_tools/lib/src/commands/channel.dart#L103). This meant that if a user had switched to the beta branch in the past, then switched back to the alpha/dev branch as their primary channel, their beta Git head would be pointing to a commit in December. Net result: we had to [recommend](../releases/Flutter-build-release-channels.md#how-to-change-channels) that users run `flutter channel beta && flutter upgrade`, which is clunky. + +* Until Feb 7 ([#14507](https://github.com/flutter/flutter/pull/14507)), we had a bug in the channel switching logic that would create branches as local (non-tracking) branches. If users tried to upgrade such channels, they’d get an error message about “no upstream repository configured.” Users who had tried switching to the beta channel that we had quietly pushed in December 2017 were bitten by this and found their local Git repository in a bad state. This likely only affected a very small number of users (perhaps only members of the Flutter team), but [@timsneath](https://github.com/timsneath) was one such user, and it took some time to remotely diagnose what was going on with his setup and whether his problems were indicative of a larger issue that was going to affect a large subset of our users. This time added uncertainty to our launch during crunch-time, where we weren’t sure if we should call off the launch announcements. + +* The change that prepared the docs site for the beta launch ([#14606](https://github.com/flutter/flutter/pull/14606)) had a bug in it whereby docs would never get updated on the main docs site ([#15002](https://github.com/flutter/flutter/issues/15002)), and unfortunately this didn’t get caught in code review (partially due to GitHub code review’s auto-folding of very relevant content). This means that the main docs site hasn’t been updated since ~Feb 13 (and will now get updated in the next beta push). + +* Once the beta branch was pushed, Travis began failing due to [#14975](https://github.com/flutter/flutter/issues/14975). A similar failure had happened on master and was fixed by [#14853](https://github.com/flutter/flutter/pull/14853), but the implications of that failure and how it’d manifest on the beta branch caused some confusion as to whether there was a real problem with the beta release. + +## Action items + +### Prevention + +| Action Item | Owner | Issue | Notes | +|-------------|-------|-------|-------| +| Ensure that Travis tests the ability to build the gallery. | [@xster](https://github.com/xster) || [Done](https://github.com/flutter/flutter/pull/14714) | +| Build all examples on Travis and AppVeyor on the dev branch. | [@xster](https://github.com/xster) | [#15164](https://github.com/flutter/flutter/issues/15164) || +| Add a hidden `--version` argument to `flutter upgrade` to allow the person doing a beta roll to better simulate the upgrade path. | [@tvolkert](https://github.com/tvolkert) | [#14970](https://github.com/flutter/flutter/issues/14970) || +| Fetch upstream refs before switching channels in the “channel” command. | [@tvolkert](https://github.com/tvolkert) | [#14893](https://github.com/flutter/flutter/issues/14893) | [Done](https://github.com/flutter/flutter/pull/14896) | + +### Mitigation + +| Action Item | Owner | Issue | Notes | +|-------------|-------|-------|-------| +| Make the flutter tool alert users when an upgrade is available. | [@tvolkert](https://github.com/tvolkert) | [#14920](https://github.com/flutter/flutter/issues/14920) || + +### Process + +| Action Item | Owner | Issue | Notes | +|-------------|-------|-------|-------| +| Add a wiki page on identifying bad builds | [@tvolkert](https://github.com/tvolkert) |        | [Done](../releases/Bad-Builds.md) | +| Send an email to the core Flutter team about the need to think about marking builds as bad. | [@tvolkert](https://github.com/tvolkert) || Done | +| Update our release process to call out the need to ensure that the gallery can be built and run. | [@tvolkert](https://github.com/tvolkert) || [Done](../releases/Release-process.md#rolling-the-beta-channel) | +| Update release process to require that the Travis build go green on the beta branch before sending out any announcements or issuing any public communications. | [@tvolkert](https://github.com/tvolkert) || [Done](../releases/Release-process.md#rolling-the-beta-channel) | +| Make a beta pusher group in GitHub, to control who has access to push beta releases. | [@Hixie](https://github.com/Hixie) || [Done](../releases/Release-process.md#rolling-the-beta-channel) | +| Update beta release process to require that the candidate dev build “can be successfully upgraded to from the dev build to which the beta branch currently points.” | [@tvolkert](https://github.com/tvolkert) || [Done](../releases/Release-process.md#rolling-the-beta-channel) | +| Update the release process to include downloading and installing the packaged archive for the dev build that represents the prior beta — and ensuring that it’s able to upgrade to the newest release. | [@gspen...](https://github.com/gspencergoog) ||| + +### Fixes + +| Action Item | Owner | Issue | Notes | +|-------------|-------|-------|-------| +| Fix docs to get uploaded on the next beta push | [@tvolkert](https://github.com/tvolkert) | [#15002](https://github.com/flutter/flutter/issues/15002) | [Done](https://github.com/flutter/flutter/pull/15003) | +| Fix create_test.dart to depend on package:flutter_test for its “package” template tests (not package:test) | [@tvolkert](https://github.com/tvolkert) | [#14975](https://github.com/flutter/flutter/issues/14975) | [Done](https://github.com/flutter/flutter/pull/14976) | diff --git a/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Build-Breakage-on-2016-11-08.md b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Build-Breakage-on-2016-11-08.md new file mode 100644 index 0000000000000000000000000000000000000000..5a13ba52f7139d5b79a78044a394846663de2e6f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Build-Breakage-on-2016-11-08.md @@ -0,0 +1,84 @@ +# Flutter postmortem: Build Breakage on 2016-11-08 + +Status: final
    +Owners: chinmay + +## Summary + +Description: Travis reported failures on builds
    +Component: flutter repository
    +Date/time: 2016-11-07 21:30
    +Duration: 16h 45m
    +User impact: Flutter team members were unable to merge new PRs. Users would have been unable to run flutter tests if they upgraded, though we did not receive complaints during the outage. + +## Timeline (all times in PST/PDT) + +### 2016-10-24 + +A change to package:args is committed ([591f9c](https://github.com/dart-lang/args/pull/55/commits/08b1b5301de1aa3f18dedf9343ea637a58591f9c)) that introduces a bug whereby `run()` no longer returns the value returned by the command. + +### 2016-11-02 + +**15:11** The [change](https://github.com/dart-lang/args/pull/55) to package:args is merged into the args repository. + +### 2016-11-07 + +**16:27** Dart package:args tag 0.13.6+1 is cut -- and shortly after is pushed to pub **<START OF OUTAGE>**
    +**21:36** ianh reports that Travis is upset and all PRs are failing + +2016-11-08 + +**07:52** danrubel reports that Travis is still failing
    +**11:03** chinmaygarde reports he’s facing the same breakage in his pending PR
    +**11:07** Issue is reproduced locally. chinmaygarde, jsimmons and danrubel begin looking for the root cause of the breakage.
    +**13:08** Root cause of outage identified as a new version of package:args that Flutter picked up whereby `run()` no longer returns the value returned by the command (so we couldn’t get accurate exit codes).
    +**13:19** Flutter PR [#6765](https://github.com/flutter/flutter/pull/6765) sent to pin Flutter to a known good version of package:args
    +**13:42** [fb3bf7a](https://github.com/flutter/flutter/commit/fb3bf7a9d776c81651e3d65268d02ef97a259e1c) identified as root cause of the internal breakage.
    +**14:15** Fix lands. **<END OF OUTAGE>** + +## Root causes + +A bug was introduced in package:args that was picked up by Flutter.  Flutter was vulnerable to this bug because our external dependencies have open-ended version constraints, so the stability of our codebase is not hermetic. This was an intentional choice; we have experienced this failure mode previously, and have been running on the basis that we are not yet stable enough to deal with the costs of being hermetic. + +## Action items + +### Prevention + +| Action Item | Owner | Tracking bug | Notes | +|-------------|-------|--------------|-------| +| Pin our external Dart dependencies to specific versions to ensure that our public stability is hermetic. | chinmay | [#6767](https://github.com/flutter/flutter/issues/6767) | | + +### Detection + +| Action Item | Owner | Tracking bug | Notes | +|-------------|-------|--------------|-------| +| We should have a continuous monitoring bot that tries to run all our tests | ianh | [#6777](https://github.com/flutter/flutter/issues/6777) | | + +### Mitigation + +None. + +### Process + +None. + +### Fixes + +| Action Item | Owner | Tracking bug | Notes | +|-------------|-------|--------------|-------| +| Update our package:args dependency to a known good version | danrubel | [PR #6575](https://github.com/flutter/flutter/pull/6765) | Done | +| Deploy a forward-rolling bot that goes red if our dependencies release a breaking change, and otherwise updates us to the latest versions of everything. | ianh | [#4696](https://github.com/flutter/flutter/issues/4696) | | + +## Lessons learned + +### What worked + +* Once the Flutter team had a clear set of owners for the issue, it was root-caused and resolved quickly. + +### Where we got lucky + +* The outage did not break users. It likely would have if we had a larger userbase. + +### What didn't work + +* There were indications of the breakage as early as 2016/11/07 21:30, yet the team didn’t start looking into it in earnest until 2016/11/08 11:00. Once we get to the point where our build is hermetic (so we control our own stability) and we separate production artifacts from development artifacts (e.g., have a release branch), then we should consider providing an SLA, at which time we’d have to create processes around how to maintain that SLA. diff --git a/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Widespread-Gradle-failures-on-Flutter-v1.12.13-hotfix.5.md b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Widespread-Gradle-failures-on-Flutter-v1.12.13-hotfix.5.md new file mode 100644 index 0000000000000000000000000000000000000000..3ae4f5ef4af89ee1b95d67a0d217e0106f55e81f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Widespread-Gradle-failures-on-Flutter-v1.12.13-hotfix.5.md @@ -0,0 +1,129 @@ +# Flutter postmortem: Widespread Gradle failures on Flutter v1.12.13+hotfix.5 + +Status: final
    +Owners: amirh@ + +## Summary + +Description: Many users reported Gradle build failure after upgrading to Flutter v1.12.13+hotfix.5
    +Component: plugins
    +Date: 2019-12-11
    +Duration: 19 hours
    +User impact: Users of the following plugins: url_launcher, google_sign_in, video_player, firebase_auth, firebase_core, shared_preferences who are using Android Studio couldn’t build their applications. + +## Timeline (all times in PST/PDT) + +### 2019-09-01 +stuartmorgan@ notices that Flutter applications that are using non-Android plugins are failing to build for Android (same for iOS) and files https://github.com/flutter/flutter/issues/39657. The root cause is that the Flutter gradle plugin assumes that all plugins include an Android implementation and tries to build it. + +### 2019-09-16 +stuargmorgan@ prototypes [a fix](https://github.com/flutter/flutter/compare/main...stuartmorgan:wip-platform-plugin-files?expand=1). That fix requires migration of existing plugins. + +### 2019-09-18 +As a temporary workaround for the issue above (Android only), amirh@ lands https://github.com/flutter/flutter/pull/40640 which makes `flutter.gradle` skip packages that do not have an `android/build.gradle` file, this workaround lives in the Flutter SDK and does not require plugin migration. + +The change lands with a test that: + 1. Creates a new ios-only flutter plugin named flutter_plugin_test + 1. Deletes the android/ folder + 1. Creates a new flutter app which depends on flutter_plugin_test + 1. Builds an apk for that app + +In the following months work starts on federated web and mac implementations of `flutter/plugins` and `FirebaseExtended/flutterfire` plugins. With #40640 landed, these implementations all land without an `android/` folder. + +### 2019-11-25 +blasten@ lands https://github.com/flutter/flutter/pull/45379 which reworks the Gradle workflow. +This patch introduces a different code path for building transitive dependencies, the new code path again assumes that all plugins support `android/`. Though no one notices, and no tests fail (the test introduced in #40640 passes as flutter_plugin_test isn’t included as a transitive dependency). + + +### 2019-12-06 +In preparation for the new pub.dev version that supports multi platform federated plugins and for the coming stable Flutter release the team decides to start endorsing web plugins (by adding them as a dependency of the app-facing plugins, so e.g url_launcher_web becomes a dependency of url_launcher). When staging the first PR for url_launcher, CI alerts us that the example application fails building for Android. After some investigation amirh@ and blasten@ figure out that https://github.com/flutter/flutter/pull/45379 introduced the regression. + +amirh@ starts adding a no-op `android/` implementations to the offending plugins, at the same time blasten@ sends https://github.com/flutter/flutter/pull/46282 which allows gradle to build apps with non Android plugins as transitive dependencies. At this point the release candidate for the next stable (1.12.13) was already cut without #46282. + +The logic in #46282 is somewhat similar to #40640 and skips packages that do not have an `android/` folder, amirh@ asks blasten@ whether we should be consistent with #46282 and check for `android/build.gradle` but both figure it shouldn’t matter and the PR lands as-is. + + +### 2019-12-09 +The web team makes the case that #46282 should be cherry picked into 1.12.13 to avoid adding no-op `android/` folders to all web implementations. It’s cherry picked into v.12.13+hotfix.4 and the team decides to not add any more no-op `android/` implementations and endorse the existing with a minimal Flutter SDK constraint of `>=1.12.13+hotfix.4`. + +The team moves forward to publish the endorsements for: url_launcher, google_sign_in, video_player, firebase_auth, firebase_core, shared_preferences. At this point users of stable Flutter aren’t impacted as there is not yet a stable Flutter release which satisfies the version constraint, so pub won’t fetch the new plugin versions which include the endorsements. + +### 2019-12-11 +06:15pm - V1.12.13+hotfix.6 is released to stable **<START OF OUTAGE>** + +At this point, users of any of {url_launcher, google_sign_in, video_player, firebase_auth, firebase_core, shared_preferences} are affected by 2 issues: +#### 1. Android Studio users can’t build their apps +Android studio automatically creates an `android/` folder for all the Gradle subprojects during the “analyzing project phase”. This essentially disables the fix in #46282. (note that it does not create a build.gradle file.) + +This is not detected by CI as we’re not using Android Studio on CI. + +#### 2. Non fully AndroidX-compatible projects fail to build +The Flutter tool has a backup build strategy to deal with AndroidX failures - if the first build attempt fails due to an AndroidX issue, the Flutter tool tries a secondary build strategy which builds all plugins as AARs (this enables Jettifier). This AAR workflow was not updated to support non-Android plugins, which guarantees the build retry will fail if any of the affected plugins are included as dependencies. + + +### 2019-12-12 +10:45am - amirh@ skims over new Flutter issues and notices multiple reports on Gradle errors due to plugins missing Android support and files https://github.com/flutter/flutter/issues/46898 to start tracking. + +While blasten@ is investigating the Gradle issue the team starts to mitigate by adding no-op `android/` implementations to the endorsed web plugins. + +01:34pm - All endorsed web plugins got a no-op `android/` folder **<END OF OUTAGE>** + +### 2019-12-13 +blasten@ figures the underlying Gradle issue (https://github.com/flutter/flutter/issues/46898#issuecomment-565612416) and start working on a fix. + + +## Impact + +Users of multiple popular Flutter plugins were not able to build their Android apps following an upgrade to Flutter V1.12.13+hotfix.6 and were getting uninformative Gradle failures. + + +## Root causes + + 1. Web plugin implementations that did not include an Android implementation were endorsed by popular Flutter plugins relying on #46282. + 1. #46282 did not take into account that Android Studio may create an `android/` folder for subprojects. + 1. The AAR build workflow did not support non-Android implementations. + +## Lessons learned + + +### What worked + + - The community was quick to report the new issue. + - The team was quick to mitigate by applying a workaround to all plugins. + +### Where we got lucky + + - amirh@ skimmed the Flutter issue database a day after the incident started and flags the issue. Normally issue triage meetings run on a weekly cadence so it could have taken a whole week until the issue was flagged. + +### What didn't work + + - Non-Android transitive dependencies were not supported when Android Studio is used. + - The AAR build workflow did not support non-Android dependencies. + +## Action items + + - All endorsed plugin implementation should have a op-op Android implementation until the Gradle fixes are in stable. OWNER: amirh@ (DONE). + - The `flutter.gradle` script should exclude non-Android plugins for transitive dependencies in a way that’s resilient to Android Studio side effects. OWNER: blasten@ (DONE). + - The `flutter.gradle` script should exclude non-Android plugins in the AAR build workflow as well. OWNER: blasten@ (DONE). + + +### Detection + +{link to github issues for things that would have detected this failure before it became An Incident, such as better testing, monitoring, etc} + + * All `dev/devicelab/bin/tasks/gradle_*` tests should run with the AAR workflow as well - https://github.com/flutter/flutter/issues/48089. + * All `dev/devicelab/bin/tasks/gradle_*` tests should run with and without the projects being opened (and built?) by Android Studio - https://github.com/flutter/flutter/issues/48088. + + +### Process + +{link to github issues for things that would have helped us resolve this failure faster, such as documented processes and protocols, etc} + * A better process for flagging erupting fires quickly: + * Alerts for issues that quickly gain thumb ups + * Increased issue monitoring following a Flutter release + +### Fixes + +{link to github issues or PRs/commits for the actual fixes that were necessary to resolve this incident} + +https://github.com/flutter/flutter/pull/47015 diff --git a/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Windows-Defender-alert-on-2023-03-26.md b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Windows-Defender-alert-on-2023-03-26.md new file mode 100644 index 0000000000000000000000000000000000000000..1500d50f46d842b1d0e8226f4bbd4b295d7b235f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-Windows-Defender-alert-on-2023-03-26.md @@ -0,0 +1,266 @@ +# Flutter postmortem: Windows Defender alert + +Status: final
    +Owner: drewroengoogle + +## Summary + +Description: A change to Windows Defender caused transient CI failures and, more importantly, flagged Flutter as malware for some users.
    +Component: Release
    +Date/time: 2023-03-26
    +Duration: two days
    +User impact: An unknown number of users and potential new users were unable to use Flutter. Some tests failed. + +## Timeline (all times in PST/PDT) + +### 2023-03-26 + +??:?? - Microsoft deploys an update to Windows Defender **<START OF OUTAGE>**
    +13:02 - We receive a message to security@flutter.dev reporting "Flutter Windows Installation WacAtac Trojan" from user S01.
    +20:57 - A test [fails in CI](https://ci.chromium.org/ui/p/flutter/builders/prod/Windows_android%20hot_mode_dev_cycle_win__benchmark/9172/overview) with the message "the file contains a virus or potentially unwanted software".
    +22:10 - @zanderso files [#123519](https://github.com/flutter/flutter/issues/123519) and marks it P0.
    +12:51 - @andrewkolos files [#123525](https://github.com/flutter/flutter/issues/123525) after seeing multiple other CI failures.
    +12:52 - @andrewkolos marks #123525 as a duplicate of #123519.
    + +### 2023-03-27 + +08:05 - @drewroengoogle begins investigating.
    +08:40 - @drewroengoogle was unable to reproduce the problem and lowers the priority of the issue after the previously failing tests passed on rerun.
    +09:02 - User Woo⛈ on Discord reports getting a Windows Defender warning for windows-x64.zip.
    +10:03 - @MP00 reports on #123519 that Windows Defender quarantined windows-x64.zip on their machine at 10:42 in some unspecified time zone.
    +10:27 - @godofredoc forwards the security e-mail from S01 to @sealesj and @drewroengoogle.
    +10:59 - @Hixie replies to S01 by e-mail asking for more details.
    +11:12 - S01 provides the specific URL that caused issues.
    +11:45 - @Hixie asks S01 for even more details.
    +11:47 - @Hixie flags this as a P0 to @godofredoc, @sealesj, and @drewroengoogle.
    +11:53 - @godofredoc asks @drewroengoogle if #123519 is related.
    +11:53 - @drewroengoogle marks #123519 as P0.
    +12:03 - S01 provides the sha256 for flutter_windows_3.7.8-stable.zip.
    +12:10 - @Hixie provides the reporter with the issue number.
    +12:21 - @drewroengoogle verifies that the hash of flutter_windows_3.7.8-stable.zip in storage matches the hash reported by S01, confirming that the file was not corrupted or compromised during download by the reporter.
    +12:34 - @Hixie attempts to upload the files to virustotal.com for independent verification of the file state. windows-x64.zip is marked as uncompromised and flutter_windows_3.7.8-stable.zip is too big to be uploaded.
    +12:40 - @Hixie asks anyone on Discord who has a Windows machine whether they can reproduce the problem.
    +12:52 - @gspencergoog reports getting the same message for gen_snapshot.exe.
    +13:00 - @timsneath provides information on how to report this to Microsoft.
    +13:04 - @Hixie creates an #incident-response channel on Discord to coordinate the response.
    +13:48 - @gspencergoog successfully uploads windows-x64.zip to Microsoft for analysis. The instant report was that no malware was detected but the report was still pending.
    +14:18 - @gspencergoog confirms that virustotal.com does not detect any malware in the affected files.
    +??:?? - Microsoft deploys an update to Windows Defender **<END OF OUTAGE>**
    +14:59 - @gspencergoog reports being unable to reproduce the problem for files that previously were affected.
    +15:18 - @godofredoc attempts to rebuild the affected files.
    + +### 2023-03-28 + +05:38 - User @FusoraTech reports having a similar problem.
    +08:47 - @godofredoc confirms using Google Cloud Storage audit logs that the affected artifact never changed while in storage.
    +10:28 - @gpencergoog reports that Microsoft confirmed the submission did not contain malware.
    +10:39 - @Hixie closes the issue as a transient Windows Defender issue.
    + +## Impact + +Several users reported being unable to use Flutter. + +Some tests in continuous integration failed. + +## Root causes + +As best we can determine, the cause was a transient issue with Windows Defender that caused certain Flutter binaries to be flagged as having the Trojan:Script/Wacatac.B!ml trojan when downloaded. + +## History + +This is not the first time Flutter binaries have been labeled as "Trojan:Script/Wacatac.B!ml" by Windows Defender. + +In March 2021, @esDotDev reported a similar problem in [#78463](https://github.com/flutter/flutter/issues/78463), though at the time we were unable to reproduce it and the issue was closed due to insufficient information. + +In January 2023, @anggoran reported a similar problem in [#118430](https://github.com/flutter/flutter/issues/118430). We were again unable to reproduce the problem and closed the issue. + +In general there is a history of false positives with virus tools, we generally mark them as duplicates of [#95167](https://github.com/flutter/flutter/issues/95167) which is a non-actionable placeholder issue for us, or [#61997](https://github.com/flutter/flutter/issues/61997), which is an umbrella issue tracking any work we would do to react more gracefully when antivirus tools flag Flutter components or generated code as malware. + +## Lessons learned + +This section refers to the actual root cause, i.e., a false positive in Windows Defender. It may be worth considering our processes for handling a similar situation in the event that it was real. + +### What worked + +We did not in fact get compromised. + +Our release bucket has audit logs configured, which allowed us to check that the artifact was not modified after the initial upload. + +### Where we got lucky + +The damage caused by the false positive seems to have been minimal. We are only aware of three user reports, the CI failures happened mainly over a weekend, and the tests were not reliably failing so rerunning the bots allowed PRs to land. There was no press cycle, and a quick Google search found no mention of this in social media channels. + +### What didn't work + +Windows Defender, obviously. + +Our builds are not reproducible: rerunning the same build stage does not create identical bits. This makes it hard for us to confirm that builds are not compromised by rerunning the build in a new VM. + +Had this been a real compromise, our response rate would not have been especially prompt. + +We do not have a way to communicate effectively to our users about incidents like this. + +We don’t know the appropriate identification information/channel to expedite malware analysis at Microsoft (or other antivirus providers), even though that channel almost certainly exists and is available to us. + +Devs did not have quick access to Windows machines to be able to attempt to reproduce the behavior, adding extra time to the triage process. + +Although we have audit logs enabled, there was no documentation on how to search them, also adding to the total triage time. + +We don't publish the hashes of the artifacts we allow developers to download. One user who was affected by this failure asked if there was a list anywhere so that they could verify their download locally. + +## Action items + +### Prevention + +It is unclear what we can do to avoid such problems in the future. + +### Detection + +We could intentionally run Windows Defender updates and scans against recent artifacts continually to detect when an event occurs. + +### Mitigation + +It's unclear there is much we can do to prevent third-party tools from accidentally reporting Flutter as malware. + +### Process + +As part of this incident we created a new Discord channel, #incident-response. We should document this. + +### Fixes + +No fixes were necessary. + +### Documentation + +Add documentation on how Flutter infra can triage these issues quicker through audit logs. + +## Appendix + +### #incident-response logs + +```discord +[1:04 PM]Hixie: @Drewroen @Greg Spencer (gspencergoog) @timsneath let's coordinate here so we're not all speaking in different venues +[1:04 PM]Hixie: current issue is https://github.com/flutter/flutter/issues/123519 +[1:05 PM]Hixie: greg and/or drew are you able to upload the affected file to the site tim gave? +[1:21 PM]Greg Spencer (gspencergoog): I would, but I'm not sure how to sign in. Am I an "enterprise customer", or a "software developer"? Apparently you have to sign in to a Microsoft account before submitting it, and I'm not sure what account is the correct one to use (Is it OK to associate my @google.com account with my GitHub account for MS login?, Should I use a personal GitHub account?, etc.) +[1:37 PM]Greg Spencer (gspencergoog): Okay, I figured out how to log in. +[1:43 PM]Greg Spencer (gspencergoog): I've submitted it, but it's unclear when we'll get a response. I submitted it at "normal" priority because I didn't have the necessary ID numbers to submit it with Google enterprise credentials to get a higher priority. +[1:44 PM]Hixie: sounds good, can you update the issue as well? +[1:44 PM]Hixie: and thanks for your help here +[1:44 PM]Greg Spencer (gspencergoog): Yes. +[1:44 PM]Greg Spencer (gspencergoog): No problem. +[1:45 PM]Drewroen: (Catching up now, had a meeting) Thank you for submitting, @Greg Spencer (gspencergoog)! +[1:48 PM]Hixie: @Greg Spencer (gspencergoog) do you get anything useful if you upload the file to https://www.virustotal.com/gui/home/upload ? +[2:18 PM]Greg Spencer (gspencergoog): No, it doesn't detect any threats. +[2:19 PM]Greg Spencer (gspencergoog): I'm trying to figure out how to download previous versions of the gen_snapshot tool and see if they too trigger the quarantine. +[2:20 PM]Greg Spencer (gspencergoog): Anyone know how to find out the hash on the flutter_infra_release gcs instance for a previous release? +[2:23 PM]Greg Spencer (gspencergoog): Is it just the full github hash for the release? (You'd think I'd know this: I think I wrote it originally! I just can't remember) +[2:33 PM]Greg Spencer (gspencergoog): What is the "windows-x64.zip" file from? Is that from a Dart distro? +[2:33 PM]Drewroen: Maybe there's a simpler way, but I found the release commit for flutter/flutter for 3.7.7, then got the engine version from https://github.com/flutter/flutter/blob/2ad6cd72c040113b47ee9055e722606a490ef0da/bin/internal/engine.version and used that hash in the storage.googleapis url + +Long story short, this should be the engine artifact for the 3.7.7 windows stable: https://storage.googleapis.com/flutter_infra_release/flutter/1837b5be5f0f1376a1ccf383950e83a80177fb4e/android-x64-release/windows-x64.zip +[2:33 PM]Greg Spencer (gspencergoog): The Flutter version seems to be windows-x64-flutter.zip, and doesn't appear to have the problem (at least in the latest master build) +[2:34 PM]Greg Spencer (gspencergoog): Ahh, so it's in an Engine build. +[2:36 PM]Greg Spencer (gspencergoog): OK, so that 3.7.7 binary doesn't seem to trigger the quarantine. +[2:40 PM]Hixie: do we have any way to check if the machine on which we did the builds is compromised? +[2:40 PM]Hixie: cc @Godofredo Contreras (godofredoc) +[2:45 PM]Greg Spencer (gspencergoog): Actually, I just tried unpacking the original windows-x64.zip file that triggered the quarantine before, and it no longer flags the file. As far as I know, it's the same file I unpacked before, and the same zip file I uploaded to MS for analysis. +[2:45 PM]Greg Spencer (gspencergoog): Perhaps they've updated their cloud definitions and corrected an incorrect definition? +[2:46 PM]Greg Spencer (gspencergoog): I haven't updated my local definitions, so it would have to be something online. +[3:05 PM]Godofredo Contreras (godofredoc): @Hixie those are ephemeral VMs recycled every 24 hours. There is no way to access it. +[3:06 PM]Godofredo Contreras (godofredoc): Let me get the builder that file was generated on, if the machine was compromised I'd expect all the other artifacts from the same build to also be infected +[3:08 PM]Godofredo Contreras (godofredoc): @Greg Spencer (gspencergoog) that's correct only prod service accounts and release engineers have access to update artifacts. I would not expect the file to be updated but we can check our trail logs just in case +[3:09 PM]Greg Spencer (gspencergoog): I completely agree. Also, the same file I originally downloaded earlier today no longer triggers it, and it is identical to the one I just downloaded now (same sha256sum). +[3:10 PM]Greg Spencer (gspencergoog): So I think we can rule out someone replacing the file with an innocuous one. +[3:11 PM]Greg Spencer (gspencergoog): The submission to MS is still "pending". +[3:13 PM]Greg Spencer (gspencergoog): My money is on MS Defender just falsely flagging the file, and them updating their definitions. +[3:15 PM]Hixie: that does seem most likely, but i would hate for us to assume that is the case and then later find it isn't :-) +[3:15 PM]Greg Spencer (gspencergoog): Oh, definitely! +[3:15 PM]Greg Spencer (gspencergoog): I haven't closed the issue yet. :-) +[3:16 PM]Hixie: @Godofredo Contreras (godofredoc) if we rerun the build, do we get the same bits? it'd be a good test of our reproducible builds logic if we have it yet :-) +[3:18 PM]Godofredo Contreras (godofredoc): not sure, but let me give it a try +[4:40 PM]Hixie: @Godofredo Contreras (godofredoc) any luck? +[4:56 PM]Godofredo Contreras (godofredoc): The build has not finished yet, I'm using https://ci.chromium.org/p/flutter/builders/prod/Windows%20Host%20Engine/21257 +[4:58 PM]Godofredo Contreras (godofredoc): I'll validate using this artifact https://storage.cloud.google.com/flutter_infra_release/flutter/8cb080365fb189a1e5d1e33a991518f2422e319b/dart-sdk-windows-x64.zip +[4:59 PM]Greg Spencer (gspencergoog): Can anyone else with a Windows machine reproduce the quarantine that used to happen if you download and unpack https://storage.googleapis.com/flutter_infra_release/flutter/685fbc6f4d9db8026c56ee1a177bb10cc09f884b/android-x64-release/windows-x64.zip ? +[5:00 PM]Greg Spencer (gspencergoog): It's not happening for me anymore. +[5:00 PM]Godofredo Contreras (godofredoc): let me check on my windows pc +[5:00 PM]Godofredo Contreras (godofredoc): @Greg Spencer (gspencergoog) which win OS are you using? +[5:00 PM]Greg Spencer (gspencergoog): Windows 11 +[5:01 PM]Godofredo Contreras (godofredoc): ok, my computer is windows 10 +[5:01 PM]Greg Spencer (gspencergoog): But I think the build servers are running Windows 10, right? And they saw the same issue. +[5:02 PM]Godofredo Contreras (godofredoc): yes, they are using win 10 +[5:07 PM]Godofredo Contreras (godofredoc): were you getting the error when downloading? or when extracting? +[5:08 PM]Greg Spencer (gspencergoog): After extracting the zip file. +[5:08 PM]Greg Spencer (gspencergoog): It quarantined the gen_snapshot.exe file. +[5:10 PM]Godofredo Contreras (godofredoc): new behavior with downloads? +[5:11 PM]Godofredo Contreras (godofredoc): after downloading and extracting I get a blue window with message "Microsoft defender smartscreen prevented an unrecognized app from starting" +[5:12 PM]Godofredo Contreras (godofredoc): more info -> App: gen_snapshot.exe publisher: unknown publisher +[5:12 PM]Godofredo Contreras (godofredoc): with the option run anyway and don't run +[5:13 PM]Godofredo Contreras (godofredoc): I wonder if they started forcing | will start enforcing app signing +[5:15 PM]Godofredo Contreras (godofredoc): do you know how the flutter tool downloads binaries in win? +[5:16 PM]Godofredo Contreras (godofredoc): @Hixie https://luci-milo.appspot.com/raw/build/logs.chromium.org/flutter/led/godofredoc_google.com/9d161b36a3996876610f0a49660b9e0fd37f7e43881c33f17aa9fa0f5ec277f8/+/build.proto, I'll validate hashes once the build is complete +[5:31 PM]Greg Spencer (gspencergoog): It also might vary according to the system configuration. Mine is a stock Windows 11 install, not a corp machine. +[5:34 PM]Godofredo Contreras (godofredoc): mine is a win 10 with stock windows +[5:40 PM]Godofredo Contreras (godofredoc): Confirmed our builds are not replicable, sha for the test file in GCS 873d80acf1855733ce11a5b569859b6bc803ee38035cfb3491c0e3748544a48e and the one generated from a rebuild using the same build configs 57573123fff2713032b31cd8d99e30e79c0452516a54388c7aa237b8da1890b4 +[5:41 PM]Hixie: that could mean the first one was bad or, more likely, that we just haven't managed to get replicable builds yet, right? +[5:45 PM]Godofredo Contreras (godofredoc): I used a build from a couple of hours ago for the validation, the two builds are correct +[5:46 PM]Godofredo Contreras (godofredoc): is just that we may use some compilation/linker flags that impacts replicability or maybe we are using timestamps somewhere in the build system +[5:46 PM]Godofredo Contreras (godofredoc): I haven't validate it yet the logs for the artifact, but let me do that +[5:49 PM]Hixie: does the new version also trigger windows defender? +[5:51 PM]Godofredo Contreras (godofredoc): In my windows machine it consistently blocks the execution on any binaries downloaded from the internet, until I explicitly allow them to run +[6:09 PM]Godofredo Contreras (godofredoc): AI: document how to audit GCS logs +[6:21 PM]Godofredo Contreras (godofredoc): There is a single log: event=storage.objects.create +[6:21 PM]Godofredo Contreras (godofredoc): timestamp: "2023-03-24T22:19:48.210794479Z" +[6:22 PM]Godofredo Contreras (godofredoc): auth: "flutter-prod-builder@chops-service-accounts.iam.gserviceaccount.com" +[6:31 PM]Godofredo Contreras (godofredoc): ok, rewinding everything to use the right data +[6:32 PM]Godofredo Contreras (godofredoc): Stable - 3.7.7 was https://github.com/flutter/flutter/commit/2ad6cd72c040113b47ee9055e722606a490ef0da +[6:32 PM]Godofredo Contreras (godofredoc): which is using engine 1837b5be5f0f1376a1ccf383950e83a80177fb4e +[6:33 PM]Godofredo Contreras (godofredoc): The artifact to validate is https://storage.googleapis.com/flutter_infra_release/flutter/1837b5be5f0f1376a1ccf383950e83a80177fb4e/android-x64-release/windows-x64.zip +[6:40 PM]Godofredo Contreras (godofredoc): Single log, create object event, timestamp: "2023-03-08T06:05:16.234063683Z" by flutter-prod-builder@chops-service-accounts.iam.gserviceaccount.com" +[6:42 PM]Godofredo Contreras (godofredoc): which correlates with the information in the builder https://ci.chromium.org/p/flutter/builders/prod/Windows%20Host%20Engine/20852 +[6:44 PM]Godofredo Contreras (godofredoc): the end time of the build is 2023-03-08T06:16:58Z +[6:45 PM]Godofredo Contreras (godofredoc): Defender is not finding any issues with the file on my Win 10 machine +[8:45 PM]Hixie: so at this point we're not able to reproduce the problem, basically? +[10:34 AM]Greg Spencer (gspencergoog): When I download the new artifact, it has the same sha256sum as the one I downloaded from the original build with this issue. Unpacking the zip file still doesn't trigger any quarantine. +[10:34 AM]Greg Spencer (gspencergoog): As I reported in the bug, MS also found no issue with the contents of the zip file. +[10:34 AM]Greg Spencer (gspencergoog): +Image +[10:35 AM]Greg Spencer (gspencergoog): (both the automated "No malware detected" and the analyst "Not malware" determination) +[10:40 AM]Greg Spencer (gspencergoog): Unless someone can come up with a reproduction case, I think all we can do now is probably close the incident. +[10:45 AM]Hixie: agreed. thanks greg and everyone else who worked on this. +[10:45 AM]Hixie: i've closed the issue. +[10:46 AM]Greg Spencer (gspencergoog): No problem! +[10:47 AM]Godofredo Contreras (godofredoc): One thing that I'd like to get feedback is how can we do better in this situation? some thoughts: +[10:48 AM]Godofredo Contreras (godofredoc): a) Get non corp win machines for the security team. +[10:48 AM]Godofredo Contreras (godofredoc): b) Document the process to audit an artifact, including how to get the right SHAs for a given release version +[10:49 AM]Godofredo Contreras (godofredoc): c) [medium/long term] start working on replicable builds +[10:49 AM]Hixie: do we want to write a mini postmortem about it? +[10:49 AM]Greg Spencer (gspencergoog): I think that seems like a good idea. +[10:50 AM]Godofredo Contreras (godofredoc): Yes, that will be helpful. In a real threat scenario we won't have the luxury of figuring out things with the research step spanning during multiple hours +[10:51 AM]Greg Spencer (gspencergoog): Agreed. +[10:52 AM]Godofredo Contreras (godofredoc): Also forgot d) Sign windows binaries +[10:52 AM]Greg Spencer (gspencergoog): In this particular case, signing the binaries would have let us narrow where we were looking. +[10:53 AM]Greg Spencer (gspencergoog): And in the end, you seem to have produced an artifact with the same sha256. +[10:54 AM]Godofredo Contreras (godofredoc): no, I used a different commit and uploaded to an experimental location, the hashes were different +[10:55 AM]Greg Spencer (gspencergoog): Oh? Well the one you posted above with "The artifact to validate:" had the same sha256 as the original artifact that triggered the quarantine. +[10:55 AM]Greg Spencer (gspencergoog): This one: https://storage.googleapis.com/flutter_infra_release/flutter/1837b5be5f0f1376a1ccf383950e83a80177fb4e/android-x64-release/windows-x64.zip +[10:56 AM]Greg Spencer (gspencergoog): The commit hashes might have been different, but the artifact wasn't. +[10:56 AM]Godofredo Contreras (godofredoc): aaaah ok, yeah I downloaded that file and validated locally extracting and running defender on my win machine +[10:56 AM]Greg Spencer (gspencergoog): Okay, so did I test the right thing? +[10:57 AM]Godofredo Contreras (godofredoc): let me double check, I validated both 3.7.7 and 3.7.8 +[10:57 AM]Greg Spencer (gspencergoog): Because this was the original artifact we found the problem in: https://storage.googleapis.com/flutter_infra_release/flutter/685fbc6f4d9db8026c56ee1a177bb10cc09f884b/android-x64-release/windows-x64.zip +[10:59 AM]Godofredo Contreras (godofredoc): 3.7.8 hash is 9aa7816315095c86410527932918c718cb35e7d6 +[10:59 AM]Greg Spencer (gspencergoog): That's a sha1 from the windows-64.zip, right? +[10:59 AM]Godofredo Contreras (godofredoc): 3.7.7 has is 1837b5be5f0f1376a1ccf383950e83a80177fb4e +[11:00 AM]Godofredo Contreras (godofredoc): that's the commit hash for the engine artifacts +[11:00 AM]Greg Spencer (gspencergoog): Ahh, OK. +[11:02 AM]Greg Spencer (gspencergoog): Git makes a new hash for each commit even if the content doesn't change, so those would have to be different. I thought you had posted the link to a newly built version of the same artifact. If that's not what that was, then what was it? +[11:35 AM]Hixie: https://docs.google.com/document/d/1g5LyqB4uezd-5xNYMwlTBbWTntHhyjLCBYI_ZInX-R0/edit?usp=sharing postmortem doc (currently just the template) - this is a markdown file for putting on the wiki +[11:35 AM]Hixie: (right now everyone has edit access so don't share that link outside the team) +[11:39 AM]Godofredo Contreras (godofredoc): @Greg Spencer (gspencergoog) this is the build I used for validating if the builds are replicable https://luci-milo.appspot.com/raw/build/logs.chromium.org/flutter/led/godofredoc_google.com/9d161b36a3996876610f0a49660b9e0fd37f7e43881c33f17aa9fa0f5ec277f8/+/build.proto +[11:41 AM]Godofredo Contreras (godofredoc): I compared some of the artifacts in that build(experimental) with the ones in the release bucket +[11:42 AM]Godofredo Contreras (godofredoc): e.g. https://storage.cloud.google.com/flutter_infra_release/flutter/experimental/8cb080365fb189a1e5d1e33a991518f2422e319b/windows-x64-debug/windows-x64-flutter.zip vs https://storage.cloud.google.com/flutter_infra_release/flutter/8cb080365fb189a1e5d1e33a991518f2422e319b/windows-x64-debug/windows-x64-flutter.zip +[11:54 AM]Greg Spencer (gspencergoog): Yes, those aren't even the same size (by several hundred K), so they definitely are different artifacts. +[11:59 AM]Greg Spencer (gspencergoog): So I see why you want to work on making reproducible builds. +``` diff --git a/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-flutter.dev-outage-on-August-26-2023.md b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-flutter.dev-outage-on-August-26-2023.md new file mode 100644 index 0000000000000000000000000000000000000000..498100a5482504e5faefe0daff4825f35b6ce663 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/postmortems/Postmortem-flutter.dev-outage-on-August-26-2023.md @@ -0,0 +1,86 @@ +Status: final
    +Owners: @Hixie + +## Summary + +Description: flutter.dev was offline for 80% of users for a period of several hours.
    +Component: www.flutter.dev web site
    +Date/time: 2023-08-26 21:14 PDT
    +Duration: 15 hours 40 minutes
    +User impact: Potential new users, anyone trying to visit flutter.dev + +## Timeline (all times in PST/PDT) + +At some point in 2023, a change in Google Groups caused the flutter.dev security@, conduct@, and press@ aliases to stop working. This issue was temporarily worked around by changing public documentation to give Hixie's personal e-mail address. The task of determining a more permanent solution was considered low priority. + +### 2023-08-25 + +15:27 - Hixie and tvolkert submit a change to the DNS configuration to change the MX records in order to enable Google Workspace Google groups on the flutter.dev domain, enabling security@, conduct@, and press@ aliases to be reactivated, unaware that an error in the new configuration would add four A records and four AAAA records for flutter.dev providing incorrect IP addresses. (Internal ID 560528920.)
    +21:14 - DNS configuration changes take effect. 80% of IPs served for flutter.dev fail to serve correctly. **<START OF OUTAGE>**
    +21:20 - Monitoring system sends first e-mail, incorrectly reporting docs.flutter.dev is down.
    +21:27 - Monitoring system sends second e-mail, reporting flutter.dev is down.
    +21:42 - A user tweets concern: https://twitter.com/macoshita/status/1695295520351359040?s=20
    +23:54 - The first dubious security vulnerability ("the javascript on your website is accessible") since the MX record update is received at security@flutter.dev. + +### 2023-08-26 + +04:24 - @Abitofevrything on Discord pings @Hixie to inform them of the outage.
    +04:27 - @Hixie sees and acknowledges the message.
    +05:07 - jonasfj and Hixie submit a fix to the DNS configuration.
    +10:07 - Another user tweets concern: https://twitter.com/its_me_mahmud/status/1695483187936555397?s=20 (in the brief resulting thread, another user confirms the outage, while the original poster expresses confusion that the site works on some machines but not others)
    +12:55 - DNS configuration changes take effect. **<END OF OUTAGE>** + +## Data +From monitoring data (highlighted line is the moving average of successful pings): +![](https://github.com/flutter/flutter/assets/551196/6fde84d6-922a-4536-8cd4-d5d5933078f5) + +From analytics (the outage is visible at the bottom right): +![](https://github.com/flutter/flutter/assets/551196/cbbb6cde-9b65-45ec-9bd1-8adb169469e3) + +## Impact + +Four fifths of users were unable to learn about Flutter from flutter.dev during the outage. Traffic numbers recovered immediately when the DNS issue was fixed. + +The outage seems to have slightly reduced traffic to docs.flutter.dev. + +We don't have long-term impact data yet. + +## Root causes + +The DNS configuration change introduced an import of a configuration file for Google Workspace domains that itself imported two files: one to add MX records, and one to add IP addresses for web hosting. However, since flutter.dev is not hosted using Google Workspace, the additional IP addresses for web hosting returned error pages. + +## Lessons learned + +### What worked + +The DNS server did exactly what it was told to do. + +Our team has improved work-life balance significantly in the past year. + +The MX record change worked as intended. + +### Where we got lucky + +Hixie checked his messages just prior to going to sleep, and once aware of the problem, was able to find a solution in a few minutes. Also, Hixie's questionable sleep habits meant he was awake at the time of the message. + +The outage happened during one of our off-peak days. + +### What didn't work + +Monitoring detected the issue but one e-mailed one person, who was not working at the time. The issue went undetected by humans for seven hours and ten minutes. + +It took about 25 minutes for Hixie to find someone to review the PR, because everyone was either sleeping or enjoying their weekend. + +The DNS changes took hours to take effect. + +## Follow-up + +The monitoring system should notify more people. Ideally, it would ping Discord directly. Ideally it would not be limited to Googlers. (filed https://github.com/flutter/flutter/issues/133509) + +The monitoring system for docs.flutter.dev is incorrectly configured to check docs.flutter.io, which redirects to flutter.dev. (fixed by adding a separate monitoring entry for docs.flutter.dev and api.flutter.dev) + +It would be useful to have a channel for getting hold of team members in a hurry. (added an @emergency role on Discord which has notifications enabled) + +The current setup requires a Google employee Flutter team member to approve DNS changes. We should expand this to Dart team members as well since that would increase the number of people in different time zones. (added Dart team members to the OWNERS file) + +We could have a policy of not landing DNS changes on a Friday, since that would reduce the difficulty in getting hold of someone. On the other hand, the outage happening on a weekend greatly diminished the impact. These factors may cancel each other out. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/postmortems/README.md b/novelforge-project/agent-workspace/flutter/docs/postmortems/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e0f502b6c871714130e62eda996601f7f11064fa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/postmortems/README.md @@ -0,0 +1,19 @@ +This page lists incidents for which we have written retrospectives and postmortems. + +## Postmortems + +When adding a new incident, start from the [postmortem template](postmortem-template.md). + +* [Postmortem: Build Breakage on 2016-11-08](Postmortem-Build-Breakage-on-2016-11-08.md) +* [Postmortem: Beta 1 Release](Postmortem-Beta-1-Release.md) +* [Postmortem: AndroidX plugin migration](Postmortem-AndroidX-plugin-migration.md) +* [Postmortem: Widespread Gradle failures on Flutter v1.12.13 hotfix.5](Postmortem-Widespread-Gradle-failures-on-Flutter-v1.12.13-hotfix.5.md) +* [Postmortem: Flutter/Dart Incorrect Version July 2020](https://docs.google.com/document/d/1TeCpj-T0HAp7DcY2ag-q5iX218TeOHNcW5fUusaum0c/edit) +* [Postmortem: Flutter Gold Summer 2020 Outages](https://docs.google.com/document/d/1cZi84iWFJa9l7TIhSZEnhZlg7bBBIoJLjzx-uLUSLzI/edit?usp=sharing) +* [Postmortem: Pub.dev outage 2021-03-24](https://docs.google.com/document/d/1hBVi6_1FXoY1hG9zgKFUkqreP7UsnaF4EGspIJh0E2g/edit?hl=en) +* [Postmortem: Windows Defender alert on 2023-03-26](Postmortem-Windows-Defender-alert-on-2023-03-26.md) +* [Postmortem: flutter.dev outage on August 26 2023](Postmortem-flutter.dev-outage-on-August-26-2023.md) + +## Retrospectives + +* [Retrospective: Flutter 2.8 Stable Release](Retrospective-Flutter-2.8-Stable-Release.md) 16 December 2021 \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/postmortems/Retrospective-Flutter-2.8-Stable-Release.md b/novelforge-project/agent-workspace/flutter/docs/postmortems/Retrospective-Flutter-2.8-Stable-Release.md new file mode 100644 index 0000000000000000000000000000000000000000..a5002975f43960387ca748539aa4e3ee378328a8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/postmortems/Retrospective-Flutter-2.8-Stable-Release.md @@ -0,0 +1,89 @@ +# Flutter 2.8 Stable Retrospective +Date: 16 December 2021 + +Facilitator: Kevin Chisholm +## Attendees +1. Nuritzi Sanchez +1. Alexander Thomas +1. Godofredo Contreras +1. Vijay Menon +1. Devon Carew +1. Ian Hickson +1. Devon Carew +1. Todd Volkert +1. Khyati Mehta +1. Eric Seidel +1. Christopher Fujino +1. Andrew Brogdon +1. Kevin Chisholm + + +## Retrospective Guidelines +### Blameless +Focus on the actions and behaviors, not the people. Our retrospectives should be a safe place to reflect on what we can do to improve as a team. +### Inclusive +All input is valuable, we should never make someone feel as if their thoughts and contributions are not valued. +### Actionable +Work toward defining the issues that can be actioned on to be more successful in the future. +## Retrospective Items +### What went well +* We released a quality SDK on the expected date. + * No P0 issues to hotfix. +* Our infrastructure and test owners responded rapidly to the chat allowing us to address issues. +* The social team was proactive in keeping customers informed. +* Were able to delay blog post and docs. + * Got them out in time after the release was available. +### Challenges +* We did not properly take into account how long the release would take. +* We had no process to separate the build from the release. +* Documentation is lacking / not prescriptive enough to accurately describe the entire process. + * Release documentation. We have a lot of documentation, but it’s not consolidated into a single source of truth with handoffs and DRIs (directly responsible individuals) + * A lot of this release seemed based on undocumented institutional knowledge. + * Didn’t find info about dot releases and cherrypicking. Not written down anywhere. +* We incorrectly tagged the Dart commit. +* We did not have the Dart commit hash posted in the release engineering doc. +* Missed deadline by 8 hours. + * PM team had to do extra work and expend their social capital. +* We need documentation for the binary signing process. + * We may not have benefited from publishing the Dart SDK release earlier. We had the Dart stable hash on Friday, but did not properly communicate it to the release engineer. As soon as the Dart hash exists, Flutter and Dart release processes are independent, so if we had published it on Monday or Tuesday it wouldn’t have helped. + * Right now we start betas on a certain day and then stable have to be shipped on a certain day. We may need to rethink this and standardize. +* Fixes were needed to the stable bots (they were not the same as commit-bots/beta bots). + * Java version was wrong. + * Properties used to select the correct versions of artifacts were missing. +Xcode/Mac/iOS were force updated in between the beta to stable time window + * Web Engine Framework, Framework sdk tests in the engine failed because they used the master version of framework with old version of engine. + * Branch configurations were updated after landing the PR causing multiple purples and several manual retries. + +### How can we improve [30 Minutes] +* Build Flutter in advance. + * Should have been done the day before and pushed the morning of. + * Do most of the build and release process in advance; on the day-of, do the tagging / packaging work (<1 hr, and a predictable process). + * How early we can release may be determined by what bugs we need to hotfix. + * Docs need to be updated after the branch push + * What is the delta between the master and stable branch? + * ~6 days +* Create a solid release playbook on the wiki to be followed. + * Should be clear enough that two interns (meaning, two inexperienced people new to the team who have the appropriate permissions) should be able to make a release without supervision while everyone else is on vacation. (It has to be two because you need two people to authorize a release). + * [Release Process](../releases/Release-process.md) should be (or point to) that process doc; other pages on the wiki should be up to date also. +* Align beta and stable release processes. +* Practice release dry runs. + * Have people who have never followed the steps before practice the steps, to find where the documentation is missing important details. +* Run retrospectives after every beta and stable release. +* Improve testing infrastructure. +* Better define owners. +* Improve communication. +* Cherry pick owners were not notified of the release times. + * Were not able to resolve issues. +### Action Items + +| Status | Action Item | Owner | +|--------|-------------|-------| +| In Progress | Create a single source of truth release playbook unifying the Flutter and Dart release processes | Kevin | +| In Progress | Rethink timing of releases | Kevin | +| In Progress | Identify release calendars and make sure they are easily accessible to everyone who needs to see them | Kevin | +| In Progress | Conduct retrospectives after every release | Kevin | +| In Progress | Create a release rotation for beta releases | Godofredo | +| In Progress | Create meeting for Dart / Flutter EngProd teams and TPM team on release weeks | Kevin | +| In Progress | Clean up and consolidate release documentation | TPM | +| In Progress | Successfully produce at least 2 betas before our Feb stable to verify that we will be without issues for the Feb stable | Devon / Kevin | +| In Progress | Consider the milestone flow on github | Ian / Kevin | diff --git a/novelforge-project/agent-workspace/flutter/docs/postmortems/postmortem-template.md b/novelforge-project/agent-workspace/flutter/docs/postmortems/postmortem-template.md new file mode 100644 index 0000000000000000000000000000000000000000..4db10c4b58f43aa6ecb1ca57da0224e998087454 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/postmortems/postmortem-template.md @@ -0,0 +1,73 @@ +# Flutter postmortem: {Incident Title} + +Status: {draft|final}
    +Owners: {who drove the incident resolution} + +## Summary + +Description: {brief description of symptoms and root cause}
    +Component: {affected area}
    +Date/time: {YYYY-MM-DD HH:MM}
    +Duration: {time from initial breakage to final resolution}
    +User impact: {who was affected by the incident} + +## Timeline (all times in PST/PDT) + +### 1900-01-01 + +14:44 - something happened
    +14:45 - next thing happened **<START OF OUTAGE>** + +### 1900-01-02 + +09:12 - another thing happened **<END OF OUTAGE>** + +## Impact + +{summarize the problems that the outage caused} + +## Root causes + +{without blame, describe the root cause of the outage} + +## Lessons learned + +### What worked + +{list things where things worked as expected in a positive manner} + +### Where we got lucky + +{list things that mitigated this incident but not because of our foresight} + +### What didn't work + +{list things that failed, with github issues from the action items section} + +## Action items + +{each item here should have an owner} + +### Prevention + +{link to github issues for things that would have prevented this failure from happening in the first place, such as input validation, pinning dependencies, etc} + +### Detection + +{link to github issues for things that would have detected this failure before it became An Incident, such as better testing, monitoring, etc} + +### Mitigation + +{link to github issues for things that would have made this failure less serious, such as graceful degradation, better exception handling, etc} + +### Process + +{link to github issues for things that would have helped us resolve this failure faster, such as documented processes and protocols, etc} + +### Fixes + +{link to github issues or PRs/commits for the actual fixes that were necessary to resolve this incident} + +## Appendix + +{any other useful information, such as relevant chat logs} \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/Bad-Builds.md b/novelforge-project/agent-workspace/flutter/docs/releases/Bad-Builds.md new file mode 100644 index 0000000000000000000000000000000000000000..94d33346e59e384761357745a9cbd5ebeeae6fd3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/Bad-Builds.md @@ -0,0 +1,26 @@ +## Flutter Bad Builds Triage Guidelines (for Googlers) + +1. If you encounter a serious P0 flutter production Google3 or a github issue, triage the issue and check if the issue is already part of Flutter's bad build [tracker](http://go/flutter-bad-builds). +If the issue is not listed in Flutter bad builds [tracker](http://go/flutter-bad-builds), check that it meets the below criteria to qualify for bad builds visibility - + * A P0 bug + * Can be in any component, Flutter’s component or Flutter user’s component + * Must be a bug, not a feature request + * Must affect end-users, not a regression on tooling, debugging features, infra etc + * Issue must be open + +2. If there is a buganizer for this already and no github issue, create a github bug in the github repo. Label the github bug with label _a: production_ and _customer: google_. + +3. Add following information to Flutter bad builds visibility [tracker](http://go/flutter-bad-builds) + * Issue create date - this can be either buganizer or github issue create date + * Triaged by - your LDAP + * Github issue id + * Begin bad build commit hash URL (Commit hash URL can be from dart, engine, flutter and skia repos) + * Impacted platform + +3. Automation will take care of finding the corresponding begin bad build commit CL based on the begin bad build commit URL you entered. Automation will run once every 12 hrs + +4. Contact the [Flutter@Google team on-call ](https://rotations.corp.google.com/rotation/5644450090975232) for more visibility into the issue. This will also help identify duplicates across github & Google3. + +5. Once a fix has been merged, enter the “End bad build commit hash 1 URL”. + +6. There are cases when a fix is merged as part of 2 different commits. In that case, you can use the “ End bad build commit hash 2 URL” column to populate the second commits hash information. Automation will take care of finding the corresponding End bad build commit CL based on the End bad build commit URL you entered. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/Flutter-Cherrypick-Process.md b/novelforge-project/agent-workspace/flutter/docs/releases/Flutter-Cherrypick-Process.md new file mode 100644 index 0000000000000000000000000000000000000000..6e69c44ca830a54338fe55c2a7d887c6deae1c37 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/Flutter-Cherrypick-Process.md @@ -0,0 +1,83 @@ +# Flutter Cherry-pick Process + +## Goal +With branching and branch testability being supported for Flutter & Dart releases, cherry-picking fixes is the preferred method to address issues for released software (beta and stable channels.) Stability of the release will be the overarching goal, so only highly impactful and critical cherrypicks will be allowed across Dart and Flutter. This document outlines the process for requesting and approval of cherrypicks. + +**Note: This process applies to regressions from the previous release or serious bugs otherwise introduced by the current release. Feature work is not considered for cherry-picking and will need to wait for the next release.** + +## Automatically Creates a Cherry Pick Request +Eligibility: +1. If your cherry pick is expecting to have a merge conflict, please skip this section and follow instructions in the FAQ section below to manually open a cherry pick request instead. (e.g. PRs that contain changes to .ci.yaml files are very likely to hit a merge conflict) +2. The framework PR to be cherry picked needs to have a base commit later than [01/24/2024](https://www.google.com/url?q=https://github.com/flutter/flutter/pull/142058&sa=D&source=docs&ust=1706904517596608&usg=AOvVaw3cFfw8vyiBtY3EzM_N-PEi), and the engine PR to be cherry picked has a base commit later than [02/06/2024](https://github.com/flutter/engine/pull/50265) +3. The target branch is either [beta](https://github.com/flutter/flutter/blob/beta/bin/internal/release-candidate-branch.version) or [stable](https://github.com/flutter/flutter/blob/stable/bin/internal/release-candidate-branch.version). (not a new beta branch that isn't yet created) + +For automatic cherry pick: +1. Add the `cp: beta` or `cp: stable` label to the pull request on flutter/flutter master. (you can find [beta](https://github.com/flutter/flutter/blob/beta/bin/internal/release-candidate-branch.version) and [stable](https://github.com/flutter/flutter/blob/stable/bin/internal/release-candidate-branch.version) candidate branch info by following the respective links) +2. Wait about 30 seconds. +3. If automatic cherry pick succeeds (no merge conflict), a new pull requested will be created and you will receive an email. Edit the cherry-pick details in the PR description of the generated pull request, and a release engineer will follow up on the request. +4. If automatic cherry pick fails, a comment will be left on the original PR. In this case you will need to follow instructions in the FAQ section below to manually create a cherry pick PR. + +For manual cherry pick:
    +refer to the FAQ section below + +## Frequently asked questions + +### How do I request a cherry-pick? +To request a cherry-pick, utilize the [issue template](https://github.com/flutter/flutter/issues/new?template=7_cherry_pick.yml). + +### Who can request a cherry-pick? + +Anyone can request a cherry-pick. + +### When do I request a cherry pick? + +- Whenever you have identified a commit on the main/master that fixes an issue that is present on the beta or stable branch. +- Whenever you need to update a pub dependency that fixes an issue that is present on the beta or stable branch (see [Updating dependencies](../infra/Updating-dependencies-in-Flutter.md#to-update-a-single-dependency-for-cherrypicks) + +### Who reviews and approves cherry-pick requests? + +The release engineering team will assign a cherry-pick reviewer who is an expert in the area of the code that your cherry-pick may affect. + +### Lifecycle of a cherry-pick + +1. The cherry-pick requester opens a cherry-pick pull request to the [beta](https://github.com/flutter/flutter/blob/beta/bin/internal/release-candidate-branch.version) or [stable](https://github.com/flutter/flutter/blob/stable/bin/internal/release-candidate-branch.version) **candidate** branch (follow the respective link to find the branch name) +2. A cherry-pick issue is filled out completely and created utilizing the [cherry-pick template](https://github.com/flutter/flutter/issues/new?template=7_cherry_pick.yml) in the [flutter/flutter](https://github.com/flutter/flutter) repository. +3. The release engineering team is notified that a cherry-pick request is in queue and assigns an appropriate reviewer who is an expert in the area who will review the cherry-pick issue and associated cherry-pick pull request. +4. The release engineering team applies the `merge-to-beta` or `merge-to-stable` label. +5. The cherry-pick request then enters one of the following states. + 1. Approved: The reviewer has approved the cherry-pick and cherry-pick pull request. +The release engineering team will merge the cherry-pick pull request and apply the `cp: merged` label to the cherry-pick issue. + 2. Denied: The reviewer will comment on the cherry-pick issue why the cherry-pick is denied. +The release engineering team will close the cherry-pick issue and associated cherry-pick pull request. +6. The cherry-pick is picked up in the next release period. +7. Once the cherry-pick has been added to a release, the release engineering team will close the cherry-pick issue. + +### This is my first cherry-pick, how do I do it? + +This is the perfect opportunity for you to learn and add cherry-picking to your toolbox. A typical cherry-pick request follows a process similar to the below. + +**Note: Commands that are wrapped with < > are variables that apply to your specific situation.** + +1. `git checkout ` +2. `git fetch` +3. `git pull` // ensure all changes from master/main have been pulled +4. `git checkout ` +5. `git checkout -b ` +6. `git cherry-pick ` +7. `git push --set-upstream origin ` + +### What happens if my cherry-pick PR has merge conflicts? + +In the case that your cherry-pick commit has a merge conflict, it is up to you to resolve it. If you can not resolve it, reach out to the original PR author who may be able to help resolve the conflict. + +### What if the issue is on a previous stable? + +If you discovered an issue on a X version that is no longer on the stable channel, we can still hotfix it in. For stables, we are more likely to do this as that is what most Flutter developers use. + +Generally, if the stable is relatively fresh, such as we recently shipped the new stable and a large chunk of developers have not migrated, we would prioritize backporting a fix. + +### When should I prioritize fixes to beta instead of stable? + +Generally, we ship every third beta to stable, and prioritize fixes to those branches as those are soon to be stable. We have no official comms planned around this yet, but will encourage developers on Discord to try out this beta. + +In the last few weeks of a stable, we may opt to only release hotfixes to the beta instead of stable. At end of 2023, we're planning to have more automation around releases, which will allow us to ship hotfixes to both channels easily, and this will be less of a concern. diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/Flutter-build-release-channels.md b/novelforge-project/agent-workspace/flutter/docs/releases/Flutter-build-release-channels.md new file mode 100644 index 0000000000000000000000000000000000000000..1c20d4ba1a305b36b14d41a56b06e15afa175f23 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/Flutter-build-release-channels.md @@ -0,0 +1,63 @@ +## Flutter's channels + +Flutter has the following channels, in increasing order of stability. + +### `master` (aka `main`) + +The current tip-of-tree, absolute latest cutting edge build. Usually functional, though sometimes we accidentally break things. We do not run the entirety of our testing before allowing patches to land on this branch. We do not +recommend using this branch unless [you are contributing to Flutter](../../CONTRIBUTING.md). + +The API documentation for the most recent commit on `master` is staged at: + +The Flutter team's plugins and packages are regularly tested against the `master` branch. + +_We are planning to rename this channel to `main` soon; this work is tracked in [flutter#121564](https://github.com/flutter/flutter/issues/121564)._ + +### `beta` + +The latest stable release. If you want to be using the latest and greatest, the `beta` branch is the right choice. That's the most recent version of Flutter that we have heavily tested. The beta branch has passed all our public testing, has been verified against test suites for Google products that use Flutter, and has been vetted against [contributed private test suites](https://github.com/flutter/tests). + +We branch from `master` for a new beta release at the beginning of the month, usually the first Wednesday. This includes a branch for Dart, the engine and the framework. These branches are then "stabilized" for the next couple of weeks, meaning we accept [cherrypick](Flutter-Cherrypick-Process.md) requests for high impact issues. Once a quarter, the beta branch lives on to become the next stable branch, as detailed below. + +On average it takes about two weeks for a fix to end up in the beta branch after it lands in our repository (in the `master` channel). + +We do not host the API documentation for the current `beta` branch. The documentation for the `stable` branch at is usually correct, but may be missing new features. The documentation for the `master` branch at is likely to be more up to date but may mention features that are not yet on the `beta` branch. + +### `stable` + +Roughly speaking, every third `beta` is promoted to `stable`. This is essentially the same as the `beta` branch but with less frequent updates. + +We recommend using this channel for new users and for production app releases. + +In case of high severity, high impact or security issues, we may do a hotfix release for the `stable` channel just like we do for `beta`. This will follow the same [cherrypick](Flutter-Cherrypick-Process.md) process. + +The `stable` version of Flutter is the one documented by our API documentation at: + +The Flutter team's plugins and packages are continually tested against the latest `stable` branch. + + +## How to change channels + +You can see which channel you're on with the following command: + +``` +$ flutter channel +Flutter channels: +* stable + beta + master +``` + +To switch channels, run `flutter channel []`, and then run `flutter upgrade` to ensure you're on the latest. + +## Will a particular bug fix be provided in a hotfix release? + +Depending on the severity of the issue, it is possible. Refer to the [cherrypick process](Flutter-Cherrypick-Process.md) for details. + +If you really need a particular patch and it's a fix to the flutter/flutter repository, you should feel free to create a Flutter branch yourself on your development machine and cherry-pick the fix you want onto that branch. Flutter is distributed as a `git` repository and all of `git`'s tools are available to you. If you need a particular patch that's from the flutter/engine repository or one of our dependencies (e.g. Dart or Skia), you could build your own engine but it's probably easier to just wait until the next release. On average, the next `beta` release is about two weeks away. + +## See also + +* [Release process](Release-process.md), which describes the details for how we push builds from channel to channel. +* [Cherrypick process](Flutter-Cherrypick-Process.md), where we cover how to request an issue for cherrypicking. +* [Release notes](https://docs.flutter.dev/release/release-notes), where we document changes to each version of the stable channel. diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/Hotfix-Documentation-Best-Practices.md b/novelforge-project/agent-workspace/flutter/docs/releases/Hotfix-Documentation-Best-Practices.md new file mode 100644 index 0000000000000000000000000000000000000000..a20db6517cfd7d4caa9597a101bf20358c46d912 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/Hotfix-Documentation-Best-Practices.md @@ -0,0 +1,39 @@ +Production customers care a lot about hotfixes, since they may address issues that fix crashes on specific devices or platforms. We want customers to adopt hotfix releases quickly, and it’s therefore important that they understand what’s in them and what risks they may accept by adopting them. + +As a result, it’s important that Flutter customers can quickly scan through our hotfixes and identify whether they’re relevant to them. We can do that by making sure that each hotfix is described carefully. + +Our goal is that each hotfix summary: + +1. Should be clear to a non-contributor who is developing with Flutter +2. Should be succinct (one line) for ease of scanning +3. Within above, should identify as best as possible: + - What the scenario is (describe the problem) + - What platforms it affects + - In what context it may occur + - How likely it is to occur + +The goal is not to exhaustively document the issue, but to provide enough information that an educated user can quickly scan and determine whether they need to read through the bug itself to understand its applicability to their scenario. + +A good approach for hotfix messages is to describe the problem in terms of the current state prior to the fix. For example: + +> **“When $scenario [on $platform], $problem_description”** + +Some good existing examples of hotfix messages that adopt this kind of formula: + +- [flutter/90783](https://github.com/flutter/flutter/issues/90783): In rare circumstances, engine may crash during app termination on iOS and macOS +- [flutter/77251](https://github.com/flutter/flutter/issues/77251): Flutter may show multiple snackbars when Scaffold is nested +- [flutter/98155](https://github.com/flutter/flutter/issues/98155): App crashes after upgrading to 2.10.x using webview + video_player plugin + +Some harmless examples that are harder for customers to consume: + +- [flutter/97679](https://github.com/flutter/flutter/issues/97679): Don't remove overlay views when the rasterizer is being torn down. +
    _Problem_: It's unclear how this affects customer apps and in which contexts +
    _Perhaps better_: “App may crash when navigating away from embedded native platform content” + +- [flutter/95711](https://github.com/flutter/flutter/issues/95711): Linux builds default to building GLFW. +
    _Problem_: Unclear why this is a problem or how this impacts customers +
    _Perhaps better_: “On Linux, dependency on X11 breaks Wayland and embedded builds” + +- [flutter/97086](https://github.com/flutter/flutter/issues/97086): Windows: Fail to launch app in debug mode +
    _Problem_: While this explains the platform and scenario, it doesn’t mention the specific regression +
    _Perhaps better_: “Flutter apps fail to launch in debug mode when compiled with Visual Studio 17.1.0” diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/Quality-Assurance.md b/novelforge-project/agent-workspace/flutter/docs/releases/Quality-Assurance.md new file mode 100644 index 0000000000000000000000000000000000000000..f3f589325a6d3abb517e9f19058232dc21d1179f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/Quality-Assurance.md @@ -0,0 +1,29 @@ +With each beta we need to test that there are no regressions. We have lots of automated tests, but sometimes the thing that breaks is something we hadn't thought to test (or haven't figured out how to test) and so human testing is important! + +## When to test betas + +We announce betas on our Discord (see the [Chat](../contributing/Chat.md) page for the invite link), in the #releases channel, about once a month. + +## How to get a beta build + +When a beta build is announced, switch to the beta channel: + +> `flutter channel beta && flutter upgrade` + +If you get a `git` error, then you probably have a contributor checkout of Flutter. Use git instead: + +> `git fetch upstream/beta && git checkout beta` + +Either way, check that everything is as you expect: + +> `flutter --version` + +It should specify the version number that you are testing. + +## How to test a beta build + +This is the easiest part: just use it! Test it on your projects, try running demos, try doing things you depend on normally. + +Tell others who are testing the beta branch what you're doing in #quality-assurance on Discord! + +In time, we will collect some specific things to try out here. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/Release-process.md b/novelforge-project/agent-workspace/flutter/docs/releases/Release-process.md new file mode 100644 index 0000000000000000000000000000000000000000..e74dc198b54408f1128933175900538cd72b2d0c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/Release-process.md @@ -0,0 +1,81 @@ +# Release Process + +This page documents the processes involved with creating new Flutter releases. If you're interested in learning more about why certain branch points are chosen, or how releases are built, continue reading. If you're looking for the current release info, see the appendix at the bottom. + +## Creating new branches + +Flutter's has [a list of candidate branches](https://github.com/flutter/flutter/branches/all?query=flutter-), following the format of `flutter-X.Y-candidate.Z`. These are created whenever Flutter is rolled into Google's internal systems. For Googlers, see go/flutter-life-of-a-pr. Generally, these branches are created every few days, and stabilized so they don't break Google tests (such as reverting commits with breakages). + +## Selecting a candidate branch + +At the start of every month, Flutter aims to ship a new beta to users. We prefer picking the most recent candidate branches for betas, but there are some things we check for: +1. Dart version is ok to ship. + + A. Verify the version has been rolled and verified in Google's internal codebase + + B. Dart team is ok with shipping this release + +2. No risky changes (such as large scale changes being in progress on the branch) +3. Timing makes sense + A. For betas that will be promoted to stable, announcements are sent to contributors about the cutoff date. A beta may be held to ensure the cut off date has had a branch point + +## Conducting releases + +[Conductor](https://github.com/flutter/flutter/tree/main/dev/conductor) is a release tool written in Dart to drive Flutter releases. It's the source of truth for what's needed to ship a release. Generally, it can promote candidate branches to betas, betas to stable, and hotfix releases. It handles the nuances of git, such as pushes, cherrypicks, and tagging, and the complexities of Flutter, such as rolling and release infra. + +A Flutter release is very similar to what would be seen on the master branch, with some exceptions: +1. Ensure all builds and tests are green +2. Mac engine binaries are codesigned with a flutter.dev account +3. [Versions are tagged](https://github.com/flutter/flutter/tags) + + A. Stable follows the format of `X.Y.Z` + + B. Beta follows the format of `X.Y.Z-M.N.pre`, where M=number of candidate branches since last beta, and N=number of hotfixes since branching + +4. Engine artifacts are packaged and published to flutter.dev +5. api.flutter.dev is updated with the latest docs + +### Release Process + +Prework: Ensure Flutter's release infrastructure is branched for the current version. + +1. Apply any Dart cherry-picks to the Dart branch +2. Roll Dart into [flutter/engine](https://github.com/flutter/engine) +3. Apply any engine cherry-picks +4. Verify all engine builds are green +5. Sign engine binaries +6. Roll engine in [flutter/flutter](https://github.com/flutter/flutter) +7. Apply any framework CPs +8. Verify all framework tests are green +9. Push release to the beta or stable branch, and tag it + + A. This then triggers our packaging builders to update the website + +### Hot-fixing releases + +[Cherry-pick requests are triaged](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22cp%3A+review%22), and determined if they need a hot-fix. Features are not permitted to be hot-fixed into a release. Approved CP requests are then included in the weekly hot-fix. + +Hot-fixes follow the same release process. + +## FAQ + +### What is packaging? + +Packaging is the process of creating an offline zip that includes everything needed to run flutter. Generally, it's a git checkout with `flutter precache` run. + +### What version strategy does Flutter use? + +Flutter does not use semver. Generally, our increments happen based on time intervals. Z is incremented whenever we ship a weekly hotfix. + +### Why do releases require a force push? + +Since `stable` and `beta` are branches, new Y releases require a force push. This is due to us not merging the release branch back into main. + +## See also + +- [Flutter Cherrypick Process](Flutter-Cherrypick-Process.md) +- [Quality Assurance](Quality-Assurance.md) +- [Flutter build release channels](Flutter-build-release-channels.md) +- [Release versioning](Release-versioning.md) +- [SDK Releases](https://docs.flutter.dev/development/tools/sdk/releases?tab=linux) +- [Where's my Commit?](Where's-my-commit.md) diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/Release-versioning.md b/novelforge-project/agent-workspace/flutter/docs/releases/Release-versioning.md new file mode 100644 index 0000000000000000000000000000000000000000..242ea254920cd2684f229b85fad086f95107584c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/Release-versioning.md @@ -0,0 +1,25 @@ +### Stable (example: 3.3.0) +Flutter releases are identified by a modified [CalVer](https://calver.org/) scheme. + +X: Major - Incremented when the product team decides there are features impactful enough to increment this value. + +Y: Minor - Incremented on a monthly basis. +- Example: Flutter 3.0.0 shipped May 2022, meaning an August 2022 release would put the Flutter version at 3.3.0 as it is 3 months after the last stable release. + +Z: Patch - Incremented whenever a hotfix is applied to the current stable release. +### Beta (example: 3.3.0-5.0.pre) +X: Major - Same as above + +Y: Minor - Same as above + +Z: Reserved - This number is always 0. + +M: Branch Identifier - When bringing the repository into Google3, we ensure that commits do not break tests. Once testing is complete and changes have been brought in to Google3, we create a branch based on the current snapshot that has passed all tests. These snapshots are named flutter-X.Y-candidate.M + +N: Patch - Incremented whenever a hotfix is applied to the beta release. + +Pre: pre-release - Identifies the release as a beta. + +### Tagging Releases +Each release is tagged during the release process. These tags are a snapshot of the repository at a specific commit. Tagged releases can be found [here](https://github.com/flutter/flutter/tags). +Example: Flutter 3.3.0 is tagged as [3.3.0](https://github.com/flutter/flutter/releases/tag/3.0.0) aliasing commit [ee4e09c](https://github.com/flutter/flutter/commit/ee4e09cce01d6f2d7f4baebd247fde02e5008851). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/Where's-my-commit.md b/novelforge-project/agent-workspace/flutter/docs/releases/Where's-my-commit.md new file mode 100644 index 0000000000000000000000000000000000000000..d22c546434eee4e3e77fc27e7e0c329373d62a56 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/Where's-my-commit.md @@ -0,0 +1,123 @@ +## Overview + +Frequently, issues will be fixed in repositories other than `flutter/flutter`. When this happens, it's common to want to know when the fix will be available in the framework. + +Other times, issues will be root-caused to a particular commit, and it's common to want to know which Flutter versions are afflicted by the issue. + +This page outlines the current process for determining that information. + +## Process + +### Finding the Dart SDK commit contained in Engine commit X + +To find out which Dart SDK sha is contained in a particular commit of the Flutter engine: + +1. Let the engine commit be _ENGINE_COMMIT_ + +1. Navigate to https://github.com/flutter/engine/blob/${ENGINE_COMMIT}/DEPS#L51 and search for the value corresponding to the _'dart_revision'_ key. + +*** + +### Finding the versions that contain Framework commit X + +To find the published Flutter versions that contain any given commit in `flutter/flutter`: + +1. Navigate to the page for that commit. You can do this by either: + - clicking on the merged commit on a PR page + + merge commit message + + - clicking on the commit from https://github.com/flutter/flutter/commits + - constructing the URL manually: the URL format is `https://github.com/flutter/flutter/commit/`. + +1. Look in the lower left corner of the commit description box for a list of version tags. For example: + + Versions + + The list of versions here is comprehensive (it lists every individual version that contains the commit). + + If there are no versions listed there, it means that this commit has not yet been published and exists only on master. + (We [no longer publish to the dev channel](https://medium.com/flutter/whats-new-in-flutter-2-8-d085b763d181#34c4), so this is + quite common if there has not been a beta released recently.) + + If there are too many version tags to display cleanly, GitHub hides them behind an ellipsis. For example: + + Too many version tags get hidden + + Clicking on that ellipsis will expand the list out to show all version tags that contain the commit. For example: + + See all the version tags + +*** + +### Finding the Framework commit that contains Engine commit X + +To find out when a given engine change rolled into the framework: + +1. Find the engine PR that corresponds to your desired commit. For example, for commit [7292d47](https://github.com/flutter/engine/commit/7292d47e615aff38180c8a4c1e65091325b6aae7), the corresponding PR is [flutter/engine#11206](https://github.com/flutter/engine/pull/11206). + + If the commit in question does not have a corresponding PR (most commonly seen with Dart rolls), then use the newest commit _before_ your desired engine commit that has a corresponding PR as a proxy. + + Once you've identified an engine PR, navigate to that PR. + +1. Somewhere in the comment stream for the PR (usually at or near the bottom), there will be a cross-referenced "_Roll engine <commit>..<commit>_" link with a "Merged" badge to the right of it. For example: + + The commit at which it rolled into the framework + + That was the PR in which this engine commit merged into the framework. Click on that link. + +1. Near the bottom of the comment stream for the framework PR will be a line that says: + + "_<user> merged commit <commit>_" + + Usually, the user will be "_engine-flutter-autoroll_". Click on the commit sha to navigate to the commit. + +1. The full commit sha is contained in the URL. It's also listed on the page: + + The commit sha + +1. To find the published Flutter versions that contain this commit, follow the process above for "Finding the versions that contain Framework commit X". + +*** + +### Finding the Engine commit that contains Dart SDK commit X + +To find out when a given Dart SDK change rolled into the engine: + +1. If you're starting from the Dart review CL (e.g. https://dart-review.googlesource.com/c/sdk/+/113126), wait until the CL has merged. You can see the status of a CL in the upper left corner of the page. For example: + + Merged CL + +1. The merged badge then hyperlinks to the commit where it was merged. The text says "_Merged as <commit>_", and the commit sha is a hyperlink. Click on that link. + +1. The commit page gives you the full sha of the Dart SDK commit. For example: + + Dart SDK commit sha + +1. Note the time (and the timezone!) that the commit landed. For example: + + Commit timestamp + +1. Navigate to https://github.com/flutter/engine/commits, and look for commits that landed shortly after the timestamp in question, where the commit description is "_Roll src/third_party/dart ..._". These commits are "Dart SDK roll" commits. + + For each commit, GitHub says "_<author> committed <time reference>_" (e.g. "_skia-flutter-autoroll committed 8 hours ago_"). If you hover over the time reference, a tooltip shows you the exact commit time. + + **Important**: be sure to adjust for timezones when comparing times between the Dart SDK commit and the time when the engine commits landed. + +1. Once you've found a candidate commit, click on the hyperlink of the commit description to go to the commit details page. The full commit description will list what Dart SDK comitts were contained in the roll. For example: + + Commits contained in the Dart SDK roll + +1. Keep searching newer Dart SDK roll commits until you find the roll that contains your desired Dart SDK commit. This roll commit is the engine commit that contains your Dart SDK change. + +1. To find out when this engine commit landed in the framework, follow the process above for "Finding the Framework commit that contains Engine commit X". + +*** + +### Finding the Skia commit that contains Dart SDK commit X + +To find out when a given Skia commit rolled into the engine, follow the same process as above for "Finding the Engine commit that contains Dart SDK commit X", with the following differences: + +1. The review CLs will have URLs of the form `https://skia-review.googlesource.com/c/skia/+/` instead of `https://dart-review.googlesource.com/c/sdk/+/`. + +1. The roll commits will start with "_Roll src/third_party/skia ..._" instead of "_Roll src/third_party/dart ..._". diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/archive/Commits-Between-1.2.1-and-1.5.4.md b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Commits-Between-1.2.1-and-1.5.4.md new file mode 100644 index 0000000000000000000000000000000000000000..43c52cf58c418190a0fe5b8095b7659ed5aed595 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Commits-Between-1.2.1-and-1.5.4.md @@ -0,0 +1,1961 @@ +## Changes in `flutter/flutter` from `8661d8` to `b593f5` +| Author | Commit | +|--------|--------| +|Keerti Parthasarathy |Add track-widget-creation flag to attach command ([#31262](https://github.com/flutter/flutter/issues/31262)) * Add track-widget-creation flag to attach command * use the flag| +|Justin McCandless |Text field scroll physics ([#31088](https://github.com/flutter/flutter/issues/31088)) TextField and CupertinoTextField can now specify scrollPhysics. Cupertino defaults to bouncing now.| +|MH Johnson |Revert "[Material] Update slider and slider theme with new sizes, shapes, and color mappings ([#30390](https://github.com/flutter/flutter/issues/30390))" ([#31339](https://github.com/flutter/flutter/issues/31339)) This reverts commit b1039f0f1b761b0e4ec1825eed269b10af6104d4. (This is a temporary revert while some of our customers deal with the breaking changes involved.)| +|Ben Konyi |Fixed flutter_attach_test not respecting authentication codes ([#31321](https://github.com/flutter/flutter/issues/31321))| +|Ben Konyi |Fixed failing tests caused by introduction of authentication codes ([#31315](https://github.com/flutter/flutter/issues/31315))| +|Christopher Fujino |Add flutter attach documentation ([#31279](https://github.com/flutter/flutter/issues/31279)) * add attach.md document| +|Ben Konyi |Updated flutter_driver to support auth codes ([#31310](https://github.com/flutter/flutter/issues/31310))| +|Ben Konyi |Added support for authentication codes for the VM service. ([#30857](https://github.com/flutter/flutter/issues/30857)) * Added support for authentication codes for the VM service. Previously, a valid web socket connection would use the following URI: `ws://127.0.0.1/ws` Now, by default, the VM service requires a connection to be made with a URI similar to the following: `ws://127.0.0.1:8181/Ug_U0QVsqFs=/ws` where `Ug_U0QVsqFs` is an authentication code generated and shared by the service. This behavior can be disabled with the `--disable-service-auth-codes` flag.| +|Devon Carew |add daemon.log to the daemon spec ([#31273](https://github.com/flutter/flutter/issues/31273)) * add daemon.log to the daemon spec * mention use in flutter run --machine| +|stuartmorgan |Add desktop workflows to doctor ([#31283](https://github.com/flutter/flutter/issues/31283)) The 'doctor' check to determine if any devices can be listed for the device should consider desktop workflows as well. This has no effect unless the environment variable to enable desktop device listing is set.| +|Jonah Williams |Add flutter run support for linux and windows ([#31229](https://github.com/flutter/flutter/issues/31229))| +|Jonah Williams |initial work on coverage generating script for tool ([#29494](https://github.com/flutter/flutter/issues/29494))| +|Jonah Williams |add --force flag to precache ([#31278](https://github.com/flutter/flutter/issues/31278))| +|chunhtai <47866232+chunhtai@users.noreply.github.com>|fix issue 12999: Make assets available during tests ([#31207](https://github.com/flutter/flutter/issues/31207))| +|Jonah Williams |pass track widget creation flag through to build script ([#31277](https://github.com/flutter/flutter/issues/31277))| +|Anthony |[Material] Update slider and slider theme with new sizes, shapes, and color mappings ([#30390](https://github.com/flutter/flutter/issues/30390)) This PR makes a number of changes to the visual appearance of material sliders: Sizes/Shapes ** enabled thumb radius from 6 to 10 ** disabled thumb radius from 4 to 10 with no gap ** default track shape is a rounded rect rather than a rect ** Colors ** all of the colors now use the new color scheme ** overlay opacity has been reduce from 16% to 12% ** value indicator text color now respects the indicator it is on by using onPrimary ** disabledThumb color no respects the surface it is on by using onSurface The slider theme is also now constructed consistently with other theme objects within the ThemeData. By default, all values are null, and have default values that are resolved in the slider itself, rather than in the slider theme.| +|Efthymis Sarmpanis |Adds Tap Header Feature to ExpansionPanelList ([#29390](https://github.com/flutter/flutter/issues/29390))| +|engine-flutter-autoroll |Roll engine 06fea14e5800..4b9966f5cb41 (3 commits) ([#31271](https://github.com/flutter/flutter/issues/31271)) https://github.com/flutter/engine/compare/06fea14e5800...4b9966f5cb41 git log 06fea14e5800c35a4fc4dd10cc31b997f1be81e9..4b9966f5cb412a73fa50462b3aee9082f436a62a --no-merges --oneline 4b9966f5c Add an adjustment to the line width check in LineBreaker::addWordBreak ([flutter/engine#8623](https://github.com/flutter/engine/issues/8623)) 60bb866ce Roll src/third_party/skia a94670bd08cd..2c2240f66805 (2 commits) ([flutter/engine#8632](https://github.com/flutter/engine/issues/8632)) a144f17ae Tight Paragraph Width ([flutter/engine#8530](https://github.com/flutter/engine/issues/8530)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (cbracken@google.com), and stop the roller if necessary.| +|Devon Carew |remove the unused hintMessage and hintId fields from the reload results ([#31267](https://github.com/flutter/flutter/issues/31267))| +|engine-flutter-autoroll |06fea14e5 Glitchiness with Tab Characters ([flutter/engine#8591](https://github.com/flutter/engine/issues/8591)) ([#31265](https://github.com/flutter/flutter/issues/31265)) https://github.com/flutter/engine/compare/b6787096a2d3...06fea14e5800 git log b6787096a2d3d0365f03f4cfdb70b932e4e5bae3..06fea14e5800c35a4fc4dd10cc31b997f1be81e9 --no-merges --oneline 06fea14e5 Glitchiness with Tab Characters ([flutter/engine#8591](https://github.com/flutter/engine/issues/8591)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (cbracken@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |b6787096a Roll src/third_party/skia 847d55be4e62..a94670bd08cd (1 commits) ([flutter/engine#8631](https://github.com/flutter/engine/issues/8631)) ([#31260](https://github.com/flutter/flutter/issues/31260)) https://github.com/flutter/engine/compare/3e6dc02ad62e...b6787096a2d3 git log 3e6dc02ad62ef9fa02660f5fb0bb114414e282d4..b6787096a2d3d0365f03f4cfdb70b932e4e5bae3 --no-merges --oneline b6787096a Roll src/third_party/skia 847d55be4e62..a94670bd08cd (1 commits) ([flutter/engine#8631](https://github.com/flutter/engine/issues/8631)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (cbracken@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |3e6dc02ad Roll src/third_party/skia ced2b79d00f9..847d55be4e62 (3 commits) ([flutter/engine#8630](https://github.com/flutter/engine/issues/8630)) ([#31251](https://github.com/flutter/flutter/issues/31251)) https://github.com/flutter/engine/compare/54f7c51339ae...3e6dc02ad62e git log 54f7c51339ae7d86a983b5850b14dafe4e2bd90a..3e6dc02ad62ef9fa02660f5fb0bb114414e282d4 --no-merges --oneline 3e6dc02ad Roll src/third_party/skia ced2b79d00f9..847d55be4e62 (3 commits) ([flutter/engine#8630](https://github.com/flutter/engine/issues/8630)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (cbracken@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |54f7c5133 Roll src/third_party/skia 14c90c1ca218..ced2b79d00f9 (1 commits) ([flutter/engine#8629](https://github.com/flutter/engine/issues/8629)) ([#31240](https://github.com/flutter/flutter/issues/31240)) https://github.com/flutter/engine/compare/70068706d0ee...54f7c51339ae git log 70068706d0ee3bc9847632c4d0e467fba49271f8..54f7c51339ae7d86a983b5850b14dafe4e2bd90a --no-merges --oneline 54f7c5133 Roll src/third_party/skia 14c90c1ca218..ced2b79d00f9 (1 commits) ([flutter/engine#8629](https://github.com/flutter/engine/issues/8629)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (cbracken@google.com), and stop the roller if necessary.| +|Jonah Williams |Add run capability for macOS target ([#31218](https://github.com/flutter/flutter/issues/31218))| +|engine-flutter-autoroll |70068706d Allow building without python2 ([flutter/engine#8605](https://github.com/flutter/engine/issues/8605)) ([#31239](https://github.com/flutter/flutter/issues/31239)) https://github.com/flutter/engine/compare/8b5a50c0df76...70068706d0ee git log 8b5a50c0df768743dd9858cceb92d1d1de44c35e..70068706d0ee3bc9847632c4d0e467fba49271f8 --no-merges --oneline 70068706d Allow building without python2 ([flutter/engine#8605](https://github.com/flutter/engine/issues/8605)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (cbracken@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 876c4c339064..8b5a50c0df76 (4 commits) ([#31237](https://github.com/flutter/flutter/issues/31237)) https://github.com/flutter/engine/compare/876c4c339064...8b5a50c0df76 git log 876c4c339064ed321f37fba61422194d84cbfdb7..8b5a50c0df768743dd9858cceb92d1d1de44c35e --no-merges --oneline 8b5a50c0d Test saving compilation traces. ([flutter/engine#8618](https://github.com/flutter/engine/issues/8618)) 7d3caf895 Avoid leaking the VM in runtime_unittests and update failing tests. ([flutter/engine#8626](https://github.com/flutter/engine/issues/8626)) 91b71070f Revert &[#34](https://github.com/flutter/flutter/issues/34);Add a unit test for PhysicalShapeLayer ([#8616](https://github.com/flutter/flutter/issues/8616))&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8627](https://github.com/flutter/engine/issues/8627)) 8b667b017 Add a unit test for PhysicalShapeLayer ([flutter/engine#8616](https://github.com/flutter/engine/issues/8616)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (cbracken@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 76794745b676..876c4c339064 (4 commits) ([#31231](https://github.com/flutter/flutter/issues/31231)) https://github.com/flutter/engine/compare/76794745b676...876c4c339064 git log 76794745b6764246cffafb237182f7fafeac41f8..876c4c339064ed321f37fba61422194d84cbfdb7 --no-merges --oneline 876c4c339 Assert that all VM launches in the process have the same opinion on whether the VM should be leaked in the process. ([flutter/engine#8622](https://github.com/flutter/engine/issues/8622)) 72c84c287 Revert &[#34](https://github.com/flutter/flutter/issues/34);Roll src/third_party/dart 7b9ab9f353..714a082a5d (7 commits)&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8624](https://github.com/flutter/engine/issues/8624)) f017fe74a Avoid manually shutting down engine managed isolates. ([flutter/engine#8621](https://github.com/flutter/engine/issues/8621)) 80e934e32 Roll src/third_party/dart 7b9ab9f353..714a082a5d (7 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (cbracken@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 523a9a9adde9..76794745b676 (6 commits) ([#31230](https://github.com/flutter/flutter/issues/31230)) https://github.com/flutter/engine/compare/523a9a9adde9...76794745b676 git log 523a9a9adde96d22c801eac59f9f6db3d2a79a30..76794745b6764246cffafb237182f7fafeac41f8 --no-merges --oneline 76794745b Roll src/third_party/skia 6f9047027be3..14c90c1ca218 (5 commits) ([flutter/engine#8619](https://github.com/flutter/engine/issues/8619)) d8aa6bca1 Fix typo in comment ([flutter/engine#8617](https://github.com/flutter/engine/issues/8617)) 8ff631f3d Rename flow namespace to flutter ([flutter/engine#8615](https://github.com/flutter/engine/issues/8615)) 0534b6ae5 Roll src/third_party/dart bc99f1ca28..7b9ab9f353 (5 commits) b767e4d3c Roll src/third_party/skia 5155e09d1466..6f9047027be3 (5 commits) ([flutter/engine#8613](https://github.com/flutter/engine/issues/8613)) c5d1ba916 Remove call to SkFont::setLinearMetrics ([flutter/engine#8612](https://github.com/flutter/engine/issues/8612)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (cbracken@google.com), and stop the roller if necessary.| +|Jonah Williams |Allow disabling all fingerprint caches via environment variable ([#31171](https://github.com/flutter/flutter/issues/31171))| +|Jonah Williams |Disable macOS integration tests ([#31216](https://github.com/flutter/flutter/issues/31216))| +|Gary Qian |Use full height of the glyph for caret height on Android v2 ([#31210](https://github.com/flutter/flutter/issues/31210)) Will cause golden and Scuba changes. Caret will become taller and shift upwards by 2 pixels.| +|xster |Commit a navigator.pop as soon as the back swipe is lifted ([#30422](https://github.com/flutter/flutter/issues/30422))| +|xster |Add some more cupertino icons ([#30946](https://github.com/flutter/flutter/issues/30946))| +|xster |Clarify various CupertinoTabView docs ([#31109](https://github.com/flutter/flutter/issues/31109))| +|engine-flutter-autoroll |Roll engine fdd427241b77..523a9a9adde9 (10 commits) ([#31213](https://github.com/flutter/flutter/issues/31213)) https://github.com/flutter/engine/compare/fdd427241b77...523a9a9adde9 git log fdd427241b7790a1ad86794725b311245ed3b470..523a9a9adde96d22c801eac59f9f6db3d2a79a30 --no-merges --oneline 523a9a9ad Add FLEPluginRegistry for macOS ([flutter/engine#8611](https://github.com/flutter/engine/issues/8611)) dd9dcaf9a [fuchsia] Fix SceneUpdateContext for new PaintContext field ([flutter/engine#8608](https://github.com/flutter/engine/issues/8608)) 0e27e0fc3 Pipe Z bounds from ViewportMetrics to Flow ([flutter/engine#8583](https://github.com/flutter/engine/issues/8583)) f62ab83ba Roll src/third_party/dart f0da03ca36..bc99f1ca28 (1 commits) 7b38aef03 Roll src/third_party/skia 33906ad1e26f..5155e09d1466 (4 commits) ([flutter/engine#8609](https://github.com/flutter/engine/issues/8609)) b0dedbd60 Roll src/third_party/dart d9c40462c2..f0da03ca36 (1 commits) f88ba6e43 Roll src/third_party/skia e88d4382e1cf..33906ad1e26f (1 commits) ([flutter/engine#8604](https://github.com/flutter/engine/issues/8604)) 53c0905b1 Roll src/third_party/skia 652b007a4cbb..e88d4382e1cf (4 commits) ([flutter/engine#8603](https://github.com/flutter/engine/issues/8603)) 4266f8583 Add desktop shell unittests to test script ([flutter/engine#8600](https://github.com/flutter/engine/issues/8600)) 8156268f0 Roll src/third_party/dart 8e73b3c006..d9c40462c2 (4 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (cbracken@google.com), and stop the roller if necessary.| +|Jonah Williams |Add desktop projects and build commands (experimental) ([#31205](https://github.com/flutter/flutter/issues/31205))| +|Todd Volkert |Add breadcrumb to docs ([#31178](https://github.com/flutter/flutter/issues/31178))| +|Todd Volkert |Rename Border.uniform() -> Border.fromSide() ([#30792](https://github.com/flutter/flutter/issues/30792))| +|engine-flutter-autoroll |Roll engine 388124f948e6..fdd427241b77 (3 commits) ([#31179](https://github.com/flutter/flutter/issues/31179)) https://github.com/flutter/engine/compare/388124f948e6...fdd427241b77 git log 388124f948e685fd545c4363bcecbaeae911b4c5..fdd427241b7790a1ad86794725b311245ed3b470 --no-merges --oneline fdd427241 Roll src/third_party/skia 70ed05e53ad2..652b007a4cbb (1 commits) ([flutter/engine#8601](https://github.com/flutter/engine/issues/8601)) 3b016106c Check that TransformLayer has a finite matrix ([flutter/engine#8585](https://github.com/flutter/engine/issues/8585)) 4805d72a4 Implement StandardMethodCodec for C&[#43](https://github.com/flutter/flutter/issues/43);&[#43](https://github.com/flutter/flutter/issues/43); shells ([flutter/engine#8598](https://github.com/flutter/engine/issues/8598)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |388124f94 Roll src/third_party/skia db13d3874846..70ed05e53ad2 (6 commits) ([flutter/engine#8599](https://github.com/flutter/engine/issues/8599)) ([#31170](https://github.com/flutter/flutter/issues/31170)) https://github.com/flutter/engine/compare/b819b62bed3f...388124f948e6 git log b819b62bed3ffedf729ac1daddcc8bf7885e9982..388124f948e685fd545c4363bcecbaeae911b4c5 --no-merges --oneline 388124f94 Roll src/third_party/skia db13d3874846..70ed05e53ad2 (6 commits) ([flutter/engine#8599](https://github.com/flutter/engine/issues/8599)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |b819b62be Variant type for C++ client wrapper ([flutter/engine#8592](https://github.com/flutter/engine/issues/8592)) ([#31168](https://github.com/flutter/flutter/issues/31168)) https://github.com/flutter/engine/compare/db36d28ed074...b819b62bed3f git log db36d28ed074b8b4f018ce6f7cb93b4e8ffcf456..b819b62bed3ffedf729ac1daddcc8bf7885e9982 --no-merges --oneline b819b62be Variant type for C&[#43](https://github.com/flutter/flutter/issues/43);&[#43](https://github.com/flutter/flutter/issues/43); client wrapper ([flutter/engine#8592](https://github.com/flutter/engine/issues/8592)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |db36d28ed Roll src/third_party/dart a8f3a5dae6..8e73b3c006 (92 commits) ([#31163](https://github.com/flutter/flutter/issues/31163)) https://github.com/flutter/engine/compare/c0ee647ca422...db36d28ed074 git log c0ee647ca4226fcb38a5af178a97ce8ba9129184..db36d28ed074b8b4f018ce6f7cb93b4e8ffcf456 --no-merges --oneline db36d28ed Roll src/third_party/dart a8f3a5dae6..8e73b3c006 (92 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Gary Qian |Revert "Use full height of the glyph for caret height on Android" ([#31159](https://github.com/flutter/flutter/issues/31159)) * Revert "Use full height of the glyph for caret height on Android ([#30991](https://github.com/flutter/flutter/issues/30991))" This reverts commit 96e1fc9c34a2c3a11e0dd98ceccb6fbea7ce3460.| +|engine-flutter-autoroll |Roll engine 7af3f2b9e7c5..c0ee647ca422 (2 commits) ([#31160](https://github.com/flutter/flutter/issues/31160)) https://github.com/flutter/engine/compare/7af3f2b9e7c5...c0ee647ca422 git log 7af3f2b9e7c5f911ef4b1cff37aa5088fad6dbf5..c0ee647ca4226fcb38a5af178a97ce8ba9129184 --no-merges --oneline c0ee647ca Roll src/third_party/skia 68aeec07de4a..db13d3874846 (16 commits) ([flutter/engine#8595](https://github.com/flutter/engine/issues/8595)) 28a46d51a Composite Embedded Views with the correct GrContext The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 7d1da567434a..7af3f2b9e7c5 (2 commits) ([#31153](https://github.com/flutter/flutter/issues/31153)) https://github.com/flutter/engine/compare/7d1da567434a...7af3f2b9e7c5 git log 7d1da567434a820853ed6fae1f6ed65b9de5ba4f..7af3f2b9e7c5f911ef4b1cff37aa5088fad6dbf5 --no-merges --oneline 7af3f2b9e Roll buildroot to ce7b5c786a12927c9e0b4543af267d48c52e0b3a ([flutter/engine#8593](https://github.com/flutter/engine/issues/8593)) d2eeceb94 Roll src/third_party/skia 6c431d52020c..68aeec07de4a (7 commits) ([flutter/engine#8590](https://github.com/flutter/engine/issues/8590)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Sam Rawlins |Bump dartdoc to 0.28.3+2 ([#31148](https://github.com/flutter/flutter/issues/31148)) This version of dartdoc properly escapes fenced code block "info strings."| +|Jonah Williams |Fuchsia step 1: add SDK version file and artifact download ([#31073](https://github.com/flutter/flutter/issues/31073))| +|Gary Qian |Use full height of the glyph for caret height on Android ([#30991](https://github.com/flutter/flutter/issues/30991))| +|Dima Rostopira |Add sorting to flutter version command ([#31064](https://github.com/flutter/flutter/issues/31064))| +|engine-flutter-autoroll |Roll engine 9970fb550071..7d1da567434a (2 commits) ([#31129](https://github.com/flutter/flutter/issues/31129)) https://github.com/flutter/engine/compare/9970fb550071...7d1da567434a git log 9970fb5500710471c031cb86f899bfc3f4a6bafd..7d1da567434a820853ed6fae1f6ed65b9de5ba4f --no-merges --oneline 7d1da5674 Roll src/third_party/skia 5bee533ef3a3..6c431d52020c (1 commits) ([flutter/engine#8589](https://github.com/flutter/engine/issues/8589)) d8a2a55a6 Roll src/third_party/skia 9d10206b7add..5bee533ef3a3 (4 commits) ([flutter/engine#8587](https://github.com/flutter/engine/issues/8587)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Greg Spencer |Update keycodes, fix a comment. ([#30938](https://github.com/flutter/flutter/issues/30938)) Updates the keycodes by regenerating them using the script, and fixed a comment in the template to conform to style.| +|engine-flutter-autoroll |9970fb550 Roll src/third_party/skia d51d00745b1d..9d10206b7add (1 commits) ([flutter/engine#8586](https://github.com/flutter/engine/issues/8586)) ([#31106](https://github.com/flutter/flutter/issues/31106)) https://github.com/flutter/engine/compare/0575a9b46e99...9970fb550071 git log 0575a9b46e994170ce1290f0025623138411dd13..9970fb5500710471c031cb86f899bfc3f4a6bafd --no-merges --oneline 9970fb550 Roll src/third_party/skia d51d00745b1d..9d10206b7add (1 commits) ([flutter/engine#8586](https://github.com/flutter/engine/issues/8586)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Alexander Aprelev |Download and handle product version of flutter patched sdk ([#31063](https://github.com/flutter/flutter/issues/31063)) * Support release/debug flavors of flutter_patched_sdk * Use [anyNamed] instead of [any] for mocking named arguments * Fix use of local engine in release mode| +|Tom Robiquet |Added opacity to cupertino switch when disabled ([#29451](https://github.com/flutter/flutter/issues/29451))| +|David Worsham |[scenic] Remove dead view_manager ref ([#31005](https://github.com/flutter/flutter/issues/31005))| +|engine-flutter-autoroll |0575a9b46 Roll src/third_party/skia bf15b6676843..d51d00745b1d (6 commits) ([flutter/engine#8584](https://github.com/flutter/engine/issues/8584)) ([#31098](https://github.com/flutter/flutter/issues/31098)) https://github.com/flutter/engine/compare/324b8403e8a6...0575a9b46e99 git log 324b8403e8a67db7376f85ed29e0a5792174cca0..0575a9b46e994170ce1290f0025623138411dd13 --no-merges --oneline 0575a9b46 Roll src/third_party/skia bf15b6676843..d51d00745b1d (6 commits) ([flutter/engine#8584](https://github.com/flutter/engine/issues/8584)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Jonah Williams |Add null checks to coverage collection ([#31092](https://github.com/flutter/flutter/issues/31092))| +|xster |Make CupertinoNavigationBarBackButton correctly return an assert error ([#30815](https://github.com/flutter/flutter/issues/30815))| +|engine-flutter-autoroll |Roll engine c3824f06933a..324b8403e8a6 (13 commits) ([#31082](https://github.com/flutter/flutter/issues/31082)) https://github.com/flutter/engine/compare/c3824f06933a...324b8403e8a6 git log c3824f06933af54b54d1094594c0159828dd1a45..324b8403e8a67db7376f85ed29e0a5792174cca0 --no-merges --oneline 324b8403e Remove the flutter_aot GN argument. ([flutter/engine#8581](https://github.com/flutter/engine/issues/8581)) 571ce945b Roll src/third_party/skia 1875353110d1..bf15b6676843 (8 commits) ([flutter/engine#8582](https://github.com/flutter/engine/issues/8582)) b7d484e4f Roll src/third_party/skia 1fe0b86f17f3..1875353110d1 (5 commits) ([flutter/engine#8580](https://github.com/flutter/engine/issues/8580)) 73f455a3c Roll src/third_party/skia e1c5ea6779f4..1fe0b86f17f3 (1 commits) ([flutter/engine#8579](https://github.com/flutter/engine/issues/8579)) 42d06b370 Roll src/third_party/skia 3611ee1bb157..e1c5ea6779f4 (3 commits) ([flutter/engine#8578](https://github.com/flutter/engine/issues/8578)) eb575e24a Roll src/third_party/skia c9f55de2ed39..3611ee1bb157 (1 commits) ([flutter/engine#8577](https://github.com/flutter/engine/issues/8577)) 40473d39a Roll src/third_party/skia b5e57e9a3d0f..c9f55de2ed39 (1 commits) ([flutter/engine#8576](https://github.com/flutter/engine/issues/8576)) dc952bcd4 Roll src/third_party/skia 5c6b565bdfb9..b5e57e9a3d0f (1 commits) ([flutter/engine#8575](https://github.com/flutter/engine/issues/8575)) 14a1db2b6 Roll src/third_party/skia 12cf258193dc..5c6b565bdfb9 (1 commits) ([flutter/engine#8573](https://github.com/flutter/engine/issues/8573)) dcd0209bd Roll src/third_party/skia 33233a09fef8..12cf258193dc (1 commits) ([flutter/engine#8572](https://github.com/flutter/engine/issues/8572)) e0b9bc18f Roll src/third_party/skia 69f54f8f0f22..33233a09fef8 (1 commits) ([flutter/engine#8571](https://github.com/flutter/engine/issues/8571)) 9f9d5d6da Roll src/third_party/skia 990bfc785891..69f54f8f0f22 (1 commits) ([flutter/engine#8570](https://github.com/flutter/engine/issues/8570)) 7c7df0d58 Add null check in FLETextInputPlugin ([flutter/engine#8538](https://github.com/flutter/engine/issues/8538)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Justin McCandless |2d transforms UX improvements ([#30932](https://github.com/flutter/flutter/issues/30932)) Small usability fixes for pan and zoom demo. Title and instruction dialog.| +|liyuqian |Allow profile widget builds in profile mode ([#30990](https://github.com/flutter/flutter/issues/30990)) ## Description Previously, such function is only available in the debug mode. But the performance information is very noisy in debug mode with JIT. I feel that such function is as important and useful as the performance overlay and the `--trace-skia` option for the GPU thread. So we should give it the same ability to run in both profile and debug mode. I've tested it using flutter_gallery in the profile mode. There's no observable difference in the performance overlay between toggling widget build profiling. ## Related Issues https://github.com/flutter/flutter/issues/30984| +|Dan Field |Check that ErrorWidget.builder is not modified after test ([#30898](https://github.com/flutter/flutter/issues/30898))| +|Jonah Williams |make flutterProject option of CoverageCollector optional ([#31074](https://github.com/flutter/flutter/issues/31074))| +|liyuqian |Fix the warning test by checking stderr ([#30997](https://github.com/flutter/flutter/issues/30997)) Previously, I used the Android emulator for testing and everything seemed to work fine with stdout (if I remember correctly). But our devicelab uses real Android devices and the warnings are routed to stderr. Hence change stdout to stderr in the test.| +|Christopher Fujino |New flag to `flutter drive` to skip installing fresh app on device ([#30818](https://github.com/flutter/flutter/issues/30818)) * add a --build/--no-build flag to flutter drive command| +|engine-flutter-autoroll |Roll engine 9aa7c9a48e93..c3824f06933a (13 commits) ([#31002](https://github.com/flutter/flutter/issues/31002)) https://github.com/flutter/engine/compare/9aa7c9a48e93...c3824f06933a git log 9aa7c9a48e9342a450c3078e15c8d7923a338ede..c3824f06933af54b54d1094594c0159828dd1a45 --no-merges --oneline c3824f069 Roll src/third_party/skia e62bf561638c..990bfc785891 (2 commits) ([flutter/engine#8569](https://github.com/flutter/engine/issues/8569)) 49a72e1e4 Roll src/third_party/skia 8be917af4313..e62bf561638c (5 commits) ([flutter/engine#8568](https://github.com/flutter/engine/issues/8568)) 7292d62ef Revert Versions API ([flutter/engine#7828](https://github.com/flutter/engine/issues/7828)) 9336671a8 Revert &[#34](https://github.com/flutter/flutter/issues/34);Roll src/third_party/dart a8f3a5dae6..c2eb9a9860 (8 commits)&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8567](https://github.com/flutter/engine/issues/8567)) a54354349 Roll src/third_party/dart a8f3a5dae6..c2eb9a9860 (8 commits) 23b0e02ec Android Embedding PR29: Improve FlutterFragment construction API &[#43](https://github.com/flutter/flutter/issues/43); engine config API. ([flutter/engine#8540](https://github.com/flutter/engine/issues/8540)) e6c822db9 Roll src/third_party/skia 25071cc52b4b..8be917af4313 (6 commits) ([flutter/engine#8564](https://github.com/flutter/engine/issues/8564)) 1bb2c0cf0 Remove unused import in FlutterActivityDelegate ([flutter/engine#8563](https://github.com/flutter/engine/issues/8563)) ad04340e5 Add missing <memory> include to text_input_model.h ([flutter/engine#8562](https://github.com/flutter/engine/issues/8562)) fcd717e28 Update README.md to point to flutter.dev ([flutter/engine#8557](https://github.com/flutter/engine/issues/8557)) 501892a92 Roll src/third_party/skia 35f1c154c5e5..25071cc52b4b (7 commits) ([flutter/engine#8560](https://github.com/flutter/engine/issues/8560)) db99c86ab Roll src/third_party/skia 41476708db86..35f1c154c5e5 (1 commits) ([flutter/engine#8559](https://github.com/flutter/engine/issues/8559)) a88cd8032 Roll src/third_party/skia f74fff660084..41476708db86 (1 commits) ([flutter/engine#8558](https://github.com/flutter/engine/issues/8558)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Dan Field |Add rrect contains microbenchmark ([#30985](https://github.com/flutter/flutter/issues/30985))| +|Jonah Williams |Fix bugs in contrast guideline and improve heuristic ([#31000](https://github.com/flutter/flutter/issues/31000))| +|Jonah Williams |Make coverage, like, really fast ([#30811](https://github.com/flutter/flutter/issues/30811))| +|Jonah Williams |Revert "revert last 2 engine rolls ([#30995](https://github.com/flutter/flutter/issues/30995))" ([#30998](https://github.com/flutter/flutter/issues/30998))| +|Jonah Williams |revert last 2 engine rolls ([#30995](https://github.com/flutter/flutter/issues/30995))| +|engine-flutter-autoroll |9aa7c9a48 Export extern constants in embedder.h ([flutter/engine#8550](https://github.com/flutter/engine/issues/8550)) ([#30951](https://github.com/flutter/flutter/issues/30951)) https://github.com/flutter/engine/compare/f804c293f3ba...9aa7c9a48e93 git log f804c293f3baaec9ccec1e251293f6a3509223b8..9aa7c9a48e9342a450c3078e15c8d7923a338ede --no-merges --oneline 9aa7c9a48 Export extern constants in embedder.h ([flutter/engine#8550](https://github.com/flutter/engine/issues/8550)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 72986c39ea36..f804c293f3ba (23 commits) ([#30948](https://github.com/flutter/flutter/issues/30948)) https://github.com/flutter/engine/compare/72986c39ea36...f804c293f3ba git log 72986c39ea3669ef26d4d7d7cd0c44f513fcd117..f804c293f3baaec9ccec1e251293f6a3509223b8 --no-merges --oneline f804c293f Roll src/third_party/skia 3b60397fd35d..f74fff660084 (3 commits) ([flutter/engine#8556](https://github.com/flutter/engine/issues/8556)) 1b448e555 Roll Dart 15b11b018364ce032eae50d78fc8a52b541e2bce...a8f3a5dae6203d1064726a5953cf06a7d484249c ([flutter/engine#8555](https://github.com/flutter/engine/issues/8555)) 99259aef5 Roll src/third_party/skia 36477b49c2ef..3b60397fd35d (6 commits) ([flutter/engine#8554](https://github.com/flutter/engine/issues/8554)) f37220d40 Roll src/third_party/skia c33e6dcc700b..36477b49c2ef (8 commits) ([flutter/engine#8552](https://github.com/flutter/engine/issues/8552)) d84d204c7 Android Embedding PR30: Make FlutterView focusable so that the keyboard can interact with it. ([flutter/engine#8551](https://github.com/flutter/engine/issues/8551)) a344015e9 [fuchsia] Add flutter:: to scene_host.cc ([flutter/engine#8549](https://github.com/flutter/engine/issues/8549)) 711d8431d Roll src/third_party/skia 76e626d9bb55..c33e6dcc700b (4 commits) ([flutter/engine#8547](https://github.com/flutter/engine/issues/8547)) 82e6d6899 Eliminate unused write to local ([flutter/engine#8541](https://github.com/flutter/engine/issues/8541)) f53e477a6 Correct nullability for FlutterStandardReader ([flutter/engine#8537](https://github.com/flutter/engine/issues/8537)) c00364a6c [font_collection] Add missing semicolon ([flutter/engine#8546](https://github.com/flutter/engine/issues/8546)) ae4df6fd1 Revert &[#34](https://github.com/flutter/flutter/issues/34);Change Rect internal representation from Float32List to Float64List ([#8524](https://github.com/flutter/flutter/issues/8524))&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8545](https://github.com/flutter/engine/issues/8545)) ffdddb07e Roll src/third_party/skia 6d60534e95d8..76e626d9bb55 (1 commits) ([flutter/engine#8544](https://github.com/flutter/engine/issues/8544)) 5ac728eb6 Roll src/third_party/skia 4d657d5e894a..6d60534e95d8 (3 commits) ([flutter/engine#8543](https://github.com/flutter/engine/issues/8543)) ee462ff68 Roll src/third_party/skia 99d792276740..4d657d5e894a (1 commits) ([flutter/engine#8542](https://github.com/flutter/engine/issues/8542)) 18816c50f Roll src/third_party/skia 42280f8961fa..99d792276740 (8 commits) ([flutter/engine#8539](https://github.com/flutter/engine/issues/8539)) 892591da8 Android Embedding PR28: Report app is active to Flutter in FlutterFragment.onResume() instead of onPostResume() forwarded from Activity. ([flutter/engine#8536](https://github.com/flutter/engine/issues/8536)) 330c6c168 Use code cache dir for engine cache on API >= 21 ([#14704](https://github.com/flutter/flutter/issues/14704)). ([flutter/engine#8534](https://github.com/flutter/engine/issues/8534)) c10ae2be2 Add an option to build the GLFW shell on macOS ([flutter/engine#8531](https://github.com/flutter/engine/issues/8531)) 29aa5fca0 Roll src/third_party/skia b5c685991faa..42280f8961fa (32 commits) ([flutter/engine#8535](https://github.com/flutter/engine/issues/8535)) 0a2869e5c Added support for authentication codes for the VM service ([flutter/engine#8527](https://github.com/flutter/engine/issues/8527)) 36d2135ad Redo a fix for cull rect calculation on TransformLayers with a perspective transform ([flutter/engine#8528](https://github.com/flutter/engine/issues/8528)) 0b36d3e2f Change Rect internal representation from Float32List to Float64List ([flutter/engine#8524](https://github.com/flutter/engine/issues/8524)) b1ae0ccb7 Roll src/third_party/skia 10bf7020aa15..b5c685991faa (3 commits) ([flutter/engine#8526](https://github.com/flutter/engine/issues/8526)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Emily Fortuna |Allow mouse hover to only respond to some mouse events but not all. ([#30886](https://github.com/flutter/flutter/issues/30886)) * Allow mouse hover to only respond to some mouse events but not all.| +|chunhtai <47866232+chunhtai@users.noreply.github.com>|Fix issue 23527: Exception: RenderViewport exceeded its maximum number of layout cycles ([#30809](https://github.com/flutter/flutter/issues/30809))| +|Greg Spencer |Keep hover annotation layers in sync with the mouse detector. ([#30829](https://github.com/flutter/flutter/issues/30829)) Adds a paint after detaching/attaching hover annotations to keep the annotation layers in sync with the annotations attached to the mouse detector. Fixes [#30744](https://github.com/flutter/flutter/issues/30744)| +|Siva |Use identical instead of '==' in a constant expression. ([#30921](https://github.com/flutter/flutter/issues/30921)) * Use identical instead of '==' in a constant expression. * Fix analyzer warnings. * Fix analyzer warnings.| +|Jonah Williams |Add toggle for debugProfileWidgetBuilds ([#30867](https://github.com/flutter/flutter/issues/30867))| +|Jonah Williams |Revert "Manual engine roll with disabled service authentication codes ([#30919](https://github.com/flutter/flutter/issues/30919))" ([#30930](https://github.com/flutter/flutter/issues/30930)) This reverts commit 19d6e7b61390311f0b285662ba5e977bae7b0382.| +|Ben Konyi |Manual engine roll with disabled service authentication codes ([#30919](https://github.com/flutter/flutter/issues/30919))| +|Justin McCandless |Baseline Aligned Row ([#30746](https://github.com/flutter/flutter/issues/30746)) Text in a baseline aligned row now works, and the height of the row is properly calculated.| +|MH Johnson |[Material] Fix showDialog crasher caused by old contexts ([#30754](https://github.com/flutter/flutter/issues/30754)) * Fix bug, add regression test. * remove unnecessary space| +|Dan Field |Let `sliver.dart` `_createErrorWidget` work with other Widgets ([#30880](https://github.com/flutter/flutter/issues/30880)) Credit to @ymback| +|xster |Add more dialog doc cross-reference ([#30887](https://github.com/flutter/flutter/issues/30887))| +|Jonah Williams |Allow downloading of desktop embedding artifacts ([#30648](https://github.com/flutter/flutter/issues/30648))| +|LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com>|CupertinoDatePicker initialDateTime accounts for minuteInterval ([#30862](https://github.com/flutter/flutter/issues/30862)) initialDateTime should account for minuteInterval| +|LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com>|add golden tests for CupertinoDatePicker ([#30828](https://github.com/flutter/flutter/issues/30828)) Add golden tests for CupertinoDatePicker| +|liyuqian |Simplify toImage future handling ([#30876](https://github.com/flutter/flutter/issues/30876)) Thanks to cbracken@'s suggestion on another Google-internal change.| +|champeauxr |Fixed Table flex column layout error [#30437](https://github.com/flutter/flutter/issues/30437) ([#30470](https://github.com/flutter/flutter/issues/30470)) RenderTable._computeColumnWidths() had a logic error that caused flex columns to be collapsed to their minimum widths in certain situations dependent on the layout width constraint and the number of flex columns.| +|xster |Fix iTunes Transporter quirk ([#30883](https://github.com/flutter/flutter/issues/30883))| +|Greg Spencer |Bump Android build tools to 28.0.3 in Dockerfile ([#30832](https://github.com/flutter/flutter/issues/30832)) Bumps the Android build tools to 28.0.3 instead of 28.0.0 in the Dockerfile, since that is what flutter doctor wants.| +|xster |Update the upload key which seems to have trouble for some reason ([#30871](https://github.com/flutter/flutter/issues/30871))| +|Dan Field |Check for invalid elevations ([#30215](https://github.com/flutter/flutter/issues/30215)) * Check for invalid elevation usage in the layer tree| +|Sam Rawlins |Fix additional @mustCallSuper indirect overrides and mixins ([#30667](https://github.com/flutter/flutter/issues/30667))| +|Todd Volkert |Revert "Add Form.onSaved ([#30643](https://github.com/flutter/flutter/issues/30643))" ([#30793](https://github.com/flutter/flutter/issues/30793)) This reverts commit 949023b27686fb80a0047157490d6c4c61995cef.| +|Tong Mu |Revert "Remove pressure customization from some pointer events ([#30414](https://github.com/flutter/flutter/issues/30414))" ([#30873](https://github.com/flutter/flutter/issues/30873)) This reverts commit a821136997b600f0cd39cbcd3d993c54a15f4686.| +|Tong Mu |Remove pressure customization from some pointer events ([#30414](https://github.com/flutter/flutter/issues/30414)) * Remove pressure from PointerHoverEvent ctor| +|Jonah Williams |warn on uncomitted changes ([#30235](https://github.com/flutter/flutter/issues/30235))| +|Jonah Williams |Add semanticsLabel parameter to TextSpan ([#30837](https://github.com/flutter/flutter/issues/30837))| +|engine-flutter-autoroll |Roll engine 905c571db50d..72986c39ea36 (2 commits) ([#30861](https://github.com/flutter/flutter/issues/30861)) https://github.com/flutter/engine/compare/905c571db50d...72986c39ea36 git log 905c571db50d5eb3b10eaa4d3c43c99321032223..72986c39ea3669ef26d4d7d7cd0c44f513fcd117 --no-merges --oneline 72986c39e Move constant definitions out embedder.h ([flutter/engine#8498](https://github.com/flutter/engine/issues/8498)) e356dbca2 Merge flutter/synchronization contents into fml. ([flutter/engine#8525](https://github.com/flutter/engine/issues/8525)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Justin McCandless |Fix cursor outside of input width ([#30525](https://github.com/flutter/flutter/issues/30525)) * Disallow cursor from appearing beyond the width of the input. * Test that verifies the cursor can't exceed the width of the input * Use constant from editable.dart to explain 1 pixel difference in test * Fix failing test that tested the case of overflowing spaces| +|xster |Cupertino localization step 7: modularize material specific things out of gen_localizations.dart ([#29822](https://github.com/flutter/flutter/issues/29822))| +|engine-flutter-autoroll |Roll engine eec74e5c9231..905c571db50d (9 commits) ([#30833](https://github.com/flutter/flutter/issues/30833)) https://github.com/flutter/engine/compare/eec74e5c9231...905c571db50d git log eec74e5c92313f01a28dfbeb78d96e81231edab7..905c571db50d5eb3b10eaa4d3c43c99321032223 --no-merges --oneline 905c571db Add windows host_debug_unopt build ([flutter/engine#8515](https://github.com/flutter/engine/issues/8515)) 39e1d00f3 Remove redundant specification of the |flutter| namespace in the engine. ([flutter/engine#8523](https://github.com/flutter/engine/issues/8523)) 56052c70a Rename the shell namespace to flutter. ([flutter/engine#8520](https://github.com/flutter/engine/issues/8520)) ca1d163d4 Support message loops whose tasks are executed concurrently. ([flutter/engine#8419](https://github.com/flutter/engine/issues/8419)) 8ae84ec3d Roll src/third_party/skia de8362c6f212..10bf7020aa15 (5 commits) ([flutter/engine#8522](https://github.com/flutter/engine/issues/8522)) 2dbd981d3 Roll src/third_party/dart 06ed3f598c..1490a90bc1 (8 commits) 527913268 Android Embedding PR27: Fix SurfaceView flicker in Fragment transactions ([flutter/engine#8504](https://github.com/flutter/engine/issues/8504)) 86ab45cd5 Remove the unused EnableBlink flag. ([flutter/engine#8518](https://github.com/flutter/engine/issues/8518)) d5880a609 Roll src/third_party/skia b5d8c634f95b..de8362c6f212 (14 commits) ([flutter/engine#8519](https://github.com/flutter/engine/issues/8519)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Shi-Hao Hong |Fix StatefulWidget and StatelessWidget Sample Documentation ([#30814](https://github.com/flutter/flutter/issues/30814))| +|liyuqian |Print warning if flutter drive is run in debug ([#30747](https://github.com/flutter/flutter/issues/30747)) ## Description Print actionable warnings if `flutter drive` (where most of our performance benchmarks come from) is run in debug mode and it tries to gather benchmarks using `traceAction`. ## Related Issues https://github.com/flutter/flutter/issues/30625 ## Tests I added the following tests: * drive_perf_debug_warning devicelab test| +|xster |Cupertino localization step 11: add more translation clarifications in the instructions ([#30527](https://github.com/flutter/flutter/issues/30527))| +|engine-flutter-autoroll |Roll engine 6a0460c33ff7..eec74e5c9231 (6 commits) ([#30813](https://github.com/flutter/flutter/issues/30813)) https://github.com/flutter/engine/compare/6a0460c33ff7...eec74e5c9231 git log 6a0460c33ff7e4f18b809285301337698de9ab38..eec74e5c92313f01a28dfbeb78d96e81231edab7 --no-merges --oneline eec74e5c9 Rename the blink namespace to flutter. ([flutter/engine#8517](https://github.com/flutter/engine/issues/8517)) fff80a0d9 Roll src/third_party/dart 06ed3f598c..06ed3f598c (0 commits) 000f8e31a Remove dart_utf_tag from DEPS 9bfa96dee Add trace events for creating minikin fonts ([flutter/engine#8477](https://github.com/flutter/engine/issues/8477)) 5381e57ea Roll src/third_party/skia 9a7c7be15969..b5d8c634f95b (11 commits) ([flutter/engine#8513](https://github.com/flutter/engine/issues/8513)) df707c6f1 switch to newer APIs for shaders and filters ([flutter/engine#8511](https://github.com/flutter/engine/issues/8511)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Shi-Hao Hong |Update ExpansionPanelList Samples with Scaffold template ([#30805](https://github.com/flutter/flutter/issues/30805))| +|Shi-Hao Hong |Update ListTile sample snippets to use Material Scaffold Template ([#30800](https://github.com/flutter/flutter/issues/30800))| +|ShaLi Shaltiel |Updated package template .gitignore file ([#27034](https://github.com/flutter/flutter/issues/27034))| +|Shi-Hao Hong |Embedded images and variations to ListTile sample code ([#30537](https://github.com/flutter/flutter/issues/30537)) Also includes counter-examples for list items that differ from ListTile.| +|liyuqian |Mark cubic_bezier_perf__timeline_summary nonflaky ([#30767](https://github.com/flutter/flutter/issues/30767))| +|Michael Thomsen |Forward missing pub commands ([#30115](https://github.com/flutter/flutter/issues/30115))| +|engine-flutter-autoroll |6a0460c33 Roll src/third_party/skia 097e77cd3ba0..9a7c7be15969 (1 commits) ([flutter/engine#8512](https://github.com/flutter/engine/issues/8512)) ([#30785](https://github.com/flutter/flutter/issues/30785)) https://github.com/flutter/engine/compare/2335dd2f8acf...6a0460c33ff7 git log 2335dd2f8acfbbe9af5db626fd9c71031492fa8f..6a0460c33ff7e4f18b809285301337698de9ab38 --no-merges --oneline 6a0460c33 Roll src/third_party/skia 097e77cd3ba0..9a7c7be15969 (1 commits) ([flutter/engine#8512](https://github.com/flutter/engine/issues/8512)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Jonah Williams |fix cast NPE in invokeListMethod and invokeMapMathod ([#30760](https://github.com/flutter/flutter/issues/30760))| +|engine-flutter-autoroll |Roll engine 8a465596533d..2335dd2f8acf (2 commits) ([#30780](https://github.com/flutter/flutter/issues/30780)) https://github.com/flutter/engine/compare/8a465596533d...2335dd2f8acf git log 8a465596533d75eb128faab5cd70b60c5e989935..2335dd2f8acfbbe9af5db626fd9c71031492fa8f --no-merges --oneline 2335dd2f8 Roll src/third_party/skia 696e8dda3ca3..097e77cd3ba0 (1 commits) ([flutter/engine#8510](https://github.com/flutter/engine/issues/8510)) 4e839444f Roll src/third_party/skia 0ea414a08208..696e8dda3ca3 (3 commits) ([flutter/engine#8509](https://github.com/flutter/engine/issues/8509)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine ff1bcdc00941..8a465596533d (21 commits) ([#30768](https://github.com/flutter/flutter/issues/30768)) https://github.com/flutter/engine/compare/ff1bcdc00941...8a465596533d git log ff1bcdc00941188ba27123a4857b443e3c9392bb..8a465596533d75eb128faab5cd70b60c5e989935 --no-merges --oneline 8a4655965 Route FlutterEventTracer events to Fuchsia tracing for Fuchsia ([flutter/engine#8499](https://github.com/flutter/engine/issues/8499)) 7ce64be6c [scenic] Remove unused mozart.internal ([flutter/engine#8496](https://github.com/flutter/engine/issues/8496)) edb050f7a Roll src/third_party/skia 2f08a4043b26..0ea414a08208 (2 commits) ([flutter/engine#8506](https://github.com/flutter/engine/issues/8506)) 623dca053 Roll src/third_party/dart b23817105c..cc63d6e647 (8 commits) c7b138d82 [scenic][SCN-1054] remove dangling uses of SetTranslationRH ([flutter/engine#8503](https://github.com/flutter/engine/issues/8503)) 53620352a Roll src/third_party/dart aacc0b0709..b23817105c (8 commits) 046b3cd28 Get rid of the macro for accessing the current test name. ([flutter/engine#8500](https://github.com/flutter/engine/issues/8500)) 533ca016e Roll src/third_party/skia 6b797fec83f0..2f08a4043b26 (8 commits) ([flutter/engine#8501](https://github.com/flutter/engine/issues/8501)) 612abee90 Wire up support for Dart fixtures in shell_unittests. ([flutter/engine#8497](https://github.com/flutter/engine/issues/8497)) dbcfc504c Android Embedding PR26: Offer an async version of FlutterMain&[#39](https://github.com/flutter/flutter/issues/39);s ensure initialization complete. ([flutter/engine#8465](https://github.com/flutter/engine/issues/8465)) a930ca893 Roll src/third_party/dart 8e4dcf48c4..aacc0b0709 (4 commits) acfc83179 Roll src/third_party/skia 602df41025ea..6b797fec83f0 (19 commits) ([flutter/engine#8494](https://github.com/flutter/engine/issues/8494)) 3558fa65a [Docs] Correcting link to contributing guide. ([flutter/engine#8472](https://github.com/flutter/engine/issues/8472)) 0bf708ee1 Refactor ios play input sound logic. ([flutter/engine#7783](https://github.com/flutter/engine/issues/7783)) 78bd318c9 Add Locale.toLanguageTag() ([flutter/engine#8421](https://github.com/flutter/engine/issues/8421)) efb3b003f Roll src/third_party/dart 8e0a669e74..8e4dcf48c4 (8 commits) 075b4899d Support ContextWrapper when FlutterView is instantiated within a Fragment. ([flutter/engine#7776](https://github.com/flutter/engine/issues/7776)) 85ca8c485 Roll src/third_party/skia 053b2939938c..602df41025ea (21 commits) ([flutter/engine#8492](https://github.com/flutter/engine/issues/8492)) a6b8e70ad Remove unused variable ([flutter/engine#8490](https://github.com/flutter/engine/issues/8490)) 377dc6400 Roll src/third_party/dart 86b5304ccd..8e0a669e74 (6 commits) 7ee3a31c5 Roll src/third_party/dart 907c514c89..86b5304ccd (27 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Jonah Williams |register gradle wrapper as universal artifact ([#30755](https://github.com/flutter/flutter/issues/30755))| +|Tim Sneath |Update README.md ([#30594](https://github.com/flutter/flutter/issues/30594)) * Rewrite README with text from Flutter announcement| +|xster |Cupertino localization step 6: add a GlobalCupertinoLocalizations base class with date time formatting ([#29767](https://github.com/flutter/flutter/issues/29767))| +|Jonah Williams |Reland: Ensure that flutter run/drive/test/update_packages only downloads required artifacts ([#30254](https://github.com/flutter/flutter/issues/30254))| +|Jonah Williams |Allow disabling experimental commands, devices on stable branch ([#30153](https://github.com/flutter/flutter/issues/30153))| +|Lau Ching Jun |Mark ios-deploy version 2.0.0 as bad ([#30578](https://github.com/flutter/flutter/issues/30578)) Mark ios-deploy version 2.0.0 as bad. ios-deploy before version 1.9.4 declares itself as v2.0.0 https://github.com/ios-control/ios-deploy/commits/main/src/ios-deploy/version.h| +|rami-a <2364772+rami-a@users.noreply.github.com>|Prevent vertical scroll in shrine by ensuring card size fits the screen ([#30455](https://github.com/flutter/flutter/issues/30455))| +|Todd Volkert |Add `const Border.uniform()` ([#30640](https://github.com/flutter/flutter/issues/30640)) `Border.all()` is a factory constructor and thus not const constructible. This change adds a `const Border.uniform()` constructor and makes `Border.all()` delegate to it. This allows callers to more likely be able to make their widget tree const constructible.| +|Todd Volkert |Add Form.onSaved ([#30643](https://github.com/flutter/flutter/issues/30643)) When submitting data to a server, callers need a callback that will get invoked after all the individual form fields are saved. If they have a button that submits the form, they could just do this logic in the click handler for the button (save the form, then submit to the server), but if they have more ways than one to submit the form (i.e. hitting enter while in a text form field), then it becomes more convoluted and calls for a unified callback that will get notified when the form is submitted.| +|Todd Volkert |Make FormField._validate() return void ([#30644](https://github.com/flutter/flutter/issues/30644)) None of its callers were using the return value, so no need to invoke the `isValid` getter unnecessarily.| +|Todd Volkert |Add docs to FormFieldValidator ([#30645](https://github.com/flutter/flutter/issues/30645)) To describe what its return value represents| +|engine-flutter-autoroll |ff1bcdc00 Add Views V2 support for Fuchsia ([flutter/engine#8115](https://github.com/flutter/engine/issues/8115)) ([#30633](https://github.com/flutter/flutter/issues/30633)) https://github.com/flutter/engine/compare/0c393d64e4d1...ff1bcdc00941 git log 0c393d64e4d1c4cd408a591eac72ba05cdc2c0da..ff1bcdc00941188ba27123a4857b443e3c9392bb --no-merges --oneline ff1bcdc00 Add Views V2 support for Fuchsia ([flutter/engine#8115](https://github.com/flutter/engine/issues/8115)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Dan Field |Add sample for ValueListenableBuilder ([#30626](https://github.com/flutter/flutter/issues/30626)) * Add sample for ValueListenableBuilder| +|engine-flutter-autoroll |Roll engine 6bc33b5e1442..0c393d64e4d1 (12 commits) ([#30623](https://github.com/flutter/flutter/issues/30623)) https://github.com/flutter/engine/compare/6bc33b5e1442...0c393d64e4d1 git log 6bc33b5e144254ceab274298dd61d9d9ed0dcc8f..0c393d64e4d1c4cd408a591eac72ba05cdc2c0da --no-merges --oneline 0c393d64e Roll dart back to 907c514c8937cf76e ([flutter/engine#8473](https://github.com/flutter/engine/issues/8473)) fea42a259 Roll src/third_party/dart 9e1adc54a7..389ccc9000 (10 commits) d6cf2bda1 Roll src/third_party/dart da4ccd0855..9e1adc54a7 (3 commits) 0c2a2c1c4 Initialize OpacityLayer&[#39](https://github.com/flutter/flutter/issues/39);s matrix to identity ([flutter/engine#8467](https://github.com/flutter/engine/issues/8467)) 7fd4caf03 Roll src/third_party/dart 1ad11facec..da4ccd0855 (6 commits) d3fbaea9a Android Embedding PR25: Prevent black rectangle when launching FlutterActivity ([flutter/engine#8460](https://github.com/flutter/engine/issues/8460)) 99da038da Document the leak_vm flag. ([flutter/engine#8462](https://github.com/flutter/engine/issues/8462)) ce7c21ce9 Log the correct function on error in the embedder. ([flutter/engine#8461](https://github.com/flutter/engine/issues/8461)) e10d46421 Improve path metrics tests and docs ([flutter/engine#7851](https://github.com/flutter/engine/issues/7851)) 424045c3f Enable shutting down all root isolates in a VM. ([flutter/engine#8457](https://github.com/flutter/engine/issues/8457)) 816e3dc0f Roll src/third_party/dart 907c514c89..1ad11facec (7 commits) 45dc353ee Roll src/third_party/skia 0e35ce27e0e9..053b2939938c (10 commits) ([flutter/engine#8458](https://github.com/flutter/engine/issues/8458)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|xster |Fix gallery deploy on iOS ([#22810](https://github.com/flutter/flutter/issues/22810))| +|Hans Muller |Fixed a typo in the Expanded API doc ([#30563](https://github.com/flutter/flutter/issues/30563))| +|Taym Haddadi |Add confirmDismiss example to flutter_gallery ([#30497](https://github.com/flutter/flutter/issues/30497))| +|LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com>|Provide a default IconTheme in CupertinoTheme ([#30521](https://github.com/flutter/flutter/issues/30521)) -* Inserted an `IconTheme` widget under `CupertinoTheme` to provide a default icon color when using `CupertinoTheme`. * Changed `CupertinoTheme` to a `StatelessWidget`, to match the implementation of `Theme` * Changed the nesting order of `Theme`'s sub widgets, to let `Theme.iconTheme` take precedence, so that `Theme`'s behavior is kept as is.| +|engine-flutter-autoroll |Roll engine 2fe4439178f3..6bc33b5e1442 (3 commits) ([#30576](https://github.com/flutter/flutter/issues/30576)) https://github.com/flutter/engine/compare/2fe4439178f3...6bc33b5e1442 git log 2fe4439178f3e09ddaa4d016688691a1adc65ed6..6bc33b5e144254ceab274298dd61d9d9ed0dcc8f --no-merges --oneline 6bc33b5e1 Android Embedding PR24: Allow FlutterActivity to provide an engine, also adjust FlutterFragment timing to avoid Activity launch lag. ([flutter/engine#8448](https://github.com/flutter/engine/issues/8448)) 08a133508 More detailed comments for engine build windows VM ([flutter/engine#8456](https://github.com/flutter/engine/issues/8456)) 1854b8571 Roll src/third_party/dart a2709992a2..907c514c89 (1 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|Michael Goderbauer |Bump dartdocs to 0.28.3+1 ([#30570](https://github.com/flutter/flutter/issues/30570))| +|engine-flutter-autoroll |2fe443917 Roll src/third_party/skia 558637996569..0e35ce27e0e9 (11 commits) ([flutter/engine#8454](https://github.com/flutter/engine/issues/8454)) ([#30567](https://github.com/flutter/flutter/issues/30567)) https://github.com/flutter/engine/compare/7e79b1f03db0...2fe4439178f3 git log 7e79b1f03db04a70509a207d5a0ce2de498f9aba..2fe4439178f3e09ddaa4d016688691a1adc65ed6 --no-merges --oneline 2fe443917 Roll src/third_party/skia 558637996569..0e35ce27e0e9 (11 commits) ([flutter/engine#8454](https://github.com/flutter/engine/issues/8454)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|Tim Sneath |Replace flutter.io with flutter.dev ([#30562](https://github.com/flutter/flutter/issues/30562))| +|chunhtai <47866232+chunhtai@users.noreply.github.com>|Fix issue 21640: Assertion Error : '_listenerAttached': is not true ([#30513](https://github.com/flutter/flutter/issues/30513))| +|Alexandre Ardhuin |shorter nullable list duplications ([#30305](https://github.com/flutter/flutter/issues/30305))| +|Tong Mu |Correctly synthesise event buttons ([#30535](https://github.com/flutter/flutter/issues/30535)) * Correctly synthesise buttons, and add tests| +|engine-flutter-autoroll |Roll engine 3c3b26b55c16..7e79b1f03db0 (4 commits) ([#30559](https://github.com/flutter/flutter/issues/30559)) https://github.com/flutter/engine/compare/3c3b26b55c16...7e79b1f03db0 git log 3c3b26b55c1682cbf58a712d102c66dca53f93e4..7e79b1f03db04a70509a207d5a0ce2de498f9aba --no-merges --oneline 7e79b1f03 Roll src/third_party/dart 896f1c4bb9..a2709992a2 (25 commits) 9c4c043ae Roll src/third_party/skia 604d5a3fca01..558637996569 (1 commits) ([flutter/engine#8452](https://github.com/flutter/engine/issues/8452)) 754453df3 Roll src/third_party/skia 1f58a8e457ba..604d5a3fca01 (1 commits) ([flutter/engine#8451](https://github.com/flutter/engine/issues/8451)) d6d45da07 Roll src/third_party/skia b0ababfe5ad2..1f58a8e457ba (3 commits) ([flutter/engine#8450](https://github.com/flutter/engine/issues/8450)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|Justin McCandless |Trackpad mode crash fix ([#30475](https://github.com/flutter/flutter/issues/30475)) Fixes a crash that happened when attempting to select text in trackpad mode on iOS.| +|engine-flutter-autoroll |3c3b26b55 Roll src/third_party/skia 51874e3e3712..b0ababfe5ad2 (1 commits) ([flutter/engine#8449](https://github.com/flutter/engine/issues/8449)) ([#30540](https://github.com/flutter/flutter/issues/30540)) https://github.com/flutter/engine/compare/697e541a8d94...3c3b26b55c16 git log 697e541a8d9475b504a2bd6f335b4f004775adf3..3c3b26b55c1682cbf58a712d102c66dca53f93e4 --no-merges --oneline 3c3b26b55 Roll src/third_party/skia 51874e3e3712..b0ababfe5ad2 (1 commits) ([flutter/engine#8449](https://github.com/flutter/engine/issues/8449)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|Wai Hon Law |Update repair command for Arch Linux ([#30428](https://github.com/flutter/flutter/issues/30428)) The current repair command for Arch Linux is no longer valid because `lib32-libstdc++5` had been removed from multilib. Actually, `lib32-gcc-libs` from core just work. Also see https://github.com/flutter/flutter/issues/25035| +|engine-flutter-autoroll |697e541a8 Add scripts that prepares our windows VM image ([flutter/engine#8446](https://github.com/flutter/engine/issues/8446)) ([#30538](https://github.com/flutter/flutter/issues/30538)) https://github.com/flutter/engine/compare/8b74cba20bb8...697e541a8d94 git log 8b74cba20bb878d1e75747200f75dfaff5925bda..697e541a8d9475b504a2bd6f335b4f004775adf3 --no-merges --oneline 697e541a8 Add scripts that prepares our windows VM image ([flutter/engine#8446](https://github.com/flutter/engine/issues/8446)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 219bf5938752..8b74cba20bb8 (4 commits) ([#30536](https://github.com/flutter/flutter/issues/30536)) https://github.com/flutter/engine/compare/219bf5938752...8b74cba20bb8 git log 219bf5938752e0030b491565af1910c137b83dd8..8b74cba20bb878d1e75747200f75dfaff5925bda --no-merges --oneline 8b74cba20 Make sure FlutterViewController flushs all pending touches when no longer active ([flutter/engine#8400](https://github.com/flutter/engine/issues/8400)) 06cab8171 Roll src/third_party/skia e4628b10722f..51874e3e3712 (2 commits) ([flutter/engine#8445](https://github.com/flutter/engine/issues/8445)) 5460926c0 Roll src/third_party/dart 9814cb1b9c..896f1c4bb9 (4 commits) 694fc5677 Build windows engine on GCE ([flutter/engine#8442](https://github.com/flutter/engine/issues/8442)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|xster |Let docker image install fastlane too for Linux ([#30530](https://github.com/flutter/flutter/issues/30530))| +|Hans Muller |Correct MaterialButton disabledColor ([#30531](https://github.com/flutter/flutter/issues/30531))| +|xster |Cupertino localization step 5: add french arb as translated example ([#29708](https://github.com/flutter/flutter/issues/29708))| +|Tong Mu |Touching the screen adds `0x01` to buttons ([#30457](https://github.com/flutter/flutter/issues/30457)) * Add constants `kPrimaryButton`, `kTouchContact` and `kStylusContact` * PointerDownEvent and PointerMoveEvent will always set the 0x01 bit on buttons| +|Morgan |Fix MaterialApp's _navigatorObserver when only builder used ([#29413](https://github.com/flutter/flutter/issues/29413)) Fix MaterialApp's _navigatorObserver so it doesn't cause WidgetApp's assertion to fail when using custom navigator, fixes [#18904](https://github.com/flutter/flutter/issues/18904)| +|engine-flutter-autoroll |Roll engine 0f70d5d4f1e3..219bf5938752 (2 commits) ([#30520](https://github.com/flutter/flutter/issues/30520)) https://github.com/flutter/engine/compare/0f70d5d4f1e3...219bf5938752 git log 0f70d5d4f1e3ed377781bc6e73e3666c73afc7f8..219bf5938752e0030b491565af1910c137b83dd8 --no-merges --oneline 219bf5938 Roll src/third_party/skia 1383a38e1d92..e4628b10722f (12 commits) ([flutter/engine#8443](https://github.com/flutter/engine/issues/8443)) a40adfdf4 Add window title/icon support to GLFW shell ([flutter/engine#8435](https://github.com/flutter/engine/issues/8435)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|Kate Lovett |Embedding the diagram for BottomNavigationBar. ([#30468](https://github.com/flutter/flutter/issues/30468))| +|engine-flutter-autoroll |Roll engine 5944867cabdb..0f70d5d4f1e3 (2 commits) ([#30512](https://github.com/flutter/flutter/issues/30512)) https://github.com/flutter/engine/compare/5944867cabdb...0f70d5d4f1e3 git log 5944867cabdb934ef9fea0dccb865cb1acef51b5..0f70d5d4f1e3ed377781bc6e73e3666c73afc7f8 --no-merges --oneline 0f70d5d4f Roll src/third_party/dart 600b2831ef..9814cb1b9c (7 commits) 4b1ec56bc Roll src/third_party/skia f346df396a23..1383a38e1d92 (8 commits) ([flutter/engine#8440](https://github.com/flutter/engine/issues/8440)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|Justin McCandless |Pan and zoom gallery demo ([#25164](https://github.com/flutter/flutter/issues/25164)) Adds the "2D Transformations" demo to the gallery, which shows how to do things such as navigate around a map a la Google Maps, or show a full screen zoomable photo. The idea is to abstract this code into a first class widget soon.| +|Tong Mu |Fix edge cases of PointerEventConverter ([#29998](https://github.com/flutter/flutter/issues/29998)) * Fix: ui.PointerChange.remove might contain position change, but we used to expand it into a Cancel and Remove, neither of which allows position change. A Hover event is added, and a test is updated accordingly. * Fixed the issue where a PointerMoveEvent and a PointerCancelEvent do not receive the correct pressure. * Refactor the calculation of delta into deltaTo.| +|engine-flutter-autoroll |5944867ca update to use SkTileMode ([flutter/engine#8439](https://github.com/flutter/engine/issues/8439)) ([#30506](https://github.com/flutter/flutter/issues/30506)) https://github.com/flutter/engine/compare/ad9d2417e9aa...5944867cabdb git log ad9d2417e9aa182700f0d1423de758d2a000598d..5944867cabdb934ef9fea0dccb865cb1acef51b5 --no-merges --oneline 5944867ca update to use SkTileMode ([flutter/engine#8439](https://github.com/flutter/engine/issues/8439)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 309d078b597d..ad9d2417e9aa (15 commits) ([#30502](https://github.com/flutter/flutter/issues/30502)) https://github.com/flutter/engine/compare/309d078b597d...ad9d2417e9aa git log 309d078b597d3a38fe9bcef8d8bae7b56487e8eb..ad9d2417e9aa182700f0d1423de758d2a000598d --no-merges --oneline ad9d2417e Roll src/third_party/skia dde12a25bb5e..f346df396a23 (1 commits) ([flutter/engine#8438](https://github.com/flutter/engine/issues/8438)) 0ed237c19 Roll src/third_party/skia b6d04556c34d..dde12a25bb5e (4 commits) ([flutter/engine#8437](https://github.com/flutter/engine/issues/8437)) 445ab42ef Roll src/third_party/dart 11a3dd7332..600b2831ef (9 commits) 49d0dc6d6 Roll src/third_party/skia 5c5de2146309..b6d04556c34d (1 commits) ([flutter/engine#8434](https://github.com/flutter/engine/issues/8434)) 4ff18fbda Roll src/third_party/dart f6768b6fb3..11a3dd7332 (56 commits) 7b831986f Roll src/third_party/skia 2273c900ea28..5c5de2146309 (5 commits) ([flutter/engine#8432](https://github.com/flutter/engine/issues/8432)) 800ea0a40 Revert &[#34](https://github.com/flutter/flutter/issues/34);Enable shutting down all root isolates in a VM. ([#8402](https://github.com/flutter/flutter/issues/8402))&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8431](https://github.com/flutter/engine/issues/8431)) b59c4436c Enable shutting down all root isolates in a VM. ([flutter/engine#8402](https://github.com/flutter/engine/issues/8402)) 9acdf1837 Make AccessibilityViewEmbedder final ([flutter/engine#8429](https://github.com/flutter/engine/issues/8429)) 804d54ddf Eliminate unused displayBounds parameter ([flutter/engine#8427](https://github.com/flutter/engine/issues/8427)) d4c815f57 Roll buildroot ([flutter/engine#8425](https://github.com/flutter/engine/issues/8425)) 20190d707 Roll src/third_party/skia fbe240669394..2273c900ea28 (13 commits) ([flutter/engine#8428](https://github.com/flutter/engine/issues/8428)) 7e38b0aa2 Revert &[#34](https://github.com/flutter/flutter/issues/34);Revert &[#34](https://github.com/flutter/flutter/issues/34);Separate the data required to bootstrap the VM into its own class. ([#8397](https://github.com/flutter/flutter/issues/8397))&[#34](https://github.com/flutter/flutter/issues/34); ([#8406](https://github.com/flutter/flutter/issues/8406))&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8414](https://github.com/flutter/engine/issues/8414)) d8bb9d793 Roll src/third_party/skia 176da0bb8a10..fbe240669394 (9 commits) ([flutter/engine#8424](https://github.com/flutter/engine/issues/8424)) 64fc58329 Remove use of DART_CHECK_VALID. ([flutter/engine#8417](https://github.com/flutter/engine/issues/8417)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|Shi-Hao Hong |Add ExpansionPanelList and ExpansionPanelList.radio Examples ([#30343](https://github.com/flutter/flutter/issues/30343))| +|Michelle Dudley <25540019+michdud@users.noreply.github.com>|Fix Shrine overscroll glow indicator ([#27217](https://github.com/flutter/flutter/issues/27217))| +|Nikita |Implement compute for async function ([#16265](https://github.com/flutter/flutter/issues/16265)) ([#30275](https://github.com/flutter/flutter/issues/30275))| +|Kate Lovett |Embedding new raised button diagram. ([#30398](https://github.com/flutter/flutter/issues/30398))| +|Kate Lovett |Updating sample code for BottomNavigationBar class for diagram. ([#30453](https://github.com/flutter/flutter/issues/30453))| +|Michael Goderbauer |Random trivial fixes in the animation packages ([#30276](https://github.com/flutter/flutter/issues/30276))| +|Michael Goderbauer |Be more explicit when ValueNotifier notifies ([#30461](https://github.com/flutter/flutter/issues/30461))| +|engine-flutter-autoroll |309d078b5 Roll src/third_party/skia e25b4472cdd9..176da0bb8a10 (10 commits) ([flutter/engine#8422](https://github.com/flutter/engine/issues/8422)) ([#30441](https://github.com/flutter/flutter/issues/30441)) https://github.com/flutter/engine/compare/cc115500b9cb...309d078b597d git log cc115500b9cb2b27d59627f202e6cd6bb87f49fc..309d078b597d3a38fe9bcef8d8bae7b56487e8eb --no-merges --oneline 309d078b5 Roll src/third_party/skia e25b4472cdd9..176da0bb8a10 (10 commits) ([flutter/engine#8422](https://github.com/flutter/engine/issues/8422)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|Zachary Anderson |[fuchsia] Fix isolate filter ([#30458](https://github.com/flutter/flutter/issues/30458))| +|Hans Muller |Fix gallery API doc URL launcher ([#30460](https://github.com/flutter/flutter/issues/30460))| +|liyuqian |Revert "Error message for setting shaderWarmUp too late ([#30145](https://github.com/flutter/flutter/issues/30145))" ([#30463](https://github.com/flutter/flutter/issues/30463)) This reverts commit ffbb335e35ae7416be98b72779baae6c9bd25b3b. Reason for revert: flutter driver tests may have bugs in getting first frame. Revert this until we figure out what happened.| +|Michael Goderbauer |Moar Videos ([#30452](https://github.com/flutter/flutter/issues/30452))| +|Michael Goderbauer |Add 29 Widget of the Week videos ([#30415](https://github.com/flutter/flutter/issues/30415))| +|Christopher Fujino |make shellcheck (linter) recommended changes to bin/flutter ([#30456](https://github.com/flutter/flutter/issues/30456))| +|Michael Goderbauer |Bump dartdocs to 0.28.3 ([#30451](https://github.com/flutter/flutter/issues/30451))| +|Vyacheslav Egorov |Introduce --report-timings flag for flutter build aot command. ([#30032](https://github.com/flutter/flutter/issues/30032)) This flag makes flutter build aot report timings for substeps (e.g. frontend compilation and gen_snapshot) in a machine readable form.| +|engine-flutter-autoroll |Roll engine 4a8c7dceeb4b..cc115500b9cb (6 commits) ([#30421](https://github.com/flutter/flutter/issues/30421)) https://github.com/flutter/engine/compare/4a8c7dceeb4b...cc115500b9cb git log 4a8c7dceeb4b7c710e0b22090cc3bc26f458a3a9..cc115500b9cb2b27d59627f202e6cd6bb87f49fc --no-merges --oneline cc115500b Roll src/third_party/skia c9eeab3d85b9..e25b4472cdd9 (1 commits) ([flutter/engine#8420](https://github.com/flutter/engine/issues/8420)) 20e45996d Roll src/third_party/skia 71c0e9422038..c9eeab3d85b9 (4 commits) ([flutter/engine#8418](https://github.com/flutter/engine/issues/8418)) a650790e4 Add scroll wheel support to desktop GLFW shell ([flutter/engine#8416](https://github.com/flutter/engine/issues/8416)) 77d8e12e9 Roll src/third_party/dart 14fd3b7d6a..f6768b6fb3 (5 commits) 23fceaacd Added new Android embedding packages to javadoc generation. ([flutter/engine#8411](https://github.com/flutter/engine/issues/8411)) 2f1786010 Pass environment defines to compile flutter platform step. ([flutter/engine#8412](https://github.com/flutter/engine/issues/8412)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|xster |Cupertino localization step 4: let generated date localization combine material and cupertino locales ([#29650](https://github.com/flutter/flutter/issues/29650))| +|Dan Field |Draggable Scrollable sheet ([#30058](https://github.com/flutter/flutter/issues/30058)) * Draggable Scrollable sheet| +|engine-flutter-autoroll |Roll engine f7b4903d7c99..4a8c7dceeb4b (5 commits) ([#30399](https://github.com/flutter/flutter/issues/30399)) https://github.com/flutter/engine/compare/f7b4903d7c99...4a8c7dceeb4b git log f7b4903d7c9913447af3aaebc4308d1a1e2a4dde..4a8c7dceeb4b7c710e0b22090cc3bc26f458a3a9 --no-merges --oneline 4a8c7dcee Roll src/third_party/skia f2d9b865d736..71c0e9422038 (13 commits) ([flutter/engine#8413](https://github.com/flutter/engine/issues/8413)) efbecd7e8 [txt] Add back FontCollection::SetDefaultFontManager ([flutter/engine#8410](https://github.com/flutter/engine/issues/8410)) 5f7711449 Roll src/third_party/dart 75b2f9f919..14fd3b7d6a (23 commits) f27c5730a [fuchsia] Exclude glfw from the Fuchsia host build ([flutter/engine#8407](https://github.com/flutter/engine/issues/8407)) 853ac1bdf Roll src/third_party/skia 70d8f4f3acbb..f2d9b865d736 (11 commits) ([flutter/engine#8408](https://github.com/flutter/engine/issues/8408)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (chinmaygarde@google.com), and stop the roller if necessary.| +|Amir Hardon |Make sure _handleAppFrame is only registered once per frame ([#30346](https://github.com/flutter/flutter/issues/30346)) There were 2 possible scenarios in which _handleAppFrame is added more than once as a frame callback. When this happens it is possible that the second invocation will try to access _nextFrame.image when _nextFrame is null and crash. The 2 scenarios are: Scenario 1 A GIF frame is decoded and a Flutter frame is executed before it's time to show the next GIF frame. The timer that's waiting for enough time to elapse is invoked, and schedules a callback for the next Flutter frame(here). Before the next Flutter frame is executed, MultiFrameImageStreamCompleter#removeListener is called followed by ``MultiFrameImageStreamCompleter#addListenerthat is invoking_decodeNextFrameAndSchedule` which is adding `_handleAppFrame` again as a next frame callback. Scenario 2 removeListener and addListener are called multiple times in succession, every call to addListener can result in another registration of _handleAppFrame to the next Flutter frame callbacks list. This patch fixes the issue by guarding against a second registration of _handleAppFrame.| +|xster |Add needed singular resources for cupertino_en.arb ([#30160](https://github.com/flutter/flutter/issues/30160))| +|engine-flutter-autoroll |Roll engine 6675f71dfb22..f7b4903d7c99 (2 commits) ([#30393](https://github.com/flutter/flutter/issues/30393)) https://github.com/flutter/engine/compare/6675f71dfb22...f7b4903d7c99 git log 6675f71dfb22a0b4fdab6332e37843f78c33c9e6..f7b4903d7c9913447af3aaebc4308d1a1e2a4dde --no-merges --oneline f7b4903d7 Revert &[#34](https://github.com/flutter/flutter/issues/34);Separate the data required to bootstrap the VM into its own class. ([#8397](https://github.com/flutter/flutter/issues/8397))&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8406](https://github.com/flutter/engine/issues/8406)) f835789dd Roll src/third_party/skia d962070feb84..70d8f4f3acbb (1 commits) ([flutter/engine#8405](https://github.com/flutter/engine/issues/8405)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Jon Tippens |Fix minor typo ([#30353](https://github.com/flutter/flutter/issues/30353))| +|Kate Lovett |Updating sample code for raised button to match forthcoming diagram. ([#30348](https://github.com/flutter/flutter/issues/30348))| +|engine-flutter-autoroll |6675f71df Roll src/third_party/skia 1acf79a3e5b8..d962070feb84 (4 commits) ([flutter/engine#8404](https://github.com/flutter/engine/issues/8404)) ([#30365](https://github.com/flutter/flutter/issues/30365)) https://github.com/flutter/engine/compare/b572ade3550b...6675f71dfb22 git log b572ade3550b3f04ccb8c18d5bc4d5804f479c03..6675f71dfb22a0b4fdab6332e37843f78c33c9e6 --no-merges --oneline 6675f71df Roll src/third_party/skia 1acf79a3e5b8..d962070feb84 (4 commits) ([flutter/engine#8404](https://github.com/flutter/engine/issues/8404)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |b572ade35 Roll src/third_party/skia 3f6a2ac63670..1acf79a3e5b8 (1 commits) ([flutter/engine#8403](https://github.com/flutter/engine/issues/8403)) ([#30355](https://github.com/flutter/flutter/issues/30355)) https://github.com/flutter/engine/compare/3796d989183d...b572ade3550b git log 3796d989183d588b17a110d8aaf74906c4e1c8f0..b572ade3550b3f04ccb8c18d5bc4d5804f479c03 --no-merges --oneline b572ade35 Roll src/third_party/skia 3f6a2ac63670..1acf79a3e5b8 (1 commits) ([flutter/engine#8403](https://github.com/flutter/engine/issues/8403)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Alexandre Ardhuin |no need .toList() before .join() ([#30304](https://github.com/flutter/flutter/issues/30304))| +|engine-flutter-autoroll |3796d9891 [ui] Add null check in FontWeight.lerp ([flutter/engine#8274](https://github.com/flutter/engine/issues/8274)) ([#30352](https://github.com/flutter/flutter/issues/30352)) https://github.com/flutter/engine/compare/79a988f5da46...3796d989183d git log 79a988f5da4665980c6cc6916403e76b53f1e3e0..3796d989183d588b17a110d8aaf74906c4e1c8f0 --no-merges --oneline 3796d9891 [ui] Add null check in FontWeight.lerp ([flutter/engine#8274](https://github.com/flutter/engine/issues/8274)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine c991647404f8..79a988f5da46 (2 commits) ([#30350](https://github.com/flutter/flutter/issues/30350)) https://github.com/flutter/engine/compare/c991647404f8...79a988f5da46 git log c991647404f8117dab2ca4ed49aa3ba48a634240..79a988f5da4665980c6cc6916403e76b53f1e3e0 --no-merges --oneline 79a988f5d Roll src/third_party/skia b27667a15a15..3f6a2ac63670 (1 commits) ([flutter/engine#8401](https://github.com/flutter/engine/issues/8401)) cfe8675ff Delay platform view removal to submitFrame. ([flutter/engine#8380](https://github.com/flutter/engine/issues/8380)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 6c1b0b83c2b3..c991647404f8 (2 commits) ([#30345](https://github.com/flutter/flutter/issues/30345)) https://github.com/flutter/engine/compare/6c1b0b83c2b3...c991647404f8 git log 6c1b0b83c2b3259cf7b23c2f6d6fc5cfdb924b61..c991647404f8117dab2ca4ed49aa3ba48a634240 --no-merges --oneline c99164740 Separate the data required to bootstrap the VM into its own class. ([flutter/engine#8397](https://github.com/flutter/engine/issues/8397)) 8c9aca440 Roll src/third_party/skia de206c75c2c8..b27667a15a15 (14 commits) ([flutter/engine#8399](https://github.com/flutter/engine/issues/8399)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Michael Goderbauer |Make heroes fly on pushReplacement ([#30228](https://github.com/flutter/flutter/issues/30228))| +|Shi-Hao Hong |Added assert to prevent complete ListTile trailing/leading horizontal expansion ([#30212](https://github.com/flutter/flutter/issues/30212))| +|LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com>|update sample code analyzer regexp & test case ([#30201](https://github.com/flutter/flutter/issues/30201)) updates the regex the analyzer uses, so it should be able to recognize expressions such as const Foo a = Foo(); as "other code" rather than a constructor call.| +|engine-flutter-autoroll |6c1b0b83c Roll src/third_party/dart 1e82544b07..75b2f9f919 (26 commits) ([#30337](https://github.com/flutter/flutter/issues/30337))| +|engine-flutter-autoroll |Roll engine a850016454f6..40eb74c50b06 (2 commits) ([#30335](https://github.com/flutter/flutter/issues/30335)) https://github.com/flutter/engine/compare/a850016454f6...40eb74c50b06 git log a850016454f6d33da64d03dbd1ea71fd0fac299f..40eb74c50b0630d0a5fbf8586febe6581b893b66 --no-merges --oneline 40eb74c50 Make the resource context primary on iOS ([flutter/engine#8387](https://github.com/flutter/engine/issues/8387)) d8d9855df Roll src/third_party/skia 73cc4e8d5fcf..de206c75c2c8 (2 commits) ([flutter/engine#8396](https://github.com/flutter/engine/issues/8396)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Tong Mu |Simplify logic of TapGestureRecognizer ([#30227](https://github.com/flutter/flutter/issues/30227)) Refactors the logic of TapGestureRecognizer, making the calling dependency unidirectional between resolve(accept) and checkUp.| +|Hans Muller |Fix OutlineInputBorder crash ([#30123](https://github.com/flutter/flutter/issues/30123))| +|engine-flutter-autoroll |Roll engine f3ec767458f1..a850016454f6 (4 commits) ([#30312](https://github.com/flutter/flutter/issues/30312)) https://github.com/flutter/engine/compare/f3ec767458f1...a850016454f6 git log f3ec767458f12bb3099248fdc57d6c0d1051f042..a850016454f6d33da64d03dbd1ea71fd0fac299f --no-merges --oneline a85001645 Roll src/third_party/skia bb482ab871a2..73cc4e8d5fcf (1 commits) ([flutter/engine#8395](https://github.com/flutter/engine/issues/8395)) aba61e8fb Roll src/third_party/skia 5ee611b26f23..bb482ab871a2 (4 commits) ([flutter/engine#8394](https://github.com/flutter/engine/issues/8394)) 82071e916 Don&[#39](https://github.com/flutter/flutter/issues/39);t access a11y APIs with reflection starting Android P. ([flutter/engine#8393](https://github.com/flutter/engine/issues/8393)) d9f16111a Roll src/third_party/skia acb4829c1be4..5ee611b26f23 (1 commits) ([flutter/engine#8392](https://github.com/flutter/engine/issues/8392)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Zachary Anderson |[fuchsia_tester] Plumb through the location of icudtl ([#30218](https://github.com/flutter/flutter/issues/30218))| +|engine-flutter-autoroll |f3ec76745 Roll src/third_party/skia 83edfbe736fd..acb4829c1be4 (1 commits) ([flutter/engine#8391](https://github.com/flutter/engine/issues/8391)) ([#30266](https://github.com/flutter/flutter/issues/30266)) https://github.com/flutter/engine/compare/be6313d87545...f3ec767458f1 git log be6313d87545874a6108edb2a311f30d9a027472..f3ec767458f12bb3099248fdc57d6c0d1051f042 --no-merges --oneline f3ec76745 Roll src/third_party/skia 83edfbe736fd..acb4829c1be4 (1 commits) ([flutter/engine#8391](https://github.com/flutter/engine/issues/8391)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |be6313d87 Roll src/third_party/skia 2fdbeae32785..83edfbe736fd (1 commits) ([flutter/engine#8390](https://github.com/flutter/engine/issues/8390)) ([#30263](https://github.com/flutter/flutter/issues/30263)) https://github.com/flutter/engine/compare/ae024d755518...be6313d87545 git log ae024d755518019f3618931fbc47d3f27e84fad5..be6313d87545874a6108edb2a311f30d9a027472 --no-merges --oneline be6313d87 Roll src/third_party/skia 2fdbeae32785..83edfbe736fd (1 commits) ([flutter/engine#8390](https://github.com/flutter/engine/issues/8390)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |ae024d755 Roll src/third_party/skia a6dd1ebd42cf..2fdbeae32785 (1 commits) ([flutter/engine#8389](https://github.com/flutter/engine/issues/8389)) ([#30257](https://github.com/flutter/flutter/issues/30257)) https://github.com/flutter/engine/compare/28f8453629f9...ae024d755518 git log 28f8453629f951d41437aa16bb09957643f1e850..ae024d755518019f3618931fbc47d3f27e84fad5 --no-merges --oneline ae024d755 Roll src/third_party/skia a6dd1ebd42cf..2fdbeae32785 (1 commits) ([flutter/engine#8389](https://github.com/flutter/engine/issues/8389)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 8dabd60a30d0..28f8453629f9 (3 commits) ([#30255](https://github.com/flutter/flutter/issues/30255)) https://github.com/flutter/engine/compare/8dabd60a30d0...28f8453629f9 git log 8dabd60a30d048bf90b4bc0b29914ea00bda182c..28f8453629f951d41437aa16bb09957643f1e850 --no-merges --oneline 28f845362 Roll src/third_party/skia c9822a1818ba..a6dd1ebd42cf (1 commits) ([flutter/engine#8388](https://github.com/flutter/engine/issues/8388)) 2e1f491ba Roll src/third_party/skia 265fd3de3527..c9822a1818ba (1 commits) ([flutter/engine#8386](https://github.com/flutter/engine/issues/8386)) b466aba58 Roll src/third_party/skia 59b733715141..265fd3de3527 (1 commits) ([flutter/engine#8384](https://github.com/flutter/engine/issues/8384)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Shi-Hao Hong |Added helpful Material assert message ([#30219](https://github.com/flutter/flutter/issues/30219)) Clarified an assert for when a Material widget's backgroundColor is null when its type isn't MaterialType.transparency| +|engine-flutter-autoroll |Roll engine b75472c106d0..8dabd60a30d0 (2 commits) ([#30236](https://github.com/flutter/flutter/issues/30236)) https://github.com/flutter/engine/compare/b75472c106d0...8dabd60a30d0 git log b75472c106d0cd0aab45de6bc16e0d6aa6d418cf..8dabd60a30d048bf90b4bc0b29914ea00bda182c --no-merges --oneline 8dabd60a3 Remove unused DartVM::IsKernelMapping ([flutter/engine#8381](https://github.com/flutter/engine/issues/8381)) 63b9d257c Roll src/third_party/dart f29e100f42..1e82544b07 (41 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine ca7623eb39d7..b75472c106d0 (5 commits) ([#30231](https://github.com/flutter/flutter/issues/30231)) https://github.com/flutter/engine/compare/ca7623eb39d7...b75472c106d0 git log ca7623eb39d74a8cbdd095fcc7db398267b6928f..b75472c106d0cd0aab45de6bc16e0d6aa6d418cf --no-merges --oneline b75472c10 Add missing import to functional for Windows. ([flutter/engine#8382](https://github.com/flutter/engine/issues/8382)) 9d7167516 Ensure OpacityLayer to have a single child ([flutter/engine#8362](https://github.com/flutter/engine/issues/8362)) 131cc625a Allow native entrypoint registration for runtime unittests. ([flutter/engine#8379](https://github.com/flutter/engine/issues/8379)) 5e124ffc1 Fix typos ([flutter/engine#8339](https://github.com/flutter/engine/issues/8339)) 972afdc92 Allow running runtime_unittests in AOT mode. ([flutter/engine#8375](https://github.com/flutter/engine/issues/8375)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Jonah Williams |Revert "Ensure that flutter run/drive/test/update_packages only downloads required artifacts ([#30075](https://github.com/flutter/flutter/issues/30075))" ([#30232](https://github.com/flutter/flutter/issues/30232))| +|Jonah Williams |Ensure that flutter run/drive/test/update_packages only downloads required artifacts ([#30075](https://github.com/flutter/flutter/issues/30075))| +|engine-flutter-autoroll |Roll engine 86f4b741b863..ca7623eb39d7 (5 commits) ([#30229](https://github.com/flutter/flutter/issues/30229)) https://github.com/flutter/engine/compare/86f4b741b863...ca7623eb39d7 git log 86f4b741b863aef5586f03f4d250f1d789fde2be..ca7623eb39d74a8cbdd095fcc7db398267b6928f --no-merges --oneline ca7623eb3 Handle null values in TextInputConfiguration.actionLabel JSON ([flutter/engine#8377](https://github.com/flutter/engine/issues/8377)) d0239bd83 Roll src/third_party/skia 73c6c9d26870..59b733715141 (3 commits) ([flutter/engine#8378](https://github.com/flutter/engine/issues/8378)) 71d59cde9 Check for hover motion events in AndroidTouchProcessor ([flutter/engine#8376](https://github.com/flutter/engine/issues/8376)) fdcbb40fe [flutter_tester] Accept --icu-data-file-path ([flutter/engine#8374](https://github.com/flutter/engine/issues/8374)) e633b26c5 Introduce unit tests and refactor web dart:ui into &[#34](https://github.com/flutter/flutter/issues/34);package&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8346](https://github.com/flutter/engine/issues/8346)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Jonah Williams |add coverage benchmark ([#30222](https://github.com/flutter/flutter/issues/30222))| +|engine-flutter-autoroll |Roll engine a1a2129bc469..86f4b741b863 (5 commits) ([#30223](https://github.com/flutter/flutter/issues/30223)) https://github.com/flutter/engine/compare/a1a2129bc469...86f4b741b863 git log a1a2129bc4696e66510be984fd7908eae51eb98f..86f4b741b863aef5586f03f4d250f1d789fde2be --no-merges --oneline 86f4b741b Move libdart selection into its own target in //flutter/runtime. ([flutter/engine#8373](https://github.com/flutter/engine/issues/8373)) f39cf3774 Add a GN format presubmit. ([flutter/engine#8371](https://github.com/flutter/engine/issues/8371)) d6e2d8527 Roll src/third_party/skia 7eeb74fdfd84..73c6c9d26870 (8 commits) ([flutter/engine#8372](https://github.com/flutter/engine/issues/8372)) 8412c199a Enable Linux shell build ([flutter/engine#8233](https://github.com/flutter/engine/issues/8233)) 133901199 libtxt: track the start and end x positions of glyph blobs for more accurate rendering of text decorations ([flutter/engine#8368](https://github.com/flutter/engine/issues/8368)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Jonah Williams |make sure flutter test asks for cache upgrades ([#30216](https://github.com/flutter/flutter/issues/30216))| +|xster |Cupertino localization step 3: in-place move some material tools around to make room for cupertino ([#29644](https://github.com/flutter/flutter/issues/29644))| +|xster |Make sure everything in the Cupertino page transition can be linear when back swiping ([#28629](https://github.com/flutter/flutter/issues/28629))| +|dacaiguoguo |Set custom flutter_assets by add FLTAssetsPath to AppFrameworkInfo.plist ([#29499](https://github.com/flutter/flutter/issues/29499)) * Get FLTAssetsPath from AppFrameworkInfo.plist| +|Jonah Williams |add missing test case and handle wildcard removal ([#30205](https://github.com/flutter/flutter/issues/30205))| +|engine-flutter-autoroll |Roll engine 82765aa77db9..a1a2129bc469 (13 commits) ([#30209](https://github.com/flutter/flutter/issues/30209)) https://github.com/flutter/engine/compare/82765aa77db9...a1a2129bc469 git log 82765aa77db9621dfbc50801ee2709aa0a00e04d..a1a2129bc4696e66510be984fd7908eae51eb98f --no-merges --oneline a1a2129bc GN Format all files in the engine. ([flutter/engine#8369](https://github.com/flutter/engine/issues/8369)) 82c910414 Remove old Fuchsia external mem,sem extensions 6d1a6a4f4 Allow per-platform customization of the default Skia font manager ([flutter/engine#8358](https://github.com/flutter/engine/issues/8358)) 3de50b8d2 Roll src/third_party/skia 84a53268af92..7eeb74fdfd84 (3 commits) ([flutter/engine#8367](https://github.com/flutter/engine/issues/8367)) 65837ab32 Roll src/third_party/skia a2cec203eea8..84a53268af92 (1 commits) ([flutter/engine#8366](https://github.com/flutter/engine/issues/8366)) ada0a8e2b Roll src/third_party/skia 57b7a792bb6f..a2cec203eea8 (1 commits) ([flutter/engine#8365](https://github.com/flutter/engine/issues/8365)) 9729f1ae3 Roll src/third_party/skia bf4229cc10a1..57b7a792bb6f (5 commits) ([flutter/engine#8364](https://github.com/flutter/engine/issues/8364)) 23e0c3758 Roll src/third_party/skia 01fe26360660..bf4229cc10a1 (6 commits) ([flutter/engine#8363](https://github.com/flutter/engine/issues/8363)) fd0b44045 Roll src/third_party/skia cc8c7bee7925..01fe26360660 (10 commits) ([flutter/engine#8361](https://github.com/flutter/engine/issues/8361)) 96c975163 Rename threshold to access_threshold ([flutter/engine#8354](https://github.com/flutter/engine/issues/8354)) 09a67fe60 update buildroot dep for https://github.com/flutter/buildroot/commit/e2ca4571fa39be20ab1bf67c65d4700612756af2 ([flutter/engine#8359](https://github.com/flutter/engine/issues/8359)) 602b61213 Reduce z-fighting on Scenic ([flutter/engine#8318](https://github.com/flutter/engine/issues/8318)) b53e436f9 Roll src/third_party/dart a977273262..f29e100f42 (8 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Darren Austin |Made the showMenu() position parameter required ([#30206](https://github.com/flutter/flutter/issues/30206)) Made the showMenu() position parameter required as it doesn't make sense to show a menu without indicating where it should be shown. Also added a test to verify this.| +|Michael Goderbauer |Part 1: Improve Overlay API ([#28747](https://github.com/flutter/flutter/issues/28747))| +|Jonah Williams |disable jit snapshot until we know what is going on here ([#30204](https://github.com/flutter/flutter/issues/30204))| +|Dan Field |roll engine to 82765aa77db9621dfbc50801ee2709aa0a00e04d ([#30198](https://github.com/flutter/flutter/issues/30198))| +|Shi-Hao Hong |Set Max Height for ListTile trailing and leading widgets ([#29771](https://github.com/flutter/flutter/issues/29771))| +|liyuqian |Error message for setting shaderWarmUp too late ([#30145](https://github.com/flutter/flutter/issues/30145)) Developers may get confused by setting PaintingBinding.shaderWarmUp in the wrong place. The added assert and error message help avoid that.| +|Jonah Williams |Intercept errors thrown by synchronous Completers in image resolution. ([#30139](https://github.com/flutter/flutter/issues/30139))| +|Shi-Hao Hong |Add link to hero animation page ([#30059](https://github.com/flutter/flutter/issues/30059))| +|Darren Austin |Fix a misuse of matchesGoldenFile() in the physical_model_test. ([#30141](https://github.com/flutter/flutter/issues/30141)) Fixed a misuse of matchesGoldenFile() in the physical_model_test so that it correctly reports a failed test on Linux (and skips the other platforms).| +|Ian Hickson |Update PULL_REQUEST_TEMPLATE.md ([#29621](https://github.com/flutter/flutter/issues/29621)) This tries to make it more obvious when someone checks the "tests" box without actually having added tests.| +|Jonah Williams |skip .dart_tool folders when running update-packages ([#30082](https://github.com/flutter/flutter/issues/30082))| +|Jonah Williams |Add more test coverage to image handling ([#30078](https://github.com/flutter/flutter/issues/30078))| +|Christopher Fujino |Move spinner `_defaultSlowWarning` message to a new line ([#30071](https://github.com/flutter/flutter/issues/30071)) * write newline before adding slow restart message to spinner * update existing test| +|Francisco Magdaleno |Adds the keyboard mapping for Linux ([#29993](https://github.com/flutter/flutter/issues/29993))| +|engine-flutter-autoroll |Roll engine 37947f961a62..c4d14a00716f (11 commits) ([#30094](https://github.com/flutter/flutter/issues/30094)) https://github.com/flutter/engine/compare/37947f961a62...c4d14a00716f git log 37947f961a6242d2efc05a55a4319b120764a403..c4d14a00716fa616b69d51bab957aee483bdc9c2 --no-merges --oneline c4d14a007 Roll src/third_party/skia e4c67058ddb1..01a065884b7d (1 commits) ([flutter/engine#8344](https://github.com/flutter/engine/issues/8344)) 5983b7adf Roll src/third_party/dart ffee99d79b..cf32584870 (6 commits) 84c62b4c7 Build Windows shell ([flutter/engine#8331](https://github.com/flutter/engine/issues/8331)) 6415277d0 Roll src/third_party/skia 8d2c19554e4a..e4c67058ddb1 (1 commits) ([flutter/engine#8341](https://github.com/flutter/engine/issues/8341)) a0110107e Roll src/third_party/dart 991c9da720..ffee99d79b (7 commits) 2098398e1 Cleanups to run_tests.sh script ([flutter/engine#8337](https://github.com/flutter/engine/issues/8337)) 5c99138fa Build GLFW from source for Linux shell ([flutter/engine#8327](https://github.com/flutter/engine/issues/8327)) 68002458f Fix Windows build. ([flutter/engine#8336](https://github.com/flutter/engine/issues/8336)) 6d8b83677 Remove use of epoxy from Linux shell ([flutter/engine#8334](https://github.com/flutter/engine/issues/8334)) 4efc32163 Add super call in FLEView reshape ([flutter/engine#8335](https://github.com/flutter/engine/issues/8335)) cb8eb801a Allow embedders to specify their own task runner interfaces. ([flutter/engine#8273](https://github.com/flutter/engine/issues/8273)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Jonah Williams |Move binarySearch implementation in animated_list to foundation/collection.dart. ([#29860](https://github.com/flutter/flutter/issues/29860))| +|engine-flutter-autoroll |Roll engine 76200562779e..37947f961a62 (2 commits) ([#30074](https://github.com/flutter/flutter/issues/30074)) https://github.com/flutter/engine/compare/76200562779e...37947f961a62 git log 76200562779e49d34e62056b66800ac870197092..37947f961a6242d2efc05a55a4319b120764a403 --no-merges --oneline 37947f961 Allow delegation of a11y events from nodes that were not yet traversed ([flutter/engine#8333](https://github.com/flutter/engine/issues/8333)) deeb7a747 Roll src/third_party/skia 99ccc0ca87e6..8d2c19554e4a (11 commits) ([flutter/engine#8332](https://github.com/flutter/engine/issues/8332)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Shi-Hao Hong |Added Hero zero-frame animation documentation ([#30048](https://github.com/flutter/flutter/issues/30048))| +|Nizarius |CupertinoTextField: added ability to change placeholder color ([#28001](https://github.com/flutter/flutter/issues/28001))| +|Jonah Williams |Update to latest matcher ([#30019](https://github.com/flutter/flutter/issues/30019))| +|engine-flutter-autoroll |Roll engine 3a3f707d5a9b..76200562779e (2 commits) ([#30070](https://github.com/flutter/flutter/issues/30070)) https://github.com/flutter/engine/compare/3a3f707d5a9b...76200562779e git log 3a3f707d5a9b17388b60ff10b9f65b0c6a3c4134..76200562779e49d34e62056b66800ac870197092 --no-merges --oneline 762005627 Android Embedding PR22: Polish - FlutterActivity Intent factories, FlutterFragment control of render modes, FlutterSurfaceView transparent until rendering is ready. ([flutter/engine#8317](https://github.com/flutter/engine/issues/8317)) 6bd697dd4 Fix &[#34](https://github.com/flutter/flutter/issues/34);PointerEvent&[#34](https://github.com/flutter/flutter/issues/34); flow end event ([flutter/engine#8319](https://github.com/flutter/engine/issues/8319)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Jonah Williams |Make timeout durations configurable ([#30053](https://github.com/flutter/flutter/issues/30053))| +|xster |Cupertino localization step 1.5: fix a resource mismatch in cupertino_en.arb ([#29821](https://github.com/flutter/flutter/issues/29821))| +|engine-flutter-autoroll |Roll engine 0d83a2ecd1bb..3a3f707d5a9b (25 commits) ([#30063](https://github.com/flutter/flutter/issues/30063)) https://github.com/flutter/engine/compare/0d83a2ecd1bb...3a3f707d5a9b git log 0d83a2ecd1bb78f8e1f0ed9719ff3751cdfdd064..3a3f707d5a9b17388b60ff10b9f65b0c6a3c4134 --no-merges --oneline 3a3f707d5 Reland &[#34](https://github.com/flutter/flutter/issues/34);Allow specification of std::functions as native entrypoints from Dart code.&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8329](https://github.com/flutter/engine/issues/8329)) d4275d9ee Roll src/third_party/skia 576eb87a2d2d..99ccc0ca87e6 (5 commits) ([flutter/engine#8328](https://github.com/flutter/engine/issues/8328)) 3a415c4f1 Map glfw into third_party, and roll buildroot ([flutter/engine#8308](https://github.com/flutter/engine/issues/8308)) ce9ea5869 [fuchsia] Disable FML_TRACE_COUNTER events to unblock roll ([flutter/engine#8325](https://github.com/flutter/engine/issues/8325)) 48496588c Roll src/third_party/dart 8a92d2a8d9..991c9da720 (2 commits) 20c241ac3 Roll src/third_party/skia c476e5da4fef..576eb87a2d2d (7 commits) ([flutter/engine#8324](https://github.com/flutter/engine/issues/8324)) cadcf1c58 Roll src/third_party/dart f3fd1943fc..8a92d2a8d9 (16 commits) 66141eb8e Roll src/third_party/skia d1c271bd39f0..c476e5da4fef (2 commits) ([flutter/engine#8322](https://github.com/flutter/engine/issues/8322)) e5b31cdd9 Roll src/third_party/skia cec20280b3fb..d1c271bd39f0 (3 commits) ([flutter/engine#8321](https://github.com/flutter/engine/issues/8321)) 1daff5ce1 Roll src/third_party/skia bf341ae88c83..cec20280b3fb (3 commits) ([flutter/engine#8320](https://github.com/flutter/engine/issues/8320)) 87db585ad Roll src/third_party/skia 45d5f702133e..bf341ae88c83 (2 commits) ([flutter/engine#8316](https://github.com/flutter/engine/issues/8316)) fd7d7fa5a Add a11y support for embedded iOS platform view ([flutter/engine#8156](https://github.com/flutter/engine/issues/8156)) f64ee01e1 Roll src/third_party/skia d2ca31218bc4..45d5f702133e (11 commits) ([flutter/engine#8315](https://github.com/flutter/engine/issues/8315)) f521df383 Fixed service isolate not being initialized correctly due to bad name ([flutter/engine#8251](https://github.com/flutter/engine/issues/8251)) 80b825ce8 Roll src/third_party/dart 093c2909fe..f3fd1943fc (13 commits) ([flutter/engine#8310](https://github.com/flutter/engine/issues/8310)) 7e77d5c48 Revert &[#34](https://github.com/flutter/flutter/issues/34);Allow specification of std::functions as native entrypoints from Dart code. ([#8309](https://github.com/flutter/flutter/issues/8309))&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8312](https://github.com/flutter/engine/issues/8312)) 400a86a62 Allow specification of std::functions as native entrypoints from Dart code. ([flutter/engine#8309](https://github.com/flutter/engine/issues/8309)) 51f23fedf [vulkan] Add FUCHSIA external sem/mem extensions 78de8dcb4 Enable lambda like native callbacks in tests and add support for custom entrypoints. ([flutter/engine#8299](https://github.com/flutter/engine/issues/8299)) 2812c7db4 Roll src/third_party/skia 62fd6c411622..d2ca31218bc4 (9 commits) ([flutter/engine#8307](https://github.com/flutter/engine/issues/8307)) 95f9134e9 Roll src/third_party/skia d90004516a63..62fd6c411622 (4 commits) ([flutter/engine#8306](https://github.com/flutter/engine/issues/8306)) 358273bd2 Roll src/third_party/skia 33211b2c7a02..d90004516a63 (1 commits) ([flutter/engine#8305](https://github.com/flutter/engine/issues/8305)) 2804057bf Roll src/third_party/skia 80dd599e91d0..33211b2c7a02 (1 commits) ([flutter/engine#8303](https://github.com/flutter/engine/issues/8303)) a673bbf6f Roll src/third_party/skia c5ee499f2c59..80dd599e91d0 (5 commits) ([flutter/engine#8301](https://github.com/flutter/engine/issues/8301)) d88037dc0 Roll src/third_party/dart fa74184b7a..093c2909fe (71 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (bmparr@google.com), and stop the roller if necessary.| +|Jonah Williams |Pass FLUTTER_TOOL_ARGS to snapshot command. ([#29938](https://github.com/flutter/flutter/issues/29938))| +|Kate Lovett |Embedding new diagrams for API Docs ([#29697](https://github.com/flutter/flutter/issues/29697)) * Embedding new diarams for API docs: Container, ListView, Align. * Moving the diagrams to be enclosed within the snippet windows. * Fixed wording for the alt image text.| +|Jonah Williams |ensure packages file is updated when using build_runner ([#29885](https://github.com/flutter/flutter/issues/29885))| +|Chris Yang |Include platformViewId in semantics tree for iOS ([#29304](https://github.com/flutter/flutter/issues/29304)) Include the platformViewId of PlatformViews in the semantics tree. The accessibility bridge in the engine can use this id to steal the semantics nodes from the actual platform view and stick them into Flutter's semantics tree. It is the iOS PlatformView counter part of https://github.com/flutter/flutter/pull/28953. It reverts the change in https://github.com/flutter/flutter/pull/28953/commits/5b5d6e89ec50f8f51766fb778d0e244f183a5000 and https://github.com/flutter/flutter/pull/28953/commits/03fd797eb8955561c2654b51035175202a25da9d. https://github.com/flutter/flutter/issues/29302| +|Jonah Williams |Lazy cache 5: The Empire Strikes Back ([#29986](https://github.com/flutter/flutter/issues/29986))| +|xster |Let CupertinoPageScaffold have tap status bar to scroll to top ([#29946](https://github.com/flutter/flutter/issues/29946))| +|liyuqian |Change `-c` to `--enable-asserts` ([#30055](https://github.com/flutter/flutter/issues/30055)) Unblock the engine roll that includes the Dart roll that removes `-c`.| +|LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com>|update CupertinoSwitch documentation ([#29987](https://github.com/flutter/flutter/issues/29987)) Documented CupertinoSwitch.value that it can't be null and added an assertion value != null in the constructor. Related issue: [#12948](https://github.com/flutter/flutter/issues/12948)| +|Justin McCandless |Docs explaining how to avoid the problem of height toggling with error ([#29811](https://github.com/flutter/flutter/issues/29811)) Documentation that explains a common use case seen in Github issues where users were surprised by TextFormField growth to accommodate validation messages.| +|LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com>|Remove unwanted gap between navigation bar and safe area's child ([#29943](https://github.com/flutter/flutter/issues/29943)) Remove the additional top padding from CupertinoPageScaffold's MediaQuery when the navigation bar is opaque (as the padding was already consumed by the navigation bar). Related Issue: [#29136](https://github.com/flutter/flutter/issues/29136)| +|Dwayne Slater |Allow PointerEnterEvent and PointerExitEvents to be created from any PointerEvent ([#28602](https://github.com/flutter/flutter/issues/28602)) Avoids an implicit downcast + crash in MouseTracker, since the last pointer event can be a Move or Down event, in addition to Hover.| +|rami-a <2364772+rami-a@users.noreply.github.com>|Fix issue with account drawer header arrow rotating when setState is called ([#29980](https://github.com/flutter/flutter/issues/29980)) The UserAccountsDrawerHeader had a bug with the arrow rotating whenever setState was called on its parent. This change makes sure that we check that the state actually changed before allowing the animation to trigger. Fixes [#25801](https://github.com/flutter/flutter/issues/25801)| +|Jonah Williams |Watch wildcard directories in addition to asset bundle ([#29883](https://github.com/flutter/flutter/issues/29883))| +|Jonah Williams |ensure that fe server is always built with tool ([#29768](https://github.com/flutter/flutter/issues/29768))| +|Dan Field |Avoid overwriting task result for non-leak checkers ([#29989](https://github.com/flutter/flutter/issues/29989))| +|Kate Lovett |Linking Higher & Lower Class Docs ([#29758](https://github.com/flutter/flutter/issues/29758)) * Adding linking between higher and lower level classes in the API Docs. ref:[#22859](https://github.com/flutter/flutter/issues/22859) * Fixed links between classes.| +|Jonah Williams |Revert "Lazy cache 4 ([#29785](https://github.com/flutter/flutter/issues/29785))" ([#29985](https://github.com/flutter/flutter/issues/29985))| +|Amir Hardon |Limit the semantic nodes ID range to 2^16 ([#29928](https://github.com/flutter/flutter/issues/29928)) This PR limits the framework generated semantic node IDs to be smaller than 2^16, this allows to safely generate semantic node in the engine with IDs >= 2^16 avoiding ID collision (which is done in [flutter/engine#8250](https://github.com/flutter/engine/issues/8250)).| +|Zachary Anderson |[fuchsia] Fix flutter_tool BUILD.gn deps ([#29942](https://github.com/flutter/flutter/issues/29942))| +|Jonah Williams |Lazy cache 4 ([#29785](https://github.com/flutter/flutter/issues/29785))| +|hyjfine |Let CupertinoTextField's clear button also call onChanged ([#29474](https://github.com/flutter/flutter/issues/29474))| +|engine-flutter-autoroll |Roll engine af64f725f6c7..0d83a2ecd1bb (2 commits) ([#29948](https://github.com/flutter/flutter/issues/29948)) https://github.com/flutter/engine/compare/af64f725f6c7...0d83a2ecd1bb git log af64f725f6c74f5d1287a8be8511691119354088..0d83a2ecd1bb78f8e1f0ed9719ff3751cdfdd064 --no-merges --oneline 0d83a2ecd Roll src/third_party/skia 15dc59e65cfa..c5ee499f2c59 (2 commits) ([flutter/engine#8298](https://github.com/flutter/engine/issues/8298)) 42d062f95 [fuchsia] Add missing trace macros ([flutter/engine#8297](https://github.com/flutter/engine/issues/8297)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Jonah Williams |Fix cache location, artifacts, and re-enable dart2js test ([#29783](https://github.com/flutter/flutter/issues/29783))| +|engine-flutter-autoroll |Roll engine dd6be2fd8371..af64f725f6c7 (3 commits) ([#29944](https://github.com/flutter/flutter/issues/29944)) https://github.com/flutter/engine/compare/dd6be2fd8371...af64f725f6c7 git log dd6be2fd83710de8392fb554927a5d495684a13e..af64f725f6c74f5d1287a8be8511691119354088 --no-merges --oneline af64f725f Fixing links between higher and lower classes. ([flutter/engine#8295](https://github.com/flutter/engine/issues/8295)) 22ee8ee08 Migrate existing embedder unit tests to use the fixture. ([flutter/engine#8296](https://github.com/flutter/engine/issues/8296)) 345ae7d37 Delegate a11y events and action to/from embedded Android platform views. ([flutter/engine#8250](https://github.com/flutter/engine/issues/8250)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|liyuqian |Remove tranparent paint hack from BackdropFilter ([#29929](https://github.com/flutter/flutter/issues/29929)) We can remove the hack because https://github.com/flutter/engine/pull/8183 has been rolled into the framework.| +|engine-flutter-autoroll |Roll engine 3a445cec8a51..dd6be2fd8371 (2 commits) ([#29937](https://github.com/flutter/flutter/issues/29937)) https://github.com/flutter/engine/compare/3a445cec8a51...dd6be2fd8371 git log 3a445cec8a51056e5903c12659b6fc97138e57db..dd6be2fd83710de8392fb554927a5d495684a13e --no-merges --oneline dd6be2fd8 Roll src/third_party/skia 42197c0bc68e..15dc59e65cfa (19 commits) ([flutter/engine#8294](https://github.com/flutter/engine/issues/8294)) d6ead18f4 Make it easy to write embedder unit tests by creating a fixture and config builder. ([flutter/engine#8276](https://github.com/flutter/engine/issues/8276)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine dcc72c7176bc..3a445cec8a51 (4 commits) ([#29924](https://github.com/flutter/flutter/issues/29924)) https://github.com/flutter/engine/compare/dcc72c7176bc...3a445cec8a51 git log dcc72c7176bcaa9fc9fa3798542f764ca6fe4ebc..3a445cec8a51056e5903c12659b6fc97138e57db --no-merges --oneline 3a445cec8 Roll src/third_party/skia cd54466473fe..42197c0bc68e (10 commits) ([flutter/engine#8292](https://github.com/flutter/engine/issues/8292)) fcc63e7d0 Roll src/third_party/skia 2e2fa9e3a06b..cd54466473fe (2 commits) ([flutter/engine#8291](https://github.com/flutter/engine/issues/8291)) 1b1209881 Roll src/third_party/skia c9f746cfb9f4..2e2fa9e3a06b (1 commits) ([flutter/engine#8290](https://github.com/flutter/engine/issues/8290)) b5813917f Roll src/third_party/skia e9a53fe3526a..c9f746cfb9f4 (1 commits) ([flutter/engine#8288](https://github.com/flutter/engine/issues/8288)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Danny Tuppeny |Update Twitter handle @flutterio -> @FlutterDev ([#29908](https://github.com/flutter/flutter/issues/29908)) The @flutterio account now just directs people to @FlutterDev: https://twitter.com/flutterio| +|Jonah Williams |wrap Timeline calls in assert ([#29861](https://github.com/flutter/flutter/issues/29861))| +|Jonah Williams |Update upgrade to reset off of hotfix branches ([#29786](https://github.com/flutter/flutter/issues/29786))| +|Jonah Williams |dont fail build if codegen fails ([#29818](https://github.com/flutter/flutter/issues/29818))| +|engine-flutter-autoroll |dcc72c717 Roll src/third_party/skia d79c95e8bcf2..e9a53fe3526a (1 commits) ([flutter/engine#8287](https://github.com/flutter/engine/issues/8287)) ([#29874](https://github.com/flutter/flutter/issues/29874)) https://github.com/flutter/engine/compare/d2bba21af27a...dcc72c7176bc git log d2bba21af27a8d3f30c66aa014f324c786f3fb4e..dcc72c7176bcaa9fc9fa3798542f764ca6fe4ebc --no-merges --oneline dcc72c717 Roll src/third_party/skia d79c95e8bcf2..e9a53fe3526a (1 commits) ([flutter/engine#8287](https://github.com/flutter/engine/issues/8287)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 9f878fcb3ecd..d2bba21af27a (6 commits) ([#29869](https://github.com/flutter/flutter/issues/29869)) https://github.com/flutter/engine/compare/9f878fcb3ecd...d2bba21af27a git log 9f878fcb3ecdcc2c6ba0c6d958282c176f008183..d2bba21af27a8d3f30c66aa014f324c786f3fb4e --no-merges --oneline d2bba21af Roll src/third_party/skia ab4c138c0ef3..d79c95e8bcf2 (2 commits) ([flutter/engine#8286](https://github.com/flutter/engine/issues/8286)) cee2bd732 Roll src/third_party/skia 97d957d1db65..ab4c138c0ef3 (3 commits) ([flutter/engine#8285](https://github.com/flutter/engine/issues/8285)) ef3cbe8ac Roll src/third_party/skia 4c0b5c4b79dd..97d957d1db65 (1 commits) ([flutter/engine#8284](https://github.com/flutter/engine/issues/8284)) bd4f6d726 Roll src/third_party/skia b1dbbc8509c6..4c0b5c4b79dd (2 commits) ([flutter/engine#8283](https://github.com/flutter/engine/issues/8283)) 8d23b21d1 Roll src/third_party/skia 61bd91237778..b1dbbc8509c6 (2 commits) ([flutter/engine#8282](https://github.com/flutter/engine/issues/8282)) 61838cab6 Roll src/third_party/skia ec1c6fdfdd11..61bd91237778 (1 commits) ([flutter/engine#8280](https://github.com/flutter/engine/issues/8280)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |9f878fcb3 Roll src/third_party/skia e86cc5039026..ec1c6fdfdd11 (1 commits) ([flutter/engine#8279](https://github.com/flutter/engine/issues/8279)) ([#29836](https://github.com/flutter/flutter/issues/29836)) https://github.com/flutter/engine/compare/62c88d690272...9f878fcb3ecd git log 62c88d690272f0b78047758bb9d8ffa8bbb870cc..9f878fcb3ecdcc2c6ba0c6d958282c176f008183 --no-merges --oneline 9f878fcb3 Roll src/third_party/skia e86cc5039026..ec1c6fdfdd11 (1 commits) ([flutter/engine#8279](https://github.com/flutter/engine/issues/8279)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |62c88d690 Roll src/third_party/skia 33332f1e100c..e86cc5039026 (1 commits) ([flutter/engine#8278](https://github.com/flutter/engine/issues/8278)) ([#29832](https://github.com/flutter/flutter/issues/29832)) https://github.com/flutter/engine/compare/f8e3a40f9ba7...62c88d690272 git log f8e3a40f9ba701120724b5d6e8ff790d50f18083..62c88d690272f0b78047758bb9d8ffa8bbb870cc --no-merges --oneline 62c88d690 Roll src/third_party/skia 33332f1e100c..e86cc5039026 (1 commits) ([flutter/engine#8278](https://github.com/flutter/engine/issues/8278)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 5f8ae420c1ac..f8e3a40f9ba7 (2 commits) ([#29830](https://github.com/flutter/flutter/issues/29830)) https://github.com/flutter/engine/compare/5f8ae420c1ac...f8e3a40f9ba7 git log 5f8ae420c1ac61bbbb26e61251d129c879fc788d..f8e3a40f9ba701120724b5d6e8ff790d50f18083 --no-merges --oneline f8e3a40f9 Roll buildroot to 9c7b023ff266ee58b00fe60326fa1db910a087f3 ([flutter/engine#8277](https://github.com/flutter/engine/issues/8277)) c12696cc5 Roll src/third_party/skia f9264bac4e99..33332f1e100c (27 commits) ([flutter/engine#8275](https://github.com/flutter/engine/issues/8275)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Jonah Williams |roll engine to 5f8ae420c1ac61bbbb26e61251d129c879fc788d ([#29817](https://github.com/flutter/flutter/issues/29817))| +|Mouad Debbar |Add support for text selection via mouse to Cupertino text fields ([#29769](https://github.com/flutter/flutter/issues/29769))| +|Alexandre Ardhuin |some formatting of map, parameters and spaces ([#29760](https://github.com/flutter/flutter/issues/29760))| +|Dan Field |Detect and cleanup leaky processes ([#29196](https://github.com/flutter/flutter/issues/29196)) * Detect and cleanup leaky processes * Add flaky tests for detecting leaked processes| +|Luka Knezic |Update CupertinoTextField ([#29008](https://github.com/flutter/flutter/issues/29008))| +|Abhijeeth Padarthi |Removes unnecessary "new" in documentation ([#29779](https://github.com/flutter/flutter/issues/29779))| +|Amir Hardon |Revert "Update upgrade to rebase and stash local changes. ([#29192](https://github.com/flutter/flutter/issues/29192))" ([#29780](https://github.com/flutter/flutter/issues/29780)) This reverts commit e38be671a77b6c09dceb74ad2e63cc4b8671c83d.| +|engine-flutter-autoroll |Roll engine d4d4883216fd..b68f7e72aa71 (7 commits) ([#29776](https://github.com/flutter/flutter/issues/29776)) https://github.com/flutter/engine/compare/d4d4883216fd...b68f7e72aa71 git log d4d4883216fd1c1dfc17d41418a960c002cfff57..b68f7e72aa71eb75969bd674d78a5b40ee5ed89f --no-merges --oneline b68f7e72a Allow specifying an alternate Mac host SDK. ([flutter/engine#8249](https://github.com/flutter/engine/issues/8249)) 3df694300 Roll src/third_party/dart cabaa78cc5..ba0147ac07 (3 commits) ([flutter/engine#8248](https://github.com/flutter/engine/issues/8248)) 69c4d82f5 Roll src/third_party/skia d6ab77a2e20f..19fb3971bca5 (17 commits) ([flutter/engine#8245](https://github.com/flutter/engine/issues/8245)) 06635d38a Mirror Android platform views a11y tree in the Flutter a11y tree. ([flutter/engine#8237](https://github.com/flutter/engine/issues/8237)) 28433c513 FlutterJNI no longer asserts it is attached when dispatching platform messages and instead fizzles with a warning if not attached. Not sure what root cause of issue is, but this is necessary to avoid crashes. ([flutter/engine#8246](https://github.com/flutter/engine/issues/8246)) 1addfb596 Roll src/third_party/dart 5e9df35a57..cabaa78cc5 (36 commits) ([flutter/engine#8244](https://github.com/flutter/engine/issues/8244)) 13e3b7101 Roll src/third_party/skia a695da930510..d6ab77a2e20f (11 commits) ([flutter/engine#8243](https://github.com/flutter/engine/issues/8243)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Jonah Williams |update fuchsia-attach ([#29764](https://github.com/flutter/flutter/issues/29764))| +|Jonah Williams |Use Dart version in script cache check ([#29721](https://github.com/flutter/flutter/issues/29721))| +|xster |Add heart shapes to CupertinoIcons ([#29630](https://github.com/flutter/flutter/issues/29630))| +|Michael Goderbauer |Fix transition to stock details ([#29638](https://github.com/flutter/flutter/issues/29638))| +|Rubens de Melo |Include brackets on OutlineButton doc ([#29654](https://github.com/flutter/flutter/issues/29654))| +|Jonah Williams |Update upgrade to rebase and stash local changes. ([#29192](https://github.com/flutter/flutter/issues/29192))| +|Jonah Williams |Allowing adding/updating packages during hot reload ([#29747](https://github.com/flutter/flutter/issues/29747))| +|Mouad Debbar |Avoid flickering while dragging to select text ([#29563](https://github.com/flutter/flutter/issues/29563))| +|Jonah Williams |Enable code generation features in tool ([#29399](https://github.com/flutter/flutter/issues/29399))| +|Jonah Williams |Revert "Enable platform views for Flutter Gallery on iOS. ([#29632](https://github.com/flutter/flutter/issues/29632))" ([#29754](https://github.com/flutter/flutter/issues/29754))| +|Amir Hardon |Enable platform views for Flutter Gallery on iOS. ([#29632](https://github.com/flutter/flutter/issues/29632)) This results in running Flutter Gallery with one less thread (platform and gpu threads are the the same). This is very likely to cause a regression in the iOS Gallery benchmarks. I'm mainly interested in landing this to see how much the benchmarks regress, and it's likely that we will revert it shortly after landing.| +|Shayne Kelly II |Update DropdownButton underline to be customizable ([#29138](https://github.com/flutter/flutter/issues/29138))| +|Christopher Fujino |Fix more tests for ANSI terminals ([#29699](https://github.com/flutter/flutter/issues/29699)) * have tests that log error messages use a FakePlatform that does not support Ansi color, to fix tests started from color terminals * add the override to the other tests too, in case someone copy & pastes them in the future for a test involving an error message| +|Jonah Williams |fix asset reloading ([#29469](https://github.com/flutter/flutter/issues/29469))| +|engine-flutter-autoroll |Roll engine 250b99bd275a..d4d4883216fd (3 commits) ([#29742](https://github.com/flutter/flutter/issues/29742)) https://github.com/flutter/engine/compare/250b99bd275a...d4d4883216fd git log 250b99bd275ad7622f239a8042f6a6d31b5b95f1..d4d4883216fd1c1dfc17d41418a960c002cfff57 --no-merges --oneline d4d488321 Roll src/third_party/skia 174a3f61fd5d..a695da930510 (2 commits) ([flutter/engine#8242](https://github.com/flutter/engine/issues/8242)) 2d5376c09 Roll src/third_party/skia 2c4ceca62d27..174a3f61fd5d (1 commits) ([flutter/engine#8239](https://github.com/flutter/engine/issues/8239)) b05399901 Roll src/third_party/skia e409441aee0d..2c4ceca62d27 (1 commits) ([flutter/engine#8238](https://github.com/flutter/engine/issues/8238)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |250b99bd2 Roll src/third_party/skia 4652930a7dfc..e409441aee0d (1 commits) ([flutter/engine#8236](https://github.com/flutter/engine/issues/8236)) ([#29719](https://github.com/flutter/flutter/issues/29719)) https://github.com/flutter/engine/compare/fa435385b6b9...250b99bd275a git log fa435385b6b9f80080997dd38ad66bbe4bb0a152..250b99bd275ad7622f239a8042f6a6d31b5b95f1 --no-merges --oneline 250b99bd2 Roll src/third_party/skia 4652930a7dfc..e409441aee0d (1 commits) ([flutter/engine#8236](https://github.com/flutter/engine/issues/8236)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Alexander Aprelev |Use source list from the compiler to track invalidated files for hot reload. ([#29693](https://github.com/flutter/flutter/issues/29693)) * Use source list from the compiler to track invalidated files. * Revert accidental change * Fix first-time-seen-the-file logic * Fix/simplify invalidate logic now that we can rely on compiler to let us know what is the cut-off point for invalidation. * Update devfs mock to accommodate for new fields * Fix deleted files case * Analyzer found missing final| +|engine-flutter-autoroll |Roll engine 188adf7e5ec5..fa435385b6b9 (2 commits) ([#29715](https://github.com/flutter/flutter/issues/29715)) https://github.com/flutter/engine/compare/188adf7e5ec5...fa435385b6b9 git log 188adf7e5ec521f7859d5a0a1609fdcb688436b2..fa435385b6b9f80080997dd38ad66bbe4bb0a152 --no-merges --oneline fa435385b Use the GPU thread for Android surface on-screen context lifecycle operations ([flutter/engine#8234](https://github.com/flutter/engine/issues/8234)) 10e1addd8 Roll src/third_party/skia 7e2c0614a2fd..4652930a7dfc (5 commits) ([flutter/engine#8232](https://github.com/flutter/engine/issues/8232)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine d8c89e2bfe9b..188adf7e5ec5 (3 commits) ([#29709](https://github.com/flutter/flutter/issues/29709)) https://github.com/flutter/engine/compare/d8c89e2bfe9b...188adf7e5ec5 git log d8c89e2bfe9b0b0d50da41c1349ef1534517c3c8..188adf7e5ec521f7859d5a0a1609fdcb688436b2 --no-merges --oneline 188adf7e5 Removed Activity reference from AccessibilityBridge by using a View for insets instead of the Activity ([#18115](https://github.com/flutter/flutter/issues/18115)) ([flutter/engine#8231](https://github.com/flutter/engine/issues/8231)) d452dd5c3 Initial import of GLFW Linux shell from FDE ([flutter/engine#8159](https://github.com/flutter/engine/issues/8159)) 512004503 Remove jsoncpp from desktop Linux shell setup ([flutter/engine#8230](https://github.com/flutter/engine/issues/8230)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Dan Field |Reland composite physical layers for all platforms ([#29701](https://github.com/flutter/flutter/issues/29701)) * Composite physical layers even if elevation is 0| +|engine-flutter-autoroll |d8c89e2bf Add the Linux desktop setup script to Dockerfile ([flutter/engine#8227](https://github.com/flutter/engine/issues/8227)) ([#29703](https://github.com/flutter/flutter/issues/29703)) https://github.com/flutter/engine/compare/6a8a45fc4f69...d8c89e2bfe9b git log 6a8a45fc4f698364d03b5902c1818d2acc79db22..d8c89e2bfe9b0b0d50da41c1349ef1534517c3c8 --no-merges --oneline d8c89e2bf Add the Linux desktop setup script to Dockerfile ([flutter/engine#8227](https://github.com/flutter/engine/issues/8227)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Anthony |[Material] Create a FloatingActionButton ThemeData and honor it within the FloatingActionButton ([#28735](https://github.com/flutter/flutter/issues/28735)) Adds a FloatingActionButtonThemeData so that FABs can be themed at the Theme level and independently. The properties that are now on the theme must be defaulted at the build level, in order to respect any contributing theme properties. Because of this, some tests had to be modified to look at properties after they are built. Also, since default behaviors are now tested in the FAB Theme test, some default tests in the FAB test no longer applied and were removed. The themable properties are: -backgroundColor -foregroundColor -elevation -disabledElevation -highlightElevation -shape| +|Jonah Williams |Download secondary SDK ([#29633](https://github.com/flutter/flutter/issues/29633))| +|Jonah Williams |Add builders and engine hash to fingerprint ([#29434](https://github.com/flutter/flutter/issues/29434))| +|engine-flutter-autoroll |Roll engine 96ad0c8926b0..6a8a45fc4f69 (16 commits) ([#29698](https://github.com/flutter/flutter/issues/29698)) https://github.com/flutter/engine/compare/96ad0c8926b0...6a8a45fc4f69 git log 96ad0c8926b0493d4276a39ee9bc6de6fa97bece..6a8a45fc4f698364d03b5902c1818d2acc79db22 --no-merges --oneline 6a8a45fc4 Have the AccessibilityBridge attach/detach itself to the ([flutter/engine#8229](https://github.com/flutter/engine/issues/8229)) 45b19e47c Roll src/third_party/skia ba91f65f2070..7e2c0614a2fd (13 commits) ([flutter/engine#8228](https://github.com/flutter/engine/issues/8228)) 1dbd2046b Moved io.flutter.embedding.engine.android package to io.flutter.embedding.android ([flutter/engine#8221](https://github.com/flutter/engine/issues/8221)) bb354363e Roll src/third_party/dart 70e3e67dd7..5e9df35a57 (45 commits) 3b19a4d30 Removed dart_plugin_tag from DEPS d9b6629b6 Roll src/third_party/skia 4273a150f84d..ba91f65f2070 (6 commits) ([flutter/engine#8225](https://github.com/flutter/engine/issues/8225)) e88573aef Roll src/third_party/skia d7d93001ead2..4273a150f84d (1 commits) ([flutter/engine#8224](https://github.com/flutter/engine/issues/8224)) be9067cc7 Roll src/third_party/skia 37a9294d2eb9..d7d93001ead2 (2 commits) ([flutter/engine#8223](https://github.com/flutter/engine/issues/8223)) ee4abba58 Roll src/third_party/skia 2894d13a0d9b..37a9294d2eb9 (1 commits) ([flutter/engine#8222](https://github.com/flutter/engine/issues/8222)) 3496156bd Roll src/third_party/skia dd0544078d05..2894d13a0d9b (33 commits) ([flutter/engine#8220](https://github.com/flutter/engine/issues/8220)) a1dcb2ea9 [ios] Set contentsScale before we commit CATransaction ([flutter/engine#8218](https://github.com/flutter/engine/issues/8218)) fa1931f6a Send macOS keyboard data to the engine ([flutter/engine#8219](https://github.com/flutter/engine/issues/8219)) 45f69ac47 Plumb a reference of PlatformViewsController and AccessibilityBridge to each other ([flutter/engine#8208](https://github.com/flutter/engine/issues/8208)) 7cbbdb400 libtxt: more accurate tracking of run positioning and width for justified text ([flutter/engine#8214](https://github.com/flutter/engine/issues/8214)) 172810342 Add a build dependencies script for Linux desktop ([flutter/engine#8160](https://github.com/flutter/engine/issues/8160)) d764b69b2 Add docs for helpful commands to fix format ([flutter/engine#8171](https://github.com/flutter/engine/issues/8171)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Alexandre Ardhuin |some spaces formatting ([#29452](https://github.com/flutter/flutter/issues/29452)) * some space formattings * always use blocks in if-else if a block is used * format spaces in for and while * allow multiline if conditions * fix missing space| +|Marco Scannadinari <4211302+marcoms@users.noreply.github.com>|Adjust remaining Cupertino route animations to match native ([#28597](https://github.com/flutter/flutter/issues/28597))| +|Fedor Korotkov |Speed up CI via mojave-flutter image ([#29669](https://github.com/flutter/flutter/issues/29669))| +|Michael Goderbauer |Fix links on homepage of API docs ([#29641](https://github.com/flutter/flutter/issues/29641))| +|Lau Ching Jun |Fix typo ([#29625](https://github.com/flutter/flutter/issues/29625))| +|Jonah Williams |Improve flutter test startup time ([#29404](https://github.com/flutter/flutter/issues/29404))| +|Shi-Hao Hong |DropdownButton Icon customizability ([#29572](https://github.com/flutter/flutter/issues/29572))| +|Amir Hardon |Revert last 2 engine rolls. ([#29684](https://github.com/flutter/flutter/issues/29684)) Reverting to the engine version prior to: https://github.com/flutter/flutter/pull/29658| +|engine-flutter-autoroll |3496156bd Roll src/third_party/skia dd0544078d05..2894d13a0d9b (33 commits) ([flutter/engine#8220](https://github.com/flutter/engine/issues/8220)) ([#29659](https://github.com/flutter/flutter/issues/29659)) https://github.com/flutter/engine/compare/a1dcb2ea987e...3496156bd9bf git log a1dcb2ea987efe0e257832160a1b0583ac219584..3496156bd9bfe61788bf64ce3ca3cf1bc2663f95 --no-merges --oneline 3496156bd Roll src/third_party/skia dd0544078d05..2894d13a0d9b (33 commits) ([flutter/engine#8220](https://github.com/flutter/engine/issues/8220)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 96ad0c8926b0..a1dcb2ea987e (6 commits) ([#29658](https://github.com/flutter/flutter/issues/29658)) https://github.com/flutter/engine/compare/96ad0c8926b0...a1dcb2ea987e git log 96ad0c8926b0493d4276a39ee9bc6de6fa97bece..a1dcb2ea987efe0e257832160a1b0583ac219584 --no-merges --oneline a1dcb2ea9 [ios] Set contentsScale before we commit CATransaction ([flutter/engine#8218](https://github.com/flutter/engine/issues/8218)) fa1931f6a Send macOS keyboard data to the engine ([flutter/engine#8219](https://github.com/flutter/engine/issues/8219)) 45f69ac47 Plumb a reference of PlatformViewsController and AccessibilityBridge to each other ([flutter/engine#8208](https://github.com/flutter/engine/issues/8208)) 7cbbdb400 libtxt: more accurate tracking of run positioning and width for justified text ([flutter/engine#8214](https://github.com/flutter/engine/issues/8214)) 172810342 Add a build dependencies script for Linux desktop ([flutter/engine#8160](https://github.com/flutter/engine/issues/8160)) d764b69b2 Add docs for helpful commands to fix format ([flutter/engine#8171](https://github.com/flutter/engine/issues/8171)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Ben Konyi |Manual engine roll for 2019-03-19 ([#29627](https://github.com/flutter/flutter/issues/29627)) * Manual engine roll for 2019-03-19 * Applying patch for Dart SDK changes (see PR [#29004](https://github.com/flutter/flutter/issues/29004))| +|Jonah Williams |prevent stream notifications from interfering with reload ([#29467](https://github.com/flutter/flutter/issues/29467))| +|engine-flutter-autoroll |571964e1d Allow exported __const on iOS ([flutter/engine#8217](https://github.com/flutter/engine/issues/8217)) ([#29624](https://github.com/flutter/flutter/issues/29624)) https://github.com/flutter/engine/compare/e28fc3c810ee...571964e1d7b4 git log e28fc3c810ee3c62ad201bc49f4934f0ed20a82c..571964e1d7b49e5424c800b461006207d670736f --no-merges --oneline 571964e1d Allow exported __const on iOS ([flutter/engine#8217](https://github.com/flutter/engine/issues/8217)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Dan Field |Revert "Reland composite physical layers on all platforms ([#29532](https://github.com/flutter/flutter/issues/29532))" ([#29623](https://github.com/flutter/flutter/issues/29623)) This reverts commit 803b15e0db9606f6f4c84925f9c6cb369be72394.| +|Shi-Hao Hong |added friendlier error for invalid AndroidManifest.xml ([#29604](https://github.com/flutter/flutter/issues/29604))| +|Phil Quitslund |make literals const for @immutable constructors ([#29619](https://github.com/flutter/flutter/issues/29619))| +|Hans Muller |Update progress indicator API docs ([#29564](https://github.com/flutter/flutter/issues/29564))| +|engine-flutter-autoroll |Roll engine 5088735e5f54..e28fc3c810ee (9 commits) ([#29615](https://github.com/flutter/flutter/issues/29615)) https://github.com/flutter/engine/compare/5088735e5f54...e28fc3c810ee git log 5088735e5f54f7fb34215b6665cb4da1fd8f075d..e28fc3c810ee3c62ad201bc49f4934f0ed20a82c --no-merges --oneline e28fc3c81 Define the dart_platform_sdk GN variable only on host targets ([flutter/engine#8206](https://github.com/flutter/engine/issues/8206)) e73dbf6a6 Roll src/third_party/skia 389b4b267d15..7eba20aef187 (2 commits) ([flutter/engine#8209](https://github.com/flutter/engine/issues/8209)) bc8ebcb96 Export FlutterSemanticsUpdateNotification and improve docs ([flutter/engine#8203](https://github.com/flutter/engine/issues/8203)) b404c69fd [scenic][SCN-1054] Move back off of SetTranslationRH ([flutter/engine#8174](https://github.com/flutter/engine/issues/8174)) 71e2d7d8c Roll src/third_party/skia 4a522b7e916c..389b4b267d15 (32 commits) ([flutter/engine#8205](https://github.com/flutter/engine/issues/8205)) ad5b722a7 Simplify the fallback waiter and add traces for vsync scheduling overhead. ([flutter/engine#8185](https://github.com/flutter/engine/issues/8185)) 6980a8356 [platform_view] iOSP platformView composition optimize. ([flutter/engine#8202](https://github.com/flutter/engine/issues/8202)) 568841923 Disable build_ios due to large queue times. ([flutter/engine#8204](https://github.com/flutter/engine/issues/8204)) 629072277 Merge only gpu and platform threads for platform views, fix deadlock. ([flutter/engine#8045](https://github.com/flutter/engine/issues/8045)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Jonah Williams |remove explicit frame schedule ([#29461](https://github.com/flutter/flutter/issues/29461))| +|Priit Lätt |Use async execution for xcodebuild commands ([#29048](https://github.com/flutter/flutter/issues/29048))| +|Brian Wilkerson |Update another SDK constraint ([#29454](https://github.com/flutter/flutter/issues/29454))| +|Dan Field |Remove timeout from add2app test for iOS ([#28746](https://github.com/flutter/flutter/issues/28746))| +|Dan Field |Add semantic label finders ([#29342](https://github.com/flutter/flutter/issues/29342)) * Add semantic label finders| +|liyuqian |Manually roll engine to 5088735e5 ([#29566](https://github.com/flutter/flutter/issues/29566)) Need this manual roll because of golden changes. flutter/engine@5088735e5 Clip to clip_rect instead of paint bounds ([flutter/engine#8183](https://github.com/flutter/engine/issues/8183)) flutter/engine@8818a6c41 Roll src/third_party/skia 2c043c288169..4a522b7e916c (3 commits) ([flutter/engine#8201](https://github.com/flutter/engine/issues/8201)) flutter/engine@048d70bc0 Support dartdevc, dart2js with shared source files, dartdevc sdk ([flutter/engine#8105](https://github.com/flutter/engine/issues/8105)) flutter/engine@e0782dec7 Roll src/third_party/skia 576b2a5596bc..2c043c288169 (2 commits) ([flutter/engine#8200](https://github.com/flutter/engine/issues/8200))| +|Jonah Williams |make build runner configurable ([#29568](https://github.com/flutter/flutter/issues/29568))| +|engine-flutter-autoroll |Roll engine e75f6de01fee..048d70bc0948 (2 commits) ([#29569](https://github.com/flutter/flutter/issues/29569)) https://github.com/flutter/engine/compare/e75f6de01fee...048d70bc0948 git log e75f6de01fee738eb15f24efb0ec549587009f1a..048d70bc0948de3bad60e2056f186f336cd5aad9 --no-merges --oneline 048d70bc0 Support dartdevc, dart2js with shared source files, dartdevc sdk ([flutter/engine#8105](https://github.com/flutter/engine/issues/8105)) e0782dec7 Roll src/third_party/skia 576b2a5596bc..2c043c288169 (2 commits) ([flutter/engine#8200](https://github.com/flutter/engine/issues/8200)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Filip Hracek |Add sample to forEachTween ([#29195](https://github.com/flutter/flutter/issues/29195)) The current documentation for `AnimatedWidgetBaseState.forEachTween` is exhaustive but a little hard to grok. This dartdoc example provides some clarity.| +|Dan Field |Reland composite physical layers on all platforms ([#29532](https://github.com/flutter/flutter/issues/29532)) Reland composite physical layers and update tests| +|xster |Make real JSON in arb ([#29463](https://github.com/flutter/flutter/issues/29463))| +|Francisco Magdaleno |Adds macOS raw keyboard mapping ([#29231](https://github.com/flutter/flutter/issues/29231))| +|Jonah Williams |Ensure that different formatting of ndk properties file does not crash tool ([#29528](https://github.com/flutter/flutter/issues/29528))| +|Ivan Schütz |Improve Navigator documentation ([#29540](https://github.com/flutter/flutter/issues/29540))| +|Dan Field |Make it easier to ensure semantics in widgetTests ([#29387](https://github.com/flutter/flutter/issues/29387)) * Make it easier to ensure semantics| +|engine-flutter-autoroll |Roll engine 5b09204e3037..e75f6de01fee (2 commits) ([#29537](https://github.com/flutter/flutter/issues/29537)) https://github.com/flutter/engine/compare/5b09204e3037...e75f6de01fee git log 5b09204e3037a8e03fcffc9161cd474b41f4db3b..e75f6de01fee738eb15f24efb0ec549587009f1a --no-merges --oneline e75f6de01 Roll src/third_party/skia 895e1eedb420..576b2a5596bc (1 commits) ([flutter/engine#8198](https://github.com/flutter/engine/issues/8198)) d9fda1c20 Add --no-full-dart-sdk option to GN ([flutter/engine#8196](https://github.com/flutter/engine/issues/8196)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 4d9b9aacd076..5b09204e3037 (3 commits) ([#29522](https://github.com/flutter/flutter/issues/29522)) https://github.com/flutter/engine/compare/4d9b9aacd076...5b09204e3037 git log 4d9b9aacd07602031ab9cee863a74ecf02686ed4..5b09204e3037a8e03fcffc9161cd474b41f4db3b --no-merges --oneline 5b09204e3 Roll src/third_party/skia 72ef2d519a0e..895e1eedb420 (1 commits) ([flutter/engine#8195](https://github.com/flutter/engine/issues/8195)) a47e12d25 Roll src/third_party/skia 3ea586f9f959..72ef2d519a0e (1 commits) ([flutter/engine#8194](https://github.com/flutter/engine/issues/8194)) 5ca92fbe9 Roll src/third_party/skia 143542fa28e9..3ea586f9f959 (1 commits) ([flutter/engine#8193](https://github.com/flutter/engine/issues/8193)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine c6f9fe7e00e2..4d9b9aacd076 (2 commits) ([#29507](https://github.com/flutter/flutter/issues/29507)) https://github.com/flutter/engine/compare/c6f9fe7e00e2...4d9b9aacd076 git log c6f9fe7e00e2648de1a7aa02673b7771a9b92c49..4d9b9aacd07602031ab9cee863a74ecf02686ed4 --no-merges --oneline 4d9b9aacd Roll src/third_party/skia e1f2a572cec0..143542fa28e9 (1 commits) ([flutter/engine#8192](https://github.com/flutter/engine/issues/8192)) c14fde841 Roll src/third_party/skia d95286de1dda..e1f2a572cec0 (1 commits) ([flutter/engine#8191](https://github.com/flutter/engine/issues/8191)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |c6f9fe7e0 Roll src/third_party/skia 90155edf140b..d95286de1dda (2 commits) ([flutter/engine#8190](https://github.com/flutter/engine/issues/8190)) ([#29497](https://github.com/flutter/flutter/issues/29497)) https://github.com/flutter/engine/compare/0f97c920ff90...c6f9fe7e00e2 git log 0f97c920ff90aaa0cbfd960ef61089a124ffafae..c6f9fe7e00e2648de1a7aa02673b7771a9b92c49 --no-merges --oneline c6f9fe7e0 Roll src/third_party/skia 90155edf140b..d95286de1dda (2 commits) ([flutter/engine#8190](https://github.com/flutter/engine/issues/8190)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |0f97c920f Roll src/third_party/skia f3f7059cb736..90155edf140b (1 commits) ([flutter/engine#8189](https://github.com/flutter/engine/issues/8189)) ([#29493](https://github.com/flutter/flutter/issues/29493)) https://github.com/flutter/engine/compare/4a4f1823eb5b...0f97c920ff90 git log 4a4f1823eb5b3a08b703f0190ab309af8b65f721..0f97c920ff90aaa0cbfd960ef61089a124ffafae --no-merges --oneline 0f97c920f Roll src/third_party/skia f3f7059cb736..90155edf140b (1 commits) ([flutter/engine#8189](https://github.com/flutter/engine/issues/8189)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 015c0246aebc..4a4f1823eb5b (4 commits) ([#29491](https://github.com/flutter/flutter/issues/29491)) https://github.com/flutter/engine/compare/015c0246aebc...4a4f1823eb5b git log 015c0246aebc6fc23f30004e3319b6d1e85a885a..4a4f1823eb5b3a08b703f0190ab309af8b65f721 --no-merges --oneline 4a4f1823e Roll src/third_party/skia 3d42a0521d12..f3f7059cb736 (6 commits) ([flutter/engine#8188](https://github.com/flutter/engine/issues/8188)) 39fea5502 Roll src/third_party/skia f34d0c79dc6c..3d42a0521d12 (1 commits) ([flutter/engine#8187](https://github.com/flutter/engine/issues/8187)) 926e65531 Roll src/third_party/skia d3cfbcae10eb..f34d0c79dc6c (2 commits) ([flutter/engine#8186](https://github.com/flutter/engine/issues/8186)) 575d61f49 Roll src/third_party/skia 49ea3194535c..d3cfbcae10eb (9 commits) ([flutter/engine#8184](https://github.com/flutter/engine/issues/8184)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|liyuqian |Add doc about MediaQuery to Chip ([#29445](https://github.com/flutter/flutter/issues/29445)) Fixes https://github.com/flutter/flutter/issues/21232| +|engine-flutter-autoroll |Roll engine 0e0e0a98f511..015c0246aebc (3 commits) ([#29464](https://github.com/flutter/flutter/issues/29464)) https://github.com/flutter/engine/compare/0e0e0a98f511...015c0246aebc git log 0e0e0a98f5111ebf4032ef25eaf568f19867ecf1..015c0246aebc6fc23f30004e3319b6d1e85a885a --no-merges --oneline 015c0246a Fix log level typo from ERROR to INFO ([flutter/engine#8180](https://github.com/flutter/engine/issues/8180)) c033aa469 Fix include of libzx. ([flutter/engine#8181](https://github.com/flutter/engine/issues/8181)) d92f93730 Add flag to allow only building full sdk on release to speed up bots ([flutter/engine#8080](https://github.com/flutter/engine/issues/8080)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Jonah Williams |Switch flutter_tools from script to app-jit snapshot. ([#27749](https://github.com/flutter/flutter/issues/27749))| +|engine-flutter-autoroll |0e0e0a98f Roll src/third_party/skia 46f5ee156155..49ea3194535c (8 commits) ([flutter/engine#8179](https://github.com/flutter/engine/issues/8179)) ([#29453](https://github.com/flutter/flutter/issues/29453)) https://github.com/flutter/engine/compare/7da45be4a9af...0e0e0a98f511 git log 7da45be4a9afec572ebc110ad52511f5e2dc63e3..0e0e0a98f5111ebf4032ef25eaf568f19867ecf1 --no-merges --oneline 0e0e0a98f Roll src/third_party/skia 46f5ee156155..49ea3194535c (8 commits) ([flutter/engine#8179](https://github.com/flutter/engine/issues/8179)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Jonah Williams |fix for sometimes packages file is an APK ([#29456](https://github.com/flutter/flutter/issues/29456))| +|Jonah Williams |Improve hot reload performance ([#28152](https://github.com/flutter/flutter/issues/28152))| +|engine-flutter-autoroll |7da45be4a Roll src/third_party/skia 69600007e278..46f5ee156155 (8 commits) ([flutter/engine#8178](https://github.com/flutter/engine/issues/8178)) ([#29447](https://github.com/flutter/flutter/issues/29447)) https://github.com/flutter/engine/compare/cad97fe7467c...7da45be4a9af git log cad97fe7467c60de645d47acffd0e00cd83178ab..7da45be4a9afec572ebc110ad52511f5e2dc63e3 --no-merges --oneline 7da45be4a Roll src/third_party/skia 69600007e278..46f5ee156155 (8 commits) ([flutter/engine#8178](https://github.com/flutter/engine/issues/8178)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Shi-Hao Hong |add assert if length of TabController and number of tabs do not match ([#29332](https://github.com/flutter/flutter/issues/29332))| +|Anthony |Fix Flex class docs by replacing 'vertical space' with 'space on its main axis' so that the language fits both column and row. ([#29057](https://github.com/flutter/flutter/issues/29057))| +|Kate Lovett |Sample code for Align class. ref:[#13637](https://github.com/flutter/flutter/issues/13637) ([#29442](https://github.com/flutter/flutter/issues/29442))| +|Mouad Debbar |Fix text selection when user is dragging in the opposite direction ([#29395](https://github.com/flutter/flutter/issues/29395))| +|engine-flutter-autoroll |Roll engine b36068c3778c..cad97fe7467c (2 commits) ([#29441](https://github.com/flutter/flutter/issues/29441)) https://github.com/flutter/engine/compare/b36068c3778c...cad97fe7467c git log b36068c3778c014ac999ce03412af2690bc713bc..cad97fe7467c60de645d47acffd0e00cd83178ab --no-merges --oneline cad97fe74 Update overlays_gr_context_ correctly ([flutter/engine#8175](https://github.com/flutter/engine/issues/8175)) c0690e6ec Roll src/third_party/skia aefecad7c0d2..69600007e278 (2 commits) ([flutter/engine#8177](https://github.com/flutter/engine/issues/8177)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|liyuqian |Add dump-shader-skp flag to flutter tools ([#29258](https://github.com/flutter/flutter/issues/29258)) This is the accompanying change for https://github.com/flutter/engine/pull/8148 and it needs the engine PR to land first. For https://github.com/flutter/flutter/issues/813| +|xster |Cupertino localization step 1: add an English arb file ([#29200](https://github.com/flutter/flutter/issues/29200))| +|liyuqian |No shrinking for BackdropFilter's cull rect ([#28174](https://github.com/flutter/flutter/issues/28174)) * No shrinking for BackdropFilter's cull rect This will be a breaking change. Our old behavior may generate confusions for a sample app like our added golden test: Skia will shrink the cull rect (and thus the filtered area) to the text. The new behavior will fill the BackdropFilter to its parent/ancestor clip. This is more in align with our clip behaviors (no clip by default). If this breaks your app, wrap the BackdropFilter with a ClipRect. [wip] The golden images are not uploaded yet. I'll wait for the initial round of review to approve the golden test before uploading them. * Statically define the callback * Add TODO to remind the hacking code removal * Nit fix * Update goldens| +|Jason Simmons |Use fs.identical to compare paths when finding the engine source path ([#29386](https://github.com/flutter/flutter/issues/29386)) This will handle paths with symlinks that resolve to the same location.| +|Edman P. Anjos |Paint backgroundColor in CircularProgressIndicator ([#28004](https://github.com/flutter/flutter/issues/28004))| +|liyuqian |--verbose-logging to verbose-logging in android ([#29383](https://github.com/flutter/flutter/issues/29383)) Sorry that I missed the typo during the review of https://github.com/flutter/flutter/pull/29321| +|Christian Wenz |Properly escape Android SDK Manager path in error message ([#29134](https://github.com/flutter/flutter/issues/29134))| +|Dan Field |Update README.md ([#29369](https://github.com/flutter/flutter/issues/29369))| +|Mike Leonhard |[cupertino_icons] Add circle and circle_filled, for radio buttons. ([#29407](https://github.com/flutter/flutter/issues/29407))| +|Efthymis Sarmpanis |Throw assertion error when a Hero has a Hero child. ([#28470](https://github.com/flutter/flutter/issues/28470))| +|Brian Wilkerson |Update SDK constraints to reflect the fact that set literals are being used ([#29389](https://github.com/flutter/flutter/issues/29389))| +|engine-flutter-autoroll |Roll engine 403337ebb893..b36068c3778c (10 commits) ([#29429](https://github.com/flutter/flutter/issues/29429)) https://github.com/flutter/engine/compare/403337ebb893...b36068c3778c git log 403337ebb893380101d1fa9cc435ce9b6cfeb22c..b36068c3778c014ac999ce03412af2690bc713bc --no-merges --oneline b36068c37 Roll src/third_party/skia 05201fc7e77e..aefecad7c0d2 (5 commits) ([flutter/engine#8176](https://github.com/flutter/engine/issues/8176)) b32d0ab98 Bugfix: Prevent crash when responding to a platform message after FlutterJNI detaches from native ([#28651](https://github.com/flutter/flutter/issues/28651)). ([flutter/engine#8170](https://github.com/flutter/engine/issues/8170)) d9b2f0946 Roll src/third_party/skia 512e38091c85..05201fc7e77e (10 commits) ([flutter/engine#8173](https://github.com/flutter/engine/issues/8173)) 4b01d795f Add frame and target time metadata to vsync events and connect platform vsync events using flows. ([flutter/engine#8172](https://github.com/flutter/engine/issues/8172)) f7a092262 [fuchsia] Remove deprecated libraries from snapshot ([flutter/engine#8085](https://github.com/flutter/engine/issues/8085)) 09db84fad Android Embedding PR 19: Add accessibility to new FlutterView. ([flutter/engine#8109](https://github.com/flutter/engine/issues/8109)) 246f0e3f4 Add an allocator specific check to ensure that strings passed to the timeline are not heap allocated. ([flutter/engine#8168](https://github.com/flutter/engine/issues/8168)) 7a6bb9998 Roll src/third_party/skia feb720f746dc..512e38091c85 (11 commits) ([flutter/engine#8169](https://github.com/flutter/engine/issues/8169)) 5825bdac9 Roll src/third_party/dart 7d560f8385..7418238239 (61 commits) 66fdeb163 Add dump-shader-skp switch to help ShaderWarmUp ([flutter/engine#8148](https://github.com/flutter/engine/issues/8148)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (jsimmons@google.com), and stop the roller if necessary.| +|Jonah Williams |Disable widget inspector scroll test ([#29403](https://github.com/flutter/flutter/issues/29403))| +|Dan Field |Roll engine to 403337ebb893380101d1fa9cc435ce9b6cfeb22c ([#29377](https://github.com/flutter/flutter/issues/29377)) * Manual engine roll with goldens| +|Justin McCandless |Text field height attempt 2 ([#29250](https://github.com/flutter/flutter/issues/29250)) Adds the `minLines` and `expands` parameters for controlling text height. The original PR was reverted, so this one contains a few extra fixes for the tests that were broken.| +|Jonah Williams |Only run codegen at start of flutter_test ([#29171](https://github.com/flutter/flutter/issues/29171))| +|Jonah Williams |Skip Dialog interaction test ([#29385](https://github.com/flutter/flutter/issues/29385))| +|Jonah Williams |Revert "Manual engine roll with goldens ([#29363](https://github.com/flutter/flutter/issues/29363))" ([#29374](https://github.com/flutter/flutter/issues/29374)) This reverts commit c2e08913c063dea04f21b3e2db777146862c2f15.| +|Dan Field |Manual engine roll with goldens ([#29363](https://github.com/flutter/flutter/issues/29363))| +|Shi-Hao Hong |Implement labelPadding configuration in TabBarTheme ([#29183](https://github.com/flutter/flutter/issues/29183))| +|Hans Muller |Error message when TextSelectionOverlay finds no Overlay ([#29329](https://github.com/flutter/flutter/issues/29329))| +|Dan Field |guard new formatter behind env var ([#29340](https://github.com/flutter/flutter/issues/29340)) * guard new formatter behind env var| +|rami-a <2364772+rami-a@users.noreply.github.com>|[Material] Fix radio ink ripple to be centered ([#28845](https://github.com/flutter/flutter/issues/28845))| +|Jonah Williams |add option for --verbose-system-logs ([#29321](https://github.com/flutter/flutter/issues/29321))| +|Dan Field |Revert "Always composite PhysicalModels ([#28919](https://github.com/flutter/flutter/issues/28919))" ([#29314](https://github.com/flutter/flutter/issues/29314)) This reverts commit 58fb183298643bb0c57acd0b50b2480e9d1d5779.| +|Gary Qian |Revert "Roll engine 31b289f277c6..b1b388f1c235 (7 commits)", Roll to 8b1a299ed instead. ([#29330](https://github.com/flutter/flutter/issues/29330)) * Revert "Roll engine 31b289f277c6..b1b388f1c235 (7 commits) ([#29323](https://github.com/flutter/flutter/issues/29323))" This reverts commit 58ac12877d756804ad5f33e9f03c627fbde29b35. Also rolls: 8b1a299ed [Skia] Rollback Skia to 29d5dec9a0783a033b921dc483fb98d565d684f6 ([flutter/engine#8151](https://github.com/flutter/engine/issues/8151)) 9f50dae33 Look up ICU symbols based on the path to libflutter.so as a fallback ([flutter/engine#8139](https://github.com/flutter/engine/issues/8139)) 59715b71d Disable build_ios task due to lack of credits. ([flutter/engine#8150](https://github.com/flutter/engine/issues/8150))| +|engine-flutter-autoroll |Roll engine 31b289f277c6..b1b388f1c235 (7 commits) ([#29323](https://github.com/flutter/flutter/issues/29323)) * 59715b71d Disable build_ios task due to lack of credits. ([flutter/engine#8150](https://github.com/flutter/engine/issues/8150)) * 9f50dae33 Look up ICU symbols based on the path to libflutter.so as a fallback ([flutter/engine#8139](https://github.com/flutter/engine/issues/8139)) * 8b1a299ed [Skia] Rollback Skia to 29d5dec9a0783a033b921dc483fb98d565d684f6 ([flutter/engine#8151](https://github.com/flutter/engine/issues/8151)) * 8be2aca56 Roll src/third_party/dart 1bd36d694d..674fd0e060 (48 commits) [#8152](https://github.com/flutter/flutter/issues/8152) * 2e427030f Revert "Disable build_ios task due to lack of credits. ([#8150](https://github.com/flutter/flutter/issues/8150))" ([flutter/engine#8153](https://github.com/flutter/engine/issues/8153)) * 2daebebf4 Fix text.dart height docs ([flutter/engine#8079](https://github.com/flutter/engine/issues/8079)) * b1b388f1c Encode scroll motion events in the Android touch processor ([flutter/engine#8149](https://github.com/flutter/engine/issues/8149))| +|Dan Field |Revert "Speculative fix for [#29262](https://github.com/flutter/flutter/issues/29262) ([#29273](https://github.com/flutter/flutter/issues/29273))" ([#29319](https://github.com/flutter/flutter/issues/29319)) This reverts commit 53d45258dc5d30b886ed5f29251d5e7d70bc78e1.| +|Dan Field |Speculative fix for [#29262](https://github.com/flutter/flutter/issues/29262) ([#29273](https://github.com/flutter/flutter/issues/29273)) * Avoid writing to stderr before process has finished streaming| +|Gary Qian |Expose decorationThickness in TextStyle. Roll engine (12 commits) ([#28751](https://github.com/flutter/flutter/issues/28751)) 31b289f27 Fix indexing error in dart:ui TextStyle.toString ([flutter/engine#8143](https://github.com/flutter/engine/issues/8143)) fc2e6b61c Typo "fast an inline" to "fast and inline" ([flutter/engine#8142](https://github.com/flutter/engine/issues/8142)) 0f19b2de0 Reland PerformanceOverlayLayer golden test ([flutter/engine#8140](https://github.com/flutter/engine/issues/8140)) 073aadde1 Fix TextStyle decode misalignment ([flutter/engine#8141](https://github.com/flutter/engine/issues/8141)) d87d29054 Roll src/third_party/skia 406b068942f0..2eecc3ea3d71 (11 commits) ([flutter/engine#8138](https://github.com/flutter/engine/issues/8138)) 5cef4a022 Use final state passed to dart before initialization as the initial lifecycleState. ([flutter/engine#8124](https://github.com/flutter/engine/issues/8124)) ffef51be6 Roll src/third_party/skia 665bc64a2dc4..406b068942f0 (8 commits) ([flutter/engine#8137](https://github.com/flutter/engine/issues/8137)) 48efd0fb7 Roll src/third_party/skia 762ddd7e4352..665bc64a2dc4 (2 commits) ([flutter/engine#8129](https://github.com/flutter/engine/issues/8129)) f666adbbd Roll src/third_party/skia 2932a458957d..762ddd7e4352 (3 commits) ([flutter/engine#8128](https://github.com/flutter/engine/issues/8128)) 8b0df6ded Bugfix [#29203](https://github.com/flutter/flutter/issues/29203): NPE in getAccessibilityProvider in old FlutterView. ([flutter/engine#8126](https://github.com/flutter/engine/issues/8126)) 8f7b18345 Roll src/third_party/skia c6d8781c4036..2932a458957d (2 commits) ([flutter/engine#8125](https://github.com/flutter/engine/issues/8125)) 52b67fdd5 Expose decorationThickness to dart:ui ([flutter/engine#8008](https://github.com/flutter/engine/issues/8008))| +|Jonah Williams |Add skip to group in test_compat ([#29236](https://github.com/flutter/flutter/issues/29236))| +|sjindel-google |Fix text selection handles showing outside the visible text region ([#24476](https://github.com/flutter/flutter/issues/24476)) Don't show handles outside the text field's boundary.| +|Michael Goderbauer |Fix DartDoc for UniqueKey ([#29245](https://github.com/flutter/flutter/issues/29245))| +|Shi-Hao Hong |Update README.md| +|Dan Field |Always composite PhysicalModels ([#28919](https://github.com/flutter/flutter/issues/28919)) * Always composite PhysicalModels * Update tests to check layer tree instead of canvas for Physical shadows| +|Hans Muller |Update flutter_localizations translations ([#29247](https://github.com/flutter/flutter/issues/29247))| +|guoskyhero |Document that SearchDelegate.buildResults can be called multiple time… ([#26785](https://github.com/flutter/flutter/issues/26785))| +|Sean D'Souza <38793207+seendsouza@users.noreply.github.com>|Docs edit for Tab Label Color ([#29165](https://github.com/flutter/flutter/issues/29165))| +|liyuqian |No image shader caching in default shader warm-up ([#29179](https://github.com/flutter/flutter/issues/29179)) * No image shader caching in default shader warm-up It turns out that no matter how small the image is, too much memory will be used. Hence remove the image shader caching and let the client implement itself based on needs. Fixes https://github.com/flutter/flutter/issues/29172 * Fix| +|Fedor Korotkov |Install JDK and Android SDK only for integration tests ([#29229](https://github.com/flutter/flutter/issues/29229)) * Install JDK and Android SDK only for integration and build tests| +|Hans Muller |Ensure that animated pairs of Tabs TextStyles have matching inherited values ([#29175](https://github.com/flutter/flutter/issues/29175))| +|Michael Goderbauer |Heroes and nested Navigators ([#29069](https://github.com/flutter/flutter/issues/29069))| +|Hans Muller |MaterialButton shape should override ButtonTheme shape ([#29189](https://github.com/flutter/flutter/issues/29189))| +|Kate Lovett |Update to ListView Sample Code in API Docs ([#29072](https://github.com/flutter/flutter/issues/29072)) * Updated ListView Sample code with more examples for different constructors and also to match asset diagrams. * Fixed MIA semicolons. * Code cleanup. * Added context for ListView.builder example. * Analyzer does not like const and static usages. * Replaced the const declarations with final. The analyzer does not like the use of const here, at all. * Fixed parameterized declarations.| +|Michael Goderbauer |Include platformViewId in semantics tree ([#28953](https://github.com/flutter/flutter/issues/28953))| +|Danny Tuppeny |Add a `flutter create --list-samples` command ([#28938](https://github.com/flutter/flutter/issues/28938)) * Add a `flutter create --list-samples` command * Add some comments/docs * Tweak text| +|engine-flutter-autoroll |Roll engine 56d8634c51ff..5ccee9537334 (4 commits) ([#29198](https://github.com/flutter/flutter/issues/29198)) https://github.com/flutter/engine/compare/56d8634c51ff...5ccee9537334 git log 56d8634c51ff50534b1853b71205eff861131dcf..5ccee95373348854bc4877cfe240024a36847d2d --no-merges --oneline 5ccee9537 Roll src/third_party/skia e9c1ce89c005..c6d8781c4036 (29 commits) ([flutter/engine#8123](https://github.com/flutter/engine/issues/8123)) 20165b314 Integrated AndroidTouchProcessor within the old FlutterView ([flutter/engine#8095](https://github.com/flutter/engine/issues/8095)) bc901324f Revert &[#34](https://github.com/flutter/flutter/issues/34);Add support for trace counters with variable arguments and instrument the raster cache. ([#8094](https://github.com/flutter/flutter/issues/8094))&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8122](https://github.com/flutter/engine/issues/8122)) 2a0d35428 Add support for trace counters with variable arguments and instrument the raster cache. ([flutter/engine#8094](https://github.com/flutter/engine/issues/8094)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine a71609f0695c..56d8634c51ff (2 commits) ([#29185](https://github.com/flutter/flutter/issues/29185)) https://github.com/flutter/engine/compare/a71609f0695c...56d8634c51ff git log a71609f0695c2977ac96b7a79e67e24767abfda2..56d8634c51ff50534b1853b71205eff861131dcf --no-merges --oneline 56d8634c5 Improve shadow doc in PhysicalShapeLayer ([flutter/engine#8114](https://github.com/flutter/engine/issues/8114)) bd0f9085e Adds a platfromViewId to SemanticsNode ([flutter/engine#8055](https://github.com/flutter/engine/issues/8055)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|Dwayne Slater |Fix MouseTracker annotation leak ([#28990](https://github.com/flutter/flutter/issues/28990)) * Fix MouseTracker annotation leak Map's remove method is typed `remove(Object key)`, which can cause bugs. Modified the existing test to check if the annotation has been removed from MouseTracker.| +|Michael Goderbauer |Deprecate profile() ([#29054](https://github.com/flutter/flutter/issues/29054))| +|engine-flutter-autoroll |Roll engine 0d2cf5857b2b..a71609f0695c (3 commits) ([#29166](https://github.com/flutter/flutter/issues/29166)) https://github.com/flutter/engine/compare/0d2cf5857b2b...a71609f0695c git log 0d2cf5857b2be0949435f60c0188f1aed4d93c93..a71609f0695c2977ac96b7a79e67e24767abfda2 --no-merges --oneline a71609f06 Roll src/third_party/skia bd050b90f8c7..e9c1ce89c005 (8 commits) ([flutter/engine#8113](https://github.com/flutter/engine/issues/8113)) 35e3b2b86 Roll src/third_party/skia 92ae09900456..bd050b90f8c7 (7 commits) ([flutter/engine#8111](https://github.com/flutter/engine/issues/8111)) 04fe0078f Roll src/third_party/dart 2fb6cd9f5f..674fd0e060 (58 commits) ([flutter/engine#8110](https://github.com/flutter/engine/issues/8110)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|Aawaz Gyawali |Changed flutter.dev to flutter.io on each link. ([#28888](https://github.com/flutter/flutter/issues/28888))| +|stuartmorgan |Add support for scrollwheels ([#22762](https://github.com/flutter/flutter/issues/22762)) Adds support for discrete scroll events, such as those sent by a scroll wheel. Includes the plumbing to convert, dispatch, and handle these events, as well as Scrollable support for consuming them.| +|Paul Berry |Cause `flutter analyze` to fail if the analysis server experienced an error. ([#29126](https://github.com/flutter/flutter/issues/29126)) Substantially reduces the danger that a bug in the analysis server might prevent errors from being detected by `flutter analyze`.| +|Hiroki Matsue |Fix typo in RefreshIndicator constructor API doc| +|Kate Lovett |Update to Container Sample Code in API Docs ([#29053](https://github.com/flutter/flutter/issues/29053)) * Updating sample code for container to match forthcoming diagrams in assets-for-api-docs. * Analyzer unhappy with Colors, fixing. * Resolving push conflict (hopefully) * Analyzer fix. * Corrected color to match brand gallery * Fixing wrap and indentation.| +|engine-flutter-autoroll |Roll engine 14d1584a2262..0d2cf5857b2b (2 commits) ([#29132](https://github.com/flutter/flutter/issues/29132)) https://github.com/flutter/engine/compare/14d1584a2262...0d2cf5857b2b git log 14d1584a22627e9a1eefc0e5f3de78caffcde09e..0d2cf5857b2be0949435f60c0188f1aed4d93c93 --no-merges --oneline 0d2cf5857 Fix the Windows build ([flutter/engine#8106](https://github.com/flutter/engine/issues/8106)) a28b53007 Log non-kSuccess returns from embedder API calls. ([flutter/engine#8096](https://github.com/flutter/engine/issues/8096)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|Dan Field |Make sure test reporter prints out stderr, and disables Bigquery for non-contributors ([#29073](https://github.com/flutter/flutter/issues/29073)) * print stderr to stderr, no bq if not contributor * let test continue of bigquery fails| +|Dan Field |Update .cirrus.yml ([#29129](https://github.com/flutter/flutter/issues/29129)) I inadvertently commented this out in my previous PR around this.| +|Dan Field |Run non-perf sensitive tests on Cirrus ([#27971](https://github.com/flutter/flutter/issues/27971)) * Run non-perf sensisitive tests on Cirrus| +|engine-flutter-autoroll |14d1584a2 Roll src/third_party/skia 29d5dec9a078..92ae09900456 (1 commits) ([flutter/engine#8104](https://github.com/flutter/engine/issues/8104)) ([#29120](https://github.com/flutter/flutter/issues/29120)) https://github.com/flutter/engine/compare/4e54bc93ca9a...14d1584a2262 git log 4e54bc93ca9aaf2156fb06266c9fe509e8599a5f..14d1584a22627e9a1eefc0e5f3de78caffcde09e --no-merges --oneline 14d1584a2 Roll src/third_party/skia 29d5dec9a078..92ae09900456 (1 commits) ([flutter/engine#8104](https://github.com/flutter/engine/issues/8104)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |4e54bc93c Guard initialization of touch exploration listener ([flutter/engine#8103](https://github.com/flutter/engine/issues/8103)) ([#29117](https://github.com/flutter/flutter/issues/29117)) https://github.com/flutter/engine/compare/9e8f8d0889ec...4e54bc93ca9a git log 9e8f8d0889ec04b54def0bf917321a27006623b0..4e54bc93ca9aaf2156fb06266c9fe509e8599a5f --no-merges --oneline 4e54bc93c Guard initialization of touch exploration listener ([flutter/engine#8103](https://github.com/flutter/engine/issues/8103)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |9e8f8d088 Drop android_sdk_downloader in favor of cipd ([flutter/engine#8087](https://github.com/flutter/engine/issues/8087)) ([#29115](https://github.com/flutter/flutter/issues/29115)) https://github.com/flutter/engine/compare/21342863aa60...9e8f8d0889ec git log 21342863aa6018af53c09af2a3e7aa432a6cc844..9e8f8d0889ec04b54def0bf917321a27006623b0 --no-merges --oneline 9e8f8d088 Drop android_sdk_downloader in favor of cipd ([flutter/engine#8087](https://github.com/flutter/engine/issues/8087)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |21342863a Do not cache gclient sync ([flutter/engine#8098](https://github.com/flutter/engine/issues/8098)) ([#29111](https://github.com/flutter/flutter/issues/29111)) https://github.com/flutter/engine/compare/dc216bdcf0b3...21342863aa60 git log dc216bdcf0b3fbdf5a6ed2ccffa0e33f82c927c1..21342863aa6018af53c09af2a3e7aa432a6cc844 --no-merges --oneline 21342863a Do not cache gclient sync ([flutter/engine#8098](https://github.com/flutter/engine/issues/8098)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |dc216bdcf Fix typo ([flutter/engine#8102](https://github.com/flutter/engine/issues/8102)) ([#29107](https://github.com/flutter/flutter/issues/29107)) https://github.com/flutter/engine/compare/124fb1a054cd...dc216bdcf0b3 git log 124fb1a054cdb9d4338b4b7602e795699dbc0108..dc216bdcf0b3fbdf5a6ed2ccffa0e33f82c927c1 --no-merges --oneline dc216bdcf Fix typo ([flutter/engine#8102](https://github.com/flutter/engine/issues/8102)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine e77337bb1c74..124fb1a054cd (2 commits) ([#29104](https://github.com/flutter/flutter/issues/29104)) https://github.com/flutter/engine/compare/e77337bb1c74...124fb1a054cd git log e77337bb1c74bf0595513cc71072b717f8977251..124fb1a054cdb9d4338b4b7602e795699dbc0108 --no-merges --oneline 124fb1a05 Roll src/third_party/skia b45e5f1e810a..29d5dec9a078 (1 commits) ([flutter/engine#8101](https://github.com/flutter/engine/issues/8101)) 76ad08e7d Roll src/third_party/skia a009d582e812..b45e5f1e810a (2 commits) ([flutter/engine#8100](https://github.com/flutter/engine/issues/8100)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |e77337bb1 Use right stream for Java, on mac try to autoselect Java 1.8 ([flutter/engine#8099](https://github.com/flutter/engine/issues/8099)) ([#29094](https://github.com/flutter/flutter/issues/29094)) https://github.com/flutter/engine/compare/a63ff4632728...e77337bb1c74 git log a63ff4632728c6386977dac95699021ee6018449..e77337bb1c74bf0595513cc71072b717f8977251 --no-merges --oneline e77337bb1 Use right stream for Java, on mac try to autoselect Java 1.8 ([flutter/engine#8099](https://github.com/flutter/engine/issues/8099)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 03d5f3c2d1e0..a63ff4632728 (2 commits) ([#29091](https://github.com/flutter/flutter/issues/29091)) https://github.com/flutter/engine/compare/03d5f3c2d1e0...a63ff4632728 git log 03d5f3c2d1e06e3949232d01233224fe18c196fb..a63ff4632728c6386977dac95699021ee6018449 --no-merges --oneline a63ff4632 Android linter prints to the console by default ([flutter/engine#8090](https://github.com/flutter/engine/issues/8090)) 24d990294 Roll src/third_party/skia bea1f94f341e..a009d582e812 (18 commits) ([flutter/engine#8097](https://github.com/flutter/engine/issues/8097)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|Todd Volkert |Revert "Fix TextField height issues ([#27205](https://github.com/flutter/flutter/issues/27205))" ([#29093](https://github.com/flutter/flutter/issues/29093)) This reverts commit 9e9f48dabb8423a6285bddfb21e69f0751060459.| +|Alexandre Ardhuin |fix block formatting ([#29051](https://github.com/flutter/flutter/issues/29051))| +|engine-flutter-autoroll |Roll engine c48774cfe09b..03d5f3c2d1e0 (3 commits) ([#29082](https://github.com/flutter/flutter/issues/29082)) https://github.com/flutter/engine/compare/c48774cfe09b...03d5f3c2d1e0 git log c48774cfe09b7f286defb9e457a74c7e7028e11c..03d5f3c2d1e06e3949232d01233224fe18c196fb --no-merges --oneline 03d5f3c2d Clarify arguments to FlutterEngineOnVsync ([flutter/engine#8093](https://github.com/flutter/engine/issues/8093)) 718329ce6 Android Embedding PR 17: Clarify AccessibilityBridge and move logic out of FlutterView. ([flutter/engine#8061](https://github.com/flutter/engine/issues/8061)) edfc0cfaa Android Embedding PR 16: Add touch support to FlutterView. ([flutter/engine#8034](https://github.com/flutter/engine/issues/8034)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|Jonah Williams |fix windows codegen ([#29062](https://github.com/flutter/flutter/issues/29062))| +|Ian Hickson |Support hotfix version numbers ([#28672](https://github.com/flutter/flutter/issues/28672))| +|engine-flutter-autoroll |Roll engine 87edd94e9cc7..c48774cfe09b (3 commits) ([#29079](https://github.com/flutter/flutter/issues/29079)) https://github.com/flutter/engine/compare/87edd94e9cc7...c48774cfe09b git log 87edd94e9cc751a0de72c0828d41793b9f740062..c48774cfe09b7f286defb9e457a74c7e7028e11c --no-merges --oneline c48774cfe Roll src/third_party/dart 571ea80e11..2fb6cd9f5f (122 commits) ([flutter/engine#8086](https://github.com/flutter/engine/issues/8086)) 3c8ef04e9 Allow embedders to post tasks onto the render thread. ([flutter/engine#8089](https://github.com/flutter/engine/issues/8089)) 1d10e0eb6 Guard against NewAPI failures ([flutter/engine#8048](https://github.com/flutter/engine/issues/8048)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 60314077846c..87edd94e9cc7 (4 commits) ([#29067](https://github.com/flutter/flutter/issues/29067)) https://github.com/flutter/engine/compare/60314077846c...87edd94e9cc7 git log 60314077846c123f45c5aaef911c5ea48343d569..87edd94e9cc751a0de72c0828d41793b9f740062 --no-merges --oneline 87edd94e9 Add read-only persistent cache ([flutter/engine#8049](https://github.com/flutter/engine/issues/8049)) 4c9404950 Move android_sdk_downloader so I can more easily deprecate it ([flutter/engine#8084](https://github.com/flutter/engine/issues/8084)) 7cbd9d8b4 Roll src/third_party/skia 3d1b941f3a7d..bea1f94f341e (7 commits) ([flutter/engine#8083](https://github.com/flutter/engine/issues/8083)) 260669c65 Fix deleting text when the last character is some special characters on IOS ([flutter/engine#7982](https://github.com/flutter/engine/issues/7982)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|Terje Lønøy |Add key support to cupertino button ([#28900](https://github.com/flutter/flutter/issues/28900))| +|xster |Fix CupertinoTabView tree re-shape on view inset change ([#29024](https://github.com/flutter/flutter/issues/29024))| +|Dan Field |add heartbeat ([#29056](https://github.com/flutter/flutter/issues/29056))| +|Yuqian Li |Update docs| +|Jonah Williams |Revert "Lazily download artifacts (III) ([#27903](https://github.com/flutter/flutter/issues/27903))" ([#29064](https://github.com/flutter/flutter/issues/29064)) This reverts commit 3fd36200d9b89322d75c1b6bad37b3ad7f665b81.| +|Jonah Williams |Lazily download artifacts (III) ([#27903](https://github.com/flutter/flutter/issues/27903))| +|Jonah Williams |Add integration to all targets ([#29020](https://github.com/flutter/flutter/issues/29020))| +|Justin McCandless |Fix TextField height issues ([#27205](https://github.com/flutter/flutter/issues/27205)) * Create new TextField attribute to control maxLength behaviour * Create test case for maxLinesIncrementalHeight * fix maxLinesIncrementalHeight set method * fix editable_test.dart * Just introducing some proposed API additions, renaming to expands * Pass minLines and expands through to child widgets and validate * minLines can't be null, and expands can't be true when maxLines is 1 * Implement minLines and maxLines height sizing logic * Simplify minLines validation logic * expands parameter proof of concept * min/max mixup bug fix, and tests work with expands false * Test expands=true cases, and fix textPainter.height being out of date * Test all behavior matrix cases * min/max assertion more strict, can't be equal * Tests work that were missing expands serialization * Action sheet tests no longer fail due to rounding error * TextFieldFocus test no longer mysteriously fails * TODOs for making expands nullable. Will depend on how Expanded wrapping works * Expanded growth happens when expanded is true and maxLines is null * Test Expanded wrapper * No more overflow when wrapped in Expanded * Docs improvements * expands can be null * Simplify error cases to support existing behavior * Docs examples and other docs cleanup * Expansion up to perfectly meet the parent size * Fix analyze null error * Fix test after move to nullable expands * minLines defaults to null * expands is now exclusively for expanding to parent height and not growth between min and max * _layout rewritten to handle max height. Need to fix prefix tests and reenable expands * Tests for textfield overflowing parent * layoutLineBox is documented and private * expands works in new _layout * _layout return numbers seem to perfectly match original _layout * inputWidth comment after trying it out and failing tests * Fix analyze errors * WIP prefix/suffix do affect height * Prefix/suffix and icons affect height, tests pass, but I'm still visually verifying identical to original * Tall prefix test that verifies pixel perfect layout * Fix overflowing edge case and test it * Clean up comments, old code, and todos * Changing _expands causes relayout. Wasnt able to figure out how to test though... * Clean up code review comments * Fix misalignment when tall prefix and border, and clean up related test * Simple code review cleanup * Bring back inputWidth to _layout method * Fix rounding errors showing up in mac tests * Fix flake by reordering tests. Without this, the dreaded intrinsicwidth flake is reproducible 50% of the time on my machine. * Fix more rounding error mac tests| +|Greg Spencer |Remove references to obsolete SemanticsSortOrder ([#29012](https://github.com/flutter/flutter/issues/29012)) This removes references to SemanticsSortOrder, which was removed a long time ago.| +|Greg Spencer |Add/rewrite tests for FocusScope. ([#28169](https://github.com/flutter/flutter/issues/28169)) In anticipation of changing a lot of the focus code, I'm adding some tests for the FocusScope. As a result, I was able to find and fix a bug where there was an incorrect assert. I also added some more documentation. Several of the tests enforce what I think is incorrect behavior related to passing focus off when the widget tree gets rebuilt without focus nodes that were previously there, but I'm not going to change that behavior in this PR. I also renamed focus_test.dart to focus_scope_test.dart to be more in line with our naming conventions.| +|Dan Field |update readme for LUCI ([#29023](https://github.com/flutter/flutter/issues/29023)) * update readme for LUCI * Update README.md| +|engine-flutter-autoroll |Roll engine a48cd16e0777..60314077846c (2 commits) ([#29049](https://github.com/flutter/flutter/issues/29049)) https://github.com/flutter/engine/compare/a48cd16e0777...60314077846c git log a48cd16e077778a7aa5908e4faa4da07714260f2..60314077846c123f45c5aaef911c5ea48343d569 --no-merges --oneline 603140778 Roll src/third_party/skia 88b8d1124b72..3d1b941f3a7d (27 commits) ([flutter/engine#8082](https://github.com/flutter/engine/issues/8082)) 95ef58cf4 Add script to help generate PR messages ([flutter/engine#8074](https://github.com/flutter/engine/issues/8074)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|Dan Field |print system time on all mac builds ([#29025](https://github.com/flutter/flutter/issues/29025))| +|Jonah Williams |Revert "re-enable dart2js test ([#29010](https://github.com/flutter/flutter/issues/29010))" ([#29030](https://github.com/flutter/flutter/issues/29030)) This reverts commit 6a7f231d89156272a5317141f1cde64fae93c9b4.| +|Jonah Williams |re-enable dart2js test ([#29010](https://github.com/flutter/flutter/issues/29010))| +|Gary Qian |Initialize the lifecycle state with initial state in window. Roll engine (19 commits) ([#28688](https://github.com/flutter/flutter/issues/28688)) git log --oneline --no-merges f4951df193a7966f9ed4da43d555eee0913d84d1..a48cd16e077778a7aa5908e4faa4da07714260f2 a48cd16e0 Update a11y word forward/back enum names (https://github.com/flutter/engine/pull/8073) b5f59ed89 Delay the vsync callback till the frame start time specified by embedder. (https://github.com/flutter/engine/pull/8072) 7426305f5 Mark const extern (https://github.com/flutter/engine/pull/8077) d3f6d7a21 only partial rule revert (https://github.com/flutter/engine/pull/8078) d71bfe58d Only build a full Dart SDK when building for the host system (https://github.com/flutter/engine/pull/8071) de90dbff7 Refactor web configuration/ Add dartdevc (https://github.com/flutter/engine/pull/7978) ff46dd38f Roll src/third_party/skia 4c1ea43a79b5..88b8d1124b72 (8 commits) (https://github.com/flutter/engine/pull/8070) 80c6dd286 Roll src/third_party/skia 692122e3ef23..4c1ea43a79b5 (3 commits) (https://github.com/flutter/engine/pull/8069) 68ed654ea Roll src/third_party/skia 3c957d575c58..692122e3ef23 (6 commits) (https://github.com/flutter/engine/pull/8067) ca0bac4fb Revert "add signal to pointer kinds" (https://github.com/flutter/engine/pull/8066) 3fb627f2c add signal to pointer kinds (https://github.com/flutter/engine/pull/8065) 5a06afa2a Roll src/third_party/skia 801a9c16d81e..3c957d575c58 (19 commits) (https://github.com/flutter/engine/pull/8063) a93d99db9 A11y callback (https://github.com/flutter/engine/pull/8005) 3661d5e43 Re-land "Buffer lifecycle in WindowData" (https://github.com/flutter/engine/pull/8032) 471a2c89a Send scroll events from the macOS shell (https://github.com/flutter/engine/pull/8056) 2fe9c9b5f Roll src/third_party/skia 72542816cadb..801a9c16d81e (46 commits) (https://github.com/flutter/engine/pull/8060) 3335764ae Skip skp files in license check (https://github.com/flutter/engine/pull/8050) 7f16789b2 Remove redundant thread checker in FML. (https://github.com/flutter/engine/pull/8053) 840c5233a Correct URL for Cirrus CI build status badge (https://github.com/flutter/engine/pull/8054) 57c120a29 remove extra source files (https://github.com/flutter/engine/pull/8052) 4773375c6 Used named conditionals for platform specific dependencies and suppress Android and Windows hooks on Mac. (https://github.com/flutter/engine/pull/8051) 70a18b515 Add clang static analysis support to gn wrapper (https://github.com/flutter/engine/pull/8047) b30f9897b Improve elevation bounds for physical shape layers (https://github.com/flutter/engine/pull/8044) e37bd27b4 Fix weak pointer use violations in shell and platform view. (https://github.com/flutter/engine/pull/8046) dd80fc9ff Add engine support for scrollwheel events (https://github.com/flutter/engine/pull/7494)| +|Dan Field |make coverage work again ([#29016](https://github.com/flutter/flutter/issues/29016))| +|Jonah Williams |Remove extra build_runner modes, remove flutter_build ([#28873](https://github.com/flutter/flutter/issues/28873))| +|Kate Lovett |Form Snippet for API Docs ([#28857](https://github.com/flutter/flutter/issues/28857)) * Added code snippet for Form Class. ref:[#21136](https://github.com/flutter/flutter/issues/21136) * Formatting adjustments. * Changed wording related to GlobalKey.| +|xster |Add more doc pointing to the EditableText's rudimentary nature around gesture handling ([#28955](https://github.com/flutter/flutter/issues/28955))| +|liyuqian |Quick fix for shader warm up ([#28951](https://github.com/flutter/flutter/issues/28951)) Fix issues in https://github.com/flutter/flutter/pull/28687| +|Alexandre Ardhuin |Fix indentations of statements in BlockFunctionBody ([#28933](https://github.com/flutter/flutter/issues/28933)) * fix indentof statements in BlockFunctionBody * fix indentof statements in BlockFunctionBody in tests| +|Dan Field |Fix coverage shard and print summary after test run ([#28970](https://github.com/flutter/flutter/issues/28970)) * Fix coverage shard * clarify * Make sure we print test results * Actually report test results before exiting * revert unintended changes| +|Jonah Williams |select ResidentCompiler during FlutterDevice initialization ([#28603](https://github.com/flutter/flutter/issues/28603))| +|Dan Field |Fall-back to platform tools in Android SDK detection logic. ([#28863](https://github.com/flutter/flutter/issues/28863))| +|Jonah Williams |Revert "Roll engine f4951df193a7..471a2c89a689 (11 commits) ([#28966](https://github.com/flutter/flutter/issues/28966))" ([#28975](https://github.com/flutter/flutter/issues/28975)) This reverts commit 1b14339e6ab1365dd8c3104f70cf40bc45f48586.| +|Tong Mu |Add minimum time gap requirement to double tap ([#28749](https://github.com/flutter/flutter/issues/28749)) * First impl with StopwatchWithZone * Clean up params and name * Remove outdated TODO * Fix style * Fix a missing param. Add @require * Fix import meta * Fix code style * Add missing require. Fix comment style. * Fix code style * Fix code style| +|engine-flutter-autoroll |Roll engine f4951df193a7..471a2c89a689 (11 commits) ([#28966](https://github.com/flutter/flutter/issues/28966)) https://github.com/flutter/engine/compare/f4951df193a7...471a2c89a689 git log f4951df193a7966f9ed4da43d555eee0913d84d1..471a2c89a689ff1d5c70a5deb4565f646380bce6 --no-merges --oneline 471a2c89a Send scroll events from the macOS shell ([flutter/engine#8056](https://github.com/flutter/engine/issues/8056)) 2fe9c9b5f Roll src/third_party/skia 72542816cadb..801a9c16d81e (46 commits) ([flutter/engine#8060](https://github.com/flutter/engine/issues/8060)) 3335764ae Skip skp files in license check ([flutter/engine#8050](https://github.com/flutter/engine/issues/8050)) 7f16789b2 Remove redundant thread checker in FML. ([flutter/engine#8053](https://github.com/flutter/engine/issues/8053)) 840c5233a Correct URL for Cirrus CI build status badge ([flutter/engine#8054](https://github.com/flutter/engine/issues/8054)) 57c120a29 remove extra source files ([flutter/engine#8052](https://github.com/flutter/engine/issues/8052)) 4773375c6 Used named conditionals for platform specific dependencies and suppress Android and Windows hooks on Mac. ([flutter/engine#8051](https://github.com/flutter/engine/issues/8051)) 70a18b515 Add clang static analysis support to gn wrapper ([flutter/engine#8047](https://github.com/flutter/engine/issues/8047)) b30f9897b Improve elevation bounds for physical shape layers ([flutter/engine#8044](https://github.com/flutter/engine/issues/8044)) e37bd27b4 Fix weak pointer use violations in shell and platform view. ([flutter/engine#8046](https://github.com/flutter/engine/issues/8046)) dd80fc9ff Add engine support for scrollwheel events ([flutter/engine#7494](https://github.com/flutter/engine/issues/7494)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (mklim@google.com), and stop the roller if necessary.| +|xster |Move material iOS back swipe test to material ([#28855](https://github.com/flutter/flutter/issues/28855))| +|Muhammed Salih Guler |Add semantics label to FadeInImage. ([#28799](https://github.com/flutter/flutter/issues/28799))| +|TruongSinh Tran-Nguyen |fix [#19175](https://github.com/flutter/flutter/issues/19175) How should addTime be used from a test? ([#25202](https://github.com/flutter/flutter/issues/25202))| +|Ivan |fix missing variable name ([#28944](https://github.com/flutter/flutter/issues/28944))| +|Jonah Williams |Add build script invalidation and snapshotting logic ([#28866](https://github.com/flutter/flutter/issues/28866))| +|Dan Field |Fix for post submit on cirrus ([#28963](https://github.com/flutter/flutter/issues/28963)) * Fix for post submit on cirrus| +|Dan Field |Test reporter ([#28297](https://github.com/flutter/flutter/issues/28297)) * Wrap test.main with a custom processor * Report test results to bigquery table| +|Jason Simmons |Remove the flutter_shared assets directory from the Gradle script ([#27572](https://github.com/flutter/flutter/issues/27572)) flutter_shared was used to package the icudtl.dat file, but that data is now embedded inside libflutter.so| +|Phil Quitslund |set literal conversions ([#27811](https://github.com/flutter/flutter/issues/27811))| +|Dan Field |Update docs for ancestorWidgetOfExactType ([#28675](https://github.com/flutter/flutter/issues/28675)) * doc update| +|Reece Dunham |Update macOS version in tests ([#28852](https://github.com/flutter/flutter/issues/28852)) This switches the Cirrus macOS images to use Mojave, since Cirrus has deprecated the High Sierra images.| +|Chris Bracken |Fix crash on flutter update-packages ([#28922](https://github.com/flutter/flutter/issues/28922)) When running git update-packages, if the goldens repo is dirty, the flutter tool currently crashes and logs the failure from git pull. This adds a check for a dirty git client and emits a friendlier error message in the case where it's not clean, and avoid the crash by catching the NonZeroExitCode exception and rethrowing as toolExit instead. Fixes: https://github.com/flutter/flutter/issues/28915| +|Alexandre Ardhuin |fix some formatting issues ([#28809](https://github.com/flutter/flutter/issues/28809)) * fix some formatting issues * address review comments * fix indent| +|Chris Bracken |Roll engine 4f54a1d...2e97618 ([#28899](https://github.com/flutter/flutter/issues/28899)) flutter/engine@f4951df19 (upstream/master) Minor cleanups to CONTRIBUTING.md ([flutter/engine#8043](https://github.com/flutter/engine/issues/8043)) flutter/engine@effee2f80 remove extra statement ([flutter/engine#8041](https://github.com/flutter/engine/issues/8041)) flutter/engine@14e082fa0 (master) add lint script for Android with baseline ([flutter/engine#8036](https://github.com/flutter/engine/issues/8036)) flutter/engine@5fed42197 Roll src/third_party/skia 25bc174cf682..72542816cadb (14 commits) ([flutter/engine#8040](https://github.com/flutter/engine/issues/8040)) flutter/engine@e6a5201f0 Add missing values to semantics action enums ([flutter/engine#8033](https://github.com/flutter/engine/issues/8033)) flutter/engine@75d4db31d Roll src/third_party/skia fbc887df72ec..25bc174cf682 (7 commits) ([flutter/engine#8039](https://github.com/flutter/engine/issues/8039)) flutter/engine@c46226980 Roll src/third_party/skia 0a57971f0544..fbc887df72ec (1 commits) ([flutter/engine#8037](https://github.com/flutter/engine/issues/8037)) flutter/engine@ed628da00 Add missing kHasImplicitScrolling enum value ([flutter/engine#8030](https://github.com/flutter/engine/issues/8030)) flutter/engine@052774e1c Roll src/third_party/skia e3e80b7edfd1..0a57971f0544 (16 commits) ([flutter/engine#8035](https://github.com/flutter/engine/issues/8035)) flutter/engine@2cd9b41ba Select MPL instead of LGPL ([flutter/engine#7991](https://github.com/flutter/engine/issues/7991)) flutter/engine@629c0d836 Roll src/third_party/dart 7d8ffe0daf..571ea80e11 (3 commits) flutter/engine@8f1fdcd19 Android Embedding PR 14: Almost done with FlutterFragment. ([flutter/engine#8000](https://github.com/flutter/engine/issues/8000)) flutter/engine@fb3e35d6a Android Embedding PR15: Add Viewport Metrics to FlutterView ([flutter/engine#8029](https://github.com/flutter/engine/issues/8029)) flutter/engine@36ca5740c ([flutter/engine#8026](https://github.com/flutter/engine/issues/8026)) flutter/engine@3d53e2026 Roll src/third_party/skia 5800f2e8a920..e3e80b7edfd1 (2 commits) ([flutter/engine#8028](https://github.com/flutter/engine/issues/8028)) flutter/engine@f3d4a7f71 Roll src/third_party/dart 7c70ab1817..7d8ffe0daf (77 commits) flutter/engine@a2246c199 Start of linting Android embedding ([flutter/engine#8023](https://github.com/flutter/engine/issues/8023)) flutter/engine@48bf4803e [fuchsia] Fix snapshot BUILD.gn file for Fuchsia roll ([flutter/engine#8024](https://github.com/flutter/engine/issues/8024))| +|Amir Hardon |Make RenderUiKitView reject absorbed touch events ([#28666](https://github.com/flutter/flutter/issues/28666)) When a touch event that is in the bounds of a RenderUiKitView is absorbed by another render object, the RenderUiKitView's handleEvent is not called for that object. On the platform side, the touch event hits the FlutterTouchInterceptingView which is waiting for a framework decision that never arrived on whether to reject or accept the gesture. This change fixes the issue by having RenderUiKitView register a global PointerRoute, that is used to reject absorbed touch events.| +|Kate Lovett |FAB Snippet for API Docs ([#28752](https://github.com/flutter/flutter/issues/28752)) * Added code snippets for FloatingActionButton Class. ref:[#21136](https://github.com/flutter/flutter/issues/21136) * Extraneous white spaces. Co-Authored-By: Piinks * Alignment correction. * The analyze result wasn't showing on github interface. Checked through Cirrus and it's all-green. Co-Authored-By: Piinks | +|Hans Muller |Handle Cupertino back gesture interrupted by Navigator push ([#28756](https://github.com/flutter/flutter/issues/28756))| +|Jason Simmons |Use a simpler implementation of Diagnosticable.toString when running in profile/release mode ([#28661](https://github.com/flutter/flutter/issues/28661)) Diagnosticable.toString may be called in performance sensitive contexts (for example, creating debug labels for Tickers)| +|Jason Simmons |Avoid the overhead of instantiating a generator in paintImage ([#28736](https://github.com/flutter/flutter/issues/28736)) This function is called frequently with non-repeating images during many animations| +|Joshua Seaton |[fuchsia] Permit relative entries to the fuchsia_tester ([#28821](https://github.com/flutter/flutter/issues/28821)) This change permits (1) a relative --flutter-shell (2) relative (source, dill) entries within the test JSON file and enables portability in the invocation scripts produced by fuchsia's dart test GN template.| +|engine-flutter-autoroll |Roll engine e9eae9a1af77..4f54a1dd9444 (3 commits) ([#28843](https://github.com/flutter/flutter/issues/28843)) https://github.com/flutter/engine/compare/e9eae9a1af77...4f54a1dd9444 git log e9eae9a1af77400d02c498f0ad943f2858845398..4f54a1dd944497bd1ec0f2acca22ff9fbd8b377a --no-merges --oneline 4f54a1dd9 Roll src/third_party/skia c1a9feb6f06e..5800f2e8a920 (2 commits) ([flutter/engine#8022](https://github.com/flutter/engine/issues/8022)) 75e2b4702 Roll src/third_party/skia c6671be0ea75..c1a9feb6f06e (2 commits) ([flutter/engine#8021](https://github.com/flutter/engine/issues/8021)) b44a9305c Roll src/third_party/skia 1b9f889628e0..c6671be0ea75 (1 commits) ([flutter/engine#8020](https://github.com/flutter/engine/issues/8020)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |e9eae9a1a Roll src/third_party/skia c97b0672a73f..1b9f889628e0 (1 commits) ([flutter/engine#8019](https://github.com/flutter/engine/issues/8019)) ([#28801](https://github.com/flutter/flutter/issues/28801)) https://github.com/flutter/engine/compare/a28329cb91ac...e9eae9a1af77 git log a28329cb91ac18ad4d7950b3b170a74a8de979ee..e9eae9a1af77400d02c498f0ad943f2858845398 --no-merges --oneline e9eae9a1a Roll src/third_party/skia c97b0672a73f..1b9f889628e0 (1 commits) ([flutter/engine#8019](https://github.com/flutter/engine/issues/8019)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 39c46dea4b73..a28329cb91ac (10 commits) ([#28797](https://github.com/flutter/flutter/issues/28797)) https://github.com/flutter/engine/compare/39c46dea4b73...a28329cb91ac git log 39c46dea4b7347a252218aaff5caac5dc2fec8cd..a28329cb91ac18ad4d7950b3b170a74a8de979ee --no-merges --oneline a28329cb9 Roll src/third_party/skia 58a75383a70b..c97b0672a73f (1 commits) ([flutter/engine#8018](https://github.com/flutter/engine/issues/8018)) cdc141072 Roll src/third_party/skia 0d7012a80c17..58a75383a70b (1 commits) ([flutter/engine#8017](https://github.com/flutter/engine/issues/8017)) 01d8a1f27 Roll src/third_party/skia c945f0e31a53..0d7012a80c17 (1 commits) ([flutter/engine#8016](https://github.com/flutter/engine/issues/8016)) 75cd4df37 Roll src/third_party/skia 9159c8ef83b2..c945f0e31a53 (1 commits) ([flutter/engine#8015](https://github.com/flutter/engine/issues/8015)) 13064aec8 Add overloads for lookup that lets you specify a bundle ([flutter/engine#8007](https://github.com/flutter/engine/issues/8007)) 130cf77c5 Build engine for iOS on presubmit ([flutter/engine#8011](https://github.com/flutter/engine/issues/8011)) 7234cc463 Roll src/third_party/skia 705e67347962..9159c8ef83b2 (1 commits) ([flutter/engine#8014](https://github.com/flutter/engine/issues/8014)) 8a0b054a4 Roll src/third_party/skia 09198525261a..705e67347962 (7 commits) ([flutter/engine#8013](https://github.com/flutter/engine/issues/8013)) 36cdd2ee6 Roll src/third_party/skia 436d47d5bde9..09198525261a (6 commits) ([flutter/engine#8012](https://github.com/flutter/engine/issues/8012)) 9bef73a1a Roll src/third_party/skia e1f5b644656f..436d47d5bde9 (3 commits) ([flutter/engine#8009](https://github.com/flutter/engine/issues/8009)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Danny Tuppeny |Fix the test annotation used for test groups ([#28638](https://github.com/flutter/flutter/issues/28638))| +|Jonah Williams |switch tool tests to build runner ([#28759](https://github.com/flutter/flutter/issues/28759))| +|engine-flutter-autoroll |Roll engine 66042161eba1..39c46dea4b73 (4 commits) ([#28755](https://github.com/flutter/flutter/issues/28755)) https://github.com/flutter/engine/compare/66042161eba1...39c46dea4b73 git log 66042161eba17da968800c57ddd2c314cd787abb..39c46dea4b7347a252218aaff5caac5dc2fec8cd --no-merges --oneline 39c46dea4 Revert &[#34](https://github.com/flutter/flutter/issues/34);Buffer lifecycle in WindowData ([#7999](https://github.com/flutter/flutter/issues/7999))&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#8010](https://github.com/flutter/engine/issues/8010)) 293cfcaa5 Guard against using Android API not defined in API level 16 & 17 ([flutter/engine#8006](https://github.com/flutter/engine/issues/8006)) d7e0bc10c Roll src/third_party/skia 71a23d4195d9..e1f5b644656f (8 commits) ([flutter/engine#8004](https://github.com/flutter/engine/issues/8004)) 0b1740171 Buffer lifecycle in WindowData ([flutter/engine#7999](https://github.com/flutter/engine/issues/7999)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Kate Lovett |Expanded Snippet for API Docs ([#28681](https://github.com/flutter/flutter/issues/28681)) * Added code snippet for Expanded class. ref:[#21136](https://github.com/flutter/flutter/issues/21136) * Changed the code samples into snippet application samples.| +|Jonah Williams |Revert "Remove the old HaTS implementation on API docs" ([#28748](https://github.com/flutter/flutter/issues/28748))| +|Dan Field |Update README.md ([#28734](https://github.com/flutter/flutter/issues/28734)) @xster| +|Tong Mu |Add animation curve slowMiddle ([#28540](https://github.com/flutter/flutter/issues/28540)) * Add curve fastInFastOut * Rename it to slowCenter * Rename to slowMiddle * Add continuous test| +|Greg Spencer |Be more strict about finding version number attached to a revision. ([#28527](https://github.com/flutter/flutter/issues/28527)) When we package Flutter, we used to find the "current" tag (which is the version number) by starting at the revision we are building on and looking backwards in time to find the most recent tag. This causes problems on release builds when we failed to tag properly. This PR makes the packaging script be more strict by requiring the given revision to itself have a tag, but only when we're publishing the result. When we're not publishing the result, it's more lenient, since otherwise we couldn't test packaging on non-release commits. I also renamed ProcessRunnerException to PreparePackageException, since we were using that exception more generally than just for processes.| +|Ja Young Lee <11873270+jayoung-lee@users.noreply.github.com>|Remove the old HaTS implementation on API docs ([#28683](https://github.com/flutter/flutter/issues/28683))| +|Mouad Debbar |Text selection via mouse ([#28290](https://github.com/flutter/flutter/issues/28290))| +|ocavue |Fix ink highlight effect of RawChip ([#28653](https://github.com/flutter/flutter/issues/28653))| +|Alexander Markov |Include git output into error message from channel command ([#28658](https://github.com/flutter/flutter/issues/28658))| +|Dan Field |improve error messages on Text constructors ([#28709](https://github.com/flutter/flutter/issues/28709))| +|engine-flutter-autoroll |66042161e Roll src/third_party/skia 255569187f27..71a23d4195d9 (1 commits) ([flutter/engine#8003](https://github.com/flutter/engine/issues/8003)) ([#28731](https://github.com/flutter/flutter/issues/28731)) https://github.com/flutter/engine/compare/99f3f7a9c246...66042161eba1 git log 99f3f7a9c246f1ebedc6eefd867cde250b370380..66042161eba17da968800c57ddd2c314cd787abb --no-merges --oneline 66042161e Roll src/third_party/skia 255569187f27..71a23d4195d9 (1 commits) ([flutter/engine#8003](https://github.com/flutter/engine/issues/8003)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Hans Muller |Update TabController.indexIsChanging doc ([#28663](https://github.com/flutter/flutter/issues/28663))| +|Chris Bracken |Log pub return code on failure on Windows ([#28356](https://github.com/flutter/flutter/issues/28356)) When pub fails, log the %ERRRORLEVEL% to help diagnose the root cause of the pub failure.| +|Alexandre Ardhuin |Add missing trailing commas ([#28673](https://github.com/flutter/flutter/issues/28673)) * add trailing commas on list/map/parameters * add trailing commas on Invocation with nb of arg>1 * add commas for widget containing widgets * add trailing commas if instantiation contains trailing comma * revert bad change| +|Chris Bracken |Roll engine to 99f3f7a9c246f1ebedc6eefd867cde250b370380 ([#28698](https://github.com/flutter/flutter/issues/28698)) flutter/engine@99f3f7a9c Fix incorrect transformation matrix ([flutter/engine#8001](https://github.com/flutter/engine/issues/8001)) flutter/engine@c88b09710 Roll src/third_party/skia b7b2da871e95..255569187f27 (23 commits) ([flutter/engine#8002](https://github.com/flutter/engine/issues/8002)) flutter/engine@302e2e9d2 Fix cursor jumping when typing some special characters. ([flutter/engine#7964](https://github.com/flutter/engine/issues/7964)) flutter/engine@fe15149d1 Android Embedding PR 12: Add lifecycle methods to FlutterActivity. ([flutter/engine#7974](https://github.com/flutter/engine/issues/7974)) flutter/engine@6145e9046 Android Embedding PR 13: Integrated text input, keyevent input, and some other channel comms in FlutterView. ([flutter/engine#7979](https://github.com/flutter/engine/issues/7979))| +|liyuqian |Make shader warm-up async so it can handle image ([#28687](https://github.com/flutter/flutter/issues/28687)) ## Description This moves another 15-20ms from the animation jank of one of our important client to the startup latency. Unfortunately, this is probably not captured in our current benchmarks (presumably some other bottlenecks overshadow this shader compilation in the worst_frame benchmark). Considering that drawing images is such a common operation, maybe we should add one in the future to benchmark this. We need this PR to land soon for our client because this changes the API to return Future. ## Related Issues https://github.com/flutter/flutter/issues/813| +|liyuqian |Shader warm-up doc fixes ([#28679](https://github.com/flutter/flutter/issues/28679)) See https://github.com/flutter/flutter/pull/28614#discussion_r261422778 and https://github.com/flutter/flutter/pull/28614#pullrequestreview-209359908| +|Jonah Williams |Add capability to run build_runner tests for engine ([#28684](https://github.com/flutter/flutter/issues/28684))| +|engine-flutter-autoroll |Roll engine 5194919e1309..56c16154eada (3 commits) ([#28686](https://github.com/flutter/flutter/issues/28686)) https://github.com/flutter/engine/compare/5194919e1309...56c16154eada git log 5194919e130917d29ac15f0ac7f52ea94d1a4d67..56c16154eadada5f77c57ddca39a86c5e30c5768 --no-merges --oneline 56c16154e Android Embedding PR 9: Introduce an AndroidTouchProcessor to convert MotionEvents to Flutter touch data. ([flutter/engine#7947](https://github.com/flutter/engine/issues/7947)) a1d84996d Fix spelling errors in dartdocs ([flutter/engine#7997](https://github.com/flutter/engine/issues/7997)) 6bc9c3d17 Roll src/third_party/dart 40bab34fbd..7c70ab1817 (35 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Anthony |add await to fix analyzer ([#28157](https://github.com/flutter/flutter/issues/28157))| +|Michael Goderbauer |Drive-by fix for TODO ([#28669](https://github.com/flutter/flutter/issues/28669))| +|Greg Spencer |Fix spelling errors. ([#28657](https://github.com/flutter/flutter/issues/28657)) Fix the spelling errors in the dartdocs for the framework. There are no functionality changes here, just documentation fixes.| +|liyuqian |Add convex path and non-AA paint to shader warm-up ([#28614](https://github.com/flutter/flutter/issues/28614)) One of our important client's SKP shows that this could improve one of their janky frame by 20ms. This also improves our flutter_gallery__transition_perf's worst frame time by ~20ms. On the other hand, 15ms has been added to the start-up latency. I guess it's a little faster to compile the shader on the start-up because we're compiling a lot of shaders there and the CPU cache must be hot. ## Related Issues https://github.com/flutter/flutter/issues/813| +|engine-flutter-autoroll |Roll engine 9b924765f4de..5194919e1309 (6 commits) ([#28660](https://github.com/flutter/flutter/issues/28660)) https://github.com/flutter/engine/compare/9b924765f4de...5194919e1309 git log 9b924765f4de29cb9751eb598a629f0cc8d4975b..5194919e130917d29ac15f0ac7f52ea94d1a4d67 --no-merges --oneline 5194919e1 Roll src/third_party/skia 1179d5dfaf8d..b7b2da871e95 (1 commits) ([flutter/engine#7996](https://github.com/flutter/engine/issues/7996)) 58ce0fff7 Roll src/third_party/skia 90043480b587..1179d5dfaf8d (3 commits) ([flutter/engine#7995](https://github.com/flutter/engine/issues/7995)) 72cbe69cc Fix two typos in embedder.h ([flutter/engine#7993](https://github.com/flutter/engine/issues/7993)) 2360b459d Android Embedding PR 11: Add FlutterEngine to FlutterFragment. ([flutter/engine#7972](https://github.com/flutter/engine/issues/7972)) df03ec74f Roll src/third_party/skia 0cedddc1420b..90043480b587 (1 commits) ([flutter/engine#7994](https://github.com/flutter/engine/issues/7994)) 4a148cdc8 Roll src/third_party/skia 67d87128fd00..0cedddc1420b (10 commits) ([flutter/engine#7992](https://github.com/flutter/engine/issues/7992)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Hans Muller |Updated gallery light and dark themes ([#28619](https://github.com/flutter/flutter/issues/28619))| +|Shivam Bhasin <32370728+shivamvk@users.noreply.github.com>|Add Sample code for FlatButton [#21136](https://github.com/flutter/flutter/issues/21136) ([#27751](https://github.com/flutter/flutter/issues/27751)) * Update flat_button.dart * Added smaple code for Flat Button * Update flat_button.dart * Revert "Update flat_button.dart" This reverts commit c8f00dff39e18b267295890bd0c5a86979b58c24. * Revert "Added smaple code for Flat Button" This reverts commit adc4234bc7956293a5b56f39701c6967fe3e919a. * Update flat_button.dart * Update flat_button.dart * Update flat_button.dart * remove white spaces * remove white spaces * add two different samples * Update flat_button.dart| +|engine-flutter-autoroll |9b924765f Improve performance of Locale.toString ([flutter/engine#7990](https://github.com/flutter/engine/issues/7990)) ([#28623](https://github.com/flutter/flutter/issues/28623)) https://github.com/flutter/engine/compare/3e4e6f5c54db...9b924765f4de git log 3e4e6f5c54db7a705e6d50f7f3bddfa2ac0d6612..9b924765f4de29cb9751eb598a629f0cc8d4975b --no-merges --oneline 9b924765f Improve performance of Locale.toString ([flutter/engine#7990](https://github.com/flutter/engine/issues/7990)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Hans Muller |Add warnings and an example to the TextEditingController docs ([#28604](https://github.com/flutter/flutter/issues/28604))| +|engine-flutter-autoroll |Roll engine 4434a39c7d54..3e4e6f5c54db (18 commits) ([#28612](https://github.com/flutter/flutter/issues/28612)) https://github.com/flutter/engine/compare/4434a39c7d54...3e4e6f5c54db git log 4434a39c7d545ed47186b2f4d98cd09c8366e720..3e4e6f5c54db7a705e6d50f7f3bddfa2ac0d6612 --no-merges --oneline 3e4e6f5c5 Provide batching for semantics updates ([flutter/engine#7988](https://github.com/flutter/engine/issues/7988)) 0852795bf Roll src/third_party/skia ff84d8a900d4..67d87128fd00 (7 commits) ([flutter/engine#7987](https://github.com/flutter/engine/issues/7987)) 1089b5c9f Check for a null pressure range for motion events ([flutter/engine#7986](https://github.com/flutter/engine/issues/7986)) b7d512949 [macos] Add hover support to FLEViewController ([flutter/engine#7975](https://github.com/flutter/engine/issues/7975)) a82c7ee73 Add async events to pipeline flows. ([flutter/engine#7985](https://github.com/flutter/engine/issues/7985)) c3eb7aea8 Roll src/third_party/skia ab3f8674c9d2..ff84d8a900d4 (1 commits) ([flutter/engine#7983](https://github.com/flutter/engine/issues/7983)) 15793288e Roll src/third_party/dart 9450c6d829..40bab34fbd (8 commits) b324969c1 Roll src/third_party/dart e94e797d7b..9450c6d829 (8 commits) 3f3e4ec90 Roll src/third_party/skia f6faf2fcea7b..ab3f8674c9d2 (2 commits) ([flutter/engine#7980](https://github.com/flutter/engine/issues/7980)) d162ad842 Roll src/third_party/skia 4dbb96dfaa04..f6faf2fcea7b (7 commits) ([flutter/engine#7977](https://github.com/flutter/engine/issues/7977)) 5deb15cdf Roll src/third_party/dart 05bba46133..e94e797d7b (5 commits) 4db7c3050 Android Embedding PR 10: Add system channels to FlutterEngine. ([flutter/engine#7960](https://github.com/flutter/engine/issues/7960)) 9f92324fd Suppress deprecation warning for usage of Configuration.locale ([flutter/engine#7973](https://github.com/flutter/engine/issues/7973)) 9b21ea857 Roll src/third_party/dart 385be0cf31..05bba46133 (6 commits) e3f1bdc4d Roll src/third_party/skia adfc6e40df30..4dbb96dfaa04 (6 commits) ([flutter/engine#7970](https://github.com/flutter/engine/issues/7970)) e32531f0e Switch flutter&[#39](https://github.com/flutter/flutter/issues/39);s dart sdk to full and add dartdevc libraries ([flutter/engine#7968](https://github.com/flutter/engine/issues/7968)) fb1c543dd Link dart:* sources into engine for debugger source support ([flutter/engine#7908](https://github.com/flutter/engine/issues/7908)) dd3656a51 Roll src/third_party/dart 0f9a5198bd..385be0cf31 (14 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Chris Bracken |Roll engine to 3e4e6f5c54db7a705e6d50f7f3bddfa2ac0d6612 ([#28607](https://github.com/flutter/flutter/issues/28607)) flutter/engine@3e4e6f5c5 Provide batching for semantics updates ([flutter/engine#7988](https://github.com/flutter/engine/issues/7988)) flutter/engine@0852795bf Roll src/third_party/skia ff84d8a900d4..67d87128fd00 (7 commits) ([flutter/engine#7987](https://github.com/flutter/engine/issues/7987)) flutter/engine@1089b5c9f Check for a null pressure range for motion events ([flutter/engine#7986](https://github.com/flutter/engine/issues/7986)) flutter/engine@b7d512949 [macos] Add hover support to FLEViewController ([flutter/engine#7975](https://github.com/flutter/engine/issues/7975)) flutter/engine@a82c7ee73 Add async events to pipeline flows. ([flutter/engine#7985](https://github.com/flutter/engine/issues/7985)) flutter/engine@c3eb7aea8 Roll src/third_party/skia ab3f8674c9d2..ff84d8a900d4 (1 commits) ([flutter/engine#7983](https://github.com/flutter/engine/issues/7983)) flutter/engine@15793288e Roll src/third_party/dart 9450c6d829..40bab34fbd (8 commits) flutter/engine@b324969c1 Roll src/third_party/dart e94e797d7b..9450c6d829 (8 commits) flutter/engine@3f3e4ec90 Roll src/third_party/skia f6faf2fcea7b..ab3f8674c9d2 (2 commits) ([flutter/engine#7980](https://github.com/flutter/engine/issues/7980)) flutter/engine@d162ad842 Roll src/third_party/skia 4dbb96dfaa04..f6faf2fcea7b (7 commits) ([flutter/engine#7977](https://github.com/flutter/engine/issues/7977)) flutter/engine@5deb15cdf Roll src/third_party/dart 05bba46133..e94e797d7b (5 commits) flutter/engine@4db7c3050 Android Embedding PR 10: Add system channels to FlutterEngine. ([flutter/engine#7960](https://github.com/flutter/engine/issues/7960)) flutter/engine@9f92324fd Suppress deprecation warning for usage of Configuration.locale ([flutter/engine#7973](https://github.com/flutter/engine/issues/7973)) flutter/engine@9b21ea857 Roll src/third_party/dart 385be0cf31..05bba46133 (6 commits) flutter/engine@e3f1bdc4d Roll src/third_party/skia adfc6e40df30..4dbb96dfaa04 (6 commits) ([flutter/engine#7970](https://github.com/flutter/engine/issues/7970)) flutter/engine@e32531f0e Switch flutter's dart sdk to full and add dartdevc libraries ([flutter/engine#7968](https://github.com/flutter/engine/issues/7968)) flutter/engine@fb1c543dd Link dart:* sources into engine for debugger source support ([flutter/engine#7908](https://github.com/flutter/engine/issues/7908)) flutter/engine@dd3656a51 Roll src/third_party/dart 0f9a5198bd..385be0cf31 (14 commits) flutter/engine@4434a39c7 Add api 21 check to LocalizationChannel.java ([flutter/engine#7967](https://github.com/flutter/engine/issues/7967))| +|Kate Lovett |TextField Snippet for API Docs ([#28598](https://github.com/flutter/flutter/issues/28598)) * Added code snippet for TextField class. ref:[#21136](https://github.com/flutter/flutter/issues/21136) * Errant semicolon| +|Michael Goderbauer |Call onTapCancel when down pointer gets cancelled ([#28546](https://github.com/flutter/flutter/issues/28546))| +|Chris Bracken |Roll engine to 4434a39c7d545ed47186b2f4d98cd09c8366e720 ([#28608](https://github.com/flutter/flutter/issues/28608))| +|Jonah Williams |disable dart2js test ([#28555](https://github.com/flutter/flutter/issues/28555))| +|Moein Porkamel |Fix typo ([#28558](https://github.com/flutter/flutter/issues/28558))| +|liyuqian |Reland "Shader warm up ([#27660](https://github.com/flutter/flutter/issues/27660))" ([#28537](https://github.com/flutter/flutter/issues/28537)) This reverts commit adc8e159a548121a45ff7a45b4e556aff998d4bd. This should be safe to land once https://github.com/flutter/flutter/pull/28530 gets merged Merge on yellow doc test because the doc test is actually green.| +|Jonah Williams |remove personal repo and replace with trivial example for smoke test ([#28386](https://github.com/flutter/flutter/issues/28386))| +|liyuqian |Add LICENSE test to presubmit checks ([#28369](https://github.com/flutter/flutter/issues/28369)) ## Description Also update the existing dart files with missing licenses. Without the fix, we'll emit the following error message ``` License headers cannot be found at the beginning of the following files. /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter/lib/src/animation/tween_sequence.dart /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter/test/material/raw_material_button_test.dart /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter/test/widgets/async_lifecycle_test.dart /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter/test/widgets/sliver_constraints_test.dart /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter/test/widgets/app_test.dart /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter/test/widgets/test_border.dart /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter/test/widgets/physical_model_test.dart /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter/test/widgets/inherited_model.dart /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter_tools/lib/src/base/user_messages.dart /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter_tools/test/src/pubspec_schema.dart /usr/local/google/home/liyuqian/flutter/flutter/packages/flutter_tools/test/ios/simulators_test.dart ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ``` ## Related Issues Fixes https://github.com/flutter/flutter/issues/28368 ## Checklist Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (`[x]`). This will ensure a smooth and quick review process. - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] My PR includes tests for *all* changed/updated/fixed behaviors (See [Test Coverage]). - [x] All existing and new tests are passing. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] The analyzer (`flutter analyze --flutter-repo`) does not report any problems on my PR. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I am willing to follow-up on review comments in a timely manner. ## Breaking Change Does your PR require Flutter developers to manually update their apps to accommodate your change? - [ ] Yes, this is a breaking change (Please read [Handling breaking changes]). - [x] No, this is *not* a breaking change. [issue database]: https://github.com/flutter/flutter/issues [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Test Coverage]: https://github.com/flutter/flutter/blob/main/docs/contributing/testing/Test-coverage-for-package-flutter.md [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [Handling breaking changes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes| +|liyuqian |Fix backspace and clear length in AnsiStatus ([#28477](https://github.com/flutter/flutter/issues/28477)) Fixes https://github.com/flutter/flutter/issues/26922 Without the fix, the newly added test failed with the following error: ``` 00:07 +24 -4: Spinners AnsiStatus works for fuchsia [E] Expected: a non-negative value Actual: <-1> Which: is not a non-negative value The following line has overflow backtraces: "Hello world \b\b\b\b\b\b\b\b ⣽\b\b\b\b\b\b\b\b ⣻\b\b\b\b\b\b\b\b ⢿\b\b\b\b\b\b\b\b ⡿\b\b\b\b\b\b\b\b ⣟\b\b\b\b\b\b\b\b ⣯\b\b\b\b\b\b\b\b ⣷\b\b\b\b\b\b\b\b ⣾\b\b\b\b\b\b\b\b ⣽\b\b\b\b\b\b\b\b ⣻\b\b\b\b\b\b\b\b ⢿ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⡿ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣟ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣯ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣷ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣾ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣽ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣻ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⢿ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⡿ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣟ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣯ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣷ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣾ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣽ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣻ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⢿ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⡿ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣟ (This is taking an unexpectedly long time.)\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b ⣯ (This is taking an unexpectedly long time.)" ```| +|Jonah Williams |Add basic web device and run support ([#28302](https://github.com/flutter/flutter/issues/28302))| +|Dan Field |increase timeout ([#28480](https://github.com/flutter/flutter/issues/28480))| +|liyuqian |Fix type issue of the timelineEvents assignment ([#28530](https://github.com/flutter/flutter/issues/28530)) This fixes https://github.com/flutter/flutter/issues/28374 The fact that json_rpc_2 is hiding exceptions like this might be a bigger issue: https://github.com/flutter/flutter/issues/28531 Merge on red because add2app test is currently flaking out according to @dnfield| +|Sander Kersten |Add lerping between Gradients with arbitrary number of colors and stops ([#27435](https://github.com/flutter/flutter/issues/27435))| +|Anthony |[Material] Unit test for skipping Slider tick mark due to overdensity ([#28013](https://github.com/flutter/flutter/issues/28013)) Added a unit test to check that the tick marks are skipped over when the divisions are set to a number that makes them less than 6dp away from each other.| +|xster |Support iOS devices reporting pressure data of 0 ([#28478](https://github.com/flutter/flutter/issues/28478))| +|engine-flutter-autoroll |113b91fe8 Roll src/third_party/skia 8abc84294571..adfc6e40df30 (9 commits) ([flutter/engine#7965](https://github.com/flutter/engine/issues/7965)) ([#28526](https://github.com/flutter/flutter/issues/28526)) https://github.com/flutter/engine/compare/131091827790...113b91fe82f1 git log 1310918277907d48ad25a336bbee3269ccbb2674..113b91fe82f147b3fb77899726736171c06dad26 --no-merges --oneline 113b91fe8 Roll src/third_party/skia 8abc84294571..adfc6e40df30 (9 commits) ([flutter/engine#7965](https://github.com/flutter/engine/issues/7965)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Jonah Williams |pass --skip-build-script-checks and remove module usage ([#28343](https://github.com/flutter/flutter/issues/28343))| +|engine-flutter-autoroll |Roll engine fa7a25aea3e3..131091827790 (2 commits) ([#28522](https://github.com/flutter/flutter/issues/28522)) https://github.com/flutter/engine/compare/fa7a25aea3e3...131091827790 git log fa7a25aea3e35beee9824011798b66738e2005f0..1310918277907d48ad25a336bbee3269ccbb2674 --no-merges --oneline 131091827 Roll src/third_party/dart f7e435ac26..0f9a5198bd (2 commits) ef1e21f53 Roll src/third_party/skia 346e10e8ae1a..8abc84294571 (1 commits) ([flutter/engine#7962](https://github.com/flutter/engine/issues/7962)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Jonah Williams |use deviceManager discovery in daemon protocol ([#28341](https://github.com/flutter/flutter/issues/28341))| +|Greg Spencer |Add SHA256 checksums to published metadata ([#28472](https://github.com/flutter/flutter/issues/28472)) Adds SHA256 checksums to the released package database, in preparation for showing them on the download website. (I'll update the existing data by hand). Fixes [#28465](https://github.com/flutter/flutter/issues/28465)| +|Jonah Williams |remove json_schema dep again ([#28517](https://github.com/flutter/flutter/issues/28517))| +|Zachary Anderson |[flutter_tool,fuchsia_tester] Only require a test source dir for coverage ([#28168](https://github.com/flutter/flutter/issues/28168))| +|engine-flutter-autoroll |fa7a25aea Roll src/third_party/skia ac6d4c0c8eae..346e10e8ae1a (3 commits) ([flutter/engine#7959](https://github.com/flutter/engine/issues/7959)) ([#28511](https://github.com/flutter/flutter/issues/28511)) https://github.com/flutter/engine/compare/9f95ef23aac7...fa7a25aea3e3 git log 9f95ef23aac76c4f112446412cc6ae117e743378..fa7a25aea3e35beee9824011798b66738e2005f0 --no-merges --oneline fa7a25aea Roll src/third_party/skia ac6d4c0c8eae..346e10e8ae1a (3 commits) ([flutter/engine#7959](https://github.com/flutter/engine/issues/7959)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |9f95ef23a Android Embedding PR 8: Add FlutterEngine attachment/detachment to FlutterView ([flutter/engine#7946](https://github.com/flutter/engine/issues/7946)) ([#28510](https://github.com/flutter/flutter/issues/28510)) https://github.com/flutter/engine/compare/31d31e6d2ae8...9f95ef23aac7 git log 31d31e6d2ae853798c105f606bf2e5cfdd6e0b04..9f95ef23aac76c4f112446412cc6ae117e743378 --no-merges --oneline 9f95ef23a Android Embedding PR 8: Add FlutterEngine attachment/detachment to FlutterView ([flutter/engine#7946](https://github.com/flutter/engine/issues/7946)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 1d0615af4ee5..31d31e6d2ae8 (6 commits) ([#28507](https://github.com/flutter/flutter/issues/28507)) https://github.com/flutter/engine/compare/1d0615af4ee5...31d31e6d2ae8 git log 1d0615af4ee5a962a023e9ad2a0c2fab24d6dd1b..31d31e6d2ae853798c105f606bf2e5cfdd6e0b04 --no-merges --oneline 31d31e6d2 Android PR 7: Introduce structure of FlutterActivity and FlutterFragment ([flutter/engine#7912](https://github.com/flutter/engine/issues/7912)) 3962bbdc6 Roll src/third_party/skia bcfbf6e94c22..ac6d4c0c8eae (1 commits) ([flutter/engine#7958](https://github.com/flutter/engine/issues/7958)) cb9e6734a Roll src/third_party/dart 7a63d31151..f7e435ac26 (252 commits) 18ad03d49 Fixed an Android keyboard entry bug that was introduced by the embedding refactor. ([#28438](https://github.com/flutter/flutter/issues/28438)) ([flutter/engine#7954](https://github.com/flutter/engine/issues/7954)) a61056aa5 Roll src/third_party/skia 0b2c05470bab..bcfbf6e94c22 (8 commits) ([flutter/engine#7956](https://github.com/flutter/engine/issues/7956)) b36f9034c Roll src/third_party/dart c92d5ca288..7a63d31151 (6 commits) ([flutter/engine#7955](https://github.com/flutter/engine/issues/7955)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (garyq@google.com), and stop the roller if necessary.| +|Stevie Strickland |Remove unused --packages argument to gen_snapshot. ([#28334](https://github.com/flutter/flutter/issues/28334)) This command line argument has already been removed in the main Dart repository, so building flutter with the latest dart fails. This time, also update the tests to avoid the checks for a package path on snapshot generation.| +|Michael Goderbauer |Fuschia -> Fuchsia ([#28482](https://github.com/flutter/flutter/issues/28482))| +|engine-flutter-autoroll |Roll engine f7306394e303..1d0615af4ee5 (7 commits) ([#28487](https://github.com/flutter/flutter/issues/28487)) https://github.com/flutter/engine/compare/f7306394e303...1d0615af4ee5 git log f7306394e303a210a9971acb60f9ba11d7c64ec8..1d0615af4ee5a962a023e9ad2a0c2fab24d6dd1b --no-merges --oneline 1d0615af4 libtxt: remove a debug log message in ComputeStrut ([flutter/engine#7953](https://github.com/flutter/engine/issues/7953)) fd6c3fc70 Do not clear FlutterJNI state when a FlutterView is detached ([flutter/engine#7929](https://github.com/flutter/engine/issues/7929)) dff323d21 Roll src/third_party/skia 507158f88d4d..0b2c05470bab (19 commits) ([flutter/engine#7952](https://github.com/flutter/engine/issues/7952)) 5fcc6aca8 Roll src/third_party/skia 478d7d46f8d7..507158f88d4d (1 commits) ([flutter/engine#7949](https://github.com/flutter/engine/issues/7949)) 6e1f0f063 Roll src/third_party/skia 5bbd02d6bb3d..478d7d46f8d7 (1 commits) ([flutter/engine#7948](https://github.com/flutter/engine/issues/7948)) 9f6b297cc Roll src/third_party/skia e1636a4b56aa..5bbd02d6bb3d (1 commits) ([flutter/engine#7944](https://github.com/flutter/engine/issues/7944)) f2489c1b5 Correct FlutterSemanticsNode member name style ([flutter/engine#7942](https://github.com/flutter/engine/issues/7942)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|KyleWong |Add tests for pr:27687 ([#27944](https://github.com/flutter/flutter/issues/27944))| +|lsaudon |Add shapeBorder option on App Bar ([#21834](https://github.com/flutter/flutter/issues/21834))| +|xster |Add long-press-move support for text fields 2 ([#28242](https://github.com/flutter/flutter/issues/28242))| +|jslavitz |Breaks the moveBy call from drag and dragFrom into two separate calls and changes the default behavior of DragStartBehavior to DragStartBehavior.start ([#26438](https://github.com/flutter/flutter/issues/26438)) * Breaking change which sets the default DragStartBehavior to DragStartBehavior.start and changes WidgetTester.drag and WidgetTester.dragFrom by breaking the moveBy function call into multiple pieces.| +|stuartmorgan |Convert PointerEvent's toString to Diagnosticable ([#27904](https://github.com/flutter/flutter/issues/27904)) Rather than building a description string by hand, use Diagnosticable properties. Simplifies output, since many fields have uninteresting default values in many cases, and makes it easier to add more loggable properties in subclasses. Issue [#28014](https://github.com/flutter/flutter/issues/28014)| +|Jason Simmons |Only call Activity.reportFullyDrawn on Lollipop or above ([#28175](https://github.com/flutter/flutter/issues/28175)) This API requires the UPDATE_DEVICE_STATS permission on KitKat| +|Hans Muller |Ensure that the DropdownButton menu respects its parents bounds ([#28371](https://github.com/flutter/flutter/issues/28371))| +|rami-a <2364772+rami-a@users.noreply.github.com>|[Material] Add the ability to theme trailing app bar actions independently from leading ([#28214](https://github.com/flutter/flutter/issues/28214)) * Allow app bar actions to be themed independently if needed * Update SliverAppBar docs that were out of date * Clarify fallback behavior in a comment * Analyzer * Address PR feedback * Address PR feedback * Put back checks on actions icon theme * Address PR feedback * Retrigger CI| +|Brandon Rodriguez |[Typo] Update 'use' to 'user' ([#28245](https://github.com/flutter/flutter/issues/28245))| +|Reece Dunham |Removed trailing whitespace from the end of the CI config ([#28370](https://github.com/flutter/flutter/issues/28370))| +|Michael Goderbauer |Add more docs to BackdropFilter ([#28017](https://github.com/flutter/flutter/issues/28017))| +|liyuqian |Mark non-flaky test as such ([#28373](https://github.com/flutter/flutter/issues/28373))| +|engine-flutter-autoroll |f7306394e fix sendLocales on old android versions ([flutter/engine#7937](https://github.com/flutter/engine/issues/7937)) ([#28450](https://github.com/flutter/flutter/issues/28450)) https://github.com/flutter/engine/compare/502c9c4002a6...f7306394e303 git log 502c9c4002a6b456f829f79bfbd2ff61d075d1d7..f7306394e303a210a9971acb60f9ba11d7c64ec8 --no-merges --oneline f7306394e fix sendLocales on old android versions ([flutter/engine#7937](https://github.com/flutter/engine/issues/7937)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 0546e1e5e901..502c9c4002a6 (2 commits) ([#28446](https://github.com/flutter/flutter/issues/28446)) https://github.com/flutter/engine/compare/0546e1e5e901...502c9c4002a6 git log 0546e1e5e9015e7a597c9e59cf89ee614a260251..502c9c4002a6b456f829f79bfbd2ff61d075d1d7 --no-merges --oneline 502c9c400 Android Embedding PR 6: Introduce FlutterView structure with FlutterSurfaceView and FlutterTextureView. ([flutter/engine#7896](https://github.com/flutter/engine/issues/7896)) 687229e70 Roll src/third_party/skia 52d8a5976a23..e1636a4b56aa (1 commits) ([flutter/engine#7943](https://github.com/flutter/engine/issues/7943)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|Will Larche |[Gallery] Fix fortnightly analysis for consts. ([#28431](https://github.com/flutter/flutter/issues/28431))| +|engine-flutter-autoroll |0546e1e5e Roll src/third_party/skia 33c1b315265c..52d8a5976a23 (1 commits) ([flutter/engine#7941](https://github.com/flutter/engine/issues/7941)) ([#28422](https://github.com/flutter/flutter/issues/28422)) https://github.com/flutter/engine/compare/90fcaff9008e...0546e1e5e901 git log 90fcaff9008e04b71c00cd6ce27ae335c299c8a6..0546e1e5e9015e7a597c9e59cf89ee614a260251 --no-merges --oneline 0546e1e5e Roll src/third_party/skia 33c1b315265c..52d8a5976a23 (1 commits) ([flutter/engine#7941](https://github.com/flutter/engine/issues/7941)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|Will Larche |[Gallery] Fortnightly demo moved from flutter/samples. ([#28125](https://github.com/flutter/flutter/issues/28125)) * [Gallery] Fortnightly demo moved from flutter/samples. * [Gallery] Fortnightly analysis corrections. * [Gallery] Minor rename. * [Gallery] Making floats ints. * [Gallery] Fortnightly minor visual polish. * [Gallery] Formatting. * [Gallery] Upping package version for gallery to support fortnightly demo. * [Gallery] Fortnightly copy correction. * [Gallery] Fortnightly study polish. * [Gallery] Fortnightly polish. * [Gallery] Fortnightly copy correction. * [Gallery] Fortnightly copy now held in '''. * [Gallery] Fortnightly comment. * [Gallery] Updates necessary when flutter_gallery_assets updates. * [Gallery] Updating macrobenchmarks because we updated flutter_gallery_assets. * [Gallery] Moving spaces to beginning of copy lines. * [Gallery] Copy correction. * [Gallery] Adding tooltip to satisfy smoke test. * [Gallery] Minor pr feedback. * [Gallery] Forced upgrade.| +|engine-flutter-autoroll |90fcaff90 Roll src/third_party/skia 2ed90e152d47..33c1b315265c (1 commits) ([flutter/engine#7940](https://github.com/flutter/engine/issues/7940)) ([#28413](https://github.com/flutter/flutter/issues/28413)) https://github.com/flutter/engine/compare/b1779e7d95ea...90fcaff9008e git log b1779e7d95ea812ced2f4993932bdb2325f5a8ba..90fcaff9008e04b71c00cd6ce27ae335c299c8a6 --no-merges --oneline 90fcaff90 Roll src/third_party/skia 2ed90e152d47..33c1b315265c (1 commits) ([flutter/engine#7940](https://github.com/flutter/engine/issues/7940)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 0d777b947e4c..b1779e7d95ea (2 commits) ([#28410](https://github.com/flutter/flutter/issues/28410)) https://github.com/flutter/engine/compare/0d777b947e4c...b1779e7d95ea git log 0d777b947e4cc52a0bc17566f3e450f869ca00c9..b1779e7d95ea812ced2f4993932bdb2325f5a8ba --no-merges --oneline b1779e7d9 Roll src/third_party/skia 867da4b96e8e..2ed90e152d47 (1 commits) ([flutter/engine#7939](https://github.com/flutter/engine/issues/7939)) 018a4f783 Roll src/third_party/skia 12f1fecea947..867da4b96e8e (1 commits) ([flutter/engine#7936](https://github.com/flutter/engine/issues/7936)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|Dan Field |update packages ([#28400](https://github.com/flutter/flutter/issues/28400))| +|engine-flutter-autoroll |0d777b947 Roll src/third_party/skia 72f6f044cc73..12f1fecea947 (1 commits) ([flutter/engine#7935](https://github.com/flutter/engine/issues/7935)) ([#28392](https://github.com/flutter/flutter/issues/28392)) https://github.com/flutter/engine/compare/3efc9f5099e5...0d777b947e4c git log 3efc9f5099e537b3885aacfe3506903c23c4e1ca..0d777b947e4cc52a0bc17566f3e450f869ca00c9 --no-merges --oneline 0d777b947 Roll src/third_party/skia 72f6f044cc73..12f1fecea947 (1 commits) ([flutter/engine#7935](https://github.com/flutter/engine/issues/7935)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|Dan Field |Reland "Allow for gradle downloading missing SDK assets" ([#28097](https://github.com/flutter/flutter/issues/28097)) ([#28355](https://github.com/flutter/flutter/issues/28355)) * Allow for gradle downloading missing SDK assets if SDK licenses are present. * Improvements for windows testing| +|Dan Field |add2app test ([#27712](https://github.com/flutter/flutter/issues/27712)) * add2app test| +|Dan Field |fix red build for analysis ([#28398](https://github.com/flutter/flutter/issues/28398))| +|Gary Qian |Force line height in TextFields with strut ([#27612](https://github.com/flutter/flutter/issues/27612))| +|engine-flutter-autoroll |3efc9f509 Roll src/third_party/skia 2a5511307d34..72f6f044cc73 (2 commits) ([flutter/engine#7934](https://github.com/flutter/engine/issues/7934)) ([#28387](https://github.com/flutter/flutter/issues/28387)) https://github.com/flutter/engine/compare/1741497a574f...3efc9f5099e5 git log 1741497a574fb5b23a32d11f7f499a3065009585..3efc9f5099e537b3885aacfe3506903c23c4e1ca --no-merges --oneline 3efc9f509 Roll src/third_party/skia 2a5511307d34..72f6f044cc73 (2 commits) ([flutter/engine#7934](https://github.com/flutter/engine/issues/7934)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|Bryan Henry |Clean up flutter_gallery.cmx's sandbox ([#28193](https://github.com/flutter/flutter/issues/28193)) Delete unused 'persistent-storage' feature (which is being removed from Fuchsia) and inclusion of '/system/data' in namepsace| +|engine-flutter-autoroll |Roll engine 5809adea4156..1741497a574f (5 commits) ([#28378](https://github.com/flutter/flutter/issues/28378)) https://github.com/flutter/engine/compare/5809adea4156...1741497a574f git log 5809adea415605b821704967cd9e0b0fc05ce34a..1741497a574fb5b23a32d11f7f499a3065009585 --no-merges --oneline 1741497a5 Roll src/third_party/skia a753d1a3475d..2a5511307d34 (3 commits) ([flutter/engine#7933](https://github.com/flutter/engine/issues/7933)) 0a50e0846 Roll src/third_party/skia ee1c8a733e5b..a753d1a3475d (16 commits) ([flutter/engine#7930](https://github.com/flutter/engine/issues/7930)) 204e7da36 New setting to decide whether we want the engine to load ICU mapping. ([flutter/engine#7928](https://github.com/flutter/engine/issues/7928)) 36d495d57 Dynamic patching support for native code libraries. ([flutter/engine#7927](https://github.com/flutter/engine/issues/7927)) 21c59197e [re-land] Use all font managers to discover fonts for strut. ([flutter/engine#7803](https://github.com/flutter/engine/issues/7803)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine f80928a9e403..5809adea4156 (3 commits) ([#28367](https://github.com/flutter/flutter/issues/28367)) https://github.com/flutter/engine/compare/f80928a9e403...5809adea4156 git log f80928a9e403c6b2fc1b8de6a00bf6189b715c40..5809adea415605b821704967cd9e0b0fc05ce34a --no-merges --oneline 5809adea4 Make the layout of dynamic patch bundle similar to APK. ([flutter/engine#7925](https://github.com/flutter/engine/issues/7925)) e2a449a51 Move canvas clear after preroll ([flutter/engine#7923](https://github.com/flutter/engine/issues/7923)) 8529dbc86 Remove unused FML file export.h ([flutter/engine#7926](https://github.com/flutter/engine/issues/7926)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|Jonah Williams |only perform multi-root mapping if there are multiple roots ([#28352](https://github.com/flutter/flutter/issues/28352))| +|Stanislav Baranov |Dynamic patching support for native code libraries. ([#28349](https://github.com/flutter/flutter/issues/28349))| +|liyuqian |Revert "Shader warm up ([#27660](https://github.com/flutter/flutter/issues/27660))" ([#28376](https://github.com/flutter/flutter/issues/28376)) This reverts commit a44f174efc218ac1b4b94b9d77dafdb5dfea1432. Reason: start_up tests become flaky. See https://github.com/flutter/flutter/issues/28374 TBR: xster Merge on red to fix the tree| +|liyuqian |Shader warm up ([#27660](https://github.com/flutter/flutter/issues/27660)) This patch adds a default shader warm up process which moves shader compilation from the animation time to the startup time. This also provides an extension for `runApp` so developers can customize the warm up process. This should reduce our worst_frame_rasterizer_time_millis from ~100ms to ~20-30ms for both flutter_gallery and complex_layout benchmarks. Besides, this should also have a significant improvement on 90th and 99th percentile time (50%-100% speedup in some cases, but I haven't tested them thoroughly; I'll let our device lab collect the data afterwards). The tradeoff the is the startup time (time to first frame). Our `flutter run --profile --trace-startup` seems to be a little noisy and I see about 100ms-200ms increase in that measurement for complex_layout and flutter_gallery. Note that this only happens on the first run after install or data wipe. Later the Skia persistent cache will remove the overhead. This also adds a cubic_bezier benchmark to test the custom shader warm up process. This should fix https://github.com/flutter/flutter/issues/813 (either by `defaultShaderWarmUp`, or a `customShaderWarmUp`).| +|engine-flutter-autoroll |Roll engine 33bb91cc1591..f80928a9e403 (4 commits) ([#28353](https://github.com/flutter/flutter/issues/28353)) https://github.com/flutter/engine/compare/33bb91cc1591...f80928a9e403 git log 33bb91cc15916610261097eb971ec8a11b804d06..f80928a9e403c6b2fc1b8de6a00bf6189b715c40 --no-merges --oneline f80928a9e Roll src/third_party/skia fdd15284affe..ee1c8a733e5b (15 commits) ([flutter/engine#7924](https://github.com/flutter/engine/issues/7924)) 93f339fb6 fix Memory leak when using PlatformView [IOS] [#24714](https://github.com/flutter/flutter/issues/24714) ([flutter/engine#7919](https://github.com/flutter/engine/issues/7919)) 2d33e775f Roll src/third_party/skia 969659dbb313..fdd15284affe (2 commits) ([flutter/engine#7922](https://github.com/flutter/engine/issues/7922)) 6d4edf235 Roll src/third_party/skia 9431161ca973..969659dbb313 (3 commits) ([flutter/engine#7921](https://github.com/flutter/engine/issues/7921)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (amirha@google.com), and stop the roller if necessary.| +|Zachary Anderson |[flutter_tool,fuchsia] Add missing dep to flutter_tool ([#28346](https://github.com/flutter/flutter/issues/28346)) Needed for Fuchsia roll.| +|rami-a <2364772+rami-a@users.noreply.github.com>|Minor UI tweaks to Cards demo based on internal feedback ([#28215](https://github.com/flutter/flutter/issues/28215)) * Minor UI tweaks to Cards demo based on internal feedback * Analyzer * Tweak ink ripple opacity * Address PR feedback| +|rami-a <2364772+rami-a@users.noreply.github.com>|[Material] Add ability to set shadow color and selected shadow color for chips and for chip themes ([#28163](https://github.com/flutter/flutter/issues/28163)) * Add ability to set shadow color for chips and for chip themes * Add selected shadow color as a property as well * Update phrasing of documentation * Address PR feedback| +|ocavue |Make extended FAB's icon optional ([#27711](https://github.com/flutter/flutter/issues/27711))| +|Chris Bracken |Roll engine to 33bb91cc15916610261097eb971ec8a11b804d06 ([#28315](https://github.com/flutter/flutter/issues/28315)) flutter/engine@33bb91c Allow embedders to specify a vsync waiter. ([flutter/engine#7914](https://github.com/flutter/engine/issues/7914)) flutter/engine@4cb9a14 Allow embedders to add events to the timeline. ([flutter/engine#7917](https://github.com/flutter/engine/issues/7917))| +|Zachary Anderson |[fuchsia] Fix paths to find and ls ([#28280](https://github.com/flutter/flutter/issues/28280))| +|Chris Bracken |Roll engine to cb0f7ece1f251c78a07550db89d0fcb3edf61e3c ([#28309](https://github.com/flutter/flutter/issues/28309)) flutter/engine@cb0f7ece1 Roll src/third_party/skia 63c4d3596915..e9912ca049a0 (8 commits) ([flutter/engine#7918](https://github.com/flutter/engine/issues/7918))| +|Chris Bracken |Roll engine to 043d92c48abdebdad926569bc204a59c5cf20a11 ([#28308](https://github.com/flutter/flutter/issues/28308)) flutter/engine@043d92c48 Embedder API for setting the persistent cache path ([flutter/engine#7915](https://github.com/flutter/engine/issues/7915))| +|xster |Add some more CupertinoPicker doc ([#28166](https://github.com/flutter/flutter/issues/28166))| +|Stanislav Baranov |Reland [#27754](https://github.com/flutter/flutter/issues/27754), now that bsdiff has moved to flutter/packages. ([#28291](https://github.com/flutter/flutter/issues/28291))| +|Ray Rischpater, KF6GPE |deploy to .dev firebase projects. ([#28171](https://github.com/flutter/flutter/issues/28171)) * deploy to .dev firebase projects. * Updated secrets for .dev web sites. * Fixed missing docs.*.io references.| +|Chris Bracken |Roll the engine to 5db4b377244bae48bc21e449e616417e68c9a6b9 ([#28296](https://github.com/flutter/flutter/issues/28296)) flutter/engine@f1f19bba8 Revert "Revert "Revert "Reland PerformanceOverlayLayer golden test ([flutter/engine#7863](https://github.com/flutter/engine/issues/7863))" ([flutter/engine#7895](https://github.com/flutter/engine/issues/7895))" ([flutter/engine#7911](https://github.com/flutter/engine/issues/7911))" ([flutter/engine#7916](https://github.com/flutter/engine/issues/7916)) flutter/engine@5db4b3772 Revert dart rolls ([flutter/engine#7913](https://github.com/flutter/engine/issues/7913)) flutter/engine@0053c1d50 Roll src/third_party/dart 75ee523f91..4cff5a4fd6 (6 commits) flutter/engine@8620579cf Roll src/third_party/skia 9a049e6ce39d..63c4d3596915 (8 commits) ([flutter/engine#7909](https://github.com/flutter/engine/issues/7909)) flutter/engine@aa2b287cb Reland [flutter/engine#7777](https://github.com/flutter/engine/issues/7777) with proper LICENSE ([flutter/engine#7888](https://github.com/flutter/engine/issues/7888)) flutter/engine@a5773d121 Do not add ghost runs for trailing whitespace if the text is ellipsized ([flutter/engine#7906](https://github.com/flutter/engine/issues/7906)) flutter/engine@93eeb48ba Revert "Revert "Remove unnecessary entry-point closurization. ([flutter/engine#7827](https://github.com/flutter/engine/issues/7827))" ([flutter/engine#7876](https://github.com/flutter/engine/issues/7876))" ([flutter/engine#7904](https://github.com/flutter/engine/issues/7904)) flutter/engine@bbaeba3f3 Roll src/third_party/skia 05ff93c43ea5..9a049e6ce39d (11 commits) ([flutter/engine#7903](https://github.com/flutter/engine/issues/7903)) flutter/engine@1cf6b8b64 Roll src/third_party/dart 5ddd157809..75ee523f91 (19 commits) flutter/engine@be32040ef Roll src/third_party/skia 348227b89430..05ff93c43ea5 (2 commits) ([flutter/engine#7901](https://github.com/flutter/engine/issues/7901)) flutter/engine@293b3de98 Roll src/third_party/skia 20ebd0cb3882..348227b89430 (4 commits) ([flutter/engine#7900](https://github.com/flutter/engine/issues/7900)) flutter/engine@6e6020d29 Eliminate .member = foo struct initialization ([flutter/engine#7899](https://github.com/flutter/engine/issues/7899)) flutter/engine@6d8bd99af Revert "Reland PerformanceOverlayLayer golden test ([flutter/engine#7863](https://github.com/flutter/engine/issues/7863))" ([flutter/engine#7895](https://github.com/flutter/engine/issues/7895)) flutter/engine@39f7066b6 Test profile and release build and unit tests ([flutter/engine#7880](https://github.com/flutter/engine/issues/7880)) flutter/engine@abe9826a9 Add accessibility semantics support to embedder ([flutter/engine#7891](https://github.com/flutter/engine/issues/7891)) flutter/engine@ce7016e1f Roll src/third_party/skia e471c05f92e8..20ebd0cb3882 (4 commits) ([flutter/engine#7894](https://github.com/flutter/engine/issues/7894)) flutter/engine@684c9394c Respect the custom GL proc table when creating the resource context on the IO thread. ([flutter/engine#7893](https://github.com/flutter/engine/issues/7893)) flutter/engine@e11d0e96f Android embedding refactor pr5 add flutterengine impl ([flutter/engine#7878](https://github.com/flutter/engine/issues/7878)) flutter/engine@2f4a38dbd Android embedding refactor pr3 add remaining systemchannels ([flutter/engine#7892](https://github.com/flutter/engine/issues/7892)) flutter/engine@8427d73c8 Reland PerformanceOverlayLayer golden test ([flutter/engine#7863](https://github.com/flutter/engine/issues/7863)) flutter/engine@61fc1786f Roll src/third_party/dart c92d5ca288..5ddd157809 (153 commits) flutter/engine@b0671145a Roll src/third_party/skia 7738736f9622..e471c05f92e8 (23 commits) ([flutter/engine#7889](https://github.com/flutter/engine/issues/7889)) flutter/engine@6d7eb5218 Revert "Android embedding refactor pr3 add remaining systemchannels ([flutter/engine#7874](https://github.com/flutter/engine/issues/7874))" ([flutter/engine#7886](https://github.com/flutter/engine/issues/7886)) flutter/engine@dad6ec01c Correct onAccessibilityFeaturesChanged docs ([flutter/engine#7883](https://github.com/flutter/engine/issues/7883))| +|Dan Field |Revert "Allow for gradle downloading missing SDK assets ([#28097](https://github.com/flutter/flutter/issues/28097))" ([#28295](https://github.com/flutter/flutter/issues/28295)) This reverts commit 6f5e88a59f5ac01fd55b5c3a11b7c2ddc6c7402c.| +|xster |Add slight clarification to debugDeterministicCursor ([#27898](https://github.com/flutter/flutter/issues/27898))| +|Hans Muller |[Material] Expand BottomNavigationBar API (reprise) ([#28159](https://github.com/flutter/flutter/issues/28159))| +|Michael Goderbauer |Add backgroundColor argument to TextStyle for convenience ([#28172](https://github.com/flutter/flutter/issues/28172))| +|Dan Field |Allow for gradle downloading missing SDK assets ([#28097](https://github.com/flutter/flutter/issues/28097)) * Allow for gradle downloading missing SDK assets if SDK licenses are present. * Fix license path for missing sdkmanager * Cirrus re-run... * Fix condition check * rename props, add docs, rename method * fix tests after param changes * Fix weird path for flutter run and add tests * remove print, fix tests| +|Greg Spencer |Fix the length of the valueHelp on the --sample option for the create command, and turn on wrapping. ([#28264](https://github.com/flutter/flutter/issues/28264)) The wrapping for some commands was never actually turned on, so this turns it on. Also, it shortens the `valueHelp` for the `--sample` option to be just "id" instead of "the sample ID of the desired sample from the API documentation website (http://docs.flutter.io)", which was causing the line to get far too long. Fixes [#23074](https://github.com/flutter/flutter/issues/23074)| +|Dan Field |Reduce memory benchmark perf tests outer loop to 10. ([#28281](https://github.com/flutter/flutter/issues/28281)) * reduce iterations to avoid test timing out| +|Dan Field |Make logcat less chatty on perf tests ([#28272](https://github.com/flutter/flutter/issues/28272))| +|Greg Spencer |Revert "Remove unused --packages argument to gen_snapshot. ([#28101](https://github.com/flutter/flutter/issues/28101))" ([#28265](https://github.com/flutter/flutter/issues/28265)) This reverts commit 1c021506df23434dd5e881ba0e4d8c5a9f88df8d. The pre-commit tests never actually ran, so it looked green when it wasn't. This breaks 16 tests that depend on the argument existing, even though it isn't actually used.| +|Alexandre Ardhuin |format parameter list ([#27261](https://github.com/flutter/flutter/issues/27261))| +|Stevie Strickland |Remove unused --packages argument to gen_snapshot. ([#28101](https://github.com/flutter/flutter/issues/28101)) This command line argument has already been removed in the main Dart repository, so building flutter with the latest dart fails.| +|Volodymyr Lykhonis |Update AUTHORS to add Volodymyr Lykhonis ([#24889](https://github.com/flutter/flutter/issues/24889))| +|Jonah Williams |Remove extra slash from builder that is not handled on windows ([#28027](https://github.com/flutter/flutter/issues/28027))| +|Jonah Williams |Remove set literal syntax ([#28238](https://github.com/flutter/flutter/issues/28238))| +|Michael Goderbauer |Remove line breaks from PR template ([#28235](https://github.com/flutter/flutter/issues/28235))| +|jslavitz |Adds fix for NAN value and pressure values outside of device reported min and max ([#26659](https://github.com/flutter/flutter/issues/26659)) * Fix for nan pressure values and values outside min and max pressure ranges| +|jslavitz |Adds media query check in editable_text ([#27955](https://github.com/flutter/flutter/issues/27955)) * media query check| +|Mike Roosa |removed image with 404 ([#26376](https://github.com/flutter/flutter/issues/26376)) Update README.md to remove 404 link on Posse image| +|Matt Sullivan |Added sample code to AnimatedWidget ([#27803](https://github.com/flutter/flutter/issues/27803)) * Added sample to AnimatedWidget * Updated AnimatedWidget example to use listenable from parent * Made progress private and changed widget name| +|Ali EP |Fixes crossAxisSpacing overflow in RTL ([#27945](https://github.com/flutter/flutter/issues/27945))| +|Sander Kersten |Fix issue where SliverPersistentHeader that is both floating and pinned would scroll down when scrolling past the beginning of the ScrollView ([#27433](https://github.com/flutter/flutter/issues/27433))| +|Michael Goderbauer |Adds a template for Pull Requests ([#28224](https://github.com/flutter/flutter/issues/28224))| +|Michael Goderbauer |Add TextOverflow.visible ([#28182](https://github.com/flutter/flutter/issues/28182))| +|Dan Field |Remove json_schema and cli_util deps from flutter_tool ([#28040](https://github.com/flutter/flutter/issues/28040)) * remove json_schema dep * remove unnecessary pin * removed unused dep * remove unused impport * Fix incorrect condition| +|xster |Rename SuperellipseShare ContinuousRectangleBorder ([#28183](https://github.com/flutter/flutter/issues/28183))| +|xster |revert 26001 ([#28032](https://github.com/flutter/flutter/issues/28032))| +|Kaushik Iska |Add outer try block for obtainKey errors. Add docs. ([#27953](https://github.com/flutter/flutter/issues/27953)) * Add outer try block for obtainKey errors. Add docs. * change to // from ///, and do specific error handling * Add return statement after error * Add test| +|Jonah Williams |Outline for survey implementation ([#27305](https://github.com/flutter/flutter/issues/27305))| +|Dan Field |Manual engine roll to ([#28222](https://github.com/flutter/flutter/issues/28222)) flutter/engine@6d7eb5218 Revert "Android embedding refactor pr3 add remaining systemchannels ([flutter/engine#7874](https://github.com/flutter/engine/issues/7874))" ([flutter/engine#7886](https://github.com/flutter/engine/issues/7886)) flutter/engine@dad6ec01c Correct onAccessibilityFeaturesChanged docs ([flutter/engine#7883](https://github.com/flutter/engine/issues/7883)) flutter/engine@fc1a68ea1 Roll src/third_party/skia e0a6a048bc4a..7738736f9622 (4 commits) ([flutter/engine#7884](https://github.com/flutter/engine/issues/7884)) flutter/engine@a150cc125 Fix minor typos in accessibility action docs ([flutter/engine#7882](https://github.com/flutter/engine/issues/7882)) flutter/engine@bf1654450 Roll src/third_party/skia 249a25730521..e0a6a048bc4a (2 commits) ([flutter/engine#7881](https://github.com/flutter/engine/issues/7881)) flutter/engine@d60ef0c36 Roll src/third_party/skia ce62dec02293..249a25730521 (15 commits) ([flutter/engine#7879](https://github.com/flutter/engine/issues/7879)) flutter/engine@1263d28ab Fix caret being at left edge when newline pressed on centered text ([flutter/engine#7875](https://github.com/flutter/engine/issues/7875))| +|Michael Goderbauer |Fix 'to to' ([#28216](https://github.com/flutter/flutter/issues/28216))| +|Dan Field |Roll engine to f45572e95f93edb89b6750a4f36ad8ed7c0a2560 ([#28178](https://github.com/flutter/flutter/issues/28178)) * Roll engine to f45572e95f93edb89b6750a4f36ad8ed7c0a2560 * update goldens * update goldens version| +|engine-flutter-autoroll |f37b09a11 [fuchsia][SCN-1054] Map elevation onto -Z in Scenic ([flutter/engine#7834](https://github.com/flutter/engine/issues/7834)) ([#28036](https://github.com/flutter/flutter/issues/28036)) https://github.com/flutter/engine/compare/163a2fd5e140...f37b09a11b28 git log 163a2fd5e140d10a30645e73031054ef39105d87..f37b09a11b281b2a4e5dfcb45029069c3ac6e460 --no-merges --oneline f37b09a11 [fuchsia][SCN-1054] Map elevation onto -Z in Scenic ([flutter/engine#7834](https://github.com/flutter/engine/issues/7834)) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|engine-flutter-autoroll |Roll engine 033f2072c315..163a2fd5e140 (26 commits) ([#28035](https://github.com/flutter/flutter/issues/28035)) https://github.com/flutter/engine/compare/033f2072c315...163a2fd5e140 git log 033f2072c315d48b4d7680d4cbbe856012b1259b..163a2fd5e140d10a30645e73031054ef39105d87 --no-merges --oneline 163a2fd5e Revert &[#34](https://github.com/flutter/flutter/issues/34);Android embedding refactor pr3 add remaining systemchannels ([#7738](https://github.com/flutter/flutter/issues/7738))&[#34](https://github.com/flutter/flutter/issues/34); ([flutter/engine#7849](https://github.com/flutter/engine/issues/7849)) 0d6ff1669 Shut down and restart the Dart VM as needed. ([flutter/engine#7832](https://github.com/flutter/engine/issues/7832)) 256db4bc2 Android embedding refactor pr3 add remaining systemchannels ([flutter/engine#7738](https://github.com/flutter/engine/issues/7738)) 02d7ca31d Don&[#39](https://github.com/flutter/flutter/issues/39);t call static method from instance variable ([flutter/engine#7841](https://github.com/flutter/engine/issues/7841)) 10cee612b Delete GL textures when they are released from the texture registry. ([flutter/engine#7836](https://github.com/flutter/engine/issues/7836)) 69e460607 Fix NullPointerException in SurfaceTextureRegistryEntry ([flutter/engine#7837](https://github.com/flutter/engine/issues/7837)) 9a965bc3d Fix NullPointerException in ResourceCleaner ([flutter/engine#7838](https://github.com/flutter/engine/issues/7838)) 2acd79480 Add fml::FileExists implementation for Windows ([flutter/engine#7845](https://github.com/flutter/engine/issues/7845)) fa38a985c Update buildroot to 7f64ff4928e to unblock Mac builds. ([flutter/engine#7846](https://github.com/flutter/engine/issues/7846)) 1ba329550 Add support for calling into other plugins from a background context on iOS ([flutter/engine#7843](https://github.com/flutter/engine/issues/7843)) df2fc973a Roll src/third_party/skia 154acd7a1374..be9aff25bddc (13 commits) ([flutter/engine#7842](https://github.com/flutter/engine/issues/7842)) 0ca1d1f31 Remove the Dart JIT snapshot data from AOT builds of the embedder library ([flutter/engine#7806](https://github.com/flutter/engine/issues/7806)) c51ea4157 Roll src/third_party/skia 7a74c7cb6da0..154acd7a1374 (1 commits) ([flutter/engine#7840](https://github.com/flutter/engine/issues/7840)) ecbaea10a Ensure to pass dill file after VM options for gen_snapshot ([flutter/engine#7839](https://github.com/flutter/engine/issues/7839)) 5d3f7145a Roll src/third_party/skia b00f7b34751b..7a74c7cb6da0 (1 commits) ([flutter/engine#7835](https://github.com/flutter/engine/issues/7835)) 733739938 Roll src/third_party/skia 9a88bee122f1..b00f7b34751b (24 commits) ([flutter/engine#7831](https://github.com/flutter/engine/issues/7831)) 6f318efe0 Move up ndk version that is being downloaded(old one no longer available) ([flutter/engine#7830](https://github.com/flutter/engine/issues/7830)) a8aa1ee06 Track flow id ([flutter/engine#7826](https://github.com/flutter/engine/issues/7826)) b1ce6b72f Roll src/third_party/skia a0dcd29f536b..9a88bee122f1 (4 commits) ([flutter/engine#7825](https://github.com/flutter/engine/issues/7825)) dbc166387 Roll src/third_party/skia 6152470dc69e..a0dcd29f536b (2 commits) ([flutter/engine#7824](https://github.com/flutter/engine/issues/7824)) 942677695 Roll src/third_party/skia 4037f7f5d8b4..6152470dc69e (1 commits) ([flutter/engine#7823](https://github.com/flutter/engine/issues/7823)) e2394ad77 Add flow events connecting pointer events to frames ([flutter/engine#7807](https://github.com/flutter/engine/issues/7807)) 0a5a7c56d Roll src/third_party/skia 09c01e9df260..4037f7f5d8b4 (3 commits) ([flutter/engine#7821](https://github.com/flutter/engine/issues/7821)) b867f4858 Roll src/third_party/skia 186669c4128b..09c01e9df260 (5 commits) ([flutter/engine#7820](https://github.com/flutter/engine/issues/7820)) af39e22c3 Fix tests that were committed after cirrus ran ([flutter/engine#7819](https://github.com/flutter/engine/issues/7819)) 1f2cbf792 Roll src/third_party/dart 0a7dcf17eb..c92d5ca288 (64 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop the roller if necessary.| +|Stanislav Baranov |Revert "Add support for binary compression of dynamic patches by the flutter tool. ([#27754](https://github.com/flutter/flutter/issues/27754))" ([#28031](https://github.com/flutter/flutter/issues/28031)) This reverts commit b47da6c2b79d90f33d73e9225b4b3bbbd0ffd99e.| +|Dan Field |Reland automatic discovery of observatory port for iOS ([#27908](https://github.com/flutter/flutter/issues/27908)) * Discover port over mDNS * Update BUILD.gn for tools| +|liyuqian |Increase our build budget to 16ms ([#27709](https://github.com/flutter/flutter/issues/27709)) Because we now have 2 separate GPU and UI threads.| +|KyleWong |Refactor local engine logic ([#27765](https://github.com/flutter/flutter/issues/27765)) * Refactor for iOS. * For android_xxx_unopt_arm64&ios_xxx_unopt_arm, remove the _arm64/_arm suffix. dart generated in host_xxx_unopt/host_xxx has an arch of x86_64 which supports arm64/arm. * Remove suffixes for various archs.| +|Jason Simmons |Disable prefer_collection_literals in the analyzer until we can update to using set literals ([#28024](https://github.com/flutter/flutter/issues/28024))| +|Hans Muller |Add extendBody parameter to Scaffold, body MediaQuery reflects BAB height ([#27973](https://github.com/flutter/flutter/issues/27973))| +|Jonah Williams |remove accidentally commited libs ([#28011](https://github.com/flutter/flutter/issues/28011))| +|jslavitz |Fixes switch vibration ([#27900](https://github.com/flutter/flutter/issues/27900)) * Fixes Cupertino switch vibration| +|Gary Qian |Roll engine for [flutter/engine#7791](https://github.com/flutter/engine/issues/7791) - Add trailing whitespace tracking.| +|Kate Lovett |Sample code for Icon class ([#27968](https://github.com/flutter/flutter/issues/27968)) * Added sample code for a simple Icon, ref: [#21136](https://github.com/flutter/flutter/issues/21136) * Removed duplicate line. * Fixed incoreect parameter. * Update icon.dart Removed empty prose and added better context for sample code. Changed sample code for better visibility in execution of default app themes. * Alas, Trailing space. Nixed trailing space in comments.| +|Michael Goderbauer |Reapply "Fix overflow clipping/fading for text ([#27892](https://github.com/flutter/flutter/issues/27892))" ([#27980](https://github.com/flutter/flutter/issues/27980)) Fixes https://github.com/flutter/flutter/issues/25025| +|Todd Volkert |Re-apply "Ensure all curves return 0 and 1 in .transform(t) when t=0/1" ([#28006](https://github.com/flutter/flutter/issues/28006)) Re-applies [#27409](https://github.com/flutter/flutter/issues/27409) by reverting [#27919](https://github.com/flutter/flutter/issues/27919) The analyzer issue ([dart-lang/sdk#35940](https://github.com/dart-lang/sdk/issues/35940)) has been temporarily worked around by virtue of [#27929](https://github.com/flutter/flutter/issues/27929)| +|Greg Spencer |Fix Dashing rules to use new dartdoc CSS entity markers. ([#27818](https://github.com/flutter/flutter/issues/27818)) This fixes the offline Dash/Zeal docs generation to use the newly added dartdoc markers for different entity types to make it more exact when finding entity names. Bumped Dartdoc to the next release.| +|Todd Volkert |Ensure that Dart SDK dirs have appropriate permissions ([#26315](https://github.com/flutter/flutter/issues/26315)) This is a partial re-application of [#24669](https://github.com/flutter/flutter/issues/24669) https://github.com/flutter/flutter/issues/24413| +|Greg Spencer |Remove remaining "## Sample code" segments, and fix the snippet generator. ([#27793](https://github.com/flutter/flutter/issues/27793)) This converts all remaining "## Sample code" segments into snippets, and fixes the snippet generator to handle multiple snippets in the same dartdoc block properly. I also generated, compiled, and ran each of the existing application samples, and fixed them up to be more useful and/or just run without errors. This PR fixes these problems with examples: 1. Switching tabs in a snippet now works if there is more than one snippet in a single dartdoc block. 2. Generation of snippet code now works if there is more than one snippet. 3. Contrast of text and links in the code sample block has been improved to recommended levels. 4. Added five new snippet templates, including a "freeform" template to make it possible to show examples that need to change the app instantiation. 5. Fixed several examples to run properly, a couple by adding the "Scaffold" widget to the template, a couple by just fixing their code. 6. Fixed visual look of some of the samples when they run by placing many samples inside of a Scaffold. 7. In order to make it easier to run locally, changed the sample analyzer to remove the contents of the supplied temp directory before running, since having files that hang around is problematic (only a problem when running locally with the `--temp` argument). 8. Added a `SampleCheckerException` class, and handle sample checking exceptions more gracefully. 9. Deprecated the old "## Sample code" designation, and added enforcement for the deprecation. 10. Removed unnecessary `new` from templates (although they never appeared in the samples thanks to dartfmt, but still). Fixes [#26398](https://github.com/flutter/flutter/issues/26398) Fixes [#27411](https://github.com/flutter/flutter/issues/27411)| +|Martin Kustermann |Use double literals where a double type is expected ([#27929](https://github.com/flutter/flutter/issues/27929)) This makes the code more consistent but also fixes our flutter-analyze bot. Issue https://github.com/dart-lang/sdk/issues/35940| +|Jonah Williams |Add basic codegen app to be used for integration testing and benchmarks ([#27257](https://github.com/flutter/flutter/issues/27257))| +|Jonah Williams |add ui.Window fallback to TestViewConfiguration ([#27987](https://github.com/flutter/flutter/issues/27987))| +|Jonah Williams |Wire dart2js through flutter tool, add compilation test ([#27668](https://github.com/flutter/flutter/issues/27668))| + +In `flutter/flutter` there were 647 commits + +## Labels Addressed by Label + +| Label | Number of Issues | +|--------|--------| +| **Work in progress (WIP)** | **1 issue with this label** | +| | [flutter/engine#8274](https://github.com/flutter/engine/pull/8274) [ui] Add null check in FontWeight.lerp | +| **a: accessibility** | **1 issue with this label** | +| | [flutter/flutter#29342](https://github.com/flutter/flutter/pull/29342) Add semantic label finders | +| **a: animation** | **5 issues with this label** | +| | [flutter/flutter#30276](https://github.com/flutter/flutter/pull/30276) Random trivial fixes in the animation packages | +| | [flutter/flutter#29069](https://github.com/flutter/flutter/pull/29069) Heroes and nested Navigators | +| | [flutter/flutter#27803](https://github.com/flutter/flutter/pull/27803) Added sample code to AnimatedWidget | +| | [flutter/flutter#28006](https://github.com/flutter/flutter/pull/28006) Re-apply "Ensure all curves return 0 and 1 in .transform(t) when t=0/1" | +| | [flutter/flutter#27929](https://github.com/flutter/flutter/pull/27929) Use double literals where a double type is expected | +| **a: debugging** | **1 issue with this label** | +| | [flutter/flutter#27904](https://github.com/flutter/flutter/pull/27904) Convert PointerEvent's toString to Diagnosticable | +| **a: desktop** | **5 issues with this label** | +| | [flutter/flutter#30938](https://github.com/flutter/flutter/pull/30938) Update keycodes, fix a comment. | +| | [flutter/flutter#30648](https://github.com/flutter/flutter/pull/30648) Allow downloading of desktop embedding artifacts | +| | [flutter/flutter#30643](https://github.com/flutter/flutter/pull/30643) Add Form.onSaved | +| | [flutter/flutter#29993](https://github.com/flutter/flutter/pull/29993) Adds the keyboard mapping for Linux | +| | [flutter/flutter#29231](https://github.com/flutter/flutter/pull/29231) Adds macOS raw keyboard mapping | +| **a: existing-apps** | **1 issue with this label** | +| | [flutter/flutter#27712](https://github.com/flutter/flutter/pull/27712) add2app test | +| **a: fidelity** | **3 issues with this label** | +| | [flutter/flutter#30991](https://github.com/flutter/flutter/pull/30991) Use full height of the glyph for caret height on Android | +| | [flutter/flutter#28597](https://github.com/flutter/flutter/pull/28597) Adjust remaining Cupertino route animations to match native | +| | [flutter/flutter#27711](https://github.com/flutter/flutter/pull/27711) Make extended FAB's icon optional | +| **a: first hour** | **1 issue with this label** | +| | [flutter/flutter#30562](https://github.com/flutter/flutter/pull/30562) Replace flutter.io with flutter.dev | +| **a: internationalization** | **1 issue with this label** | +| | [flutter/flutter#27945](https://github.com/flutter/flutter/pull/27945) Fixes crossAxisSpacing overflow in RTL | +| **a: quality** | **1 issue with this label** | +| | [flutter/flutter#30562](https://github.com/flutter/flutter/pull/30562) Replace flutter.io with flutter.dev | +| **a: tests** | **23 issues with this label** | +| | [flutter/flutter#30857](https://github.com/flutter/flutter/pull/30857) Added support for authentication codes for the VM service. | +| | [flutter/flutter#30898](https://github.com/flutter/flutter/pull/30898) Check that ErrorWidget.builder is not modified after test | +| | [flutter/flutter#30985](https://github.com/flutter/flutter/pull/30985) Add rrect contains microbenchmark | +| | [flutter/flutter#30871](https://github.com/flutter/flutter/pull/30871) Update the upload key which seems to have trouble for some reason | +| | [flutter/flutter#30747](https://github.com/flutter/flutter/pull/30747) Print warning if flutter drive is run in debug | +| | [flutter/flutter#29669](https://github.com/flutter/flutter/pull/29669) Speed up CI via mojave-flutter image | +| | [flutter/flutter#29467](https://github.com/flutter/flutter/pull/29467) prevent stream notifications from interfering with reload | +| | [flutter/flutter#29342](https://github.com/flutter/flutter/pull/29342) Add semantic label finders | +| | [flutter/flutter#29566](https://github.com/flutter/flutter/pull/29566) Manually roll engine to 5088735e5f | +| | [flutter/flutter#29340](https://github.com/flutter/flutter/pull/29340) guard new formatter behind env var | +| | [flutter/flutter#27971](https://github.com/flutter/flutter/pull/27971) Run non-perf sensitive tests on Cirrus | +| | [flutter/flutter#29025](https://github.com/flutter/flutter/pull/29025) print system time on all mac builds | +| | [flutter/flutter#25202](https://github.com/flutter/flutter/pull/25202) fix #19175 How should addTime be used from a test? | +| | [flutter/flutter#28297](https://github.com/flutter/flutter/pull/28297) Test reporter | +| | [flutter/flutter#28852](https://github.com/flutter/flutter/pull/28852) Update macOS version in tests | +| | [flutter/flutter#28638](https://github.com/flutter/flutter/pull/28638) Fix the test annotation used for test groups | +| | [flutter/flutter#28555](https://github.com/flutter/flutter/pull/28555) disable dart2js test | +| | [flutter/flutter#28480](https://github.com/flutter/flutter/pull/28480) increase timeout | +| | [flutter/flutter#28168](https://github.com/flutter/flutter/pull/28168) [flutter_tool,fuchsia_tester] Only require a test source dir for coverage | +| | [flutter/flutter#27944](https://github.com/flutter/flutter/pull/27944) Add tests | +| | [flutter/flutter#28373](https://github.com/flutter/flutter/pull/28373) Mark non-flaky test as such | +| | [flutter/flutter#27712](https://github.com/flutter/flutter/pull/27712) add2app test | +| | [flutter/flutter#27987](https://github.com/flutter/flutter/pull/27987) add ui.Window fallback to TestViewConfiguration | +| **a: text input** | **12 issues with this label** | +| | [flutter/flutter#30991](https://github.com/flutter/flutter/pull/30991) Use full height of the glyph for caret height on Android | +| | [flutter/flutter#28001](https://github.com/flutter/flutter/pull/28001) CupertinoTextField: added ability to change placeholder color | +| | [flutter/flutter#29395](https://github.com/flutter/flutter/pull/29395) Fix text selection when user is dragging in the opposite direction | +| | [flutter/flutter#27205](https://github.com/flutter/flutter/pull/27205) Fix TextField height issues | +| | [flutter/flutter#28169](https://github.com/flutter/flutter/pull/28169) Add/rewrite tests for FocusScope. | +| | [flutter/flutter#28290](https://github.com/flutter/flutter/pull/28290) Text selection via mouse | +| | [flutter/flutter#28558](https://github.com/flutter/flutter/pull/28558) Fix typo | +| | [flutter/flutter#28438](https://github.com/flutter/flutter/issues/28438) PC keyboard not works on text fields in emulator when on master branch. | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#27898](https://github.com/flutter/flutter/pull/27898) Add slight clarification to debugDeterministicCursor | +| | [flutter/flutter#26659](https://github.com/flutter/flutter/pull/26659) Adds fix for NAN value and pressure values outside of device reported min and max | +| | [flutter/flutter#28032](https://github.com/flutter/flutter/pull/28032) Revert 26001 | +| **a: typography** | **4 issues with this label** | +| | [flutter/flutter#30991](https://github.com/flutter/flutter/pull/30991) Use full height of the glyph for caret height on Android | +| | [flutter/flutter#28751](https://github.com/flutter/flutter/pull/28751) Expose decorationThickness in TextStyle. Roll engine (12 commits) | +| | [flutter/flutter#28398](https://github.com/flutter/flutter/pull/28398) fix red build for analysis | +| | [flutter/flutter#28182](https://github.com/flutter/flutter/pull/28182) Add TextOverflow.visible | +| **affects: dev experience** | **1 issue with this label** | +| | [flutter/engine#7908](https://github.com/flutter/engine/pull/7908) Link dart:* sources into engine for debugger source support | +| **affects: docs** | **3 issues with this label** | +| | [flutter/engine#8617](https://github.com/flutter/engine/pull/8617) Fixes a typo in comment | +| | [flutter/engine#8472](https://github.com/flutter/engine/pull/8472) [Docs] Correcting link to contributing guide. | +| | [flutter/engine#8295](https://github.com/flutter/engine/pull/8295) Fixing links between higher and lower classes. | +| **affects: engine** | **1 issue with this label** | +| | [flutter/engine#7908](https://github.com/flutter/engine/pull/7908) Link dart:* sources into engine for debugger source support | +| **area-analyzer** | **1 issue with this label** | +| | [dart-lang/sdk#35940](https://github.com/dart-lang/sdk/issues/35940) Dartanalyzer: Missing line/column information, Unexpected error for int-to-double cast | +| **cla: no** | **2 issues with this label** | +| | [flutter/flutter#27205](https://github.com/flutter/flutter/pull/27205) Fix TextField height issues | +| | [flutter/flutter#28159](https://github.com/flutter/flutter/pull/28159) [Material] Expand BottomNavigationBar API (reprise) | +| **customer: dream (g3)** | **1 issue with this label** | +| | [flutter/flutter#29532](https://github.com/flutter/flutter/pull/29532) Reland composite physical layers on all platforms | +| **customer: fuchsia** | **3 issues with this label** | +| | [flutter/flutter#30458](https://github.com/flutter/flutter/pull/30458) [fuchsia] Fix isolate filter | +| | [flutter/flutter#29532](https://github.com/flutter/flutter/pull/29532) Reland composite physical layers on all platforms | +| | [flutter/flutter#29454](https://github.com/flutter/flutter/pull/29454) Update another SDK constraint | +| **d: api docs** | **36 issues with this label** | +| | [flutter/flutter#30887](https://github.com/flutter/flutter/pull/30887) Add more dialog doc cross-reference | +| | [flutter/flutter#30814](https://github.com/flutter/flutter/pull/30814) Fix StatefulWidget and StatelessWidget Sample Documentation | +| | [flutter/flutter#30805](https://github.com/flutter/flutter/pull/30805) Update ExpansionPanelList Samples with Scaffold Template | +| | [flutter/flutter#30537](https://github.com/flutter/flutter/pull/30537) Embedded images and added variations to ListTile sample code | +| | [flutter/flutter#30626](https://github.com/flutter/flutter/pull/30626) Add sample for ValueListenable | +| | [flutter/flutter#30563](https://github.com/flutter/flutter/pull/30563) Fixed a typo in the Expanded API doc | +| | [flutter/flutter#30343](https://github.com/flutter/flutter/pull/30343) ExpansionPanelList and ExpansionPanelList.radio documentation | +| | [flutter/flutter#30398](https://github.com/flutter/flutter/pull/30398) Embedding new raised button diagram. | +| | [flutter/flutter#30453](https://github.com/flutter/flutter/pull/30453) Updating sample code for BottomNavigationBar class for diagram. | +| | [flutter/flutter#30452](https://github.com/flutter/flutter/pull/30452) Moar Videos | +| | [flutter/flutter#30451](https://github.com/flutter/flutter/pull/30451) Bump dartdocs to 0.28.3 | +| | [flutter/flutter#30348](https://github.com/flutter/flutter/pull/30348) RaisedButton Sample Code Update for Diagrams | +| | [flutter/flutter#30201](https://github.com/flutter/flutter/pull/30201) update sample code analyzer regexp & test case | +| | [flutter/flutter#30048](https://github.com/flutter/flutter/pull/30048) Document that Hero needs to be present on destination page's zero frame | +| | [flutter/flutter#29697](https://github.com/flutter/flutter/pull/29697) Embedding new diagrams for API Docs | +| | [flutter/flutter#29987](https://github.com/flutter/flutter/pull/29987) update CupertinoSwitch documentation | +| | [flutter/flutter#22859](https://github.com/flutter/flutter/issues/22859) Provide links between dart:ui classes and their corresponding classes in higher layers | +| | [flutter/flutter#29445](https://github.com/flutter/flutter/pull/29445) Add doc about MediaQuery to Chip | +| | [flutter/flutter#13637](https://github.com/flutter/flutter/issues/13637) Add images and examples to Align | +| | [flutter/flutter#29442](https://github.com/flutter/flutter/pull/29442) Align Snippet for API Docs | +| | [flutter/flutter#29245](https://github.com/flutter/flutter/pull/29245) Fix DartDoc for UniqueKey | +| | [flutter/flutter#29165](https://github.com/flutter/flutter/pull/29165) Docs edit for Tab Label Color | +| | [flutter/flutter#29053](https://github.com/flutter/flutter/pull/29053) Update to Container Sample Code in API Docs | +| | [flutter/flutter#28857](https://github.com/flutter/flutter/pull/28857) Form Snippet for API Docs | +| | [flutter/flutter#21136](https://github.com/flutter/flutter/issues/21136) Request sample code for popular API docs | +| | [flutter/flutter#28675](https://github.com/flutter/flutter/pull/28675) Update docs for ancestorWidgetOfExactType | +| | [flutter/flutter#28752](https://github.com/flutter/flutter/pull/28752) FAB Snippet for API Docs | +| | [flutter/flutter#28748](https://github.com/flutter/flutter/pull/28748) Revert "Remove the old HaTS implementation on API docs" | +| | [flutter/flutter#28683](https://github.com/flutter/flutter/pull/28683) Remove the old HaTS implementation on API docs | +| | [flutter/flutter#27751](https://github.com/flutter/flutter/pull/27751) Add Sample code for FlatButton #21136 | +| | [flutter/flutter#28558](https://github.com/flutter/flutter/pull/28558) Fix typo | +| | [flutter/flutter#28245](https://github.com/flutter/flutter/pull/28245) [Typo] Update 'use' to 'user' | +| | [flutter/flutter#28017](https://github.com/flutter/flutter/pull/28017) Add more docs to BackdropFilter | +| | [flutter/flutter#27803](https://github.com/flutter/flutter/pull/27803) Added sample code to AnimatedWidget | +| | [flutter/flutter#27305](https://github.com/flutter/flutter/pull/27305) Outline for survey implementation | +| | [flutter/flutter#27793](https://github.com/flutter/flutter/pull/27793) Remove remaining "## Sample code" segments, and fix the snippet generator. | +| **d: examples** | **8 issues with this label** | +| | [flutter/flutter#30398](https://github.com/flutter/flutter/pull/30398) Embedding new raised button diagram. | +| | [flutter/flutter#30453](https://github.com/flutter/flutter/pull/30453) Updating sample code for BottomNavigationBar class for diagram. | +| | [flutter/flutter#30348](https://github.com/flutter/flutter/pull/30348) RaisedButton Sample Code Update for Diagrams | +| | [flutter/flutter#29697](https://github.com/flutter/flutter/pull/29697) Embedding new diagrams for API Docs | +| | [flutter/flutter#29442](https://github.com/flutter/flutter/pull/29442) Align Snippet for API Docs | +| | [flutter/flutter#29053](https://github.com/flutter/flutter/pull/29053) Update to Container Sample Code in API Docs | +| | [flutter/flutter#28857](https://github.com/flutter/flutter/pull/28857) Form Snippet for API Docs | +| | [flutter/flutter#28752](https://github.com/flutter/flutter/pull/28752) FAB Snippet for API Docs | +| **e: desktop** | **5 issues with this label** | +| | [flutter/flutter#31283](https://github.com/flutter/flutter/pull/31283) Add desktop workflows to doctor | +| | [flutter/flutter#31229](https://github.com/flutter/flutter/pull/31229) Add flutter run support for linux and windows | +| | [flutter/flutter#31277](https://github.com/flutter/flutter/pull/31277) pass track widget creation flag through to build script | +| | [flutter/flutter#31218](https://github.com/flutter/flutter/pull/31218) Add run capability for macOS target | +| | [flutter/flutter#31205](https://github.com/flutter/flutter/pull/31205) Add desktop projects and build commands (experimental) | +| **easy fix** | **3 issues with this label** | +| | [flutter/flutter#21136](https://github.com/flutter/flutter/issues/21136) Request sample code for popular API docs | +| | [flutter/flutter#7738](https://github.com/flutter/flutter/issues/7738) Allow for more flexible unselected label color parameter in TabBar | +| | [flutter/engine#8472](https://github.com/flutter/engine/pull/8472) [Docs] Correcting link to contributing guide. | +| **engine** | **3 issues with this label** | +| | [flutter/flutter#14704](https://github.com/flutter/flutter/issues/14704) Unpack cached code on Android to the getCodeCacheDir() directory, rather than the user data directory | +| | [flutter/flutter#28651](https://github.com/flutter/flutter/issues/28651) Cannot execute operation because FlutterJNI is not attached to native. | +| | [flutter/flutter#27712](https://github.com/flutter/flutter/pull/27712) add2app test | +| **f: cupertino** | **20 issues with this label** | +| | [flutter/flutter#31088](https://github.com/flutter/flutter/pull/31088) Text field scroll physics | +| | [flutter/flutter#30946](https://github.com/flutter/flutter/pull/30946) Add some more cupertino icons | +| | [flutter/flutter#29451](https://github.com/flutter/flutter/pull/29451) Added opacity to cupertino switch when disabled | +| | [flutter/flutter#30862](https://github.com/flutter/flutter/pull/30862) CupertinoDatePicker initialDateTime accounts for minuteInterval | +| | [flutter/flutter#29822](https://github.com/flutter/flutter/pull/29822) Cupertino localization step 7: modularize material specific things out of gen_localizations.dart | +| | [flutter/flutter#30527](https://github.com/flutter/flutter/pull/30527) Cupertino localization step 11: add more translation clarifications in the instructions | +| | [flutter/flutter#29767](https://github.com/flutter/flutter/pull/29767) Cupertino localization step 6: add a GlobalCupertinoLocalizations base class with date time formatting | +| | [flutter/flutter#29708](https://github.com/flutter/flutter/pull/29708) Cupertino localization step 5: add french arb as translated example | +| | [flutter/flutter#28001](https://github.com/flutter/flutter/pull/28001) CupertinoTextField: added ability to change placeholder color | +| | [flutter/flutter#29821](https://github.com/flutter/flutter/pull/29821) Cupertino localization step 1.5: fix a resource mismatch in cupertino_en.arb | +| | [flutter/flutter#29946](https://github.com/flutter/flutter/pull/29946) Let CupertinoPageScaffold have tap status bar to scroll to top | +| | [flutter/flutter#29987](https://github.com/flutter/flutter/pull/29987) update CupertinoSwitch documentation | +| | [flutter/flutter#29943](https://github.com/flutter/flutter/pull/29943) Remove unwanted gap between navigation bar and safe area's child | +| | [flutter/flutter#29630](https://github.com/flutter/flutter/pull/29630) Add heart shapes to CupertinoIcons | +| | [flutter/flutter#28597](https://github.com/flutter/flutter/pull/28597) Adjust remaining Cupertino route animations to match native | +| | [flutter/flutter#29463](https://github.com/flutter/flutter/pull/29463) Make real JSON in arb | +| | [flutter/flutter#28900](https://github.com/flutter/flutter/pull/28900) Add key support to cupertino button | +| | [flutter/flutter#28855](https://github.com/flutter/flutter/pull/28855) Move material iOS back swipe test to material | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#28032](https://github.com/flutter/flutter/pull/28032) Revert 26001 | +| **f: gestures** | **6 issues with this label** | +| | [flutter/flutter#28749](https://github.com/flutter/flutter/pull/28749) Add minimum time gap requirement to double tap | +| | [flutter/flutter#28290](https://github.com/flutter/flutter/pull/28290) Text selection via mouse | +| | [flutter/flutter#28546](https://github.com/flutter/flutter/pull/28546) Call onTapCancel when down pointer gets cancelled | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#27904](https://github.com/flutter/flutter/pull/27904) Convert PointerEvent's toString to Diagnosticable | +| | [flutter/flutter#26659](https://github.com/flutter/flutter/pull/26659) Adds fix for NAN value and pressure values outside of device reported min and max | +| **f: material design** | **44 issues with this label** | +| | [flutter/flutter#31088](https://github.com/flutter/flutter/pull/31088) Text field scroll physics | +| | [flutter/flutter#29390](https://github.com/flutter/flutter/pull/29390) Make expansion panel optionally toggle its state by tapping its header. | +| | [flutter/flutter#30746](https://github.com/flutter/flutter/pull/30746) Baseline Aligned Row | +| | [flutter/flutter#30793](https://github.com/flutter/flutter/pull/30793) Revert "Add Form.onSaved" | +| | [flutter/flutter#30525](https://github.com/flutter/flutter/pull/30525) Fix cursor outside of input width | +| | [flutter/flutter#30805](https://github.com/flutter/flutter/pull/30805) Update ExpansionPanelList Samples with Scaffold Template | +| | [flutter/flutter#30537](https://github.com/flutter/flutter/pull/30537) Embedded images and added variations to ListTile sample code | +| | [flutter/flutter#30455](https://github.com/flutter/flutter/pull/30455) Prevent vertical scroll in shrine by ensuring card size fits the screen | +| | [flutter/flutter#30497](https://github.com/flutter/flutter/pull/30497) Add confirmDismiss example to flutter_gallery | +| | [flutter/flutter#30475](https://github.com/flutter/flutter/pull/30475) Trackpad mode crash fix | +| | [flutter/flutter#29413](https://github.com/flutter/flutter/pull/29413) Fix MaterialApp's _navigatorObserver when only builder used | +| | [flutter/flutter#30343](https://github.com/flutter/flutter/pull/30343) ExpansionPanelList and ExpansionPanelList.radio documentation | +| | [flutter/flutter#27217](https://github.com/flutter/flutter/pull/27217) Fix Shrine overscroll glow indicator | +| | [flutter/flutter#30353](https://github.com/flutter/flutter/pull/30353) Fix minor typo | +| | [flutter/flutter#30212](https://github.com/flutter/flutter/pull/30212) Added assert to prevent complete ListTile trailing/leading horizontal expansion | +| | [flutter/flutter#30123](https://github.com/flutter/flutter/pull/30123) Fix OutlineInputBorder crash | +| | [flutter/flutter#30219](https://github.com/flutter/flutter/pull/30219) Added helpful Material assert message | +| | [flutter/flutter#29771](https://github.com/flutter/flutter/pull/29771) Set Max Height for ListTile trailing and leading widgets | +| | [flutter/flutter#30048](https://github.com/flutter/flutter/pull/30048) Document that Hero needs to be present on destination page's zero frame | +| | [flutter/flutter#29811](https://github.com/flutter/flutter/pull/29811) TextField Validator Height Docs | +| | [flutter/flutter#29980](https://github.com/flutter/flutter/pull/29980) Fix issue with account drawer header arrow rotating when setState is called | +| | [flutter/flutter#29563](https://github.com/flutter/flutter/pull/29563) Avoid flickering while dragging to select text | +| | [flutter/flutter#29138](https://github.com/flutter/flutter/pull/29138) Update DropdownButton underline to be customizable | +| | [flutter/flutter#28735](https://github.com/flutter/flutter/pull/28735) [Material] Create a FloatingActionButton ThemeData and honor it within the FloatingActionButton | +| | [flutter/flutter#29564](https://github.com/flutter/flutter/pull/29564) Update progress indicator API docs | +| | [flutter/flutter#29445](https://github.com/flutter/flutter/pull/29445) Add doc about MediaQuery to Chip | +| | [flutter/flutter#29183](https://github.com/flutter/flutter/pull/29183) Implement labelPadding configuration in TabBarTheme | +| | [flutter/flutter#29165](https://github.com/flutter/flutter/pull/29165) Docs edit for Tab Label Color | +| | [flutter/flutter#29175](https://github.com/flutter/flutter/pull/29175) Ensure that animated pairs of Tabs TextStyles have matching inherited values | +| | [flutter/flutter#28752](https://github.com/flutter/flutter/pull/28752) FAB Snippet for API Docs | +| | [flutter/flutter#27751](https://github.com/flutter/flutter/pull/27751) Add Sample code for FlatButton #21136 | +| | [flutter/flutter#28558](https://github.com/flutter/flutter/pull/28558) Fix typo | +| | [flutter/flutter#28013](https://github.com/flutter/flutter/pull/28013) [Material] Unit test for skipping Slider tick mark due to overdensity | +| | [flutter/flutter#21834](https://github.com/flutter/flutter/pull/21834) Add shapeBorder option on App Bar | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#28371](https://github.com/flutter/flutter/pull/28371) Ensure that the DropdownButton menu respects its parents bounds | +| | [flutter/flutter#28214](https://github.com/flutter/flutter/pull/28214) [Material] Add the ability to theme trailing app bar actions independently from leading | +| | [flutter/flutter#28245](https://github.com/flutter/flutter/pull/28245) [Typo] Update 'use' to 'user' | +| | [flutter/flutter#28163](https://github.com/flutter/flutter/pull/28163) [Material] Add ability to set shadow color and selected shadow color for chips and for chip themes | +| | [flutter/flutter#27711](https://github.com/flutter/flutter/pull/27711) Make extended FAB's icon optional | +| | [flutter/flutter#28159](https://github.com/flutter/flutter/pull/28159) [Material] Expand BottomNavigationBar API (reprise) | +| | [flutter/flutter#28032](https://github.com/flutter/flutter/pull/28032) Revert 26001 | +| | [flutter/flutter#28216](https://github.com/flutter/flutter/pull/28216) Fix 'to to' | +| | [flutter/flutter#27973](https://github.com/flutter/flutter/pull/27973) Add extendBody parameter to Scaffold, body MediaQuery reflects BAB height | +| **f: routes** | **1 issue with this label** | +| | [flutter/flutter#28597](https://github.com/flutter/flutter/pull/28597) Adjust remaining Cupertino route animations to match native | +| **f: scrolling** | **2 issues with this label** | +| | [flutter/flutter#27945](https://github.com/flutter/flutter/pull/27945) Fixes crossAxisSpacing overflow in RTL | +| | [flutter/flutter#27433](https://github.com/flutter/flutter/pull/27433) Fix issue where SliverPersistentHeader that is both floating and pinned would scroll down when scrolling past the beginning of the ScrollView | +| **framework** | **144 issues with this label** | +| | [flutter/flutter#31088](https://github.com/flutter/flutter/pull/31088) Text field scroll physics | +| | [flutter/flutter#29390](https://github.com/flutter/flutter/pull/29390) Make expansion panel optionally toggle its state by tapping its header. | +| | [flutter/flutter#30422](https://github.com/flutter/flutter/pull/30422) Commit a navigator.pop as soon as the back swipe is lifted | +| | [flutter/flutter#30946](https://github.com/flutter/flutter/pull/30946) Add some more cupertino icons | +| | [flutter/flutter#31159](https://github.com/flutter/flutter/pull/31159) Revert "Use full height of the glyph for caret height on Android" | +| | [flutter/flutter#30938](https://github.com/flutter/flutter/pull/30938) Update keycodes, fix a comment. | +| | [flutter/flutter#30898](https://github.com/flutter/flutter/pull/30898) Check that ErrorWidget.builder is not modified after test | +| | [flutter/flutter#30809](https://github.com/flutter/flutter/pull/30809) Fix issue 23527: Exception: RenderViewport exceeded its maximum numb… | +| | [flutter/flutter#30746](https://github.com/flutter/flutter/pull/30746) Baseline Aligned Row | +| | [flutter/flutter#30880](https://github.com/flutter/flutter/pull/30880) Let `sliver.dart` `_createErrorWidget` work with other Widgets | +| | [flutter/flutter#30862](https://github.com/flutter/flutter/pull/30862) CupertinoDatePicker initialDateTime accounts for minuteInterval | +| | [flutter/flutter#30876](https://github.com/flutter/flutter/pull/30876) Simplify toImage future handling | +| | [flutter/flutter#30470](https://github.com/flutter/flutter/pull/30470) Fixed Table flex column layout error #30437 | +| | [flutter/flutter#30667](https://github.com/flutter/flutter/pull/30667) Fix additional @mustCallSuper indirect overrides and mixins | +| | [flutter/flutter#30643](https://github.com/flutter/flutter/pull/30643) Add Form.onSaved | +| | [flutter/flutter#30793](https://github.com/flutter/flutter/pull/30793) Revert "Add Form.onSaved" | +| | [flutter/flutter#30414](https://github.com/flutter/flutter/pull/30414) Remove pressure customization from some pointer events | +| | [flutter/flutter#30525](https://github.com/flutter/flutter/pull/30525) Fix cursor outside of input width | +| | [flutter/flutter#29822](https://github.com/flutter/flutter/pull/29822) Cupertino localization step 7: modularize material specific things out of gen_localizations.dart | +| | [flutter/flutter#30814](https://github.com/flutter/flutter/pull/30814) Fix StatefulWidget and StatelessWidget Sample Documentation | +| | [flutter/flutter#30527](https://github.com/flutter/flutter/pull/30527) Cupertino localization step 11: add more translation clarifications in the instructions | +| | [flutter/flutter#30805](https://github.com/flutter/flutter/pull/30805) Update ExpansionPanelList Samples with Scaffold Template | +| | [flutter/flutter#30537](https://github.com/flutter/flutter/pull/30537) Embedded images and added variations to ListTile sample code | +| | [flutter/flutter#30760](https://github.com/flutter/flutter/pull/30760) fix cast NPE in invokeListMethod and invokeMapMethod | +| | [flutter/flutter#30455](https://github.com/flutter/flutter/pull/30455) Prevent vertical scroll in shrine by ensuring card size fits the screen | +| | [flutter/flutter#30640](https://github.com/flutter/flutter/pull/30640) Add `const Border.uniformSide()` | +| | [flutter/flutter#30644](https://github.com/flutter/flutter/pull/30644) Make FormField._validate() return void | +| | [flutter/flutter#30645](https://github.com/flutter/flutter/pull/30645) Add docs to FormFieldValidator | +| | [flutter/flutter#30626](https://github.com/flutter/flutter/pull/30626) Add sample for ValueListenable | +| | [flutter/flutter#30563](https://github.com/flutter/flutter/pull/30563) Fixed a typo in the Expanded API doc | +| | [flutter/flutter#30513](https://github.com/flutter/flutter/pull/30513) Fix issue 21640: Assertion Error : '_listenerAttached': is not true | +| | [flutter/flutter#30305](https://github.com/flutter/flutter/pull/30305) shorter nullable list duplications | +| | [flutter/flutter#30475](https://github.com/flutter/flutter/pull/30475) Trackpad mode crash fix | +| | [flutter/flutter#29708](https://github.com/flutter/flutter/pull/29708) Cupertino localization step 5: add french arb as translated example | +| | [flutter/flutter#29413](https://github.com/flutter/flutter/pull/29413) Fix MaterialApp's _navigatorObserver when only builder used | +| | [flutter/flutter#29998](https://github.com/flutter/flutter/pull/29998) Fix edge cases of PointerEventConverter | +| | [flutter/flutter#30343](https://github.com/flutter/flutter/pull/30343) ExpansionPanelList and ExpansionPanelList.radio documentation | +| | [flutter/flutter#27217](https://github.com/flutter/flutter/pull/27217) Fix Shrine overscroll glow indicator | +| | [flutter/flutter#30275](https://github.com/flutter/flutter/pull/30275) Implement compute for async function (#16265) | +| | [flutter/flutter#30398](https://github.com/flutter/flutter/pull/30398) Embedding new raised button diagram. | +| | [flutter/flutter#30453](https://github.com/flutter/flutter/pull/30453) Updating sample code for BottomNavigationBar class for diagram. | +| | [flutter/flutter#30276](https://github.com/flutter/flutter/pull/30276) Random trivial fixes in the animation packages | +| | [flutter/flutter#30463](https://github.com/flutter/flutter/pull/30463) Revert "Error message for setting shaderWarmUp too late (#30145)" | +| | [flutter/flutter#30452](https://github.com/flutter/flutter/pull/30452) Moar Videos | +| | [flutter/flutter#30451](https://github.com/flutter/flutter/pull/30451) Bump dartdocs to 0.28.3 | +| | [flutter/flutter#30058](https://github.com/flutter/flutter/pull/30058) Draggable Scrollable sheet | +| | [flutter/flutter#30353](https://github.com/flutter/flutter/pull/30353) Fix minor typo | +| | [flutter/flutter#30348](https://github.com/flutter/flutter/pull/30348) RaisedButton Sample Code Update for Diagrams | +| | [flutter/flutter#30304](https://github.com/flutter/flutter/pull/30304) no need .toList() before .join() | +| | [flutter/flutter#30212](https://github.com/flutter/flutter/pull/30212) Added assert to prevent complete ListTile trailing/leading horizontal expansion | +| | [flutter/flutter#30227](https://github.com/flutter/flutter/pull/30227) Simplify logic of TapGestureRecognizer | +| | [flutter/flutter#30123](https://github.com/flutter/flutter/pull/30123) Fix OutlineInputBorder crash | +| | [flutter/flutter#30219](https://github.com/flutter/flutter/pull/30219) Added helpful Material assert message | +| | [flutter/flutter#29771](https://github.com/flutter/flutter/pull/29771) Set Max Height for ListTile trailing and leading widgets | +| | [flutter/flutter#29993](https://github.com/flutter/flutter/pull/29993) Adds the keyboard mapping for Linux | +| | [flutter/flutter#29860](https://github.com/flutter/flutter/pull/29860) Move binarySearch to foundation. | +| | [flutter/flutter#30048](https://github.com/flutter/flutter/pull/30048) Document that Hero needs to be present on destination page's zero frame | +| | [flutter/flutter#28001](https://github.com/flutter/flutter/pull/28001) CupertinoTextField: added ability to change placeholder color | +| | [flutter/flutter#29821](https://github.com/flutter/flutter/pull/29821) Cupertino localization step 1.5: fix a resource mismatch in cupertino_en.arb | +| | [flutter/flutter#29697](https://github.com/flutter/flutter/pull/29697) Embedding new diagrams for API Docs | +| | [flutter/flutter#29987](https://github.com/flutter/flutter/pull/29987) update CupertinoSwitch documentation | +| | [flutter/flutter#29811](https://github.com/flutter/flutter/pull/29811) TextField Validator Height Docs | +| | [flutter/flutter#29943](https://github.com/flutter/flutter/pull/29943) Remove unwanted gap between navigation bar and safe area's child | +| | [flutter/flutter#22859](https://github.com/flutter/flutter/issues/22859) Provide links between dart:ui classes and their corresponding classes in higher layers | +| | [flutter/flutter#29929](https://github.com/flutter/flutter/pull/29929) Remove tranparent paint hack from BackdropFilter | +| | [flutter/flutter#29630](https://github.com/flutter/flutter/pull/29630) Add heart shapes to CupertinoIcons | +| | [flutter/flutter#29563](https://github.com/flutter/flutter/pull/29563) Avoid flickering while dragging to select text | +| | [flutter/flutter#29701](https://github.com/flutter/flutter/pull/29701) Reland composite physical layers for all platforms | +| | [flutter/flutter#28735](https://github.com/flutter/flutter/pull/28735) [Material] Create a FloatingActionButton ThemeData and honor it within the FloatingActionButton | +| | [flutter/flutter#29532](https://github.com/flutter/flutter/pull/29532) Reland composite physical layers on all platforms | +| | [flutter/flutter#29623](https://github.com/flutter/flutter/pull/29623) Revert "Reland composite physical layers on all platforms" | +| | [flutter/flutter#29564](https://github.com/flutter/flutter/pull/29564) Update progress indicator API docs | +| | [flutter/flutter#29566](https://github.com/flutter/flutter/pull/29566) Manually roll engine to 5088735e5f | +| | [flutter/flutter#29463](https://github.com/flutter/flutter/pull/29463) Make real JSON in arb | +| | [flutter/flutter#29231](https://github.com/flutter/flutter/pull/29231) Adds macOS raw keyboard mapping | +| | [flutter/flutter#29445](https://github.com/flutter/flutter/pull/29445) Add doc about MediaQuery to Chip | +| | [flutter/flutter#13637](https://github.com/flutter/flutter/issues/13637) Add images and examples to Align | +| | [flutter/flutter#29442](https://github.com/flutter/flutter/pull/29442) Align Snippet for API Docs | +| | [flutter/flutter#29395](https://github.com/flutter/flutter/pull/29395) Fix text selection when user is dragging in the opposite direction | +| | [flutter/flutter#28470](https://github.com/flutter/flutter/pull/28470) Throw assertion error when a Hero has a Hero child. | +| | [flutter/flutter#29183](https://github.com/flutter/flutter/pull/29183) Implement labelPadding configuration in TabBarTheme | +| | [flutter/flutter#29329](https://github.com/flutter/flutter/pull/29329) Error message when TextSelectionOverlay finds no Overlay | +| | [flutter/flutter#28919](https://github.com/flutter/flutter/pull/28919) Always composite PhysicalModels | +| | [flutter/flutter#28751](https://github.com/flutter/flutter/pull/28751) Expose decorationThickness in TextStyle. Roll engine (12 commits) | +| | [flutter/flutter#29245](https://github.com/flutter/flutter/pull/29245) Fix DartDoc for UniqueKey | +| | [flutter/flutter#29165](https://github.com/flutter/flutter/pull/29165) Docs edit for Tab Label Color | +| | [flutter/flutter#29179](https://github.com/flutter/flutter/pull/29179) No image shader caching in default shader warm-up | +| | [flutter/flutter#29175](https://github.com/flutter/flutter/pull/29175) Ensure that animated pairs of Tabs TextStyles have matching inherited values | +| | [flutter/flutter#29069](https://github.com/flutter/flutter/pull/29069) Heroes and nested Navigators | +| | [flutter/flutter#28953](https://github.com/flutter/flutter/pull/28953) Include platformViewId in semantics tree | +| | [flutter/flutter#29054](https://github.com/flutter/flutter/pull/29054) Deprecate profile() | +| | [flutter/flutter#29053](https://github.com/flutter/flutter/pull/29053) Update to Container Sample Code in API Docs | +| | [flutter/flutter#27971](https://github.com/flutter/flutter/pull/27971) Run non-perf sensitive tests on Cirrus | +| | [flutter/flutter#27205](https://github.com/flutter/flutter/pull/27205) Fix TextField height issues | +| | [flutter/flutter#29051](https://github.com/flutter/flutter/pull/29051) fix block formatting | +| | [flutter/flutter#28900](https://github.com/flutter/flutter/pull/28900) Add key support to cupertino button | +| | [flutter/flutter#28169](https://github.com/flutter/flutter/pull/28169) Add/rewrite tests for FocusScope. | +| | [flutter/flutter#28857](https://github.com/flutter/flutter/pull/28857) Form Snippet for API Docs | +| | [flutter/flutter#21136](https://github.com/flutter/flutter/issues/21136) Request sample code for popular API docs | +| | [flutter/flutter#28951](https://github.com/flutter/flutter/pull/28951) Quick fix for shader warm up | +| | [flutter/flutter#28749](https://github.com/flutter/flutter/pull/28749) Add minimum time gap requirement to double tap | +| | [flutter/flutter#28855](https://github.com/flutter/flutter/pull/28855) Move material iOS back swipe test to material | +| | [flutter/flutter#25202](https://github.com/flutter/flutter/pull/25202) fix #19175 How should addTime be used from a test? | +| | [flutter/flutter#28944](https://github.com/flutter/flutter/pull/28944) fix missing variable name | +| | [flutter/flutter#27811](https://github.com/flutter/flutter/pull/27811) set literal conversions | +| | [flutter/flutter#28675](https://github.com/flutter/flutter/pull/28675) Update docs for ancestorWidgetOfExactType | +| | [flutter/flutter#28809](https://github.com/flutter/flutter/pull/28809) fix some formatting issues | +| | [flutter/flutter#28666](https://github.com/flutter/flutter/pull/28666) Make RenderUiKitView reject absorbed touch events | +| | [flutter/flutter#28752](https://github.com/flutter/flutter/pull/28752) FAB Snippet for API Docs | +| | [flutter/flutter#28661](https://github.com/flutter/flutter/pull/28661) Use a simpler implementation of Diagnosticable.toString when running in profile/release mode | +| | [flutter/flutter#28736](https://github.com/flutter/flutter/pull/28736) Avoid the overhead of instantiating a generator in paintImage | +| | [flutter/flutter#28638](https://github.com/flutter/flutter/pull/28638) Fix the test annotation used for test groups | +| | [flutter/flutter#28290](https://github.com/flutter/flutter/pull/28290) Text selection via mouse | +| | [flutter/flutter#28709](https://github.com/flutter/flutter/pull/28709) improve error messages on Text constructors | +| | [flutter/flutter#27751](https://github.com/flutter/flutter/pull/27751) Add Sample code for FlatButton #21136 | +| | [flutter/flutter#28546](https://github.com/flutter/flutter/pull/28546) Call onTapCancel when down pointer gets cancelled | +| | [flutter/flutter#28537](https://github.com/flutter/flutter/pull/28537) Reland "Shader warm up (#27660)" | +| | [flutter/flutter#28013](https://github.com/flutter/flutter/pull/28013) [Material] Unit test for skipping Slider tick mark due to overdensity | +| | [flutter/flutter#28438](https://github.com/flutter/flutter/issues/28438) PC keyboard not works on text fields in emulator when on master branch. | +| | [flutter/flutter#21834](https://github.com/flutter/flutter/pull/21834) Add shapeBorder option on App Bar | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#27904](https://github.com/flutter/flutter/pull/27904) Convert PointerEvent's toString to Diagnosticable | +| | [flutter/flutter#28371](https://github.com/flutter/flutter/pull/28371) Ensure that the DropdownButton menu respects its parents bounds | +| | [flutter/flutter#28214](https://github.com/flutter/flutter/pull/28214) [Material] Add the ability to theme trailing app bar actions independently from leading | +| | [flutter/flutter#28245](https://github.com/flutter/flutter/pull/28245) [Typo] Update 'use' to 'user' | +| | [flutter/flutter#28017](https://github.com/flutter/flutter/pull/28017) Add more docs to BackdropFilter | +| | [flutter/flutter#28398](https://github.com/flutter/flutter/pull/28398) fix red build for analysis | +| | [flutter/flutter#28163](https://github.com/flutter/flutter/pull/28163) [Material] Add ability to set shadow color and selected shadow color for chips and for chip themes | +| | [flutter/flutter#27711](https://github.com/flutter/flutter/pull/27711) Make extended FAB's icon optional | +| | [flutter/flutter#27898](https://github.com/flutter/flutter/pull/27898) Add slight clarification to debugDeterministicCursor | +| | [flutter/flutter#28159](https://github.com/flutter/flutter/pull/28159) [Material] Expand BottomNavigationBar API (reprise) | +| | [flutter/flutter#28172](https://github.com/flutter/flutter/pull/28172) Add backgroundColor argument to TextStyle for convenience | +| | [flutter/flutter#26659](https://github.com/flutter/flutter/pull/26659) Adds fix for NAN value and pressure values outside of device reported min and max | +| | [flutter/flutter#27803](https://github.com/flutter/flutter/pull/27803) Added sample code to AnimatedWidget | +| | [flutter/flutter#27945](https://github.com/flutter/flutter/pull/27945) Fixes crossAxisSpacing overflow in RTL | +| | [flutter/flutter#27433](https://github.com/flutter/flutter/pull/27433) Fix issue where SliverPersistentHeader that is both floating and pinned would scroll down when scrolling past the beginning of the ScrollView | +| | [flutter/flutter#28182](https://github.com/flutter/flutter/pull/28182) Add TextOverflow.visible | +| | [flutter/flutter#28032](https://github.com/flutter/flutter/pull/28032) Revert 26001 | +| | [flutter/flutter#27953](https://github.com/flutter/flutter/pull/27953) Add outer try block for obtainKey errors. Add docs. | +| | [flutter/flutter#28216](https://github.com/flutter/flutter/pull/28216) Fix 'to to' | +| | [flutter/flutter#7738](https://github.com/flutter/flutter/issues/7738) Allow for more flexible unselected label color parameter in TabBar | +| | [flutter/flutter#27973](https://github.com/flutter/flutter/pull/27973) Add extendBody parameter to Scaffold, body MediaQuery reflects BAB height | +| | [flutter/flutter#28006](https://github.com/flutter/flutter/pull/28006) Re-apply "Ensure all curves return 0 and 1 in .transform(t) when t=0/1" | +| | [flutter/flutter#27929](https://github.com/flutter/flutter/pull/27929) Use double literals where a double type is expected | +| **p1-high** | **1 issue with this label** | +| | [dart-lang/sdk#35940](https://github.com/dart-lang/sdk/issues/35940) Dartanalyzer: Missing line/column information, Unexpected error for int-to-double cast | +| **platform-ios** | **1 issue with this label** | +| | [flutter/engine#8202](https://github.com/flutter/engine/pull/8202) [platform_view] iOSP platformView composition optimize. | +| **prod: API break** | **1 issue with this label** | +| | [flutter/engine#8274](https://github.com/flutter/engine/pull/8274) [ui] Add null check in FontWeight.lerp | +| **severe: API break** | **6 issues with this label** | +| | [flutter/flutter#30991](https://github.com/flutter/flutter/pull/30991) Use full height of the glyph for caret height on Android | +| | [flutter/flutter#30414](https://github.com/flutter/flutter/pull/30414) Remove pressure customization from some pointer events | +| | [flutter/flutter#28919](https://github.com/flutter/flutter/pull/28919) Always composite PhysicalModels | +| | [flutter/flutter#28953](https://github.com/flutter/flutter/pull/28953) Include platformViewId in semantics tree | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#28032](https://github.com/flutter/flutter/pull/28032) Revert 26001 | +| **severe: crash** | **1 issue with this label** | +| | [flutter/flutter#28651](https://github.com/flutter/flutter/issues/28651) Cannot execute operation because FlutterJNI is not attached to native. | +| **severe: new feature** | **1 issue with this label** | +| | [flutter/flutter#29390](https://github.com/flutter/flutter/pull/29390) Make expansion panel optionally toggle its state by tapping its header. | +| **severe: performance** | **5 issues with this label** | +| | [flutter/flutter#30990](https://github.com/flutter/flutter/pull/30990) Allow profile widget builds in profile mode | +| | [flutter/flutter#30985](https://github.com/flutter/flutter/pull/30985) Add rrect contains microbenchmark | +| | [flutter/flutter#14704](https://github.com/flutter/flutter/issues/14704) Unpack cached code on Android to the getCodeCacheDir() directory, rather than the user data directory | +| | [flutter/flutter#8150](https://github.com/flutter/flutter/issues/8150) complex_layout_srcroll_perf__memory diff_total_kb regression | +| | [flutter/flutter#28537](https://github.com/flutter/flutter/pull/28537) Reland "Shader warm up (#27660)" | +| **severe: regression** | **3 issues with this label** | +| | [flutter/flutter#28651](https://github.com/flutter/flutter/issues/28651) Cannot execute operation because FlutterJNI is not attached to native. | +| | [flutter/flutter#8150](https://github.com/flutter/flutter/issues/8150) complex_layout_srcroll_perf__memory diff_total_kb regression | +| | [flutter/flutter#28438](https://github.com/flutter/flutter/issues/28438) PC keyboard not works on text fields in emulator when on master branch. | +| **t: flutter doctor** | **1 issue with this label** | +| | [flutter/flutter#8094](https://github.com/flutter/flutter/issues/8094) Flutter doesn't find xcode 8.2 | +| **t: flutter driver** | **3 issues with this label** | +| | [flutter/flutter#30747](https://github.com/flutter/flutter/pull/30747) Print warning if flutter drive is run in debug | +| | [flutter/flutter#29342](https://github.com/flutter/flutter/pull/29342) Add semantic label finders | +| | [flutter/flutter#27709](https://github.com/flutter/flutter/pull/27709) Increase our build budget to 16ms | +| **t: gradle** | **4 issues with this label** | +| | [flutter/flutter#28097](https://github.com/flutter/flutter/pull/28097) Allow for gradle downloading missing SDK assets | +| | [flutter/flutter#28355](https://github.com/flutter/flutter/pull/28355) Reland "Allow for gradle downloading missing SDK assets" (#28097) | +| | [flutter/flutter#27754](https://github.com/flutter/flutter/pull/27754) Add support for binary compression of dynamic patches by the flutter tool. | +| | [flutter/flutter#28031](https://github.com/flutter/flutter/pull/28031) Revert "Add support for binary compression of dynamic patches by the flutter tool. (#27754)" | +| **t: hot reload** | **2 issues with this label** | +| | [flutter/flutter#29693](https://github.com/flutter/flutter/pull/29693) Use source list from the compiler to track invalidated files for hot reload. | +| | [flutter/flutter#28152](https://github.com/flutter/flutter/pull/28152) Improve hot reload performance | +| **t: xcode** | **1 issue with this label** | +| | [flutter/flutter#27765](https://github.com/flutter/flutter/pull/27765) Refactor local engine logic | +| **team** | **55 issues with this label** | +| | [flutter/flutter#30990](https://github.com/flutter/flutter/pull/30990) Allow profile widget builds in profile mode | +| | [flutter/flutter#30832](https://github.com/flutter/flutter/pull/30832) Bump Android build tools to 28.0.3 in Dockerfile | +| | [flutter/flutter#30871](https://github.com/flutter/flutter/pull/30871) Update the upload key which seems to have trouble for some reason | +| | [flutter/flutter#30455](https://github.com/flutter/flutter/pull/30455) Prevent vertical scroll in shrine by ensuring card size fits the screen | +| | [flutter/flutter#25164](https://github.com/flutter/flutter/pull/25164) Pan and zoom gallery demo | +| | [flutter/flutter#27217](https://github.com/flutter/flutter/pull/27217) Fix Shrine overscroll glow indicator | +| | [flutter/flutter#30460](https://github.com/flutter/flutter/pull/30460) Fix gallery API doc URL launcher | +| | [flutter/flutter#30201](https://github.com/flutter/flutter/pull/30201) update sample code analyzer regexp & test case | +| | [flutter/flutter#29621](https://github.com/flutter/flutter/pull/29621) Update PULL_REQUEST_TEMPLATE.md | +| | [flutter/flutter#30019](https://github.com/flutter/flutter/pull/30019) Update to latest matcher | +| | [flutter/flutter#29908](https://github.com/flutter/flutter/pull/29908) Update Twitter handle @flutterio -> @FlutterDev | +| | [flutter/flutter#29632](https://github.com/flutter/flutter/pull/29632) Enable platform views for Flutter Gallery on iOS. | +| | [flutter/flutter#29669](https://github.com/flutter/flutter/pull/29669) Speed up CI via mojave-flutter image | +| | [flutter/flutter#29467](https://github.com/flutter/flutter/pull/29467) prevent stream notifications from interfering with reload | +| | [flutter/flutter#29619](https://github.com/flutter/flutter/pull/29619) make literals const for @immutable constructors | +| | [flutter/flutter#29454](https://github.com/flutter/flutter/pull/29454) Update another SDK constraint | +| | [flutter/flutter#29340](https://github.com/flutter/flutter/pull/29340) guard new formatter behind env var | +| | [flutter/flutter#29229](https://github.com/flutter/flutter/pull/29229) Install JDK and Android SDK only for integration tests | +| | [flutter/flutter#29126](https://github.com/flutter/flutter/pull/29126) Cause `flutter analyze` to fail if the analysis server experienced an error. | +| | [flutter/flutter#27971](https://github.com/flutter/flutter/pull/27971) Run non-perf sensitive tests on Cirrus | +| | [flutter/flutter#29051](https://github.com/flutter/flutter/pull/29051) fix block formatting | +| | [flutter/flutter#29025](https://github.com/flutter/flutter/pull/29025) print system time on all mac builds | +| | [flutter/flutter#28297](https://github.com/flutter/flutter/pull/28297) Test reporter | +| | [flutter/flutter#27811](https://github.com/flutter/flutter/pull/27811) set literal conversions | +| | [flutter/flutter#28852](https://github.com/flutter/flutter/pull/28852) Update macOS version in tests | +| | [flutter/flutter#28809](https://github.com/flutter/flutter/pull/28809) fix some formatting issues | +| | [flutter/flutter#28748](https://github.com/flutter/flutter/pull/28748) Revert "Remove the old HaTS implementation on API docs" | +| | [flutter/flutter#28658](https://github.com/flutter/flutter/pull/28658) Include git output into error message from channel command | +| | [flutter/flutter#28673](https://github.com/flutter/flutter/pull/28673) Add missing trailing commas | +| | [flutter/flutter#28555](https://github.com/flutter/flutter/pull/28555) disable dart2js test | +| | [flutter/flutter#28369](https://github.com/flutter/flutter/pull/28369) Add LICENSE test to presubmit checks | +| | [flutter/flutter#28480](https://github.com/flutter/flutter/pull/28480) increase timeout | +| | [flutter/flutter#28343](https://github.com/flutter/flutter/pull/28343) pass --skip-build-script-checks and remove module usage | +| | [flutter/flutter#28334](https://github.com/flutter/flutter/pull/28334) Remove unused --packages argument to gen_snapshot. | +| | [flutter/flutter#28482](https://github.com/flutter/flutter/pull/28482) Fuschia -> Fuchsia | +| | [flutter/flutter#28175](https://github.com/flutter/flutter/pull/28175) Only call Activity.reportFullyDrawn on Lollipop or above | +| | [flutter/flutter#28370](https://github.com/flutter/flutter/pull/28370) Removed trailing whitespace from the end of the CI config | +| | [flutter/flutter#28373](https://github.com/flutter/flutter/pull/28373) Mark non-flaky test as such | +| | [flutter/flutter#28125](https://github.com/flutter/flutter/pull/28125) [Gallery] Fortnightly demo moved from flutter/samples. | +| | [flutter/flutter#28400](https://github.com/flutter/flutter/pull/28400) update packages | +| | [flutter/flutter#28215](https://github.com/flutter/flutter/pull/28215) Minor UI tweaks to Cards demo based on internal feedback | +| | [flutter/flutter#28291](https://github.com/flutter/flutter/pull/28291) Reland #27754, now that bsdiff has moved to flutter/packages. | +| | [flutter/flutter#28171](https://github.com/flutter/flutter/pull/28171) deploy to .dev firebase projects. | +| | [flutter/flutter#28281](https://github.com/flutter/flutter/pull/28281) Reduce memory benchmark perf tests outer loop to 10. | +| | [flutter/flutter#27261](https://github.com/flutter/flutter/pull/27261) format parameter list | +| | [flutter/flutter#24889](https://github.com/flutter/flutter/pull/24889) Update AUTHORS | +| | [flutter/flutter#28238](https://github.com/flutter/flutter/pull/28238) Remove set literal syntax | +| | [flutter/flutter#28235](https://github.com/flutter/flutter/pull/28235) Remove line breaks from PR template | +| | [flutter/flutter#26376](https://github.com/flutter/flutter/pull/26376) removed image with 404 | +| | [flutter/flutter#28224](https://github.com/flutter/flutter/pull/28224) Adds a template for Pull Requests | +| | [flutter/flutter#28040](https://github.com/flutter/flutter/pull/28040) Remove json_schema and cli_util deps from flutter_tool | +| | [flutter/flutter#27305](https://github.com/flutter/flutter/pull/27305) Outline for survey implementation | +| | [flutter/flutter#28024](https://github.com/flutter/flutter/pull/28024) Disable prefer_collection_literals in the analyzer until we can update to using set literals | +| | [flutter/flutter#27793](https://github.com/flutter/flutter/pull/27793) Remove remaining "## Sample code" segments, and fix the snippet generator. | +| | [flutter/flutter#27929](https://github.com/flutter/flutter/pull/27929) Use double literals where a double type is expected | +| **team: flakes** | **1 issue with this label** | +| | [flutter/flutter#28480](https://github.com/flutter/flutter/pull/28480) increase timeout | +| **team: gallery** | **11 issues with this label** | +| | [flutter/flutter#30455](https://github.com/flutter/flutter/pull/30455) Prevent vertical scroll in shrine by ensuring card size fits the screen | +| | [flutter/flutter#30497](https://github.com/flutter/flutter/pull/30497) Add confirmDismiss example to flutter_gallery | +| | [flutter/flutter#25164](https://github.com/flutter/flutter/pull/25164) Pan and zoom gallery demo | +| | [flutter/flutter#27217](https://github.com/flutter/flutter/pull/27217) Fix Shrine overscroll glow indicator | +| | [flutter/flutter#30460](https://github.com/flutter/flutter/pull/30460) Fix gallery API doc URL launcher | +| | [flutter/flutter#29908](https://github.com/flutter/flutter/pull/29908) Update Twitter handle @flutterio -> @FlutterDev | +| | [flutter/flutter#29632](https://github.com/flutter/flutter/pull/29632) Enable platform views for Flutter Gallery on iOS. | +| | [flutter/flutter#25202](https://github.com/flutter/flutter/pull/25202) fix #19175 How should addTime be used from a test? | +| | [flutter/flutter#28175](https://github.com/flutter/flutter/pull/28175) Only call Activity.reportFullyDrawn on Lollipop or above | +| | [flutter/flutter#28125](https://github.com/flutter/flutter/pull/28125) [Gallery] Fortnightly demo moved from flutter/samples. | +| | [flutter/flutter#28215](https://github.com/flutter/flutter/pull/28215) Minor UI tweaks to Cards demo based on internal feedback | +| **tool** | **72 issues with this label** | +| | [flutter/flutter#30857](https://github.com/flutter/flutter/pull/30857) Added support for authentication codes for the VM service. | +| | [flutter/flutter#31283](https://github.com/flutter/flutter/pull/31283) Add desktop workflows to doctor | +| | [flutter/flutter#31229](https://github.com/flutter/flutter/pull/31229) Add flutter run support for linux and windows | +| | [flutter/flutter#31277](https://github.com/flutter/flutter/pull/31277) pass track widget creation flag through to build script | +| | [flutter/flutter#31171](https://github.com/flutter/flutter/pull/31171) Allow disabling all fingerprint caches via environment variable | +| | [flutter/flutter#31205](https://github.com/flutter/flutter/pull/31205) Add desktop projects and build commands (experimental) | +| | [flutter/flutter#31073](https://github.com/flutter/flutter/pull/31073) Fuchsia step 1: add SDK version file and artifact download | +| | [flutter/flutter#31064](https://github.com/flutter/flutter/pull/31064) Add sorting to flutter version command | +| | [flutter/flutter#31063](https://github.com/flutter/flutter/pull/31063) Download and handle product version of flutter patched sdk | +| | [flutter/flutter#31074](https://github.com/flutter/flutter/pull/31074) make flutterProject option of CoverageCollector optional | +| | [flutter/flutter#30818](https://github.com/flutter/flutter/pull/30818) New flag to `flutter drive` to skip installing fresh app on device | +| | [flutter/flutter#30811](https://github.com/flutter/flutter/pull/30811) Make coverage, like, really fast | +| | [flutter/flutter#14704](https://github.com/flutter/flutter/issues/14704) Unpack cached code on Android to the getCodeCacheDir() directory, rather than the user data directory | +| | [flutter/flutter#30867](https://github.com/flutter/flutter/pull/30867) Add toggle for debugProfileWidgetBuilds | +| | [flutter/flutter#30648](https://github.com/flutter/flutter/pull/30648) Allow downloading of desktop embedding artifacts | +| | [flutter/flutter#30235](https://github.com/flutter/flutter/pull/30235) Warn on uncomitted changes | +| | [flutter/flutter#30115](https://github.com/flutter/flutter/pull/30115) Forward missing pub commands | +| | [flutter/flutter#30578](https://github.com/flutter/flutter/pull/30578) Mark ios-deploy version 2.0.0 as bad | +| | [flutter/flutter#30458](https://github.com/flutter/flutter/pull/30458) [fuchsia] Fix isolate filter | +| | [flutter/flutter#30201](https://github.com/flutter/flutter/pull/30201) update sample code analyzer regexp & test case | +| | [flutter/flutter#30218](https://github.com/flutter/flutter/pull/30218) [fuchsia_tester] Plumb through the location of icudtl | +| | [flutter/flutter#30075](https://github.com/flutter/flutter/pull/30075) Ensure that flutter run/drive/test/update_packages only downloads required artifacts | +| | [flutter/flutter#30071](https://github.com/flutter/flutter/pull/30071) Move spinner `_defaultSlowWarning` message to a new line | +| | [flutter/flutter#29938](https://github.com/flutter/flutter/pull/29938) Pass FLUTTER_TOOL_ARGS to snapshot command. | +| | [flutter/flutter#29768](https://github.com/flutter/flutter/pull/29768) Directly depend on frontend_server tool in fuchsia_attach | +| | [flutter/flutter#29783](https://github.com/flutter/flutter/pull/29783) Fix cache location, artifacts, and re-enable dart2js test | +| | [flutter/flutter#29818](https://github.com/flutter/flutter/pull/29818) dont fail build if codegen fails | +| | [flutter/flutter#29192](https://github.com/flutter/flutter/pull/29192) Update upgrade to rebase and stash local changes. | +| | [flutter/flutter#29764](https://github.com/flutter/flutter/pull/29764) update fuchsia-attach to configure dev_finder location | +| | [flutter/flutter#29721](https://github.com/flutter/flutter/pull/29721) Use Dart version in script cache check | +| | [flutter/flutter#29399](https://github.com/flutter/flutter/pull/29399) Enable code generation features in tool (via opt-in) | +| | [flutter/flutter#29699](https://github.com/flutter/flutter/pull/29699) Fix more tests for ANSI terminals | +| | [flutter/flutter#29469](https://github.com/flutter/flutter/pull/29469) fix asset reloading | +| | [flutter/flutter#29693](https://github.com/flutter/flutter/pull/29693) Use source list from the compiler to track invalidated files for hot reload. | +| | [flutter/flutter#29434](https://github.com/flutter/flutter/pull/29434) Add builders and engine hash to fingerprint | +| | [flutter/flutter#29625](https://github.com/flutter/flutter/pull/29625) Fix typo in flutter_tools | +| | [flutter/flutter#29604](https://github.com/flutter/flutter/pull/29604) added friendlier error for invalid AndroidManifest.xml | +| | [flutter/flutter#29461](https://github.com/flutter/flutter/pull/29461) Remove explicit frame schedule | +| | [flutter/flutter#29048](https://github.com/flutter/flutter/pull/29048) Use async execution for xcodebuild commands | +| | [flutter/flutter#29528](https://github.com/flutter/flutter/pull/29528) Ensure that assumed formatting of properties file is correct | +| | [flutter/flutter#27749](https://github.com/flutter/flutter/pull/27749) Switch flutter_tools from script to app-jit snapshot. | +| | [flutter/flutter#28152](https://github.com/flutter/flutter/pull/28152) Improve hot reload performance | +| | [flutter/flutter#29258](https://github.com/flutter/flutter/pull/29258) Add dump-shader-skp flag to flutter tools | +| | [flutter/flutter#29134](https://github.com/flutter/flutter/pull/29134) Properly escape Android SDK Manager path in error message | +| | [flutter/flutter#29171](https://github.com/flutter/flutter/pull/29171) Only run codegen at start of flutter_test | +| | [flutter/flutter#28938](https://github.com/flutter/flutter/pull/28938) Add a `flutter create --list-samples` command | +| | [flutter/flutter#29126](https://github.com/flutter/flutter/pull/29126) Cause `flutter analyze` to fail if the analysis server experienced an error. | +| | [flutter/flutter#29062](https://github.com/flutter/flutter/pull/29062) fix windows codegen | +| | [flutter/flutter#28603](https://github.com/flutter/flutter/pull/28603) select ResidentCompiler during FlutterDevice initialization | +| | [flutter/flutter#28863](https://github.com/flutter/flutter/pull/28863) Fall-back to platform tools in Android SDK detection logic. | +| | [flutter/flutter#28658](https://github.com/flutter/flutter/pull/28658) Include git output into error message from channel command | +| | [flutter/flutter#28356](https://github.com/flutter/flutter/pull/28356) Log pub return code on failure on Windows | +| | [flutter/flutter#28386](https://github.com/flutter/flutter/pull/28386) remove personal repo and replace with trivial example for smoke test | +| | [flutter/flutter#28477](https://github.com/flutter/flutter/pull/28477) Fix backspace and clear length in AnsiStatus | +| | [flutter/flutter#28302](https://github.com/flutter/flutter/pull/28302) Add basic web device and run support | +| | [flutter/flutter#28168](https://github.com/flutter/flutter/pull/28168) [flutter_tool,fuchsia_tester] Only require a test source dir for coverage | +| | [flutter/flutter#28334](https://github.com/flutter/flutter/pull/28334) Remove unused --packages argument to gen_snapshot. | +| | [flutter/flutter#27944](https://github.com/flutter/flutter/pull/27944) Add tests | +| | [flutter/flutter#28097](https://github.com/flutter/flutter/pull/28097) Allow for gradle downloading missing SDK assets | +| | [flutter/flutter#28355](https://github.com/flutter/flutter/pull/28355) Reland "Allow for gradle downloading missing SDK assets" (#28097) | +| | [flutter/flutter#28352](https://github.com/flutter/flutter/pull/28352) only perform multi-root mapping if there are multiple roots | +| | [flutter/flutter#28101](https://github.com/flutter/flutter/pull/28101) Remove unused --packages argument to gen_snapshot. | +| | [flutter/flutter#28027](https://github.com/flutter/flutter/pull/28027) Remove extra slash from builder that is not handled on windows | +| | [flutter/flutter#28040](https://github.com/flutter/flutter/pull/28040) Remove json_schema and cli_util deps from flutter_tool | +| | [flutter/flutter#27754](https://github.com/flutter/flutter/pull/27754) Add support for binary compression of dynamic patches by the flutter tool. | +| | [flutter/flutter#28031](https://github.com/flutter/flutter/pull/28031) Revert "Add support for binary compression of dynamic patches by the flutter tool. (#27754)" | +| | [flutter/flutter#27908](https://github.com/flutter/flutter/pull/27908) Reland automatic discovery of observatory port for iOS | +| | [flutter/flutter#27709](https://github.com/flutter/flutter/pull/27709) Increase our build budget to 16ms | +| | [flutter/flutter#27765](https://github.com/flutter/flutter/pull/27765) Refactor local engine logic | +| | [flutter/flutter#28011](https://github.com/flutter/flutter/pull/28011) Remove accidentally committed libs | +| | [flutter/flutter#27987](https://github.com/flutter/flutter/pull/27987) add ui.Window fallback to TestViewConfiguration | +| | [flutter/flutter#27668](https://github.com/flutter/flutter/pull/27668) Wire dart2js through flutter tool, add compilation test | +| **type-bug** | **1 issue with this label** | +| | [dart-lang/sdk#35940](https://github.com/dart-lang/sdk/issues/35940) Dartanalyzer: Missing line/column information, Unexpected error for int-to-double cast | +| **waiting for PR to land (fixed)** | **1 issue with this label** | +| | [flutter/flutter#7999](https://github.com/flutter/flutter/issues/7999) Consider renaming the Design Principles guide | +| **waiting for tree to go green** | **37 issues with this label** | +| | [flutter/flutter#30898](https://github.com/flutter/flutter/pull/30898) Check that ErrorWidget.builder is not modified after test | +| | [flutter/flutter#30985](https://github.com/flutter/flutter/pull/30985) Add rrect contains microbenchmark | +| | [flutter/flutter#30455](https://github.com/flutter/flutter/pull/30455) Prevent vertical scroll in shrine by ensuring card size fits the screen | +| | [flutter/flutter#30305](https://github.com/flutter/flutter/pull/30305) shorter nullable list duplications | +| | [flutter/flutter#30535](https://github.com/flutter/flutter/pull/30535) Correctly synthesise event buttons | +| | [flutter/flutter#29998](https://github.com/flutter/flutter/pull/29998) Fix edge cases of PointerEventConverter | +| | [flutter/flutter#30398](https://github.com/flutter/flutter/pull/30398) Embedding new raised button diagram. | +| | [flutter/flutter#30453](https://github.com/flutter/flutter/pull/30453) Updating sample code for BottomNavigationBar class for diagram. | +| | [flutter/flutter#30276](https://github.com/flutter/flutter/pull/30276) Random trivial fixes in the animation packages | +| | [flutter/flutter#30463](https://github.com/flutter/flutter/pull/30463) Revert "Error message for setting shaderWarmUp too late (#30145)" | +| | [flutter/flutter#28001](https://github.com/flutter/flutter/pull/28001) CupertinoTextField: added ability to change placeholder color | +| | [flutter/flutter#28597](https://github.com/flutter/flutter/pull/28597) Adjust remaining Cupertino route animations to match native | +| | [flutter/flutter#29134](https://github.com/flutter/flutter/pull/29134) Properly escape Android SDK Manager path in error message | +| | [flutter/flutter#28470](https://github.com/flutter/flutter/pull/28470) Throw assertion error when a Hero has a Hero child. | +| | [flutter/flutter#29245](https://github.com/flutter/flutter/pull/29245) Fix DartDoc for UniqueKey | +| | [flutter/flutter#29229](https://github.com/flutter/flutter/pull/29229) Install JDK and Android SDK only for integration tests | +| | [flutter/flutter#29054](https://github.com/flutter/flutter/pull/29054) Deprecate profile() | +| | [flutter/flutter#28900](https://github.com/flutter/flutter/pull/28900) Add key support to cupertino button | +| | [flutter/flutter#28970](https://github.com/flutter/flutter/pull/28970) Fix coverage shard and print summary after test run | +| | [flutter/flutter#28863](https://github.com/flutter/flutter/pull/28863) Fall-back to platform tools in Android SDK detection logic. | +| | [flutter/flutter#25202](https://github.com/flutter/flutter/pull/25202) fix #19175 How should addTime be used from a test? | +| | [flutter/flutter#28944](https://github.com/flutter/flutter/pull/28944) fix missing variable name | +| | [flutter/flutter#28297](https://github.com/flutter/flutter/pull/28297) Test reporter | +| | [flutter/flutter#28675](https://github.com/flutter/flutter/pull/28675) Update docs for ancestorWidgetOfExactType | +| | [flutter/flutter#28355](https://github.com/flutter/flutter/pull/28355) Reland "Allow for gradle downloading missing SDK assets" (#28097) | +| | [flutter/flutter#27712](https://github.com/flutter/flutter/pull/27712) add2app test | +| | [flutter/flutter#27898](https://github.com/flutter/flutter/pull/27898) Add slight clarification to debugDeterministicCursor | +| | [flutter/flutter#26659](https://github.com/flutter/flutter/pull/26659) Adds fix for NAN value and pressure values outside of device reported min and max | +| | [flutter/flutter#27803](https://github.com/flutter/flutter/pull/27803) Added sample code to AnimatedWidget | +| | [flutter/flutter#27945](https://github.com/flutter/flutter/pull/27945) Fixes crossAxisSpacing overflow in RTL | +| | [flutter/flutter#27433](https://github.com/flutter/flutter/pull/27433) Fix issue where SliverPersistentHeader that is both floating and pinned would scroll down when scrolling past the beginning of the ScrollView | +| | [flutter/flutter#28224](https://github.com/flutter/flutter/pull/28224) Adds a template for Pull Requests | +| | [flutter/flutter#28182](https://github.com/flutter/flutter/pull/28182) Add TextOverflow.visible | +| | [flutter/flutter#28040](https://github.com/flutter/flutter/pull/28040) Remove json_schema and cli_util deps from flutter_tool | +| | [flutter/flutter#27953](https://github.com/flutter/flutter/pull/27953) Add outer try block for obtainKey errors. Add docs. | +| | [flutter/flutter#27908](https://github.com/flutter/flutter/pull/27908) Reland automatic discovery of observatory port for iOS | +| | [flutter/engine#8074](https://github.com/flutter/engine/pull/8074) Add script to help generate PR messages | +| **⌘‬ platform-mac** | **2 issues with this label** | +| | [flutter/flutter#31218](https://github.com/flutter/flutter/pull/31218) Add run capability for macOS target | +| | [flutter/flutter#27908](https://github.com/flutter/flutter/pull/27908) Reland automatic discovery of observatory port for iOS | +| **⌺‬ platform-ios** | **4 issues with this label** | +| | [flutter/flutter#30475](https://github.com/flutter/flutter/pull/30475) Trackpad mode crash fix | +| | [flutter/flutter#8094](https://github.com/flutter/flutter/issues/8094) Flutter doesn't find xcode 8.2 | +| | [flutter/flutter#27908](https://github.com/flutter/flutter/pull/27908) Reland automatic discovery of observatory port for iOS | +| | [flutter/flutter#27765](https://github.com/flutter/flutter/pull/27765) Refactor local engine logic | +| **▣ platform-android** | **5 issues with this label** | +| | [flutter/flutter#14704](https://github.com/flutter/flutter/issues/14704) Unpack cached code on Android to the getCodeCacheDir() directory, rather than the user data directory | +| | [flutter/flutter#29604](https://github.com/flutter/flutter/pull/29604) added friendlier error for invalid AndroidManifest.xml | +| | [flutter/flutter#28651](https://github.com/flutter/flutter/issues/28651) Cannot execute operation because FlutterJNI is not attached to native. | +| | [flutter/flutter#28355](https://github.com/flutter/flutter/pull/28355) Reland "Allow for gradle downloading missing SDK assets" (#28097) | +| | [flutter/flutter#28031](https://github.com/flutter/flutter/pull/28031) Revert "Add support for binary compression of dynamic patches by the flutter tool. (#27754)" | +| **○ platform-fuchsia** | **1 issue with this label** | +| | [flutter/flutter#28168](https://github.com/flutter/flutter/pull/28168) [flutter_tool,fuchsia_tester] Only require a test source dir for coverage | +| **⚠ TODAY** | **2 issues with this label** | +| | [flutter/flutter#8150](https://github.com/flutter/flutter/issues/8150) complex_layout_srcroll_perf__memory diff_total_kb regression | +| | [flutter/flutter#28438](https://github.com/flutter/flutter/issues/28438) PC keyboard not works on text fields in emulator when on master branch. | +| **❖ platform-windows** | **1 issue with this label** | +| | [flutter/flutter#28356](https://github.com/flutter/flutter/pull/28356) Log pub return code on failure on Windows | +## Labels Addressed Sorted by Issue + +| Label | Number of Issues | +|--------|--------| +| **framework** | **144 issues with this label** | +| | [flutter/flutter#31088](https://github.com/flutter/flutter/pull/31088) Text field scroll physics | +| | [flutter/flutter#29390](https://github.com/flutter/flutter/pull/29390) Make expansion panel optionally toggle its state by tapping its header. | +| | [flutter/flutter#30422](https://github.com/flutter/flutter/pull/30422) Commit a navigator.pop as soon as the back swipe is lifted | +| | [flutter/flutter#30946](https://github.com/flutter/flutter/pull/30946) Add some more cupertino icons | +| | [flutter/flutter#31159](https://github.com/flutter/flutter/pull/31159) Revert "Use full height of the glyph for caret height on Android" | +| | [flutter/flutter#30938](https://github.com/flutter/flutter/pull/30938) Update keycodes, fix a comment. | +| | [flutter/flutter#30898](https://github.com/flutter/flutter/pull/30898) Check that ErrorWidget.builder is not modified after test | +| | [flutter/flutter#30809](https://github.com/flutter/flutter/pull/30809) Fix issue 23527: Exception: RenderViewport exceeded its maximum numb… | +| | [flutter/flutter#30746](https://github.com/flutter/flutter/pull/30746) Baseline Aligned Row | +| | [flutter/flutter#30880](https://github.com/flutter/flutter/pull/30880) Let `sliver.dart` `_createErrorWidget` work with other Widgets | +| | [flutter/flutter#30862](https://github.com/flutter/flutter/pull/30862) CupertinoDatePicker initialDateTime accounts for minuteInterval | +| | [flutter/flutter#30876](https://github.com/flutter/flutter/pull/30876) Simplify toImage future handling | +| | [flutter/flutter#30470](https://github.com/flutter/flutter/pull/30470) Fixed Table flex column layout error #30437 | +| | [flutter/flutter#30667](https://github.com/flutter/flutter/pull/30667) Fix additional @mustCallSuper indirect overrides and mixins | +| | [flutter/flutter#30643](https://github.com/flutter/flutter/pull/30643) Add Form.onSaved | +| | [flutter/flutter#30793](https://github.com/flutter/flutter/pull/30793) Revert "Add Form.onSaved" | +| | [flutter/flutter#30414](https://github.com/flutter/flutter/pull/30414) Remove pressure customization from some pointer events | +| | [flutter/flutter#30525](https://github.com/flutter/flutter/pull/30525) Fix cursor outside of input width | +| | [flutter/flutter#29822](https://github.com/flutter/flutter/pull/29822) Cupertino localization step 7: modularize material specific things out of gen_localizations.dart | +| | [flutter/flutter#30814](https://github.com/flutter/flutter/pull/30814) Fix StatefulWidget and StatelessWidget Sample Documentation | +| | [flutter/flutter#30527](https://github.com/flutter/flutter/pull/30527) Cupertino localization step 11: add more translation clarifications in the instructions | +| | [flutter/flutter#30805](https://github.com/flutter/flutter/pull/30805) Update ExpansionPanelList Samples with Scaffold Template | +| | [flutter/flutter#30537](https://github.com/flutter/flutter/pull/30537) Embedded images and added variations to ListTile sample code | +| | [flutter/flutter#30760](https://github.com/flutter/flutter/pull/30760) fix cast NPE in invokeListMethod and invokeMapMethod | +| | [flutter/flutter#30455](https://github.com/flutter/flutter/pull/30455) Prevent vertical scroll in shrine by ensuring card size fits the screen | +| | [flutter/flutter#30640](https://github.com/flutter/flutter/pull/30640) Add `const Border.uniformSide()` | +| | [flutter/flutter#30644](https://github.com/flutter/flutter/pull/30644) Make FormField._validate() return void | +| | [flutter/flutter#30645](https://github.com/flutter/flutter/pull/30645) Add docs to FormFieldValidator | +| | [flutter/flutter#30626](https://github.com/flutter/flutter/pull/30626) Add sample for ValueListenable | +| | [flutter/flutter#30563](https://github.com/flutter/flutter/pull/30563) Fixed a typo in the Expanded API doc | +| | [flutter/flutter#30513](https://github.com/flutter/flutter/pull/30513) Fix issue 21640: Assertion Error : '_listenerAttached': is not true | +| | [flutter/flutter#30305](https://github.com/flutter/flutter/pull/30305) shorter nullable list duplications | +| | [flutter/flutter#30475](https://github.com/flutter/flutter/pull/30475) Trackpad mode crash fix | +| | [flutter/flutter#29708](https://github.com/flutter/flutter/pull/29708) Cupertino localization step 5: add french arb as translated example | +| | [flutter/flutter#29413](https://github.com/flutter/flutter/pull/29413) Fix MaterialApp's _navigatorObserver when only builder used | +| | [flutter/flutter#29998](https://github.com/flutter/flutter/pull/29998) Fix edge cases of PointerEventConverter | +| | [flutter/flutter#30343](https://github.com/flutter/flutter/pull/30343) ExpansionPanelList and ExpansionPanelList.radio documentation | +| | [flutter/flutter#27217](https://github.com/flutter/flutter/pull/27217) Fix Shrine overscroll glow indicator | +| | [flutter/flutter#30275](https://github.com/flutter/flutter/pull/30275) Implement compute for async function (#16265) | +| | [flutter/flutter#30398](https://github.com/flutter/flutter/pull/30398) Embedding new raised button diagram. | +| | [flutter/flutter#30453](https://github.com/flutter/flutter/pull/30453) Updating sample code for BottomNavigationBar class for diagram. | +| | [flutter/flutter#30276](https://github.com/flutter/flutter/pull/30276) Random trivial fixes in the animation packages | +| | [flutter/flutter#30463](https://github.com/flutter/flutter/pull/30463) Revert "Error message for setting shaderWarmUp too late (#30145)" | +| | [flutter/flutter#30452](https://github.com/flutter/flutter/pull/30452) Moar Videos | +| | [flutter/flutter#30451](https://github.com/flutter/flutter/pull/30451) Bump dartdocs to 0.28.3 | +| | [flutter/flutter#30058](https://github.com/flutter/flutter/pull/30058) Draggable Scrollable sheet | +| | [flutter/flutter#30353](https://github.com/flutter/flutter/pull/30353) Fix minor typo | +| | [flutter/flutter#30348](https://github.com/flutter/flutter/pull/30348) RaisedButton Sample Code Update for Diagrams | +| | [flutter/flutter#30304](https://github.com/flutter/flutter/pull/30304) no need .toList() before .join() | +| | [flutter/flutter#30212](https://github.com/flutter/flutter/pull/30212) Added assert to prevent complete ListTile trailing/leading horizontal expansion | +| | [flutter/flutter#30227](https://github.com/flutter/flutter/pull/30227) Simplify logic of TapGestureRecognizer | +| | [flutter/flutter#30123](https://github.com/flutter/flutter/pull/30123) Fix OutlineInputBorder crash | +| | [flutter/flutter#30219](https://github.com/flutter/flutter/pull/30219) Added helpful Material assert message | +| | [flutter/flutter#29771](https://github.com/flutter/flutter/pull/29771) Set Max Height for ListTile trailing and leading widgets | +| | [flutter/flutter#29993](https://github.com/flutter/flutter/pull/29993) Adds the keyboard mapping for Linux | +| | [flutter/flutter#29860](https://github.com/flutter/flutter/pull/29860) Move binarySearch to foundation. | +| | [flutter/flutter#30048](https://github.com/flutter/flutter/pull/30048) Document that Hero needs to be present on destination page's zero frame | +| | [flutter/flutter#28001](https://github.com/flutter/flutter/pull/28001) CupertinoTextField: added ability to change placeholder color | +| | [flutter/flutter#29821](https://github.com/flutter/flutter/pull/29821) Cupertino localization step 1.5: fix a resource mismatch in cupertino_en.arb | +| | [flutter/flutter#29697](https://github.com/flutter/flutter/pull/29697) Embedding new diagrams for API Docs | +| | [flutter/flutter#29987](https://github.com/flutter/flutter/pull/29987) update CupertinoSwitch documentation | +| | [flutter/flutter#29811](https://github.com/flutter/flutter/pull/29811) TextField Validator Height Docs | +| | [flutter/flutter#29943](https://github.com/flutter/flutter/pull/29943) Remove unwanted gap between navigation bar and safe area's child | +| | [flutter/flutter#22859](https://github.com/flutter/flutter/issues/22859) Provide links between dart:ui classes and their corresponding classes in higher layers | +| | [flutter/flutter#29929](https://github.com/flutter/flutter/pull/29929) Remove tranparent paint hack from BackdropFilter | +| | [flutter/flutter#29630](https://github.com/flutter/flutter/pull/29630) Add heart shapes to CupertinoIcons | +| | [flutter/flutter#29563](https://github.com/flutter/flutter/pull/29563) Avoid flickering while dragging to select text | +| | [flutter/flutter#29701](https://github.com/flutter/flutter/pull/29701) Reland composite physical layers for all platforms | +| | [flutter/flutter#28735](https://github.com/flutter/flutter/pull/28735) [Material] Create a FloatingActionButton ThemeData and honor it within the FloatingActionButton | +| | [flutter/flutter#29532](https://github.com/flutter/flutter/pull/29532) Reland composite physical layers on all platforms | +| | [flutter/flutter#29623](https://github.com/flutter/flutter/pull/29623) Revert "Reland composite physical layers on all platforms" | +| | [flutter/flutter#29564](https://github.com/flutter/flutter/pull/29564) Update progress indicator API docs | +| | [flutter/flutter#29566](https://github.com/flutter/flutter/pull/29566) Manually roll engine to 5088735e5f | +| | [flutter/flutter#29463](https://github.com/flutter/flutter/pull/29463) Make real JSON in arb | +| | [flutter/flutter#29231](https://github.com/flutter/flutter/pull/29231) Adds macOS raw keyboard mapping | +| | [flutter/flutter#29445](https://github.com/flutter/flutter/pull/29445) Add doc about MediaQuery to Chip | +| | [flutter/flutter#13637](https://github.com/flutter/flutter/issues/13637) Add images and examples to Align | +| | [flutter/flutter#29442](https://github.com/flutter/flutter/pull/29442) Align Snippet for API Docs | +| | [flutter/flutter#29395](https://github.com/flutter/flutter/pull/29395) Fix text selection when user is dragging in the opposite direction | +| | [flutter/flutter#28470](https://github.com/flutter/flutter/pull/28470) Throw assertion error when a Hero has a Hero child. | +| | [flutter/flutter#29183](https://github.com/flutter/flutter/pull/29183) Implement labelPadding configuration in TabBarTheme | +| | [flutter/flutter#29329](https://github.com/flutter/flutter/pull/29329) Error message when TextSelectionOverlay finds no Overlay | +| | [flutter/flutter#28919](https://github.com/flutter/flutter/pull/28919) Always composite PhysicalModels | +| | [flutter/flutter#28751](https://github.com/flutter/flutter/pull/28751) Expose decorationThickness in TextStyle. Roll engine (12 commits) | +| | [flutter/flutter#29245](https://github.com/flutter/flutter/pull/29245) Fix DartDoc for UniqueKey | +| | [flutter/flutter#29165](https://github.com/flutter/flutter/pull/29165) Docs edit for Tab Label Color | +| | [flutter/flutter#29179](https://github.com/flutter/flutter/pull/29179) No image shader caching in default shader warm-up | +| | [flutter/flutter#29175](https://github.com/flutter/flutter/pull/29175) Ensure that animated pairs of Tabs TextStyles have matching inherited values | +| | [flutter/flutter#29069](https://github.com/flutter/flutter/pull/29069) Heroes and nested Navigators | +| | [flutter/flutter#28953](https://github.com/flutter/flutter/pull/28953) Include platformViewId in semantics tree | +| | [flutter/flutter#29054](https://github.com/flutter/flutter/pull/29054) Deprecate profile() | +| | [flutter/flutter#29053](https://github.com/flutter/flutter/pull/29053) Update to Container Sample Code in API Docs | +| | [flutter/flutter#27971](https://github.com/flutter/flutter/pull/27971) Run non-perf sensitive tests on Cirrus | +| | [flutter/flutter#27205](https://github.com/flutter/flutter/pull/27205) Fix TextField height issues | +| | [flutter/flutter#29051](https://github.com/flutter/flutter/pull/29051) fix block formatting | +| | [flutter/flutter#28900](https://github.com/flutter/flutter/pull/28900) Add key support to cupertino button | +| | [flutter/flutter#28169](https://github.com/flutter/flutter/pull/28169) Add/rewrite tests for FocusScope. | +| | [flutter/flutter#28857](https://github.com/flutter/flutter/pull/28857) Form Snippet for API Docs | +| | [flutter/flutter#21136](https://github.com/flutter/flutter/issues/21136) Request sample code for popular API docs | +| | [flutter/flutter#28951](https://github.com/flutter/flutter/pull/28951) Quick fix for shader warm up | +| | [flutter/flutter#28749](https://github.com/flutter/flutter/pull/28749) Add minimum time gap requirement to double tap | +| | [flutter/flutter#28855](https://github.com/flutter/flutter/pull/28855) Move material iOS back swipe test to material | +| | [flutter/flutter#25202](https://github.com/flutter/flutter/pull/25202) fix #19175 How should addTime be used from a test? | +| | [flutter/flutter#28944](https://github.com/flutter/flutter/pull/28944) fix missing variable name | +| | [flutter/flutter#27811](https://github.com/flutter/flutter/pull/27811) set literal conversions | +| | [flutter/flutter#28675](https://github.com/flutter/flutter/pull/28675) Update docs for ancestorWidgetOfExactType | +| | [flutter/flutter#28809](https://github.com/flutter/flutter/pull/28809) fix some formatting issues | +| | [flutter/flutter#28666](https://github.com/flutter/flutter/pull/28666) Make RenderUiKitView reject absorbed touch events | +| | [flutter/flutter#28752](https://github.com/flutter/flutter/pull/28752) FAB Snippet for API Docs | +| | [flutter/flutter#28661](https://github.com/flutter/flutter/pull/28661) Use a simpler implementation of Diagnosticable.toString when running in profile/release mode | +| | [flutter/flutter#28736](https://github.com/flutter/flutter/pull/28736) Avoid the overhead of instantiating a generator in paintImage | +| | [flutter/flutter#28638](https://github.com/flutter/flutter/pull/28638) Fix the test annotation used for test groups | +| | [flutter/flutter#28290](https://github.com/flutter/flutter/pull/28290) Text selection via mouse | +| | [flutter/flutter#28709](https://github.com/flutter/flutter/pull/28709) improve error messages on Text constructors | +| | [flutter/flutter#27751](https://github.com/flutter/flutter/pull/27751) Add Sample code for FlatButton #21136 | +| | [flutter/flutter#28546](https://github.com/flutter/flutter/pull/28546) Call onTapCancel when down pointer gets cancelled | +| | [flutter/flutter#28537](https://github.com/flutter/flutter/pull/28537) Reland "Shader warm up (#27660)" | +| | [flutter/flutter#28013](https://github.com/flutter/flutter/pull/28013) [Material] Unit test for skipping Slider tick mark due to overdensity | +| | [flutter/flutter#28438](https://github.com/flutter/flutter/issues/28438) PC keyboard not works on text fields in emulator when on master branch. | +| | [flutter/flutter#21834](https://github.com/flutter/flutter/pull/21834) Add shapeBorder option on App Bar | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#27904](https://github.com/flutter/flutter/pull/27904) Convert PointerEvent's toString to Diagnosticable | +| | [flutter/flutter#28371](https://github.com/flutter/flutter/pull/28371) Ensure that the DropdownButton menu respects its parents bounds | +| | [flutter/flutter#28214](https://github.com/flutter/flutter/pull/28214) [Material] Add the ability to theme trailing app bar actions independently from leading | +| | [flutter/flutter#28245](https://github.com/flutter/flutter/pull/28245) [Typo] Update 'use' to 'user' | +| | [flutter/flutter#28017](https://github.com/flutter/flutter/pull/28017) Add more docs to BackdropFilter | +| | [flutter/flutter#28398](https://github.com/flutter/flutter/pull/28398) fix red build for analysis | +| | [flutter/flutter#28163](https://github.com/flutter/flutter/pull/28163) [Material] Add ability to set shadow color and selected shadow color for chips and for chip themes | +| | [flutter/flutter#27711](https://github.com/flutter/flutter/pull/27711) Make extended FAB's icon optional | +| | [flutter/flutter#27898](https://github.com/flutter/flutter/pull/27898) Add slight clarification to debugDeterministicCursor | +| | [flutter/flutter#28159](https://github.com/flutter/flutter/pull/28159) [Material] Expand BottomNavigationBar API (reprise) | +| | [flutter/flutter#28172](https://github.com/flutter/flutter/pull/28172) Add backgroundColor argument to TextStyle for convenience | +| | [flutter/flutter#26659](https://github.com/flutter/flutter/pull/26659) Adds fix for NAN value and pressure values outside of device reported min and max | +| | [flutter/flutter#27803](https://github.com/flutter/flutter/pull/27803) Added sample code to AnimatedWidget | +| | [flutter/flutter#27945](https://github.com/flutter/flutter/pull/27945) Fixes crossAxisSpacing overflow in RTL | +| | [flutter/flutter#27433](https://github.com/flutter/flutter/pull/27433) Fix issue where SliverPersistentHeader that is both floating and pinned would scroll down when scrolling past the beginning of the ScrollView | +| | [flutter/flutter#28182](https://github.com/flutter/flutter/pull/28182) Add TextOverflow.visible | +| | [flutter/flutter#28032](https://github.com/flutter/flutter/pull/28032) Revert 26001 | +| | [flutter/flutter#27953](https://github.com/flutter/flutter/pull/27953) Add outer try block for obtainKey errors. Add docs. | +| | [flutter/flutter#28216](https://github.com/flutter/flutter/pull/28216) Fix 'to to' | +| | [flutter/flutter#7738](https://github.com/flutter/flutter/issues/7738) Allow for more flexible unselected label color parameter in TabBar | +| | [flutter/flutter#27973](https://github.com/flutter/flutter/pull/27973) Add extendBody parameter to Scaffold, body MediaQuery reflects BAB height | +| | [flutter/flutter#28006](https://github.com/flutter/flutter/pull/28006) Re-apply "Ensure all curves return 0 and 1 in .transform(t) when t=0/1" | +| | [flutter/flutter#27929](https://github.com/flutter/flutter/pull/27929) Use double literals where a double type is expected | +| **tool** | **72 issues with this label** | +| | [flutter/flutter#30857](https://github.com/flutter/flutter/pull/30857) Added support for authentication codes for the VM service. | +| | [flutter/flutter#31283](https://github.com/flutter/flutter/pull/31283) Add desktop workflows to doctor | +| | [flutter/flutter#31229](https://github.com/flutter/flutter/pull/31229) Add flutter run support for linux and windows | +| | [flutter/flutter#31277](https://github.com/flutter/flutter/pull/31277) pass track widget creation flag through to build script | +| | [flutter/flutter#31171](https://github.com/flutter/flutter/pull/31171) Allow disabling all fingerprint caches via environment variable | +| | [flutter/flutter#31205](https://github.com/flutter/flutter/pull/31205) Add desktop projects and build commands (experimental) | +| | [flutter/flutter#31073](https://github.com/flutter/flutter/pull/31073) Fuchsia step 1: add SDK version file and artifact download | +| | [flutter/flutter#31064](https://github.com/flutter/flutter/pull/31064) Add sorting to flutter version command | +| | [flutter/flutter#31063](https://github.com/flutter/flutter/pull/31063) Download and handle product version of flutter patched sdk | +| | [flutter/flutter#31074](https://github.com/flutter/flutter/pull/31074) make flutterProject option of CoverageCollector optional | +| | [flutter/flutter#30818](https://github.com/flutter/flutter/pull/30818) New flag to `flutter drive` to skip installing fresh app on device | +| | [flutter/flutter#30811](https://github.com/flutter/flutter/pull/30811) Make coverage, like, really fast | +| | [flutter/flutter#14704](https://github.com/flutter/flutter/issues/14704) Unpack cached code on Android to the getCodeCacheDir() directory, rather than the user data directory | +| | [flutter/flutter#30867](https://github.com/flutter/flutter/pull/30867) Add toggle for debugProfileWidgetBuilds | +| | [flutter/flutter#30648](https://github.com/flutter/flutter/pull/30648) Allow downloading of desktop embedding artifacts | +| | [flutter/flutter#30235](https://github.com/flutter/flutter/pull/30235) Warn on uncomitted changes | +| | [flutter/flutter#30115](https://github.com/flutter/flutter/pull/30115) Forward missing pub commands | +| | [flutter/flutter#30578](https://github.com/flutter/flutter/pull/30578) Mark ios-deploy version 2.0.0 as bad | +| | [flutter/flutter#30458](https://github.com/flutter/flutter/pull/30458) [fuchsia] Fix isolate filter | +| | [flutter/flutter#30201](https://github.com/flutter/flutter/pull/30201) update sample code analyzer regexp & test case | +| | [flutter/flutter#30218](https://github.com/flutter/flutter/pull/30218) [fuchsia_tester] Plumb through the location of icudtl | +| | [flutter/flutter#30075](https://github.com/flutter/flutter/pull/30075) Ensure that flutter run/drive/test/update_packages only downloads required artifacts | +| | [flutter/flutter#30071](https://github.com/flutter/flutter/pull/30071) Move spinner `_defaultSlowWarning` message to a new line | +| | [flutter/flutter#29938](https://github.com/flutter/flutter/pull/29938) Pass FLUTTER_TOOL_ARGS to snapshot command. | +| | [flutter/flutter#29768](https://github.com/flutter/flutter/pull/29768) Directly depend on frontend_server tool in fuchsia_attach | +| | [flutter/flutter#29783](https://github.com/flutter/flutter/pull/29783) Fix cache location, artifacts, and re-enable dart2js test | +| | [flutter/flutter#29818](https://github.com/flutter/flutter/pull/29818) dont fail build if codegen fails | +| | [flutter/flutter#29192](https://github.com/flutter/flutter/pull/29192) Update upgrade to rebase and stash local changes. | +| | [flutter/flutter#29764](https://github.com/flutter/flutter/pull/29764) update fuchsia-attach to configure dev_finder location | +| | [flutter/flutter#29721](https://github.com/flutter/flutter/pull/29721) Use Dart version in script cache check | +| | [flutter/flutter#29399](https://github.com/flutter/flutter/pull/29399) Enable code generation features in tool (via opt-in) | +| | [flutter/flutter#29699](https://github.com/flutter/flutter/pull/29699) Fix more tests for ANSI terminals | +| | [flutter/flutter#29469](https://github.com/flutter/flutter/pull/29469) fix asset reloading | +| | [flutter/flutter#29693](https://github.com/flutter/flutter/pull/29693) Use source list from the compiler to track invalidated files for hot reload. | +| | [flutter/flutter#29434](https://github.com/flutter/flutter/pull/29434) Add builders and engine hash to fingerprint | +| | [flutter/flutter#29625](https://github.com/flutter/flutter/pull/29625) Fix typo in flutter_tools | +| | [flutter/flutter#29604](https://github.com/flutter/flutter/pull/29604) added friendlier error for invalid AndroidManifest.xml | +| | [flutter/flutter#29461](https://github.com/flutter/flutter/pull/29461) Remove explicit frame schedule | +| | [flutter/flutter#29048](https://github.com/flutter/flutter/pull/29048) Use async execution for xcodebuild commands | +| | [flutter/flutter#29528](https://github.com/flutter/flutter/pull/29528) Ensure that assumed formatting of properties file is correct | +| | [flutter/flutter#27749](https://github.com/flutter/flutter/pull/27749) Switch flutter_tools from script to app-jit snapshot. | +| | [flutter/flutter#28152](https://github.com/flutter/flutter/pull/28152) Improve hot reload performance | +| | [flutter/flutter#29258](https://github.com/flutter/flutter/pull/29258) Add dump-shader-skp flag to flutter tools | +| | [flutter/flutter#29134](https://github.com/flutter/flutter/pull/29134) Properly escape Android SDK Manager path in error message | +| | [flutter/flutter#29171](https://github.com/flutter/flutter/pull/29171) Only run codegen at start of flutter_test | +| | [flutter/flutter#28938](https://github.com/flutter/flutter/pull/28938) Add a `flutter create --list-samples` command | +| | [flutter/flutter#29126](https://github.com/flutter/flutter/pull/29126) Cause `flutter analyze` to fail if the analysis server experienced an error. | +| | [flutter/flutter#29062](https://github.com/flutter/flutter/pull/29062) fix windows codegen | +| | [flutter/flutter#28603](https://github.com/flutter/flutter/pull/28603) select ResidentCompiler during FlutterDevice initialization | +| | [flutter/flutter#28863](https://github.com/flutter/flutter/pull/28863) Fall-back to platform tools in Android SDK detection logic. | +| | [flutter/flutter#28658](https://github.com/flutter/flutter/pull/28658) Include git output into error message from channel command | +| | [flutter/flutter#28356](https://github.com/flutter/flutter/pull/28356) Log pub return code on failure on Windows | +| | [flutter/flutter#28386](https://github.com/flutter/flutter/pull/28386) remove personal repo and replace with trivial example for smoke test | +| | [flutter/flutter#28477](https://github.com/flutter/flutter/pull/28477) Fix backspace and clear length in AnsiStatus | +| | [flutter/flutter#28302](https://github.com/flutter/flutter/pull/28302) Add basic web device and run support | +| | [flutter/flutter#28168](https://github.com/flutter/flutter/pull/28168) [flutter_tool,fuchsia_tester] Only require a test source dir for coverage | +| | [flutter/flutter#28334](https://github.com/flutter/flutter/pull/28334) Remove unused --packages argument to gen_snapshot. | +| | [flutter/flutter#27944](https://github.com/flutter/flutter/pull/27944) Add tests | +| | [flutter/flutter#28097](https://github.com/flutter/flutter/pull/28097) Allow for gradle downloading missing SDK assets | +| | [flutter/flutter#28355](https://github.com/flutter/flutter/pull/28355) Reland "Allow for gradle downloading missing SDK assets" (#28097) | +| | [flutter/flutter#28352](https://github.com/flutter/flutter/pull/28352) only perform multi-root mapping if there are multiple roots | +| | [flutter/flutter#28101](https://github.com/flutter/flutter/pull/28101) Remove unused --packages argument to gen_snapshot. | +| | [flutter/flutter#28027](https://github.com/flutter/flutter/pull/28027) Remove extra slash from builder that is not handled on windows | +| | [flutter/flutter#28040](https://github.com/flutter/flutter/pull/28040) Remove json_schema and cli_util deps from flutter_tool | +| | [flutter/flutter#27754](https://github.com/flutter/flutter/pull/27754) Add support for binary compression of dynamic patches by the flutter tool. | +| | [flutter/flutter#28031](https://github.com/flutter/flutter/pull/28031) Revert "Add support for binary compression of dynamic patches by the flutter tool. (#27754)" | +| | [flutter/flutter#27908](https://github.com/flutter/flutter/pull/27908) Reland automatic discovery of observatory port for iOS | +| | [flutter/flutter#27709](https://github.com/flutter/flutter/pull/27709) Increase our build budget to 16ms | +| | [flutter/flutter#27765](https://github.com/flutter/flutter/pull/27765) Refactor local engine logic | +| | [flutter/flutter#28011](https://github.com/flutter/flutter/pull/28011) Remove accidentally committed libs | +| | [flutter/flutter#27987](https://github.com/flutter/flutter/pull/27987) add ui.Window fallback to TestViewConfiguration | +| | [flutter/flutter#27668](https://github.com/flutter/flutter/pull/27668) Wire dart2js through flutter tool, add compilation test | +| **team** | **55 issues with this label** | +| | [flutter/flutter#30990](https://github.com/flutter/flutter/pull/30990) Allow profile widget builds in profile mode | +| | [flutter/flutter#30832](https://github.com/flutter/flutter/pull/30832) Bump Android build tools to 28.0.3 in Dockerfile | +| | [flutter/flutter#30871](https://github.com/flutter/flutter/pull/30871) Update the upload key which seems to have trouble for some reason | +| | [flutter/flutter#30455](https://github.com/flutter/flutter/pull/30455) Prevent vertical scroll in shrine by ensuring card size fits the screen | +| | [flutter/flutter#25164](https://github.com/flutter/flutter/pull/25164) Pan and zoom gallery demo | +| | [flutter/flutter#27217](https://github.com/flutter/flutter/pull/27217) Fix Shrine overscroll glow indicator | +| | [flutter/flutter#30460](https://github.com/flutter/flutter/pull/30460) Fix gallery API doc URL launcher | +| | [flutter/flutter#30201](https://github.com/flutter/flutter/pull/30201) update sample code analyzer regexp & test case | +| | [flutter/flutter#29621](https://github.com/flutter/flutter/pull/29621) Update PULL_REQUEST_TEMPLATE.md | +| | [flutter/flutter#30019](https://github.com/flutter/flutter/pull/30019) Update to latest matcher | +| | [flutter/flutter#29908](https://github.com/flutter/flutter/pull/29908) Update Twitter handle @flutterio -> @FlutterDev | +| | [flutter/flutter#29632](https://github.com/flutter/flutter/pull/29632) Enable platform views for Flutter Gallery on iOS. | +| | [flutter/flutter#29669](https://github.com/flutter/flutter/pull/29669) Speed up CI via mojave-flutter image | +| | [flutter/flutter#29467](https://github.com/flutter/flutter/pull/29467) prevent stream notifications from interfering with reload | +| | [flutter/flutter#29619](https://github.com/flutter/flutter/pull/29619) make literals const for @immutable constructors | +| | [flutter/flutter#29454](https://github.com/flutter/flutter/pull/29454) Update another SDK constraint | +| | [flutter/flutter#29340](https://github.com/flutter/flutter/pull/29340) guard new formatter behind env var | +| | [flutter/flutter#29229](https://github.com/flutter/flutter/pull/29229) Install JDK and Android SDK only for integration tests | +| | [flutter/flutter#29126](https://github.com/flutter/flutter/pull/29126) Cause `flutter analyze` to fail if the analysis server experienced an error. | +| | [flutter/flutter#27971](https://github.com/flutter/flutter/pull/27971) Run non-perf sensitive tests on Cirrus | +| | [flutter/flutter#29051](https://github.com/flutter/flutter/pull/29051) fix block formatting | +| | [flutter/flutter#29025](https://github.com/flutter/flutter/pull/29025) print system time on all mac builds | +| | [flutter/flutter#28297](https://github.com/flutter/flutter/pull/28297) Test reporter | +| | [flutter/flutter#27811](https://github.com/flutter/flutter/pull/27811) set literal conversions | +| | [flutter/flutter#28852](https://github.com/flutter/flutter/pull/28852) Update macOS version in tests | +| | [flutter/flutter#28809](https://github.com/flutter/flutter/pull/28809) fix some formatting issues | +| | [flutter/flutter#28748](https://github.com/flutter/flutter/pull/28748) Revert "Remove the old HaTS implementation on API docs" | +| | [flutter/flutter#28658](https://github.com/flutter/flutter/pull/28658) Include git output into error message from channel command | +| | [flutter/flutter#28673](https://github.com/flutter/flutter/pull/28673) Add missing trailing commas | +| | [flutter/flutter#28555](https://github.com/flutter/flutter/pull/28555) disable dart2js test | +| | [flutter/flutter#28369](https://github.com/flutter/flutter/pull/28369) Add LICENSE test to presubmit checks | +| | [flutter/flutter#28480](https://github.com/flutter/flutter/pull/28480) increase timeout | +| | [flutter/flutter#28343](https://github.com/flutter/flutter/pull/28343) pass --skip-build-script-checks and remove module usage | +| | [flutter/flutter#28334](https://github.com/flutter/flutter/pull/28334) Remove unused --packages argument to gen_snapshot. | +| | [flutter/flutter#28482](https://github.com/flutter/flutter/pull/28482) Fuschia -> Fuchsia | +| | [flutter/flutter#28175](https://github.com/flutter/flutter/pull/28175) Only call Activity.reportFullyDrawn on Lollipop or above | +| | [flutter/flutter#28370](https://github.com/flutter/flutter/pull/28370) Removed trailing whitespace from the end of the CI config | +| | [flutter/flutter#28373](https://github.com/flutter/flutter/pull/28373) Mark non-flaky test as such | +| | [flutter/flutter#28125](https://github.com/flutter/flutter/pull/28125) [Gallery] Fortnightly demo moved from flutter/samples. | +| | [flutter/flutter#28400](https://github.com/flutter/flutter/pull/28400) update packages | +| | [flutter/flutter#28215](https://github.com/flutter/flutter/pull/28215) Minor UI tweaks to Cards demo based on internal feedback | +| | [flutter/flutter#28291](https://github.com/flutter/flutter/pull/28291) Reland #27754, now that bsdiff has moved to flutter/packages. | +| | [flutter/flutter#28171](https://github.com/flutter/flutter/pull/28171) deploy to .dev firebase projects. | +| | [flutter/flutter#28281](https://github.com/flutter/flutter/pull/28281) Reduce memory benchmark perf tests outer loop to 10. | +| | [flutter/flutter#27261](https://github.com/flutter/flutter/pull/27261) format parameter list | +| | [flutter/flutter#24889](https://github.com/flutter/flutter/pull/24889) Update AUTHORS | +| | [flutter/flutter#28238](https://github.com/flutter/flutter/pull/28238) Remove set literal syntax | +| | [flutter/flutter#28235](https://github.com/flutter/flutter/pull/28235) Remove line breaks from PR template | +| | [flutter/flutter#26376](https://github.com/flutter/flutter/pull/26376) removed image with 404 | +| | [flutter/flutter#28224](https://github.com/flutter/flutter/pull/28224) Adds a template for Pull Requests | +| | [flutter/flutter#28040](https://github.com/flutter/flutter/pull/28040) Remove json_schema and cli_util deps from flutter_tool | +| | [flutter/flutter#27305](https://github.com/flutter/flutter/pull/27305) Outline for survey implementation | +| | [flutter/flutter#28024](https://github.com/flutter/flutter/pull/28024) Disable prefer_collection_literals in the analyzer until we can update to using set literals | +| | [flutter/flutter#27793](https://github.com/flutter/flutter/pull/27793) Remove remaining "## Sample code" segments, and fix the snippet generator. | +| | [flutter/flutter#27929](https://github.com/flutter/flutter/pull/27929) Use double literals where a double type is expected | +| **f: material design** | **44 issues with this label** | +| | [flutter/flutter#31088](https://github.com/flutter/flutter/pull/31088) Text field scroll physics | +| | [flutter/flutter#29390](https://github.com/flutter/flutter/pull/29390) Make expansion panel optionally toggle its state by tapping its header. | +| | [flutter/flutter#30746](https://github.com/flutter/flutter/pull/30746) Baseline Aligned Row | +| | [flutter/flutter#30793](https://github.com/flutter/flutter/pull/30793) Revert "Add Form.onSaved" | +| | [flutter/flutter#30525](https://github.com/flutter/flutter/pull/30525) Fix cursor outside of input width | +| | [flutter/flutter#30805](https://github.com/flutter/flutter/pull/30805) Update ExpansionPanelList Samples with Scaffold Template | +| | [flutter/flutter#30537](https://github.com/flutter/flutter/pull/30537) Embedded images and added variations to ListTile sample code | +| | [flutter/flutter#30455](https://github.com/flutter/flutter/pull/30455) Prevent vertical scroll in shrine by ensuring card size fits the screen | +| | [flutter/flutter#30497](https://github.com/flutter/flutter/pull/30497) Add confirmDismiss example to flutter_gallery | +| | [flutter/flutter#30475](https://github.com/flutter/flutter/pull/30475) Trackpad mode crash fix | +| | [flutter/flutter#29413](https://github.com/flutter/flutter/pull/29413) Fix MaterialApp's _navigatorObserver when only builder used | +| | [flutter/flutter#30343](https://github.com/flutter/flutter/pull/30343) ExpansionPanelList and ExpansionPanelList.radio documentation | +| | [flutter/flutter#27217](https://github.com/flutter/flutter/pull/27217) Fix Shrine overscroll glow indicator | +| | [flutter/flutter#30353](https://github.com/flutter/flutter/pull/30353) Fix minor typo | +| | [flutter/flutter#30212](https://github.com/flutter/flutter/pull/30212) Added assert to prevent complete ListTile trailing/leading horizontal expansion | +| | [flutter/flutter#30123](https://github.com/flutter/flutter/pull/30123) Fix OutlineInputBorder crash | +| | [flutter/flutter#30219](https://github.com/flutter/flutter/pull/30219) Added helpful Material assert message | +| | [flutter/flutter#29771](https://github.com/flutter/flutter/pull/29771) Set Max Height for ListTile trailing and leading widgets | +| | [flutter/flutter#30048](https://github.com/flutter/flutter/pull/30048) Document that Hero needs to be present on destination page's zero frame | +| | [flutter/flutter#29811](https://github.com/flutter/flutter/pull/29811) TextField Validator Height Docs | +| | [flutter/flutter#29980](https://github.com/flutter/flutter/pull/29980) Fix issue with account drawer header arrow rotating when setState is called | +| | [flutter/flutter#29563](https://github.com/flutter/flutter/pull/29563) Avoid flickering while dragging to select text | +| | [flutter/flutter#29138](https://github.com/flutter/flutter/pull/29138) Update DropdownButton underline to be customizable | +| | [flutter/flutter#28735](https://github.com/flutter/flutter/pull/28735) [Material] Create a FloatingActionButton ThemeData and honor it within the FloatingActionButton | +| | [flutter/flutter#29564](https://github.com/flutter/flutter/pull/29564) Update progress indicator API docs | +| | [flutter/flutter#29445](https://github.com/flutter/flutter/pull/29445) Add doc about MediaQuery to Chip | +| | [flutter/flutter#29183](https://github.com/flutter/flutter/pull/29183) Implement labelPadding configuration in TabBarTheme | +| | [flutter/flutter#29165](https://github.com/flutter/flutter/pull/29165) Docs edit for Tab Label Color | +| | [flutter/flutter#29175](https://github.com/flutter/flutter/pull/29175) Ensure that animated pairs of Tabs TextStyles have matching inherited values | +| | [flutter/flutter#28752](https://github.com/flutter/flutter/pull/28752) FAB Snippet for API Docs | +| | [flutter/flutter#27751](https://github.com/flutter/flutter/pull/27751) Add Sample code for FlatButton #21136 | +| | [flutter/flutter#28558](https://github.com/flutter/flutter/pull/28558) Fix typo | +| | [flutter/flutter#28013](https://github.com/flutter/flutter/pull/28013) [Material] Unit test for skipping Slider tick mark due to overdensity | +| | [flutter/flutter#21834](https://github.com/flutter/flutter/pull/21834) Add shapeBorder option on App Bar | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#28371](https://github.com/flutter/flutter/pull/28371) Ensure that the DropdownButton menu respects its parents bounds | +| | [flutter/flutter#28214](https://github.com/flutter/flutter/pull/28214) [Material] Add the ability to theme trailing app bar actions independently from leading | +| | [flutter/flutter#28245](https://github.com/flutter/flutter/pull/28245) [Typo] Update 'use' to 'user' | +| | [flutter/flutter#28163](https://github.com/flutter/flutter/pull/28163) [Material] Add ability to set shadow color and selected shadow color for chips and for chip themes | +| | [flutter/flutter#27711](https://github.com/flutter/flutter/pull/27711) Make extended FAB's icon optional | +| | [flutter/flutter#28159](https://github.com/flutter/flutter/pull/28159) [Material] Expand BottomNavigationBar API (reprise) | +| | [flutter/flutter#28032](https://github.com/flutter/flutter/pull/28032) Revert 26001 | +| | [flutter/flutter#28216](https://github.com/flutter/flutter/pull/28216) Fix 'to to' | +| | [flutter/flutter#27973](https://github.com/flutter/flutter/pull/27973) Add extendBody parameter to Scaffold, body MediaQuery reflects BAB height | +| **waiting for tree to go green** | **37 issues with this label** | +| | [flutter/flutter#30898](https://github.com/flutter/flutter/pull/30898) Check that ErrorWidget.builder is not modified after test | +| | [flutter/flutter#30985](https://github.com/flutter/flutter/pull/30985) Add rrect contains microbenchmark | +| | [flutter/flutter#30455](https://github.com/flutter/flutter/pull/30455) Prevent vertical scroll in shrine by ensuring card size fits the screen | +| | [flutter/flutter#30305](https://github.com/flutter/flutter/pull/30305) shorter nullable list duplications | +| | [flutter/flutter#30535](https://github.com/flutter/flutter/pull/30535) Correctly synthesise event buttons | +| | [flutter/flutter#29998](https://github.com/flutter/flutter/pull/29998) Fix edge cases of PointerEventConverter | +| | [flutter/flutter#30398](https://github.com/flutter/flutter/pull/30398) Embedding new raised button diagram. | +| | [flutter/flutter#30453](https://github.com/flutter/flutter/pull/30453) Updating sample code for BottomNavigationBar class for diagram. | +| | [flutter/flutter#30276](https://github.com/flutter/flutter/pull/30276) Random trivial fixes in the animation packages | +| | [flutter/flutter#30463](https://github.com/flutter/flutter/pull/30463) Revert "Error message for setting shaderWarmUp too late (#30145)" | +| | [flutter/flutter#28001](https://github.com/flutter/flutter/pull/28001) CupertinoTextField: added ability to change placeholder color | +| | [flutter/flutter#28597](https://github.com/flutter/flutter/pull/28597) Adjust remaining Cupertino route animations to match native | +| | [flutter/flutter#29134](https://github.com/flutter/flutter/pull/29134) Properly escape Android SDK Manager path in error message | +| | [flutter/flutter#28470](https://github.com/flutter/flutter/pull/28470) Throw assertion error when a Hero has a Hero child. | +| | [flutter/flutter#29245](https://github.com/flutter/flutter/pull/29245) Fix DartDoc for UniqueKey | +| | [flutter/flutter#29229](https://github.com/flutter/flutter/pull/29229) Install JDK and Android SDK only for integration tests | +| | [flutter/flutter#29054](https://github.com/flutter/flutter/pull/29054) Deprecate profile() | +| | [flutter/flutter#28900](https://github.com/flutter/flutter/pull/28900) Add key support to cupertino button | +| | [flutter/flutter#28970](https://github.com/flutter/flutter/pull/28970) Fix coverage shard and print summary after test run | +| | [flutter/flutter#28863](https://github.com/flutter/flutter/pull/28863) Fall-back to platform tools in Android SDK detection logic. | +| | [flutter/flutter#25202](https://github.com/flutter/flutter/pull/25202) fix #19175 How should addTime be used from a test? | +| | [flutter/flutter#28944](https://github.com/flutter/flutter/pull/28944) fix missing variable name | +| | [flutter/flutter#28297](https://github.com/flutter/flutter/pull/28297) Test reporter | +| | [flutter/flutter#28675](https://github.com/flutter/flutter/pull/28675) Update docs for ancestorWidgetOfExactType | +| | [flutter/flutter#28355](https://github.com/flutter/flutter/pull/28355) Reland "Allow for gradle downloading missing SDK assets" (#28097) | +| | [flutter/flutter#27712](https://github.com/flutter/flutter/pull/27712) add2app test | +| | [flutter/flutter#27898](https://github.com/flutter/flutter/pull/27898) Add slight clarification to debugDeterministicCursor | +| | [flutter/flutter#26659](https://github.com/flutter/flutter/pull/26659) Adds fix for NAN value and pressure values outside of device reported min and max | +| | [flutter/flutter#27803](https://github.com/flutter/flutter/pull/27803) Added sample code to AnimatedWidget | +| | [flutter/flutter#27945](https://github.com/flutter/flutter/pull/27945) Fixes crossAxisSpacing overflow in RTL | +| | [flutter/flutter#27433](https://github.com/flutter/flutter/pull/27433) Fix issue where SliverPersistentHeader that is both floating and pinned would scroll down when scrolling past the beginning of the ScrollView | +| | [flutter/flutter#28224](https://github.com/flutter/flutter/pull/28224) Adds a template for Pull Requests | +| | [flutter/flutter#28182](https://github.com/flutter/flutter/pull/28182) Add TextOverflow.visible | +| | [flutter/flutter#28040](https://github.com/flutter/flutter/pull/28040) Remove json_schema and cli_util deps from flutter_tool | +| | [flutter/flutter#27953](https://github.com/flutter/flutter/pull/27953) Add outer try block for obtainKey errors. Add docs. | +| | [flutter/flutter#27908](https://github.com/flutter/flutter/pull/27908) Reland automatic discovery of observatory port for iOS | +| | [flutter/engine#8074](https://github.com/flutter/engine/pull/8074) Add script to help generate PR messages | +| **d: api docs** | **36 issues with this label** | +| | [flutter/flutter#30887](https://github.com/flutter/flutter/pull/30887) Add more dialog doc cross-reference | +| | [flutter/flutter#30814](https://github.com/flutter/flutter/pull/30814) Fix StatefulWidget and StatelessWidget Sample Documentation | +| | [flutter/flutter#30805](https://github.com/flutter/flutter/pull/30805) Update ExpansionPanelList Samples with Scaffold Template | +| | [flutter/flutter#30537](https://github.com/flutter/flutter/pull/30537) Embedded images and added variations to ListTile sample code | +| | [flutter/flutter#30626](https://github.com/flutter/flutter/pull/30626) Add sample for ValueListenable | +| | [flutter/flutter#30563](https://github.com/flutter/flutter/pull/30563) Fixed a typo in the Expanded API doc | +| | [flutter/flutter#30343](https://github.com/flutter/flutter/pull/30343) ExpansionPanelList and ExpansionPanelList.radio documentation | +| | [flutter/flutter#30398](https://github.com/flutter/flutter/pull/30398) Embedding new raised button diagram. | +| | [flutter/flutter#30453](https://github.com/flutter/flutter/pull/30453) Updating sample code for BottomNavigationBar class for diagram. | +| | [flutter/flutter#30452](https://github.com/flutter/flutter/pull/30452) Moar Videos | +| | [flutter/flutter#30451](https://github.com/flutter/flutter/pull/30451) Bump dartdocs to 0.28.3 | +| | [flutter/flutter#30348](https://github.com/flutter/flutter/pull/30348) RaisedButton Sample Code Update for Diagrams | +| | [flutter/flutter#30201](https://github.com/flutter/flutter/pull/30201) update sample code analyzer regexp & test case | +| | [flutter/flutter#30048](https://github.com/flutter/flutter/pull/30048) Document that Hero needs to be present on destination page's zero frame | +| | [flutter/flutter#29697](https://github.com/flutter/flutter/pull/29697) Embedding new diagrams for API Docs | +| | [flutter/flutter#29987](https://github.com/flutter/flutter/pull/29987) update CupertinoSwitch documentation | +| | [flutter/flutter#22859](https://github.com/flutter/flutter/issues/22859) Provide links between dart:ui classes and their corresponding classes in higher layers | +| | [flutter/flutter#29445](https://github.com/flutter/flutter/pull/29445) Add doc about MediaQuery to Chip | +| | [flutter/flutter#13637](https://github.com/flutter/flutter/issues/13637) Add images and examples to Align | +| | [flutter/flutter#29442](https://github.com/flutter/flutter/pull/29442) Align Snippet for API Docs | +| | [flutter/flutter#29245](https://github.com/flutter/flutter/pull/29245) Fix DartDoc for UniqueKey | +| | [flutter/flutter#29165](https://github.com/flutter/flutter/pull/29165) Docs edit for Tab Label Color | +| | [flutter/flutter#29053](https://github.com/flutter/flutter/pull/29053) Update to Container Sample Code in API Docs | +| | [flutter/flutter#28857](https://github.com/flutter/flutter/pull/28857) Form Snippet for API Docs | +| | [flutter/flutter#21136](https://github.com/flutter/flutter/issues/21136) Request sample code for popular API docs | +| | [flutter/flutter#28675](https://github.com/flutter/flutter/pull/28675) Update docs for ancestorWidgetOfExactType | +| | [flutter/flutter#28752](https://github.com/flutter/flutter/pull/28752) FAB Snippet for API Docs | +| | [flutter/flutter#28748](https://github.com/flutter/flutter/pull/28748) Revert "Remove the old HaTS implementation on API docs" | +| | [flutter/flutter#28683](https://github.com/flutter/flutter/pull/28683) Remove the old HaTS implementation on API docs | +| | [flutter/flutter#27751](https://github.com/flutter/flutter/pull/27751) Add Sample code for FlatButton #21136 | +| | [flutter/flutter#28558](https://github.com/flutter/flutter/pull/28558) Fix typo | +| | [flutter/flutter#28245](https://github.com/flutter/flutter/pull/28245) [Typo] Update 'use' to 'user' | +| | [flutter/flutter#28017](https://github.com/flutter/flutter/pull/28017) Add more docs to BackdropFilter | +| | [flutter/flutter#27803](https://github.com/flutter/flutter/pull/27803) Added sample code to AnimatedWidget | +| | [flutter/flutter#27305](https://github.com/flutter/flutter/pull/27305) Outline for survey implementation | +| | [flutter/flutter#27793](https://github.com/flutter/flutter/pull/27793) Remove remaining "## Sample code" segments, and fix the snippet generator. | +| **a: tests** | **23 issues with this label** | +| | [flutter/flutter#30857](https://github.com/flutter/flutter/pull/30857) Added support for authentication codes for the VM service. | +| | [flutter/flutter#30898](https://github.com/flutter/flutter/pull/30898) Check that ErrorWidget.builder is not modified after test | +| | [flutter/flutter#30985](https://github.com/flutter/flutter/pull/30985) Add rrect contains microbenchmark | +| | [flutter/flutter#30871](https://github.com/flutter/flutter/pull/30871) Update the upload key which seems to have trouble for some reason | +| | [flutter/flutter#30747](https://github.com/flutter/flutter/pull/30747) Print warning if flutter drive is run in debug | +| | [flutter/flutter#29669](https://github.com/flutter/flutter/pull/29669) Speed up CI via mojave-flutter image | +| | [flutter/flutter#29467](https://github.com/flutter/flutter/pull/29467) prevent stream notifications from interfering with reload | +| | [flutter/flutter#29342](https://github.com/flutter/flutter/pull/29342) Add semantic label finders | +| | [flutter/flutter#29566](https://github.com/flutter/flutter/pull/29566) Manually roll engine to 5088735e5f | +| | [flutter/flutter#29340](https://github.com/flutter/flutter/pull/29340) guard new formatter behind env var | +| | [flutter/flutter#27971](https://github.com/flutter/flutter/pull/27971) Run non-perf sensitive tests on Cirrus | +| | [flutter/flutter#29025](https://github.com/flutter/flutter/pull/29025) print system time on all mac builds | +| | [flutter/flutter#25202](https://github.com/flutter/flutter/pull/25202) fix #19175 How should addTime be used from a test? | +| | [flutter/flutter#28297](https://github.com/flutter/flutter/pull/28297) Test reporter | +| | [flutter/flutter#28852](https://github.com/flutter/flutter/pull/28852) Update macOS version in tests | +| | [flutter/flutter#28638](https://github.com/flutter/flutter/pull/28638) Fix the test annotation used for test groups | +| | [flutter/flutter#28555](https://github.com/flutter/flutter/pull/28555) disable dart2js test | +| | [flutter/flutter#28480](https://github.com/flutter/flutter/pull/28480) increase timeout | +| | [flutter/flutter#28168](https://github.com/flutter/flutter/pull/28168) [flutter_tool,fuchsia_tester] Only require a test source dir for coverage | +| | [flutter/flutter#27944](https://github.com/flutter/flutter/pull/27944) Add tests | +| | [flutter/flutter#28373](https://github.com/flutter/flutter/pull/28373) Mark non-flaky test as such | +| | [flutter/flutter#27712](https://github.com/flutter/flutter/pull/27712) add2app test | +| | [flutter/flutter#27987](https://github.com/flutter/flutter/pull/27987) add ui.Window fallback to TestViewConfiguration | +| **f: cupertino** | **20 issues with this label** | +| | [flutter/flutter#31088](https://github.com/flutter/flutter/pull/31088) Text field scroll physics | +| | [flutter/flutter#30946](https://github.com/flutter/flutter/pull/30946) Add some more cupertino icons | +| | [flutter/flutter#29451](https://github.com/flutter/flutter/pull/29451) Added opacity to cupertino switch when disabled | +| | [flutter/flutter#30862](https://github.com/flutter/flutter/pull/30862) CupertinoDatePicker initialDateTime accounts for minuteInterval | +| | [flutter/flutter#29822](https://github.com/flutter/flutter/pull/29822) Cupertino localization step 7: modularize material specific things out of gen_localizations.dart | +| | [flutter/flutter#30527](https://github.com/flutter/flutter/pull/30527) Cupertino localization step 11: add more translation clarifications in the instructions | +| | [flutter/flutter#29767](https://github.com/flutter/flutter/pull/29767) Cupertino localization step 6: add a GlobalCupertinoLocalizations base class with date time formatting | +| | [flutter/flutter#29708](https://github.com/flutter/flutter/pull/29708) Cupertino localization step 5: add french arb as translated example | +| | [flutter/flutter#28001](https://github.com/flutter/flutter/pull/28001) CupertinoTextField: added ability to change placeholder color | +| | [flutter/flutter#29821](https://github.com/flutter/flutter/pull/29821) Cupertino localization step 1.5: fix a resource mismatch in cupertino_en.arb | +| | [flutter/flutter#29946](https://github.com/flutter/flutter/pull/29946) Let CupertinoPageScaffold have tap status bar to scroll to top | +| | [flutter/flutter#29987](https://github.com/flutter/flutter/pull/29987) update CupertinoSwitch documentation | +| | [flutter/flutter#29943](https://github.com/flutter/flutter/pull/29943) Remove unwanted gap between navigation bar and safe area's child | +| | [flutter/flutter#29630](https://github.com/flutter/flutter/pull/29630) Add heart shapes to CupertinoIcons | +| | [flutter/flutter#28597](https://github.com/flutter/flutter/pull/28597) Adjust remaining Cupertino route animations to match native | +| | [flutter/flutter#29463](https://github.com/flutter/flutter/pull/29463) Make real JSON in arb | +| | [flutter/flutter#28900](https://github.com/flutter/flutter/pull/28900) Add key support to cupertino button | +| | [flutter/flutter#28855](https://github.com/flutter/flutter/pull/28855) Move material iOS back swipe test to material | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#28032](https://github.com/flutter/flutter/pull/28032) Revert 26001 | +| **a: text input** | **12 issues with this label** | +| | [flutter/flutter#30991](https://github.com/flutter/flutter/pull/30991) Use full height of the glyph for caret height on Android | +| | [flutter/flutter#28001](https://github.com/flutter/flutter/pull/28001) CupertinoTextField: added ability to change placeholder color | +| | [flutter/flutter#29395](https://github.com/flutter/flutter/pull/29395) Fix text selection when user is dragging in the opposite direction | +| | [flutter/flutter#27205](https://github.com/flutter/flutter/pull/27205) Fix TextField height issues | +| | [flutter/flutter#28169](https://github.com/flutter/flutter/pull/28169) Add/rewrite tests for FocusScope. | +| | [flutter/flutter#28290](https://github.com/flutter/flutter/pull/28290) Text selection via mouse | +| | [flutter/flutter#28558](https://github.com/flutter/flutter/pull/28558) Fix typo | +| | [flutter/flutter#28438](https://github.com/flutter/flutter/issues/28438) PC keyboard not works on text fields in emulator when on master branch. | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#27898](https://github.com/flutter/flutter/pull/27898) Add slight clarification to debugDeterministicCursor | +| | [flutter/flutter#26659](https://github.com/flutter/flutter/pull/26659) Adds fix for NAN value and pressure values outside of device reported min and max | +| | [flutter/flutter#28032](https://github.com/flutter/flutter/pull/28032) Revert 26001 | +| **team: gallery** | **11 issues with this label** | +| | [flutter/flutter#30455](https://github.com/flutter/flutter/pull/30455) Prevent vertical scroll in shrine by ensuring card size fits the screen | +| | [flutter/flutter#30497](https://github.com/flutter/flutter/pull/30497) Add confirmDismiss example to flutter_gallery | +| | [flutter/flutter#25164](https://github.com/flutter/flutter/pull/25164) Pan and zoom gallery demo | +| | [flutter/flutter#27217](https://github.com/flutter/flutter/pull/27217) Fix Shrine overscroll glow indicator | +| | [flutter/flutter#30460](https://github.com/flutter/flutter/pull/30460) Fix gallery API doc URL launcher | +| | [flutter/flutter#29908](https://github.com/flutter/flutter/pull/29908) Update Twitter handle @flutterio -> @FlutterDev | +| | [flutter/flutter#29632](https://github.com/flutter/flutter/pull/29632) Enable platform views for Flutter Gallery on iOS. | +| | [flutter/flutter#25202](https://github.com/flutter/flutter/pull/25202) fix #19175 How should addTime be used from a test? | +| | [flutter/flutter#28175](https://github.com/flutter/flutter/pull/28175) Only call Activity.reportFullyDrawn on Lollipop or above | +| | [flutter/flutter#28125](https://github.com/flutter/flutter/pull/28125) [Gallery] Fortnightly demo moved from flutter/samples. | +| | [flutter/flutter#28215](https://github.com/flutter/flutter/pull/28215) Minor UI tweaks to Cards demo based on internal feedback | +| **d: examples** | **8 issues with this label** | +| | [flutter/flutter#30398](https://github.com/flutter/flutter/pull/30398) Embedding new raised button diagram. | +| | [flutter/flutter#30453](https://github.com/flutter/flutter/pull/30453) Updating sample code for BottomNavigationBar class for diagram. | +| | [flutter/flutter#30348](https://github.com/flutter/flutter/pull/30348) RaisedButton Sample Code Update for Diagrams | +| | [flutter/flutter#29697](https://github.com/flutter/flutter/pull/29697) Embedding new diagrams for API Docs | +| | [flutter/flutter#29442](https://github.com/flutter/flutter/pull/29442) Align Snippet for API Docs | +| | [flutter/flutter#29053](https://github.com/flutter/flutter/pull/29053) Update to Container Sample Code in API Docs | +| | [flutter/flutter#28857](https://github.com/flutter/flutter/pull/28857) Form Snippet for API Docs | +| | [flutter/flutter#28752](https://github.com/flutter/flutter/pull/28752) FAB Snippet for API Docs | +| **f: gestures** | **6 issues with this label** | +| | [flutter/flutter#28749](https://github.com/flutter/flutter/pull/28749) Add minimum time gap requirement to double tap | +| | [flutter/flutter#28290](https://github.com/flutter/flutter/pull/28290) Text selection via mouse | +| | [flutter/flutter#28546](https://github.com/flutter/flutter/pull/28546) Call onTapCancel when down pointer gets cancelled | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#27904](https://github.com/flutter/flutter/pull/27904) Convert PointerEvent's toString to Diagnosticable | +| | [flutter/flutter#26659](https://github.com/flutter/flutter/pull/26659) Adds fix for NAN value and pressure values outside of device reported min and max | +| **severe: API break** | **6 issues with this label** | +| | [flutter/flutter#30991](https://github.com/flutter/flutter/pull/30991) Use full height of the glyph for caret height on Android | +| | [flutter/flutter#30414](https://github.com/flutter/flutter/pull/30414) Remove pressure customization from some pointer events | +| | [flutter/flutter#28919](https://github.com/flutter/flutter/pull/28919) Always composite PhysicalModels | +| | [flutter/flutter#28953](https://github.com/flutter/flutter/pull/28953) Include platformViewId in semantics tree | +| | [flutter/flutter#28242](https://github.com/flutter/flutter/pull/28242) Add long-press-move support for text fields 2 | +| | [flutter/flutter#28032](https://github.com/flutter/flutter/pull/28032) Revert 26001 | +| **a: animation** | **5 issues with this label** | +| | [flutter/flutter#30276](https://github.com/flutter/flutter/pull/30276) Random trivial fixes in the animation packages | +| | [flutter/flutter#29069](https://github.com/flutter/flutter/pull/29069) Heroes and nested Navigators | +| | [flutter/flutter#27803](https://github.com/flutter/flutter/pull/27803) Added sample code to AnimatedWidget | +| | [flutter/flutter#28006](https://github.com/flutter/flutter/pull/28006) Re-apply "Ensure all curves return 0 and 1 in .transform(t) when t=0/1" | +| | [flutter/flutter#27929](https://github.com/flutter/flutter/pull/27929) Use double literals where a double type is expected | +| **a: desktop** | **5 issues with this label** | +| | [flutter/flutter#30938](https://github.com/flutter/flutter/pull/30938) Update keycodes, fix a comment. | +| | [flutter/flutter#30648](https://github.com/flutter/flutter/pull/30648) Allow downloading of desktop embedding artifacts | +| | [flutter/flutter#30643](https://github.com/flutter/flutter/pull/30643) Add Form.onSaved | +| | [flutter/flutter#29993](https://github.com/flutter/flutter/pull/29993) Adds the keyboard mapping for Linux | +| | [flutter/flutter#29231](https://github.com/flutter/flutter/pull/29231) Adds macOS raw keyboard mapping | +| **e: desktop** | **5 issues with this label** | +| | [flutter/flutter#31283](https://github.com/flutter/flutter/pull/31283) Add desktop workflows to doctor | +| | [flutter/flutter#31229](https://github.com/flutter/flutter/pull/31229) Add flutter run support for linux and windows | +| | [flutter/flutter#31277](https://github.com/flutter/flutter/pull/31277) pass track widget creation flag through to build script | +| | [flutter/flutter#31218](https://github.com/flutter/flutter/pull/31218) Add run capability for macOS target | +| | [flutter/flutter#31205](https://github.com/flutter/flutter/pull/31205) Add desktop projects and build commands (experimental) | +| **severe: performance** | **5 issues with this label** | +| | [flutter/flutter#30990](https://github.com/flutter/flutter/pull/30990) Allow profile widget builds in profile mode | +| | [flutter/flutter#30985](https://github.com/flutter/flutter/pull/30985) Add rrect contains microbenchmark | +| | [flutter/flutter#14704](https://github.com/flutter/flutter/issues/14704) Unpack cached code on Android to the getCodeCacheDir() directory, rather than the user data directory | +| | [flutter/flutter#8150](https://github.com/flutter/flutter/issues/8150) complex_layout_srcroll_perf__memory diff_total_kb regression | +| | [flutter/flutter#28537](https://github.com/flutter/flutter/pull/28537) Reland "Shader warm up (#27660)" | +| **▣ platform-android** | **5 issues with this label** | +| | [flutter/flutter#14704](https://github.com/flutter/flutter/issues/14704) Unpack cached code on Android to the getCodeCacheDir() directory, rather than the user data directory | +| | [flutter/flutter#29604](https://github.com/flutter/flutter/pull/29604) added friendlier error for invalid AndroidManifest.xml | +| | [flutter/flutter#28651](https://github.com/flutter/flutter/issues/28651) Cannot execute operation because FlutterJNI is not attached to native. | +| | [flutter/flutter#28355](https://github.com/flutter/flutter/pull/28355) Reland "Allow for gradle downloading missing SDK assets" (#28097) | +| | [flutter/flutter#28031](https://github.com/flutter/flutter/pull/28031) Revert "Add support for binary compression of dynamic patches by the flutter tool. (#27754)" | +| **a: typography** | **4 issues with this label** | +| | [flutter/flutter#30991](https://github.com/flutter/flutter/pull/30991) Use full height of the glyph for caret height on Android | +| | [flutter/flutter#28751](https://github.com/flutter/flutter/pull/28751) Expose decorationThickness in TextStyle. Roll engine (12 commits) | +| | [flutter/flutter#28398](https://github.com/flutter/flutter/pull/28398) fix red build for analysis | +| | [flutter/flutter#28182](https://github.com/flutter/flutter/pull/28182) Add TextOverflow.visible | +| **t: gradle** | **4 issues with this label** | +| | [flutter/flutter#28097](https://github.com/flutter/flutter/pull/28097) Allow for gradle downloading missing SDK assets | +| | [flutter/flutter#28355](https://github.com/flutter/flutter/pull/28355) Reland "Allow for gradle downloading missing SDK assets" (#28097) | +| | [flutter/flutter#27754](https://github.com/flutter/flutter/pull/27754) Add support for binary compression of dynamic patches by the flutter tool. | +| | [flutter/flutter#28031](https://github.com/flutter/flutter/pull/28031) Revert "Add support for binary compression of dynamic patches by the flutter tool. (#27754)" | +| **⌺‬ platform-ios** | **4 issues with this label** | +| | [flutter/flutter#30475](https://github.com/flutter/flutter/pull/30475) Trackpad mode crash fix | +| | [flutter/flutter#8094](https://github.com/flutter/flutter/issues/8094) Flutter doesn't find xcode 8.2 | +| | [flutter/flutter#27908](https://github.com/flutter/flutter/pull/27908) Reland automatic discovery of observatory port for iOS | +| | [flutter/flutter#27765](https://github.com/flutter/flutter/pull/27765) Refactor local engine logic | +| **a: fidelity** | **3 issues with this label** | +| | [flutter/flutter#30991](https://github.com/flutter/flutter/pull/30991) Use full height of the glyph for caret height on Android | +| | [flutter/flutter#28597](https://github.com/flutter/flutter/pull/28597) Adjust remaining Cupertino route animations to match native | +| | [flutter/flutter#27711](https://github.com/flutter/flutter/pull/27711) Make extended FAB's icon optional | +| **affects: docs** | **3 issues with this label** | +| | [flutter/engine#8617](https://github.com/flutter/engine/pull/8617) Fixes a typo in comment | +| | [flutter/engine#8472](https://github.com/flutter/engine/pull/8472) [Docs] Correcting link to contributing guide. | +| | [flutter/engine#8295](https://github.com/flutter/engine/pull/8295) Fixing links between higher and lower classes. | +| **customer: fuchsia** | **3 issues with this label** | +| | [flutter/flutter#30458](https://github.com/flutter/flutter/pull/30458) [fuchsia] Fix isolate filter | +| | [flutter/flutter#29532](https://github.com/flutter/flutter/pull/29532) Reland composite physical layers on all platforms | +| | [flutter/flutter#29454](https://github.com/flutter/flutter/pull/29454) Update another SDK constraint | +| **easy fix** | **3 issues with this label** | +| | [flutter/flutter#21136](https://github.com/flutter/flutter/issues/21136) Request sample code for popular API docs | +| | [flutter/flutter#7738](https://github.com/flutter/flutter/issues/7738) Allow for more flexible unselected label color parameter in TabBar | +| | [flutter/engine#8472](https://github.com/flutter/engine/pull/8472) [Docs] Correcting link to contributing guide. | +| **engine** | **3 issues with this label** | +| | [flutter/flutter#14704](https://github.com/flutter/flutter/issues/14704) Unpack cached code on Android to the getCodeCacheDir() directory, rather than the user data directory | +| | [flutter/flutter#28651](https://github.com/flutter/flutter/issues/28651) Cannot execute operation because FlutterJNI is not attached to native. | +| | [flutter/flutter#27712](https://github.com/flutter/flutter/pull/27712) add2app test | +| **severe: regression** | **3 issues with this label** | +| | [flutter/flutter#28651](https://github.com/flutter/flutter/issues/28651) Cannot execute operation because FlutterJNI is not attached to native. | +| | [flutter/flutter#8150](https://github.com/flutter/flutter/issues/8150) complex_layout_srcroll_perf__memory diff_total_kb regression | +| | [flutter/flutter#28438](https://github.com/flutter/flutter/issues/28438) PC keyboard not works on text fields in emulator when on master branch. | +| **t: flutter driver** | **3 issues with this label** | +| | [flutter/flutter#30747](https://github.com/flutter/flutter/pull/30747) Print warning if flutter drive is run in debug | +| | [flutter/flutter#29342](https://github.com/flutter/flutter/pull/29342) Add semantic label finders | +| | [flutter/flutter#27709](https://github.com/flutter/flutter/pull/27709) Increase our build budget to 16ms | +| **cla: no** | **2 issues with this label** | +| | [flutter/flutter#27205](https://github.com/flutter/flutter/pull/27205) Fix TextField height issues | +| | [flutter/flutter#28159](https://github.com/flutter/flutter/pull/28159) [Material] Expand BottomNavigationBar API (reprise) | +| **f: scrolling** | **2 issues with this label** | +| | [flutter/flutter#27945](https://github.com/flutter/flutter/pull/27945) Fixes crossAxisSpacing overflow in RTL | +| | [flutter/flutter#27433](https://github.com/flutter/flutter/pull/27433) Fix issue where SliverPersistentHeader that is both floating and pinned would scroll down when scrolling past the beginning of the ScrollView | +| **t: hot reload** | **2 issues with this label** | +| | [flutter/flutter#29693](https://github.com/flutter/flutter/pull/29693) Use source list from the compiler to track invalidated files for hot reload. | +| | [flutter/flutter#28152](https://github.com/flutter/flutter/pull/28152) Improve hot reload performance | +| **⌘‬ platform-mac** | **2 issues with this label** | +| | [flutter/flutter#31218](https://github.com/flutter/flutter/pull/31218) Add run capability for macOS target | +| | [flutter/flutter#27908](https://github.com/flutter/flutter/pull/27908) Reland automatic discovery of observatory port for iOS | +| **⚠ TODAY** | **2 issues with this label** | +| | [flutter/flutter#8150](https://github.com/flutter/flutter/issues/8150) complex_layout_srcroll_perf__memory diff_total_kb regression | +| | [flutter/flutter#28438](https://github.com/flutter/flutter/issues/28438) PC keyboard not works on text fields in emulator when on master branch. | +| **Work in progress (WIP)** | **1 issue with this label** | +| | [flutter/engine#8274](https://github.com/flutter/engine/pull/8274) [ui] Add null check in FontWeight.lerp | +| **a: accessibility** | **1 issue with this label** | +| | [flutter/flutter#29342](https://github.com/flutter/flutter/pull/29342) Add semantic label finders | +| **a: debugging** | **1 issue with this label** | +| | [flutter/flutter#27904](https://github.com/flutter/flutter/pull/27904) Convert PointerEvent's toString to Diagnosticable | +| **a: existing-apps** | **1 issue with this label** | +| | [flutter/flutter#27712](https://github.com/flutter/flutter/pull/27712) add2app test | +| **a: first hour** | **1 issue with this label** | +| | [flutter/flutter#30562](https://github.com/flutter/flutter/pull/30562) Replace flutter.io with flutter.dev | +| **a: internationalization** | **1 issue with this label** | +| | [flutter/flutter#27945](https://github.com/flutter/flutter/pull/27945) Fixes crossAxisSpacing overflow in RTL | +| **a: quality** | **1 issue with this label** | +| | [flutter/flutter#30562](https://github.com/flutter/flutter/pull/30562) Replace flutter.io with flutter.dev | +| **affects: dev experience** | **1 issue with this label** | +| | [flutter/engine#7908](https://github.com/flutter/engine/pull/7908) Link dart:* sources into engine for debugger source support | +| **affects: engine** | **1 issue with this label** | +| | [flutter/engine#7908](https://github.com/flutter/engine/pull/7908) Link dart:* sources into engine for debugger source support | +| **area-analyzer** | **1 issue with this label** | +| | [dart-lang/sdk#35940](https://github.com/dart-lang/sdk/issues/35940) Dartanalyzer: Missing line/column information, Unexpected error for int-to-double cast | +| **customer: dream (g3)** | **1 issue with this label** | +| | [flutter/flutter#29532](https://github.com/flutter/flutter/pull/29532) Reland composite physical layers on all platforms | +| **f: routes** | **1 issue with this label** | +| | [flutter/flutter#28597](https://github.com/flutter/flutter/pull/28597) Adjust remaining Cupertino route animations to match native | +| **p1-high** | **1 issue with this label** | +| | [dart-lang/sdk#35940](https://github.com/dart-lang/sdk/issues/35940) Dartanalyzer: Missing line/column information, Unexpected error for int-to-double cast | +| **platform-ios** | **1 issue with this label** | +| | [flutter/engine#8202](https://github.com/flutter/engine/pull/8202) [platform_view] iOSP platformView composition optimize. | +| **prod: API break** | **1 issue with this label** | +| | [flutter/engine#8274](https://github.com/flutter/engine/pull/8274) [ui] Add null check in FontWeight.lerp | +| **severe: crash** | **1 issue with this label** | +| | [flutter/flutter#28651](https://github.com/flutter/flutter/issues/28651) Cannot execute operation because FlutterJNI is not attached to native. | +| **severe: new feature** | **1 issue with this label** | +| | [flutter/flutter#29390](https://github.com/flutter/flutter/pull/29390) Make expansion panel optionally toggle its state by tapping its header. | +| **t: flutter doctor** | **1 issue with this label** | +| | [flutter/flutter#8094](https://github.com/flutter/flutter/issues/8094) Flutter doesn't find xcode 8.2 | +| **t: xcode** | **1 issue with this label** | +| | [flutter/flutter#27765](https://github.com/flutter/flutter/pull/27765) Refactor local engine logic | +| **team: flakes** | **1 issue with this label** | +| | [flutter/flutter#28480](https://github.com/flutter/flutter/pull/28480) increase timeout | +| **type-bug** | **1 issue with this label** | +| | [dart-lang/sdk#35940](https://github.com/dart-lang/sdk/issues/35940) Dartanalyzer: Missing line/column information, Unexpected error for int-to-double cast | +| **waiting for PR to land (fixed)** | **1 issue with this label** | +| | [flutter/flutter#7999](https://github.com/flutter/flutter/issues/7999) Consider renaming the Design Principles guide | +| **○ platform-fuchsia** | **1 issue with this label** | +| | [flutter/flutter#28168](https://github.com/flutter/flutter/pull/28168) [flutter_tool,fuchsia_tester] Only require a test source dir for coverage | +| **❖ platform-windows** | **1 issue with this label** | +| | [flutter/flutter#28356](https://github.com/flutter/flutter/pull/28356) Log pub return code on failure on Windows | + + + +We addressed 1231 issues. + +## Changes in `flutter/engine` from `375739` to `ca31a7` +| Author | Commit | +|--------|--------| +|Ben Konyi |Disable auth codes for Observatory test ([#8646](https://github.com/flutter/engine/issues/8646))| +|Matthew Dempsky |Remove unnecessary DartIO::EntropySource wrapper ([#8635](https://github.com/flutter/engine/issues/8635))| +|Chinmay Garde |Revert "Remove DartSnapshotBuffer and dry up snapshot resolution logic. ([#8640](https://github.com/flutter/engine/issues/8640))" ([#8644](https://github.com/flutter/engine/issues/8644)) This reverts commit 905ddb6ca9f9dcb6b1a7cea67d502da094867623.| +|Ben Konyi |Roll src/third_party/dart 7b9ab9f353..cf4444b803 (44 commits) ([#8639](https://github.com/flutter/engine/issues/8639)) cf4444b803 Revert "[ VM / Service ] Temporarily disable VM service auth codes by default" f8491950fe Create List, not Impl. fa7485f28e Build types for not simply bounded elements using dynamic type arguments. 9d376de55a [vm] Remove code collection. 0c0e49cd11 update keyword list to include "late" modifier 3cf3e4edde [dart/vm] Reduce trip count of osr test 503e20946c [vm] Start logging if shutdown takes too long. 2b9f968d2f Convert engine.dart to triple-slash comment style 73b917c014 [vm/compiler] Do not generate unnecessary field length guards 20fde9a6a8 Don't overwrite inherited types of fields with types of initializers. e6e2a196a3 Issue 36667. Check for unresolved URI in getLibraryByUri(). 6ac38a926c The synthetic default constructor should have reference. 92729e0cd3 Remove UndefinedTypeImpl. cf77b82f52 [analyzer] handle youtube and animation dartdoc directives 6384f629c0 new conflicting-modifiers error code f3703c1bce change "late" from built-in to keyword af9c01432c Remove unused import 7b6b8f8c43 Restore 'parameters' and 'typeParameters' for ParameterElementImpl. bc58bf598e Add summary serialization support for nullability suffixes. 8093f73424 [vm/dbc] Add UNREACHABLE() stubs to simulator_dbc.cc in 32-bit mode to make 32-build work 336fc9001c Fix for getting type of a DefaultFormalParameter during building types. e93c6b7ce1 Add AST representation of the late keyword 43eebea5a3 [kernel_worker] retry on failure 284a299543 Fix mustCallSuper for mixins; fixes [#36492](https://github.com/flutter/engine/issues/36492) 5a824581b7 Read directive annotations before returning offset. 703ccc974b Support for TypeParameter metadata. 242ed77040 Fix for FormalParameter without name. 92dd37081d Write / read Annotation element. d8a0d68bd6 Rename devcompiler to ddc 6d91643073 [vm, interpreter] Handle closure case of invoke-field-dispatchers as bytecode. b8a9711489 Update AstBuilder to handle "required" modifier ca28e2c8ce forward "required" modifier to parser listeners 250d931ecc When URI cannot be resolved, the library is null. 2491767a33 Use correct CompilationUnitElement for annotations. 4ef18fdb96 Fix nameOffset for Export/ImportElement. 7873dbdc1d Fix for duplicate declarations. 38049f3cb6 [vm, interpreter] Handle implicit static getters as bytecode. 714a082a5d Minimal integration of summary2 into AnalysisDriver. dd3530450d make "late" and "required" builtin keywords 836efd6520 Add a language_2 test for having an invalid type in an on clause 81e554ea43 parse "required" modifier for NNBD 1eab04ed3f Reland "[VM-debugger] resolve column breakpoint tokenposition into a single value" ec27b09e68 [vm, service] Fix deferral of service extension invocation to not be mislead by other OOB messages. 1e30bb90dc [vm/dbc] Support unboxed Int64 on DBC| +|skia-flutter-autoroll |Roll src/third_party/skia 067861e14821..9b67802a4cd0 (6 commits) ([#8641](https://github.com/flutter/engine/issues/8641)) https://skia.googlesource.com/skia.git/%2Blog/067861e14821..9b67802a4cd0 git log 067861e1482118dd7071c931a90127c5ca0c9b21..9b67802a4cd01fbbe5fcbe9f4117ff68e7b8e751 --date=short --no-merges --format=%ad %ae %s 2019-04-19 martin@mainframe.co.uk Properly retrieve memory block in SkTextUtils 2019-04-18 recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com Roll recipe dependencies (trivial). 2019-04-18 halcanary@google.com SkPDF: move type1 font code into single file 2019-04-18 csmartdalton@google.com Swap front and back stencil sides when rendering bottom-left 2019-04-18 bsalomon@google.com Swap x/y radii for EllipticalRRectOp depending on matrix. 2019-04-18 halcanary@google.com SkQP: consolidate cut_release scripts The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|Chinmay Garde |Remove DartSnapshotBuffer and dry up snapshot resolution logic. ([#8640](https://github.com/flutter/engine/issues/8640)) Fixes https://github.com/flutter/flutter/issues/26782.| +|Ben Konyi |Enable VM service authentication codes by default ([#8594](https://github.com/flutter/engine/issues/8594))| +|liyuqian |Generate layer unique id for raster cache key ([#8637](https://github.com/flutter/engine/issues/8637)) The raw pointer isn't a reliable id as the allocator can reuse an address that's just been released for another layer. This will fix Fuchsia bug FL-216. This problem was not affecting non-Fuchsia Flutter probably because non-Fuchsia Flutter purges the raster cache key much more frequently so we won't see a key collision. In Fuchsia, as the key has to wait for the Vulkan surface to render asynchronously, this suddenly becomes an issue.| +|skia-flutter-autoroll |Roll src/third_party/skia 2c2240f66805..067861e14821 (6 commits) ([#8636](https://github.com/flutter/engine/issues/8636)) https://skia.googlesource.com/skia.git/%2Blog/2c2240f66805..067861e14821 git log 2c2240f66805ac852507f7eea010c153b42485e3..067861e1482118dd7071c931a90127c5ca0c9b21 --date=short --no-merges --format=%ad %ae %s 2019-04-18 recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com Roll recipe dependencies (trivial). 2019-04-18 recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com Roll recipe dependencies (trivial). 2019-04-18 reed@google.com remove experimental from some APIs (that are no longer experiments) 2019-04-18 michaelludwig@google.com Fix quad type detection from SkPoint array 2019-04-18 brianosman@google.com Remove the axis-aligned vector special case to convexity checker 2019-04-18 ethannicholas@google.com fixed assertion failure in skslc SPIR-V output The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|Chinmay Garde |Merge runtime lifecycle unittests into the base test target. ([#8634](https://github.com/flutter/engine/issues/8634)) `//flutter/runtime: runtime_lifecycle_unittests` was added because the these assumed that there was no VM already running in the process. Running other tests in the base target would mess up that assumption. Now that all test targets have been updated to make sure the VM instance does not leak, the tests in this target can be merged. LUCI bots don’t need to be patched as these tests were only ever run on the trybots.| +|Ben Konyi |Add support for authentication codes via MDNS on iOS ([#8625](https://github.com/flutter/engine/issues/8625))| +|Chinmay Garde |Avoid leaking the VM in the shell unittests and assert VM state in existing tests. ([#8628](https://github.com/flutter/engine/issues/8628))| +|liyuqian |Reland elevation test ([#8633](https://github.com/flutter/engine/issues/8633)) Reland "Add a unit test for PhysicalShapeLayer ([#8616](https://github.com/flutter/engine/issues/8616))" This reverts commit 91b71070f55ffc38c432babc7d9bb68ac2720d8d. The only change is the namespace.| +|Jason Simmons |Add an adjustment to the line width check in LineBreaker::addWordBreak ([#8623](https://github.com/flutter/engine/issues/8623)) currentLineWidth is the width passed into Paragraph layout, which comes from the maxIntrinsicWidth returned by a previous call to Paragraph layout. That width is calculated by Layout::measureText. postBreak is calculated from the character widths in the LineBreaker. A slight mismatch between these two widths may unnecessarily cause the insertion of desperate breaks in addWordBreak. Adding some slack to currentLineWidth works around this. Fixes https://github.com/flutter/flutter/issues/30347| +|skia-flutter-autoroll |Roll src/third_party/skia a94670bd08cd..2c2240f66805 (2 commits) ([#8632](https://github.com/flutter/engine/issues/8632)) https://skia.googlesource.com/skia.git/%2Blog/a94670bd08cd..2c2240f66805 git log a94670bd08cd52a19bf72223d63e2cc808b6b057..2c2240f66805ac852507f7eea010c153b42485e3 --date=short --no-merges --format=%ad %ae %s 2019-04-17 bungeman@google.com Make more SkTypeface virtuals pure. 2019-04-18 borenet@google.com [infra] Fixes for chrome_release_branch The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|Justin McCandless |Tight Paragraph Width ([#8530](https://github.com/flutter/engine/issues/8530)) Calculate and expose paragraph tightWidth to the framework to allow drawing Text based on this.| +|Justin McCandless |Glitchiness with Tab Characters ([#8591](https://github.com/flutter/engine/issues/8591)) Fix a bug that caused jumping and flashing when entering tab characters into a TextField.| +|skia-flutter-autoroll |Roll src/third_party/skia 847d55be4e62..a94670bd08cd (1 commits) ([#8631](https://github.com/flutter/engine/issues/8631)) https://skia.googlesource.com/skia.git/%2Blog/847d55be4e62..a94670bd08cd git log 847d55be4e6273fc3cd9c0b30c7bfc8a2d6575b7..a94670bd08cd52a19bf72223d63e2cc808b6b057 --date=short --no-merges --format=%ad %ae %s 2019-04-18 hcm@google.com Update Skia milestone to 76 The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|skia-flutter-autoroll |Roll src/third_party/skia ced2b79d00f9..847d55be4e62 (3 commits) ([#8630](https://github.com/flutter/engine/issues/8630)) https://skia.googlesource.com/skia.git/%2Blog/ced2b79d00f9..847d55be4e62 git log ced2b79d00f9370cbd874d1462757b554655648f..847d55be4e6273fc3cd9c0b30c7bfc8a2d6575b7 --date=short --no-merges --format=%ad %ae %s 2019-04-18 skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com Update go_deps asset 2019-04-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/externals/angle2 c832cdd75f75..82bcffa78747 (7 commits) 2019-04-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/externals/swiftshader 84c3a94e1450..abaecd5f2ba7 (6 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|skia-flutter-autoroll |Roll src/third_party/skia 14c90c1ca218..ced2b79d00f9 (1 commits) ([#8629](https://github.com/flutter/engine/issues/8629)) https://skia.googlesource.com/skia.git/%2Blog/14c90c1ca218..ced2b79d00f9 git log 14c90c1ca218428418b82be5684bb71f13e81f60..ced2b79d00f9370cbd874d1462757b554655648f --date=short --no-merges --format=%ad %ae %s 2019-04-18 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ../src a3585f70a100..f968f64cdf27 (436 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|Joseph Richey |Allow building without python2 ([#8605](https://github.com/flutter/engine/issues/8605)) Almost all of the python build files in the flutter project work if `python` is `python2` or `python3`. This is the only area where print is incorrectly used (for `python3`). Related issue: https://fuchsia-review.googlesource.com/c/fuchsia/+/272925| +|Chinmay Garde |Test saving compilation traces. ([#8618](https://github.com/flutter/engine/issues/8618))| +|Chinmay Garde |Avoid leaking the VM in runtime_unittests and update failing tests. ([#8626](https://github.com/flutter/engine/issues/8626)) The failing tests were depending on the old assumption that the VM would never shutdown.| +|Chinmay Garde |Revert "Add a unit test for PhysicalShapeLayer ([#8616](https://github.com/flutter/engine/issues/8616))" ([#8627](https://github.com/flutter/engine/issues/8627)) This reverts commit 8b667b0178f135411ad72d7e5b3304cc46ff7dcf.| +|liyuqian |Add a unit test for PhysicalShapeLayer ([#8616](https://github.com/flutter/engine/issues/8616)) An unnecessary PrerollContext copy is also removed. The added unit test will catch the error if we forget to subtract the elevation after the copy removal. This change has been tested with the framework (`flutter test --local-engine=host_debug_unopt`).| +|Chinmay Garde |Assert that all VM launches in the process have the same opinion on whether the VM should be leaked in the process. ([#8622](https://github.com/flutter/engine/issues/8622)) There is a possibility for a VM launch to not have a requisite shutdown if a previous launch asked to leak the VM instance in the process. Embedders have to ensure (via their Embedding APIs) that all instances of VM launch use consistent settings.| +|liyuqian |Revert "Roll src/third_party/dart 7b9ab9f353..714a082a5d (7 commits)" ([#8624](https://github.com/flutter/engine/issues/8624)) This reverts commit 80e934e3241fa8b177beea5a6af5f06cc2939923. Reason for the revert: breaks the post-submit Mac iOS build bot.| +|Chinmay Garde |Avoid manually shutting down engine managed isolates. ([#8621](https://github.com/flutter/engine/issues/8621)) These are now shutdown by the VM and cleanup waits for their shutdown.| +|Ben Konyi |Roll src/third_party/dart 7b9ab9f353..714a082a5d (7 commits) 714a082a5d Minimal integration of summary2 into AnalysisDriver. dd3530450d make "late" and "required" builtin keywords 836efd6520 Add a language_2 test for having an invalid type in an on clause 81e554ea43 parse "required" modifier for NNBD 1eab04ed3f Reland "[VM-debugger] resolve column breakpoint tokenposition into a single value" ec27b09e68 [vm, service] Fix deferral of service extension invocation to not be mislead by other OOB messages. 1e30bb90dc [vm/dbc] Support unboxed Int64 on DBC| +|skia-flutter-autoroll |Roll src/third_party/skia 6f9047027be3..14c90c1ca218 (5 commits) ([#8619](https://github.com/flutter/engine/issues/8619)) https://skia.googlesource.com/skia.git/%2Blog/6f9047027be3..14c90c1ca218 git log 6f9047027be329719bb9fe79e6f892724e6a0fa2..14c90c1ca218428418b82be5684bb71f13e81f60 --date=short --no-merges --format=%ad %ae %s 2019-04-16 bungeman@google.com Reland &[#34](https://github.com/flutter/engine/issues/34);Remove includes from SkFontTypes.h&[#34](https://github.com/flutter/engine/issues/34); 2019-04-17 benjaminwagner@google.com Add __init__.py to page_sets 2019-04-17 robertphillips@google.com Non-substantive changes 2019-04-17 halcanary@google.com SkQP: fix model colorspace (16-bit gold images) 2019-04-17 egdaniel@google.com Add struct to wrap all the gpu flush options. The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|Shi-Hao Hong |Fix typo in comment ([#8617](https://github.com/flutter/engine/issues/8617))| +|liyuqian |Rename flow namespace to flutter ([#8615](https://github.com/flutter/engine/issues/8615)) This follows our namespace change from shell to flutter: https://github.com/flutter/engine/pull/8520.| +|Ben Konyi |Roll src/third_party/dart bc99f1ca28..7b9ab9f353 (5 commits) 7b9ab9f353 Add error ranges to more diagnostic tests 3782197e95 Sort summary_common.dart 37285467db Improvements to null_assertion_ambiguous_test b0c98d57fa Add the new manifest error codes to error codes list ebdefa3f5f add new "late" and "required" modifiers| +|skia-flutter-autoroll |Roll src/third_party/skia 5155e09d1466..6f9047027be3 (5 commits) ([#8613](https://github.com/flutter/engine/issues/8613)) https://skia.googlesource.com/skia.git/%2Blog/5155e09d1466..6f9047027be3 git log 5155e09d146665be078494247092fa990d5ae4a7..6f9047027be329719bb9fe79e6f892724e6a0fa2 --date=short --no-merges --format=%ad %ae %s 2019-04-17 recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com Roll recipe dependencies (trivial). 2019-04-16 reed@google.com Reland &[#34](https://github.com/flutter/engine/issues/34);Simplify SkTypeface::charsToGlyphs API to require UTF32 input&[#34](https://github.com/flutter/engine/issues/34); 2019-04-16 bsalomon@google.com Add flag to map buffer flags in GrCaps to indicate whether mapping a GrGpuBuffer for reading is synchronous or not. 2019-04-17 borenet@google.com [infra] More work on chrome_release_branch 2019-04-17 mtklein@google.com Add clang-cl arm64 builds The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|bungeman |Remove call to SkFont::setLinearMetrics ([#8612](https://github.com/flutter/engine/issues/8612)) This particular call doesn't do anything since the default is false anyway. In addition Skia is looking to remove this flag since setting it to true is now synonymous with setting the hinting to none.| +|stuartmorgan |Add FLEPluginRegistry for macOS ([#8611](https://github.com/flutter/engine/issues/8611)) Creates a minimal FLEPluginRegistry protocol, which is a subset of the FlutterPluginRegistry. This is a small step toward eventually merging the APIs, but allows changing the example project structure to better reflect what a future template will look like.| +|Zachary Anderson |[fuchsia] Fix SceneUpdateContext for new PaintContext field ([#8608](https://github.com/flutter/engine/issues/8608))| +|Michael Klimushyn |Pipe Z bounds from ViewportMetrics to Flow ([#8583](https://github.com/flutter/engine/issues/8583)) This is the first step in making Flutter aware of and responsive to Z bound overflow. On its own this patch shouldn't result in any changes in behavior. This will need to be followed up with a patch in Fuchsia's Flutter runner to set the Z bounds after this lands, and another patch in the engine actually implementing the desired overflow behavior. This Z bound info is routed through the engine itself to make sure the bounds in flow are truly consistent from the Fuchsia runner. However these values should eventually be exposed to the framework as well.| +|Ben Konyi |Roll src/third_party/dart f0da03ca36..bc99f1ca28 (1 commits) bc99f1ca28 Test a few more uses of the nullable type decorator| +|skia-flutter-autoroll |Roll src/third_party/skia 33906ad1e26f..5155e09d1466 (4 commits) ([#8609](https://github.com/flutter/engine/issues/8609)) https://skia.googlesource.com/skia.git/%2Blog/33906ad1e26f..5155e09d1466 git log 33906ad1e26fd36430a70712382b3edc3970213c..5155e09d146665be078494247092fa990d5ae4a7 --date=short --no-merges --format=%ad %ae %s 2019-04-17 egdaniel@google.com Revert &[#34](https://github.com/flutter/engine/issues/34);added more SPIR-V RelaxedPrecision decorations&[#34](https://github.com/flutter/engine/issues/34); 2019-04-17 jvanverth@google.com Make Metal render loop more stable 2019-04-17 mtklein@google.com roll clang_win 2019-04-17 recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com Roll recipe dependencies (trivial). The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|Ben Konyi |Roll src/third_party/dart d9c40462c2..f0da03ca36 (1 commits) f0da03ca36 [vm/compiler] Do not include FPU registers on ARM if VFP is not supported| +|skia-flutter-autoroll |Roll src/third_party/skia e88d4382e1cf..33906ad1e26f (1 commits) ([#8604](https://github.com/flutter/engine/issues/8604)) https://skia.googlesource.com/skia.git/%2Blog/e88d4382e1cf..33906ad1e26f git log e88d4382e1cf0041ecc1f148e05fbf3b7d0fb7b1..33906ad1e26fd36430a70712382b3edc3970213c --date=short --no-merges --format=%ad %ae %s 2019-04-17 robertphillips@google.com Reland &[#34](https://github.com/flutter/engine/issues/34);Revert &[#34](https://github.com/flutter/engine/issues/34);Simplify SkTypeface::charsToGlyphs API to require UTF32 input&[#34](https://github.com/flutter/engine/issues/34);&[#34](https://github.com/flutter/engine/issues/34); The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|skia-flutter-autoroll |Roll src/third_party/skia 652b007a4cbb..e88d4382e1cf (4 commits) ([#8603](https://github.com/flutter/engine/issues/8603)) https://skia.googlesource.com/skia.git/%2Blog/652b007a4cbb..e88d4382e1cf git log 652b007a4cbb0b8c716510949456243573129ff4..e88d4382e1cf0041ecc1f148e05fbf3b7d0fb7b1 --date=short --no-merges --format=%ad %ae %s 2019-04-17 skia-recreate-skps@skia-swarming-bots.iam.gserviceaccount.com Update go_deps asset 2019-04-17 skia-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/externals/angle2 e7da32f1c73e..c832cdd75f75 (7 commits) 2019-04-17 skia-autoroll@skia-public.iam.gserviceaccount.com Roll third_party/externals/swiftshader 25be5bb97518..84c3a94e1450 (6 commits) 2019-04-17 skia-autoroll@skia-public.iam.gserviceaccount.com Roll ../src 95629c4c410f..a3585f70a100 (459 commits) The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autoroll/README.md If the roll is causing failures, please contact the current sheriff (herb@google.com), and stop the roller if necessary.| +|stuartmorgan |Add desktop shell unittests to test script ([#8600](https://github.com/flutter/engine/issues/8600)) Builds the unit test on all platforms, and adds them to the aggregate test script.| +|Ben Konyi |Roll src/third_party/dart 8e73b3c006..d9c40462c2 (4 commits) d9c40462c2 [vm] Rename kImplicitStaticFinalGetter to kImplicitStaticGetter. 9a5a720413 Remove dead/outdated lints from pkg/dev_compiler/README.md 9d15138c91 [tests] Revert the previous deletion of UI-as-Code const tests 523666a97a Fix messages_test.| +|skia-flutter-autoroll |Roll src/third_party/skia 70ed05e53ad2..652b007a4cbb (1 commits) ([#8601](https://github.com/flutter/engine/issues/8601)) https://skia.googlesource.com/skia.git/%2Blog/70ed05e53ad2..652b007a4cbb git log 70ed05e53ad244b3234415b447e5fcd53fb40e3b..652b007a4cbb0b8c716510949456243573129ff4 --date=short --no-merges --format=%ad %ae %s 2019-04-16 reed@google.com Revert &[#34](https://github.com/flutter/engine/issues/34);Revert &[#34](https://github.com/flutter/engine/issues/34);Simplify SkTypeface::charsToGlyphs API to require UTF32 input&[#34](https://github.com/flutter/engine/issues/34);&[#34](https://github.com/flutter/engine/issues/34); The AutoRoll server is located here: https://autoroll.skia.org/r/skia-flutter-autoroll Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+/main/autor \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/archive/PRs-addressed-between-1.5.4-and-1.7.8.md b/novelforge-project/agent-workspace/flutter/docs/releases/archive/PRs-addressed-between-1.5.4-and-1.7.8.md new file mode 100644 index 0000000000000000000000000000000000000000..5eb3e61c81b5cb4471fdf34124602eee21a6b73e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/archive/PRs-addressed-between-1.5.4-and-1.7.8.md @@ -0,0 +1,1704 @@ +# PRs addressed in `flutter/flutter` between `b593f5167bce84fb3cad5c258477bf3abc1b14eb` and `d51fd86` + + +## framework - 235 PRs + +[#21896](https://github.com/flutter/flutter/pull/21896) Bottom sheet scrolling + +[#28834](https://github.com/flutter/flutter/pull/28834) Sliver animated list + +[#29188](https://github.com/flutter/flutter/pull/29188) Fix 25807: implement move in sliver multibox widget + +[#29677](https://github.com/flutter/flutter/pull/29677) Fix calculation of hero rectTween when Navigator isn't fullscreen + +[#29683](https://github.com/flutter/flutter/pull/29683) Show/hide toolbar and handles based on device kind + +[#29809](https://github.com/flutter/flutter/pull/29809) Fix text selection toolbar appearing under obstructions + +[#29824](https://github.com/flutter/flutter/pull/29824) Cupertino localization step 8: create a gen_cupertino_localizations and generate one for cupertino english and french + +[#29954](https://github.com/flutter/flutter/pull/29954) Cupertino localization step 9: add tests + +[#30040](https://github.com/flutter/flutter/pull/30040) Implement focus traversal for desktop platforms, shoehorn edition. + +[#30076](https://github.com/flutter/flutter/pull/30076) Implements FocusTraversalPolicy and DefaultFocusTraversal features. + +[#30129](https://github.com/flutter/flutter/pull/30129) Fix refresh control in the gallery demo, update comments + +[#30224](https://github.com/flutter/flutter/pull/30224) Cupertino localization step 10: update the flutter_localizations README + +[#30339](https://github.com/flutter/flutter/pull/30339) Add buttons to gestures + +[#30388](https://github.com/flutter/flutter/pull/30388) Add hintStyle in SearchDelegate + +[#30406](https://github.com/flutter/flutter/pull/30406) Add binaryMessenger constructor argument to platform channels + +[#30572](https://github.com/flutter/flutter/pull/30572) [Material] Adaptive Slider constructor + +[#30579](https://github.com/flutter/flutter/pull/30579) PointerDownEvent and PointerMoveEvent default `buttons` to 1 + +[#30612](https://github.com/flutter/flutter/pull/30612) Added required parameters to FlexibleSpaceBarSettings + +[#30796](https://github.com/flutter/flutter/pull/30796) Unbounded TextField width error + +[#30874](https://github.com/flutter/flutter/pull/30874) Redo "Remove pressure customization from some pointer events" + +[#30884](https://github.com/flutter/flutter/pull/30884) [Material] Update TabController to support dynamic Tabs + +[#30942](https://github.com/flutter/flutter/pull/30942) rectMoreOrLess equals, prep for 64bit rects + +[#30979](https://github.com/flutter/flutter/pull/30979) fix issue 30526: rounding error + +[#30983](https://github.com/flutter/flutter/pull/30983) Refactor core uses of FlutterError. + +[#30988](https://github.com/flutter/flutter/pull/30988) Tight Paragraph Width + +[#31018](https://github.com/flutter/flutter/pull/31018) [Material] selected/unselected label styles + icon themes on BottomNavigationBar + +[#31025](https://github.com/flutter/flutter/pull/31025) added `scrimColor` property in Scaffold widget + +[#31093](https://github.com/flutter/flutter/pull/31093) Make the matchesGoldenFile docs link to an explanation of how to create golden image files + +[#31095](https://github.com/flutter/flutter/pull/31095) Add buttons customization to WidgetController and related testing classes + +[#31097](https://github.com/flutter/flutter/pull/31097) Fix text field selection toolbar under Opacity + +[#31227](https://github.com/flutter/flutter/pull/31227) Adding CupertinoTabController + +[#31228](https://github.com/flutter/flutter/pull/31228) Fix ExpansionPanelList Duplicate Global Keys Exception + +[#31275](https://github.com/flutter/flutter/pull/31275) Update SnackBar to allow for support of the new style from Material spec + +[#31291](https://github.com/flutter/flutter/pull/31291) Add some docs to StatefulBuilder + +[#31294](https://github.com/flutter/flutter/pull/31294) Improve Radio Documentation with Example + +[#31295](https://github.com/flutter/flutter/pull/31295) Improve ThemeData.accentColor connection to secondary color + +[#31316](https://github.com/flutter/flutter/pull/31316) Add InkWell docs on transitions and ink splash clipping + +[#31317](https://github.com/flutter/flutter/pull/31317) Add docs to AppBar + +[#31318](https://github.com/flutter/flutter/pull/31318) Add BottomSheetTheme to enable theming color, elevation, shape of BottomSheet + +[#31326](https://github.com/flutter/flutter/pull/31326) Add more shuffle cupertino icons + +[#31332](https://github.com/flutter/flutter/pull/31332) iOS selection handles are invisible + +[#31333](https://github.com/flutter/flutter/pull/31333) Clean up flutter_test/test/controller_test.dart + +[#31420](https://github.com/flutter/flutter/pull/31420) Add more breadcrumb docs to Transformation + +[#31421](https://github.com/flutter/flutter/pull/31421) Add Widget of the Week video to SizedBox + +[#31438](https://github.com/flutter/flutter/pull/31438) Implements focus handling and hover for Material buttons. + +[#31464](https://github.com/flutter/flutter/pull/31464) CupertinoPicker fidelity revision + +[#31485](https://github.com/flutter/flutter/pull/31485) Prevent exception being thrown on hasScrolledBody + +[#31493](https://github.com/flutter/flutter/pull/31493) Keycode generation doc fix + +[#31497](https://github.com/flutter/flutter/pull/31497) Revert "Fix 25807: implement move for sliver multibox widget (#29188)" + +[#31502](https://github.com/flutter/flutter/pull/31502) Improve Tabs documentation + +[#31514](https://github.com/flutter/flutter/pull/31514) Date picker layout exceptions + +[#31520](https://github.com/flutter/flutter/pull/31520) Don't add empty OpacityLayer to the engine + +[#31538](https://github.com/flutter/flutter/pull/31538) Fix typo in docs + +[#31566](https://github.com/flutter/flutter/pull/31566) TimePicker moves to minute mode after hour selection + +[#31568](https://github.com/flutter/flutter/pull/31568) fix transform assert + +[#31574](https://github.com/flutter/flutter/pull/31574) Improve RadioListTile Callback Behavior Consistency + +[#31581](https://github.com/flutter/flutter/pull/31581) Fix Exception on Nested TabBarView disposal + +[#31600](https://github.com/flutter/flutter/pull/31600) Re-enable const + +[#31619](https://github.com/flutter/flutter/pull/31619) Fix the documentation for UiKitView#creationParams + +[#31623](https://github.com/flutter/flutter/pull/31623) fix edge swiping and dropping back at starting point + +[#31634](https://github.com/flutter/flutter/pull/31634) Improve canvas example in sample dart ui app + +[#31644](https://github.com/flutter/flutter/pull/31644) Cupertino localization step 12: push translation for all supported languages + +[#31662](https://github.com/flutter/flutter/pull/31662) added shape property to SliverAppBar + +[#31681](https://github.com/flutter/flutter/pull/31681) [Material] Create a themable Range Slider (continuous and discrete) + +[#31687](https://github.com/flutter/flutter/pull/31687) Center iOS caret, remove constant offsets that do not scale + +[#31693](https://github.com/flutter/flutter/pull/31693) Adds a note to Radio's/RadioListTile's onChange + +[#31696](https://github.com/flutter/flutter/pull/31696) Attempt to reduce usage of runtimeType + +[#31699](https://github.com/flutter/flutter/pull/31699) Re-land: Add support for Tooltip hover + +[#31701](https://github.com/flutter/flutter/pull/31701) Add more asserts to check matrix validity + +[#31761](https://github.com/flutter/flutter/pull/31761) Support clipBehavior changes in hot reload + +[#31763](https://github.com/flutter/flutter/pull/31763) Fix ScrollbarPainter thumbExtent calculation and add padding + +[#31798](https://github.com/flutter/flutter/pull/31798) Fix tab indentation + +[#31802](https://github.com/flutter/flutter/pull/31802) Reland "Fix text field selection toolbar under Opacity (#31097)" + +[#31804](https://github.com/flutter/flutter/pull/31804) only build asset when there is asset declared in pubspec + +[#31819](https://github.com/flutter/flutter/pull/31819) Redo: Add buttons to gestures + +[#31822](https://github.com/flutter/flutter/pull/31822) remove unnecessary artificial delay in catalog example + +[#31824](https://github.com/flutter/flutter/pull/31824) fix FlutterDriver timeout + +[#31832](https://github.com/flutter/flutter/pull/31832) Allow DSS to be dragged when its children do not fill extent + +[#31851](https://github.com/flutter/flutter/pull/31851) Add documentation to Navigator + +[#31852](https://github.com/flutter/flutter/pull/31852) Text selection handles are sometimes not interactive + +[#31861](https://github.com/flutter/flutter/pull/31861) Add Horizontal Padding to Constrained Chip Label Calculations + +[#31890](https://github.com/flutter/flutter/pull/31890) apply fp hack to Flex + +[#31894](https://github.com/flutter/flutter/pull/31894) Introduce separate HitTestResults for Box and Sliver + +[#31902](https://github.com/flutter/flutter/pull/31902) Updated primaryColor docs to refer to colorScheme properties + +[#31903](https://github.com/flutter/flutter/pull/31903) Extract TODO comment from Image.asset dardoc + +[#31909](https://github.com/flutter/flutter/pull/31909) Change unfocus to unfocus the entire chain, not just the primary focus + +[#31929](https://github.com/flutter/flutter/pull/31929) Sample Code & Animation for Flow Widget + +[#31935](https://github.com/flutter/flutter/pull/31935) Redo#2: Add buttons to gestures + +[#31938](https://github.com/flutter/flutter/pull/31938) Update scrimDrawerColor with proper const format + +[#31987](https://github.com/flutter/flutter/pull/31987) Text wrap width + +[#32013](https://github.com/flutter/flutter/pull/32013) Cupertino Turkish Translation + +[#32025](https://github.com/flutter/flutter/pull/32025) Make Hover Listener respect transforms + +[#32041](https://github.com/flutter/flutter/pull/32041) Remove deprecated decodedCacheRatioCap + +[#32053](https://github.com/flutter/flutter/pull/32053) Increase TimePicker touch targets + +[#32059](https://github.com/flutter/flutter/pull/32059) fix issue 14014 read only text field + +[#32070](https://github.com/flutter/flutter/pull/32070) rename foreground and background to light and dark + +[#32086](https://github.com/flutter/flutter/pull/32086) Fix CupertinoSliverRefreshControl onRefresh callback + +[#32142](https://github.com/flutter/flutter/pull/32142) Fix RenderPointerListener so that callbacks aren't called at the wrong time. + +[#32147](https://github.com/flutter/flutter/pull/32147) Added state management docs/sample to SwitchListTile + +[#32177](https://github.com/flutter/flutter/pull/32177) Tab Animation Sample Video + +[#32192](https://github.com/flutter/flutter/pull/32192) Transform PointerEvents to the local coordinate system of the event receiver + +[#32328](https://github.com/flutter/flutter/pull/32328) Add breadcrumbs to TextOverflow + +[#32340](https://github.com/flutter/flutter/pull/32340) make immutables const + +[#32360](https://github.com/flutter/flutter/pull/32360) Allow flutter web to be compiled with flutter + +[#32380](https://github.com/flutter/flutter/pull/32380) const everything in Driver + +[#32408](https://github.com/flutter/flutter/pull/32408) More const conversions + +[#32410](https://github.com/flutter/flutter/pull/32410) Add ancestor and descendant finders to Driver + +[#32434](https://github.com/flutter/flutter/pull/32434) Support for replacing the TabController, after disposing the old one + +[#32437](https://github.com/flutter/flutter/pull/32437) Add assert that the root widget has been attached. + +[#32444](https://github.com/flutter/flutter/pull/32444) Updated some links + +[#32469](https://github.com/flutter/flutter/pull/32469) Let CupertinoNavigationBarBackButton take a custom onPressed + +[#32487](https://github.com/flutter/flutter/pull/32487) Add a more meaningful message to the assertion on children + +[#32527](https://github.com/flutter/flutter/pull/32527) Added 'enabled' property to the PopupMenuButton + +[#32528](https://github.com/flutter/flutter/pull/32528) Tapping a modal bottom sheet should not dismiss it by default + +[#32530](https://github.com/flutter/flutter/pull/32530) Add Actions to AppBar Sample Doc + +[#32620](https://github.com/flutter/flutter/pull/32620) Added ScrollController to TextField + +[#32638](https://github.com/flutter/flutter/pull/32638) Fix apidocs in _WidgetsAppState.basicLocaleListResolution + +[#32641](https://github.com/flutter/flutter/pull/32641) Updating dart.dev related links + +[#32654](https://github.com/flutter/flutter/pull/32654) Tabs code/doc cleanup + +[#32686](https://github.com/flutter/flutter/pull/32686) enable lint prefer_null_aware_operators + +[#32703](https://github.com/flutter/flutter/pull/32703) Add Doc Samples For CheckboxListTile, RadioListTile and SwitchListTile + +[#32711](https://github.com/flutter/flutter/pull/32711) use null aware operators + +[#32726](https://github.com/flutter/flutter/pull/32726) Material should not prevent ScrollNotifications from bubbling upwards + +[#32730](https://github.com/flutter/flutter/pull/32730) Add reverseDuration to AnimationController + +[#32776](https://github.com/flutter/flutter/pull/32776) Text field focus and hover support. + +[#32823](https://github.com/flutter/flutter/pull/32823) Add enableInteractiveSelection to CupertinoTextField + +[#32838](https://github.com/flutter/flutter/pull/32838) Handles hidden by keyboard + +[#32842](https://github.com/flutter/flutter/pull/32842) Allow "from" hero state to survive hero animation in a push transition + +[#32843](https://github.com/flutter/flutter/pull/32843) Added a missing dispose of an AnimationController that was leaking a ticker. + +[#32853](https://github.com/flutter/flutter/pull/32853) Add onBytesReceived callback to consolidateHttpClientResponseBytes() + +[#32857](https://github.com/flutter/flutter/pull/32857) Add debugNetworkImageHttpClientProvider + +[#32904](https://github.com/flutter/flutter/pull/32904) Use reverseDuration on Tooltip and InkWell + +[#32909](https://github.com/flutter/flutter/pull/32909) Documentation fix for debugProfileBuildsEnabled + +[#32911](https://github.com/flutter/flutter/pull/32911) Material Long Press Text Handle Flash + +[#32914](https://github.com/flutter/flutter/pull/32914) Make hover and focus not respond when buttons and fields are disabled. + +[#32936](https://github.com/flutter/flutter/pull/32936) Add some sanity to the ImageStream listener API + +[#32974](https://github.com/flutter/flutter/pull/32974) Fix disabled CupertinoTextField style + +[#33058](https://github.com/flutter/flutter/pull/33058) Add more missing returns + +[#33073](https://github.com/flutter/flutter/pull/33073) SliverAppBar shape property + +[#33080](https://github.com/flutter/flutter/pull/33080) Fixed several issues with confirmDismiss handling on the LeaveBehindItem demo. + +[#33090](https://github.com/flutter/flutter/pull/33090) [Material] Add support for hovered, pressed, and focused text color on Buttons. + +[#33148](https://github.com/flutter/flutter/pull/33148) ExpandIcon Custom Colors + +[#33152](https://github.com/flutter/flutter/pull/33152) ModalRoute resumes previous focus on didPopNext + +[#33164](https://github.com/flutter/flutter/pull/33164) remove Layer.replaceWith due to no usage and no tests + +[#33195](https://github.com/flutter/flutter/pull/33195) Slight clarification in the ImageCache docs + +[#33226](https://github.com/flutter/flutter/pull/33226) Explain hairline rendering in BorderSide.width docs + +[#33230](https://github.com/flutter/flutter/pull/33230) Framework support for font features in text styles + +[#33260](https://github.com/flutter/flutter/pull/33260) Pass an async callback to testWidgets. + +[#33279](https://github.com/flutter/flutter/pull/33279) Fix a problem in first focus determination. + +[#33298](https://github.com/flutter/flutter/pull/33298) Add actions and keyboard shortcut map support + +[#33361](https://github.com/flutter/flutter/pull/33361) (trivial) Rename test file + +[#33369](https://github.com/flutter/flutter/pull/33369) Add loading support to Image + +[#33370](https://github.com/flutter/flutter/pull/33370) Update FadeInImage to use new Image APIs + +[#33406](https://github.com/flutter/flutter/pull/33406) Add web safe indirection to Platform.isPlatform getters + +[#33431](https://github.com/flutter/flutter/pull/33431) Expose service client and app isolate in driver + +[#33442](https://github.com/flutter/flutter/pull/33442) fix GridView documentation + +[#33461](https://github.com/flutter/flutter/pull/33461) Various code cleanup improvements + +[#33462](https://github.com/flutter/flutter/pull/33462) Fix text scaling of strut style + +[#33467](https://github.com/flutter/flutter/pull/33467) fixed 33347 fill the gap during performLayout in SliverGrid and Slive… + +[#33473](https://github.com/flutter/flutter/pull/33473) fix 23723 rounding error + +[#33474](https://github.com/flutter/flutter/pull/33474) Fixed for DropdownButton crashing when a style was used that didn't include a fontSize + +[#33475](https://github.com/flutter/flutter/pull/33475) Move declaration of semantic handlers from detectors to recognizers + +[#33477](https://github.com/flutter/flutter/pull/33477) Fix onExit calling when the mouse is removed. + +[#33488](https://github.com/flutter/flutter/pull/33488) use toFixedAsString and DoubleProperty in diagnosticProperties + +[#33489](https://github.com/flutter/flutter/pull/33489) Remove empty file + +[#33531](https://github.com/flutter/flutter/pull/33531) Fixed broken link in debugProfileBuildsEnabled documentation + +[#33535](https://github.com/flutter/flutter/pull/33535) Custom height parameters for DataTable header and data rows + +[#33620](https://github.com/flutter/flutter/pull/33620) Document that offsets are returned in logical pixels + +[#33627](https://github.com/flutter/flutter/pull/33627) SliverFillRemaining flag for different use cases + +[#33628](https://github.com/flutter/flutter/pull/33628) DataTable Custom Horizontal Padding + +[#33632](https://github.com/flutter/flutter/pull/33632) Update the keycodes from source + +[#33634](https://github.com/flutter/flutter/pull/33634) Let there be scroll bars + +[#33653](https://github.com/flutter/flutter/pull/33653) Include advice about dispose in TextEditingController api + +[#33662](https://github.com/flutter/flutter/pull/33662) Prep for engine roll + +[#33663](https://github.com/flutter/flutter/pull/33663) Use conditional imports for flutter foundation libraries + +[#33665](https://github.com/flutter/flutter/pull/33665) [Trivial] Move dropdownValue into State in DropdownButton sample docs + +[#33674](https://github.com/flutter/flutter/pull/33674) Add documentation to ImplicitlyAnimatedWidgetState + +[#33695](https://github.com/flutter/flutter/pull/33695) Add pseudo-key synonyms for keys like shift, meta, alt, and control. + +[#33729](https://github.com/flutter/flutter/pull/33729) Update consolidateHttpClientResponseBytes() to use compressionState + +[#33739](https://github.com/flutter/flutter/pull/33739) fixed cupertinoTextField placeholder textAlign + +[#33794](https://github.com/flutter/flutter/pull/33794) Text inline widgets, TextSpan rework + +[#33802](https://github.com/flutter/flutter/pull/33802) Double double tap toggles instead of error + +[#33805](https://github.com/flutter/flutter/pull/33805) Fixing duplicate golden test names + +[#33808](https://github.com/flutter/flutter/pull/33808) fix ExpansionPanelList merge the header semantics when it is not nece… + +[#33814](https://github.com/flutter/flutter/pull/33814) Added a benchmark for ImageCache + +[#33842](https://github.com/flutter/flutter/pull/33842) Don't print warning message when running benchmarks test. + +[#33865](https://github.com/flutter/flutter/pull/33865) Correct version name for BottomNavigationBar golden test + +[#33868](https://github.com/flutter/flutter/pull/33868) Game controller button support + +[#33876](https://github.com/flutter/flutter/pull/33876) Reland "Framework support for font features in text styles" + +[#33880](https://github.com/flutter/flutter/pull/33880) Splitting golden file versioning out as an argument of matchesGoldenFile + +[#33886](https://github.com/flutter/flutter/pull/33886) Add currentSystemFrameTimeStamp to SchedulerBinding + +[#33901](https://github.com/flutter/flutter/pull/33901) Respond to AndroidView focus events. + +[#33917](https://github.com/flutter/flutter/pull/33917) 'the the' doc fix + +[#33946](https://github.com/flutter/flutter/pull/33946) Reland "Text inline widgets, TextSpan rework" + +[#33955](https://github.com/flutter/flutter/pull/33955) Add localFocalPoint to ScaleDetector + +[#33996](https://github.com/flutter/flutter/pull/33996) Remove unused/dead code from WidgetInspector + +[#33999](https://github.com/flutter/flutter/pull/33999) Updating MediaQuery with viewPadding + +[#34012](https://github.com/flutter/flutter/pull/34012) Extract DiagnosticsNode serializer from WidgetInspector + +[#34057](https://github.com/flutter/flutter/pull/34057) Add endIndent property to Divider and VerticalDivider + +[#34068](https://github.com/flutter/flutter/pull/34068) fix empty selection arrow when double clicked on empty read only text… + +[#34073](https://github.com/flutter/flutter/pull/34073) Dartdoc Generation README Improvements + +[#34112](https://github.com/flutter/flutter/pull/34112) Separate web and io implementations of network image + +[#34137](https://github.com/flutter/flutter/pull/34137) Added tool sample for PageController + +[#34175](https://github.com/flutter/flutter/pull/34175) Don't show scrollbar if there isn't enough content + +[#34243](https://github.com/flutter/flutter/pull/34243) update the Flutter.Frame event to use new engine APIs + +[#34285](https://github.com/flutter/flutter/pull/34285) fix Applying decoration for a table row widget will cause render exce… + +[#34298](https://github.com/flutter/flutter/pull/34298) Preserving SafeArea : Part 2 + +[#34355](https://github.com/flutter/flutter/pull/34355) Text field vertical align + +[#34365](https://github.com/flutter/flutter/pull/34365) redux of a change to use new engine APIs for Flutter.Frame events + +[#34368](https://github.com/flutter/flutter/pull/34368) Fix semantics_tester + +[#34388](https://github.com/flutter/flutter/pull/34388) Change API doc link to api.dart.dev + +[#34417](https://github.com/flutter/flutter/pull/34417) Include raw value in Diagnostics json for basic types + +[#34424](https://github.com/flutter/flutter/pull/34424) SizedBox documentation minor update + +[#34434](https://github.com/flutter/flutter/pull/34434) Semantics fixes + +[#34440](https://github.com/flutter/flutter/pull/34440) Add Driver command to get diagnostics tree + +[#34474](https://github.com/flutter/flutter/pull/34474) Release diagnostics + +[#34501](https://github.com/flutter/flutter/pull/34501) [Material] Fix TextDirection and selected thumb for RangeSliderThumbShape and RangeSliderValueIndicatorShape + +[#34508](https://github.com/flutter/flutter/pull/34508) add route information to Flutter.Navigation events + +[#34512](https://github.com/flutter/flutter/pull/34512) Make sure fab semantics end up on top + +[#34515](https://github.com/flutter/flutter/pull/34515) OutlineInputBorder adjusts for borderRadius that is too large + +[#34519](https://github.com/flutter/flutter/pull/34519) fix page scroll position rounding error + +[#34587](https://github.com/flutter/flutter/pull/34587) Do not copy paths, rects, and rrects when layer offset is zero + +[#34597](https://github.com/flutter/flutter/pull/34597) [Material] Update slider gallery demo, including range slider + +[#34664](https://github.com/flutter/flutter/pull/34664) Adjust defaults in docs to match new defaults in code. + +[#34679](https://github.com/flutter/flutter/pull/34679) Fix-up code sample for TweenSequence + +[#34683](https://github.com/flutter/flutter/pull/34683) add read only semantics flag + +[#34684](https://github.com/flutter/flutter/pull/34684) Add more structure to errors. + +[#34758](https://github.com/flutter/flutter/pull/34758) Added some Widgets of the Week Videos to documentation + +[#34859](https://github.com/flutter/flutter/pull/34859) Fix Vertical Alignment Regression + +[#34863](https://github.com/flutter/flutter/pull/34863) Prepare for HttpClientResponse Uint8List SDK change + +[#34869](https://github.com/flutter/flutter/pull/34869) [Material] Properly call onChangeStart and onChangeEnd in Range Slider + +[#34870](https://github.com/flutter/flutter/pull/34870) Add test case for Flutter Issue #27677 as a benchmark. + +[#34919](https://github.com/flutter/flutter/pull/34919) Remove duplicate error parts + +[#34932](https://github.com/flutter/flutter/pull/34932) Added onChanged property to TextFormField + +[#35046](https://github.com/flutter/flutter/pull/35046) Add generated Icon diagram to api docs + +## tool - 140 PRs + +[#28808](https://github.com/flutter/flutter/pull/28808) updated tearDownAll function + +[#31028](https://github.com/flutter/flutter/pull/31028) Adds support for generating projects that use AndroidX support libraries + +[#31039](https://github.com/flutter/flutter/pull/31039) Fix bundle id on iOS launch using flutter run + +[#31282](https://github.com/flutter/flutter/pull/31282) Stop precaching the artifacts for dynamic mode. + +[#31329](https://github.com/flutter/flutter/pull/31329) Add Xcode build script for macOS target + +[#31342](https://github.com/flutter/flutter/pull/31342) check if project exists before regenerating platform specific tooling + +[#31359](https://github.com/flutter/flutter/pull/31359) Remove support for building dynamic patches on Android + +[#31399](https://github.com/flutter/flutter/pull/31399) add ignorable track-widget-creation flag to build aot + +[#31400](https://github.com/flutter/flutter/pull/31400) add printError messages and tool exit to android device + +[#31404](https://github.com/flutter/flutter/pull/31404) throw toolExit instead of rethrowing on filesystem exceptions + +[#31406](https://github.com/flutter/flutter/pull/31406) if there is no .ios or ios sub-project, don't attempt building for iOS + +[#31419](https://github.com/flutter/flutter/pull/31419) Add a note about events coming from the server + +[#31446](https://github.com/flutter/flutter/pull/31446) Allow filtering devices to only those supported by current project + +[#31491](https://github.com/flutter/flutter/pull/31491) Allow adb stdout to contain the port number without failing + +[#31515](https://github.com/flutter/flutter/pull/31515) Support local engine and asset sync for macOS + +[#31526](https://github.com/flutter/flutter/pull/31526) replace no-op log reader with real implementation + +[#31591](https://github.com/flutter/flutter/pull/31591) make sure we exit early if the Runner.xcodeproj file is missing + +[#31631](https://github.com/flutter/flutter/pull/31631) Teach Linux to use local engine + +[#31736](https://github.com/flutter/flutter/pull/31736) update packages and unpin build + +[#31757](https://github.com/flutter/flutter/pull/31757) Make FlutterProject factories synchronous + +[#31759](https://github.com/flutter/flutter/pull/31759) Remove deprecated commands + +[#31765](https://github.com/flutter/flutter/pull/31765) Initial sketch of tools testbed + +[#31798](https://github.com/flutter/flutter/pull/31798) Fix tab indentation + +[#31804](https://github.com/flutter/flutter/pull/31804) only build asset when there is asset declared in pubspec + +[#31807](https://github.com/flutter/flutter/pull/31807) Make const available for classes that override AssetBundle + +[#31812](https://github.com/flutter/flutter/pull/31812) Fix #31764: Show appropriate error message when fonts pubspec.yaml isn't iterable + +[#31825](https://github.com/flutter/flutter/pull/31825) Fix missing return statements on function literals + +[#31835](https://github.com/flutter/flutter/pull/31835) Cherry-pick ADB CrOS fix to beta + +[#31850](https://github.com/flutter/flutter/pull/31850) Make Gradle error message more specific + +[#31868](https://github.com/flutter/flutter/pull/31868) Handle notification errors + +[#31873](https://github.com/flutter/flutter/pull/31873) Add basic desktop linux checks + +[#31889](https://github.com/flutter/flutter/pull/31889) Start abstracting platform logic builds behind a shared interface + +[#31895](https://github.com/flutter/flutter/pull/31895) Report CompileTime metric in flutter build aot --report-timings. + +[#32060](https://github.com/flutter/flutter/pull/32060) make hotfix use a plus instead of minus + +[#32071](https://github.com/flutter/flutter/pull/32071) [flutter_tool] In 'attach' use platform dill etc from the Fuchsia SDK + +[#32072](https://github.com/flutter/flutter/pull/32072) don't NPE with empty pubspec + +[#32126](https://github.com/flutter/flutter/pull/32126) Bump multicast_dns version + +[#32335](https://github.com/flutter/flutter/pull/32335) Teach flutter msbuild for Windows + +[#32360](https://github.com/flutter/flutter/pull/32360) Allow flutter web to be compiled with flutter + +[#32404](https://github.com/flutter/flutter/pull/32404) Comment out .vscode/ in gitignore for templates + +[#32444](https://github.com/flutter/flutter/pull/32444) Updated some links + +[#32503](https://github.com/flutter/flutter/pull/32503) Add more missing returns + +[#32787](https://github.com/flutter/flutter/pull/32787) Support 32 and 64 bit + +[#32849](https://github.com/flutter/flutter/pull/32849) [flutter_tool] Adds support for 'run' for Fuchsia devices + +[#33041](https://github.com/flutter/flutter/pull/33041) Rename `flutter packages` to `flutter pub` + +[#33078](https://github.com/flutter/flutter/pull/33078) don't send crash reports if on a user branch + +[#33146](https://github.com/flutter/flutter/pull/33146) [flutter_tool] Don't look for Fuchsia artifacts on Windows + +[#33191](https://github.com/flutter/flutter/pull/33191) Remove colon from Gradle task name since it's deprecated + +[#33197](https://github.com/flutter/flutter/pull/33197) Wire up hot restart and incremental rebuilds for web + +[#33225](https://github.com/flutter/flutter/pull/33225) Reland "Clean up some flutter_tools tests and roll dependencies" + +[#33228](https://github.com/flutter/flutter/pull/33228) Make Paths absolute in settings.gradle + +[#33263](https://github.com/flutter/flutter/pull/33263) [flutter_tool] Improve Fuchsia 'run' tests + +[#33264](https://github.com/flutter/flutter/pull/33264) Add local overrides to testbed and provide more defaults + +[#33271](https://github.com/flutter/flutter/pull/33271) No longer necessary with ddc fix + +[#33272](https://github.com/flutter/flutter/pull/33272) Add mustRunAfter on mergeAssets task to force task ordering + +[#33277](https://github.com/flutter/flutter/pull/33277) Implement macOS support in `flutter doctor` + +[#33282](https://github.com/flutter/flutter/pull/33282) [flutter_tool] Use product runner in Fuchsia release build + +[#33283](https://github.com/flutter/flutter/pull/33283) Fix relative paths and snapshot logic in tool + +[#33284](https://github.com/flutter/flutter/pull/33284) make sure we build test targets too + +[#33297](https://github.com/flutter/flutter/pull/33297) Instrument add to app flows + +[#33374](https://github.com/flutter/flutter/pull/33374) Devfs cleanup and testing + +[#33443](https://github.com/flutter/flutter/pull/33443) Wrap Windows build invocation in a batch script + +[#33448](https://github.com/flutter/flutter/pull/33448) Use vswhere to find Visual Studio + +[#33450](https://github.com/flutter/flutter/pull/33450) Do not return null from IosProject.isSwift + +[#33454](https://github.com/flutter/flutter/pull/33454) ensure unpack declares required artifacts + +[#33458](https://github.com/flutter/flutter/pull/33458) Add to app measurement + +[#33466](https://github.com/flutter/flutter/pull/33466) [flutter_tool] Misc. fixes for Fuchsia + +[#33472](https://github.com/flutter/flutter/pull/33472) add daemon command to enumerate supported platforms + +[#33525](https://github.com/flutter/flutter/pull/33525) Add capability to flutter test --platform=chrome + +[#33526](https://github.com/flutter/flutter/pull/33526) Update Fuchsia SDK + +[#33533](https://github.com/flutter/flutter/pull/33533) Reland - Wire up hot restart and incremental rebuilds for web + +[#33540](https://github.com/flutter/flutter/pull/33540) Pass local engine variables to Windows build + +[#33608](https://github.com/flutter/flutter/pull/33608) Restructure macOS project files + +[#33611](https://github.com/flutter/flutter/pull/33611) Use Dart's new direct ELF generator to package AOT blobs as shared libraries in Android APKs + +[#33629](https://github.com/flutter/flutter/pull/33629) Add real-er restart for web using webkit inspection protocol + +[#33636](https://github.com/flutter/flutter/pull/33636) Implement plugin tooling support for macOS + +[#33676](https://github.com/flutter/flutter/pull/33676) Removing old golden checkout for integration test + +[#33684](https://github.com/flutter/flutter/pull/33684) Disable CocoaPods input and output paths in Xcode build phase and adopt new Xcode build system + +[#33696](https://github.com/flutter/flutter/pull/33696) Generate ELF shared libraries and allow multi-abi libs in APKs and App bundles + +[#33846](https://github.com/flutter/flutter/pull/33846) [flutter_tool] Fix 'q' for Fuchsia profile/debug mode + +[#33852](https://github.com/flutter/flutter/pull/33852) Disable CocoaPods input and output paths in Xcode build phase and adopt new Xcode build system + +[#33859](https://github.com/flutter/flutter/pull/33859) Reland support flutter test on platform chrome + +[#33867](https://github.com/flutter/flutter/pull/33867) Remove environment variable guards for command line desktop and web + +[#33872](https://github.com/flutter/flutter/pull/33872) Add 'doctor' support for Windows + +[#33874](https://github.com/flutter/flutter/pull/33874) Prevent windows web doctor from launching chrome + +[#33892](https://github.com/flutter/flutter/pull/33892) add benchmarks to track web size + +[#33923](https://github.com/flutter/flutter/pull/33923) [flutter_tool] Track APK sha calculation time + +[#33924](https://github.com/flutter/flutter/pull/33924) Added --dart-flags option to flutter run + +[#33951](https://github.com/flutter/flutter/pull/33951) Whitelist adb.exe heap corruption exit code. + +[#33956](https://github.com/flutter/flutter/pull/33956) Codegen an entrypoint for flutter web applications + +[#33980](https://github.com/flutter/flutter/pull/33980) Increase daemon protocol version for getSupportedPlatforms + +[#33990](https://github.com/flutter/flutter/pull/33990) Add device category for daemon + +[#34018](https://github.com/flutter/flutter/pull/34018) Add flutter create for the web + +[#34050](https://github.com/flutter/flutter/pull/34050) limit open files on macOS when copying assets + +[#34066](https://github.com/flutter/flutter/pull/34066) Adds the androidX flag to a modules pubspec.yaml template so it is se… + +[#34074](https://github.com/flutter/flutter/pull/34074) add analytics fields for attached device os version & run mode + +[#34081](https://github.com/flutter/flutter/pull/34081) Report async callback errors that currently go unreported. + +[#34084](https://github.com/flutter/flutter/pull/34084) make running on web spooky + +[#34090](https://github.com/flutter/flutter/pull/34090) More verification on flutter build web, add tests and cleanup + +[#34112](https://github.com/flutter/flutter/pull/34112) Separate web and io implementations of network image + +[#34123](https://github.com/flutter/flutter/pull/34123) Generate ELF shared libraries and allow multi-abi libs in APKs and App bundles + +[#34159](https://github.com/flutter/flutter/pull/34159) Use product define for flutter web and remove extra asset server + +[#34162](https://github.com/flutter/flutter/pull/34162) Update the Fuchsia SDK + +[#34181](https://github.com/flutter/flutter/pull/34181) Reland "Added --dart-flags option to flutter run (#33924)" + +[#34189](https://github.com/flutter/flutter/pull/34189) Instrument usage of include_flutter.groovy and xcode_backend.sh + +[#34255](https://github.com/flutter/flutter/pull/34255) [flutter_tool] Don't truncate verbose logs from _flutter.listViews + +[#34276](https://github.com/flutter/flutter/pull/34276) [flutter_tool,fuchsia] Prefetch tiles when starting an app + +[#34282](https://github.com/flutter/flutter/pull/34282) Split gradle_plugin_test.dart + +[#34288](https://github.com/flutter/flutter/pull/34288) Report commands that resulted in success or failure + +[#34291](https://github.com/flutter/flutter/pull/34291) Check whether FLUTTER_ROOT and FLUTTER_ROOT/bin are writable. + +[#34293](https://github.com/flutter/flutter/pull/34293) Change Xcode developmentRegion to 'en' and CFBundleDevelopmentRegion to DEVELOPMENT_LANGUAGE + +[#34295](https://github.com/flutter/flutter/pull/34295) Prepare for Uint8List SDK breaking changes + +[#34353](https://github.com/flutter/flutter/pull/34353) Refactor Gradle plugin + +[#34369](https://github.com/flutter/flutter/pull/34369) Remove unused flag `--target-platform` from `flutter run` + +[#34376](https://github.com/flutter/flutter/pull/34376) Add missing pieces for 'driver' support on macOS + +[#34447](https://github.com/flutter/flutter/pull/34447) [flutter_tool,fuchsia] Update the install flow for packaging migration. + +[#34460](https://github.com/flutter/flutter/pull/34460) Add back ability to override the local engine in Gradle + +[#34517](https://github.com/flutter/flutter/pull/34517) pass .packages path to snapshot invocation + +[#34526](https://github.com/flutter/flutter/pull/34526) retry on HttpException during cache download + +[#34527](https://github.com/flutter/flutter/pull/34527) Don't crash on invalid .packages file + +[#34529](https://github.com/flutter/flutter/pull/34529) Remove compilation trace and dynamic support code + +[#34573](https://github.com/flutter/flutter/pull/34573) Ensures flutter jar is added to all build types on plugin projects + +[#34584](https://github.com/flutter/flutter/pull/34584) fix a typo + +[#34589](https://github.com/flutter/flutter/pull/34589) Remove most of the target logic for build web, cleanup rules + +[#34606](https://github.com/flutter/flutter/pull/34606) Remove portions of the Gradle script related to dynamic patching + +[#34616](https://github.com/flutter/flutter/pull/34616) Kill compiler process when test does not exit cleanly + +[#34624](https://github.com/flutter/flutter/pull/34624) Break down flutter doctor validations and results + +[#34685](https://github.com/flutter/flutter/pull/34685) Close platform when tests are complete (dispose compiler and delete font files) + +[#34686](https://github.com/flutter/flutter/pull/34686) unpin build daemon and roll dependencies + +[#34725](https://github.com/flutter/flutter/pull/34725) Fix NPE in flutter tools + +[#34736](https://github.com/flutter/flutter/pull/34736) Remove flags related to dynamic patching + +[#34755](https://github.com/flutter/flutter/pull/34755) Add linux doctor implementation + +[#34785](https://github.com/flutter/flutter/pull/34785) Tweak the display name of emulators + +[#34794](https://github.com/flutter/flutter/pull/34794) Add `emulatorID` field to devices in daemon + +[#34802](https://github.com/flutter/flutter/pull/34802) Prefer ephemeral devices from command line run + +[#34856](https://github.com/flutter/flutter/pull/34856) set device name to Chrome + +[#34885](https://github.com/flutter/flutter/pull/34885) Reland: rename web device + +[#35074](https://github.com/flutter/flutter/pull/35074) Attempt to enable tool coverage redux + +[#35084](https://github.com/flutter/flutter/pull/35084) Move findTargetDevices to DeviceManager + +[#35092](https://github.com/flutter/flutter/pull/35092) Add FlutterProjectFactory so that it can be overridden internally. + +## f: material design - 76 PRs + +[#21896](https://github.com/flutter/flutter/pull/21896) Bottom sheet scrolling + +[#29188](https://github.com/flutter/flutter/pull/29188) Fix 25807: implement move in sliver multibox widget + +[#29809](https://github.com/flutter/flutter/pull/29809) Fix text selection toolbar appearing under obstructions + +[#30388](https://github.com/flutter/flutter/pull/30388) Add hintStyle in SearchDelegate + +[#30572](https://github.com/flutter/flutter/pull/30572) [Material] Adaptive Slider constructor + +[#30612](https://github.com/flutter/flutter/pull/30612) Added required parameters to FlexibleSpaceBarSettings + +[#30796](https://github.com/flutter/flutter/pull/30796) Unbounded TextField width error + +[#30884](https://github.com/flutter/flutter/pull/30884) [Material] Update TabController to support dynamic Tabs + +[#30942](https://github.com/flutter/flutter/pull/30942) rectMoreOrLess equals, prep for 64bit rects + +[#31018](https://github.com/flutter/flutter/pull/31018) [Material] selected/unselected label styles + icon themes on BottomNavigationBar + +[#31025](https://github.com/flutter/flutter/pull/31025) added `scrimColor` property in Scaffold widget + +[#31228](https://github.com/flutter/flutter/pull/31228) Fix ExpansionPanelList Duplicate Global Keys Exception + +[#31275](https://github.com/flutter/flutter/pull/31275) Update SnackBar to allow for support of the new style from Material spec + +[#31294](https://github.com/flutter/flutter/pull/31294) Improve Radio Documentation with Example + +[#31295](https://github.com/flutter/flutter/pull/31295) Improve ThemeData.accentColor connection to secondary color + +[#31316](https://github.com/flutter/flutter/pull/31316) Add InkWell docs on transitions and ink splash clipping + +[#31317](https://github.com/flutter/flutter/pull/31317) Add docs to AppBar + +[#31318](https://github.com/flutter/flutter/pull/31318) Add BottomSheetTheme to enable theming color, elevation, shape of BottomSheet + +[#31438](https://github.com/flutter/flutter/pull/31438) Implements focus handling and hover for Material buttons. + +[#31502](https://github.com/flutter/flutter/pull/31502) Improve Tabs documentation + +[#31514](https://github.com/flutter/flutter/pull/31514) Date picker layout exceptions + +[#31538](https://github.com/flutter/flutter/pull/31538) Fix typo in docs + +[#31566](https://github.com/flutter/flutter/pull/31566) TimePicker moves to minute mode after hour selection + +[#31574](https://github.com/flutter/flutter/pull/31574) Improve RadioListTile Callback Behavior Consistency + +[#31581](https://github.com/flutter/flutter/pull/31581) Fix Exception on Nested TabBarView disposal + +[#31644](https://github.com/flutter/flutter/pull/31644) Cupertino localization step 12: push translation for all supported languages + +[#31662](https://github.com/flutter/flutter/pull/31662) added shape property to SliverAppBar + +[#31681](https://github.com/flutter/flutter/pull/31681) [Material] Create a themable Range Slider (continuous and discrete) + +[#31693](https://github.com/flutter/flutter/pull/31693) Adds a note to Radio's/RadioListTile's onChange + +[#31699](https://github.com/flutter/flutter/pull/31699) Re-land: Add support for Tooltip hover + +[#31763](https://github.com/flutter/flutter/pull/31763) Fix ScrollbarPainter thumbExtent calculation and add padding + +[#31852](https://github.com/flutter/flutter/pull/31852) Text selection handles are sometimes not interactive + +[#31861](https://github.com/flutter/flutter/pull/31861) Add Horizontal Padding to Constrained Chip Label Calculations + +[#31902](https://github.com/flutter/flutter/pull/31902) Updated primaryColor docs to refer to colorScheme properties + +[#31938](https://github.com/flutter/flutter/pull/31938) Update scrimDrawerColor with proper const format + +[#32053](https://github.com/flutter/flutter/pull/32053) Increase TimePicker touch targets + +[#32147](https://github.com/flutter/flutter/pull/32147) Added state management docs/sample to SwitchListTile + +[#32177](https://github.com/flutter/flutter/pull/32177) Tab Animation Sample Video + +[#32434](https://github.com/flutter/flutter/pull/32434) Support for replacing the TabController, after disposing the old one + +[#32527](https://github.com/flutter/flutter/pull/32527) Added 'enabled' property to the PopupMenuButton + +[#32528](https://github.com/flutter/flutter/pull/32528) Tapping a modal bottom sheet should not dismiss it by default + +[#32530](https://github.com/flutter/flutter/pull/32530) Add Actions to AppBar Sample Doc + +[#32620](https://github.com/flutter/flutter/pull/32620) Added ScrollController to TextField + +[#32654](https://github.com/flutter/flutter/pull/32654) Tabs code/doc cleanup + +[#32703](https://github.com/flutter/flutter/pull/32703) Add Doc Samples For CheckboxListTile, RadioListTile and SwitchListTile + +[#32726](https://github.com/flutter/flutter/pull/32726) Material should not prevent ScrollNotifications from bubbling upwards + +[#32776](https://github.com/flutter/flutter/pull/32776) Text field focus and hover support. + +[#32838](https://github.com/flutter/flutter/pull/32838) Handles hidden by keyboard + +[#32843](https://github.com/flutter/flutter/pull/32843) Added a missing dispose of an AnimationController that was leaking a ticker. + +[#32904](https://github.com/flutter/flutter/pull/32904) Use reverseDuration on Tooltip and InkWell + +[#32911](https://github.com/flutter/flutter/pull/32911) Material Long Press Text Handle Flash + +[#32914](https://github.com/flutter/flutter/pull/32914) Make hover and focus not respond when buttons and fields are disabled. + +[#32950](https://github.com/flutter/flutter/pull/32950) Material allows "select all" when not collapsed + +[#33073](https://github.com/flutter/flutter/pull/33073) SliverAppBar shape property + +[#33080](https://github.com/flutter/flutter/pull/33080) Fixed several issues with confirmDismiss handling on the LeaveBehindItem demo. + +[#33090](https://github.com/flutter/flutter/pull/33090) [Material] Add support for hovered, pressed, and focused text color on Buttons. + +[#33148](https://github.com/flutter/flutter/pull/33148) ExpandIcon Custom Colors + +[#33361](https://github.com/flutter/flutter/pull/33361) (trivial) Rename test file + +[#33474](https://github.com/flutter/flutter/pull/33474) Fixed for DropdownButton crashing when a style was used that didn't include a fontSize + +[#33535](https://github.com/flutter/flutter/pull/33535) Custom height parameters for DataTable header and data rows + +[#33628](https://github.com/flutter/flutter/pull/33628) DataTable Custom Horizontal Padding + +[#33634](https://github.com/flutter/flutter/pull/33634) Let there be scroll bars + +[#33653](https://github.com/flutter/flutter/pull/33653) Include advice about dispose in TextEditingController api + +[#33665](https://github.com/flutter/flutter/pull/33665) [Trivial] Move dropdownValue into State in DropdownButton sample docs + +[#33802](https://github.com/flutter/flutter/pull/33802) Double double tap toggles instead of error + +[#33808](https://github.com/flutter/flutter/pull/33808) fix ExpansionPanelList merge the header semantics when it is not nece… + +[#33865](https://github.com/flutter/flutter/pull/33865) Correct version name for BottomNavigationBar golden test + +[#34055](https://github.com/flutter/flutter/pull/34055) Toggle toolbar exception fix + +[#34057](https://github.com/flutter/flutter/pull/34057) Add endIndent property to Divider and VerticalDivider + +[#34355](https://github.com/flutter/flutter/pull/34355) Text field vertical align + +[#34501](https://github.com/flutter/flutter/pull/34501) [Material] Fix TextDirection and selected thumb for RangeSliderThumbShape and RangeSliderValueIndicatorShape + +[#34515](https://github.com/flutter/flutter/pull/34515) OutlineInputBorder adjusts for borderRadius that is too large + +[#34597](https://github.com/flutter/flutter/pull/34597) [Material] Update slider gallery demo, including range slider + +[#34859](https://github.com/flutter/flutter/pull/34859) Fix Vertical Alignment Regression + +[#34869](https://github.com/flutter/flutter/pull/34869) [Material] Properly call onChangeStart and onChangeEnd in Range Slider + +[#34932](https://github.com/flutter/flutter/pull/34932) Added onChanged property to TextFormField + +## a: tests - 38 PRs + +[#30942](https://github.com/flutter/flutter/pull/30942) rectMoreOrLess equals, prep for 64bit rects + +[#31333](https://github.com/flutter/flutter/pull/31333) Clean up flutter_test/test/controller_test.dart + +[#31452](https://github.com/flutter/flutter/pull/31452) Remove engine tests + +[#32070](https://github.com/flutter/flutter/pull/32070) rename foreground and background to light and dark + +[#32437](https://github.com/flutter/flutter/pull/32437) Add assert that the root widget has been attached. + +[#33349](https://github.com/flutter/flutter/pull/33349) Compatibility pass on flutter/foundation tests for JavaScript compilation. (1) + +[#33350](https://github.com/flutter/flutter/pull/33350) Compatibility pass on flutter/scheduler tests for JavaScript compilation. (2) + +[#33352](https://github.com/flutter/flutter/pull/33352) Compatibility pass on flutter/painting tests for JavaScript compilation. (3) + +[#33354](https://github.com/flutter/flutter/pull/33354) Compatibility pass on flutter/services tests for JavaScript compilation. (4) + +[#33355](https://github.com/flutter/flutter/pull/33355) Compatibility pass on flutter/rendering tests for JavaScript compilation. (5) + +[#33359](https://github.com/flutter/flutter/pull/33359) Compatibility pass on flutter/physics tests for JavaScript compilation. (6) + +[#33360](https://github.com/flutter/flutter/pull/33360) Compatibility pass on flutter/semantics tests for JavaScript compilation. (7) + +[#33361](https://github.com/flutter/flutter/pull/33361) (trivial) Rename test file + +[#33377](https://github.com/flutter/flutter/pull/33377) Compatibility pass on flutter/widgets tests for JavaScript compilation. (8) + +[#33378](https://github.com/flutter/flutter/pull/33378) Compatibility pass on flutter/material tests for JavaScript compilation. (9) + +[#33406](https://github.com/flutter/flutter/pull/33406) Add web safe indirection to Platform.isPlatform getters + +[#33459](https://github.com/flutter/flutter/pull/33459) make sure version check includes hotfixes + +[#33676](https://github.com/flutter/flutter/pull/33676) Removing old golden checkout for integration test + +[#33786](https://github.com/flutter/flutter/pull/33786) Add a real-er web restart, doctor, workflow + +[#33805](https://github.com/flutter/flutter/pull/33805) Fixing duplicate golden test names + +[#33842](https://github.com/flutter/flutter/pull/33842) Don't print warning message when running benchmarks test. + +[#33865](https://github.com/flutter/flutter/pull/33865) Correct version name for BottomNavigationBar golden test + +[#33880](https://github.com/flutter/flutter/pull/33880) Splitting golden file versioning out as an argument of matchesGoldenFile + +[#33932](https://github.com/flutter/flutter/pull/33932) More removing of timeouts. + +[#34012](https://github.com/flutter/flutter/pull/34012) Extract DiagnosticsNode serializer from WidgetInspector + +[#34017](https://github.com/flutter/flutter/pull/34017) Skip web test on crazy import + +[#34032](https://github.com/flutter/flutter/pull/34032) Enable web foundation tests + +[#34054](https://github.com/flutter/flutter/pull/34054) Make it easier to pass local engine flags when running devicelab tests + +[#34199](https://github.com/flutter/flutter/pull/34199) make sure this test doesn't run for real + +[#34368](https://github.com/flutter/flutter/pull/34368) Fix semantics_tester + +[#34417](https://github.com/flutter/flutter/pull/34417) Include raw value in Diagnostics json for basic types + +[#34440](https://github.com/flutter/flutter/pull/34440) Add Driver command to get diagnostics tree + +[#34616](https://github.com/flutter/flutter/pull/34616) Kill compiler process when test does not exit cleanly + +[#34685](https://github.com/flutter/flutter/pull/34685) Close platform when tests are complete (dispose compiler and delete font files) + +[#34863](https://github.com/flutter/flutter/pull/34863) Prepare for HttpClientResponse Uint8List SDK change + +[#34877](https://github.com/flutter/flutter/pull/34877) More shards + +[#35074](https://github.com/flutter/flutter/pull/35074) Attempt to enable tool coverage redux + +[#35130](https://github.com/flutter/flutter/pull/35130) pass new users for release_smoke_tests + +## waiting for tree to go green - 35 PRs + +[#28808](https://github.com/flutter/flutter/pull/28808) updated tearDownAll function + +[#28834](https://github.com/flutter/flutter/pull/28834) Sliver animated list + +[#29677](https://github.com/flutter/flutter/pull/29677) Fix calculation of hero rectTween when Navigator isn't fullscreen + +[#30979](https://github.com/flutter/flutter/pull/30979) fix issue 30526: rounding error + +[#31028](https://github.com/flutter/flutter/pull/31028) Adds support for generating projects that use AndroidX support libraries + +[#31452](https://github.com/flutter/flutter/pull/31452) Remove engine tests + +[#31600](https://github.com/flutter/flutter/pull/31600) Re-enable const + +[#31798](https://github.com/flutter/flutter/pull/31798) Fix tab indentation + +[#31832](https://github.com/flutter/flutter/pull/31832) Allow DSS to be dragged when its children do not fill extent + +[#31868](https://github.com/flutter/flutter/pull/31868) Handle notification errors + +[#32025](https://github.com/flutter/flutter/pull/32025) Make Hover Listener respect transforms + +[#32266](https://github.com/flutter/flutter/pull/32266) Add reference to Runner-Bridging-Header.h to iOS profile config + +[#32328](https://github.com/flutter/flutter/pull/32328) Add breadcrumbs to TextOverflow + +[#32380](https://github.com/flutter/flutter/pull/32380) const everything in Driver + +[#32410](https://github.com/flutter/flutter/pull/32410) Add ancestor and descendant finders to Driver + +[#33152](https://github.com/flutter/flutter/pull/33152) ModalRoute resumes previous focus on didPopNext + +[#33272](https://github.com/flutter/flutter/pull/33272) Add mustRunAfter on mergeAssets task to force task ordering + +[#33442](https://github.com/flutter/flutter/pull/33442) fix GridView documentation + +[#33461](https://github.com/flutter/flutter/pull/33461) Various code cleanup improvements + +[#33653](https://github.com/flutter/flutter/pull/33653) Include advice about dispose in TextEditingController api + +[#33865](https://github.com/flutter/flutter/pull/33865) Correct version name for BottomNavigationBar golden test + +[#33880](https://github.com/flutter/flutter/pull/33880) Splitting golden file versioning out as an argument of matchesGoldenFile + +[#33932](https://github.com/flutter/flutter/pull/33932) More removing of timeouts. + +[#33955](https://github.com/flutter/flutter/pull/33955) Add localFocalPoint to ScaleDetector + +[#34298](https://github.com/flutter/flutter/pull/34298) Preserving SafeArea : Part 2 + +[#34440](https://github.com/flutter/flutter/pull/34440) Add Driver command to get diagnostics tree + +[#34474](https://github.com/flutter/flutter/pull/34474) Release diagnostics + +[#34573](https://github.com/flutter/flutter/pull/34573) Ensures flutter jar is added to all build types on plugin projects + +[#34592](https://github.com/flutter/flutter/pull/34592) Config lib dependencies for flavors + +[#34606](https://github.com/flutter/flutter/pull/34606) Remove portions of the Gradle script related to dynamic patching + +[#34655](https://github.com/flutter/flutter/pull/34655) Revert "Config lib dependencies for flavors" + +[#34685](https://github.com/flutter/flutter/pull/34685) Close platform when tests are complete (dispose compiler and delete font files) + +[#34738](https://github.com/flutter/flutter/pull/34738) Update Xcode projects to recommended Xcode 10 project settings + +[#34877](https://github.com/flutter/flutter/pull/34877) More shards + +[#34919](https://github.com/flutter/flutter/pull/34919) Remove duplicate error parts + +## d: api docs - 34 PRs + +[#31294](https://github.com/flutter/flutter/pull/31294) Improve Radio Documentation with Example + +[#31295](https://github.com/flutter/flutter/pull/31295) Improve ThemeData.accentColor connection to secondary color + +[#31316](https://github.com/flutter/flutter/pull/31316) Add InkWell docs on transitions and ink splash clipping + +[#31317](https://github.com/flutter/flutter/pull/31317) Add docs to AppBar + +[#31493](https://github.com/flutter/flutter/pull/31493) Keycode generation doc fix + +[#31502](https://github.com/flutter/flutter/pull/31502) Improve Tabs documentation + +[#31634](https://github.com/flutter/flutter/pull/31634) Improve canvas example in sample dart ui app + +[#31693](https://github.com/flutter/flutter/pull/31693) Adds a note to Radio's/RadioListTile's onChange + +[#31763](https://github.com/flutter/flutter/pull/31763) Fix ScrollbarPainter thumbExtent calculation and add padding + +[#31902](https://github.com/flutter/flutter/pull/31902) Updated primaryColor docs to refer to colorScheme properties + +[#31903](https://github.com/flutter/flutter/pull/31903) Extract TODO comment from Image.asset dardoc + +[#31929](https://github.com/flutter/flutter/pull/31929) Sample Code & Animation for Flow Widget + +[#32147](https://github.com/flutter/flutter/pull/32147) Added state management docs/sample to SwitchListTile + +[#32177](https://github.com/flutter/flutter/pull/32177) Tab Animation Sample Video + +[#32530](https://github.com/flutter/flutter/pull/32530) Add Actions to AppBar Sample Doc + +[#32638](https://github.com/flutter/flutter/pull/32638) Fix apidocs in _WidgetsAppState.basicLocaleListResolution + +[#32641](https://github.com/flutter/flutter/pull/32641) Updating dart.dev related links + +[#32703](https://github.com/flutter/flutter/pull/32703) Add Doc Samples For CheckboxListTile, RadioListTile and SwitchListTile + +[#32909](https://github.com/flutter/flutter/pull/32909) Documentation fix for debugProfileBuildsEnabled + +[#33226](https://github.com/flutter/flutter/pull/33226) Explain hairline rendering in BorderSide.width docs + +[#33442](https://github.com/flutter/flutter/pull/33442) fix GridView documentation + +[#33620](https://github.com/flutter/flutter/pull/33620) Document that offsets are returned in logical pixels + +[#33653](https://github.com/flutter/flutter/pull/33653) Include advice about dispose in TextEditingController api + +[#33665](https://github.com/flutter/flutter/pull/33665) [Trivial] Move dropdownValue into State in DropdownButton sample docs + +[#33917](https://github.com/flutter/flutter/pull/33917) 'the the' doc fix + +[#34073](https://github.com/flutter/flutter/pull/34073) Dartdoc Generation README Improvements + +[#34137](https://github.com/flutter/flutter/pull/34137) Added tool sample for PageController + +[#34163](https://github.com/flutter/flutter/pull/34163) update CupertinoDialogAction docs + +[#34356](https://github.com/flutter/flutter/pull/34356) Add widget of the week videos + +[#34388](https://github.com/flutter/flutter/pull/34388) Change API doc link to api.dart.dev + +[#34424](https://github.com/flutter/flutter/pull/34424) SizedBox documentation minor update + +[#34679](https://github.com/flutter/flutter/pull/34679) Fix-up code sample for TweenSequence + +[#34758](https://github.com/flutter/flutter/pull/34758) Added some Widgets of the Week Videos to documentation + +[#35046](https://github.com/flutter/flutter/pull/35046) Add generated Icon diagram to api docs + +## team - 28 PRs + +[#28808](https://github.com/flutter/flutter/pull/28808) updated tearDownAll function + +[#30327](https://github.com/flutter/flutter/pull/30327) Add "feature request" issue template + +[#31452](https://github.com/flutter/flutter/pull/31452) Remove engine tests + +[#31825](https://github.com/flutter/flutter/pull/31825) Fix missing return statements on function literals + +[#31885](https://github.com/flutter/flutter/pull/31885) Fix commit message UTF issue for deploy_gallery shard too + +[#31944](https://github.com/flutter/flutter/pull/31944) Performance issue template + +[#32345](https://github.com/flutter/flutter/pull/32345) Add master channel to performance issue template + +[#32503](https://github.com/flutter/flutter/pull/32503) Add more missing returns + +[#33267](https://github.com/flutter/flutter/pull/33267) Add unpublish_package script. + +[#33459](https://github.com/flutter/flutter/pull/33459) make sure version check includes hotfixes + +[#33539](https://github.com/flutter/flutter/pull/33539) Fix/update several HTML links + +[#33554](https://github.com/flutter/flutter/pull/33554) Remove obsolete TODOs + +[#33677](https://github.com/flutter/flutter/pull/33677) Roll pub dependencies + +[#33786](https://github.com/flutter/flutter/pull/33786) Add a real-er web restart, doctor, workflow + +[#33787](https://github.com/flutter/flutter/pull/33787) Add chrome stable to dockerfile and web shard + +[#33861](https://github.com/flutter/flutter/pull/33861) Unmark flutter_gallery__back_button_memory as flaky + +[#33932](https://github.com/flutter/flutter/pull/33932) More removing of timeouts. + +[#34032](https://github.com/flutter/flutter/pull/34032) Enable web foundation tests + +[#34054](https://github.com/flutter/flutter/pull/34054) Make it easier to pass local engine flags when running devicelab tests + +[#34112](https://github.com/flutter/flutter/pull/34112) Separate web and io implementations of network image + +[#34199](https://github.com/flutter/flutter/pull/34199) make sure this test doesn't run for real + +[#34738](https://github.com/flutter/flutter/pull/34738) Update Xcode projects to recommended Xcode 10 project settings + +[#34739](https://github.com/flutter/flutter/pull/34739) Disable widgets and material web tests + +[#34812](https://github.com/flutter/flutter/pull/34812) Shard framework tests + +[#34818](https://github.com/flutter/flutter/pull/34818) Make docs do less work/be less flaky + +[#34857](https://github.com/flutter/flutter/pull/34857) More shards + +[#34877](https://github.com/flutter/flutter/pull/34877) More shards + +[#35130](https://github.com/flutter/flutter/pull/35130) pass new users for release_smoke_tests + +## f: cupertino - 27 PRs + +[#29809](https://github.com/flutter/flutter/pull/29809) Fix text selection toolbar appearing under obstructions + +[#29824](https://github.com/flutter/flutter/pull/29824) Cupertino localization step 8: create a gen_cupertino_localizations and generate one for cupertino english and french + +[#29954](https://github.com/flutter/flutter/pull/29954) Cupertino localization step 9: add tests + +[#30129](https://github.com/flutter/flutter/pull/30129) Fix refresh control in the gallery demo, update comments + +[#30224](https://github.com/flutter/flutter/pull/30224) Cupertino localization step 10: update the flutter_localizations README + +[#31227](https://github.com/flutter/flutter/pull/31227) Adding CupertinoTabController + +[#31308](https://github.com/flutter/flutter/pull/31308) Added font bold when isDefaultAction is true in CupertinoDialogAction + +[#31326](https://github.com/flutter/flutter/pull/31326) Add more shuffle cupertino icons + +[#31464](https://github.com/flutter/flutter/pull/31464) CupertinoPicker fidelity revision + +[#31623](https://github.com/flutter/flutter/pull/31623) fix edge swiping and dropping back at starting point + +[#31644](https://github.com/flutter/flutter/pull/31644) Cupertino localization step 12: push translation for all supported languages + +[#31763](https://github.com/flutter/flutter/pull/31763) Fix ScrollbarPainter thumbExtent calculation and add padding + +[#31852](https://github.com/flutter/flutter/pull/31852) Text selection handles are sometimes not interactive + +[#32013](https://github.com/flutter/flutter/pull/32013) Cupertino Turkish Translation + +[#32086](https://github.com/flutter/flutter/pull/32086) Fix CupertinoSliverRefreshControl onRefresh callback + +[#32469](https://github.com/flutter/flutter/pull/32469) Let CupertinoNavigationBarBackButton take a custom onPressed + +[#32513](https://github.com/flutter/flutter/pull/32513) Cupertino localization step 12 try 2: push translation for all supported languages + +[#32620](https://github.com/flutter/flutter/pull/32620) Added ScrollController to TextField + +[#32823](https://github.com/flutter/flutter/pull/32823) Add enableInteractiveSelection to CupertinoTextField + +[#32974](https://github.com/flutter/flutter/pull/32974) Fix disabled CupertinoTextField style + +[#33624](https://github.com/flutter/flutter/pull/33624) CupertinoTabScaffold crash fix + +[#33634](https://github.com/flutter/flutter/pull/33634) Let there be scroll bars + +[#33653](https://github.com/flutter/flutter/pull/33653) Include advice about dispose in TextEditingController api + +[#33739](https://github.com/flutter/flutter/pull/33739) fixed cupertinoTextField placeholder textAlign + +[#34095](https://github.com/flutter/flutter/pull/34095) Cupertino text edit tooltip, reworked + +[#34163](https://github.com/flutter/flutter/pull/34163) update CupertinoDialogAction docs + +[#34964](https://github.com/flutter/flutter/pull/34964) CupertinoTextField.onTap + +## severe: API break - 17 PRs + +[#29188](https://github.com/flutter/flutter/pull/29188) Fix 25807: implement move in sliver multibox widget + +[#29683](https://github.com/flutter/flutter/pull/29683) Show/hide toolbar and handles based on device kind + +[#30040](https://github.com/flutter/flutter/pull/30040) Implement focus traversal for desktop platforms, shoehorn edition. + +[#30579](https://github.com/flutter/flutter/pull/30579) PointerDownEvent and PointerMoveEvent default `buttons` to 1 + +[#30874](https://github.com/flutter/flutter/pull/30874) Redo "Remove pressure customization from some pointer events" + +[#31227](https://github.com/flutter/flutter/pull/31227) Adding CupertinoTabController + +[#31574](https://github.com/flutter/flutter/pull/31574) Improve RadioListTile Callback Behavior Consistency + +[#32059](https://github.com/flutter/flutter/pull/32059) fix issue 14014 read only text field + +[#32842](https://github.com/flutter/flutter/pull/32842) Allow "from" hero state to survive hero animation in a push transition + +[#33148](https://github.com/flutter/flutter/pull/33148) ExpandIcon Custom Colors + +[#33164](https://github.com/flutter/flutter/pull/33164) remove Layer.replaceWith due to no usage and no tests + +[#33370](https://github.com/flutter/flutter/pull/33370) Update FadeInImage to use new Image APIs + +[#33794](https://github.com/flutter/flutter/pull/33794) Text inline widgets, TextSpan rework + +[#33946](https://github.com/flutter/flutter/pull/33946) Reland "Text inline widgets, TextSpan rework" + +[#34051](https://github.com/flutter/flutter/pull/34051) Reland "Text inline widgets, TextSpan rework (#30069)" with improved backwards compatibility + +[#34095](https://github.com/flutter/flutter/pull/34095) Cupertino text edit tooltip, reworked + +[#34501](https://github.com/flutter/flutter/pull/34501) [Material] Fix TextDirection and selected thumb for RangeSliderThumbShape and RangeSliderValueIndicatorShape + +## a: text input - 15 PRs + +[#29683](https://github.com/flutter/flutter/pull/29683) Show/hide toolbar and handles based on device kind + +[#31687](https://github.com/flutter/flutter/pull/31687) Center iOS caret, remove constant offsets that do not scale + +[#32059](https://github.com/flutter/flutter/pull/32059) fix issue 14014 read only text field + +[#32823](https://github.com/flutter/flutter/pull/32823) Add enableInteractiveSelection to CupertinoTextField + +[#32838](https://github.com/flutter/flutter/pull/32838) Handles hidden by keyboard + +[#32974](https://github.com/flutter/flutter/pull/32974) Fix disabled CupertinoTextField style + +[#33794](https://github.com/flutter/flutter/pull/33794) Text inline widgets, TextSpan rework + +[#33802](https://github.com/flutter/flutter/pull/33802) Double double tap toggles instead of error + +[#33946](https://github.com/flutter/flutter/pull/33946) Reland "Text inline widgets, TextSpan rework" + +[#34051](https://github.com/flutter/flutter/pull/34051) Reland "Text inline widgets, TextSpan rework (#30069)" with improved backwards compatibility + +[#34055](https://github.com/flutter/flutter/pull/34055) Toggle toolbar exception fix + +[#34068](https://github.com/flutter/flutter/pull/34068) fix empty selection arrow when double clicked on empty read only text… + +[#34095](https://github.com/flutter/flutter/pull/34095) Cupertino text edit tooltip, reworked + +[#34515](https://github.com/flutter/flutter/pull/34515) OutlineInputBorder adjusts for borderRadius that is too large + +[#34859](https://github.com/flutter/flutter/pull/34859) Fix Vertical Alignment Regression + +## ☸ platform-web - 15 PRs + +[#33197](https://github.com/flutter/flutter/pull/33197) Wire up hot restart and incremental rebuilds for web + +[#33349](https://github.com/flutter/flutter/pull/33349) Compatibility pass on flutter/foundation tests for JavaScript compilation. (1) + +[#33350](https://github.com/flutter/flutter/pull/33350) Compatibility pass on flutter/scheduler tests for JavaScript compilation. (2) + +[#33352](https://github.com/flutter/flutter/pull/33352) Compatibility pass on flutter/painting tests for JavaScript compilation. (3) + +[#33354](https://github.com/flutter/flutter/pull/33354) Compatibility pass on flutter/services tests for JavaScript compilation. (4) + +[#33355](https://github.com/flutter/flutter/pull/33355) Compatibility pass on flutter/rendering tests for JavaScript compilation. (5) + +[#33359](https://github.com/flutter/flutter/pull/33359) Compatibility pass on flutter/physics tests for JavaScript compilation. (6) + +[#33360](https://github.com/flutter/flutter/pull/33360) Compatibility pass on flutter/semantics tests for JavaScript compilation. (7) + +[#33377](https://github.com/flutter/flutter/pull/33377) Compatibility pass on flutter/widgets tests for JavaScript compilation. (8) + +[#33378](https://github.com/flutter/flutter/pull/33378) Compatibility pass on flutter/material tests for JavaScript compilation. (9) + +[#33629](https://github.com/flutter/flutter/pull/33629) Add real-er restart for web using webkit inspection protocol + +[#33956](https://github.com/flutter/flutter/pull/33956) Codegen an entrypoint for flutter web applications + +[#34018](https://github.com/flutter/flutter/pull/34018) Add flutter create for the web + +[#34112](https://github.com/flutter/flutter/pull/34112) Separate web and io implementations of network image + +[#34159](https://github.com/flutter/flutter/pull/34159) Use product define for flutter web and remove extra asset server + +## a: desktop - 14 PRs + +[#29683](https://github.com/flutter/flutter/pull/29683) Show/hide toolbar and handles based on device kind + +[#30040](https://github.com/flutter/flutter/pull/30040) Implement focus traversal for desktop platforms, shoehorn edition. + +[#30076](https://github.com/flutter/flutter/pull/30076) Implements FocusTraversalPolicy and DefaultFocusTraversal features. + +[#30339](https://github.com/flutter/flutter/pull/30339) Add buttons to gestures + +[#30579](https://github.com/flutter/flutter/pull/30579) PointerDownEvent and PointerMoveEvent default `buttons` to 1 + +[#31493](https://github.com/flutter/flutter/pull/31493) Keycode generation doc fix + +[#31819](https://github.com/flutter/flutter/pull/31819) Redo: Add buttons to gestures + +[#31935](https://github.com/flutter/flutter/pull/31935) Redo#2: Add buttons to gestures + +[#33298](https://github.com/flutter/flutter/pull/33298) Add actions and keyboard shortcut map support + +[#33443](https://github.com/flutter/flutter/pull/33443) Wrap Windows build invocation in a batch script + +[#33454](https://github.com/flutter/flutter/pull/33454) ensure unpack declares required artifacts + +[#33636](https://github.com/flutter/flutter/pull/33636) Implement plugin tooling support for macOS + +[#33695](https://github.com/flutter/flutter/pull/33695) Add pseudo-key synonyms for keys like shift, meta, alt, and control. + +[#33868](https://github.com/flutter/flutter/pull/33868) Game controller button support + +## t: gradle - 11 PRs + +[#32787](https://github.com/flutter/flutter/pull/32787) Support 32 and 64 bit + +[#33191](https://github.com/flutter/flutter/pull/33191) Remove colon from Gradle task name since it's deprecated + +[#33228](https://github.com/flutter/flutter/pull/33228) Make Paths absolute in settings.gradle + +[#33272](https://github.com/flutter/flutter/pull/33272) Add mustRunAfter on mergeAssets task to force task ordering + +[#33696](https://github.com/flutter/flutter/pull/33696) Generate ELF shared libraries and allow multi-abi libs in APKs and App bundles + +[#34123](https://github.com/flutter/flutter/pull/34123) Generate ELF shared libraries and allow multi-abi libs in APKs and App bundles + +[#34353](https://github.com/flutter/flutter/pull/34353) Refactor Gradle plugin + +[#34460](https://github.com/flutter/flutter/pull/34460) Add back ability to override the local engine in Gradle + +[#34573](https://github.com/flutter/flutter/pull/34573) Ensures flutter jar is added to all build types on plugin projects + +[#34592](https://github.com/flutter/flutter/pull/34592) Config lib dependencies for flavors + +[#34668](https://github.com/flutter/flutter/pull/34668) Re-land config lib dependencies for flavors + +## f: scrolling - 9 PRs + +[#31485](https://github.com/flutter/flutter/pull/31485) Prevent exception being thrown on hasScrolledBody + +[#31763](https://github.com/flutter/flutter/pull/31763) Fix ScrollbarPainter thumbExtent calculation and add padding + +[#31832](https://github.com/flutter/flutter/pull/31832) Allow DSS to be dragged when its children do not fill extent + +[#32620](https://github.com/flutter/flutter/pull/32620) Added ScrollController to TextField + +[#32726](https://github.com/flutter/flutter/pull/32726) Material should not prevent ScrollNotifications from bubbling upwards + +[#32842](https://github.com/flutter/flutter/pull/32842) Allow "from" hero state to survive hero animation in a push transition + +[#33627](https://github.com/flutter/flutter/pull/33627) SliverFillRemaining flag for different use cases + +[#33634](https://github.com/flutter/flutter/pull/33634) Let there be scroll bars + +[#34175](https://github.com/flutter/flutter/pull/34175) Don't show scrollbar if there isn't enough content + +## engine - 6 PRs + +[#31520](https://github.com/flutter/flutter/pull/31520) Don't add empty OpacityLayer to the engine + +[#33272](https://github.com/flutter/flutter/pull/33272) Add mustRunAfter on mergeAssets task to force task ordering + +[#33662](https://github.com/flutter/flutter/pull/33662) Prep for engine roll + +[#34276](https://github.com/flutter/flutter/pull/34276) [flutter_tool,fuchsia] Prefetch tiles when starting an app + +[#34460](https://github.com/flutter/flutter/pull/34460) Add back ability to override the local engine in Gradle + +[#34870](https://github.com/flutter/flutter/pull/34870) Add test case for Flutter Issue #27677 as a benchmark. + +## severe: new feature - 6 PRs + +[#33148](https://github.com/flutter/flutter/pull/33148) ExpandIcon Custom Colors + +[#33535](https://github.com/flutter/flutter/pull/33535) Custom height parameters for DataTable header and data rows + +[#33628](https://github.com/flutter/flutter/pull/33628) DataTable Custom Horizontal Padding + +[#33794](https://github.com/flutter/flutter/pull/33794) Text inline widgets, TextSpan rework + +[#33946](https://github.com/flutter/flutter/pull/33946) Reland "Text inline widgets, TextSpan rework" + +[#34051](https://github.com/flutter/flutter/pull/34051) Reland "Text inline widgets, TextSpan rework (#30069)" with improved backwards compatibility + +## t: flutter driver - 5 PRs + +[#28808](https://github.com/flutter/flutter/pull/28808) updated tearDownAll function + +[#31824](https://github.com/flutter/flutter/pull/31824) fix FlutterDriver timeout + +[#32380](https://github.com/flutter/flutter/pull/32380) const everything in Driver + +[#33431](https://github.com/flutter/flutter/pull/33431) Expose service client and app isolate in driver + +[#33786](https://github.com/flutter/flutter/pull/33786) Add a real-er web restart, doctor, workflow + +## a: images - 5 PRs + +[#32853](https://github.com/flutter/flutter/pull/32853) Add onBytesReceived callback to consolidateHttpClientResponseBytes() + +[#32857](https://github.com/flutter/flutter/pull/32857) Add debugNetworkImageHttpClientProvider + +[#32936](https://github.com/flutter/flutter/pull/32936) Add some sanity to the ImageStream listener API + +[#33729](https://github.com/flutter/flutter/pull/33729) Update consolidateHttpClientResponseBytes() to use compressionState + +[#33814](https://github.com/flutter/flutter/pull/33814) Added a benchmark for ImageCache + +## a: animation - 4 PRs + +[#21896](https://github.com/flutter/flutter/pull/21896) Bottom sheet scrolling + +[#29677](https://github.com/flutter/flutter/pull/29677) Fix calculation of hero rectTween when Navigator isn't fullscreen + +[#32730](https://github.com/flutter/flutter/pull/32730) Add reverseDuration to AnimationController + +[#32842](https://github.com/flutter/flutter/pull/32842) Allow "from" hero state to survive hero animation in a push transition + +## ▣ platform-android - 4 PRs + +[#31491](https://github.com/flutter/flutter/pull/31491) Allow adb stdout to contain the port number without failing + +[#32950](https://github.com/flutter/flutter/pull/32950) Material allows "select all" when not collapsed + +[#33191](https://github.com/flutter/flutter/pull/33191) Remove colon from Gradle task name since it's deprecated + +[#33696](https://github.com/flutter/flutter/pull/33696) Generate ELF shared libraries and allow multi-abi libs in APKs and App bundles + +## d: examples - 4 PRs + +[#31634](https://github.com/flutter/flutter/pull/31634) Improve canvas example in sample dart ui app + +[#31822](https://github.com/flutter/flutter/pull/31822) remove unnecessary artificial delay in catalog example + +[#31929](https://github.com/flutter/flutter/pull/31929) Sample Code & Animation for Flow Widget + +[#35046](https://github.com/flutter/flutter/pull/35046) Add generated Icon diagram to api docs + +## a: typography - 4 PRs + +[#31987](https://github.com/flutter/flutter/pull/31987) Text wrap width + +[#33794](https://github.com/flutter/flutter/pull/33794) Text inline widgets, TextSpan rework + +[#33946](https://github.com/flutter/flutter/pull/33946) Reland "Text inline widgets, TextSpan rework" + +[#34051](https://github.com/flutter/flutter/pull/34051) Reland "Text inline widgets, TextSpan rework (#30069)" with improved backwards compatibility + +## t: xcode - 4 PRs + +[#32266](https://github.com/flutter/flutter/pull/32266) Add reference to Runner-Bridging-Header.h to iOS profile config + +[#33684](https://github.com/flutter/flutter/pull/33684) Disable CocoaPods input and output paths in Xcode build phase and adopt new Xcode build system + +[#34293](https://github.com/flutter/flutter/pull/34293) Change Xcode developmentRegion to 'en' and CFBundleDevelopmentRegion to DEVELOPMENT_LANGUAGE + +[#34738](https://github.com/flutter/flutter/pull/34738) Update Xcode projects to recommended Xcode 10 project settings + +## severe: crash - 3 PRs + +[#31228](https://github.com/flutter/flutter/pull/31228) Fix ExpansionPanelList Duplicate Global Keys Exception + +[#31581](https://github.com/flutter/flutter/pull/31581) Fix Exception on Nested TabBarView disposal + +[#34460](https://github.com/flutter/flutter/pull/34460) Add back ability to override the local engine in Gradle + +## ⌺‬ platform-ios - 3 PRs + +[#31332](https://github.com/flutter/flutter/pull/31332) iOS selection handles are invisible + +[#31687](https://github.com/flutter/flutter/pull/31687) Center iOS caret, remove constant offsets that do not scale + +[#33684](https://github.com/flutter/flutter/pull/33684) Disable CocoaPods input and output paths in Xcode build phase and adopt new Xcode build system + +## a: internationalization - 3 PRs + +[#31644](https://github.com/flutter/flutter/pull/31644) Cupertino localization step 12: push translation for all supported languages + +[#32013](https://github.com/flutter/flutter/pull/32013) Cupertino Turkish Translation + +[#32513](https://github.com/flutter/flutter/pull/32513) Cupertino localization step 12 try 2: push translation for all supported languages + +## ○ platform-fuchsia - 3 PRs + +[#32849](https://github.com/flutter/flutter/pull/32849) [flutter_tool] Adds support for 'run' for Fuchsia devices + +[#34162](https://github.com/flutter/flutter/pull/34162) Update the Fuchsia SDK + +[#34276](https://github.com/flutter/flutter/pull/34276) [flutter_tool,fuchsia] Prefetch tiles when starting an app + +## a: existing-apps - 3 PRs + +[#33297](https://github.com/flutter/flutter/pull/33297) Instrument add to app flows + +[#33450](https://github.com/flutter/flutter/pull/33450) Do not return null from IosProject.isSwift + +[#34189](https://github.com/flutter/flutter/pull/34189) Instrument usage of include_flutter.groovy and xcode_backend.sh + +## a: accessibility - 3 PRs + +[#33808](https://github.com/flutter/flutter/pull/33808) fix ExpansionPanelList merge the header semantics when it is not nece… + +[#34368](https://github.com/flutter/flutter/pull/34368) Fix semantics_tester + +[#34434](https://github.com/flutter/flutter/pull/34434) Semantics fixes + +## customer: solaris - 2 PRs + +[#29677](https://github.com/flutter/flutter/pull/29677) Fix calculation of hero rectTween when Navigator isn't fullscreen + +[#34298](https://github.com/flutter/flutter/pull/34298) Preserving SafeArea : Part 2 + +## e: desktop - 2 PRs + +[#31329](https://github.com/flutter/flutter/pull/31329) Add Xcode build script for macOS target + +[#31567](https://github.com/flutter/flutter/pull/31567) Remove need for build/name scripts on Linux desktop + +## ⌘‬ platform-mac - 2 PRs + +[#31329](https://github.com/flutter/flutter/pull/31329) Add Xcode build script for macOS target + +[#33636](https://github.com/flutter/flutter/pull/33636) Implement plugin tooling support for macOS + +## a: fidelity - 2 PRs + +[#31464](https://github.com/flutter/flutter/pull/31464) CupertinoPicker fidelity revision + +[#33634](https://github.com/flutter/flutter/pull/33634) Let there be scroll bars + +## f: date/time picker - 2 PRs + +[#31464](https://github.com/flutter/flutter/pull/31464) CupertinoPicker fidelity revision + +[#32843](https://github.com/flutter/flutter/pull/32843) Added a missing dispose of an AnimationController that was leaking a ticker. + +## team: gallery - 2 PRs + +[#31486](https://github.com/flutter/flutter/pull/31486) fix precedence issue + +[#33634](https://github.com/flutter/flutter/pull/33634) Let there be scroll bars + +## dependency: dart - 2 PRs + +[#32787](https://github.com/flutter/flutter/pull/32787) Support 32 and 64 bit + +[#34295](https://github.com/flutter/flutter/pull/34295) Prepare for Uint8List SDK breaking changes + +## team: flakes - 2 PRs + +[#33932](https://github.com/flutter/flutter/pull/33932) More removing of timeouts. + +[#34199](https://github.com/flutter/flutter/pull/34199) make sure this test doesn't run for real + +## customer: espresso - 2 PRs + +[#34012](https://github.com/flutter/flutter/pull/34012) Extract DiagnosticsNode serializer from WidgetInspector + +[#34440](https://github.com/flutter/flutter/pull/34440) Add Driver command to get diagnostics tree + +## severe: customer critical - 2 PRs + +[#34298](https://github.com/flutter/flutter/pull/34298) Preserving SafeArea : Part 2 + +[#34519](https://github.com/flutter/flutter/pull/34519) fix page scroll position rounding error + +## t: flutter doctor - 2 PRs + +[#34624](https://github.com/flutter/flutter/pull/34624) Break down flutter doctor validations and results + +[#34755](https://github.com/flutter/flutter/pull/34755) Add linux doctor implementation + +## f: routes - 1 PRs + +[#21896](https://github.com/flutter/flutter/pull/21896) Bottom sheet scrolling + +## p: framework - 1 PRs + +[#30406](https://github.com/flutter/flutter/pull/30406) Add binaryMessenger constructor argument to platform channels + +## ❖ platform-windows - 1 PRs + +[#33443](https://github.com/flutter/flutter/pull/33443) Wrap Windows build invocation in a batch script + +## a: size - 1 PRs + +[#34474](https://github.com/flutter/flutter/pull/34474) Release diagnostics + +## customer: google - 1 PRs + +[#34474](https://github.com/flutter/flutter/pull/34474) Release diagnostics + +## severe: performance - 1 PRs + +[#34870](https://github.com/flutter/flutter/pull/34870) Add test case for Flutter Issue #27677 as a benchmark. + + +This release included 841 PRs. +Not all may be shown; some PRs such as those generated by autorollers are omitted. + + +# PRs addressed in `flutter/engine` between `b593f5167bce84fb3cad5c258477bf3abc1b14eb` and `d004bcd4d619fc3574761d63d7cf7b7291332c79` + + +## affects: text input - 2 PRs + +[#9322](https://github.com/flutter/engine/pull/9322) Check for invalid indexes when performing InputAdpator backspace. + +[#9406](https://github.com/flutter/engine/pull/9406) Update harfbuzz to 2.5.2 + +## platform-android - 1 PRs + +[#9172](https://github.com/flutter/engine/pull/9172) Use shared library when libapp.so is found + +## affects: dev experience - 1 PRs + +[#9304](https://github.com/flutter/engine/pull/9304) Decorate UIApplicationDelegate wrappers with matching UIKit deprecation + +## platform-ios - 1 PRs + +[#9304](https://github.com/flutter/engine/pull/9304) Decorate UIApplicationDelegate wrappers with matching UIKit deprecation + +## accessibility - 1 PRs + +[#9321](https://github.com/flutter/engine/pull/9321) Fix a11y in embedded Android views post O + +## crash - 1 PRs + +[#9322](https://github.com/flutter/engine/pull/9322) Check for invalid indexes when performing InputAdpator backspace. + +## affects: framework - 1 PRs + +[#9452](https://github.com/flutter/engine/pull/9452) Convert RRect.scaleRadii to public method + +## affects: tests - 1 PRs + +[#9458](https://github.com/flutter/engine/pull/9458) Test cleanup geometry_test.dart + + +This release included 605 PRs. +Not all may be shown; some PRs such as those generated by autorollers are omitted. diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/archive/PRs-merged-between-1.7.8-and-1.9.1.md b/novelforge-project/agent-workspace/flutter/docs/releases/archive/PRs-merged-between-1.7.8-and-1.9.1.md new file mode 100644 index 0000000000000000000000000000000000000000..19c8d815b425a53d4adba6af4e533b408c472301 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/archive/PRs-merged-between-1.7.8-and-1.9.1.md @@ -0,0 +1,1900 @@ + + +# PRs closed in this release of flutter/flutter + +From Fri Jun 21 22:31:55 2019 -0400 to Sun Aug 18 12:22:00 2019 -0700 + + +[28090](https://github.com/flutter/flutter/pull/28090) Ensure that cache dirs and files have appropriate permissions (cla: yes, tool) + +[29489](https://github.com/flutter/flutter/pull/29489) Made a few grammatical changes (cla: yes, team) + +[32511](https://github.com/flutter/flutter/pull/32511) Rendering errors with root causes in the widget layer should have a reference to the widget (cla: yes, customer: countless, customer: headline, framework) + +[32770](https://github.com/flutter/flutter/pull/32770) Dismiss modal with any button press (a: desktop, cla: yes, framework) + +[32816](https://github.com/flutter/flutter/pull/32816) Add initial implementation of flutter assemble (cla: yes, tool) + +[33140](https://github.com/flutter/flutter/pull/33140) flutter/tests support (cla: yes, team) + +[33281](https://github.com/flutter/flutter/pull/33281) Update TextStyle and StrutStyle height docs (a: typography, cla: yes, d: api docs, framework, severe: API break) + +[33688](https://github.com/flutter/flutter/pull/33688) Part 1: Skia Gold Testing (a: tests, cla: yes, framework) + +[33936](https://github.com/flutter/flutter/pull/33936) New parameter for RawGestureDetector to customize semantics mapping (cla: yes, f: gestures, framework) + +[34019](https://github.com/flutter/flutter/pull/34019) Selectable Text (a: text input, cla: yes, customer: amplify, customer: fuchsia, framework, severe: API break) + +[34202](https://github.com/flutter/flutter/pull/34202) Remove `_debugWillReattachChildren` assertions from `_TableElement` (cla: yes, customer: payouts, framework) + +[34252](https://github.com/flutter/flutter/pull/34252) Integrate dwds into flutter tool for web support (cla: yes, tool, ☸ platform-web) + +[34298](https://github.com/flutter/flutter/pull/34298) Preserving SafeArea : Part 2 (cla: yes, customer: solaris, framework, severe: customer critical, waiting for tree to go green) + +[34301](https://github.com/flutter/flutter/pull/34301) Make it possible to override the FLUTTER_TEST env variable (a: tests, cla: yes, customer: mulligan (g3), team, tool) + +[34515](https://github.com/flutter/flutter/pull/34515) OutlineInputBorder adjusts for borderRadius that is too large (a: text input, cla: yes, f: material design, framework) + +[34516](https://github.com/flutter/flutter/pull/34516) [flutter_tool] Fill in Fuchsia version string (cla: yes, tool) + +[34573](https://github.com/flutter/flutter/pull/34573) Ensures flutter jar is added to all build types on plugin projects (cla: yes, t: gradle, tool, waiting for tree to go green) + +[34597](https://github.com/flutter/flutter/pull/34597) [Material] Update slider gallery demo, including range slider (cla: yes, f: material design, framework) + +[34599](https://github.com/flutter/flutter/pull/34599) [Material] ToggleButtons (cla: yes, f: material design, framework, severe: new feature) + +[34624](https://github.com/flutter/flutter/pull/34624) Break down flutter doctor validations and results (cla: yes, t: flutter doctor, tool) + +[34626](https://github.com/flutter/flutter/pull/34626) AsyncSnapshot.data to throw if error or no data (cla: yes, framework) + +[34660](https://github.com/flutter/flutter/pull/34660) Add --target support for Windows and Linux (cla: yes, tool) + +[34665](https://github.com/flutter/flutter/pull/34665) Selection handles position is off (a: text input, cla: yes, framework, severe: API break) + +[34669](https://github.com/flutter/flutter/pull/34669) Bundle ios dependencies (cla: yes, tool) + +[34676](https://github.com/flutter/flutter/pull/34676) Enable selection by default for password text field and expose api to… (a: text input, cla: yes, f: cupertino, f: material design, framework) + +[34712](https://github.com/flutter/flutter/pull/34712) Fix FocusTraversalPolicy makes focus lost (a: desktop, cla: yes, framework) + +[34723](https://github.com/flutter/flutter/pull/34723) CupertinoTextField vertical alignment (cla: yes, f: cupertino, framework) + +[34752](https://github.com/flutter/flutter/pull/34752) [linux] Receives the unmodified characters obtained from GLFW (a: desktop, cla: yes, framework) + +[34785](https://github.com/flutter/flutter/pull/34785) Tweak the display name of emulators (cla: yes, tool) + +[34794](https://github.com/flutter/flutter/pull/34794) Add `emulatorID` field to devices in daemon (cla: yes, tool) + +[34823](https://github.com/flutter/flutter/pull/34823) Introduce image loading performance test. (a: tests, cla: yes, framework) + +[34869](https://github.com/flutter/flutter/pull/34869) [Material] Properly call onChangeStart and onChangeEnd in Range Slider (cla: yes, f: material design, framework) + +[34870](https://github.com/flutter/flutter/pull/34870) Add test case for Flutter Issue #27677 as a benchmark. (cla: yes, engine, framework, severe: performance) + +[34872](https://github.com/flutter/flutter/pull/34872) [Material] Support for hovered, focused, and pressed border color on `OutlineButton`s (cla: yes, f: material design, framework) + +[34877](https://github.com/flutter/flutter/pull/34877) More shards (a: tests, cla: yes, team, waiting for tree to go green) + +[34885](https://github.com/flutter/flutter/pull/34885) Reland: rename web device (cla: yes, tool) + +[34895](https://github.com/flutter/flutter/pull/34895) Remove flutter_tools support for old AOT snapshotting (cla: yes) + +[34896](https://github.com/flutter/flutter/pull/34896) Allow multi-root web builds (cla: yes, tool) + +[34906](https://github.com/flutter/flutter/pull/34906) Fix unused [applicationIcon] property on [showLicensePage] (cla: yes, f: material design, framework) + +[34907](https://github.com/flutter/flutter/pull/34907) Fixed LicensePage to close page before loaded the License causes an error (cla: yes, f: material design, framework, severe: crash) + +[34919](https://github.com/flutter/flutter/pull/34919) Remove duplicate error parts (cla: yes, framework, waiting for tree to go green) + +[34932](https://github.com/flutter/flutter/pull/34932) Added onChanged property to TextFormField (cla: yes, f: material design, framework) + +[34964](https://github.com/flutter/flutter/pull/34964) CupertinoTextField.onTap (cla: yes, f: cupertino) + +[35017](https://github.com/flutter/flutter/pull/35017) sync lint list (cla: yes) + +[35046](https://github.com/flutter/flutter/pull/35046) Add generated Icon diagram to api docs (cla: yes, d: api docs, d: examples, framework) + +[35055](https://github.com/flutter/flutter/pull/35055) enable lint avoid_bool_literals_in_conditional_expressions (cla: yes) + +[35056](https://github.com/flutter/flutter/pull/35056) enable lint use_full_hex_values_for_flutter_colors (cla: yes) + +[35059](https://github.com/flutter/flutter/pull/35059) prepare for lint update of prefer_final_fields (cla: yes) + +[35063](https://github.com/flutter/flutter/pull/35063) add documentation for conic path not supported (a: platform-views, cla: yes, d: api docs, framework, plugin) + +[35066](https://github.com/flutter/flutter/pull/35066) Manual engine roll, Update goldens, improved wavy text decoration 0f9e297ad..185087a65f (a: typography, cla: yes, engine) + +[35074](https://github.com/flutter/flutter/pull/35074) Attempt to enable tool coverage redux (a: tests, cla: yes, tool) + +[35075](https://github.com/flutter/flutter/pull/35075) Allow for customizing SnackBar's content TextStyle in its theme (cla: yes, f: material design, framework) + +[35084](https://github.com/flutter/flutter/pull/35084) Move findTargetDevices to DeviceManager (cla: yes, tool) + +[35092](https://github.com/flutter/flutter/pull/35092) Add FlutterProjectFactory so that it can be overridden internally. (cla: yes, tool) + +[35110](https://github.com/flutter/flutter/pull/35110) Always test semantics (a: accessibility, a: tests, cla: yes, framework, severe: API break) + +[35129](https://github.com/flutter/flutter/pull/35129) [Material] Wrap Flutter Gallery's Expansion Panel Slider in padded Container to make room for Value Indicator. (cla: yes, f: material design, framework, severe: regression) + +[35130](https://github.com/flutter/flutter/pull/35130) pass new users for release_smoke_tests (a: tests, cla: yes, team) + +[35132](https://github.com/flutter/flutter/pull/35132) Reduce allocations by reusing a matrix for transient transforms in _transformRect (cla: yes) + +[35136](https://github.com/flutter/flutter/pull/35136) Update Dark Theme disabledColor to White38 (cla: yes, f: material design, framework, severe: API break) + +[35143](https://github.com/flutter/flutter/pull/35143) More HttpClientResponse Uint8List fixes (cla: yes) + +[35149](https://github.com/flutter/flutter/pull/35149) More `HttpClientResponse implements Stream` fixes (cla: yes) + +[35150](https://github.com/flutter/flutter/pull/35150) Change didUpdateConfig to didUpdateWidget (cla: yes, d: api docs, framework) + +[35157](https://github.com/flutter/flutter/pull/35157) Remove skip clause on tools coverage (cla: yes, team) + +[35160](https://github.com/flutter/flutter/pull/35160) Move usage flutter create tests into memory filesystem. (a: tests, cla: yes, tool) + +[35164](https://github.com/flutter/flutter/pull/35164) Update reassemble doc (cla: yes, customer: product, d: api docs, framework, severe: customer critical) + +[35186](https://github.com/flutter/flutter/pull/35186) Make tool coverage collection resilient to sentinel coverage data (cla: yes, tool) + +[35188](https://github.com/flutter/flutter/pull/35188) ensure test isolate is paused before collecting coverage (cla: yes, tool) + +[35189](https://github.com/flutter/flutter/pull/35189) enable lints prefer_spread_collections and prefer_inlined_adds (cla: yes) + +[35192](https://github.com/flutter/flutter/pull/35192) don't block any presubmit on coverage (cla: yes, tool) + +[35197](https://github.com/flutter/flutter/pull/35197) [flutter_tool] Update Fuchsia SDK (cla: yes, tool) + +[35206](https://github.com/flutter/flutter/pull/35206) Force-upgrade package deps (cla: yes) + +[35207](https://github.com/flutter/flutter/pull/35207) refactor out selection handlers (a: text input, cla: yes, customer: amplify, customer: fuchsia, framework) + +[35211](https://github.com/flutter/flutter/pull/35211) `child` param doc update in Ink and Ink.image (cla: yes, d: api docs, f: material design, framework) + +[35217](https://github.com/flutter/flutter/pull/35217) Add flutter build aar (a: build, cla: yes, tool, waiting for tree to go green) + +[35219](https://github.com/flutter/flutter/pull/35219) Text selection menu show/hide cases (a: text input, cla: yes, f: material design, framework) + +[35221](https://github.com/flutter/flutter/pull/35221) Twiggle bit to exclude dev and beta from desktop and web (cla: yes, tool) + +[35223](https://github.com/flutter/flutter/pull/35223) Navigator pushAndRemoveUntil Fix (cla: yes, customer: mulligan (g3), f: routes, framework, severe: crash, waiting for tree to go green) + +[35225](https://github.com/flutter/flutter/pull/35225) add sample code for AnimatedContainer (a: animation, cla: yes, d: api docs, d: examples, framework) + +[35231](https://github.com/flutter/flutter/pull/35231) Fix coverage collection (cla: yes, tool) + +[35232](https://github.com/flutter/flutter/pull/35232) New benchmark: Gesture semantics (cla: yes, waiting for tree to go green) + +[35233](https://github.com/flutter/flutter/pull/35233) Attempt skipping coverage shard if tools did not change (cla: yes) + +[35237](https://github.com/flutter/flutter/pull/35237) Revert "Manual engine roll, Update goldens, improved wavy text decoration 0f9e297ad..185087a65f" (cla: yes) + +[35242](https://github.com/flutter/flutter/pull/35242) Reland "Manual engine roll, Update goldens, improved wavy text decoration 0f9e297ad..185087a65f"" (cla: yes) + +[35245](https://github.com/flutter/flutter/pull/35245) More preparation for HttpClientResponse implements Uint8List (cla: yes) + +[35246](https://github.com/flutter/flutter/pull/35246) attempt to not skip coverage on post commit (cla: yes) + +[35263](https://github.com/flutter/flutter/pull/35263) remove unnecessary ..toList() (cla: yes) + +[35276](https://github.com/flutter/flutter/pull/35276) Revert "[Material] Support for hovered, focused, and pressed border color on `OutlineButton`s" (cla: yes) + +[35278](https://github.com/flutter/flutter/pull/35278) Re-land "[Material] Support for hovered, focused, and pressed border color on `OutlineButton`s" (cla: yes) + +[35280](https://github.com/flutter/flutter/pull/35280) benchmarkWidgets.semanticsEnabled default false. (cla: yes) + +[35282](https://github.com/flutter/flutter/pull/35282) Add Container fallback to Ink build method (cla: yes, f: material design, framework) + +[35288](https://github.com/flutter/flutter/pull/35288) Apply coverage skip math correctly (cla: yes) + +[35290](https://github.com/flutter/flutter/pull/35290) tests for about page (cla: yes) + +[35297](https://github.com/flutter/flutter/pull/35297) Fix the first frame logic in tracing and driver (cla: yes, engine, framework, severe: performance, team) + +[35303](https://github.com/flutter/flutter/pull/35303) fix default artifacts to exclude ios and android (cla: yes, tool) + +[35307](https://github.com/flutter/flutter/pull/35307) Clean up host_app_ephemeral Profile build settings (a: existing-apps, cla: yes, t: xcode, tool, ⌺‬ platform-ios) + +[35335](https://github.com/flutter/flutter/pull/35335) Using custom exception class for network loading error (a: images, cla: yes, framework) + +[35367](https://github.com/flutter/flutter/pull/35367) Add type to StreamChannel in generated test code. (cla: yes, tool) + +[35392](https://github.com/flutter/flutter/pull/35392) Add timer checking and Fake http client to testbed (cla: yes, tool) + +[35393](https://github.com/flutter/flutter/pull/35393) more ui-as-code (cla: yes, team) + +[35406](https://github.com/flutter/flutter/pull/35406) Refactor signal and command line handler from resident runner (cla: yes, team, tool) + +[35407](https://github.com/flutter/flutter/pull/35407) Manual engine roll (cla: yes, engine, team) + +[35408](https://github.com/flutter/flutter/pull/35408) Remove print (cla: yes) + +[35423](https://github.com/flutter/flutter/pull/35423) v1.7.8 hotfixes (cla: yes) + +[35424](https://github.com/flutter/flutter/pull/35424) Introduce image_list performance benchmark that runs on jit(debug) build. (a: images, a: tests, cla: yes, framework) + +[35464](https://github.com/flutter/flutter/pull/35464) Manual roll of engine 45b66b7...ffba2f6 (cla: yes, team) + +[35465](https://github.com/flutter/flutter/pull/35465) Mark update-packages as non-experimental (cla: yes, tool) + +[35467](https://github.com/flutter/flutter/pull/35467) Mark update-packages as non-experimental (cla: yes, tool) + +[35468](https://github.com/flutter/flutter/pull/35468) Add colorFilterLayer/Widget (a: accessibility, cla: yes, customer: octopod, framework, waiting for tree to go green) + +[35477](https://github.com/flutter/flutter/pull/35477) Update macrobenchmarks README and app name (a: tests, cla: yes, team) + +[35480](https://github.com/flutter/flutter/pull/35480) Update the help message on precache command for less confusion (cla: yes, tool) + +[35481](https://github.com/flutter/flutter/pull/35481) add APK build time benchmarks (cla: yes, tool) + +[35482](https://github.com/flutter/flutter/pull/35482) Use the new service protocol message names (cla: yes) + +[35487](https://github.com/flutter/flutter/pull/35487) Fix RenderFittedBox when child.size.isEmpty (a: accessibility, cla: yes, framework) + +[35491](https://github.com/flutter/flutter/pull/35491) Include tags in SemanticsNode debug properties (cla: yes, framework) + +[35492](https://github.com/flutter/flutter/pull/35492) Re-apply 'Add currentSystemFrameTimeStamp to SchedulerBinding' (cla: yes, framework) + +[35493](https://github.com/flutter/flutter/pull/35493) Do not use ideographic baseline for RenderPargraph baseline (a: typography, cla: yes, engine, framework) + +[35495](https://github.com/flutter/flutter/pull/35495) mark windows and macos chrome dev mode as flaky (cla: yes, team) + +[35496](https://github.com/flutter/flutter/pull/35496) [Material] Text scale and wide label fixes for Slider and Range Slider value indicator shape (cla: yes, f: material design) + +[35499](https://github.com/flutter/flutter/pull/35499) Added MaterialApp.themeMode to control which theme is used. (cla: yes, f: material design, framework) + +[35548](https://github.com/flutter/flutter/pull/35548) Various doc fixes (cla: yes, framework) + +[35556](https://github.com/flutter/flutter/pull/35556) ios (iPhone6) and iPhone XS tiles_scroll_perf tests (cla: yes, severe: performance, team, ⌺‬ platform-ios) + +[35560](https://github.com/flutter/flutter/pull/35560) Support for elevation based dark theme overlay color in the Material widget (cla: yes, f: material design, framework) + +[35573](https://github.com/flutter/flutter/pull/35573) update packages (cla: yes, team) + +[35574](https://github.com/flutter/flutter/pull/35574) Fix semantics for floating pinned sliver app bar (a: accessibility, cla: yes, f: scrolling, framework, waiting for tree to go green) + +[35646](https://github.com/flutter/flutter/pull/35646) Prepare for Socket implements Stream (cla: yes) + +[35657](https://github.com/flutter/flutter/pull/35657) Remove paused check for tooling tests (cla: yes, tool) + +[35681](https://github.com/flutter/flutter/pull/35681) Disable incremental compiler in dartdevc (cla: yes, tool) + +[35684](https://github.com/flutter/flutter/pull/35684) Fix typo in main.dart templates (cla: yes, d: api docs, framework) + +[35708](https://github.com/flutter/flutter/pull/35708) disable a test case in xcode_backend.sh (cla: yes, tool) + +[35709](https://github.com/flutter/flutter/pull/35709) Remove web, fuchsia, and unsupported devices from all (cla: yes, tool) + +[35725](https://github.com/flutter/flutter/pull/35725) Update annotated region findAll implementation to use Iterables directly. (cla: yes, framework) + +[35728](https://github.com/flutter/flutter/pull/35728) Added demo projects for splash screen support on Android. (a: existing-apps, cla: yes, team) + +[35731](https://github.com/flutter/flutter/pull/35731) Keep LLDB connection to iOS device alive while running from CLI. (cla: yes, tool) + +[35743](https://github.com/flutter/flutter/pull/35743) Simple Doc Fixes (cla: yes, d: api docs, framework) + +[35745](https://github.com/flutter/flutter/pull/35745) enable lint prefer_if_null_operators (cla: yes, team) + +[35749](https://github.com/flutter/flutter/pull/35749) add iOS build benchmarks (cla: yes, team, tool) + +[35750](https://github.com/flutter/flutter/pull/35750) use sentence case in error message titles (cla: yes, framework) + +[35756](https://github.com/flutter/flutter/pull/35756) Remove @objc inference build setting (cla: yes, t: xcode, tool) + +[35762](https://github.com/flutter/flutter/pull/35762) Refactor keymapping for resident_runner (cla: yes) + +[35763](https://github.com/flutter/flutter/pull/35763) UIApplicationLaunchOptionsKey -> UIApplication.LaunchOptionsKey (cla: yes, t: xcode, tool, ⌺‬ platform-ios) + +[35765](https://github.com/flutter/flutter/pull/35765) Use public _registerService RPC in flutter_tools (cla: yes, tool) + +[35767](https://github.com/flutter/flutter/pull/35767) set targets of zero percent for tools codecoverage (cla: yes, tool) + +[35775](https://github.com/flutter/flutter/pull/35775) Add platform_interaction_test_swift to devicelab (a: tests, cla: yes, framework, p: framework, plugin, ⌺‬ platform-ios) + +[35777](https://github.com/flutter/flutter/pull/35777) Fixed logLevel filter bug so that filter now works as expected (cla: yes, team) + +[35778](https://github.com/flutter/flutter/pull/35778) Build all example projects in CI build smoke test (a: tests, cla: yes, team) + +[35780](https://github.com/flutter/flutter/pull/35780) Remove CoocaPods support from layers example app (a: tests, cla: yes, d: examples, team) + +[35785](https://github.com/flutter/flutter/pull/35785) Remove reverseDuration from implicitly animated widgets, since it's ignored. (a: animation, cla: yes, framework, severe: API break) + +[35792](https://github.com/flutter/flutter/pull/35792) disable web tests (cla: yes) + +[35810](https://github.com/flutter/flutter/pull/35810) SliverFillRemaining accounts for child size when hasScrollBody is false (cla: yes, f: scrolling, framework, waiting for tree to go green) + +[35814](https://github.com/flutter/flutter/pull/35814) Roll engine e695a516f..75387dbc1 (8 commits) (cla: yes, team) + +[35825](https://github.com/flutter/flutter/pull/35825) Fixed build of example code to use new binary messenger API. (cla: yes, team) + +[35828](https://github.com/flutter/flutter/pull/35828) Cleanup widgets/sliver_persistent_header.dart with resolution of dart-lang/sdk#31543 (cla: yes, framework) + +[35829](https://github.com/flutter/flutter/pull/35829) iOS 13 scrollbar (cla: yes, f: cupertino, framework) + +[35833](https://github.com/flutter/flutter/pull/35833) Disable CocoaPods input and output paths in Xcode build phase for ephemeral add-to-app project (a: existing-apps, cla: yes, tool, ⌺‬ platform-ios) + +[35839](https://github.com/flutter/flutter/pull/35839) use pub run for create test and remove [INFO] logs (cla: yes, tool) + +[35846](https://github.com/flutter/flutter/pull/35846) move reload and restart handling into terminal (cla: yes, tool) + +[35878](https://github.com/flutter/flutter/pull/35878) Add flag to use root navigator for showModalBottomSheet (cla: yes, f: material design, framework) + +[35892](https://github.com/flutter/flutter/pull/35892) Doc fixes (cla: yes, d: api docs, d: examples, framework) + +[35906](https://github.com/flutter/flutter/pull/35906) Add anchors to samples (cla: yes, team) + +[35913](https://github.com/flutter/flutter/pull/35913) Change focus example to be more canonical (and correct) (cla: yes, framework) + +[35919](https://github.com/flutter/flutter/pull/35919) Animation API doc improvments (a: animation, cla: yes, framework, waiting for tree to go green) + +[35926](https://github.com/flutter/flutter/pull/35926) Add example showing how to move from one field to the next. (cla: yes, d: api docs, d: examples, framework) + +[35932](https://github.com/flutter/flutter/pull/35932) Upgraded framework packages with 'flutter update-packages --force-upgrade'. (cla: yes, framework) + +[35941](https://github.com/flutter/flutter/pull/35941) SliverLayoutBuilder (cla: yes, f: scrolling, framework) + +[35942](https://github.com/flutter/flutter/pull/35942) Use test instead of test_api package in platform_channel_swift example tests (a: tests, cla: yes, d: examples, team) + +[35971](https://github.com/flutter/flutter/pull/35971) [ImgBot] Optimize images (cla: yes, team) + +[35979](https://github.com/flutter/flutter/pull/35979) Optimizes gesture recognizer fixes #35658 (cla: yes, f: gestures, framework) + +[35991](https://github.com/flutter/flutter/pull/35991) Enable widget load assets in its own package in test (a: tests, cla: yes, tool) + +[35996](https://github.com/flutter/flutter/pull/35996) Revert "Keep LLDB connection to iOS device alive while running from CLI." (cla: yes) + +[35999](https://github.com/flutter/flutter/pull/35999) Deflake ImageProvider.evict test (a: images, a: tests, cla: yes, team: flakes) + +[36006](https://github.com/flutter/flutter/pull/36006) fix linesplitter (cla: yes, team) + +[36017](https://github.com/flutter/flutter/pull/36017) Move reporting files to reporting/ (cla: yes, tool) + +[36026](https://github.com/flutter/flutter/pull/36026) add the transformPoint and transformRect benchmarks (cla: yes, team) + +[36028](https://github.com/flutter/flutter/pull/36028) Fix slider preferred height (cla: yes, f: material design, framework) + +[36030](https://github.com/flutter/flutter/pull/36030) [Material] Implement TooltipTheme and Tooltip.textStyle, fix Tooltip debugLabel, update Tooltip defaults (cla: yes, f: material design, framework, severe: API break, severe: new feature) + +[36071](https://github.com/flutter/flutter/pull/36071) Revert "Bundle ios dependencies" (cla: yes, team, tool) + +[36082](https://github.com/flutter/flutter/pull/36082) Add better handling of JSON-RPC exception (cla: yes, tool) + +[36084](https://github.com/flutter/flutter/pull/36084) handle google3 version of pb (cla: yes, tool) + +[36087](https://github.com/flutter/flutter/pull/36087) Update visual style of CupertinoSwitch to match iOS 13 (cla: yes, f: cupertino, framework) + +[36088](https://github.com/flutter/flutter/pull/36088) Add PopupMenuTheme to enable theming color, shape, elevation, text style of Menu (cla: yes, f: material design, framework) + +[36089](https://github.com/flutter/flutter/pull/36089) Fix flaky peer connection (a: tests, cla: yes, framework) + +[36090](https://github.com/flutter/flutter/pull/36090) don't require diffs to have a percentage coverage greater (cla: yes, team) + +[36093](https://github.com/flutter/flutter/pull/36093) Reland bundle ios deps (cla: yes, team, tool) + +[36094](https://github.com/flutter/flutter/pull/36094) Revert "Part 1: Skia Gold Testing" (cla: yes, f: cupertino, f: material design, framework, team) + +[36096](https://github.com/flutter/flutter/pull/36096) Revert "Merge branches 'master' and 'master' of github.com:flutter/fl… (cla: yes, tool) + +[36097](https://github.com/flutter/flutter/pull/36097) Fix nested scroll view can rebuild without layout (cla: yes, f: scrolling, framework, severe: crash) + +[36098](https://github.com/flutter/flutter/pull/36098) Be clearer about errors in customer testing script (cla: yes, team) + +[36102](https://github.com/flutter/flutter/pull/36102) Move buildable module test to a module test (cla: yes, team) + +[36103](https://github.com/flutter/flutter/pull/36103) Re-land "Part 1: Skia Gold Testing" (a: tests, cla: yes, framework, waiting for tree to go green) + +[36105](https://github.com/flutter/flutter/pull/36105) [flutter_tool] Catch a yaml parse failure during project creation (cla: yes, team, tool) + +[36106](https://github.com/flutter/flutter/pull/36106) Updated ColorScheme.dark() colors to match the Material Dark theme specification (cla: yes, f: material design, framework, severe: API break) + +[36108](https://github.com/flutter/flutter/pull/36108) Move tools tests into a general.shard directory in preparation to changing how we shard tools tests (cla: yes, tool) + +[36109](https://github.com/flutter/flutter/pull/36109) Catch exceptions thrown by runChecked* when possible (cla: yes, tool, waiting for tree to go green) + +[36122](https://github.com/flutter/flutter/pull/36122) Make sure add-to-app build bundle from outer xcodebuild/gradlew sends analytics (cla: yes, team, tool) + +[36123](https://github.com/flutter/flutter/pull/36123) Attempt to re-enable integration_tests-macos (a: tests, cla: yes, team, team: flakes) + +[36135](https://github.com/flutter/flutter/pull/36135) add a kIsWeb constant to foundation (cla: yes, framework) + +[36138](https://github.com/flutter/flutter/pull/36138) Implement feature flag system for flutter tools (cla: yes, tool) + +[36174](https://github.com/flutter/flutter/pull/36174) [cupertino_icons] Add glyph refs for brightness #16102 (cla: yes, f: cupertino, framework) + +[36194](https://github.com/flutter/flutter/pull/36194) Keep LLDB connection to iOS device alive while running from CLI. (cla: yes, tool) + +[36197](https://github.com/flutter/flutter/pull/36197) Fix windows, exclude widgets from others (cla: yes, team) + +[36199](https://github.com/flutter/flutter/pull/36199) Don't try to flutterExit if isolate is still paused (cla: yes, tool) + +[36200](https://github.com/flutter/flutter/pull/36200) Refactoring the Android_views tests app to prepare for adding the iOS platform view tests (a: platform-views, a: tests, cla: yes, team) + +[36202](https://github.com/flutter/flutter/pull/36202) Add clarifying docs on MaterialButton.colorBrightness (cla: yes, d: api docs, f: material design, framework) + +[36208](https://github.com/flutter/flutter/pull/36208) [flutter_tool] Allow analytics without a terminal attached (cla: yes, tool) + +[36213](https://github.com/flutter/flutter/pull/36213) Use DeviceManager instead of device to determine if device supports project. (cla: yes, tool) + +[36217](https://github.com/flutter/flutter/pull/36217) Split Mouse from Listener (a: desktop, cla: yes, framework, severe: API break, waiting for tree to go green) + +[36218](https://github.com/flutter/flutter/pull/36218) release lock in flutter pub context (cla: yes, tool) + +[36237](https://github.com/flutter/flutter/pull/36237) Recommend to use the final version of CDN support for the trunk specs repo. (cla: yes, tool) + +[36240](https://github.com/flutter/flutter/pull/36240) Rearrange flutter assemble implementation (cla: yes, tool) + +[36243](https://github.com/flutter/flutter/pull/36243) Allow semantics labels to be shorter or longer than raw text (a: accessibility, cla: yes, customer: money (g3), framework, waiting for tree to go green) + +[36262](https://github.com/flutter/flutter/pull/36262) Prevents infinite loop in Table._computeColumnWidths (cla: yes, framework) + +[36270](https://github.com/flutter/flutter/pull/36270) Change Future.done to Future.whenComplete (a: tests, cla: yes, framework, team, waiting for tree to go green) + +[36288](https://github.com/flutter/flutter/pull/36288) Throw exception if instantiating IOSDevice on non-mac os platform (cla: yes, tool) + +[36289](https://github.com/flutter/flutter/pull/36289) FakeHttpClientResponse improvements (cla: yes, tool) + +[36293](https://github.com/flutter/flutter/pull/36293) Revert "Keep LLDB connection to iOS device alive while running from CLI. " (cla: yes, tool) + +[36297](https://github.com/flutter/flutter/pull/36297) Add multi-line flag to semantics (a: accessibility, cla: yes, framework, ☸ platform-web) + +[36302](https://github.com/flutter/flutter/pull/36302) Issues/30526 gc (cla: yes, framework) + +[36303](https://github.com/flutter/flutter/pull/36303) Add sync star benchmark cases (a: accessibility, cla: yes, team) + +[36317](https://github.com/flutter/flutter/pull/36317) Disable flaky tests on Windows (cla: yes, f: material design, framework) + +[36318](https://github.com/flutter/flutter/pull/36318) Include flutter_runner in precache artifacts. (cla: yes, tool) + +[36319](https://github.com/flutter/flutter/pull/36319) Revert "Fix semantics for floating pinned sliver app bar" (cla: yes, framework) + +[36327](https://github.com/flutter/flutter/pull/36327) Fix invocations of ideviceinstaller not passing DYLD_LIBRARY_PATH (cla: yes, tool) + +[36331](https://github.com/flutter/flutter/pull/36331) Minor fixes to precache help text (attempt #2) (cla: yes, tool) + +[36333](https://github.com/flutter/flutter/pull/36333) fix sliver fixed pinned appbar (cla: yes, framework, waiting for tree to go green) + +[36334](https://github.com/flutter/flutter/pull/36334) Added a Driver API that waits until frame sync (a: tests, cla: yes, framework) + +[36379](https://github.com/flutter/flutter/pull/36379) Add missing test case for Usage (cla: yes, tool) + +[36384](https://github.com/flutter/flutter/pull/36384) rename the test app android_views to platform_views (cla: yes, team) + +[36391](https://github.com/flutter/flutter/pull/36391) Adds doc example for Listview and pageview (cla: yes, d: api docs, framework) + +[36392](https://github.com/flutter/flutter/pull/36392) Increase pattern that matches operation duration in log_test (a: tests, cla: yes, tool, waiting for tree to go green) + +[36394](https://github.com/flutter/flutter/pull/36394) Add missing protobuf dependency (cla: yes, tool) + +[36396](https://github.com/flutter/flutter/pull/36396) Optimize the transformRect and transformPoint methods in matrix_utils. (cla: yes, framework) + +[36399](https://github.com/flutter/flutter/pull/36399) Added ThemeMode support to the Flutter Gallery (cla: yes, d: examples, team, team: gallery) + +[36402](https://github.com/flutter/flutter/pull/36402) Teach render objects to reuse engine layers (cla: yes, framework, severe: API break, severe: performance, ☸ platform-web) + +[36404](https://github.com/flutter/flutter/pull/36404) Make test back button label deterministic (cla: yes, team) + +[36409](https://github.com/flutter/flutter/pull/36409) Add searchFieldLabel to SearchDelegate in order to show a custom hint (cla: yes, f: material design, framework) + +[36410](https://github.com/flutter/flutter/pull/36410) Add plumbing for hello world startup test in devicelab (cla: yes, team) + +[36411](https://github.com/flutter/flutter/pull/36411) Implement InputDecorationTheme copyWith, ==, hashCode (cla: yes, f: material design, framework, severe: new feature) + +[36413](https://github.com/flutter/flutter/pull/36413) Revert "Roll engine f3482700474a..1af19ae67dd1 (4 commits)" (cla: yes, engine) + +[36418](https://github.com/flutter/flutter/pull/36418) Add testing to screenshot and printDetails method (cla: yes, tool) + +[36421](https://github.com/flutter/flutter/pull/36421) doc : ReorderableListView - added youtube video from WidgetOfTheWeek … (cla: yes, f: material design, framework) + +[36428](https://github.com/flutter/flutter/pull/36428) Bump engine version (cla: yes, engine, team) + +[36431](https://github.com/flutter/flutter/pull/36431) Re-enable `flutter test` expression evaluation tests (a: tests, cla: yes, tool) + +[36434](https://github.com/flutter/flutter/pull/36434) Clean up flutter driver device detection. (cla: yes, tool) + +[36460](https://github.com/flutter/flutter/pull/36460) Add images and update examples for top widgets: (cla: yes, d: api docs, d: examples, f: material design, framework) + +[36465](https://github.com/flutter/flutter/pull/36465) Use FlutterFeatures to configure web and desktop devices (cla: yes, tool) + +[36468](https://github.com/flutter/flutter/pull/36468) Fix test_widgets-windows not running tests (a: tests, cla: yes, framework, team, waiting for tree to go green) + +[36471](https://github.com/flutter/flutter/pull/36471) Enable bitcode compilation for AOT (cla: yes) + +[36481](https://github.com/flutter/flutter/pull/36481) Remove untested code (cla: yes, tool) + +[36482](https://github.com/flutter/flutter/pull/36482) Sped up shader warmup by only drawing on a 100x100 surface (cla: yes, framework) + +[36485](https://github.com/flutter/flutter/pull/36485) Add text border docs (a: typography, cla: yes, d: api docs, framework) + +[36490](https://github.com/flutter/flutter/pull/36490) [flutter_tool] Send analytics command before the command runs (cla: yes, tool) + +[36492](https://github.com/flutter/flutter/pull/36492) Add GitHub CODEOWNERS file to auto-add reviewers by path (cla: yes, team) + +[36493](https://github.com/flutter/flutter/pull/36493) Fixes sliver list does not layout firstchild when child reordered (cla: yes, framework) + +[36498](https://github.com/flutter/flutter/pull/36498) Clean up host_app_ephemeral_cocoapods Profile build settings (a: existing-apps, cla: yes, t: xcode, tool, ⌺‬ platform-ios) + +[36503](https://github.com/flutter/flutter/pull/36503) Disabling Firebase Test Lab smoke test to unblock autoroller (cla: yes) + +[36507](https://github.com/flutter/flutter/pull/36507) Bump engine version (cla: yes, engine, team, tool) + +[36510](https://github.com/flutter/flutter/pull/36510) flutter update-packages --force-upgrade (cla: yes, team) + +[36512](https://github.com/flutter/flutter/pull/36512) Renamed the Driver API waitUntilFrameSync to waitUntilNoPendingFrame (a: tests, cla: yes, framework) + +[36513](https://github.com/flutter/flutter/pull/36513) Fix `flutter pub -v` (cla: yes, tool) + +[36545](https://github.com/flutter/flutter/pull/36545) [flutter_tool] Send the local time to analytics with screens and events (cla: yes, tool, work in progress; do not review) + +[36546](https://github.com/flutter/flutter/pull/36546) Unskip date_picker_test on Windows as underlying issue 19696 was fixed. (cla: yes, f: material design, framework) + +[36548](https://github.com/flutter/flutter/pull/36548) Fix the web builds by reverting version bump of build_modules (cla: yes, tool) + +[36549](https://github.com/flutter/flutter/pull/36549) fix number encoding in message codecs for the Web (cla: yes, framework) + +[36553](https://github.com/flutter/flutter/pull/36553) Load assets during test from file system instead of manifest. (a: tests, cla: yes, framework) + +[36556](https://github.com/flutter/flutter/pull/36556) Fix usage test to use local usage (cla: yes, tool) + +[36560](https://github.com/flutter/flutter/pull/36560) [flutter_tools] Add some useful commands to the README.md (cla: yes, tool) + +[36564](https://github.com/flutter/flutter/pull/36564) Make sure fx flutter attach can find devices (cla: yes, tool) + +[36569](https://github.com/flutter/flutter/pull/36569) Some minor cleanup for flutter_tools (cla: yes, tool) + +[36570](https://github.com/flutter/flutter/pull/36570) Some minor fixes to the tool_coverage tool (cla: yes, tool) + +[36571](https://github.com/flutter/flutter/pull/36571) Some minor cleanup in devicelab (cla: yes, team) + +[36579](https://github.com/flutter/flutter/pull/36579) Add gradient text docs (a: typography, cla: yes, framework) + +[36585](https://github.com/flutter/flutter/pull/36585) Place build outputs under dart tool (cla: yes, tool) + +[36589](https://github.com/flutter/flutter/pull/36589) Update Localizations: added 24 new locales (reprise) (a: internationalization, cla: yes, f: cupertino, f: material design) + +[36595](https://github.com/flutter/flutter/pull/36595) More resident runner tests (cla: yes, tool) + +[36598](https://github.com/flutter/flutter/pull/36598) Expose functionality to compile dart to kernel for the VM (cla: yes, tool) + +[36618](https://github.com/flutter/flutter/pull/36618) Revert "AsyncSnapshot.data to throw if error or no data" (cla: yes, framework) + +[36654](https://github.com/flutter/flutter/pull/36654) Revert "Use FlutterFeatures to configure web and desktop devices" (cla: yes, team, tool) + +[36679](https://github.com/flutter/flutter/pull/36679) add line-length to `flutter format` command line (cla: yes, tool) + +[36690](https://github.com/flutter/flutter/pull/36690) Updating cirrus fingerprint script to include goldens version (a: tests, cla: yes, framework, waiting for tree to go green) + +[36695](https://github.com/flutter/flutter/pull/36695) Android visible password input type support (cla: yes, framework) + +[36698](https://github.com/flutter/flutter/pull/36698) fixes iphone force press keyboard select crashes (cla: yes, framework) + +[36699](https://github.com/flutter/flutter/pull/36699) Reland: use flutter features for web and desktop (cla: yes, team, tool) + +[36717](https://github.com/flutter/flutter/pull/36717) Fix devicelab tests that did not enable web config. (cla: yes, team) + +[36722](https://github.com/flutter/flutter/pull/36722) Skip flaky test windows (cla: yes, tool) + +[36727](https://github.com/flutter/flutter/pull/36727) Add missing config to create (cla: yes, team, tool) + +[36731](https://github.com/flutter/flutter/pull/36731) Revert "Add flutter build aar" (cla: yes, team, tool) + +[36732](https://github.com/flutter/flutter/pull/36732) Flutter build aar (a: build, cla: yes, team, tool, waiting for tree to go green) + +[36768](https://github.com/flutter/flutter/pull/36768) add an error count field to the Flutter.Error event (cla: yes, framework) + +[36773](https://github.com/flutter/flutter/pull/36773) Expose build-dir config option (cla: yes, tool) + +[36774](https://github.com/flutter/flutter/pull/36774) Parameterize CoverageCollector with a library name predicate (cla: yes, tool) + +[36784](https://github.com/flutter/flutter/pull/36784) [flutter_tool] Improve Windows flutter clean error message (cla: yes, tool) + +[36785](https://github.com/flutter/flutter/pull/36785) [flutter_tool] Clean up usage events and custom dimensions (cla: yes, tool) + +[36787](https://github.com/flutter/flutter/pull/36787) Check for directory instead of path separator (cla: yes, tool) + +[36793](https://github.com/flutter/flutter/pull/36793) Vend Flutter module App.framework as a local CocoaPod pod to be installed by a host app (a: existing-apps, cla: yes, t: xcode, team, tool, ⌺‬ platform-ios) + +[36805](https://github.com/flutter/flutter/pull/36805) Allow flavors and custom build types in host app (a: build, a: existing-apps, cla: yes, t: gradle, team, tool, waiting for tree to go green) + +[36832](https://github.com/flutter/flutter/pull/36832) Remove flaky check for analyzer message. (cla: yes, tool) + +[36845](https://github.com/flutter/flutter/pull/36845) Improve Windows build failure message (cla: yes, tool, waiting for tree to go green) + +[36851](https://github.com/flutter/flutter/pull/36851) Revert "[Material] Implement TooltipTheme and Tooltip.textStyle, fix Tooltip debugLabel, update Tooltip defaults" (cla: yes, f: material design, framework) + +[36856](https://github.com/flutter/flutter/pull/36856) [Material] Implement TooltipTheme and Tooltip.textStyle, update Tooltip defaults (cla: yes, f: material design, framework, severe: API break, severe: new feature) + +[36857](https://github.com/flutter/flutter/pull/36857) Ensure user-thrown errors have ErrorSummary nodes (cla: yes, framework) + +[36860](https://github.com/flutter/flutter/pull/36860) Remove Chain terse parsing (cla: yes, tool) + +[36866](https://github.com/flutter/flutter/pull/36866) Tests for `flutter test [some_directory]` (cla: yes, team, tool) + +[36867](https://github.com/flutter/flutter/pull/36867) Add reference to StrutStyle from TextStyle (cla: yes, framework) + +[36874](https://github.com/flutter/flutter/pull/36874) Adjust phrasing of features (cla: yes, tool) + +[36877](https://github.com/flutter/flutter/pull/36877) Revert "Dismiss modal with any button press" (cla: yes, framework) + +[36880](https://github.com/flutter/flutter/pull/36880) [Material] Create material Banner component (cla: yes, f: material design, framework) + +[36884](https://github.com/flutter/flutter/pull/36884) Unbreak build_runner (cla: yes, team, tool) + +[36885](https://github.com/flutter/flutter/pull/36885) Manual roll of flutter/engine@ef99738...72341ed (cla: yes, engine, tool) + +[36886](https://github.com/flutter/flutter/pull/36886) Add annotation dependency to plugins (cla: yes, team, tool, waiting for tree to go green) + +[36887](https://github.com/flutter/flutter/pull/36887) Fix thumb size calculation (cla: yes, f: cupertino, framework) + +[36893](https://github.com/flutter/flutter/pull/36893) Fix minor typos (cla: yes, framework) + +[36895](https://github.com/flutter/flutter/pull/36895) Mark splash test flaky until proved stable. (cla: yes, team) + +[36901](https://github.com/flutter/flutter/pull/36901) Run Gradle tests on Windows (a: build, cla: yes, team, tool) + +[36949](https://github.com/flutter/flutter/pull/36949) Remove stdout related to settings_aar.gradle (a: tests, cla: yes, t: flutter driver, team) + +[36955](https://github.com/flutter/flutter/pull/36955) Extract common PlatformView functionality: Painting and Semantics (a: platform-views, cla: yes, framework) + +[36956](https://github.com/flutter/flutter/pull/36956) Redo: Modal dismissed by any button (cla: yes, framework, waiting for tree to go green) + +[36963](https://github.com/flutter/flutter/pull/36963) Add margins to tooltips (cla: yes, f: material design, framework, severe: new feature) + +[36964](https://github.com/flutter/flutter/pull/36964) Interactive size const (cla: yes, f: cupertino, f: material design, framework, severe: API break) + +[36966](https://github.com/flutter/flutter/pull/36966) Roll back the AAR build experiment (cla: yes, tool) + +[36969](https://github.com/flutter/flutter/pull/36969) devicelab: replace the FLUTTER_ENGINE environment variable with the new local engine flags (cla: yes, team) + +[36970](https://github.com/flutter/flutter/pull/36970) Clarify showDuration and waitDuration API docs and test behavior (cla: yes, d: api docs, f: material design, framework) + +[36974](https://github.com/flutter/flutter/pull/36974) Multiline Selection Menu Position Bug (a: text input, cla: yes, f: material design, framework) + +[36987](https://github.com/flutter/flutter/pull/36987) Flutter assemble for macos take 2! (cla: yes, tool, ⌘‬ platform-mac) + +[36997](https://github.com/flutter/flutter/pull/36997) Added missing png's to demo splash screen project (was caused by global gitignore). (cla: yes, team) + +[37026](https://github.com/flutter/flutter/pull/37026) Add support for the Kannada (kn) locale (a: internationalization, cla: yes, f: cupertino, f: material design, team) + +[37027](https://github.com/flutter/flutter/pull/37027) Revert "Fix the first frame logic in tracing and driver" (a: tests, cla: yes, d: examples, framework, team, team: gallery, tool) + +[37030](https://github.com/flutter/flutter/pull/37030) Mark backdrop_filter_perf test nonflaky (cla: yes, team) + +[37033](https://github.com/flutter/flutter/pull/37033) fix debug paint crash when axis direction inverted (cla: yes, framework, severe: crash) + +[37036](https://github.com/flutter/flutter/pull/37036) Build number (part after +) is documented as optional, use entire app version if not present (cla: yes, tool) + +[37037](https://github.com/flutter/flutter/pull/37037) [flutter_tool] Update Fuchsia SDK (cla: yes, tool) + +[37038](https://github.com/flutter/flutter/pull/37038) Update SnackBar to the latest Material specs. (cla: yes, f: material design, framework) + +[37042](https://github.com/flutter/flutter/pull/37042) Fix selection menu not showing after clear (a: text input, cla: yes, framework) + +[37043](https://github.com/flutter/flutter/pull/37043) Tests for Engine ensuring debug-mode apps are attached on iOS. (cla: yes, team, tool) + +[37044](https://github.com/flutter/flutter/pull/37044) [flutter_tool] Make a couple file operations synchronous (cla: yes, tool) + +[37048](https://github.com/flutter/flutter/pull/37048) use SizedBox instead of Container for building collapsed selection (a: text input, cla: yes, f: cupertino, framework) + +[37049](https://github.com/flutter/flutter/pull/37049) Revert Optimize transformRect (cla: yes, framework, waiting for tree to go green) + +[37055](https://github.com/flutter/flutter/pull/37055) Revert "Enable selection by default for password text field and expos… (cla: yes, f: cupertino, f: material design, framework) + +[37158](https://github.com/flutter/flutter/pull/37158) Fix Textfields in Semantics Debugger (a: accessibility, cla: yes, framework, waiting for tree to go green) + +[37183](https://github.com/flutter/flutter/pull/37183) reland Enable selection by default for password text field and expose… (a: text input, cla: yes, customer: fun (g3), f: cupertino, f: material design) + +[37186](https://github.com/flutter/flutter/pull/37186) [flutter_tool] Usage refactor cleanup (cla: yes, tool) + +[37187](https://github.com/flutter/flutter/pull/37187) use FlutterError in MultiChildRenderObjectWidget (cla: yes, framework) + +[37192](https://github.com/flutter/flutter/pull/37192) Reland "Fix the first frame logic in tracing and driver (#35297)" (cla: yes, engine, framework) + +[37194](https://github.com/flutter/flutter/pull/37194) [flutter_tool] More gracefully handle Android sdkmanager failure (cla: yes, tool) + +[37196](https://github.com/flutter/flutter/pull/37196) [flutter_tool] Catch ProcessException from 'adb devices' (cla: yes, tool) + +[37198](https://github.com/flutter/flutter/pull/37198) [flutter_tool] Re-try sending the first crash report (cla: yes, tool) + +[37205](https://github.com/flutter/flutter/pull/37205) add cmx for complex_layout (cla: yes, team) + +[37206](https://github.com/flutter/flutter/pull/37206) Test that modules built as AAR contain the right assets and artifacts (a: build, cla: yes, team, waiting for tree to go green, ▣ platform-android) + +[37207](https://github.com/flutter/flutter/pull/37207) Update complex_layout.cmx (cla: yes, team) + +[37208](https://github.com/flutter/flutter/pull/37208) Roll flutter/engine@09f8bffb9...67319c00b (cla: yes) + +[37210](https://github.com/flutter/flutter/pull/37210) do not strip symbols when building profile (cla: yes, team, tool) + +[37211](https://github.com/flutter/flutter/pull/37211) Don't enable scroll wheel when scrolling is off (a: desktop, cla: yes, customer: octopod, framework) + +[37217](https://github.com/flutter/flutter/pull/37217) hide symbols from spotlight for App.framework (cla: yes, tool, waiting for tree to go green) + +[37250](https://github.com/flutter/flutter/pull/37250) Removing Leftover Golden Test Skips (a: tests, cla: yes, framework) + +[37254](https://github.com/flutter/flutter/pull/37254) Clamp Scaffold's max body height when extendBody is true (cla: yes, f: material design, framework, severe: crash) + +[37259](https://github.com/flutter/flutter/pull/37259) [Material] Add support for hovered, pressed, focused, and selected text color on Chips. (cla: yes, f: material design, framework) + +[37266](https://github.com/flutter/flutter/pull/37266) Change the value of kMaxUnsignedSMI for the Web (cla: yes, framework, severe: new feature, waiting for tree to go green, ☸ platform-web) + +[37269](https://github.com/flutter/flutter/pull/37269) [Material] FAB refactor - remove unnecessary IconTheme (cla: yes, f: material design, framework) + +[37275](https://github.com/flutter/flutter/pull/37275) Optimize the transformRect and transformPoint methods in matrix_utils… (cla: yes, framework) + +[37276](https://github.com/flutter/flutter/pull/37276) Make podhelper.rb a template to avoid passing in the module name (a: existing-apps, cla: yes, t: xcode, team, tool, ⌺‬ platform-ios) + +[37295](https://github.com/flutter/flutter/pull/37295) Revert "reland Enable selection by default for password text field and expose…" (a: accessibility, cla: yes, f: cupertino, f: material design, framework, team) + +[37314](https://github.com/flutter/flutter/pull/37314) Update dartdoc to 28.4 (cla: yes, team) + +[37319](https://github.com/flutter/flutter/pull/37319) resizeToAvoidBottomInset Cupertino without NavBar (cla: yes, f: cupertino, framework) + +[37322](https://github.com/flutter/flutter/pull/37322) Add comments to an Android Platform view gesture test case (a: platform-views, cla: yes, framework, severe: crash, waiting for tree to go green) + +[37324](https://github.com/flutter/flutter/pull/37324) reland Enable selection by default for password text field and expose… (a: accessibility, cla: yes, f: cupertino, f: material design, framework, team) + +[37328](https://github.com/flutter/flutter/pull/37328) Fix some tests now that the isMultiline flag is added to values (a: accessibility, cla: yes, framework, waiting for tree to go green, ☸ platform-web) + +[37331](https://github.com/flutter/flutter/pull/37331) [flutter_tool] Add missing toString() (cla: yes, tool) + +[37338](https://github.com/flutter/flutter/pull/37338) Update constructor APIs TooltipTheme, ToggleButtonsTheme, PopupMenuTheme (cla: yes, f: material design, framework, severe: API break) + +[37341](https://github.com/flutter/flutter/pull/37341) hiding original hero after hero transition (a: animation, cla: yes, framework, severe: API break, severe: new feature) + +[37342](https://github.com/flutter/flutter/pull/37342) Fix mouse region crash when using closures (a: desktop, cla: yes, framework, waiting for tree to go green) + +[37344](https://github.com/flutter/flutter/pull/37344) Fix mouse region double render (a: desktop, cla: yes, framework, waiting for tree to go green) + +[37345](https://github.com/flutter/flutter/pull/37345) [flutter_tool] Include the local timezone in analytics timestamp (cla: yes, tool) + +[37351](https://github.com/flutter/flutter/pull/37351) fix errors caught by roll of macOS assemble (cla: yes, tool) + +[37355](https://github.com/flutter/flutter/pull/37355) Added ThemeData.from() method to construct a Theme from a ColorScheme (cla: yes, f: material design, framework) + +[37365](https://github.com/flutter/flutter/pull/37365) only build macOS kernel in debug mode (cla: yes, tool) + +[37378](https://github.com/flutter/flutter/pull/37378) Disable xcode indexing in CI via COMPILER_INDEX_STORE_ENABLE=NO argument (cla: yes, tool, waiting for customer response) + +[37403](https://github.com/flutter/flutter/pull/37403) add ontap to textformfield (cla: yes, f: material design, framework) + +[37405](https://github.com/flutter/flutter/pull/37405) Add .android/Flutter/flutter.iml to module template. (cla: yes, tool) + +[37407](https://github.com/flutter/flutter/pull/37407) Remove multi-arch check in iOS builds (cla: yes, tool) + +[37413](https://github.com/flutter/flutter/pull/37413) Revert "Remove multi-arch check in iOS builds" (cla: yes, engine, tool) + +[37417](https://github.com/flutter/flutter/pull/37417) Nosuchmethod window (a: tests, cla: yes, framework) + +[37422](https://github.com/flutter/flutter/pull/37422) [flutter_tool] Additional flutter manifest yaml validation (cla: yes, tool) + +[37425](https://github.com/flutter/flutter/pull/37425) Support for macOS release mode (1 of 3) (cla: yes, tool) + +[37436](https://github.com/flutter/flutter/pull/37436) Hide text selection handle after entering text (cla: yes, f: material design, framework) + +[37440](https://github.com/flutter/flutter/pull/37440) Print message when HttpException is thrown after running `flutter run` (cla: yes, tool, waiting for tree to go green) + +[37442](https://github.com/flutter/flutter/pull/37442) Disable flaky test (a: tests, cla: yes, team) + +[37445](https://github.com/flutter/flutter/pull/37445) Switch iOS gen_snapshot from multi-arch binary to multiple binaries (cla: yes, engine, tool) + +[37449](https://github.com/flutter/flutter/pull/37449) If xcode_backend.sh script fails or substitute variables are missing, fail the host Xcode build (a: existing-apps, cla: yes, t: xcode, team, tool) + +[37457](https://github.com/flutter/flutter/pull/37457) Find the app bundle when the flavor contains underscores (a: build, cla: yes, team, tool, waiting for tree to go green) + +[37479](https://github.com/flutter/flutter/pull/37479) Remove bogus code in ContainerParentDataMixin.detach (cla: yes, framework, waiting for tree to go green) + +[37489](https://github.com/flutter/flutter/pull/37489) Moved the default BinaryMessenger instance to ServicesBinding (a: tests, cla: yes, customer: espresso, d: examples, framework, severe: API break, t: flutter driver, team) + +[37492](https://github.com/flutter/flutter/pull/37492) Drawer edge drag width improvements (cla: yes, f: material design, framework, severe: new feature) + +[37497](https://github.com/flutter/flutter/pull/37497) Extract common PlatformView functionality: Gesture and PointerEvent (cla: yes, framework) + +[37500](https://github.com/flutter/flutter/pull/37500) Avoid killing Flutter tool process (#37471) (cla: yes, tool) + +[37503](https://github.com/flutter/flutter/pull/37503) Quickly fix start up tests (cla: yes, framework) + +[37509](https://github.com/flutter/flutter/pull/37509) Use macOS ephemeral directory for Pod env script (cla: yes, tool) + +[37512](https://github.com/flutter/flutter/pull/37512) Enable track widget creation on debug builds (cla: yes, tool) + +[37514](https://github.com/flutter/flutter/pull/37514) [flutter_tool] Remove unintended analytics screen send (cla: yes, tool) + +[37515](https://github.com/flutter/flutter/pull/37515) Upstream web support for IterableProperty (cla: yes, framework, ☸ platform-web) + +[37516](https://github.com/flutter/flutter/pull/37516) Kill stale TODO (a: tests, cla: yes, framework, team) + +[37521](https://github.com/flutter/flutter/pull/37521) have xcodeSelectPath also catch ArgumentError (cla: yes, tool) + +[37524](https://github.com/flutter/flutter/pull/37524) Ensure that tests remove pointers by using addTearDown (a: tests, cla: yes, framework, waiting for tree to go green) + +[37556](https://github.com/flutter/flutter/pull/37556) [Material] Make RawChip.selected non-nullable. (cla: yes, f: material design, framework) + +[37595](https://github.com/flutter/flutter/pull/37595) Closes #37593 Add flutter_export_environment.sh to gitignore (cla: yes, tool, waiting for tree to go green) + +[37624](https://github.com/flutter/flutter/pull/37624) Diagrams for API docs rank 10-20 in most views (cla: yes, d: api docs, d: examples, f: material design, framework, from: study, waiting for tree to go green) + +[37631](https://github.com/flutter/flutter/pull/37631) [Material] Create demo for material banner (cla: yes, d: examples, f: material design, team, team: gallery) + +[37634](https://github.com/flutter/flutter/pull/37634) [web][upstream] Update diagnostics to support web platform tests (cla: yes, f: material design, framework) + +[37636](https://github.com/flutter/flutter/pull/37636) Add CheckboxListTile checkColor (cla: yes, f: material design, framework) + +[37637](https://github.com/flutter/flutter/pull/37637) don't call Platform.operatingSystem in RenderView diagnostics (cla: yes, framework, ☸ platform-web) + +[37638](https://github.com/flutter/flutter/pull/37638) [web][upstream] Fix debugPrintStack for web platform (cla: yes, framework, ☸ platform-web) + +[37647](https://github.com/flutter/flutter/pull/37647) Change priority of gen_snapshot search paths (cla: yes, tool) + +[37649](https://github.com/flutter/flutter/pull/37649) Revert "Integrate dwds into flutter tool for web support" (a: accessibility, cla: yes, d: examples, team, team: gallery) + +[37650](https://github.com/flutter/flutter/pull/37650) Reland Integrate dwds into flutter tool for web support (a: accessibility, cla: yes, d: examples, team, team: gallery) + +[37652](https://github.com/flutter/flutter/pull/37652) Change RenderObject.getTransformTo to include ancestor. (cla: yes, framework, severe: API break) + +[37654](https://github.com/flutter/flutter/pull/37654) Add missing library to flutter tools BUILD.gn (cla: yes, tool) + +[37658](https://github.com/flutter/flutter/pull/37658) fix windows path for dwds/web builds (cla: yes, tool) + +[37661](https://github.com/flutter/flutter/pull/37661) flutter update-packages --force-upgrade (a: accessibility, a: tests, cla: yes, d: examples, framework, team, team: gallery, tool) + +[37664](https://github.com/flutter/flutter/pull/37664) Partial macOS assemble revert (cla: yes, tool) + +[37703](https://github.com/flutter/flutter/pull/37703) PlatformViewLink, handling creation of the PlatformViewSurface and dispose PlatformViewController (a: platform-views, cla: yes, framework) + +[37712](https://github.com/flutter/flutter/pull/37712) [web][upstream] Optimize InactiveElements deactivation (cla: yes, framework, ☸ platform-web) + +[37714](https://github.com/flutter/flutter/pull/37714) remove unused script (cla: yes, team) + +[37715](https://github.com/flutter/flutter/pull/37715) Fix markdown link format (cla: yes, f: material design, framework) + +[37718](https://github.com/flutter/flutter/pull/37718) Adding physicalDepth to MediaQueryData & TestWindow (cla: yes, customer: fuchsia, framework, severe: customer critical, waiting for tree to go green) + +[37724](https://github.com/flutter/flutter/pull/37724) iOS 13 scrollbar vibration (cla: yes, f: cupertino, framework) + +[37730](https://github.com/flutter/flutter/pull/37730) Revert "remove unused script" (cla: yes, team) + +[37731](https://github.com/flutter/flutter/pull/37731) Add metadata to indicate if the host app contains a Flutter module (cla: yes, team, tool) + +[37733](https://github.com/flutter/flutter/pull/37733) Support macOS Catalina-style signing certificate names (cla: yes, tool) + +[37735](https://github.com/flutter/flutter/pull/37735) Remove unused no-build flag from the flutter run command (cla: yes, tool) + +[37738](https://github.com/flutter/flutter/pull/37738) Use relative paths when installing module pods (a: existing-apps, cla: yes, tool, ⌺‬ platform-ios) + +[37740](https://github.com/flutter/flutter/pull/37740) Disable gem documentation generation on Cirrus (cla: yes, team) + +[37743](https://github.com/flutter/flutter/pull/37743) Handle thrown maps and rejects from fe server (cla: yes, tool) + +[37752](https://github.com/flutter/flutter/pull/37752) Remove dead flag `gradle-dir` in flutter config (cla: yes, tool) + +[37760](https://github.com/flutter/flutter/pull/37760) Don't mark system_debug_ios as flaky. (cla: yes, team) + +[37790](https://github.com/flutter/flutter/pull/37790) Doc: Image.memory only accepts compressed format (cla: yes, framework, waiting for tree to go green) + +[37792](https://github.com/flutter/flutter/pull/37792) Disable the progress bar when downloading the Dart SDK via Invoke-WebRequest (cla: yes, tool) + +[37793](https://github.com/flutter/flutter/pull/37793) Add equals and hashCode to Tween (a: animation, cla: yes, framework, waiting for tree to go green) + +[37801](https://github.com/flutter/flutter/pull/37801) Fix TextField cursor color documentation (cla: yes, f: material design, framework) + +[37806](https://github.com/flutter/flutter/pull/37806) Add COMPILER_INDEX_STORE_ENABLE=NO to macOS build and tests (a: tests, cla: yes, t: xcode, team, tool) + +[37809](https://github.com/flutter/flutter/pull/37809) Add autofocus parameter to widgets which use Focus widget internally (cla: yes, f: cupertino, f: material design, framework) + +[37811](https://github.com/flutter/flutter/pull/37811) Add flutter_export_environment.sh to the framework tree gitignore (cla: yes, team) + +[37812](https://github.com/flutter/flutter/pull/37812) [web][upstream] Don't register exit/saveCompilationTrace for web platform since they are not available (cla: yes, framework, ☸ platform-web) + +[37815](https://github.com/flutter/flutter/pull/37815) Restructure resident web runner usage to avoid SDK users that don't support dwds (cla: yes, tool) + +[37816](https://github.com/flutter/flutter/pull/37816) update dependencies; add a Web smoke test (a: accessibility, a: tests, cla: yes, d: examples, framework, team, team: gallery) + +[37825](https://github.com/flutter/flutter/pull/37825) Automatic focus highlight mode for FocusManager (CQ+1, cla: yes, f: material design, framework) + +[37828](https://github.com/flutter/flutter/pull/37828) have android_semantics_testing use adb from ENV provided android sdk (a: accessibility, cla: yes, team) + +[37856](https://github.com/flutter/flutter/pull/37856) Remove references to solo flag in flutter test (a: tests, cla: yes, d: api docs, framework) + +[37863](https://github.com/flutter/flutter/pull/37863) Expose the timeline event names so they can be used in other systems that do tracing (cla: yes, tool) + +[37870](https://github.com/flutter/flutter/pull/37870) remove Header flag from BottomNavigationBar items (cla: yes, f: material design, framework, waiting for tree to go green) + +[37871](https://github.com/flutter/flutter/pull/37871) Catch failure to create directory in cache (cla: yes, tool) + +[37872](https://github.com/flutter/flutter/pull/37872) Unmark devicelab tests as flaky that are no longer flaky (cla: yes, team) + +[37877](https://github.com/flutter/flutter/pull/37877) Adds DefaultTextStyle ancestor to Tooltip Overlay (cla: yes, f: material design, framework) + +[37880](https://github.com/flutter/flutter/pull/37880) reduce mac workload (cla: yes) + +[37881](https://github.com/flutter/flutter/pull/37881) Remove no-longer-needed scripts (cla: yes, team, waiting for tree to go green) + +[37882](https://github.com/flutter/flutter/pull/37882) Add dense property to AboutListTile (cla: yes, f: material design, framework) + +[37891](https://github.com/flutter/flutter/pull/37891) Focus debug (a: desktop, cla: yes, framework) + +[37895](https://github.com/flutter/flutter/pull/37895) Revert "Add equals and hashCode to Tween" (cla: yes, framework) + +[37900](https://github.com/flutter/flutter/pull/37900) Listen to ExtensionEvent instead of TimelineEvent (cla: yes, framework, tool) + +[37904](https://github.com/flutter/flutter/pull/37904) test tool scheduling (cla: yes, team) + +[37906](https://github.com/flutter/flutter/pull/37906) Always install the ephemeral engine copy instead of fetching from CocoaPods specs (a: existing-apps, cla: yes, team, tool, ⌺‬ platform-ios) + +[37938](https://github.com/flutter/flutter/pull/37938) Revert "Adding physicalDepth to MediaQueryData & TestWindow" (a: tests, cla: yes, framework, waiting for tree to go green) + +[37940](https://github.com/flutter/flutter/pull/37940) skip docs shard for changes that don't include packages with docs (cla: yes, team, tool) + +[37941](https://github.com/flutter/flutter/pull/37941) Skip widget tests on non framework change (cla: yes, team) + +[37955](https://github.com/flutter/flutter/pull/37955) Update shader warm-up for recent Skia changes (cla: yes, framework, severe: performance, severe: regression) + +[37958](https://github.com/flutter/flutter/pull/37958) Catch FormatException caused by bad simctl output (cla: yes, tool) + +[37964](https://github.com/flutter/flutter/pull/37964) Update documentation for bottom sheets to accurately reflect usage (cla: yes, f: material design, framework) + +[37966](https://github.com/flutter/flutter/pull/37966) Remove ephemeral directories during flutter clean (a: existing-apps, cla: yes, tool) + +[37971](https://github.com/flutter/flutter/pull/37971) Update dependencies (a: accessibility, cla: yes, d: examples, team, team: gallery) + +[37981](https://github.com/flutter/flutter/pull/37981) Give `_runFlutterTest` the ability to validate command output (cla: yes, team) + +[37983](https://github.com/flutter/flutter/pull/37983) Revert "Moved the default BinaryMessenger instance to ServicesBinding… (a: accessibility, a: tests, cla: yes, f: cupertino, f: material design, framework, team) + +[37984](https://github.com/flutter/flutter/pull/37984) Fix some typos in flutter/dev/bots/README.md (cla: yes, team) + +[37994](https://github.com/flutter/flutter/pull/37994) Remove no-constant-update-2018, the underlying issue has been resolved. (cla: yes, tool) + +[38101](https://github.com/flutter/flutter/pull/38101) Catch filesystem exception from flutter create (cla: yes, tool) + +[38102](https://github.com/flutter/flutter/pull/38102) Fix type error hidden by implicit downcasts (cla: yes, tool) + +[38296](https://github.com/flutter/flutter/pull/38296) use common emulator/device list (cla: yes, t: flutter driver, tool, waiting for tree to go green) + +[38325](https://github.com/flutter/flutter/pull/38325) refactor `flutter upgrade` to be 2 part, with the second part re-entrant (cla: yes, tool) + +[38326](https://github.com/flutter/flutter/pull/38326) Re-enabling post-submit gold tests on mac (a: tests, cla: yes, framework) + +[38339](https://github.com/flutter/flutter/pull/38339) [flutter_tool] Flip create language defaults to swift and kotlin (cla: yes, tool) + +[38342](https://github.com/flutter/flutter/pull/38342) remove bsdiff from BUILD.gn (cla: yes, tool) + +[38348](https://github.com/flutter/flutter/pull/38348) Analyzer fix that wasn't caught in the PR originally (cla: yes, d: examples, f: material design, team, team: gallery) + +[38353](https://github.com/flutter/flutter/pull/38353) [flutter_tool] Observatory connection error handling cleanup (cla: yes, tool) + +[38441](https://github.com/flutter/flutter/pull/38441) Fix getOffsetToReveal for growthDirection reversed and AxisDirection down or right (cla: yes, framework) + +[38462](https://github.com/flutter/flutter/pull/38462) Revert "Roll engine ff49ca1c6e5b..7dfdfc6faeb6 (52 commits)" (cla: yes, engine) + +[38463](https://github.com/flutter/flutter/pull/38463) Do not construct arguments to _focusDebug when running in non-debug modes (cla: yes, framework) + +[38467](https://github.com/flutter/flutter/pull/38467) [Material] Add splashColor to FAB and FAB ThemeData (cla: yes, f: material design, framework) + +[38472](https://github.com/flutter/flutter/pull/38472) [flutter_tool] Fix bug in manifest yaml validation (cla: yes, tool) + +[38486](https://github.com/flutter/flutter/pull/38486) Catch errors thrown into the Zone by json_rpc (cla: yes, tool) + +[38491](https://github.com/flutter/flutter/pull/38491) Update CONTRIBUTING.md (cla: yes, team) + +[38494](https://github.com/flutter/flutter/pull/38494) Navigator change backup (a: tests, cla: yes, framework, ☸ platform-web) + +[38495](https://github.com/flutter/flutter/pull/38495) Roll engine ff49ca1c6e5b..be4c8338a6ab (61 commits) (cla: yes, engine) + +[38497](https://github.com/flutter/flutter/pull/38497) handle unexpected exit from frontend server (cla: yes, tool) + +[38499](https://github.com/flutter/flutter/pull/38499) Update build web compilers and configure libraries (cla: yes, tool) + +[38546](https://github.com/flutter/flutter/pull/38546) Re-land 'Adding physicalDepth to MediaQueryData & TestWindow' (a: tests, cla: yes, customer: fuchsia, framework, severe: customer critical) + +[38558](https://github.com/flutter/flutter/pull/38558) Fix typos (and a few errors) in the API docs. (cla: yes, framework) + +[38564](https://github.com/flutter/flutter/pull/38564) Updating code owners for golden file changes (a: tests, cla: yes, framework, team, will affect goldens) + +[38567](https://github.com/flutter/flutter/pull/38567) Add smoke tests to test every commit on a Catalina host. (cla: yes, team) + +[38575](https://github.com/flutter/flutter/pull/38575) fix rpc exception for real (cla: yes, tool) + +[38579](https://github.com/flutter/flutter/pull/38579) Fix a smoke test. (cla: yes, team) + +[38586](https://github.com/flutter/flutter/pull/38586) Don't reload if compilation has errors (cla: yes, tool) + +[38587](https://github.com/flutter/flutter/pull/38587) Improve bitcode check (cla: yes, t: xcode, tool, ⌺‬ platform-ios) + +[38593](https://github.com/flutter/flutter/pull/38593) Fix text scale factor for non-content components of Cupertino scaffolds (a: fidelity, cla: yes, f: cupertino, f: material design, framework) + +[38603](https://github.com/flutter/flutter/pull/38603) Fix up iOS Add to App tests (a: existing-apps, a: tests, cla: yes, team, ⌺‬ platform-ios) + +[38621](https://github.com/flutter/flutter/pull/38621) [Material] Create theme for Dividers to enable customization of thickness (cla: yes, f: material design, framework) + +[38629](https://github.com/flutter/flutter/pull/38629) Handle case of a connected unpaired iOS device (cla: yes, tool) + +[38635](https://github.com/flutter/flutter/pull/38635) Toggle buttons docs (cla: yes, d: api docs, f: material design, framework) + +[38636](https://github.com/flutter/flutter/pull/38636) Adds the arrowColor option to UserAccountsDrawerHeader (#38608) (cla: yes, f: material design, framework) + +[38637](https://github.com/flutter/flutter/pull/38637) [flutter_tool] Throw tool exit on malformed storage url override (cla: yes, tool) + +[38639](https://github.com/flutter/flutter/pull/38639) PlatformViewLink. cached surface should be a Widget type (a: platform-views, cla: yes, framework) + +[38645](https://github.com/flutter/flutter/pull/38645) Rename iOS arch for macOS release mode (macOS release mode 2 of 3) (cla: yes, tool) + +[38651](https://github.com/flutter/flutter/pull/38651) Update the macOS Podfile template platform version (cla: yes, tool) + +[38652](https://github.com/flutter/flutter/pull/38652) Kill dead code (cla: yes, team, tool) + +[38658](https://github.com/flutter/flutter/pull/38658) Roll back engine to f8e7453f11067b5801a4484283592977d18be242 (cla: yes, engine) + +[38662](https://github.com/flutter/flutter/pull/38662) Change from using `defaults` to `plutil` for Plist parsing (cla: yes, tool) + +[38686](https://github.com/flutter/flutter/pull/38686) Rename patent file (cla: yes) + +[38704](https://github.com/flutter/flutter/pull/38704) Adds canRequestFocus toggle to FocusNode (cla: yes, framework) + +[38708](https://github.com/flutter/flutter/pull/38708) Fix Catalina hot reload test by specifying the platform is iOS. (cla: no, team) + +[38710](https://github.com/flutter/flutter/pull/38710) PlatformViewLink: Rename CreatePlatformViewController to CreatePlatformViewCallback (a: platform-views, cla: yes, framework) + +[38719](https://github.com/flutter/flutter/pull/38719) Fix stages of some iOS devicelab tests (cla: yes, team) + + + +670 PRs were closed in flutter/flutter. +We omitted 154 PRs in this report because they were +automated PRs, such as autoroller commits. + + +# PRs closed in this release of flutter/engine + +From Fri Jun 21 22:31:55 2019 -0400 to Sun Aug 18 12:22:00 2019 -0700 + + +[9041](https://github.com/flutter/engine/pull/9041) TextStyle.height property as a multiple of font size instead of multiple of ascent+descent+leading. (affects: text input, cla: yes, prod: API break) + +[9075](https://github.com/flutter/engine/pull/9075) IOS Platform view transform/clipping (cla: yes) + +[9089](https://github.com/flutter/engine/pull/9089) Wire up custom event loop interop for the GLFW embedder. (cla: yes) + +[9206](https://github.com/flutter/engine/pull/9206) Android Embedding Refactor PR31: Integrate platform views with the new embedding and the plugin shim. (cla: yes) + +[9329](https://github.com/flutter/engine/pull/9329) Fixed memory leak by way of accidental retain on implicit self (cla: yes) + +[9341](https://github.com/flutter/engine/pull/9341) some drive-by docs while I was reading the embedding classes (cla: yes) + +[9360](https://github.com/flutter/engine/pull/9360) Simplify loading of app bundles on Android (cla: yes) + +[9403](https://github.com/flutter/engine/pull/9403) Remove variants of ParagraphBuilder::AddText that are not used within the engine (cla: yes) + +[9419](https://github.com/flutter/engine/pull/9419) Has a binary messenger (cla: yes, prod: API break) + +[9423](https://github.com/flutter/engine/pull/9423) Don't hang to a platform view's input connection after it's disposed (cla: yes) + +[9424](https://github.com/flutter/engine/pull/9424) Send timings of the first frame without batching (cla: yes) + +[9428](https://github.com/flutter/engine/pull/9428) Update README.md for consistency with framework (cla: yes) + +[9431](https://github.com/flutter/engine/pull/9431) Generate weak pointers only in the platform thread (cla: yes) + +[9436](https://github.com/flutter/engine/pull/9436) Add the functionality to merge and unmerge MessageLoopTaskQueues (cla: yes) + +[9439](https://github.com/flutter/engine/pull/9439) Eliminate unused import in FlutterView (cla: yes) + +[9446](https://github.com/flutter/engine/pull/9446) Revert "Roll fuchsia/sdk/core/mac-amd64 from Cx51F... to e8sS_..." (cla: yes) + +[9449](https://github.com/flutter/engine/pull/9449) Revert "Roll fuchsia/sdk/core/linux-amd64 from udf6w... to jQ8aw..." (cla: yes) + +[9450](https://github.com/flutter/engine/pull/9450) Revert "Roll fuchsia/sdk/core/mac-amd64 from Cx51F... to w-3t4..." (cla: yes) + +[9452](https://github.com/flutter/engine/pull/9452) Convert RRect.scaleRadii to public method (affects: framework, cla: yes) + +[9456](https://github.com/flutter/engine/pull/9456) Made sure that the run_tests script returns the right error code. (cla: yes) + +[9458](https://github.com/flutter/engine/pull/9458) Test cleanup geometry_test.dart (affects: tests, cla: yes) + +[9459](https://github.com/flutter/engine/pull/9459) Remove unused/unimplemented shell constructor (cla: yes) + +[9460](https://github.com/flutter/engine/pull/9460) Fixed logLevel filter bug so that filter now works as expected. (cla: yes) + +[9461](https://github.com/flutter/engine/pull/9461) Adds API for retaining intermediate engine layers (cla: yes) + +[9462](https://github.com/flutter/engine/pull/9462) Reland Update harfbuzz to 2.5.2 (cla: yes) + +[9463](https://github.com/flutter/engine/pull/9463) Removed unused imports in new embedding. (cla: yes) + +[9464](https://github.com/flutter/engine/pull/9464) Added shebangs to ios unit test scripts. (cla: yes) + +[9466](https://github.com/flutter/engine/pull/9466) Re-enable the Wuffs GIF decoder (cla: yes) + +[9467](https://github.com/flutter/engine/pull/9467) ios-unit-tests: Forgot a usage of a variable in our script. (cla: yes) + +[9468](https://github.com/flutter/engine/pull/9468) Manually draw remainder curve for wavy decorations (cla: yes) + +[9469](https://github.com/flutter/engine/pull/9469) ios-unit-tests: Fixed ocmock system header search paths. (cla: yes) + +[9471](https://github.com/flutter/engine/pull/9471) ios-unit-tests: Started using rsync instead of cp -R to copy frameworks. (cla: yes) + +[9476](https://github.com/flutter/engine/pull/9476) fix NPE when a touch event is sent to an unknown Android platform view (cla: yes) + +[9478](https://github.com/flutter/engine/pull/9478) iOS PlatformView clip path (cla: yes) + +[9480](https://github.com/flutter/engine/pull/9480) Revert "IOS Platform view transform/clipping (#9075)" (cla: yes) + +[9482](https://github.com/flutter/engine/pull/9482) Re-enable embedder_unittests. (cla: yes) + +[9483](https://github.com/flutter/engine/pull/9483) Reland "IOS Platform view transform/clipping (#9075)" and fix the breakage. (cla: yes) + +[9485](https://github.com/flutter/engine/pull/9485) Add --observatory-host switch (cla: yes) + +[9486](https://github.com/flutter/engine/pull/9486) Rework image & texture management to use concurrent message queues. (cla: yes) + +[9489](https://github.com/flutter/engine/pull/9489) Handle ambiguous directionality of final trailing whitespace in mixed bidi text (cla: yes) + +[9490](https://github.com/flutter/engine/pull/9490) fix a bug where the platform view's transform is not reset before set frame (cla: yes) + +[9491](https://github.com/flutter/engine/pull/9491) Purge caches on low memory on iOS (cla: yes) + +[9493](https://github.com/flutter/engine/pull/9493) Run benchmarks on try jobs. (cla: yes) + +[9495](https://github.com/flutter/engine/pull/9495) fix build breakage on PlatformViews.mm (cla: yes) + +[9501](https://github.com/flutter/engine/pull/9501) [android] External textures must be rescaled to fill the canvas (cla: yes) + +[9503](https://github.com/flutter/engine/pull/9503) Improve caching limits for Skia (cla: yes) + +[9506](https://github.com/flutter/engine/pull/9506) Synchronize main thread and gpu thread for first render frame (cla: yes) + +[9507](https://github.com/flutter/engine/pull/9507) Revert Skia version to d8f79a27b06b5bce7a27f89ce2d43d39f8c058dc (cla: yes) + +[9508](https://github.com/flutter/engine/pull/9508) Support image filter on paint (cla: yes) + +[9509](https://github.com/flutter/engine/pull/9509) Roll Fuchsia SDK to latest (cla: yes) + +[9518](https://github.com/flutter/engine/pull/9518) Bump dart_resource_rev to f8e37558a1c4f54550aa463b88a6a831e3e33cd6 (cla: yes) + +[9525](https://github.com/flutter/engine/pull/9525) Android Embedding Refactor PR36: Add splash screen support. (cla: yes) + +[9532](https://github.com/flutter/engine/pull/9532) fix FlutterOverlayView doesn't remove from superview in some cases (cla: yes) + +[9546](https://github.com/flutter/engine/pull/9546) [all] add fuchsia.{net.NameLookup,posix.socket.Provider} (cla: yes) + +[9556](https://github.com/flutter/engine/pull/9556) Minimal integration with the Skia text shaper module (cla: yes) + +[9559](https://github.com/flutter/engine/pull/9559) Roll src/third_party/dart b37aa3b036...1eb113ba27 (cla: yes) + +[9561](https://github.com/flutter/engine/pull/9561) libtxt: fix reference counting of SkFontStyleSets held by font asset providers (cla: yes) + +[9562](https://github.com/flutter/engine/pull/9562) Switched preprocessor logic for exporting symbols for testing. (cla: yes) + +[9581](https://github.com/flutter/engine/pull/9581) Revert "Avoid a full screen overlay within virtual displays" (cla: yes) + +[9584](https://github.com/flutter/engine/pull/9584) Revert " Roll src/third_party/dart b37aa3b036...1eb113ba27" (cla: yes) + +[9585](https://github.com/flutter/engine/pull/9585) Fix a race in the embedder accessibility unit test (cla: yes) + +[9588](https://github.com/flutter/engine/pull/9588) Roll src/third_party/dart b37aa3b036...0abff7b2bb (cla: yes) + +[9589](https://github.com/flutter/engine/pull/9589) Fixes a plugin overwrite bug in the plugin shim system. (cla: yes) + +[9590](https://github.com/flutter/engine/pull/9590) Apply patches that have landed in topaz since we ported the runners to the engine repo (cla: yes) + +[9591](https://github.com/flutter/engine/pull/9591) Document various classes in //flutter/shell/common. (cla: yes) + +[9593](https://github.com/flutter/engine/pull/9593) [trace clients] Remove fuchsia.tracelink.Registry (cla: yes) + +[9608](https://github.com/flutter/engine/pull/9608) Disable failing Mutators tests (cla: yes) + +[9613](https://github.com/flutter/engine/pull/9613) Fix uninitialized variables and put tests in flutter namespace. (cla: yes) + +[9632](https://github.com/flutter/engine/pull/9632) Added Doxyfile. (cla: yes) + +[9633](https://github.com/flutter/engine/pull/9633) Cherry-pick fix for flutter/flutter#35291 (cla: yes) + +[9634](https://github.com/flutter/engine/pull/9634) Roll Dart to 67ab3be10d35d994641da167cc806f20a7ffa679 (cla: yes) + +[9636](https://github.com/flutter/engine/pull/9636) Added shebangs to ios unit test scripts. (#9464) (cla: yes) + +[9637](https://github.com/flutter/engine/pull/9637) Revert "Roll Dart to 67ab3be10d35d994641da167cc806f20a7ffa679 (#9634)" (cla: yes) + +[9638](https://github.com/flutter/engine/pull/9638) Reland: Roll Dart to 67ab3be10d35d994641da167cc806f20a7ffa679 (cla: yes) + +[9640](https://github.com/flutter/engine/pull/9640) make EmbeddedViewParams a unique ptr (cla: yes) + +[9641](https://github.com/flutter/engine/pull/9641) Let pushColorFilter accept all types of ColorFilters (cla: yes) + +[9642](https://github.com/flutter/engine/pull/9642) Fix warning about settings unavailable GN arg build_glfw_shell (cla: yes) + +[9649](https://github.com/flutter/engine/pull/9649) Roll buildroot to c5a493b25. (cla: yes) + +[9651](https://github.com/flutter/engine/pull/9651) Move the mutators stack handling to preroll (cla: yes) + +[9652](https://github.com/flutter/engine/pull/9652) Pipeline allows continuations that can produce to front (cla: yes) + +[9653](https://github.com/flutter/engine/pull/9653) External view embedder can tell if embedded views have mutated (cla: yes) + +[9654](https://github.com/flutter/engine/pull/9654) Begin separating macOS engine from view controller (cla: yes) + +[9655](https://github.com/flutter/engine/pull/9655) Allow embedders to add callbacks for responses to platform messages from the framework. (cla: yes) + +[9660](https://github.com/flutter/engine/pull/9660) ExternalViewEmbedder can CancelFrame after pre-roll (cla: yes) + +[9661](https://github.com/flutter/engine/pull/9661) Raster now returns an enum rather than boolean (cla: yes) + +[9663](https://github.com/flutter/engine/pull/9663) Mutators Stack refactoring (cla: yes) + +[9667](https://github.com/flutter/engine/pull/9667) iOS platform view opacity (cla: yes) + +[9668](https://github.com/flutter/engine/pull/9668) Refactor ColorFilter to have a native wrapper (cla: yes) + +[9669](https://github.com/flutter/engine/pull/9669) Improve window documentation (cla: yes) + +[9670](https://github.com/flutter/engine/pull/9670) Roll src/third_party/dart 67ab3be10d...43891316ca (cla: yes) + +[9672](https://github.com/flutter/engine/pull/9672) Add FLEDartProject for macOS embedding (cla: yes) + +[9673](https://github.com/flutter/engine/pull/9673) Revert " Roll src/third_party/dart 67ab3be10d...43891316ca" (cla: yes) + +[9675](https://github.com/flutter/engine/pull/9675) Roll src/third_party/dart 67ab3be10d...b5aeaa6796 (cla: yes) + +[9685](https://github.com/flutter/engine/pull/9685) fix Picture.toImage return type check and api conform test. (cla: yes) + +[9698](https://github.com/flutter/engine/pull/9698) Ensure that platform messages without response handles can be dispatched. (cla: yes) + +[9707](https://github.com/flutter/engine/pull/9707) Revert "Revert "Use track-widget-creation transformer included in the… (cla: yes) + +[9708](https://github.com/flutter/engine/pull/9708) Roll src/third_party/dart b5aeaa6796...966038ef58 (cla: yes) + +[9711](https://github.com/flutter/engine/pull/9711) Revert "Roll src/third_party/dart b5aeaa6796...966038ef58" (cla: yes) + +[9713](https://github.com/flutter/engine/pull/9713) Explain why OpacityLayer has an offset field (cla: yes) + +[9716](https://github.com/flutter/engine/pull/9716) Roll src/third_party/dart b5aeaa6796..06c3d7ad3a (44 commits) (cla: yes) + +[9717](https://github.com/flutter/engine/pull/9717) Fixed logLevel filter bug so that filter now works as expected. (#9460) (cla: yes) + +[9721](https://github.com/flutter/engine/pull/9721) Add comments to differentiate two cache paths (cla: yes) + +[9722](https://github.com/flutter/engine/pull/9722) Forwards iOS dark mode trait to the Flutter framework (#34441). (cla: yes) + +[9723](https://github.com/flutter/engine/pull/9723) Roll src/third_party/dart 06c3d7ad3a..7acecda2cc (12 commits) (cla: yes) + +[9724](https://github.com/flutter/engine/pull/9724) Revert "Roll src/third_party/dart 06c3d7ad3a..7acecda2cc (12 commits)") + +[9725](https://github.com/flutter/engine/pull/9725) Make the license script compatible with recently changed Dart I/O stream APIs (cla: yes) + +[9727](https://github.com/flutter/engine/pull/9727) Add hooks for InputConnection lock and unlocking (cla: yes) + +[9728](https://github.com/flutter/engine/pull/9728) Roll src/third_party/dart 06c3d7ad3a...09fc76bc51 (cla: yes) + +[9730](https://github.com/flutter/engine/pull/9730) Fix Fuchsia build. (cla: yes) + +[9734](https://github.com/flutter/engine/pull/9734) Fix backspace crash on Chinese devices (cla: yes) + +[9736](https://github.com/flutter/engine/pull/9736) Build Fuchsia as part of CI presumit (cla: yes) + +[9737](https://github.com/flutter/engine/pull/9737) Use libc++ variant of string view and remove the FML variant. (cla: yes) + +[9740](https://github.com/flutter/engine/pull/9740) Revert "Improve caching limits for Skia" (cla: yes) + +[9741](https://github.com/flutter/engine/pull/9741) Make FLEViewController's view an internal detail (cla: yes) + +[9745](https://github.com/flutter/engine/pull/9745) Fix windows test by not attempting to open a directory as a file. (cla: yes) + +[9746](https://github.com/flutter/engine/pull/9746) Make all shell unit tests use the OpenGL rasterizer. (cla: yes) + +[9747](https://github.com/flutter/engine/pull/9747) Remove get engine (cla: yes) + +[9750](https://github.com/flutter/engine/pull/9750) FLEViewController/Engine API changes (cla: yes) + +[9758](https://github.com/flutter/engine/pull/9758) Include SkParagraph headers only when the enable-skshaper flag is on (cla: yes) + +[9762](https://github.com/flutter/engine/pull/9762) Fall back to a fully qualified path to libapp.so if the library can not be loaded by name (cla: yes) + +[9767](https://github.com/flutter/engine/pull/9767) Un-deprecated FlutterViewController's binaryMessenger. (cla: yes) + +[9769](https://github.com/flutter/engine/pull/9769) Document //flutter/shell/common/engine. (cla: yes) + +[9772](https://github.com/flutter/engine/pull/9772) fix objcdoc generation (cla: yes) + +[9781](https://github.com/flutter/engine/pull/9781) SendPlatformMessage allow null message value (cla: yes) + +[9787](https://github.com/flutter/engine/pull/9787) Roll src/third_party/dart 09fc76bc51..24725a8559 (43 commits) (cla: yes) + +[9789](https://github.com/flutter/engine/pull/9789) fix ColorFilter.matrix constness (cla: yes) + +[9791](https://github.com/flutter/engine/pull/9791) Roll Wuffs and buildroot (cla: yes) + +[9792](https://github.com/flutter/engine/pull/9792) Update flutter_web to latest (cla: yes) + +[9793](https://github.com/flutter/engine/pull/9793) Fix typo in PlaceholderAlignment docs (cla: yes) + +[9797](https://github.com/flutter/engine/pull/9797) Remove breaking asserts (cla: yes) + +[9799](https://github.com/flutter/engine/pull/9799) Update buildroot to c4df4a7b to pull in MSVC 2017 Update 9 on Windows. (cla: yes) + +[9808](https://github.com/flutter/engine/pull/9808) Document FontFeature class (cla: yes) + +[9809](https://github.com/flutter/engine/pull/9809) Document //flutter/shell/common/rasterizer (cla: yes) + +[9812](https://github.com/flutter/engine/pull/9812) Roll src/third_party/dart 24725a8559..28f95fcd24 (32 commits) (cla: yes) + +[9813](https://github.com/flutter/engine/pull/9813) Made Picture::toImage happen on the IO thread with no need for an onscreen surface. (cla: yes) + +[9815](https://github.com/flutter/engine/pull/9815) Made the persistent cache's directory a const pointer. (cla: yes) + +[9816](https://github.com/flutter/engine/pull/9816) Only release the image data in the unit-test once Skia has accepted ownership of it. (cla: yes) + +[9817](https://github.com/flutter/engine/pull/9817) Revert "Roll src/third_party/dart 24725a8559..28f95fcd24 (32 commits)" (cla: yes) + +[9818](https://github.com/flutter/engine/pull/9818) Convert run_tests to python, allow running on Mac/Windows and allow filters for tests. (cla: yes) + +[9819](https://github.com/flutter/engine/pull/9819) Allow for dynamic thread merging on IOS for embedded view mutations (cla: yes) + +[9823](https://github.com/flutter/engine/pull/9823) Roll buildroot to support bitcode enabled builds for iOS (cla: yes) + +[9825](https://github.com/flutter/engine/pull/9825) In a single frame codec, release the encoded image buffer after giving it to the decoder (cla: yes) + +[9826](https://github.com/flutter/engine/pull/9826) Roll src/third_party/dart 24725a8559..cbaf890f88 (33 commits) (cla: yes) + +[9828](https://github.com/flutter/engine/pull/9828) Make the virtual display's window translucent (cla: yes) + +[9829](https://github.com/flutter/engine/pull/9829) Revert "Roll src/third_party/dart 24725a8559..cbaf890f88 (33 commits)" (cla: yes) + +[9835](https://github.com/flutter/engine/pull/9835) [Windows] Alternative Windows shell platform implementation (affects: desktop, cla: yes, waiting for tree to go green) + +[9847](https://github.com/flutter/engine/pull/9847) Started adding the engine hash to frameworks' Info.plist. (cla: yes) + +[9849](https://github.com/flutter/engine/pull/9849) Preserve the alpha for VD content by setting a transparent background. (cla: yes) + +[9850](https://github.com/flutter/engine/pull/9850) Add multi-line flag to semantics (cla: yes) + +[9851](https://github.com/flutter/engine/pull/9851) Add a macro for prefixing embedder.h symbols (cla: yes) + +[9852](https://github.com/flutter/engine/pull/9852) Selectively enable tests that work on Windows and file issues for ones that don't. (cla: yes) + +[9855](https://github.com/flutter/engine/pull/9855) Fix missing assignment to _allowHeadlessExecution (cla: yes) + +[9856](https://github.com/flutter/engine/pull/9856) Disable Fuchsia Debug & Release presubmits and only attempt the Profile unopt variant. (cla: yes) + +[9857](https://github.com/flutter/engine/pull/9857) Fix fuchsia license detection (cla: yes) + +[9859](https://github.com/flutter/engine/pull/9859) Fix justify for RTL paragraphs. (cla: yes, waiting for tree to go green) + +[9866](https://github.com/flutter/engine/pull/9866) Update buildroot to pick up Fuchsia artifact roller. (cla: yes) + +[9867](https://github.com/flutter/engine/pull/9867) Fixed error in generated xml Info.plist. (cla: yes) + +[9873](https://github.com/flutter/engine/pull/9873) Add clang version to Info.plist (cla: yes) + +[9875](https://github.com/flutter/engine/pull/9875) Simplify buildtools (cla: yes) + +[9883](https://github.com/flutter/engine/pull/9883) Roll src/third_party/dart 24725a8559..2b3336b51e (108 commits) (cla: yes) + +[9890](https://github.com/flutter/engine/pull/9890) Log dlopen errors only in debug mode (cla: yes) + +[9893](https://github.com/flutter/engine/pull/9893) Removed logic from FlutterAppDelegate into FlutterPluginAppLifeCycleDelegate (cla: yes) + +[9894](https://github.com/flutter/engine/pull/9894) Add the isMultiline semantics flag to values (cla: yes) + +[9895](https://github.com/flutter/engine/pull/9895) Android Embedding PR37: Separated FlutterActivity and FlutterFragment via FlutterActivityAndFragmentDelegate (cla: yes) + +[9896](https://github.com/flutter/engine/pull/9896) Capture stderr for ninja command (cla: yes) + +[9898](https://github.com/flutter/engine/pull/9898) v1.7.8 hotfixes (cla: yes) + +[9901](https://github.com/flutter/engine/pull/9901) Handle decompressed images in InstantiateImageCodec (cla: yes) + +[9903](https://github.com/flutter/engine/pull/9903) Revert to using fml::StringView instead of std::string_view (cla: yes) + +[9905](https://github.com/flutter/engine/pull/9905) Respect EXIF information while decompressing images. (cla: yes) + +[9906](https://github.com/flutter/engine/pull/9906) Update libcxx & libcxxabi to HEAD in prep for compiler upgrade. (cla: yes) + +[9909](https://github.com/flutter/engine/pull/9909) Roll src/third_party/dart 6bf1f8e280..63120303a7 (4 commits) (cla: yes) + +[9919](https://github.com/flutter/engine/pull/9919) Removed unused method. (cla: yes) + +[9920](https://github.com/flutter/engine/pull/9920) Fix caching of Locale.toString (cla: yes) + +[9922](https://github.com/flutter/engine/pull/9922) Split out lifecycle protocol (cla: yes) + +[9923](https://github.com/flutter/engine/pull/9923) Fix failure of the onReportTimings window hook test (cla: yes) + +[9924](https://github.com/flutter/engine/pull/9924) Don't try to use unset assets_dir setting (cla: yes) + +[9925](https://github.com/flutter/engine/pull/9925) Fix the geometry test to reflect that OffsetBase comparison operators are a partial ordering (cla: yes) + +[9927](https://github.com/flutter/engine/pull/9927) Update Buildroot Version (cla: yes) + +[9929](https://github.com/flutter/engine/pull/9929) Update the exception thrown for invalid data in the codec test (cla: yes) + +[9931](https://github.com/flutter/engine/pull/9931) Fix reentrancy handling in SingleFrameCodec (cla: yes) + +[9932](https://github.com/flutter/engine/pull/9932) Exit flutter_tester with an error code on an unhandled exception (cla: yes) + +[9933](https://github.com/flutter/engine/pull/9933) Build fuchsia artifacts from the engine (cla: yes) + +[9934](https://github.com/flutter/engine/pull/9934) Updates to the engine test runner script (cla: yes) + +[9935](https://github.com/flutter/engine/pull/9935) Fix backspace crash on Chinese devices (#9734) (cla: yes) + +[9936](https://github.com/flutter/engine/pull/9936) Move development.key from buildroot (cla: yes) + +[9937](https://github.com/flutter/engine/pull/9937) [platform view] do not make clipping view and interceptor view clipToBounds (cla: yes) + +[9938](https://github.com/flutter/engine/pull/9938) Removed PlatformViewsController if-statements from TextInputPlugin (#34286). (cla: yes) + +[9939](https://github.com/flutter/engine/pull/9939) Added hasRenderedFirstFrame() to old FlutterView for Espresso (#36211). (cla: yes) + +[9948](https://github.com/flutter/engine/pull/9948) [glfw] Enables replies on binary messenger in glfw embedder (cla: yes) + +[9951](https://github.com/flutter/engine/pull/9951) Roll src/third_party/dart 63120303a7...a089199b93 (cla: yes) + +[9952](https://github.com/flutter/engine/pull/9952) ios: Fixed the callback for the first frame so that it isn't predicated on having a splash screen. (cla: yes) + +[9953](https://github.com/flutter/engine/pull/9953) [macos] Add reply to binary messenger (cla: yes) + +[9954](https://github.com/flutter/engine/pull/9954) Add working Robolectric tests (cla: yes) + +[9958](https://github.com/flutter/engine/pull/9958) Clean up cirrus.yml file a little (cla: yes) + +[9959](https://github.com/flutter/engine/pull/9959) Update Dart engine tests to check for assertion failures only when running in debug mode (cla: yes) + +[9961](https://github.com/flutter/engine/pull/9961) Fix return type of assert function in gradient_test (cla: yes) + +[9977](https://github.com/flutter/engine/pull/9977) Fix flutter/flutter #34791 (cla: yes, platform-android) + +[9987](https://github.com/flutter/engine/pull/9987) Update GN to git_revision:152c5144ceed9592c20f0c8fd55769646077569b (cla: yes) + +[9998](https://github.com/flutter/engine/pull/9998) [luci] Reference the right fuchsia CIPD and upload only once (cla: yes) + +[9999](https://github.com/flutter/engine/pull/9999) Add support for Android's visible password input type (affects: text input, cla: yes) + +[10001](https://github.com/flutter/engine/pull/10001) Roll src/third_party/dart a089199b93..fedd74669a (8 commits) (cla: yes) + +[10003](https://github.com/flutter/engine/pull/10003) Declare a copy of the enable_bitcode flag within the Flutter build scripts for use in Fuchsia builds (cla: yes) + +[10004](https://github.com/flutter/engine/pull/10004) [fuchsia] Use GatherArtifacts to create the requisite dir structure (cla: yes) + +[10007](https://github.com/flutter/engine/pull/10007) Embedding testing app (cla: yes) + +[10009](https://github.com/flutter/engine/pull/10009) [macos] Revert check on FlutterCodecs and refactor message function] (cla: yes) + +[10010](https://github.com/flutter/engine/pull/10010) Use simarm_x64 when targeting arm (cla: yes) + +[10012](https://github.com/flutter/engine/pull/10012) Undelete used method (cla: yes) + +[10021](https://github.com/flutter/engine/pull/10021) Added a DartExecutor API for querying # of pending channel callbacks (cla: yes) + +[10056](https://github.com/flutter/engine/pull/10056) Update .cirrus.yml (cla: yes) + +[10063](https://github.com/flutter/engine/pull/10063) Track clusters and return cluster boundaries in getGlyphPositionForCoordinates (emoji fix) (affects: text input, cla: yes, crash) + +[10064](https://github.com/flutter/engine/pull/10064) Disable DartLifecycleTest::ShuttingDownTheVMShutsDownAllIsolates in runtime_unittests. (cla: yes) + +[10065](https://github.com/flutter/engine/pull/10065) test scenario_app on CI (cla: yes) + +[10066](https://github.com/flutter/engine/pull/10066) Roll src/third_party/dart fedd74669a..9c148623c5 (70 commits) (cla: yes) + +[10068](https://github.com/flutter/engine/pull/10068) Fixed memory leak with engine registrars. (cla: yes) + +[10069](https://github.com/flutter/engine/pull/10069) Enable consts from environment in DDK for flutter_web (cla: yes) + +[10073](https://github.com/flutter/engine/pull/10073) Basic structure for flutter_jit_runner far (cla: yes) + +[10074](https://github.com/flutter/engine/pull/10074) Change ParagraphBuilder to replace the parent style's font families with the child style's font families (cla: yes) + +[10075](https://github.com/flutter/engine/pull/10075) Change flutter runner target for LUCI (cla: yes) + +[10078](https://github.com/flutter/engine/pull/10078) One more luci fix (cla: yes) + +[10081](https://github.com/flutter/engine/pull/10081) [fuchsia] Add support for libs in packages (cla: yes) + +[10082](https://github.com/flutter/engine/pull/10082) [fuchsia] Add sysroot and clang libs to package (cla: yes) + +[10085](https://github.com/flutter/engine/pull/10085) [fuchsia] Use the new far package model (cla: yes) + +[10087](https://github.com/flutter/engine/pull/10087) [fuchsia] copy over the cmx file (cla: yes) + +[10096](https://github.com/flutter/engine/pull/10096) Roll src/third_party/skia 3ae30cc2e6e0..1cd1ed8976c4 (1 commits) (autoroller: dryrun, cla: yes) + +[10097](https://github.com/flutter/engine/pull/10097) Roll src/third_party/skia 1cd1ed8976c4..f564f1515bde (1 commits) (autoroller: dryrun, cla: yes) + +[10098](https://github.com/flutter/engine/pull/10098) Roll src/third_party/dart 9c148623c5..82f657d7cb (25 commits) (cla: yes) + +[10100](https://github.com/flutter/engine/pull/10100) Roll src/third_party/skia f564f1515bde..fdf4bfe6d389 (1 commits) (autoroller: dryrun, cla: yes) + +[10101](https://github.com/flutter/engine/pull/10101) Roll src/third_party/skia fdf4bfe6d389..b3956dc6ba6a (1 commits) (autoroller: dryrun, cla: yes) + +[10102](https://github.com/flutter/engine/pull/10102) [fuchsia] Use manifest file to better replicate the existing build (cla: yes) + +[10109](https://github.com/flutter/engine/pull/10109) Cache font family lookups that fail to obtain a font collection (cla: yes) + +[10114](https://github.com/flutter/engine/pull/10114) Roll src/third_party/dart 82f657d7cb..0c97c31b6e (7 commits) (cla: yes) + +[10122](https://github.com/flutter/engine/pull/10122) [fuchsia] Use the patched sdk to generate the flutter jit runner far (cla: yes) + +[10127](https://github.com/flutter/engine/pull/10127) Track detailed LibTxt metrics (cla: yes) + +[10128](https://github.com/flutter/engine/pull/10128) Started linking the test targets against Flutter. (cla: yes) + +[10139](https://github.com/flutter/engine/pull/10139) Roll src/third_party/dart 0c97c31b6e..a2aec5eb06 (22 commits) (cla: yes) + +[10140](https://github.com/flutter/engine/pull/10140) Revert "[fuchsia] Use the patched sdk to generate the flutter jit run… (cla: yes) + +[10141](https://github.com/flutter/engine/pull/10141) Revert "[macos] Revert check on FlutterCodecs and refactor message fu… (cla: yes) + +[10143](https://github.com/flutter/engine/pull/10143) Disable windows tests (cla: yes) + +[10144](https://github.com/flutter/engine/pull/10144) [fuchsia] Push CMX to fars and add product mode support (cla: yes) + +[10145](https://github.com/flutter/engine/pull/10145) Added integration test that tests that the first frame callback is called (cla: yes) + +[10146](https://github.com/flutter/engine/pull/10146) Revert "Disable windows tests" (cla: yes) + +[10150](https://github.com/flutter/engine/pull/10150) [fuchsia] Remove extraneous ShapeNodes (cla: yes) + +[10151](https://github.com/flutter/engine/pull/10151) [fucshia] fix name to reflect the cmx file (cla: yes) + +[10153](https://github.com/flutter/engine/pull/10153) Add gclient_gn_args_file to DEPS (cla: yes) + +[10155](https://github.com/flutter/engine/pull/10155) src/third_party/dart a2aec5eb06...86dba81dec (cla: yes) + +[10160](https://github.com/flutter/engine/pull/10160) Roll src/third_party/dart 86dba81dec..0ca1582afd (2 commits) (cla: yes) + +[10171](https://github.com/flutter/engine/pull/10171) [fuchsia] Add support for aot mode in flutter runner (cla: yes) + +[10172](https://github.com/flutter/engine/pull/10172) [dart_runner] Rename dart to dart runner (cla: yes) + +[10176](https://github.com/flutter/engine/pull/10176) Add suggested Java changes from flutter roll (cla: yes, platform-android) + +[10178](https://github.com/flutter/engine/pull/10178) Removed unnecessary call to find the App.framework. (cla: yes) + +[10179](https://github.com/flutter/engine/pull/10179) [dart_runner] dart jit runner and dart jit product runner (cla: yes) + +[10183](https://github.com/flutter/engine/pull/10183) [fuchsia] Uncomment publish to CIPD (cla: yes) + +[10185](https://github.com/flutter/engine/pull/10185) Add better CIPD docs. (cla: yes) + +[10186](https://github.com/flutter/engine/pull/10186) Ensure debug-mode apps are always attached on iOS. (cla: yes) + +[10188](https://github.com/flutter/engine/pull/10188) [fuchsia] Artifacts now contain gen_snapshot and gen_snapshot_product (cla: yes) + +[10189](https://github.com/flutter/engine/pull/10189) [macos] Reland function refactor (cla: yes) + +[10195](https://github.com/flutter/engine/pull/10195) Allow embedder controlled composition of Flutter layers. (cla: yes) + +[10226](https://github.com/flutter/engine/pull/10226) Roll src/third_party/dart 0ca1582afd..1e43d65d4a (50 commits) (cla: yes) + +[10235](https://github.com/flutter/engine/pull/10235) Deprecate FlutterView#enableTransparentBackground (cla: yes) + +[10240](https://github.com/flutter/engine/pull/10240) [fuchsia] Update buildroot to support arm64 (cla: yes) + +[10242](https://github.com/flutter/engine/pull/10242) Remove Dead Scenic Clipping Code Path. (cla: yes) + +[10246](https://github.com/flutter/engine/pull/10246) [fuchsia] Start building dart_patched_sdk (cla: yes) + +[10250](https://github.com/flutter/engine/pull/10250) Android Embedding Refactor 38: Removed AssetManager from DartEntrypoint. (cla: yes) + +[10260](https://github.com/flutter/engine/pull/10260) [fuchsia] Add arm64 builds for flutter and dart runner (cla: yes) + +[10261](https://github.com/flutter/engine/pull/10261) [fuchsia] Bundle architecture specific gen_snapshots (cla: yes) + +[10265](https://github.com/flutter/engine/pull/10265) [dart-roll] Roll dart sdk to 80c4954d4d1d2a257005793d83b601f3ff2997a2 (cla: yes) + +[10268](https://github.com/flutter/engine/pull/10268) [fuchsia] Make cirrus build fuchsia artifacts (cla: yes) + +[10273](https://github.com/flutter/engine/pull/10273) Remove one last final call to AddPart() (cla: yes) + +[10282](https://github.com/flutter/engine/pull/10282) Export FFI from sky_engine. (cla: yes) + +[10293](https://github.com/flutter/engine/pull/10293) Add fuchsia.stamp for roller (cla: yes) + +[10294](https://github.com/flutter/engine/pull/10294) Roll src/third_party/dart 80c4954d4d..bd049f5b53 (37 commits) (cla: yes) + +[10295](https://github.com/flutter/engine/pull/10295) Fix memory overrun in minikin patch (cla: yes, crash) + +[10296](https://github.com/flutter/engine/pull/10296) fix CI (cla: yes) + +[10297](https://github.com/flutter/engine/pull/10297) Ensure that the SingleFrameCodec stays alive until the ImageDecoder invokes its callback (cla: yes) + +[10298](https://github.com/flutter/engine/pull/10298) Fix red build again (cla: yes) + +[10303](https://github.com/flutter/engine/pull/10303) Make tree green for real this time, I promise. (cla: yes) + +[10309](https://github.com/flutter/engine/pull/10309) [fuchsia] Kernel compiler is now ready (cla: yes) + +[10381](https://github.com/flutter/engine/pull/10381) Fix empty composing range on iOS (cla: yes) + +[10386](https://github.com/flutter/engine/pull/10386) Don't use DBC for hot-reload on iOS. (cla: yes) + +[10403](https://github.com/flutter/engine/pull/10403) [fuchsia] Add kernel compiler target (cla: yes) + +[10413](https://github.com/flutter/engine/pull/10413) Pass Android Q insets.systemGestureInsets to Window (cla: yes, platform-android) + +[10414](https://github.com/flutter/engine/pull/10414) expose max depth on Window (cla: yes) + +[10419](https://github.com/flutter/engine/pull/10419) Make kernel compiler use host toolchain (cla: yes) + +[10423](https://github.com/flutter/engine/pull/10423) Fix mac gen_snapshot uploader (cla: yes) + +[10424](https://github.com/flutter/engine/pull/10424) Fix deprecation warnings in the Android embedding (cla: yes) + +[10430](https://github.com/flutter/engine/pull/10430) Add copy_gen_snapshots.py tool (cla: yes) + +[10434](https://github.com/flutter/engine/pull/10434) Reland Skia Caching improvements (cla: yes) + +[10437](https://github.com/flutter/engine/pull/10437) Roll src/third_party/dart bd049f5b53...622ec5099f (cla: yes) + +[10440](https://github.com/flutter/engine/pull/10440) Revert "Remove one last final call to AddPart()" (cla: yes) + +[10475](https://github.com/flutter/engine/pull/10475) Roll src/third_party/dart 622ec5099f...9bb446aae1 (14 commits) (cla: yes) + +[10477](https://github.com/flutter/engine/pull/10477) Add #else, #endif condition comments (cla: yes) + +[10478](https://github.com/flutter/engine/pull/10478) Migrate Fuchsia runners to SDK tracing API (cla: yes) + +[10479](https://github.com/flutter/engine/pull/10479) Delete unused create_macos_gen_snapshot.py script (cla: yes) + +[10481](https://github.com/flutter/engine/pull/10481) Android embedding refactor pr40 add static engine cache (cla: yes) + +[10484](https://github.com/flutter/engine/pull/10484) Roll src/third_party/dart 9bb446aae1...4bebfebdbc (7 commits). (cla: yes) + +[10485](https://github.com/flutter/engine/pull/10485) Remove semi-redundant try-jobs. (cla: yes) + +[10629](https://github.com/flutter/engine/pull/10629) Fix engine platformviewscontroller leak (cla: yes) + +[10633](https://github.com/flutter/engine/pull/10633) skip flaky tests (cla: yes) + +[10634](https://github.com/flutter/engine/pull/10634) Use Fuchsia trace macros when targeting Fuchsia SDK (cla: yes) + +[10635](https://github.com/flutter/engine/pull/10635) [fuchsia] CloneChannelFromFD fix for system.cc (cla: yes) + +[10636](https://github.com/flutter/engine/pull/10636) Fix threading and re-enable resource cache shell unit-tests. (cla: yes) + +[10637](https://github.com/flutter/engine/pull/10637) Document the thread test fixture. (cla: yes) + +[10642](https://github.com/flutter/engine/pull/10642) Roll src/third_party/dart 4bebfebdbc..8cd01287b4 (30 commits) (cla: yes) + +[10644](https://github.com/flutter/engine/pull/10644) [flutter_runner] Port: Add connectToService, wrapping fdio_ns_connect. (cla: yes) + +[10645](https://github.com/flutter/engine/pull/10645) Don't use DBC for hot-reload on iOS. (cla: yes) + +[10652](https://github.com/flutter/engine/pull/10652) Allow embedders to control Dart VM lifecycle on engine shutdown. (cla: yes) + +[10656](https://github.com/flutter/engine/pull/10656) fix iOS keyboard crash : -[__NSCFString substringWithRange:], range o… (cla: yes) + +[10662](https://github.com/flutter/engine/pull/10662) bump local podspec's ios deployment target version from 7.0 to 8.0 (cla: yes) + +[10663](https://github.com/flutter/engine/pull/10663) Roll src/third_party/dart 8cd01287b4..574c4a51c6 (35 commits) (cla: yes) + +[10667](https://github.com/flutter/engine/pull/10667) Roll buildroot for ANGLE support (cla: yes) + +[10671](https://github.com/flutter/engine/pull/10671) Roll src/third_party/dart 574c4a51c6..c262cbd414 (11 commits) (cla: yes) + +[10674](https://github.com/flutter/engine/pull/10674) When setting up AOT snapshots from symbol references, make buffer sizes optional. (cla: yes) + +[10675](https://github.com/flutter/engine/pull/10675) Improvements to the flutter GDB script (cla: yes) + +[10679](https://github.com/flutter/engine/pull/10679) Roll buildroot to pick up EGL library name fix (cla: yes) + +[10681](https://github.com/flutter/engine/pull/10681) Roll buildroot back to an earlier version (cla: yes) + +[10682](https://github.com/flutter/engine/pull/10682) Roll src/third_party/dart c262cbd414..8740bb5c68 (18 commits) (cla: yes) + +[10687](https://github.com/flutter/engine/pull/10687) Roll src/third_party/dart 8740bb5c68..f3139f57b4 (7 commits) (cla: yes) + +[10692](https://github.com/flutter/engine/pull/10692) Rolls engine to Android SDK 29 and its corresponding tools (cla: yes) + +[10693](https://github.com/flutter/engine/pull/10693) Roll src/third_party/dart f3139f57b4..f29f41f1a5 (3 commits) (cla: yes) + +[10694](https://github.com/flutter/engine/pull/10694) Roll buildroot (cla: yes) + +[10699](https://github.com/flutter/engine/pull/10699) Roll swiftshader (cla: yes) + +[10700](https://github.com/flutter/engine/pull/10700) [fuchsia] Migrate from custom FuchsiaFontManager to SkFontMgr_fuchsia (cla: yes) + +[10703](https://github.com/flutter/engine/pull/10703) Test perf overlay gold on Linux (cla: yes) + +[10705](https://github.com/flutter/engine/pull/10705) Revert "Remove semi-redundant try-jobs. (#10485)" (cla: yes) + +[10717](https://github.com/flutter/engine/pull/10717) Specify which android variant for tests (cla: yes, waiting for tree to go green) + +[10719](https://github.com/flutter/engine/pull/10719) Include Maven dependency in files.json (cla: yes) + +[10771](https://github.com/flutter/engine/pull/10771) Don't use gradle daemon for building (cla: yes, waiting for tree to go green) + +[10773](https://github.com/flutter/engine/pull/10773) Remove use of the deprecated AccessibilityNodeInfo boundsInParent API (cla: yes) + +[10774](https://github.com/flutter/engine/pull/10774) Manual roll of Fuchsia clang/linux-amd64 toolchain (cla: yes) + +[10776](https://github.com/flutter/engine/pull/10776) rename stub_ui to web_ui (cla: yes) + +[10777](https://github.com/flutter/engine/pull/10777) Manually roll Skia to pull in iOS armv7 build failure fix. (cla: yes) + +[10778](https://github.com/flutter/engine/pull/10778) Build JARs containing the Android embedding sources and the engine native library (cla: yes) + +[10780](https://github.com/flutter/engine/pull/10780) [flutter_runner] Improve frame scheduling (cla: yes) + +[10781](https://github.com/flutter/engine/pull/10781) [flutter] Create the compositor context on the GPU task runner. (cla: yes) + +[10782](https://github.com/flutter/engine/pull/10782) Update license script to handle ANGLE (cla: yes) + +[10783](https://github.com/flutter/engine/pull/10783) Make firebase test more LUCI friendly (cla: yes) + +[10784](https://github.com/flutter/engine/pull/10784) Roll buildroot for ANGLE support (cla: yes) + +[10786](https://github.com/flutter/engine/pull/10786) Remove 3 semi-redundant try-jobs (cla: yes) + +[10787](https://github.com/flutter/engine/pull/10787) Change call to |AddPart| to |AddChild| (cla: yes) + +[10788](https://github.com/flutter/engine/pull/10788) Wire up a concurrent message loop backed SkExecutor for Skia. (cla: yes) + +[10789](https://github.com/flutter/engine/pull/10789) Revert "Forwards iOS dark mode trait to the Flutter framework.". (cla: yes) + +[10791](https://github.com/flutter/engine/pull/10791) Re-lands platform brightness support on iOS (cla: yes) + +[10797](https://github.com/flutter/engine/pull/10797) Rename artifacts so they match the Maven convention (cla: yes) + +[10799](https://github.com/flutter/engine/pull/10799) Add a test for creating images from bytes. (cla: yes) + +[10802](https://github.com/flutter/engine/pull/10802) Roll src/third_party/dart f29f41f1a5..3d9a356f6e (65 commits) (cla: yes) + +[10805](https://github.com/flutter/engine/pull/10805) Roll src/third_party/dart 3d9a356f6e..78ce916d82 (7 commits) (cla: yes) + +[10808](https://github.com/flutter/engine/pull/10808) Remove flutter_kernel_sdk dart script (cla: yes) + +[10809](https://github.com/flutter/engine/pull/10809) [dart:zircon] Porting Cache re-usable handle wait objects (cla: yes) + +[10810](https://github.com/flutter/engine/pull/10810) Roll Dart SDK 78ce916d82..15a3bf82cb (cla: yes) + +[10811](https://github.com/flutter/engine/pull/10811) Revert "Remove flutter_kernel_sdk dart script" (cla: yes) + +[10815](https://github.com/flutter/engine/pull/10815) Return an empty mapping for an empty file asset (cla: yes) + +[10816](https://github.com/flutter/engine/pull/10816) Add firstFrameDidRender to FlutterViewController (cla: yes) + +[10817](https://github.com/flutter/engine/pull/10817) Roll src/third_party/dart 15a3bf82cb..ffefa124a7 (11 commits) (cla: yes) + +[10820](https://github.com/flutter/engine/pull/10820) iOS JIT support and enhancements for scenarios app (cla: yes) + +[10821](https://github.com/flutter/engine/pull/10821) Roll src/third_party/dart ffefa124a7..e29d6d0ecb (4 commits) (cla: yes) + +[10823](https://github.com/flutter/engine/pull/10823) Expose isolateId for engine (cla: yes) + +[10905](https://github.com/flutter/engine/pull/10905) Roll src/third_party/dart e29d6d0ecb..261fd6266b (2 commits) (cla: yes) + +[10925](https://github.com/flutter/engine/pull/10925) Roll src/third_party/dart 261fd6266b..9adf3c119e (2 commits) (cla: yes) + +[10934](https://github.com/flutter/engine/pull/10934) Roll src/third_party/dart 9adf3c119e..32b70ce2a5 (3 commits) (cla: yes) + +[10941](https://github.com/flutter/engine/pull/10941) Report test failures in run_tests.py (cla: yes) + +[10946](https://github.com/flutter/engine/pull/10946) Roll src/third_party/dart 32b70ce2a5..896c053803 (1 commits) (cla: yes) + +[10949](https://github.com/flutter/engine/pull/10949) Fix iOS references to PostPrerollResult (cla: yes) + +[10952](https://github.com/flutter/engine/pull/10952) Change SemanticsNode#children lists to be non-null (cla: yes) + +[10955](https://github.com/flutter/engine/pull/10955) Fix format (cla: yes) + +[10956](https://github.com/flutter/engine/pull/10956) Increase the license block scan from 5k to 6k (cla: yes) + +[10962](https://github.com/flutter/engine/pull/10962) Roll src/third_party/dart 896c053803..b31df28d72 (10 commits) (cla: yes) + +[10966](https://github.com/flutter/engine/pull/10966) Roll src/third_party/dart b31df28d72..baebba06af (5 commits) (cla: yes) + +[10968](https://github.com/flutter/engine/pull/10968) include zx::clock from new location to fix Fuchsia autoroll. (cla: yes) + +[10973](https://github.com/flutter/engine/pull/10973) Roll src/third_party/dart baebba06af..06509e333d (7 commits) (cla: yes) + +[10975](https://github.com/flutter/engine/pull/10975) Roll src/third_party/dart 06509e333d..9aea1f3489 (8 commits) (cla: yes) + +[10977](https://github.com/flutter/engine/pull/10977) Roll src/third_party/dart 9aea1f3489..b9217efc77 (7 commits) (cla: yes) + +[10981](https://github.com/flutter/engine/pull/10981) Roll src/third_party/dart b9217efc77..20407e28db (6 commits) (cla: yes) + +[10982](https://github.com/flutter/engine/pull/10982) Revert "Track detailed LibTxt metrics" (cla: yes) + +[10983](https://github.com/flutter/engine/pull/10983) Roll src/third_party/dart 20407e28db..45f892df68 (2 commits) (cla: yes) + +[10987](https://github.com/flutter/engine/pull/10987) Roll src/third_party/dart 45f892df68..88c43bbcc4 (7 commits) (cla: yes) + +[10990](https://github.com/flutter/engine/pull/10990) Roll src/third_party/dart 88c43bbcc4..b173229baa (14 commits) (cla: yes) + +[10993](https://github.com/flutter/engine/pull/10993) Roll src/third_party/dart b173229baa..76c99bcd01 (5 commits) (cla: yes) + +[10997](https://github.com/flutter/engine/pull/10997) Roll src/third_party/dart 76c99bcd01..c4727fddf4 (10 commits) (cla: yes) + +[10999](https://github.com/flutter/engine/pull/10999) Add script for running ios Tests on simulator (cla: yes) + +[11001](https://github.com/flutter/engine/pull/11001) Avoid dynamic lookups of the engine library's symbols on Android (cla: yes) + +[11002](https://github.com/flutter/engine/pull/11002) Remove a tracing macro with a dangling pointer (cla: yes) + +[11003](https://github.com/flutter/engine/pull/11003) Roll src/third_party/dart c4727fddf4..e35e8833ee (1 commits) (cla: yes) + +[11004](https://github.com/flutter/engine/pull/11004) Trace RasterCacheResult::Draw (cla: yes) + +[11005](https://github.com/flutter/engine/pull/11005) Drop firebase test from Cirrus (cla: yes) + +[11006](https://github.com/flutter/engine/pull/11006) On iOS report the preferred frames per second to tools via service protocol. (cla: yes) + +[11007](https://github.com/flutter/engine/pull/11007) Update README.md (cla: yes) + +[11009](https://github.com/flutter/engine/pull/11009) Revert "Update README.md" (cla: yes) + +[11010](https://github.com/flutter/engine/pull/11010) Rename macOS FLE* classes to Flutter* (affects: desktop, cla: yes, platform-macos, waiting for tree to go green) + +[11011](https://github.com/flutter/engine/pull/11011) Initialize the engine in the running state to match the animator's default state (cla: yes) + +[11012](https://github.com/flutter/engine/pull/11012) Remove the ParagraphImpl class from the text API (cla: yes) + +[11013](https://github.com/flutter/engine/pull/11013) Remove ability to override mac_sdk_path in flutter/tools/gn (cla: yes) + +[11015](https://github.com/flutter/engine/pull/11015) Remove the output directory prefix from the Android engine JAR filename (cla: yes) + +[11016](https://github.com/flutter/engine/pull/11016) Fix gn breakage on Fuchsia macOS host builds (cla: yes) + +[11017](https://github.com/flutter/engine/pull/11017) Roll src/third_party/dart e35e8833ee..e35e8833ee (0 commits) (cla: yes) + +[11019](https://github.com/flutter/engine/pull/11019) Fix gn breakage on non-Fuchsia macOS host builds (cla: yes) + +[11023](https://github.com/flutter/engine/pull/11023) Roll src/third_party/dart e35e8833ee..cae08c6813 (28 commits) (cla: yes) + +[11024](https://github.com/flutter/engine/pull/11024) Add _glfw versions of the GLFW desktop libraries (cla: yes) + +[11026](https://github.com/flutter/engine/pull/11026) Roll src/third_party/dart cae08c6813..9552646dc4 (3 commits) (cla: yes) + +[11027](https://github.com/flutter/engine/pull/11027) Fix first frame logic (cla: yes) + +[11029](https://github.com/flutter/engine/pull/11029) Disable a deprecation warning for use of a TaskDescription constructor for older platforms (cla: yes) + +[11030](https://github.com/flutter/engine/pull/11030) Roll src/third_party/dart 9552646dc4..cd16fba718 (5 commits) (cla: yes) + +[11033](https://github.com/flutter/engine/pull/11033) remove OS version (cla: yes) + +[11036](https://github.com/flutter/engine/pull/11036) [fuchsia] Add required trace so files for fuchsia fars (cla: yes) + +[11037](https://github.com/flutter/engine/pull/11037) Roll buildroot to pick up recent macOS changes (cla: yes) + +[11038](https://github.com/flutter/engine/pull/11038) Make JIT work on iPhone armv7 (cla: yes) + +[11039](https://github.com/flutter/engine/pull/11039) Roll src/third_party/dart cd16fba718..306f8e04bb (10 commits) (cla: yes) + +[11040](https://github.com/flutter/engine/pull/11040) Hide verbose dart snapshot during run_test.py (cla: yes) + +[11043](https://github.com/flutter/engine/pull/11043) Roll Dart back to e35e8833 (cla: yes) + +[11044](https://github.com/flutter/engine/pull/11044) Roll src/third_party/dart 306f8e04bb..fecc4c8f2d (4 commits) (cla: yes) + +[11046](https://github.com/flutter/engine/pull/11046) Add ccls config files to .gitignore (cla: yes) + +[11048](https://github.com/flutter/engine/pull/11048) Roll src/third_party/dart e35e8833ee..2023f09b56 (67 commits) (cla: yes) + +[11052](https://github.com/flutter/engine/pull/11052) Remove unused dstColorSpace argument to MakeCrossContextFromPixmap (cla: yes) + +[11055](https://github.com/flutter/engine/pull/11055) Roll src/third_party/dart 2023f09b56..a3b579d5c3 (8 commits) (cla: yes) + +[11056](https://github.com/flutter/engine/pull/11056) Sort the Skia typefaces in a font style set into a consistent order (cla: yes) + +[11060](https://github.com/flutter/engine/pull/11060) Roll src/third_party/dart a3b579d5c3..2a3b844b41 (5 commits) (cla: yes) + +[11061](https://github.com/flutter/engine/pull/11061) Roll buildroot to 5a33d6ab to pickup changes to toolchain version tracking. (cla: yes) + +[11066](https://github.com/flutter/engine/pull/11066) Roll src/third_party/dart 2a3b844b41..8ab978b6d4 (7 commits) (cla: yes) + +[11067](https://github.com/flutter/engine/pull/11067) Minor update to the Robolectric test harness (cla: yes) + +[11068](https://github.com/flutter/engine/pull/11068) More updates to the Robolectric test harness (cla: yes) + +[11071](https://github.com/flutter/engine/pull/11071) Roll src/third_party/dart 8ab978b6d4..beee442625 (17 commits) (cla: yes) + +[11072](https://github.com/flutter/engine/pull/11072) Roll src/third_party/dart beee442625..79e6c74337 (8 commits) (cla: yes) + +[11075](https://github.com/flutter/engine/pull/11075) [dynamic_thread_merging] Resubmit only on the frame where the merge (cla: yes) + + + +858 PRs were closed in flutter/engine. +We omitted 436 PRs in this report because they were +automated PRs, such as autoroller commits. diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes---Changes-in-1.2.1.md b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes---Changes-in-1.2.1.md new file mode 100644 index 0000000000000000000000000000000000000000..5c956eb6cb49a03be05ace8547a1e59162b5077c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes---Changes-in-1.2.1.md @@ -0,0 +1,720 @@ +The following issues were addressed between 1.0.0 and 1.2.1: + +## In the framework and engine (this also includes Dart and Skia rolls, which are not broken out here.) + +| Label | Number of Issues & Issue Links | +| --- | --- | +| framework | 87 issues with this label| +| | [(flutter/flutter#25788) Add Robert Penner’s easing functions](https://github.com/flutter/flutter/pull/25788) | +| | [(flutter/flutter#25984) use RRect to draw avatar check on chip](https://github.com/flutter/flutter/pull/25984) | +| | [(flutter/flutter#23424) Teach drag start behaviors to DragGestureRecognizer](https://github.com/flutter/flutter/pull/23424) | +| | [(flutter/flutter#26209) Revert "Teach drag start behaviors to DragGestureRecognizer (#23424)"](https://github.com/flutter/flutter/pull/26209) | +| | [(flutter/flutter#26199) Fix tristate checkbox false to null transition, test ALL transitions](https://github.com/flutter/flutter/pull/26199) | +| | [(flutter/flutter#25790) Clarify doc for AnimatedContainer](https://github.com/flutter/flutter/pull/25790) | +| | [(flutter/flutter#23860) Clearing pendingImages when the cache is cleared or evicted.](https://github.com/flutter/flutter/pull/23860) | +| | [(flutter/flutter#26021) Fix SliverAppBar title opacity and test all cases](https://github.com/flutter/flutter/pull/26021) | +| | [(flutter/flutter#26101) Fix a floating snapping SliverAppBar crash](https://github.com/flutter/flutter/pull/26101) | +| | [(flutter/flutter#24779) Skip formatters if text has not changed](https://github.com/flutter/flutter/pull/24779) | +| | [(flutter/flutter#26089) Explain that BoxDecoration doesn't do clip.](https://github.com/flutter/flutter/pull/26089) | +| | [(flutter/flutter#26088) Fix typos introduced with the TextField.onTap PR, udpated debugFillProperties](https://github.com/flutter/flutter/pull/26088) | +| | [(flutter/flutter#26042) Update material spec references in BottomSheet et al., Scaffold](https://github.com/flutter/flutter/pull/26042) | +| | [(flutter/flutter#25994) Simplify ImageStream(Completer).removeListener](https://github.com/flutter/flutter/pull/25994) | +| | [(flutter/flutter#25980) Ensure all errors thrown by image providers can be caught by developers.](https://github.com/flutter/flutter/pull/25980) | +| | [(flutter/flutter#25977) Add didSendFirstFrameEvent service extension.](https://github.com/flutter/flutter/pull/25977) | +| | [(flutter/flutter#25992) Add docs to TextStyle for fontFamilyFallback/Custom font fallback](https://github.com/flutter/flutter/pull/25992) | +| | [(flutter/flutter#25159) fix #25143 Successive calls to `precacheImage()` throw an exception](https://github.com/flutter/flutter/pull/25159) | +| | [(flutter/flutter#23118) Setting icon color to first ListTile in ExpansionTile. Fixes #23053](https://github.com/flutter/flutter/pull/23118) | +| | [(flutter/flutter#25799) Make LicensePage respect the notch](https://github.com/flutter/flutter/pull/25799) | +| | [(flutter/flutter#7318) ListItem should call out that it's intentionally fixed height](https://github.com/flutter/flutter/issues/7318) | +| | [(flutter/flutter#25792) Actively reject UiKitView gestures.](https://github.com/flutter/flutter/pull/25792) | +| | [(flutter/flutter#25055) Include cursor in textfield intrinsic width measurement](https://github.com/flutter/flutter/pull/25055) | +| | [(flutter/flutter#24736) [H] Provide some more locations for the FAB.](https://github.com/flutter/flutter/pull/24736) | +| | [(flutter/flutter#24511) [H] Undeprecate BigInteger support, but document what it actually does.](https://github.com/flutter/flutter/pull/24511) | +| | [(flutter/flutter#24816) [H] ClipPath.shape and related fixes](https://github.com/flutter/flutter/pull/24816) | +| | [(flutter/flutter#24848) [H] Handle errors in `compute()` by propagating them to the Future.](https://github.com/flutter/flutter/pull/24848) | +| | [(flutter/flutter#25718) Fix merge conflict.](https://github.com/flutter/flutter/pull/25718) | +| | [(flutter/flutter#24643) [H] Some minor tweaks to InputDecoration (mainly docs).](https://github.com/flutter/flutter/pull/24643) | +| | [(flutter/flutter#25585) Expose font fallback API in TextStyle, Roll engine 54a3577c0139..215ca1560088 (8 commits)](https://github.com/flutter/flutter/pull/25585) | +| | [(flutter/flutter#25604) no period after an alone reference in see also section](https://github.com/flutter/flutter/pull/25604) | +| | [(flutter/flutter#24457) Revise Android and iOS gestures on Material TextField](https://github.com/flutter/flutter/pull/24457) | +| | [(flutter/flutter#25594) Switch over to the new name for compilation trace native function](https://github.com/flutter/flutter/pull/25594) | +| | [(flutter/flutter#25584) Fix material reference in CupertinoPicker doc](https://github.com/flutter/flutter/pull/25584) | +| | [(flutter/flutter#25593) Let CupertinoTabScaffold handle keyboard insets too](https://github.com/flutter/flutter/pull/25593) | +| | [(flutter/flutter#25229) Right aligned backspace bug](https://github.com/flutter/flutter/pull/25229) | +| | [(flutter/flutter#25573) Update DayPicker,DatePicker doc "see also" sections](https://github.com/flutter/flutter/pull/25573) | +| | [(flutter/flutter#24554) Adds force press gesture detector and recognizer](https://github.com/flutter/flutter/pull/24554) | +| | [(flutter/flutter#25574) Use full textspan tree instead of top level textspan](https://github.com/flutter/flutter/pull/25574) | +| | [(flutter/flutter#25339) [Material] Theme-able TextStyles for AlertDialog](https://github.com/flutter/flutter/pull/25339) | +| | [(flutter/flutter#23759) Adds CupertinoTheme](https://github.com/flutter/flutter/pull/23759) | +| | [(flutter/flutter#25477) TransitionRoute.canTransitionFrom,To() doc update](https://github.com/flutter/flutter/pull/25477) | +| | [(flutter/flutter#25237) Fix typo](https://github.com/flutter/flutter/pull/25237) | +| | [(flutter/flutter#24797) Iterate through potential grapheme cluster lengths in text painter](https://github.com/flutter/flutter/pull/24797) | +| | [(flutter/flutter#25345) assert(elevation >= 0.0) and doc clarifications](https://github.com/flutter/flutter/pull/25345) | +| | [(flutter/flutter#24993) Add InputDecoration alignLabelWithHint parameter](https://github.com/flutter/flutter/pull/24993) | +| | [(flutter/flutter#25473) TextField.onChanged() doc update](https://github.com/flutter/flutter/pull/25473) | +| | [(flutter/flutter#25474) fix some formatting issues](https://github.com/flutter/flutter/pull/25474) | +| | [(flutter/flutter#25381) Add cull opacity perf test to device lab](https://github.com/flutter/flutter/pull/25381) | +| | [(flutter/flutter#25342) Revert "Revert "obscureText and enableInteractiveSelection defaults""](https://github.com/flutter/flutter/pull/25342) | +| | [(flutter/flutter#23919) Allow detection of taps on TabBar](https://github.com/flutter/flutter/pull/23919) | +| | [(flutter/flutter#24527) obscureText and enableInteractiveSelection defaults](https://github.com/flutter/flutter/pull/24527) | +| | [(flutter/flutter#25335) Revert "obscureText and enableInteractiveSelection defaults"](https://github.com/flutter/flutter/pull/25335) | +| | [(flutter/flutter#25394) Update localizations](https://github.com/flutter/flutter/pull/25394) | +| | [(flutter/flutter#25239) Call mark* methods before attaching child](https://github.com/flutter/flutter/pull/25239) | +| | [(flutter/flutter#25395) Reland "Call mark* methods before attaching child (#25239)"](https://github.com/flutter/flutter/pull/25395) | +| | [(flutter/flutter#25301) Flutter tool support for automatic saving of JIT compilation trace](https://github.com/flutter/flutter/pull/25301) | +| | [(flutter/flutter#24932) Fixed Typography null factory constructor](https://github.com/flutter/flutter/pull/24932) | +| | [(flutter/flutter#25384) Adds support for floating cursor](https://github.com/flutter/flutter/pull/25384) | +| | [(flutter/flutter#24999) Remove TextField.noMaxLength, use maxLength = -1 instead](https://github.com/flutter/flutter/pull/24999) | +| | [(flutter/flutter#25390) Revert "drop/restore focus when app becomes invisible/visible"](https://github.com/flutter/flutter/pull/25390) | +| | [(flutter/flutter#25228) IntrinsicWidth stepWidth or stepHeight == 0.0](https://github.com/flutter/flutter/pull/25228) | +| | [(flutter/flutter#24744) drop/restore focus when app becomes invisible/visible](https://github.com/flutter/flutter/pull/24744) | +| | [(flutter/flutter#25382) Revert "Call mark* methods before attaching child (#25239)"](https://github.com/flutter/flutter/pull/25382) | +| | [(flutter/flutter#24761) Adds support for floating cursor](https://github.com/flutter/flutter/pull/24761) | +| | [(flutter/flutter#25352) Revert "Adds support for floating cursor"](https://github.com/flutter/flutter/pull/25352) | +| | [(flutter/flutter#24449) Text field style merge](https://github.com/flutter/flutter/pull/24449) | +| | [(flutter/flutter#24169) [Material] Theme-able elevation on dialogs.](https://github.com/flutter/flutter/pull/24169) | +| | [(flutter/flutter#24587) Validate style in TextField](https://github.com/flutter/flutter/pull/24587) | +| | [(flutter/flutter#24930) Run flutter tests through mini test engine when run directly (flutter run -t test_file)](https://github.com/flutter/flutter/pull/24930) | +| | [(flutter/flutter#24976) Support TextField multi-line hint text #20941](https://github.com/flutter/flutter/pull/24976) | +| | [(flutter/flutter#25183) Add navigatorKey to CupertinoTabView](https://github.com/flutter/flutter/pull/25183) | +| | [(flutter/flutter#25051) Do not fade out text for pinned & floating AppBar](https://github.com/flutter/flutter/pull/25051) | +| | [(flutter/flutter#24892) Handle a TabBarView special case: last tab deleted before animation ends](https://github.com/flutter/flutter/pull/24892) | +| | [(flutter/flutter#25217) Fixed Spelling.](https://github.com/flutter/flutter/pull/25217) | +| | [(flutter/flutter#24635) TextFormField cursor params](https://github.com/flutter/flutter/pull/24635) | +| | [(flutter/flutter#25168) Fixed an InheritedWidget code sample typo](https://github.com/flutter/flutter/pull/25168) | +| | [(flutter/flutter#25046) Add a check for build methods that return context.widget](https://github.com/flutter/flutter/pull/25046) | +| | [(flutter/flutter#25048) Don't crash if pinned & floating AppBar has less than minExtent remainingPaintExtent](https://github.com/flutter/flutter/pull/25048) | +| | [(flutter/flutter#24942) Fix debugPrint(null) to not crash](https://github.com/flutter/flutter/pull/24942) | +| | [(flutter/flutter#24881) Remove offstage wording from KeepAlive](https://github.com/flutter/flutter/pull/24881) | +| | [(flutter/flutter#24941) Update Switch doc: disabled state](https://github.com/flutter/flutter/pull/24941) | +| | [(flutter/flutter#25120) Replace deprecated link (to design-principles page) in comment](https://github.com/flutter/flutter/pull/25120) | +| | [(flutter/flutter#25096) Change network image URL in doc](https://github.com/flutter/flutter/pull/25096) | +| | [(flutter/flutter#24862) Fix semantics compiler for offstage children](https://github.com/flutter/flutter/pull/24862) | +| | [(flutter/flutter#25091) Add animations to SliverAppBar doc](https://github.com/flutter/flutter/pull/25091) | +| | [(flutter/flutter#25003) Fix typo in documentation](https://github.com/flutter/flutter/pull/25003) | +| tool | 49 issues with this label | +| | [(flutter/flutter#26249) Revert "Replace netls and netaddr with dev_finder"](https://github.com/flutter/flutter/pull/26249) | +| | [(flutter/flutter#26090) Replace netls and netaddr with dev_finder](https://github.com/flutter/flutter/pull/26090) | +| | [(flutter/flutter#26235) rev the min dart sdk dep in the templates to 2.1.0](https://github.com/flutter/flutter/pull/26235) | +| | [(flutter/flutter#26201) Prevent calls to view.uiIsolate.flutterExit on devices which do not support it](https://github.com/flutter/flutter/pull/26201) | +| | [(flutter/flutter#26107) Better error messages for flutter tool --dynamic flag.](https://github.com/flutter/flutter/pull/26107) | +| | [(flutter/flutter#26104) Put correct VM snapshot in APK when using cached engine](https://github.com/flutter/flutter/pull/26104) | +| | [(flutter/flutter#26039) Report hot reload statistics.](https://github.com/flutter/flutter/pull/26039) | +| | [(flutter/flutter#26084) Improve message when saving compilation training data](https://github.com/flutter/flutter/pull/26084) | +| | [(flutter/flutter#25863) Friendlier messages when using dynamic patching](https://github.com/flutter/flutter/pull/25863) | +| | [(flutter/flutter#25872) Optimize cocoapods logic in flutter doctor.](https://github.com/flutter/flutter/pull/25872) | +| | [(flutter/flutter#7314) Flutter crash on startup (metabug)](https://github.com/flutter/flutter/issues/7314) | +| | [(flutter/flutter#7313) Will want some way to validate cache files](https://github.com/flutter/flutter/issues/7313) | +| | [(flutter/flutter#7310) Don't time out during debugging](https://github.com/flutter/flutter/issues/7310) | +| | [(flutter/flutter#25796) Allow dynamic patches without a patch number.](https://github.com/flutter/flutter/pull/25796) | +| | [(flutter/flutter#25586) Report devfs stats](https://github.com/flutter/flutter/pull/25586) | +| | [(flutter/flutter#25645) Friendlier flags for Dart compilation training.](https://github.com/flutter/flutter/pull/25645) | +| | [(flutter/flutter#25479) Depend on the goldens repo through git.](https://github.com/flutter/flutter/pull/25479) | +| | [(flutter/flutter#25238) [OR] Update links for China help](https://github.com/flutter/flutter/pull/25238) | +| | [(flutter/flutter#24440) Adding support for android app bundle - Issue #17829](https://github.com/flutter/flutter/pull/24440) | +| | [(flutter/flutter#23531) [O] Remove many timeouts.](https://github.com/flutter/flutter/pull/23531) | +| | [(flutter/flutter#25646) Revert "[O] Remove many timeouts."](https://github.com/flutter/flutter/pull/25646) | +| | [(flutter/flutter#25631) Default baseline build options](https://github.com/flutter/flutter/pull/25631) | +| | [(flutter/flutter#25595) Don't parse APK unless explicitly requested](https://github.com/flutter/flutter/pull/25595) | +| | [(flutter/flutter#25576) Flutter tool support for building dynamic patches on Android](https://github.com/flutter/flutter/pull/25576) | +| | [(flutter/flutter#24580) Remove code signing special casing for Googlers round 2](https://github.com/flutter/flutter/pull/24580) | +| | [(flutter/flutter#23889) Flutter doctor error message lookup](https://github.com/flutter/flutter/pull/23889) | +| | [(flutter/flutter#25520) Fix flutter tool to actually honor --build-number/--build-name flags](https://github.com/flutter/flutter/pull/25520) | +| | [(flutter/flutter#25472) Read correct cached VM snapshot in dynamic mode (PRODUCT vs RELEASE)](https://github.com/flutter/flutter/pull/25472) | +| | [(flutter/flutter#25484) Fix gradle local.properties tests that were never excersized](https://github.com/flutter/flutter/pull/25484) | +| | [(flutter/flutter#25512) Fix failed assert when running `flutter test` with `--start-paused`](https://github.com/flutter/flutter/pull/25512) | +| | [(flutter/flutter#25440) don't warn for non-matching device discoverers](https://github.com/flutter/flutter/pull/25440) | +| | [(flutter/flutter#25470) Support Java 1.8](https://github.com/flutter/flutter/pull/25470) | +| | [(flutter/flutter#25443) fix the daemon device.getDevices call](https://github.com/flutter/flutter/pull/25443) | +| | [(flutter/flutter#25332) [fuchsia] Get Dart VM service ports from The Hub](https://github.com/flutter/flutter/pull/25332) | +| | [(flutter/flutter#25221) Support ANDROID_SDK_ROOT in addition to ANDROID_HOME](https://github.com/flutter/flutter/pull/25221) | +| | [(flutter/flutter#25301) Flutter tool support for automatic saving of JIT compilation trace](https://github.com/flutter/flutter/pull/25301) | +| | [(flutter/flutter#25344) Add fuchsia devices to daemon command](https://github.com/flutter/flutter/pull/25344) | +| | [(flutter/flutter#25303) Add ipv6 and observatory port support to the attach command](https://github.com/flutter/flutter/pull/25303) | +| | [(flutter/flutter#25288) Revert "Add ipv6 and observatory port support to the attach command."](https://github.com/flutter/flutter/pull/25288) | +| | [(flutter/flutter#25269) Make doctor output consistent between VS Code/IntelliJ/Android Studio when plugins are missing](https://github.com/flutter/flutter/pull/25269) | +| | [(flutter/flutter#24537) Add ipv6 and observatory port support to the attach command.](https://github.com/flutter/flutter/pull/24537) | +| | [(flutter/flutter#24515) Add some a basic debug stepping tests](https://github.com/flutter/flutter/pull/24515) | +| | [(flutter/flutter#25240) Revert "Ensure that cache dirs and files have appropriate permissions"](https://github.com/flutter/flutter/pull/25240) | +| | [(flutter/flutter#24953) Fuchsia multiple devices and target](https://github.com/flutter/flutter/pull/24953) | +| | [(flutter/flutter#25154) Don't require the AVD folder to exist in order to run `flutter emulators`](https://github.com/flutter/flutter/pull/25154) | +| | [(flutter/flutter#25058) ensure lastBuildTimestamp is set before early return](https://github.com/flutter/flutter/pull/25058) | +| | [(flutter/flutter#24632) Include error message in crash reports](https://github.com/flutter/flutter/pull/24632) | +| | [(flutter/flutter#24669) Ensure that cache dirs and files have appropriate permissions](https://github.com/flutter/flutter/pull/24669) | +| | [(flutter/flutter#24878) Add a flutter-attach entry point for fuchsia](https://github.com/flutter/flutter/pull/24878) | +| f: material design | 38 issues with this label | +| | [(flutter/flutter#25984) use RRect to draw avatar check on chip](https://github.com/flutter/flutter/pull/25984) | +| | [(flutter/flutter#23424) Teach drag start behaviors to DragGestureRecognizer](https://github.com/flutter/flutter/pull/23424) | +| | [(flutter/flutter#26209) Revert "Teach drag start behaviors to DragGestureRecognizer (#23424)"](https://github.com/flutter/flutter/pull/26209) | +| | [(flutter/flutter#26199) Fix tristate checkbox false to null transition, test ALL transitions](https://github.com/flutter/flutter/pull/26199) | +| | [(flutter/flutter#26021) Fix SliverAppBar title opacity and test all cases](https://github.com/flutter/flutter/pull/26021) | +| | [(flutter/flutter#26101) Fix a floating snapping SliverAppBar crash](https://github.com/flutter/flutter/pull/26101) | +| | [(flutter/flutter#26088) Fix typos introduced with the TextField.onTap PR, udpated debugFillProperties](https://github.com/flutter/flutter/pull/26088) | +| | [(flutter/flutter#26042) Update material spec references in BottomSheet et al., Scaffold](https://github.com/flutter/flutter/pull/26042) | +| | [(flutter/flutter#23118) Setting icon color to first ListTile in ExpansionTile. Fixes #23053](https://github.com/flutter/flutter/pull/23118) | +| | [(flutter/flutter#25799) Make LicensePage respect the notch](https://github.com/flutter/flutter/pull/25799) | +| | [(flutter/flutter#7318) ListItem should call out that it's intentionally fixed height](https://github.com/flutter/flutter/issues/7318) | +| | [(flutter/flutter#24736) [H] Provide some more locations for the FAB.](https://github.com/flutter/flutter/pull/24736) | +| | [(flutter/flutter#24816) [H] ClipPath.shape and related fixes](https://github.com/flutter/flutter/pull/24816) | +| | [(flutter/flutter#25718) Fix merge conflict.](https://github.com/flutter/flutter/pull/25718) | +| | [(flutter/flutter#24643) [H] Some minor tweaks to InputDecoration (mainly docs).](https://github.com/flutter/flutter/pull/24643) | +| | [(flutter/flutter#25585) Expose font fallback API in TextStyle, Roll engine 54a3577c0139..215ca1560088 (8 commits)](https://github.com/flutter/flutter/pull/25585) | +| | [(flutter/flutter#24457) Revise Android and iOS gestures on Material TextField](https://github.com/flutter/flutter/pull/24457) | +| | [(flutter/flutter#25573) Update DayPicker,DatePicker doc "see also" sections](https://github.com/flutter/flutter/pull/25573) | +| | [(flutter/flutter#25339) [Material] Theme-able TextStyles for AlertDialog](https://github.com/flutter/flutter/pull/25339) | +| | [(flutter/flutter#23759) Adds CupertinoTheme](https://github.com/flutter/flutter/pull/23759) | +| | [(flutter/flutter#25345) assert(elevation >= 0.0) and doc clarifications](https://github.com/flutter/flutter/pull/25345) | +| | [(flutter/flutter#24993) Add InputDecoration alignLabelWithHint parameter](https://github.com/flutter/flutter/pull/24993) | +| | [(flutter/flutter#25342) Revert "Revert "obscureText and enableInteractiveSelection defaults""](https://github.com/flutter/flutter/pull/25342) | +| | [(flutter/flutter#23919) Allow detection of taps on TabBar](https://github.com/flutter/flutter/pull/23919) | +| | [(flutter/flutter#24932) Fixed Typography null factory constructor](https://github.com/flutter/flutter/pull/24932) | +| | [(flutter/flutter#25384) Adds support for floating cursor](https://github.com/flutter/flutter/pull/25384) | +| | [(flutter/flutter#24999) Remove TextField.noMaxLength, use maxLength = -1 instead](https://github.com/flutter/flutter/pull/24999) | +| | [(flutter/flutter#25352) Revert "Adds support for floating cursor"](https://github.com/flutter/flutter/pull/25352) | +| | [(flutter/flutter#24449) Text field style merge](https://github.com/flutter/flutter/pull/24449) | +| | [(flutter/flutter#24169) [Material] Theme-able elevation on dialogs.](https://github.com/flutter/flutter/pull/24169) | +| | [(flutter/flutter#24587) Validate style in TextField](https://github.com/flutter/flutter/pull/24587) | +| | [(flutter/flutter#24976) Support TextField multi-line hint text #20941](https://github.com/flutter/flutter/pull/24976) | +| | [(flutter/flutter#25051) Do not fade out text for pinned & floating AppBar](https://github.com/flutter/flutter/pull/25051) | +| | [(flutter/flutter#24892) Handle a TabBarView special case: last tab deleted before animation ends](https://github.com/flutter/flutter/pull/24892) | +| | [(flutter/flutter#24635) TextFormField cursor params](https://github.com/flutter/flutter/pull/24635) | +| | [(flutter/flutter#24941) Update Switch doc: disabled state](https://github.com/flutter/flutter/pull/24941) | +| | [(flutter/flutter#25120) Replace deprecated link (to design-principles page) in comment](https://github.com/flutter/flutter/pull/25120) | +| | [(flutter/flutter#25091) Add animations to SliverAppBar doc](https://github.com/flutter/flutter/pull/25091) | +| team | 31 issues with this label | +| | [(flutter/flutter#26153) Remove the cc @Hixie from no-response template](https://github.com/flutter/flutter/pull/26153) | +| | [(flutter/flutter#25515) Write snippets index file when generating docs](https://github.com/flutter/flutter/pull/25515) | +| | [(flutter/flutter#25579) fix doc-comment snippets](https://github.com/flutter/flutter/pull/25579) | +| | [(flutter/flutter#25922) update lint list](https://github.com/flutter/flutter/pull/25922) | +| | [(flutter/flutter#26031) Clean gallery about page post-1.0](https://github.com/flutter/flutter/pull/26031) | +| | [(flutter/flutter#26030) Turn clipping on for Card Demo](https://github.com/flutter/flutter/pull/26030) | +| | [(flutter/flutter#26041) Update dartdoc to 0.27.0](https://github.com/flutter/flutter/pull/26041) | +| | [(flutter/flutter#26024) Workaround the Gradle crash due to non ASCII characters.](https://github.com/flutter/flutter/pull/26024) | +| | [(flutter/flutter#25514) fix typo](https://github.com/flutter/flutter/pull/25514) | +| | [(flutter/flutter#25995) Address code review comment.](https://github.com/flutter/flutter/pull/25995) | +| | [(flutter/flutter#26015) [fuchsia] Fix flutter_gallery BUILD.gn](https://github.com/flutter/flutter/pull/26015) | +| | [(flutter/flutter#25817) fix flutter run in dev/manual_tests](https://github.com/flutter/flutter/pull/25817) | +| | [(flutter/flutter#25857) Mark flutter_gallery__back_button_memory as flaky.](https://github.com/flutter/flutter/pull/25857) | +| | [(flutter/flutter#25854) Fix analyzer "prefer const" warning.](https://github.com/flutter/flutter/pull/25854) | +| | [(flutter/flutter#25798) remove early-stage from Gallery's About screen](https://github.com/flutter/flutter/pull/25798) | +| | [(flutter/flutter#25674) Updated Shrine demo](https://github.com/flutter/flutter/pull/25674) | +| | [(flutter/flutter#25642) Revert dependency upgrade to see if it helps with build times and APK size](https://github.com/flutter/flutter/pull/25642) | +| | [(flutter/flutter#23531) [O] Remove many timeouts.](https://github.com/flutter/flutter/pull/23531) | +| | [(flutter/flutter#25582) Add missing dependency to fix the build](https://github.com/flutter/flutter/pull/25582) | +| | [(flutter/flutter#25569) Reland: Update examples to match the new version of generated build.gradle (#25483)](https://github.com/flutter/flutter/pull/25569) | +| | [(flutter/flutter#25521) fix indentation in doc comments](https://github.com/flutter/flutter/pull/25521) | +| | [(flutter/flutter#25568) Fix the build](https://github.com/flutter/flutter/pull/25568) | +| | [(flutter/flutter#25563) Revert "Update examples to match the new version of generated build.gradle (#25483)"](https://github.com/flutter/flutter/pull/25563) | +| | [(flutter/flutter#25513) make "See also" sections uniform](https://github.com/flutter/flutter/pull/25513) | +| | [(flutter/flutter#25474) fix some formatting issues](https://github.com/flutter/flutter/pull/25474) | +| | [(flutter/flutter#25184) Add imports section to sample code templates, and more docs.](https://github.com/flutter/flutter/pull/25184) | +| | [(flutter/flutter#7227) Figure out why license script didn't pick up the license for the Ahem font](https://github.com/flutter/flutter/issues/7227) | +| | [(flutter/flutter#25416) try disabling flutter run test](https://github.com/flutter/flutter/pull/25416) | +| | [(flutter/flutter#25243) Allow snippets tool to be run from arbitrary CWDs](https://github.com/flutter/flutter/pull/25243) | +| | [(flutter/flutter#25178) Adds favicon to Dash/Zeal docset, adds OpenSearch metadata.](https://github.com/flutter/flutter/pull/25178) | +| | [(flutter/flutter#24890) Remove deprecated lint "prefer_bool_in_asserts".](https://github.com/flutter/flutter/pull/24890) | +| a: text input | 18 issues with this label | +| | [(flutter/flutter#23424) Teach drag start behaviors to DragGestureRecognizer](https://github.com/flutter/flutter/pull/23424) | +| | [(flutter/flutter#26209) Revert "Teach drag start behaviors to DragGestureRecognizer (#23424)"](https://github.com/flutter/flutter/pull/26209) | +| | [(flutter/flutter#24779) Skip formatters if text has not changed](https://github.com/flutter/flutter/pull/24779) | +| | [(flutter/flutter#25055) Include cursor in textfield intrinsic width measurement](https://github.com/flutter/flutter/pull/25055) | +| | [(flutter/flutter#24457) Revise Android and iOS gestures on Material TextField](https://github.com/flutter/flutter/pull/24457) | +| | [(flutter/flutter#25229) Right aligned backspace bug](https://github.com/flutter/flutter/pull/25229) | +| | [(flutter/flutter#25237) Fix typo](https://github.com/flutter/flutter/pull/25237) | +| | [(flutter/flutter#24797) Iterate through potential grapheme cluster lengths in text painter](https://github.com/flutter/flutter/pull/24797) | +| | [(flutter/flutter#25473) TextField.onChanged() doc update](https://github.com/flutter/flutter/pull/25473) | +| | [(flutter/flutter#25342) Revert "Revert "obscureText and enableInteractiveSelection defaults""](https://github.com/flutter/flutter/pull/25342) | +| | [(flutter/flutter#24527) obscureText and enableInteractiveSelection defaults](https://github.com/flutter/flutter/pull/24527) | +| | [(flutter/flutter#25335) Revert "obscureText and enableInteractiveSelection defaults"](https://github.com/flutter/flutter/pull/25335) | +| | [(flutter/flutter#25384) Adds support for floating cursor](https://github.com/flutter/flutter/pull/25384) | +| | [(flutter/flutter#25390) Revert "drop/restore focus when app becomes invisible/visible"](https://github.com/flutter/flutter/pull/25390) | +| | [(flutter/flutter#24744) drop/restore focus when app becomes invisible/visible](https://github.com/flutter/flutter/pull/24744) | +| | [(flutter/flutter#24761) Adds support for floating cursor](https://github.com/flutter/flutter/pull/24761) | +| | [(flutter/flutter#25352) Revert "Adds support for floating cursor"](https://github.com/flutter/flutter/pull/25352) | +| | [(flutter/flutter#24635) TextFormField cursor params](https://github.com/flutter/flutter/pull/24635) | +| d: api docs | 17 issues with this label | +| | [(flutter/flutter#25515) Write snippets index file when generating docs](https://github.com/flutter/flutter/pull/25515) | +| | [(flutter/flutter#25790) Clarify doc for AnimatedContainer](https://github.com/flutter/flutter/pull/25790) | +| | [(flutter/flutter#26089) Explain that BoxDecoration doesn't do clip.](https://github.com/flutter/flutter/pull/26089) | +| | [(flutter/flutter#26042) Update material spec references in BottomSheet et al., Scaffold](https://github.com/flutter/flutter/pull/26042) | +| | [(flutter/flutter#26041) Update dartdoc to 0.27.0](https://github.com/flutter/flutter/pull/26041) | +| | [(flutter/flutter#25992) Add docs to TextStyle for fontFamilyFallback/Custom font fallback](https://github.com/flutter/flutter/pull/25992) | +| | [(flutter/flutter#25604) no period after an alone reference in see also section](https://github.com/flutter/flutter/pull/25604) | +| | [(flutter/flutter#25584) Fix material reference in CupertinoPicker doc](https://github.com/flutter/flutter/pull/25584) | +| | [(flutter/flutter#25573) Update DayPicker,DatePicker doc "see also" sections](https://github.com/flutter/flutter/pull/25573) | +| | [(flutter/flutter#25477) TransitionRoute.canTransitionFrom,To() doc update](https://github.com/flutter/flutter/pull/25477) | +| | [(flutter/flutter#25237) Fix typo](https://github.com/flutter/flutter/pull/25237) | +| | [(flutter/flutter#25473) TextField.onChanged() doc update](https://github.com/flutter/flutter/pull/25473) | +| | [(flutter/flutter#25243) Allow snippets tool to be run from arbitrary CWDs](https://github.com/flutter/flutter/pull/25243) | +| | [(flutter/flutter#25120) Replace deprecated link (to design-principles page) in comment](https://github.com/flutter/flutter/pull/25120) | +| | [(flutter/flutter#25096) Change network image URL in doc](https://github.com/flutter/flutter/pull/25096) | +| | [(flutter/flutter#25091) Add animations to SliverAppBar doc](https://github.com/flutter/flutter/pull/25091) | +| | [(flutter/flutter#25003) Fix typo in documentation](https://github.com/flutter/flutter/pull/25003) | +| a: tests | 15 issues with this label | +| | [(flutter/flutter#25888) Extract TestBorder into a utility file](https://github.com/flutter/flutter/pull/25888) | +| | [(flutter/flutter#25817) fix flutter run in dev/manual_tests](https://github.com/flutter/flutter/pull/25817) | +| | [(flutter/flutter#25857) Mark flutter_gallery__back_button_memory as flaky.](https://github.com/flutter/flutter/pull/25857) | +| | [(flutter/flutter#25674) Updated Shrine demo](https://github.com/flutter/flutter/pull/25674) | +| | [(flutter/flutter#25678) Pin the goldens repo to a specific commit in the android_views test.](https://github.com/flutter/flutter/pull/25678) | +| | [(flutter/flutter#25479) Depend on the goldens repo through git.](https://github.com/flutter/flutter/pull/25479) | +| | [(flutter/flutter#23531) [O] Remove many timeouts.](https://github.com/flutter/flutter/pull/23531) | +| | [(flutter/flutter#25646) Revert "[O] Remove many timeouts."](https://github.com/flutter/flutter/pull/25646) | +| | [(flutter/flutter#25568) Fix the build](https://github.com/flutter/flutter/pull/25568) | +| | [(flutter/flutter#25489) Video demo instrumentation](https://github.com/flutter/flutter/pull/25489) | +| | [(flutter/flutter#25381) Add cull opacity perf test to device lab](https://github.com/flutter/flutter/pull/25381) | +| | [(flutter/flutter#25482) Mark flaky tests as such](https://github.com/flutter/flutter/pull/25482) | +| | [(flutter/flutter#25305) Use stderr instead of stdout to contain errors in flutter attach test](https://github.com/flutter/flutter/pull/25305) | +| | [(flutter/flutter#25380) Revert "Use stderr instead of stdout to contain errors in flutter attach test"](https://github.com/flutter/flutter/pull/25380) | +| | [(flutter/flutter#24930) Run flutter tests through mini test engine when run directly (flutter run -t test_file)](https://github.com/flutter/flutter/pull/24930) | +| team: gallery | 13 issues with this label | +| | [(flutter/flutter#26209) Revert "Teach drag start behaviors to DragGestureRecognizer (#23424)"](https://github.com/flutter/flutter/pull/26209) | +| | [(flutter/flutter#26031) Clean gallery about page post-1.0](https://github.com/flutter/flutter/pull/26031) | +| | [(flutter/flutter#26030) Turn clipping on for Card Demo](https://github.com/flutter/flutter/pull/26030) | +| | [(flutter/flutter#26015) [fuchsia] Fix flutter_gallery BUILD.gn](https://github.com/flutter/flutter/pull/26015) | +| | [(flutter/flutter#25857) Mark flutter_gallery__back_button_memory as flaky.](https://github.com/flutter/flutter/pull/25857) | +| | [(flutter/flutter#25798) remove early-stage from Gallery's About screen](https://github.com/flutter/flutter/pull/25798) | +| | [(flutter/flutter#25674) Updated Shrine demo](https://github.com/flutter/flutter/pull/25674) | +| | [(flutter/flutter#25642) Revert dependency upgrade to see if it helps with build times and APK size](https://github.com/flutter/flutter/pull/25642) | +| | [(flutter/flutter#25582) Add missing dependency to fix the build](https://github.com/flutter/flutter/pull/25582) | +| | [(flutter/flutter#25563) Revert "Update examples to match the new version of generated build.gradle (#25483)"](https://github.com/flutter/flutter/pull/25563) | +| | [(flutter/flutter#23759) Adds CupertinoTheme](https://github.com/flutter/flutter/pull/23759) | +| | [(flutter/flutter#25489) Video demo instrumentation](https://github.com/flutter/flutter/pull/25489) | +| | [(flutter/flutter#25186) Temporarily add back filtered bintray ExoPlayer repository](https://github.com/flutter/flutter/pull/25186) | +| f: cupertino | 10 issues with this label | +| | [(flutter/flutter#23424) Teach drag start behaviors to DragGestureRecognizer](https://github.com/flutter/flutter/pull/23424) | +| | [(flutter/flutter#26209) Revert "Teach drag start behaviors to DragGestureRecognizer (#23424)"](https://github.com/flutter/flutter/pull/26209) | +| | [(flutter/flutter#24457) Revise Android and iOS gestures on Material TextField](https://github.com/flutter/flutter/pull/24457) | +| | [(flutter/flutter#25584) Fix material reference in CupertinoPicker doc](https://github.com/flutter/flutter/pull/25584) | +| | [(flutter/flutter#25593) Let CupertinoTabScaffold handle keyboard insets too](https://github.com/flutter/flutter/pull/25593) | +| | [(flutter/flutter#23759) Adds CupertinoTheme](https://github.com/flutter/flutter/pull/23759) | +| | [(flutter/flutter#25474) fix some formatting issues](https://github.com/flutter/flutter/pull/25474) | +| | [(flutter/flutter#25384) Adds support for floating cursor](https://github.com/flutter/flutter/pull/25384) | +| | [(flutter/flutter#25352) Revert "Adds support for floating cursor"](https://github.com/flutter/flutter/pull/25352) | +| | [(flutter/flutter#25183) Add navigatorKey to CupertinoTabView](https://github.com/flutter/flutter/pull/25183) | +| t: gradle | 9 issues with this label | +| | [(flutter/flutter#25796) Allow dynamic patches without a patch number.](https://github.com/flutter/flutter/pull/25796) | +| | [(flutter/flutter#24440) Adding support for android app bundle - Issue #17829](https://github.com/flutter/flutter/pull/24440) | +| | [(flutter/flutter#23531) [O] Remove many timeouts.](https://github.com/flutter/flutter/pull/23531) | +| | [(flutter/flutter#25576) Flutter tool support for building dynamic patches on Android](https://github.com/flutter/flutter/pull/25576) | +| | [(flutter/flutter#25569) Reland: Update examples to match the new version of generated build.gradle (#25483)](https://github.com/flutter/flutter/pull/25569) | +| | [(flutter/flutter#25563) Revert "Update examples to match the new version of generated build.gradle (#25483)"](https://github.com/flutter/flutter/pull/25563) | +| | [(flutter/flutter#25520) Fix flutter tool to actually honor --build-number/--build-name flags](https://github.com/flutter/flutter/pull/25520) | +| | [(flutter/flutter#25484) Fix gradle local.properties tests that were never excersized](https://github.com/flutter/flutter/pull/25484) | +| | [(flutter/flutter#25470) Support Java 1.8](https://github.com/flutter/flutter/pull/25470) | +| d: examples | 6 issues with this label | +| | [(flutter/flutter#23424) Teach drag start behaviors to DragGestureRecognizer](https://github.com/flutter/flutter/pull/23424) | +| | [(flutter/flutter#26209) Revert "Teach drag start behaviors to DragGestureRecognizer (#23424)"](https://github.com/flutter/flutter/pull/26209) | +| | [(flutter/flutter#25483) Update examples to match the new version of generated build.gradle](https://github.com/flutter/flutter/pull/25483) | +| | [(flutter/flutter#25569) Reland: Update examples to match the new version of generated build.gradle (#25483)](https://github.com/flutter/flutter/pull/25569) | +| | [(flutter/flutter#25563) Revert "Update examples to match the new version of generated build.gradle (#25483)"](https://github.com/flutter/flutter/pull/25563) | +| | [(flutter/flutter#25300) Remove uses-material-design from hello_world example](https://github.com/flutter/flutter/pull/25300) | +| ▣ platform-android | 5 issues with this label | +| | [(flutter/flutter#7315) Android Emulator does not show box shadows](https://github.com/flutter/flutter/issues/7315) | +| | [(flutter/flutter#24440) Adding support for android app bundle - Issue #17829](https://github.com/flutter/flutter/pull/24440) | +| | [(flutter/flutter#25221) Support ANDROID_SDK_ROOT in addition to ANDROID_HOME](https://github.com/flutter/flutter/pull/25221) | +| | [(flutter/flutter#25154) Don't require the AVD folder to exist in order to run `flutter emulators`](https://github.com/flutter/flutter/pull/25154) | +| f: gestures | 4 issues with this label | +| | [(flutter/flutter#23424) Teach drag start behaviors to DragGestureRecognizer](https://github.com/flutter/flutter/pull/23424) | +| | [(flutter/flutter#26209) Revert "Teach drag start behaviors to DragGestureRecognizer (#23424)"](https://github.com/flutter/flutter/pull/26209) | +| | [(flutter/flutter#25792) Actively reject UiKitView gestures.](https://github.com/flutter/flutter/pull/25792) | +| | [(flutter/flutter#24554) Adds force press gesture detector and recognizer](https://github.com/flutter/flutter/pull/24554) | +| ○ platform-fuchsia | 4 issues with this label | +| | [(flutter/flutter#26249) Revert "Replace netls and netaddr with dev_finder"](https://github.com/flutter/flutter/pull/26249) | +| | [(flutter/flutter#26090) Replace netls and netaddr with dev_finder](https://github.com/flutter/flutter/pull/26090) | +| | [(flutter/flutter#26201) Prevent calls to view.uiIsolate.flutterExit on devices which do not support it](https://github.com/flutter/flutter/pull/26201) | +| | [(flutter/flutter#25332) [fuchsia] Get Dart VM service ports from The Hub](https://github.com/flutter/flutter/pull/25332) | +| a: animation | 3 issues with this label | +| | [(flutter/flutter#25788) Add Robert Penner’s easing functions](https://github.com/flutter/flutter/pull/25788) | +| | [(flutter/flutter#25790) Clarify doc for AnimatedContainer](https://github.com/flutter/flutter/pull/25790) | +| | [(flutter/flutter#25474) fix some formatting issues](https://github.com/flutter/flutter/pull/25474) | +| t: hot reload | 3 issues with this label | +| | [(flutter/flutter#26039) Report hot reload statistics.](https://github.com/flutter/flutter/pull/26039) | +| | [(flutter/flutter#7314) Flutter crash on startup (metabug)](https://github.com/flutter/flutter/issues/7314) | +| | [(flutter/flutter#7307) Sending SIGUSR1 and pressing 'R' simultaneously locks up the flutter tool](https://github.com/flutter/flutter/issues/7307) | +| a: typography | 2 issues with this label | +| | [(flutter/flutter#25585) Expose font fallback API in TextStyle, Roll engine 54a3577c0139..215ca1560088 (8 commits)](https://github.com/flutter/flutter/pull/25585) | +| | [(flutter/flutter#24797) Iterate through potential grapheme cluster lengths in text painter](https://github.com/flutter/flutter/pull/24797) | +| customer: fuchsia | 2 issues with this label | +| | [(flutter/flutter#25344) Add fuchsia devices to daemon command](https://github.com/flutter/flutter/pull/25344) | +| | [(flutter/flutter#24953) Fuchsia multiple devices and target](https://github.com/flutter/flutter/pull/24953) | +| d: website - content | 2 issues with this labe | +| | [(flutter/flutter#7317) flutter/website uses a very old version of jekyll (2.4.0) which is incompatible with Ruby 2.4](https://github.com/flutter/flutter/issues/7317) | +| | [(flutter/flutter#7306) Broken links on website](https://github.com/flutter/flutter/issues/7306) | +| e: device-specific | 2 issues with this label | +| | [(flutter/flutter#7315) Android Emulator does not show box shadows](https://github.com/flutter/flutter/issues/7315) | +| engine | 2 issues with this label | +| | [(flutter/flutter#7227) Figure out why license script didn't pick up the license for the Ahem font](https://github.com/flutter/flutter/issues/7227) | +| f: date/time picker | 2 issues with this label | +| | [(flutter/flutter#23424) Teach drag start behaviors to DragGestureRecognizer](https://github.com/flutter/flutter/pull/23424) | +| | [(flutter/flutter#25573) Update DayPicker,DatePicker doc "see also" sections](https://github.com/flutter/flutter/pull/25573) | +| f: scrolling | 2 issues with this label | +| | [(flutter/flutter#23424) Teach drag start behaviors to DragGestureRecognizer](https://github.com/flutter/flutter/pull/23424) | +| | [(flutter/flutter#26209) Revert "Teach drag start behaviors to DragGestureRecognizer (#23424)"](https://github.com/flutter/flutter/pull/26209) | +| severe: crash | 1 issue with this label | +| | [(flutter/flutter#7314) Flutter crash on startup (metabug)](https://github.com/flutter/flutter/issues/7314) | +| t: flutter doctor | 2 issues with this label | +| | [(flutter/flutter#23889) Flutter doctor error message lookup](https://github.com/flutter/flutter/pull/23889) | +| | [(flutter/flutter#25269) Make doctor output consistent between VS Code/IntelliJ/Android Studio when plugins are missing](https://github.com/flutter/flutter/pull/25269) | +| waiting for tree to go green | 2 issues with this label | +| | [(flutter/flutter#25159) fix #25143 Successive calls to `precacheImage()` throw an exception](https://github.com/flutter/flutter/pull/25159) | +| | [(flutter/flutter#25872) Optimize cocoapods logic in flutter doctor.](https://github.com/flutter/flutter/pull/25872) | +| ⌺‬ platform-ios | 2 issues with this label | +| | [(flutter/flutter#25872) Optimize cocoapods logic in flutter doctor.](https://github.com/flutter/flutter/pull/25872) | +| | [(flutter/flutter#24580) Remove code signing special casing for Googlers round 2](https://github.com/flutter/flutter/pull/24580) | +| a: debugging | 1 issue with this label | +| | [(flutter/flutter#24515) Add some a basic debug stepping tests](https://github.com/flutter/flutter/pull/24515) | +| a: internationalization | 1 issue with this label | +| | [(flutter/flutter#25394) Update localizations](https://github.com/flutter/flutter/pull/25394) | +| a: platform-views | 1 issue with this label | +| | [(flutter/flutter#25792) Actively reject UiKitView gestures.](https://github.com/flutter/flutter/pull/25792) | +| a:bug | 1 issue with this label | +| | [(gradle/gradle#3117) Gradle Build daemon crashes if the environment variables contain non-ASCII characters](https://github.com/gradle/gradle/issues/3117) | +| cla: no | 1 issue with this label | +| | [(flutter/flutter#24440) Adding support for android app bundle - Issue #17829](https://github.com/flutter/flutter/pull/24440) | +| customer: dream (g3) | 1 issue with this label | +| | [(flutter/flutter#24537) Add ipv6 and observatory port support to the attach command.](https://github.com/flutter/flutter/pull/24537) | +| customer: gold | 1 issue with this label | +| | [(flutter/flutter#25872) Optimize cocoapods logic in flutter doctor.](https://github.com/flutter/flutter/pull/25872) | +| dependency: skia | 1 issue with this label | +| | [(flutter/flutter#7315) Android Emulator does not show box shadows](https://github.com/flutter/flutter/issues/7315) | +| f: routes | 1 issue with this label | +| | [(flutter/flutter#25477) TransitionRoute.canTransitionFrom,To() doc update](https://github.com/flutter/flutter/pull/25477) | +| from:contributor | 1 issue with this label | +| | [(gradle/gradle#3117) Gradle Build daemon crashes if the environment variables contain non-ASCII characters](https://github.com/gradle/gradle/issues/3117) | +| p: framework | 1 issue with this label | +| | [(flutter/flutter#7312) Support Swift in ios template project](https://github.com/flutter/flutter/issues/7312) | +| p: tooling | 1 issue with this label | +| | [(flutter/flutter#7312) Support Swift in ios template project](https://github.com/flutter/flutter/issues/7312) | +| plugin | 1 issue with this label | +| | [(flutter/flutter#7312) Support Swift in ios template project](https://github.com/flutter/flutter/issues/7312) | +| severe: API break | 1 issue with this label | +| | [(flutter/flutter#7318) ListItem should call out that it's intentionally fixed height](https://github.com/flutter/flutter/issues/7318) | +| severe: performance | 1 issue with this label | +| | [(flutter/flutter#25381) Add cull opacity perf test to device lab](https://github.com/flutter/flutter/pull/25381) | +| t: flutter driver | 1 issue with this label | +| | [(flutter/flutter#25646) Revert "[O] Remove many timeouts."](https://github.com/flutter/flutter/pull/25646) | + +## In the plugins repository +The following issues were addressed in 426 commits. + +| PR | Summary | +|---|---| +| [flutter/plugins#691](https://github.com/flutter/plugins/pull/691) | Fix cloud functions podspec. | +| [flutter/plugins#956](https://github.com/flutter/plugins/pull/956) | Make the description for webview_flutter longer. | +| [flutter/plugins#949](https://github.com/flutter/plugins/pull/949) | Fixes: 'webview_flutter/WebviewFlutterPlugin.h' file not found | +| [flutter/plugins#375](https://github.com/flutter/plugins/pull/375) | add a dynamic get method to shared_preferences | +| [flutter/plugins#946](https://github.com/flutter/plugins/pull/946) | [google_maps_flutter] Relax Flutter version requirement to 0.11.9 | +| [flutter/plugins#945](https://github.com/flutter/plugins/pull/945) | Bump maps plugin version. | +| [flutter/plugins#381](https://github.com/flutter/plugins/pull/381) | Make video plugin ready for republication | +| [flutter/plugins#942](https://github.com/flutter/plugins/pull/942) | Camera uses the device orientation on Android | +| [flutter/plugins#943](https://github.com/flutter/plugins/pull/943) | Keep a reference to the plugin registrar in `FLTGoogleMapController`. | +| [flutter/plugins#940](https://github.com/flutter/plugins/pull/940) | Set a minimal Flutter version for the webview plugin. | +| [flutter/plugins#939](https://github.com/flutter/plugins/pull/939) | Bump google_maps_flutter's version to 0.0.3. | +| [flutter/plugins#938](https://github.com/flutter/plugins/pull/938) | Bring back the google_maps_flutter pub badge. | +| [flutter/plugins#937](https://github.com/flutter/plugins/pull/937) | Don't export dart:async by the Google Maps plugin. | +| [flutter/plugins#935](https://github.com/flutter/plugins/pull/935) | Remove unused map id fields. | +| [flutter/plugins#382](https://github.com/flutter/plugins/pull/382) | Camera: Improve ressource cleanup on Android | +| [flutter/plugins#933](https://github.com/flutter/plugins/pull/933) | Update the IAP README | +| [flutter/plugins#932](https://github.com/flutter/plugins/pull/932) | Bump google_maps_flutter version to 0.0.2 (pre release). | +| [flutter/plugins#928](https://github.com/flutter/plugins/pull/928) | Introduce credentials to firebase_auth | +| [flutter/plugins#384](https://github.com/flutter/plugins/pull/384) | Camera: Avoid capture double result | +| [flutter/plugins#924](https://github.com/flutter/plugins/pull/924) | Adding closeWebView feature to url_launcher | +| [flutter/plugins#925](https://github.com/flutter/plugins/pull/925) | Delete reference to the pub plugin | +| [flutter/plugins#385](https://github.com/flutter/plugins/pull/385) | Enable swift apps depending on plugins with static dependencies | +| [flutter/plugins#922](https://github.com/flutter/plugins/pull/922) | [android_alarm_manager] bump firebase_auth dependencies | +| [flutter/plugins#920](https://github.com/flutter/plugins/pull/920) | Update Google Maps Plugin README. | +| [flutter/plugins#775](https://github.com/flutter/plugins/pull/775) | Fixes error handling in firebase_auth on Android and iOS | +| [flutter/plugins#915](https://github.com/flutter/plugins/pull/915) | Set all gradle-wrapper versions to 4.10.2 | +| [flutter/plugins#921](https://github.com/flutter/plugins/pull/921) | Use context() instead of activity() | +| [flutter/plugins#919](https://github.com/flutter/plugins/pull/919) | docs: Improves READMEs styles | +| [flutter/plugins#916](https://github.com/flutter/plugins/pull/916) | Upgrade Android Gradle Plugin to 3.2.1 | +| [flutter/plugins#914](https://github.com/flutter/plugins/pull/914) | [webview_flutter] Don't static import classes. | +| [flutter/plugins#913](https://github.com/flutter/plugins/pull/913) | reformat FirebaseAuthPlugin.m | +| [flutter/plugins#912](https://github.com/flutter/plugins/pull/912) | Update firebase_auth version for release | +| [flutter/plugins#907](https://github.com/flutter/plugins/pull/907) | [firebase_auth] Adding support for reauthenticate. | +| [flutter/plugins#908](https://github.com/flutter/plugins/pull/908) | [video_player] ExoPlayer 2.9.1, Android 9, Demo fixes | +| [flutter/plugins#911](https://github.com/flutter/plugins/pull/911) | Shuffle text selection TODOs. | +| [flutter/plugins#910](https://github.com/flutter/plugins/pull/910) | Don't depend on the Android support library in google_maps_flutter. | +| [flutter/plugins#898](https://github.com/flutter/plugins/pull/898) | Adding My Location parameter to the Google Maps plugin | +| [flutter/plugins#393](https://github.com/flutter/plugins/pull/393) | Fix Dart 2 type error in share plugin | +| [flutter/plugins#906](https://github.com/flutter/plugins/pull/906) | Update location_background | +| [flutter/plugins#903](https://github.com/flutter/plugins/pull/903) | [firebase_auth] adding return to verifyPhoneNumber | +| [flutter/plugins#899](https://github.com/flutter/plugins/pull/899) | Fix null language code and no detected text bug | +| [flutter/plugins#875](https://github.com/flutter/plugins/pull/875) | [firebase_messaging] adding support for deleteInstanceId and setAutoInitEnabled | +| [flutter/plugins#872](https://github.com/flutter/plugins/pull/872) | Fix crash when repeating detection | +| [flutter/plugins#891](https://github.com/flutter/plugins/pull/891) | Increase play-services-auth dependency | +| [flutter/plugins#880](https://github.com/flutter/plugins/pull/880) | Update docs/example for AdMob | +| [flutter/plugins#394](https://github.com/flutter/plugins/pull/394) | Fix Dart 2 type error in package_info | +| [flutter/plugins#395](https://github.com/flutter/plugins/pull/395) | Fix Dart 2 type error in local_auth | +| [flutter/plugins#890](https://github.com/flutter/plugins/pull/890) | Initial iOS implementation for webview_flutter. | +| [flutter/plugins#888](https://github.com/flutter/plugins/pull/888) | [firebase_analytics] Allow setUserID input to be null | +| [flutter/plugins#396](https://github.com/flutter/plugins/pull/396) | Fix Dart 2 type errors in device_info | +| [flutter/plugins#780](https://github.com/flutter/plugins/pull/780) | Set iOS deployment target to 8.0, fixes compilation errors | +| [flutter/plugins#777](https://github.com/flutter/plugins/pull/777) | Resolved compiler warnings in CloudFirestorePlugin.m | +| [flutter/plugins#859](https://github.com/flutter/plugins/pull/859) | Change google-services.json and GoogleService-Info.plist of example | +| [flutter/plugins#399](https://github.com/flutter/plugins/pull/399) | Fix Dart 2 type errors in firebase plugins | +| [flutter/plugins#862](https://github.com/flutter/plugins/pull/862) | Surpress unchecked warnings | +| [flutter/plugins#889](https://github.com/flutter/plugins/pull/889) | Run cleartoken task in background | +| [flutter/plugins#400](https://github.com/flutter/plugins/pull/400) | Fix Dart 2 type errors in cloud_firestore | +| [flutter/plugins#783](https://github.com/flutter/plugins/pull/783) | Allow quick_actions to register more than once | +| [flutter/plugins#882](https://github.com/flutter/plugins/pull/882) | Only update state for the registrar's activity | +| [flutter/plugins#401](https://github.com/flutter/plugins/pull/401) | Fix Dart 2 type errors in firebase_admob | +| [flutter/plugins#881](https://github.com/flutter/plugins/pull/881) | Update gradle dependencies. | +| [flutter/plugins#865](https://github.com/flutter/plugins/pull/865) | Bump firebase_auth version | +| [flutter/plugins#867](https://github.com/flutter/plugins/pull/867) | Make FirebaseApp final/private and change way to get auth instance | +| [flutter/plugins#877](https://github.com/flutter/plugins/pull/877) | Camera version bump for #689 | +| [flutter/plugins#689](https://github.com/flutter/plugins/pull/689) | Fix preview and video size with satisfying conditions of multiple outputs. | +| [flutter/plugins#785](https://github.com/flutter/plugins/pull/785) | Update example with interactable link | +| [flutter/plugins#824](https://github.com/flutter/plugins/pull/824) | Use METHOD value instead of SIGN_UP_METHOD | +| [flutter/plugins#869](https://github.com/flutter/plugins/pull/869) | [firebase_messaging] changing getToken to rely on platform's getToken (2) | +| [flutter/plugins#868](https://github.com/flutter/plugins/pull/868) | Rev version | +| [flutter/plugins#873](https://github.com/flutter/plugins/pull/873) | Get rid of unneeded Firebase import | +| [flutter/plugins#781](https://github.com/flutter/plugins/pull/781) | FirebaseAuth multi app support | +| [flutter/plugins#858](https://github.com/flutter/plugins/pull/858) | enable lint prefer_void_to_null | +| [flutter/plugins#773](https://github.com/flutter/plugins/pull/773) | Fix a crash in the snapshot callback | +| [flutter/plugins#404](https://github.com/flutter/plugins/pull/404) | Exposing GoogleSignIn Delegate as an interface | +| [flutter/plugins#765](https://github.com/flutter/plugins/pull/765) | Timestamps firestore | +| [flutter/plugins#407](https://github.com/flutter/plugins/pull/407) | Fix url_launcher for iOS <10 | +| [flutter/plugins#759](https://github.com/flutter/plugins/pull/759) | Correct usage of StreamBuilder | +| [flutter/plugins#857](https://github.com/flutter/plugins/pull/857) | Use exoplayer's prefered API for MediaSources | +| [flutter/plugins#813](https://github.com/flutter/plugins/pull/813) | video_player: Fixed null exception when file has no width or height. | +| [flutter/plugins#853](https://github.com/flutter/plugins/pull/853) | Change android invites dependency to dynamic links | +| [flutter/plugins#408](https://github.com/flutter/plugins/pull/408) | Fix new formatting errors | +| [flutter/plugins#818](https://github.com/flutter/plugins/pull/818) | remove unnecessary new from samples | +| [flutter/plugins#828](https://github.com/flutter/plugins/pull/828) | Reformat the marker id getter comment. | +| [flutter/plugins#845](https://github.com/flutter/plugins/pull/845) | Add biometry type detection to local_auth plugin | +| [flutter/plugins#843](https://github.com/flutter/plugins/pull/843) | Add clearMarkers() functionality to GoogleMapController | +| [flutter/plugins#406](https://github.com/flutter/plugins/pull/406) | Firestore: Allow null document snapshot data when document does not exist | +| [flutter/plugins#414](https://github.com/flutter/plugins/pull/414) | Remove Gradle artifacts from repo | +| [flutter/plugins#847](https://github.com/flutter/plugins/pull/847) | Bump firebase_performance Android dependencies to latest. | +| [flutter/plugins#840](https://github.com/flutter/plugins/pull/840) | Bump firebase_dynamic_links Android dependencies | +| [flutter/plugins#841](https://github.com/flutter/plugins/pull/841) | bump firebase_messaging android dependencies to latest | +| [flutter/plugins#412](https://github.com/flutter/plugins/pull/412) | Set SDK constraints to match Flutter beta | +| [flutter/plugins#774](https://github.com/flutter/plugins/pull/774) | Update firebase_ml_vision for latest Firebase MLKit API | +| [flutter/plugins#417](https://github.com/flutter/plugins/pull/417) | Fix Dart 2 runtime error in the camera plugin | +| [flutter/plugins#835](https://github.com/flutter/plugins/pull/835) | Bump firebase_admob Android dependencies to latest | +| [flutter/plugins#834](https://github.com/flutter/plugins/pull/834) | Bump firebase_storage Android dependencies to latest | +| [flutter/plugins#420](https://github.com/flutter/plugins/pull/420) | Fixed deprecation warnings | +| [flutter/plugins#829](https://github.com/flutter/plugins/pull/829) | bump cloud_firestore android dependencies | +| [flutter/plugins#830](https://github.com/flutter/plugins/pull/830) | Bump android dependencies to latest | +| [flutter/plugins#825](https://github.com/flutter/plugins/pull/825) | fix CI | +| [flutter/plugins#786](https://github.com/flutter/plugins/pull/786) | Added getter for Marker ID in maps package | +| [flutter/plugins#821](https://github.com/flutter/plugins/pull/821) | Bump firebase_core Android dependencies to latest | +| [flutter/plugins#419](https://github.com/flutter/plugins/pull/419) | Fix a Dart 2 runtime cast failure in firebase_database test | +| [flutter/plugins#697](https://github.com/flutter/plugins/pull/697) | adding support auth link for Twitter | +| [flutter/plugins#812](https://github.com/flutter/plugins/pull/812) | Set http version to be compatible with flutter_test | +| [flutter/plugins#639](https://github.com/flutter/plugins/pull/639) | Added android device id to android device info | +| [flutter/plugins#810](https://github.com/flutter/plugins/pull/810) | Set http version to be compatible with flutter_test | +| [flutter/plugins#811](https://github.com/flutter/plugins/pull/811) | Add page names for firebaseopensource.com | +| [flutter/plugins#425](https://github.com/flutter/plugins/pull/425) | Fix Dart 2 type error and deprecation | +| [flutter/plugins#808](https://github.com/flutter/plugins/pull/808) | Bump version for #795 | +| [flutter/plugins#422](https://github.com/flutter/plugins/pull/422) | Incremental Build Script | +| [flutter/plugins#805](https://github.com/flutter/plugins/pull/805) | Handle user cancel when signing in | +| [flutter/plugins#802](https://github.com/flutter/plugins/pull/802) | Bump camera version | +| [flutter/plugins#796](https://github.com/flutter/plugins/pull/796) | add option to enable javascript in android webview | +| [flutter/plugins#804](https://github.com/flutter/plugins/pull/804) | Allow latest version for MLVision on ios | +| [flutter/plugins#410](https://github.com/flutter/plugins/pull/410) | add fetchProvidersForEmail wrapper | +| [flutter/plugins#800](https://github.com/flutter/plugins/pull/800) | Move SystemChrome update to platform side | +| [flutter/plugins#799](https://github.com/flutter/plugins/pull/799) | Add ability to clear auth cache on Android | +| [flutter/plugins#678](https://github.com/flutter/plugins/pull/678) | Add updatePassword functionality to firebase_auth plugin. | +| [flutter/plugins#798](https://github.com/flutter/plugins/pull/798) | Ban string values which clash with special prefixes | +| [flutter/plugins#797](https://github.com/flutter/plugins/pull/797) | use WidgetsBindingObserver as a mixin | +| [flutter/plugins#427](https://github.com/flutter/plugins/pull/427) | bump minor version and add changelog entry | +| [flutter/plugins#771](https://github.com/flutter/plugins/pull/771) | Add support for handling UserRecoverableAuthException | +| [flutter/plugins#701](https://github.com/flutter/plugins/pull/701) | Enable lint unnecessary_new | +| [flutter/plugins#779](https://github.com/flutter/plugins/pull/779) | Mark textureId as @visibleForTesting. | +| [flutter/plugins#769](https://github.com/flutter/plugins/pull/769) | Update VideoPlayer widget when the attached controller changes | +| [flutter/plugins#402](https://github.com/flutter/plugins/pull/402) | AdSizes for AdMob banner ads | +| [flutter/plugins#755](https://github.com/flutter/plugins/pull/755) | Add a gestureRecognizers parameter to GoogleMap. | +| [flutter/plugins#753](https://github.com/flutter/plugins/pull/753) | Add an initialUrl and a javaScriptMode parameters to WebView | +| [flutter/plugins#767](https://github.com/flutter/plugins/pull/767) | Rebuild VideoPlayer once VideoPlayerController finishes initialization. | +| [flutter/plugins#732](https://github.com/flutter/plugins/pull/732) | Update Text Recognition for android to 17.0.0 | +| [flutter/plugins#764](https://github.com/flutter/plugins/pull/764) | Bump firebase_auth version number | +| [flutter/plugins#733](https://github.com/flutter/plugins/pull/733) | Update ios MLKit Text Recognition to '5.6.0' | +| [flutter/plugins#762](https://github.com/flutter/plugins/pull/762) | Removed Google Guava dependency from firebase_auth. | +| [flutter/plugins#760](https://github.com/flutter/plugins/pull/760) | Firestore FieldValues and persistence | +| [flutter/plugins#428](https://github.com/flutter/plugins/pull/428) | Updated to 0.5.0 | +| [flutter/plugins#685](https://github.com/flutter/plugins/pull/685) | Adding getWifiName to connectivity plugin | +| [flutter/plugins#672](https://github.com/flutter/plugins/pull/672) | Firebase Messaging: fix Android notification body and title not sent to Flutter | +| [flutter/plugins#650](https://github.com/flutter/plugins/pull/650) | listener on MobileAd shouldn't be final | +| [flutter/plugins#531](https://github.com/flutter/plugins/pull/531) | Add monitoring and management to uploads | +| [flutter/plugins#754](https://github.com/flutter/plugins/pull/754) | cloud_functions readme: Fix Dart source formatting | +| [flutter/plugins#752](https://github.com/flutter/plugins/pull/752) | Initial (Android only) implementation of a WebView widget. | +| [flutter/plugins#954](https://github.com/flutter/plugins/pull/954) | add new plugins reference to README.md | +| [flutter/plugins#430](https://github.com/flutter/plugins/pull/430) | [AndroidAlarmManager] Update README.md | +| [flutter/plugins#431](https://github.com/flutter/plugins/pull/431) | Cut a new firebase_database version with dart2 runtime cast fix | +| [flutter/plugins#749](https://github.com/flutter/plugins/pull/749) | Add support for firebaseopensource.com | +| [flutter/plugins#748](https://github.com/flutter/plugins/pull/748) | Use api to allow support-v4 version resolution. | +| [flutter/plugins#432](https://github.com/flutter/plugins/pull/432) | Fix Dart 2 type error | +| [flutter/plugins#746](https://github.com/flutter/plugins/pull/746) | Plugin template for webview_flutter | +| [flutter/plugins#745](https://github.com/flutter/plugins/pull/745) | Fix Java lint warnings in google maps plugin | +| [flutter/plugins#744](https://github.com/flutter/plugins/pull/744) | Remove iOS instructions from the maps plugin readme. | +| [flutter/plugins#686](https://github.com/flutter/plugins/pull/686) | [image_picker] White line after resize - fixed by adding floor() | +| [flutter/plugins#434](https://github.com/flutter/plugins/pull/434) | Fix Dart 2 runtime type error in msg handler | +| [flutter/plugins#715](https://github.com/flutter/plugins/pull/715) | Improve image_picker android dependencies | +| [flutter/plugins#665](https://github.com/flutter/plugins/pull/665) | Remove a wrong assertion. | +| [flutter/plugins#739](https://github.com/flutter/plugins/pull/739) | Release VideoPlayer resources when FlutterView is gone | +| [flutter/plugins#740](https://github.com/flutter/plugins/pull/740) | Updated README with examples | +| [flutter/plugins#638](https://github.com/flutter/plugins/pull/638) | Adds nonPersonalizedAds option to MobileAdTargetingInfo for firebase_admob | +| [flutter/plugins#429](https://github.com/flutter/plugins/pull/429) | Extend StandardMessageCodec for Cloud Firestore | +| [flutter/plugins#699](https://github.com/flutter/plugins/pull/699) | _dynamicLink variable was cleared after user get dynamicLink (iOS) | +| [flutter/plugins#710](https://github.com/flutter/plugins/pull/710) | Fixed type error for firebase_auth photoUrl on iOS | +| [flutter/plugins#736](https://github.com/flutter/plugins/pull/736) | Fix typo in Application.java url | +| [flutter/plugins#722](https://github.com/flutter/plugins/pull/722) | Add go to settings action in androidIntent plugin. | +| [flutter/plugins#737](https://github.com/flutter/plugins/pull/737) | upgraded com.google.firebase:firebase-messaging to v17.3.0 in order t… | +| [flutter/plugins#707](https://github.com/flutter/plugins/pull/707) | Add example query to Firestore documentation | +| [flutter/plugins#361](https://github.com/flutter/plugins/pull/361) | Batch support for Firestore | +| [flutter/plugins#725](https://github.com/flutter/plugins/pull/725) | Set MLVision pod version to avoid breaking changes | +| [flutter/plugins#438](https://github.com/flutter/plugins/pull/438) | Bump version for re-publication | +| [flutter/plugins#708](https://github.com/flutter/plugins/pull/708) | Fix cloud_functions README typo | +| [flutter/plugins#439](https://github.com/flutter/plugins/pull/439) | Fix Dart 2 runtime type errors | +| [flutter/plugins#443](https://github.com/flutter/plugins/pull/443) | Secure fetchProvidersForEmail (no providers) | +| [flutter/plugins#713](https://github.com/flutter/plugins/pull/713) | [android_alarm_manager] Prep for version update | +| [flutter/plugins#656](https://github.com/flutter/plugins/pull/656) | Added iOS location plugin to showcase background execution APIs | +| [flutter/plugins#642](https://github.com/flutter/plugins/pull/642) | Updated `android_alarm_manager` to work after engine refactor. | +| [flutter/plugins#698](https://github.com/flutter/plugins/pull/698) | Enable lint unnecessary_statements. Codebase is compliant. | +| [flutter/plugins#702](https://github.com/flutter/plugins/pull/702) | fix missing_return warnings | +| [flutter/plugins#696](https://github.com/flutter/plugins/pull/696) | enable lint prefer_equal_for_default_values | +| [flutter/plugins#445](https://github.com/flutter/plugins/pull/445) | [Image Picker] Import foundation for the @required annotations | +| [flutter/plugins#694](https://github.com/flutter/plugins/pull/694) | Fix incomplete README for FirebaseAuth | +| [flutter/plugins#447](https://github.com/flutter/plugins/pull/447) | Remove yourcompany.com from cloud_firestore | +| [flutter/plugins#452](https://github.com/flutter/plugins/pull/452) | Hide Firestore codec class and move each class into separate files | +| [flutter/plugins#629](https://github.com/flutter/plugins/pull/629) | Update docs to reflect field paths separated by '.' | +| [flutter/plugins#673](https://github.com/flutter/plugins/pull/673) | Update barcode detector to handle options | +| [flutter/plugins#677](https://github.com/flutter/plugins/pull/677) | Android and iOS BarcodeDetector options | +| [flutter/plugins#684](https://github.com/flutter/plugins/pull/684) | Adding support for FirebaseUser.delete() | +| [flutter/plugins#668](https://github.com/flutter/plugins/pull/668) | Android and iOS implementations of LabelDetector | +| [flutter/plugins#683](https://github.com/flutter/plugins/pull/683) | Adding support to setLanguageCode to FirebaseAuth | +| [flutter/plugins#617](https://github.com/flutter/plugins/pull/617) | Add high resolution iOS photo capture for file | +| [flutter/plugins#681](https://github.com/flutter/plugins/pull/681) | Fix formatting | +| [flutter/plugins#675](https://github.com/flutter/plugins/pull/675) | Bump Firebase Android dependencies | +| [flutter/plugins#669](https://github.com/flutter/plugins/pull/669) | Update README with new detectors | +| [flutter/plugins#670](https://github.com/flutter/plugins/pull/670) | Fix auto phone auth | +| [flutter/plugins#661](https://github.com/flutter/plugins/pull/661) | Android and iOS FaceDetector | +| [flutter/plugins#667](https://github.com/flutter/plugins/pull/667) | Fix plugin formatting | +| [flutter/plugins#666](https://github.com/flutter/plugins/pull/666) | bump firebase_auth version | +| [flutter/plugins#606](https://github.com/flutter/plugins/pull/606) | Add phone auth | +| [flutter/plugins#662](https://github.com/flutter/plugins/pull/662) | Dart side of label detector | +| [flutter/plugins#454](https://github.com/flutter/plugins/pull/454) | Fix behavior of constructor for named FirebaseApps | +| [flutter/plugins#649](https://github.com/flutter/plugins/pull/649) | Dart side of face detector | +| [flutter/plugins#455](https://github.com/flutter/plugins/pull/455) | Fix FirebaseApp projectID on iOS | +| [flutter/plugins#646](https://github.com/flutter/plugins/pull/646) | Add barcode detector for ML Vision | +| [flutter/plugins#456](https://github.com/flutter/plugins/pull/456) | Bump Flutter SDK requirement | +| [flutter/plugins#444](https://github.com/flutter/plugins/pull/444) | Don't fail an incremental build if can't find a merge base | +| [flutter/plugins#453](https://github.com/flutter/plugins/pull/453) | [Image Picker] - Use native Android APIs for taking images with camera and remove unneeded 3rd party dependency | +| [flutter/plugins#620](https://github.com/flutter/plugins/pull/620) | Fixed bug in handleStopListeningAuthState method | +| [flutter/plugins#437](https://github.com/flutter/plugins/pull/437) | Enable playing video from local asset. | +| [flutter/plugins#462](https://github.com/flutter/plugins/pull/462) | Play video from file descriptor | +| [flutter/plugins#635](https://github.com/flutter/plugins/pull/635) | Configured macOS builds on Cirrus CI | +| [flutter/plugins#634](https://github.com/flutter/plugins/pull/634) | Fixed typo REVERSED_CLIENT_ID | +| [flutter/plugins#613](https://github.com/flutter/plugins/pull/613) | video_player: autodetect video source format | +| [flutter/plugins#624](https://github.com/flutter/plugins/pull/624) | video_player: Allow audio playback in silent mode | +| [flutter/plugins#622](https://github.com/flutter/plugins/pull/622) | video_player: frame accurate seekTo on iOS | +| [flutter/plugins#596](https://github.com/flutter/plugins/pull/596) | Add receiving dynamic link capability to Firebase Dynamic Links Plugin | +| [flutter/plugins#633](https://github.com/flutter/plugins/pull/633) | image_picker record video iOS needed setup README update | +| [flutter/plugins#636](https://github.com/flutter/plugins/pull/636) | Added comments explaining the time it take to see results | +| [flutter/plugins#632](https://github.com/flutter/plugins/pull/632) | Add cloud_functions to README | +| [flutter/plugins#623](https://github.com/flutter/plugins/pull/623) | Shard plugins for example app builds | +| [flutter/plugins#627](https://github.com/flutter/plugins/pull/627) | Setup ios text detector | +| [flutter/plugins#464](https://github.com/flutter/plugins/pull/464) | rename the analysis options file | +| [flutter/plugins#630](https://github.com/flutter/plugins/pull/630) | Fix CI breakage | +| [flutter/plugins#465](https://github.com/flutter/plugins/pull/465) | Fix firebase_database dependencies | +| [flutter/plugins#625](https://github.com/flutter/plugins/pull/625) | add didReceiveRegistrationToken to firebase_messaging on ios | +| [flutter/plugins#621](https://github.com/flutter/plugins/pull/621) | Make sensors package Dart 2 compliant. | +| [flutter/plugins#612](https://github.com/flutter/plugins/pull/612) | video_player: iOS add missing observer removals | +| [flutter/plugins#614](https://github.com/flutter/plugins/pull/614) | Setup dart side of local MLVision text detection | +| [flutter/plugins#618](https://github.com/flutter/plugins/pull/618) | Add camera plugin to readme | +| [flutter/plugins#615](https://github.com/flutter/plugins/pull/615) | Ensure we fail if we cannot close file | +| [flutter/plugins#513](https://github.com/flutter/plugins/pull/513) | use temp image file in cacheDir to allow picking from remote resources | +| [flutter/plugins#463](https://github.com/flutter/plugins/pull/463) | Add map camera control API | +| [flutter/plugins#575](https://github.com/flutter/plugins/pull/575) | Add test for Remote Config setDefaults | +| [flutter/plugins#609](https://github.com/flutter/plugins/pull/609) | Initial 'flutter create' for Firebase ML Vision plugin | +| [flutter/plugins#610](https://github.com/flutter/plugins/pull/610) | Update metadata for republish | +| [flutter/plugins#600](https://github.com/flutter/plugins/pull/600) | image_picker fixes: file suffix, permissions redirect, video resize | +| [flutter/plugins#467](https://github.com/flutter/plugins/pull/467) | Added getAll for debugging purposes | +| [flutter/plugins#602](https://github.com/flutter/plugins/pull/602) | Hotfix - iOS Sharing | +| [flutter/plugins#468](https://github.com/flutter/plugins/pull/468) | Make shared preferences ready for publication | +| [flutter/plugins#477](https://github.com/flutter/plugins/pull/477) | Fix macOS build | +| [flutter/plugins#597](https://github.com/flutter/plugins/pull/597) | video_player: use exoplayer for better video compatibility | +| [flutter/plugins#594](https://github.com/flutter/plugins/pull/594) | Add Infowindow tapped handler; also rev. google play services to 15.+… | +| [flutter/plugins#471](https://github.com/flutter/plugins/pull/471) | Readme.md should use gender enum constants | +| [flutter/plugins#457](https://github.com/flutter/plugins/pull/457) | Add download url support to Firebase Storage plugin | +| [flutter/plugins#599](https://github.com/flutter/plugins/pull/599) | Fixed dynamic link dartdoc generation | +| [flutter/plugins#601](https://github.com/flutter/plugins/pull/601) | Add static_framework to Google Maps pod | +| [flutter/plugins#598](https://github.com/flutter/plugins/pull/598) | Fixed incorrect homepage link in pubspec. | +| [flutter/plugins#589](https://github.com/flutter/plugins/pull/589) | Upgrade Gradle dependencies to match Android Studio 3.1.2 | +| [flutter/plugins#459](https://github.com/flutter/plugins/pull/459) | Add unit test for firebase_list | +| [flutter/plugins#563](https://github.com/flutter/plugins/pull/563) | Firebase dynamic links | +| [flutter/plugins#474](https://github.com/flutter/plugins/pull/474) | Bump Flutter SDK constraint | +| [flutter/plugins#590](https://github.com/flutter/plugins/pull/590) | Fix test for sync-async semantics | +| [flutter/plugins#479](https://github.com/flutter/plugins/pull/479) | Add id getter to Firestore CollectionReference and move path getter to CollectionReference | +| [flutter/plugins#588](https://github.com/flutter/plugins/pull/588) | Consolidate .gitignore, remove Podfile | +| [flutter/plugins#583](https://github.com/flutter/plugins/pull/583) | Add video player buffering status | +| [flutter/plugins#577](https://github.com/flutter/plugins/pull/577) | Performance metrics | +| [flutter/plugins#585](https://github.com/flutter/plugins/pull/585) | Update .gitignore to new `dart_tool` pub cache | +| [flutter/plugins#586](https://github.com/flutter/plugins/pull/586) | Update README.md | +| [flutter/plugins#581](https://github.com/flutter/plugins/pull/581) | Firebase Messaging : On Android, when the Activity is killed, the onLaunch is never using the correct Intent | +| [flutter/plugins#580](https://github.com/flutter/plugins/pull/580) | Add stub for In-app purchase plugin | +| [flutter/plugins#579](https://github.com/flutter/plugins/pull/579) | Document Google OAuth scopes | +| [flutter/plugins#537](https://github.com/flutter/plugins/pull/537) | Release several FlutterFire plugins as 1.0 | +| [flutter/plugins#458](https://github.com/flutter/plugins/pull/458) | Camera plugin first working version (IOS and Android). | +| [flutter/plugins#509](https://github.com/flutter/plugins/pull/509) | Add gravity-independent-accelerometer support to sensors. | +| [flutter/plugins#576](https://github.com/flutter/plugins/pull/576) | google_maps_flutter: Remove listeners on State.dispose | +| [flutter/plugins#573](https://github.com/flutter/plugins/pull/573) | Added App name data to package_info | +| [flutter/plugins#574](https://github.com/flutter/plugins/pull/574) | Remove useless code that was causing a crash | +| [flutter/plugins#555](https://github.com/flutter/plugins/pull/555) | Await RemoteConfig#setDefaults and README fix | +| [flutter/plugins#478](https://github.com/flutter/plugins/pull/478) | Support for firebase_core interoperating with native code that configures Firebase apps. | +| [flutter/plugins#466](https://github.com/flutter/plugins/pull/466) | Prevent crash on share on iPads, add ability to specify popover origin | +| [flutter/plugins#567](https://github.com/flutter/plugins/pull/567) | Fixed a bug that may not be initialized after video started on iOS | +| [flutter/plugins#482](https://github.com/flutter/plugins/pull/482) | Fix firebase_core project id on Android. | +| [flutter/plugins#556](https://github.com/flutter/plugins/pull/556) | Support custom metadata | +| [flutter/plugins#571](https://github.com/flutter/plugins/pull/571) | Update metadata for republication | +| [flutter/plugins#570](https://github.com/flutter/plugins/pull/570) | Update metadata for republish | +| [flutter/plugins#558](https://github.com/flutter/plugins/pull/558) | Adding null-safe handling for Transaction.get in cloud_firestore | +| [flutter/plugins#561](https://github.com/flutter/plugins/pull/561) | New with 0.7 | +| [flutter/plugins#569](https://github.com/flutter/plugins/pull/569) | Fix for iOS Firebase API changes | +| [flutter/plugins#481](https://github.com/flutter/plugins/pull/481) | Add marker API | +| [flutter/plugins#559](https://github.com/flutter/plugins/pull/559) | upgrade cocoapods on travis | +| [flutter/plugins#557](https://github.com/flutter/plugins/pull/557) | Fix for 2 bugs in the Video Player plugin | +| [flutter/plugins#560](https://github.com/flutter/plugins/pull/560) | Don't do reentrant message channel calls. | +| [flutter/plugins#542](https://github.com/flutter/plugins/pull/542) | Add signinWithTwitter | +| [flutter/plugins#476](https://github.com/flutter/plugins/pull/476) | Multiple app support for cloud_firestore | +| [flutter/plugins#550](https://github.com/flutter/plugins/pull/550) | Split files into library structure. | +| [flutter/plugins#552](https://github.com/flutter/plugins/pull/552) | Add missing await to for transaction in Firestore README | +| [flutter/plugins#551](https://github.com/flutter/plugins/pull/551) | Update Remote Config plugin | +| [flutter/plugins#376](https://github.com/flutter/plugins/pull/376) | Support for Query.getDocuments | +| [flutter/plugins#485](https://github.com/flutter/plugins/pull/485) | Add required argument to Firebase admob readme | +| [flutter/plugins#545](https://github.com/flutter/plugins/pull/545) | API documentation and cleanup | +| [flutter/plugins#546](https://github.com/flutter/plugins/pull/546) | Add firebase_remote_config to the README.md and FlutterFire.md | +| [flutter/plugins#548](https://github.com/flutter/plugins/pull/548) | Update firebase storage version and changelog | +| [flutter/plugins#532](https://github.com/flutter/plugins/pull/532) | Add timeout properties to FirebaseStorage | +| [flutter/plugins#442](https://github.com/flutter/plugins/pull/442) | Add Firestore transaction example | +| [flutter/plugins#536](https://github.com/flutter/plugins/pull/536) | Breaking changes to signature of snapshots and setData in cloud_firestore | +| [flutter/plugins#533](https://github.com/flutter/plugins/pull/533) | Add support to reload firebase user | +| [flutter/plugins#473](https://github.com/flutter/plugins/pull/473) | Add Blob support to cloud_firestore | +| [flutter/plugins#492](https://github.com/flutter/plugins/pull/492) | Add ui configuration api | +| [flutter/plugins#493](https://github.com/flutter/plugins/pull/493) | Add constructor VideoPlayerController.file() | +| [flutter/plugins#530](https://github.com/flutter/plugins/pull/530) | Add test for Facebook link | +| [flutter/plugins#529](https://github.com/flutter/plugins/pull/529) | Add send verification mail | +| [flutter/plugins#527](https://github.com/flutter/plugins/pull/527) | Add link with facebook credential | +| [flutter/plugins#524](https://github.com/flutter/plugins/pull/524) | Support FirebaseStorage with custom Firebase app | +| [flutter/plugins#498](https://github.com/flutter/plugins/pull/498) | Updated plugin channel names to 'plugins.flutter.io/' | +| [flutter/plugins#495](https://github.com/flutter/plugins/pull/495) | Firestore readme fix | +| [flutter/plugins#496](https://github.com/flutter/plugins/pull/496) | Video player fix for looping value on ios | +| [flutter/plugins#521](https://github.com/flutter/plugins/pull/521) | Run java tests on Travis and Cirrus CI | +| [flutter/plugins#517](https://github.com/flutter/plugins/pull/517) | Remove Gradle artifacts from repo | +| [flutter/plugins#499](https://github.com/flutter/plugins/pull/499) | AdMob Readme Enhancement | +| [flutter/plugins#511](https://github.com/flutter/plugins/pull/511) | Add ability to create games sign in | +| [flutter/plugins#461](https://github.com/flutter/plugins/pull/461) | [Image Picker] Add tests to Android implementation of ImagePickerDelegate | +| [flutter/plugins#502](https://github.com/flutter/plugins/pull/502) | Add some support for StorageMetadata. | +| [flutter/plugins#514](https://github.com/flutter/plugins/pull/514) | Fix Dart2 Types | +| [flutter/plugins#516](https://github.com/flutter/plugins/pull/516) | Add flutter_test dev dependency | +| [flutter/plugins#512](https://github.com/flutter/plugins/pull/512) | Support StorageReference#writeToFile | +| [flutter/plugins#515](https://github.com/flutter/plugins/pull/515) | Add environment to Remote Config plugin pubspec | +| [flutter/plugins#391](https://github.com/flutter/plugins/pull/391) | Add Firebase Remote Config support | +| [flutter/plugins#510](https://github.com/flutter/plugins/pull/510) | Add more getters to StorageReference | +| [flutter/plugins#505](https://github.com/flutter/plugins/pull/505) | [Image Picker] - Add contract tests for Android implementation | +| [flutter/plugins#506](https://github.com/flutter/plugins/pull/506) | Add support for putData on StorageReference | +| [flutter/plugins#504](https://github.com/flutter/plugins/pull/504) | Allow null value for startAt, endAt and equalTo database queries on Android | +| [flutter/plugins#503](https://github.com/flutter/plugins/pull/503) | Add support for updateMetadata | +| [flutter/plugins#538](https://github.com/flutter/plugins/pull/538) | Graduate admob plugin to beta | diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes---Flutter-1.2.1.md b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes---Flutter-1.2.1.md new file mode 100644 index 0000000000000000000000000000000000000000..8f63baa9a2f3ca9fed8bf4ffe651ce891d1c36a4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes---Flutter-1.2.1.md @@ -0,0 +1,2 @@ +This page has moved [here](https://flutter.dev/docs/development/tools/sdk/release-notes/release-notes-1.2.1). +See also [Release Notes - Changes in 1.2.1](Release-Notes---Changes-in-1.2.1.md). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes-Flutter-1.5.4.md b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes-Flutter-1.5.4.md new file mode 100644 index 0000000000000000000000000000000000000000..958a06e6a2e52832df9bf7a0eac36298dc14b0c7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes-Flutter-1.5.4.md @@ -0,0 +1 @@ +This page has moved [here](https://flutter.dev/docs/development/tools/sdk/release-notes/release-notes-1.5.4). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes-Flutter-1.7.8.md b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes-Flutter-1.7.8.md new file mode 100644 index 0000000000000000000000000000000000000000..9e522fed3c1effa1366a3f26fe4b8fd9b9c69c1d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes-Flutter-1.7.8.md @@ -0,0 +1 @@ +This page has moved [here](https://flutter.dev/docs/development/tools/sdk/release-notes/release-notes-1.7.8). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes-Flutter-1.9.1.md b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes-Flutter-1.9.1.md new file mode 100644 index 0000000000000000000000000000000000000000..c5f3f3bd09e6e389bfed1a5fe6f52493baf01fdf --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Release-Notes-Flutter-1.9.1.md @@ -0,0 +1 @@ +This page has moved [here](https://flutter.dev/docs/development/tools/sdk/release-notes/release-notes-1.9.1). diff --git a/novelforge-project/agent-workspace/flutter/docs/releases/archive/Upgrading-from-3.10.6-to-3.10.7.md b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Upgrading-from-3.10.6-to-3.10.7.md new file mode 100644 index 0000000000000000000000000000000000000000..20b70e65e0ca195ffc061e77b523bda88f0ac891 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/releases/archive/Upgrading-from-3.10.6-to-3.10.7.md @@ -0,0 +1,7 @@ +Because of the serious performance regression that was introduced with iOS 16.6 ([#131319](https://github.com/flutter/flutter/issues/131319)), a one-time special hotfix was made for the older release 3.10.6 even though a newer stable release was available ([3.13.0](https://docs.flutter.dev/release/archive)). While it is recommended that most users upgrade to the newest release on their current channel via `flutter upgrade`, for users who cannot upgrade their Flutter version for other reasons, can issue the following terminal commands in their Flutter SDK checkout: + +``` +git fetch --tags +git checkout 3.10.7 +flutter --version +``` \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/roadmap/Roadmap.md b/novelforge-project/agent-workspace/flutter/docs/roadmap/Roadmap.md new file mode 100644 index 0000000000000000000000000000000000000000..bb1896d518392ca43bb9f6a4c656cb6c37e33130 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/roadmap/Roadmap.md @@ -0,0 +1,79 @@ +In the interest of transparency, we want to share high-level details of our roadmap, so that others can see our priorities and make plans based off the work we are doing. + +Our plans will evolve over time based on customer feedback and new market opportunities. We use our quarterly surveys and feedback on GitHub issues to prioritize work. The list here shouldn't be viewed either as exhaustive, nor a promise that we will complete all this work. If you have feedback about what you think we should be working on, we encourage you to get in touch (e.g. by [filing an issue](https://github.com/flutter/flutter/issues/new/choose), or using the "thumbs-up" emoji reaction on an issue's first comment). Flutter is an open source project, we invite contributions both towards the themes presented below and in other areas. + +_If you are a contributor or team of contributors with long-term plans for [contributing to Flutter](../../CONTRIBUTING.md), and would like your planned efforts reflected in the roadmap, please reach out to Hixie (ian@hixie.ch)._ + +# 2024 + +This roadmap is aspirational; it represents some of what our most active contributors to Flutter and Dart have told us they plan to work on this year. It is in general difficult to make any guarantees about engineering work, and it is all the more so for an open source project with hundreds of contributors. + +## Core framework & engine + +We continue to focus on quality and performance with Impeller. We plan on completing the iOS migration to Impeller by removing the Skia backend on iOS. On Android we expect that Impeller will support Vulkan and OpenGLES; in the near term, we will also have an opt-out to use Skia instead. Additionally, we would like to improve Impeller testing infrastructure to reduce regressions in production. + +For the core framework we expect to complete the effort to fully support Material 3. We're also investigating options to generalize the core framework to better support the adaptations needed to meet design expectations on Apple devices, such as app bars and tab bars. + +Work is also expected to continue on [blankcanvas](https://docs.google.com/document/d/1rS_RO2DQ_d4_roc3taAB6vXFjv7-9hJP7pyZ9NhPOdA/edit?resourcekey=0-VBzTPoqLwsruo0j9dokuOg). + +## Mobile (Android and iOS) platforms + +In 2023 we started an initiative to support multiple Flutter views — in 2024 our plan is to extend this support to Android and iOS. We're also working on improving the performance and test coverage/testability of platform views. + +We'll continue to modernize iOS offerings by enabling/supporting latest Apple standards, such as the [privacy manifests](https://github.com/flutter/flutter/issues/143232) and [Swift Package Manager](https://github.com/flutter/flutter/issues/33850). We'll also investigate needed support for future Android releases. + +On Android we'll look into supporting Kotlin in Android build files. + +Interop is important to interface with native code from Dart. We expect to complete the work to support [invoking Objective C](https://dart.dev/interop/objective-c-interop) code directly from Dart, and we'll investigate support to invoke Swift code directly. Likewise for Android, we'll continue work on the support to [call into Java and Android](https://dart.dev/interop/java-interop). We'll also look into better support for calling APIs that might only be invoked on the main OS/platform thread. + +We're seeing an increasing trend that larger Flutter apps often start as hybrid apps (an app that contains both Flutter code and some Android/iOS platform code/UI). We'll look into how we can better support this, both in terms of performance/overhead and developer ergonomics. + +## Web platform + +We'll continue to focus on performance and quality, including investigating reducing the overall application size, better use of multi-threading, supporting platform views, improving app load times, making CanvasKit the default renderer, improving text input, and investigating options for supporting [SEO for Flutter web](https://github.com/flutter/flutter/issues/46789). + +We expect to complete the effort to compile Dart to WasmGC, and with that support [Wasm compilation of Flutter web apps](https://docs.flutter.dev/platform-integration/web/wasm). This also includes a [new JS interop](https://github.com/dart-lang/sdk/issues/35084) mechanism for Dart that supports both JS and Wasm compilation. + +We also plan to resume work to support [hot reload on the web](https://github.com/flutter/flutter/issues/53041). + +## Desktop platforms + +While we expect the majority of our time to be spent on mobile and web platforms (as discussed above), we are still planning some advancements on desktop platforms: + +* We're hoping to make progress on supporting platform views [on macOS](https://github.com/flutter/flutter/issues/41722) and [Windows](https://github.com/flutter/flutter/issues/31713), and with that enable support for things like webview. +* On Linux, our focus will be on GTK4 support and accessibility. +* On all platforms we will continue our work on supporting multiple views from one Dart isolate, with the eventual goal of supporting multiple windows rendering from one widget tree. + +## Ecosystem + +We're planning on collaborating with AI frameworks to support a new era of AI powered Flutter apps. + +We are not planning on expanding the set of [flutter.dev plugins](https://pub.dev/publishers/flutter.dev/packages) we maintain, but will rather focus on raising the quality of the existing plugins, and resolving core feature gaps (for example, investigating an updated [shared_preferences](https://pub.dev/packages/shared_preferences) API that better supports use of isolates and to add-to-app use case). We'll also support community initiatives like [Flutter Favorites](https://pub.dev/packages?q=is%3Aflutter-favorite). + +We'll also continue to add support for building casual games with Flutter, as a joint effort with the [Flame](https://flame-engine.org/) community. + +## Tooling and AI + +We hope to integrate with AI solutions to offer AI assistance for core programming tasks. + +We'll also continue to collaborate with Google's [IDX team](https://developers.google.com/idx), and explore integration with design tools. + +## Programming language + +The Dart team expects to complete the assessment of the viability of supporting [macros](https://github.com/dart-lang/language/issues/1482) in Dart, and in 2024 either ship the first phases of supporting them, or if we discover unmitigable architectural issues, abandon the effort. Key use cases for macros include serialization/deserialization, data classes, and general extensibility. + +We'll investigate a number of more incremental language features, such as syntax changes to reduce verbosity (for example, [primary constructors](https://github.com/dart-lang/language/issues/2364) and [import syntax shorthand](https://github.com/dart-lang/language/issues/649)), and better support for statically checked variance. + +Finally, we'll look into re-use of Dart business logic in more places, and more pluggability/extensibility for Dart (for example, in DevTools and Analyzer). + +## Releases + +We plan to have four stable releases and 12 beta releases during 2024, similar to 2023. + +## Non-goals + +We're still not planning on investing in built-in support for [code push or hot updates](https://github.com/flutter/flutter/issues/14330). For code push, our friends at [shorebird.dev](https://shorebird.dev/) may have offerings of interest. For UI push (also known as server-driven UI), we recommend the [rfw](https://pub.dev/packages/rfw) package. + +*** + +_We maintain an [archive of roadmaps from previous years]([Archive]-Old-Roadmaps.md) in a separate page._ \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/roadmap/[Archive]-Old-Roadmaps.md b/novelforge-project/agent-workspace/flutter/docs/roadmap/[Archive]-Old-Roadmaps.md new file mode 100644 index 0000000000000000000000000000000000000000..1e75066c19b0f4ac3268544d06131f99cd2a73c9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/roadmap/[Archive]-Old-Roadmaps.md @@ -0,0 +1,201 @@ +This page contains old annual roadmaps, which are provided for historical context. + +# 2023 + +This roadmap is aspirational; it represents some of what our most active contributors to Flutter have told us they plan to work on this year. It is in general difficult to make any guarantees about engineering work, and it is all the more so for an open source project with hundreds of contributors. + +_Our [Flutter Forward keynote](https://flutter.dev/events/flutter-forward) demoed some of these future plans!_ + +## Technical debt and team velocity + +As always, the most important work we can do is increasing the overall velocity of the project. This includes reducing technical debt like flaky tests, but it also means improving our processes to help new people join the team and be productive faster. To this end, we will be starting a regular meeting for team members where velocity issues can be raised, documented, and addressed. Meetings are announced to team members on our Discord using the Discord Events feature. + +Depending on the economic and epidemiological climates, we may also organize a summit to bring the team together. + +We also plan to spend some time this year going through our issue backlog, closing issues that are obsolete or not actionable, and prioritizing the remaining issues. + +## Performance + +Our top priority for Flutter improvements this year is performance. + +We want to completely [remove shader compiler jank](https://github.com/orgs/flutter/projects/21), first on iOS and then on Android and desktop. + +For web, we are working on [supporting Wasm as a target](https://github.com/flutter/flutter/issues/41062), and have plans to investigate the use of [multi-threaded rendering](https://github.com/flutter/flutter/issues/114243), reduce the download size for a basic Flutter application, and improve the performance of custom shaders. + +For our VM-based backends, we are looking to make [improvements to our memory allocation strategy](https://github.com/dart-lang/sdk/issues/47574) to improve responsiveness and app startup performance. + +## Quality + +Accessibility is critical to Flutter applications, and we will continue to invest heavily in making it easy for Flutter applications to be accessible, improving the quality of our accessibility support on all our platforms. Similarly, it is important to us to continue to improve our documentation. In both cases, the improvements are largely expected to be in the form of bug fixes and small patches, rather than large projects that are easy to describe on a roadmap, but that does not make them any less important. + +We will also continue to implement features needed for full fidelity on each platform, especially the fast-moving Android and iOS. For example, we expect to make significant progress on our Cupertino widget set this year, bringing it up to date and growing the number of supported widgets, and we plan to implement support for [Android's predictive back gesture](https://github.com/flutter/flutter/issues/109513) and [Android handwriting input](https://github.com/flutter/flutter/issues/115607). We also plan to port the [camera plugin](https://github.com/flutter/packages/tree/main/packages/camera) to Android's latest CameraX APIs. + +## Security + +We will continue to work on [SLSA compliance](https://slsa.dev/) (supply chain integrity), with a goal to reach SLSA-3 for our main repositories this year, with an eye to continue to SLSA-4 next year. We also want to extend our tooling to enable Flutter package and application developers to achieve the same level of security. + +## Features + +We do expect to spend some time on a few new features. These are generally driven by one of three motivations: popularity (we look at how many "thumbs-up" reactions an issue has received to help prioritize efforts), parity and portability (once one platform supports a feature, we feel it is important to make it work everywhere), and supporting some other effort (e.g. a new feature that can enable further performance improvements). + +The most notable features we expect to implement this year are: + +* [Custom asset transformers](https://github.com/flutter/flutter/issues/101077), because they enable some performance improvements. +* [Efficient 2D scrolling widgets](https://github.com/orgs/flutter/projects/32) (e.g. [tables](https://github.com/flutter/flutter/issues/87370) and [trees](https://github.com/flutter/flutter/issues/114299)), to improve the performance of applications with this kind of interface. +* [Multiple windows](https://github.com/flutter/flutter/issues/30701), especially for desktop platforms, because this is a very highly requested feature. +* Platform Views on [macOS](https://github.com/flutter/flutter/issues/41722) and [Windows](https://github.com/flutter/flutter/issues/108486), by popular demand. +* [Drag and drop](https://github.com/flutter/flutter/issues/30719), also by popular demand. +* [Wireless debugging on iOS](https://github.com/flutter/flutter/issues/15072), our second-most-requested feature. +* [Custom "flutter create" templates](https://github.com/flutter/flutter/issues/77104), which makes it much easier for third-parties (e.g. [the Flame engine](https://flame-engine.org/)) to bootstrap developers. +* Supporting [element embedding](https://github.com/flutter/flutter/issues/118481) (see also [#32329](https://github.com/flutter/flutter/issues/32329)), which allows Flutter content to be added to any standard web <div>, by popular demand. + +## Research + +A lot of developers have expressed an interest in creating applications that integrate closely with the look and feel of their target platform, while supporting multiple platforms, without having to reimplement their interface multiple times. We want to study whether some form of adaptive layout would be able to address these needs, starting with Android vs iOS. + +With our new graphics backend comes the opportunity for new features, and one in particular that we are interested in studying more closely is the integration of 3D into Flutter scenes. We expect to begin experiments with 3D this year. Similarly, we believe our new graphics backend may enable improvements to the low-level dart:ui API, and new shader features. + +Relatedly, we are investigating implementing [wide color gamut support](https://github.com/flutter/flutter/issues/55092) (probably starting with iOS), as it is a highly requested feature. + +We are also actively investigating migrating from ICU4C to ICU4X (the new [Rust-based ICU backend](https://github.com/unicode-org/icu4x)), which will require research into how to embed Rust into our build pipeline across all our platforms, how to share Rust code between our engine and Dart FFI packages, and how to perform tree-shaking for binary code used in such packages. + +Finally, we expect to spend some time investigating how to update Flutter to take advantage of new features coming from Dart this year, such as updating our APIs to make use of records and patterns, updating our toolchain to support RISC-V, or making use of new FFI features for plugins. + +## Releases + +We plan to have four stable releases and 12 beta releases during 2023. In 2023 we will probably move to announcing new features when they reach the beta channel rather than waiting for them to be on the stable release channel. In general we encourage people looking for a faster update cycle to use the beta channel. + +## Non-goals + +We unfortunately have had to shelve our current efforts to implement hot reload on web, as our web compiler experts are all working on Wasm production support. We also have no plans currently to implement [code push](https://github.com/flutter/flutter/issues/14330#issuecomment-1279484739), built-in support for wearables ([Apple Watch](https://github.com/flutter/flutter/issues/28901#issuecomment-1385926218), [Android Wear](https://github.com/flutter/flutter/issues/2057)) or [automotive integrations](https://github.com/flutter/flutter/issues/26801#issuecomment-1013565542), built-in support for [SEO on web](https://github.com/flutter/flutter/issues/46789#issuecomment-1007835929), or [installation via homebrew](https://github.com/flutter/flutter/issues/14050#issuecomment-1012647917). (Some of these have excellent packages available though.) + +In general we prioritize [issues with the most thumbs-up reactions on GitHub](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc), and the astute among you may notice that the list of non-goals includes a number of these highest-rated issues. Unfortunately, we have discovered a pattern that we did not expect, though it is obvious in retrospect: when we address all the highest-ranked issues except for those that are technically infeasible or intractable for whatever reason, the result is that the highest-ranked issues that are left are _all_ issues that are infeasible or somehow intractable. + +_See also: [Popular issues](../contributing/issue_hygiene/Popular-issues.md), which discusses each of the top 10 issues._ + + +# 2022 + +_You may also be interested in [Google's discussion of its strategy for Flutter in 2022](https://medium.com/flutter/flutter-in-2022-strategy-and-roadmap-8c5eaf7c4275)._ + +## Areas of Focus + +### Developer experience + +The area where we will spend most of our focus is the developer experience. It is our intent to create an SDK that developers love. This will manifest in a myriad of different areas, for example creating widgets or plugins that solve common scenarios, cleaning up existing APIs, introducing new APIs to simplify frequently-seen patterns, improving error messages, evolving our developer tools and IDE plugins, creating new lints, fixing bugs in the framework and engine, improving API documentation, creating more useful samples, hot reload on the web, and improving stack traces in Dart-to-JS scenarios. + +### Desktop + +In 2022 we plan to bring our desktop support to the stable channel. We plan on focusing on testing and announcing one platform at a time, as they become ready, starting with [Windows](https://github.com/flutter/flutter/projects/209), then [Linux](https://github.com/flutter/flutter/projects/216), and [macOS](https://github.com/flutter/flutter/projects/215). A significant part of this effort is expanding our regression test suite to give us the confidence that enables us to expand on these efforts without breaking existing code. + +### Web + +Regarding Flutter for web in particular, we plan to work on improving performance, plugin quality, accessibility, and consistency across browsers. We also intend to make it much easier to embed Flutter applications inside other, non-Flutter, HTML pages. + +### Framework and engine + +We will update the Material library to [support Material 3](https://github.com/flutter/flutter/issues/91605). This is primarily motivated by our goal to improve fidelity with Android, though it is not limited to that platform. +We intend to implement cross-widget text selection. This is motivated by our goal of achieving good fidelity with the web platform, though again it is not limited to the web. + +We intend to improve the text editing experience on various platforms, for example improving our fidelity with desktop text editing conventions and our integration with iPadOS handwriting recognition. + +For desktop and web we will provide a solution for menus (context menus and menu bars), including integration with the host OS (which is particularly relevant for macOS). + +Finally, also motivated by desktop though again not limited just to that platform, we intend to experiment with supporting rendering to multiple windows from a single Isolate. + +### Dart + +We plan to continue to evolve the language at a deliberately slow but steady pace. We expect to introduce one major feature in 2022 (probably static metaprogramming; we will make decisions based on our confidence that the feature will improve the language), as well as some minor language improvements, probably including improving the import syntax for packages. + +We also plan to expand Dart's compilation toolchain to support compiling to Wasm, contingent on the timely standardisation of WasmGC. + +### Jank + +[In 2021](https://docs.google.com/presentation/d/1QbNm5Z4JyZLd6czVEL3jlgeR7R_ENgXlnm64n2Z40ss/edit) we resolved a number of issues around jank, but our conclusion was that we needed to entirely rethink how we used shaders. As a result, we have been rewriting our graphics backend. In 2022, we intend to migrate Flutter on iOS to this new architecture, and then, based on our experience with this, begin work on porting this solution to other platforms. In addition, we will also implement other performance improvements and performance introspection features, such as those which our new [DisplayList](https://github.com/flutter/flutter/issues/85737) system has made possible. + +## Planned deprecations + +We plan to [drop support for 32bit iOS](https://flutter.dev/go/rfc-32-bit-ios-support) in 2022. + +## Infrastructure + +In 2022 we will increase our investment in supply chain security, with the intent to eventually bring our infrastructure in line with the requirements described in [SLSA level 4](https://slsa.dev/spec/). + +*** + +# 2021 + +## Areas of Focus + +### Null safety + +We will be introducing [Dart's sound null safety](https://dart.dev/null-safety) to Flutter, and shepherding the migration of the plugin and package ecosystem to null safety, including migrating the packages and plugins directly maintained by the Flutter team. + +As part of this we plan to provide a migration tool, samples, and documentation to aid migration of existing code. + +### Android and iOS + +We are continuing to address [jank-on-startup performance issues](https://github.com/flutter/flutter/projects/188). + +We will work on supporting incremental downloads of assets and code from the stores (subject to each platform's limitations), allowing the initial download of applications to be much smaller than the full download, with data fetched on demand. + +We will also seek to improve the performance and ergonomics, and reduce the overhead, of embedding Flutter in existing applications on Android and iOS. + +In addition, as usual, we plan to add support for new features of the iOS and Android operating systems. + +### Web and Desktop + +Our goal for 2021 is to deliver production-quality support for Web, macOS, Windows and Linux, in addition to iOS and Android, enabling developers to create apps across six separate platforms using the same SDK. + +For Web specifically, our focus will be on fidelity and performance, rather than new features, as we drive to prove that Flutter can provide a high quality experience on the Web. + +For desktop, in addition to ensuring a quality experience, we will also be completing our work on the accessibility layer, and adding support for showing multiple independent windows. + +### Improving the developer experience + +We will continue to focus on removing friction points. One area of research will be around reducing the boilerplate needed to achieve common goals in Flutter. We will also build on our investment in migration tooling for null safety to investigate the possibility of creating tooling that enables us to make breaking changes easier for developers to manage, which would enable us to make some long-desired improvements to our APIs that we have so far avoided due to their breaking nature. + +### Ecosystem + +In 2021, we will continue to work with the community on the Flutter-team-supported plugins. The goal will be to bring the pre-release plugins up to production quality and maintain them at that level by being increasingly responsive to issues and PRs. +We also plan specifically to make significant improvements to the WebView plugin. + +### Quality + +We will have efforts around improving Flutter’s memory usage, application download size overhead, runtime performance, battery usage, and jank, based on experiences with real Flutter-based applications. These may take the form of engine or framework fixes, as well as documentation or videos describing best practices. We also intend to improve our tooling to help debug issues around memory usage. + +In addition, we will continue to address bug reports. In 2020, we [resolved](https://github.com/issues?q=is%3Aissue+closed%3A2020+is%3Aclosed+user%3Aflutter) over 17,000 issues during the year, and our goal is to have at least that level of impact in 2021. + +### New features + +While in 2020 we primarily focused on fixing bugs, in 2021 we plan to also add significant new features. Some are listed above. We also intend to make improvements to our table widgets and introduce some tree widgets, with support for large numbers of columns, rows and/or tree levels, and column- or row-spanning cells. + +## Release Channels and Cadence + +Flutter offers three “channels” from which developers can receive updates: master, beta and stable, with increasing levels of stability and confidence of quality but longer lead times for changes to propagate. We plan to release one beta build each month, typically near the start of the month, and about four stable releases throughout the year. We recommend that you use the stable channel for apps released to end-users. For more details on our release process, see the [Flutter build release channels](../releases/Flutter-build-release-channels.md) wiki page. + +We used to also have a _dev_ channel which represented a level of stability between master and beta. At the end of 2021, we retired this channel; it is no longer updated. + +*** + +# 2020 + +## Areas of focus + +### Web and Desktop + +At our Flutter Interact event in December 2019, we announced that our support for Web had progressed to beta-level quality. We intend to continue this work with the goal of having Web be supported as an equal peer to Android and iOS. We hope to similarly continue our work in making Flutter the best way to create desktop applications. + +Our goal for this year is that you should be able to run `flutter create; flutter run` and have your application run on Web browsers, macOS, Windows, Android, Fuchsia, and iOS, with support for hot reload, plugins, testing, and release mode builds. We intend to ensure that our Material Design widget library works well on all these platforms. + +_We don't intend to provide desktop-equivalents of the Cupertino widget library in 2020._ + +### Quality + +Our other main goal is to improve Flutter's quality, fixing bugs and addressing a few of the most-highly requested features. This covers a wide range of areas but we have a particular focus on our Cupertino library and iOS fidelity, our support for the long tail of Android devices, and the development experience. + +We intend to deliver on long-anticipated features such as our router refactor, instance state saving and restoring, and an improved internationalization workflow. + +In general in 2020 we intend to primarily focus on fixing bugs rather than adding new features. + +_We mainly use the "Thumbs-Up" emoji reactions on the first comment of an issue to determine its importance. See the [Issue hygiene](../contributing/issue_hygiene/README.md) wiki page for more details on our prioritization strategy._ diff --git a/novelforge-project/agent-workspace/flutter/docs/tool/Fast-Start.md b/novelforge-project/agent-workspace/flutter/docs/tool/Fast-Start.md new file mode 100644 index 0000000000000000000000000000000000000000..6349a10bada6eb94be1b442978709d5a41ba6dfb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/tool/Fast-Start.md @@ -0,0 +1,5 @@ +# Fast Start + +Fast Start is an experimental development for Flutter on Android that should startup faster on slower hardware. The APK used to install Flutter will only contain a minimal bootstrap application, which will require it to be rebuilt and reinstalled less frequently. This workflow may not work if you're using android_alarm_manager, or other plugins which start background isolates. + +Fast start can be used by providing --fast-start as a command line option to flutter run. The first time this is used an APK must still be built, but on subsequent runs it will start up much faster. Note switching between --fast-start and regular development modes will still require the APK to be rebuilt. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/tool/Managing-template-image-assets.md b/novelforge-project/agent-workspace/flutter/docs/tool/Managing-template-image-assets.md new file mode 100644 index 0000000000000000000000000000000000000000..c8769b9a0dcc5bcd9778fb957b52a93c620c7336 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/tool/Managing-template-image-assets.md @@ -0,0 +1,45 @@ +# Managing template image assets + +Image assets used in templates in the `flutter` tool are maintained in the [flutter_template_images][fti_pkg] package on [Pub.dev][pub] and are not checked into the main [flutter/flutter][flutter_repo] repository. + +Flutter's presubmit checks prevent binaries from being checked in to the repository. Binary files add significant size to the repository and produce large diffs when updated. This negatively impacts Flutter users when running `flutter upgrade`. Downloading a pub package does not involve a full sync of the git history, and is therefore significantly lighter weight. + +## Adding/Updating template image assets + +In order to add or update image assets, two patches are required: one to the `flutter/packages` repository and one to the `flutter/flutter` repository. + +The [flutter_template_images][fti_repo] package repository contains a [`templates`][package_templates_dir] directory laid out identically to the [`templates`][tools_templates_dir] directory in the [flutter_tools][tools_repo] package in the main repository. Assets are first added to the flutter_template_images repo, which is then rolled into the main repository, where the template files and manifest must be updated. + +### Add the assets to flutter_template_images + +First, add the images to the flutter_template_images package: + +1. Fork the [flutter/packages][packages_repo] repo on GitHub. +2. Add the images at the relevant path under the `templates` directory. Filenames should be the exact final filenames as they will appear in a project generated by the `flutter` tool. They should _not_ include a `.img.tmpl` suffix. +3. Update the version in [`pubspec.yaml`](https://github.com/flutter/packages/blob/main/packages/flutter_template_images/pubspec.yaml). For new assets, increment the _minor_ version in the `major.minor.patch` version number; for updates to existing assets, increment the _patch_ version. +4. Add new heading for this version in [`CHANGELOG.md`](https://github.com/flutter/packages/blob/main/packages/flutter_template_images/CHANGELOG.md) and add a line describing your change. Follow the [Changelog Style](../ecosystem/contributing/README.md#changelog-style) guidelines. +5. Commit your changes and send a pull request. +6. Once your changes are landed, a post-submit job will automatically publish the new version on Pub. You can verify this has occurred under the _Versions_ tab of the [flutter_template_images][fti_pkg] page. + +### Update Flutter package dependencies + +Once the updated package has been published on Pub, roll your changes into the main Flutter repository. + +1. Fork the [flutter/flutter][flutter_repo] repo on GitHub. +2. Edit [`packages/flutter_tools/lib/src/commands/update_packages.dart`](https://github.com/flutter/flutter/blob/main/packages/flutter_tools/lib/src/commands/update_packages.dart) and update the pinned version number for the `flutter_template_images` to the new version. +3. From within the repo directory, run `flutter update-packages --force-upgrade`. +4. For each image that you added to `flutter_template_images`, add a zero-byte file with a `.img.tmpl` suffix in the corresponding location under the [`templates`][tools_templates_dir] directory of the `flutter_tools` package. +5. Edit [`packages/flutter_tools/templates/template_manifest.json`](https://github.com/flutter/flutter/blob/main/packages/flutter_tools/templates/template_manifest.json) and add an entry for each file you added, including the `.img.tmpl` suffix. +6. Commit your changes, and perform a test run to be sure they're emitted successfully by the `flutter` tool. +7. Assuming everything looks good, send a pull request. + +_(This page is referenced by an error message in the Flutter presubmit checks.)_ + +[fti_pkg]: https://pub.dev/packages/flutter_template_images +[fti_repo]: https://github.com/flutter/packages/tree/main/packages/flutter_template_images +[pub]: https://pub.dev +[flutter_repo]: https://github.com/flutter/flutter +[packages_repo]: https://github.com/flutter/packages +[package_templates_dir]: https://github.com/flutter/packages/tree/main/packages/flutter_template_images/templates +[tools_templates_dir]: https://github.com/flutter/flutter/tree/main/packages/flutter_tools/templates +[tools_repo]: https://github.com/flutter/flutter/tree/main/packages/flutter_tools diff --git a/novelforge-project/agent-workspace/flutter/docs/tool/README.md b/novelforge-project/agent-workspace/flutter/docs/tool/README.md new file mode 100644 index 0000000000000000000000000000000000000000..3870cde18ea00e3a6222d58df8e1ae9924ff8f16 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/tool/README.md @@ -0,0 +1,217 @@ +# The `flutter` tool + +The `flutter` command-line tool is how developers (or IDEs on behalf of developers) interact +with Flutter. + +`flutter --help` lists the developer-facing commands that `flutter` supports. + +`flutter --help --verbose` lists _all_ the commands that `flutter` supports, in particular, it also lists the +features that are of use to Flutter contributors. + +These include: + +- `flutter update-packages`, which downloads all the Dart dependencies for all + Dart packages in the Flutter repository. +- `flutter analyze --flutter-repo`, as described on [Using the Dart analyzer](../contributing/Using-the-Dart-analyzer.md). + +When contributing to Flutter, use `git pull --rebase` or `git rebase upstream/main` +rather than `flutter upgrade`. + +The `flutter` tool itself is built when you run `flutter` for the first time and each time +you run `git pull --rebase` (or `flutter upgrade`, or anything that changes the current commit). + +## Documentation + +The rest of this document assumes that `flutter` and `dart` on your path resolve +to the scripts inside [`/path/to/flutter/bin`](https://github.com/flutter/flutter/tree/main/bin). If either `flutter` or `dart` +on your path resolves to another binary, you should either prepend the Flutter SDK +`bin` dir to the _front_ of your `$PATH`, or ensure each invocation uses the path +to the Flutter SDK controlled `flutter` and `dart` binaries. + +Markdown documentation can be found for some commands in [flutter/packages/flutter_tools/doc/](https://github.com/flutter/flutter/tree/main/packages/flutter_tools/doc). + +## Analysis + +To run dart analysis on the Flutter tool codebase, run: + +```shell +cd flutter/packages/flutter_tools +dart analyze . +``` + +Note, if relying on in editor analysis and you check out a new Flutter SDK commit, +you may need to restart your editor so that a new analyzer instance is started from +the new Dart version. + +On CI, some additional ad hoc tests are run in the `Linux analyze` CI build. To verify +a failing `Linux analyze` build when Dart analysis is passing locally, you can run +the full script that CI runs: + +```shell +dart --enable-asserts dev/bots/analyze.dart +``` + +## Making changes to the `flutter` tool + +If you want to alter and re-test the tool's behavior itself, locally commit your tool change +in git and the tool will be rebuilt from Dart sources in `packages/flutter_tools` the next +time you run `flutter`. Alternatively, delete the `bin/cache/flutter_tools.snapshot` file. +Doing so will force a rebuild of the tool from your local sources the next time you run `flutter`. +This step is not required if you are launching `flutter_tools.dart` (either by running or testing) from an IDE. + +The `flutter_tools` tests run inside the Dart command line VM rather than in the +flutter shell. To run the tests, run: + +```shell +dart test test_file_or_directory_path +``` + +or + +```shell +flutter test test_file_or_directory_path +``` + +To run or debug the tests in IDE, make sure `FLUTTER_ROOT` directory is setup. +For example, in Android Studio, select the configuration for the test, click "Edit Configurations...", +under "Environment Variables" section, enter `FLUTTER_ROOT=directory_to_your_flutter_framework_repo`. + +The pre-built flutter tool runs in release mode with the observatory off by default. +To enable debugging mode and the observatory on the `flutter` tool, uncomment the +`FLUTTER_TOOL_ARGS` line in the `bin/flutter` shell script. + +## Debugging the `flutter` command-line tool in VS Code + +The following `launch.json` config will allow you to debug the Flutter tool: + +```json +{ + "version": "0.2.0", + "configurations": [ + { + "name": "flutter_tools", + "request": "launch", + "type": "dart", + "program": "${workspaceFolder}/bin/flutter_tools.dart", + "env": { + "FLUTTER_ROOT": "${workspaceFolder}/../../" + }, + "args": ["doctor", "-v"] + } + ] +} +``` + +Note that: + +1. The current workspace directory is assumed to be the [root of the flutter_tools package](https://github.com/flutter/flutter/tree/main/packages/flutter_tools). +2. Update `args` to be whatever arguments you want passed to the tool (i.e. which sub-command you want to debug). +3. To debug the `flutter` command-line tool while running a `flutter` project, add `cwd` to the configuration with the path of the project. + +``` +"configurations": [ + { + "name": "flutter_tools", + ... + "cwd": "/path/to/flutter/project", + } +] +``` + +Also, ensure `flutter_tools (flutter)` is selected on the Debug tab. + +![Screenshot 2023-03-22 at 3 08 34 PM](https://user-images.githubusercontent.com/15619084/227027470-a50661bc-98fd-4b6d-afc6-8b6cc7e399ca.png) + +With this configured, set a breakpoint(s) inline in a source file, and start debugging from the menu with Run -> Start Debugging. + +For more on debugging, including detailed information on `launch.json`, in VS Code refer to the VS Code [documentation](https://code.visualstudio.com/docs/editor/debugging). + +## Debugging the `flutter` command-line tool in Android Studio + +Developers are expected to be able to run `flutter` commands without needing in-depth knowledge of the tool. However, there are some cases in which you may find it useful to debug `flutter` commands, especially when it's difficult to reproduce your issue. + +The `flutter` command is just a wrapper and it will finally run `$FLUTTER_ROOT/bin/cache/flutter_tools.snapshot` generated by flutter_tools package. + +That's to say, you can debug `flutter` command as a Dart Command Line App. +Let's take `flutter doctor -vv` as an example. You can debug it following the steps below: + +a. Open the flutter_tools package in Android Studio + +b. Create a new Dart Command Line App by `Add Configurations` and configure it as below: + +![Dart Command Line App](https://user-images.githubusercontent.com/817851/60478095-0f860b00-9cb4-11e9-9e14-71d2e0e13494.png) +The Dart file refers to bin/flutter_tools.dart where the main function is located. Program arguments refers to the arguments for flutter command, it's passed to main method directly. Working directory is which flutter project you want to run the flutter command, and is not always necessary. + +c. The dart sdk is used to run the bin/flutter_tools.dart and expected to configure as below: +![Dart SDK Configuration](https://user-images.githubusercontent.com/817851/60479048-09455e00-9cb7-11e9-9f6d-bbf6cabafdd1.png) + +d. If you make some changes to the flutter_tools package, you may need to do as 'Making changes to the `flutter` tool' says above because flutter command might be triggered implicitly by gradle, etc. + +Though those steps given above are under Android Studio, the logic also works for other IDEs. + +## Adding, removing, or making changes to Dart dependencies + +Once you've edited a `pubspec.yaml` file in the Flutter repository to change a package's dependencies, +run `flutter update-packages --force-upgrade` to resynchronize all the `pubspec.yaml` files. +This does a full cross-package version solve for the entire repository. + +If you need to pin a particular version, edit the table at the top of the `update_packages.dart` file. + +## Using a locally-built engine with the `flutter` tool + +To allow the tool to be used with a locally-built engine, the `flutter` tool accepts two +global parameters: `local-engine-src-path`, which specifies the path to your engine repository, +and `local-engine`, which specifies which build of the engine to use. + +**Important:** before building your local engine, you should ensure that your engine feature branch is based on the +same upstream version of the engine that the Flutter SDK/flutter tool has pinned. You can find the engine version +that the Flutter SDK has pinned at `flutter/bin/internal/engine.version`. + +A typical invocation would be: `--local-engine-src-path /path/to/engine/src --local-engine=android_debug_unopt --local-engine-host=host_debug_unopt`. + +If your engine is in a directory called `engine` that is a peer to the framework repository's `flutter` directory, then you can omit `--local-engine-src-path` and only specify `--local-engine`. + +You can also set the environment variable `$FLUTTER_ENGINE` instead of specifying `--local-engine-src-path`. + +The `--local-engine` should specify the build of the engine to use, e.g. a profile build for Android, a debug build for Android, or whatever. It must match the other arguments provided to the tool, e.g. don't use the `android_debug_unopt` build when you specify `--release`, since the Debug build expects to compile and run Dart code in a JIT environment, while `--release` implies a Release build which uses AOT compilation. + + + +> ⚠️ **WARNING**: As of [#132245](https://github.com/flutter/flutter/issues/132245), `--local-engine-host` will be mandatory. +> +> If you're currently relying on the host engine being implicitly defined, you will need to update your workflow to explicitly specify the host engine. +> For example, if you're currently running `flutter run --local-engine=android_debug_unopt`, you will need to run `flutter run --local-engine=android_debug_unopt --local-engine-host=host_debug_unopt` instead. + +If you've modified the public API of `dart:ui` in your local build of the engine +and you need to be able to analyze the framework code with the new API, +you will need to add a `dependency_overrides` section pointing to your +modified `package:sky_engine` to the +`pubspec.yaml` for the flutter app you're using the custom engine +with. A typical example would be: + +```yaml +dependency_overrides: + sky_engine: + path: /path/to/flutter/engine/out/host_debug/gen/dart-pkg/sky_engine +``` + +Replace `host_debug` with the actual build that you want to use (similar to `--local-engine`, but typically +a host build rather than a device build). + +If you do this, you can omit `--local-engine-src-path` and not bother to set `$FLUTTER_ENGINE`, as +the `flutter` tool will use these paths to determine the engine also! The tool tries really hard to +figure out where your local build of the engine is if you specify `--local-engine`. + +Similar to the [dwds debugging workflow](https://github.com/dart-lang/webdev/blob/master/dwds/CONTRIBUTING.md#with-flutter-tools-recommended), the Flutter tool can also be debugged with DevTools by invoking the tool with `flutter/bin/dart --observe flutter/packages/flutter_tools/bin/flutter_tools.dart` and then using the **first** DevTools URL that is printed to the console. + +## Adding dependencies to the Flutter Tool + +Each dependency we add to Flutter and the Flutter Tool makes the repo more difficult to update and requires additional work from our clients to update. + +Only packages which are developed by the Dart and/or Flutter teams should be permitted into the Flutter Tool. Any third party packages that are currently in use are exempt for historical reasons, but their versions must be pinned in [update_packages.dart](https://github.com/flutter/flutter/blob/main/packages/flutter_tools/lib/src/commands/update_packages.dart#L23) . These packages should only be updated after a human review of the new version. If a Dart and/or Flutter team package depends transitively on an un-maintained or unknown package, we should work with the owners to remove or replace that transitive dependency. + +Instead of adding a new package, ask yourself the following questions: + +- Does the functionality already exist in the SDK or an already depended on package? +- Could I develop the same functionality myself in a few hours of work? +- Is the package actively developed and maintained by a trusted party? diff --git a/novelforge-project/agent-workspace/flutter/docs/tool/The-flutter-run-variants.md b/novelforge-project/agent-workspace/flutter/docs/tool/The-flutter-run-variants.md new file mode 100644 index 0000000000000000000000000000000000000000..6ac500441ab7169c9c3d44bca45f71dcb33a3a5d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/tool/The-flutter-run-variants.md @@ -0,0 +1,14 @@ +# The `flutter run` variants + +We aspire to reach a state where `flutter run` has the following modes: + +- `flutter run`: builds a debug version of the app and starts it in "hot reload" mode, then shows the console UI to manipulate the running instance. +- `flutter run --no-hot`: builds a debug version of the app and starts it directly, then shows the console UI to manipulate the running instance. +- `flutter run --profile`: builds a profile version of the app and starts it directly, then shows the console UI to manipulate the running instance. +- `flutter run --release`: builds a release version of the app and starts it directly, then shows the console UI to manipulate the running instance. + +Adding `--machine` in any of the situations above spawns a [flutter daemon](https://github.com/flutter/flutter/blob/main/packages/flutter_tools/doc/daemon.md#flutter-run---machine) which: +* changes the output to JSON so that it can be more easily consumed by IDEs, and +* allows the use of JSON commands to interact with the running application (e.g. stopping the application). + +All of the commands above launch a Flutter application and do not return until that Flutter application exits. Adding `--no-resident` in any of the situations causes the command to return immediately after the application has been launched rather than waiting until the application exits. diff --git a/novelforge-project/agent-workspace/flutter/docs/tool/Using-custom-embedders-with-the-Flutter-CLI.md b/novelforge-project/agent-workspace/flutter/docs/tool/Using-custom-embedders-with-the-Flutter-CLI.md new file mode 100644 index 0000000000000000000000000000000000000000..23095e785df1ce2f358f16885f5ffbb7f74863c9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/tool/Using-custom-embedders-with-the-Flutter-CLI.md @@ -0,0 +1,68 @@ +# Using custom embedders with the Flutter CLI + +## Making the Flutter CLI work with custom or third-party embedders + +The experimental "custom device" feature of the Flutter CLI allows you to make custom or third-party embedders such as [flutter-pi](https://github.com/ardera/flutter-pi) or the [sony embedder](https://github.com/sony/flutter-embedded-linux) work with the Flutter CLI and use features such as hot-reload, hot-restart, debugging and DevTools. Profile/release mode and plugins are not supported right now. + +Currently, `custom-devices` support is only available in the master channel. + +### Enabling custom-devices for your Flutter SDK + +Enabling the feature is as simple as `flutter config --enable-custom-devices`. + +### The custom devices config file + +After that, a config file will have been created. Its path should be printed out when you run `flutter custom-devices`. + +The config file contains all the configured custom devices. To see documentation for all the config options, open the file in VS Code. The file has a JSON schema so in any editor supporting JSON schemas (currently only VS Code) you'll get autocompletion, documentation, examples and so on. + +### Configuring your custom device + +If your device is reachable via ssh, you can add it to the config with a guided setup using `flutter custom-devices add`. + +The setup really is self-explanatory, but for example for my Raspberry Pi, the setup looks like this: +``` +hannes@pop-os:~/devel$ flutter custom-devices add +Please enter the id you want to device to have. Must contain only alphanumeric +or underscore characters. (example: pi) +pi +Please enter the label of the device, which is a slightly more verbose name for +the device. (example: Raspberry Pi) +Raspberry Pi +SDK name and version (example: Raspberry Pi 4 Model B+) +Raspberry Pi 4 Model B+ +Should the device be enabled? [Y/n] (empty for default) + +Please enter the hostname or IPv4/v6 address of the device. (example: +raspberrypi) +hpi4 +Please enter the username used for ssh-ing into the remote device. (example: pi, +empty for no username) + +Please enter the command executed on the remote device for starting the app. +"/tmp/${appName}" is the path to the asset bundle. (example: flutter-pi +/tmp/${appName}) +flutter-pi /tmp/${appName} +Should the device use port forwarding? Using port forwarding is the default +because it works in all cases, however if your remote device has a static IP +address and you have a way of specifying the "--observatory-host=" engine +option, you might prefer not using port forwarding. [Y/n] (empty for default) + +Enter the command executed on the remote device for taking a screenshot. +(example: fbgrab /tmp/screenshot.png && cat /tmp/screenshot.png | base64 | tr -d +' \n\t', empty for no screenshotting support) + +Would you like to add the custom device to the config now? [Y/n] (empty for +default) + +Successfully added custom device to config file at +"/home/hannes/.config/flutter/custom_devices.json". +``` + +If your device is a little more complicated to setup, for example if your device is the one the flutter SDK is running on, you can configure it by editing the config file directly. (As mentioned above, I heavily recommend VS Code for that) + +### That's it + +After that, the device is configured and if you run `flutter devices`, it should show your custom device there (if it is reachable). + +You should be able to run apps on your device using `flutter run -d devicename` or using your IDE. diff --git a/novelforge-project/agent-workspace/flutter/docs/triage/Flutter-Web-Triage.md b/novelforge-project/agent-workspace/flutter/docs/triage/Flutter-Web-Triage.md new file mode 100644 index 0000000000000000000000000000000000000000..4c7dfffab6aff3f87b24c03df030a0f71a91bd03 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/triage/Flutter-Web-Triage.md @@ -0,0 +1,16 @@ +When triaging web issues follow the following process: + +- Make sure there are no [unassigned P0 and P1 issues](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-web+label%3AP1%2CP0+no%3Aassignee). +- Make sure there are no [P1 issues outside the backlog](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-web+label%3AP1%2CP0+-project%3Aflutter%2F132+). +- Make sure there are no [P3 issues in the backlog](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+project%3Aflutter%2F132+label%3AP3). +- Make sure there are no assigned P2 and P3 issues: + - [ditman](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-web+label%3AP2%2CP3+assignee%3Aditman) + - [eyebrowsoffire](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-web+label%3AP2%2CP3+assignee%3Aeyebrowsoffire) + - [harryterkelsen](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-web+label%3AP2%2CP3+assignee%3Aharryterkelsen) + - [htoor3](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-web+label%3AP2%2CP3+assignee%3Ahtoor3) + - [kevmoo](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-web+label%3AP2%2CP3+assignee%3Akevmoo) + - [mdebbar](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-web+label%3AP2%2CP3+assignee%3Amdebbar) + - [yjbanov](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-web+label%3AP2%2CP3+assignee%3Ayjbanov) +- The list of [P0 and P1 issues](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3Ateam-web+label%3AP1%2CP0) should be manageable (<30 issues) +- The [list of open PRs](https://github.com/pulls?q=is%3Aopen+is%3Apr+archived%3Afalse+user%3Aflutter+sort%3Aupdated-asc+label%3Aplatform-web) should be manageable (<15). +- Triage [untriaged issues](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-web%2Cfyi-web+-label%3Atriaged-web+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc+-label%3A%22waiting+for+customer+response%22+) diff --git a/novelforge-project/agent-workspace/flutter/docs/triage/README.md b/novelforge-project/agent-workspace/flutter/docs/triage/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b84c0556ca28d7d631a1dd8b37fa6a8b4c553793 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/triage/README.md @@ -0,0 +1,347 @@ +# Primary issue triage process + +The process of triaging new incoming bugs consists of processing the list of [issues without team-* labels, with no assignees, and not labeled `will need additional triage`](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+no%3Aassignee+-label%3A%22will+need+additional+triage%22+-label%3Ateam-release%2Cteam-codelabs%2Cteam-ecosystem%2Cteam-infra%2Cteam-engine%2Cteam-framework%2Cteam-news%2Cteam-ios%2Cteam-tool%2Cteam-web%2Cteam-linux%2Cteam-macos%2Cteam-windows%2Cteam-design%2Cteam-android%2Cteam-go_router%2Cteam-games%2Cteam-text-input+) as described in this section, so as to make that list empty. + +_See also: [Issue triage reports](https://github.com/flutter/flutter/wiki/Issue-triage-reports)_ + +### General + +To triage an issue, first look at the bug report, and try to understand what the described problem is. Edit the original comment to remove boilerplate that the bug reporter didn't remove. Edit the original comment to add backticks (\`\`\`) around blocks of stack traces, code, the output of shell scripts like `flutter doctor`, etc. Ensure that the title is a meaningful summary of the issue. These changes make the bug much easier to manage. + +If their report is **unclear**, doesn't give sufficient steps to reproduce, or is otherwise lacking in sufficient detail for us to act on it, add a polite comment asking for additional information, add the `waiting for customer response` label, then skip the remaining steps. + +If the bug is **still unclear** -- we have previously asked for more detail, and the bug reporter has had a chance to provide additional feedback, but has not been able to do so in a way that makes the bug actionable -- either apologize for us not being able to fix it and then close the bug, or add the `waiting for customer response` label, depending on your confidence that the reporter will be able to eventually provide sufficient detail. Then, skip the remaining steps. It is fine to be aggressive in closing bugs where the issue is not clear, because we have plenty of other issues where the bug _is_ clear and there's really no value to us in having low-quality bugs open in our bug database. + +If the issue describes something that you know for a fact has been **fixed** since the bug report was filed, add a cheerful comment saying so, close the issue, and skip the remaining steps. + +If the bug is **clear enough** for us to act on it, continue with the following steps. To reach this step, the bug should be actionable, with clear steps to reproduce the problem. We have enough bugs filed that we will not run out of work any time soon; therefore, it is reasonable to be quite aggressive in establishing if a bug is sufficiently clear. + +#### Artifacts + +Ideally every issue would have a sample app that demonstrated the problem. + +Performance bugs should have timeline traces. + +Crashes should have crash logs with a Flutter version so that the [flutter-symbolizer-bot](https://github.com/flutter-symbolizer-bot) can do its work (see also [Crashes](../engine/Crashes.md)). + +#### What makes an issue actionable + +An _actionable_ issue is one for which it is easy to determine if a particular PR means the issue can be closed or not. Issues whose descriptions are vague, or that express a general malaise or general desire, issues that specify a failure mode but no steps to reproduce the problem, and other issues where the nature of the problem is not clear and where it would be difficult to determine if any particular change could actually fix the problem, should be closed. + +One example of an unactionable issue is one with such vaguely described symptoms that lots of people claim to have the same problem even when their described situations differ in mutually exclusive ways. + +As a project with literally thousands of open issues, we are not lacking in feedback. Time that would be spent trying to understand an unclear issue could be more effectively spent on a bug with a clear description. Unactionable bugs are simply not valuable enough to keep around when we have many actionable bugs already. Indeed, given how such issues are likely to affect search results, confuse new users filing issues, or attract hostile comments due to remaining open for a long time, they may literally have a negative value to the project. + +#### Unactionable bugs with unusual symptoms + +As discussed above, if a filed issue is unactionable due to vagueness or a lack of steps to reproduce, it should be closed, because we're never going to get to it if we don't know what the problem is given that we have many, _many_ other bugs that we _can_ make progress on today. + +In the specific case of a bug with unclear steps to reproduce but very specific symptoms, we like to leave the issue open so that other people having the same problem can congregate together and maybe together we can figure out the underlying cause. This only applies to issues that have very specific symptoms like a specific and unusual crash signature, a specific and unusual error message, or other unusual and recognizable symptoms, and where some effort was made on the part of the bug reporter to determine the cause (even if that effort was ultimately futile). + +### Duplicates + +If you recognize that this bug is a duplicate of an existing bug, add a reference to that bug in a comment, then close the bug. Skip the remaining steps. As you triage more and more bugs you will become more and more familiar with the existing bugs and so you will get better and better at marking duplicates in this way. + +When closing the duplicate bug, the github issue tracker does not copy the list of people being notified on the closed bug into the original bug. This can matter, especially when asking on the original bug for things like reproduction steps. Consider cc'ing the author of the duplicate issue into the original issue, especially if we're still trying to determine reproduction steps for the issue. + +### Requests for help (documentation issues) + +If the bug report is a question, then it probably belongs in Stack Overflow or on our #help channel or some other forum for getting help. However, if it appears that the reporter did try to read our documentation to find the answer, and failed, or, if you look in our documentation and find it is inadequate here, then please consider it a documentation bug (and update the summary accordingly). + +If you are confident our official documentation (on flutter.dev or api.flutter.dev) fully answers their question, then provide a link to the relevant page and close the issue, being very polite and asking them to reopen if the documentation is not sufficiently clear for them. + +### Labels + +**General rule: The more labels an issue has, the better!** _See also: [List of labels](https://github.com/flutter/flutter/labels)_ + +Some labels are used to track the flow of issues from the time they're filed until they're assigned to a specific team for execution. You should use these to track the state of an issue through your first-level triage process. These are: + + * `in triage`: You are presently looking at an issue and trying to determine what other labels you should give it. + * `assigned for triage`: The issue is assigned to a domain expert for further triage. + * `has reproducible steps`: The issue has a reproducible case or test, Flutter doctor output, and usable stack traces if appropriate. It is actionable in the sense that it can be routed to a domain team for action. + * `needs repro info`: We need more reproduction steps in order to be able to act on this issue. + * `workaround available`: A workaround is available to overcome the issue until it is properly addressed. Read more about [providing workarounds](../contributing/issue_hygiene/README.md#comments-providing-workarounds). + * `will need additional triage`: Assign this if you don't know how to route it to a team. + +**To complete the triage of an issue, add one (and only one) `team-*` label**. Team labels differ from the similar category names (such as `engine` or `framework`) in that the category labels indicate what part(s) of the codebase an issue affects, while `team-*` labels indicate the team that owns that work. Most issues will have both, and they won't always match. + +In general the flow chart for team assignment is as follows, stopping as soon as the first `team-` label is assigned: + +- If it's about the flutter/news_toolkit repository, add `team-news`. +- If it's about a codelab, add `team-codelab`. +- If it's about the release process or tooling (e.g., `conductor`), add `team-release`. +- If it's about the Flutter team's CI or infrastructure, add `team-infra`. +- If it's about Impeller, add `team-engine`. +- If it's about Cupertino or Material Design, add `team-design`. +- If it's about text fields or other user-facing text input issues, add `team-text-input`. + - If it's specific to a single platform, also add that platform's fyi label. +- If it's specific to a single platform, add that platform's team (`team-android`, `team-ios`, `team-linux`, `team-macos`, `team-web`, or `team-windows`). + - If the issue is about a first-party package, also add `fyi-ecosystem`. +- If it's about one of our games templates, add `team-games`. +- If it's about the Flutter engine, add `team-engine`. +- If it's about the Flutter framework, add `team-framework`. +- If it's about the Flutter tool, add `team-tool`. +- If it's about a first-party package: + - If it's about `go_router` or `go_router_builder`, add `team-go_router`. + - Otherwise, add `team-ecosystem`. +- If none of the above apply, add `will need additional triage`. + +_It is expected that some bugs will end up being re-assigned to a different team during secondary triage. If there are specific categories of issues where this always happens, the flow chart above should be updated accordingly, but having it happen occasionally is just the process working as expected; in some cases only the engineers working on an issue will know how the work is divided among teams._ + +Bugs relating to the developer tools should be moved to the `flutter/devtools` repo, unless it looks like the first step is a change to the core parts of Flutter (in which case it should receive the `d: devtools` label as well as the pertinent labels for where the work should occur). Issues tagged with `d: devtools` or moved to the `flutter/devtools` repo will be triaged as described by [flutter/devtools/wiki/Triage](https://github.com/flutter/devtools/wiki/Triage). + +Bugs relating to the IntelliJ IDEs should be moved to the `flutter/flutter-intellij` repo, unless it looks like the first step is a change to the core parts of Flutter (in which case it should receive the `d: intellij` label as well as the pertinent labels for where the work should occur). +Issues tagged with `d: intellij` will be reviewed by the Flutter IntelliJ team as described by [flutter/flutter-intellij/wiki/Triaging](https://github.com/flutter/flutter-intellij/wiki/Triaging). + +Bugs relating to the website should be moved to the `flutter/website` repo. + +#### Additional labels + +Once the main labels above are added, consider what additional labels could be added, in particular: + +Add any of the applicable "c: *" labels; typically only one will apply but sometimes `c: regression` will apply in conjunction with one of the others. + +Add any of the applicable "a: *" labels. There are many, it's worth browsing the list to get an idea of which ones might apply. + +### Additional comments + +If you have something to say regarding the bug, for example if you happen to notice what the problem is, or if you have some insight based on having seen many other bugs over time, feel free to add a comment to that effect. Your experience is valuable and may help both the reporter and the rest of the Flutter team. + +# Triage process for teams + +We intend for each area of the product to go through the following triage regularly: + +* Look at open bugs and determine what needs to be worked on. +* Look at open PRs and review them. + +It is recommended to do these in separate dedicated meetings. For teams with multiple areas of focus (e.g. design languages), it's recommended that each area of focus have its own meeting. + +## Team issue triage process + +Each team has a label, for example `team-engine` is the engine team's label. Each issue gets assigned to a team during primary triage. In addition, each team has a "triaged" label (e.g. `triaged-engine`) and an "FYI" label (e.g. `fyi-engine`). + +Each team has an **incoming issue list**, the issues assigned to that team (team-foo), or marked for the attention of that team (fyi-foo), that the team has not yet triaged (triaged-foo). See below for links to those issue lists for each team. + +Each issue in this list should be examined, cleaned up (see next section), and either: +- closed, with a comment saying why (e.g. is a duplicate, is not actionable, is invalid). The [`r:`](https://github.com/flutter/flutter/labels?q=r%3A) labels may be of use when closing an issue. +- given a [priority](../contributing/issue_hygiene/README.md#priorities), and tagged with the team's corresponding `triaged-*` label. This marks the issue as triaged. If the priority is P3 and the reporter has expressed that the issue is important to them, it will help the reporter feel welcome if a comment is added expressing empathy for their plight and explaining why it is not something we consider important. +- sent to another team, by removing the current `team-*` label and adding another one. A comment should be added explaining the action. +- sent back to primary triage, by removing the `team-*` label but not adding another one. A comment should be added explaining the action. +- escalated to critical triage, by adding the `will need additional triage` label. A comment should be added explaining the action. + +In addition, each team should look at their **P0 list**, and ensure that progress is being made on each one. Every P0 issue should have an update posted at least once a week. + +Teams may also look at other lists (e.g. checking over previously-triaged regression issues, checking all P1 issues, checking assigned issues, etc), as appropriate. + +To flag an issue for attention by another team, the `fyi-*` label for that team can be set on the label. This does not assign the issue to that team, it just adds it to their triage queue. + +### Checklist for cleaning up issues + +When looking at an issue, perform the following cleanup steps: + +* Correct any typos and inaccuracies in the summary. +* Correct the set of labels applied. +* Hide low quality comments. + +Restrict the time you spend diagnosing each issue during triage. You don’t have to fix the issue! 30 seconds for P0 and 10~15 seconds for the others is reasonable! (Plus whatever time it takes to update the issue.) + +
    +JS script to open all PRs or issues on a GitHub page + +```js +// This script is intended to be run in chrome devtools console +// during triage to open PRs and Issues faster. + +// Before the script can be run you need to enable popups in Chrome +// 1. On your computer, open Chrome Chrome. +// 2. At the top right, click More More and then Settings. +// 3. Click Privacy and security and then Site Settings. +// 4. Click Pop-ups and redirects. +// 5. Choose the option you want as your default setting. +// +// https://support.google.com/chrome/answer/95472?hl=en&co=GENIE.Platform%3DDesktop + +const plural = window.location.toString().split('?')[0]; +const singular = plural.substring(0, plural.length-1); +const suffix = singular.includes("issue") ? "s" : ""; +const re = new RegExp("^" + singular + suffix + "/\\d+$"); + +var urls = document.getElementsByTagName('a'); + +var targets = [] +for (url in urls) { + var link = urls[url].href; + if(link == undefined) continue; + if(link.match(re) == null) continue; + if(targets.includes(link)) continue; + targets.push(link); +} + +targets.forEach((target) => window.open(target)); +``` + +
    + +## PR triage process + +Teams should also go through all PRs in their area (ideally in a separate meeting). PRs can apply to multiple areas, and different teams have different methods of organizing code, so there is no uniform guidance for this process. However, in general: + +1. Check that PRs have an assigned reviewer. +2. Check that the assigned reviewers have left comments; if not, contact them to remind them. +3. Check that any questions on the PR from the contributor have been answered. + +For more guidance on reviewing PRs, see [Tree Hygiene](../contributing/Tree-hygiene.md#how). + +## Links for teams + +### Android platform team (`team-android`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-android%2Cfyi-android+-label%3Atriaged-android+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-android+label%3AP0+sort%3Aupdated-asc) +- [P1, No Assignee list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-android+label%3Ap1+no%3Aassignee+sort%3Aupdated-asc) +- PRs: [Engine](https://github.com/flutter/engine/pulls?q=is%3Aopen+draft%3Afalse+is%3Apr+label%3Aplatform-android+-label%3A%22Work+in+progress+%28WIP%29%22+sort%3Aupdated-asc), [Framework/Tool](https://github.com/flutter/flutter/pulls?q=is%3Aopen+draft%3Afalse+is%3Apr+label%3Aplatform-android+-label%3A%22work+in+progress%3B+do+not+review%22+sort%3Aupdated-asc+), [Plugins \(non-dependabot\)](https://github.com/flutter/packages/pulls?q=is%3Aopen+draft%3Afalse+is%3Apr+label%3Atriage-android+sort%3Aupdated-asc+-author%3Aapp%2Fdependabot+), [Plugins \(dependabot\)](https://github.com/flutter/packages/pulls?q=is%3Aopen+draft%3Afalse+is%3Apr+label%3Aplatform-android+sort%3Aupdated-asc+author%3Aapp%2Fdependabot+) + +### Codelabs team (`team-codelabs`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-codelabs%2Cfyi-codelabs+-label%3Atriaged-codelabs+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-codelabs+label%3AP0+sort%3Aupdated-asc) + +### Design Languages team (`team-design`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-design%2Cfyi-design+-label%3Atriaged-design+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc+-label%3A%22waiting+for+customer+response%22+) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-design+label%3AP0+sort%3Aupdated-asc) +- [Design Languages PRs](https://github.com/flutter/flutter/pulls?q=is%3Aopen+is%3Apr+label%3A%22f%3A+material+design%22%2C%22f%3A+cupertino%22+sort%3Aupdated-asc) + +### Ecosystem team (`team-ecosystem`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-ecosystem%2Cfyi-ecosystem+-label%3Atriaged-ecosystem+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-ecosystem+label%3AP0+sort%3Aupdated-asc) +- [PR list](https://github.com/flutter/packages/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-asc+-label%3A%22p%3A+go_router%22+-label%3A%22p%3A+go_router_builder%22) + +In addition, consider these issues that fall under another team's triage, but are things the ecosystem team might want to be aware of: + * [`a: plugins` issues](https://github.com/flutter/flutter/issues?q=is%3Aopen+label%3A%22a%3A+plugins%22+-label%3Ateam-ecosystem+-label%3Atriaged-ecosystem) + * [`package` issues](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Apackage+-label%3Ateam-ecosystem+-label%3Atriaged-ecosystem+-label%3Ateam-go_router+sort%3Acreated-desc+) + * [Package regressions](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+-label%3Ateam-go_router+label%3Apackage+label%3A%22c%3A+regression%22+sort%3Acreated-desc) + + +### Engine team (`team-engine`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-engine%2Cfyi-engine+-label%3Atriaged-engine+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-engine+label%3AP0+sort%3Aupdated-asc) +- [Buildroot PRs](https://github.com/flutter/buildroot/pulls) +- [Approved PRs that have not yet landed](https://github.com/flutter/engine/pulls?q=is%3Aopen+is%3Apr+draft%3Afalse+-label%3A%22Work+in+progress+%28WIP%29%22+review%3Aapproved+NOT+%22Roll+Skia%22+-label%3Aplatform-web+sort%3Acreated-asc) +- [PRs awaiting review](https://github.com/flutter/engine/pulls?q=is%3Aopen+is%3Apr+draft%3Afalse+-label%3A%22Work+in+progress+%28WIP%29%22+-label%3A%22waiting+for+tree+to+go+green%22+-label%3A%22platform-web%22+-review%3Aapproved+-label%3A%22waiting+for+customer+response%22+NOT+%22Roll+Skia%22+NOT+%22Roll+Dart%22+NOT+%22Roll+Fuchsia%22+sort%3Aupdated-asc++-label%3A%22platform-web%22+) +- [Draft PRs](https://github.com/flutter/engine/pulls?q=is%3Aopen+is%3Apr+label%3A%22Work+in+progress+%28WIP%29%22+-label%3A%22waiting+for+tree+to+go+green%22+-label%3A%22platform-web%22+-review%3Aapproved+-label%3A%22waiting+for+customer+response%22+NOT+%22Roll+Skia%22+sort%3Aupdated-asc++-label%3A%22platform-web%22+) + +### Framework team (`team-framework`) + +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-framework+label%3AP0+sort%3Aupdated-asc) +- [PR list](https://github.com/flutter/flutter/pulls?q=is%3Aopen+is%3Apr+label%3Aframework+-label%3A%22f%3A+material+design%22+-label%3A%22f%3A+cupertino%22+sort%3Acreated-desc+draft%3Afalse) +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-framework%2Cfyi-framework+-label%3Atriaged-framework+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc+-label%3A%22waiting+for+customer+response%22+) + +### Games team (`team-games`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-games%2Cfyi-games+-label%3Atriaged-games+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-games+label%3AP0+sort%3Aupdated-asc) +- [PRs awaiting review](https://github.com/flutter/games/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-asc) + +### Go Router team (`team-go_router`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-go_router%2Cfyi-go_router+-label%3Atriaged-go_router+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-go_router+label%3AP0+sort%3Aupdated-asc) +- [Package PRs](https://github.com/flutter/packages/pulls?q=is%3Apr+is%3Aopen+label%3A%22p%3A+go_router%22%2C%22p%3A+go_router_builder%22) + +### Infrastructure team (`team-infra`) + +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-infra+label%3AP0+sort%3Aupdated-asc) +- [Cocoon PRs](https://github.com/flutter/cocoon/pulls) +- [GoB CLs](https://flutter-review.googlesource.com/q/status:open+-is:wip) +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-infra%2Cfyi-infra+-label%3Atriaged-infra+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [Latest updated issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-infra%2Cfyi-infra+sort%3Aupdated-desc) + +### iOS platform team (`team-ios`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-ios%2Cfyi-ios+-label%3Atriaged-ios+no%3Aassignee+-label%3A%22will+need+additional+triage%22+-label%3A%22waiting+for+customer+response%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-ios+label%3AP0+sort%3Aupdated-asc) + +Apple's https://developer.apple.com/news should be periodically checked for updates that might affect us. + +PRs are reviewed weekly across the framework, packages, and engine repositories: + +* [iOS Framework PRs](https://github.com/flutter/flutter/pulls?q=is%3Aopen+is%3Apr+label%3Aplatform-ios+sort%3Acreated-asc+-is%3Adraft) +* [iOS Plugins PRs](https://github.com/flutter/packages/pulls?q=is%3Aopen+is%3Apr+label%3Atriage-ios+draft%3Afalse+sort%3Aupdated-asc) +* [iOS Engine PRs](https://github.com/flutter/engine/pulls?q=is%3Aopen+is%3Apr+label%3Aplatform-ios+sort%3Acreated-asc+-is%3Adraft) + +### Linux platforms team (`team-linux`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-linux%2Cfyi-linux+-label%3Atriaged-linux+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-linux+label%3AP0+sort%3Aupdated-asc) +- [Linux PRs on the engine](https://github.com/flutter/engine/pulls?q=is%3Aopen+is%3Apr+label%3A%22affects%3A+desktop%22+label%3Aplatform-linux+sort%3Aupdated-asc) +- [Linux PRs on the framework](https://github.com/flutter/flutter/pulls?q=is%3Aopen+is%3Apr+label%3A%22a%3A+desktop%22+label%3Aplatform-linux+sort%3Aupdated-asc) +- [Linux PRs on packages](https://github.com/flutter/packages/pulls?q=is%3Aopen+is%3Apr+label%3Atriage-linux+sort%3Aupdated-asc) + +### macOS platform team (`team-macos`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-macos%2Cfyi-macos+-label%3Atriaged-macos+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-macos+label%3AP0+sort%3Aupdated-asc) +- [macOS PRs on the engine](https://github.com/flutter/engine/pulls?q=is%3Aopen+is%3Apr+label%3A%22affects%3A+desktop%22+label%3Aplatform-macos+sort%3Aupdated-asc) +- [macOS PRs on the framework](https://github.com/flutter/flutter/pulls?q=is%3Aopen+is%3Apr+label%3A%22a%3A+desktop%22+platform-macos++sort%3Aupdated-asc) +- [macOS PRs on packages](https://github.com/flutter/packages/pulls?q=is%3Aopen+is%3Apr+label%3Atriage-macos+sort%3Aupdated-asc) + +### News Toolkit team (`team-news`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-news%2Cfyi-news+-label%3Atriaged-news+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-news+label%3AP0+sort%3Aupdated-asc) + +### Release team (`team-release`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-release%2Cfyi-release+-label%3Atriaged-release+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-release+label%3AP0+sort%3Aupdated-asc) + +### Text Input team (`team-text-input`) + +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22a%3A+text+input%22%2Cteam-text-input%2Cfyi-text-input+sort%3Aupdated-asc+label%3AP0+) +- [PR list](https://github.com/flutter/flutter/pulls?q=is%3Aopen+is%3Apr+sort%3Acreated-desc+draft%3Afalse+label%3A%22a%3A+text+input%22%2Cteam-text-input%2Cfyi-text-input+) +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aopen+is%3Aissue+label%3A%22a%3A+text+input%22%2Cteam-text-input%2Cfyi-text-input+no%3Aassignee+-label%3A%22triaged-design%22+-label%3A%22triaged-framework%22+-label%3A%22triaged-linux%22+-label%3A%22triaged-macos%22+-label%3A%22triaged-windows%22+-label%3A%22triaged-android%22+-label%3A%22triaged-ios%22+-label%3A%22triaged-web%22+-label%3A%22triaged-ecosystem%22+-label%3A%22triaged-engine%22+-label%3A%22triaged-tool%22+-label%3A%22triaged-text-input%22+-project%3Aflutter%2F111+) + +### Flutter Tool team (`team-tool`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-tool%2Cfyi-tool+-label%3Atriaged-tool+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-tool+label%3AP0+sort%3Aupdated-asc) +- [PR list](https://github.com/flutter/flutter/pulls?q=is%3Aopen+is%3Apr+label%3Atool+sort%3Aupdated-asc+-is%3Adraft) + +### Web platform team (`team-web`) + +- See the [Flutter Web Triage](Flutter-Web-Triage.md) page. + +### Windows platforms team (`team-windows`) + +- [Incoming issue list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-windows%2Cfyi-windows+-label%3Atriaged-windows+no%3Aassignee+-label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc) +- [P0 list](https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3Ateam-windows+label%3AP0+sort%3Aupdated-asc) +- [Windows PRs on the engine](https://github.com/flutter/engine/pulls?q=is%3Aopen+is%3Apr+label%3A%22affects%3A+desktop%22+label%3Aplatform-windows+sort%3Aupdated-asc) +- [Windows PRs on the framework](https://github.com/flutter/flutter/pulls?q=is%3Aopen+is%3Apr+label%3A%22a%3A+desktop%22+label%3Aplatform-windows+sort%3Aupdated-asc) +- [Windows PRs on packages](https://github.com/flutter/packages/pulls?q=is%3Aopen+is%3Apr+label%3Atriage-windows+sort%3Aupdated-asc) + +## Adding a new team + +To add a team: + +* Create the `team-*`, `triaged-*`, and `fyi-*` labels with the same colors as other teams' labels. +* Add the team to the list of teams in the triage bot ([the `GitHubSettings.teams` set](https://github.com/flutter/cocoon/blob/main/triage_bot/lib/engine.dart#L50)) and tell Hixie so he can restart the bot. +* Add the team to the list of excluded labels in the link at the top of this page. +* Add a section above with the incoming issue list and P0 issue list. + +# Critical triage + +Each week we have a "critical triage" meeting where we check how things are going, to make sure nothing falls through the cracks. (It's not really "critical", the name is historical.) + +During these meetings, we go through the following lists: + +* [P0](https://github.com/flutter/flutter/issues?q=is%3Aopen+label%3AP0+sort%3Aupdated-asc): all bugs should be assigned, and progress should be happening actively. There should be an update within the last week. If no progress is happening and owner cannot work on it immediately (e.g. they're on vacation, they're busy with their day job, family reasons, etc), find a new owner. +* [Bugs flagged for additional triage](https://github.com/flutter/flutter/issues?q=is%3Aopen+label%3A%22will+need+additional+triage%22+sort%3Aupdated-asc+no%3Aassignee): figure out what should be done with the bug, then remove the `will need additional triage` label. +* [flutter-pub-roller-bot](https://github.com/flutter/flutter/pulls/flutter-pub-roller-bot): check that the pub auto roller is chugging along. +* [The stale PRs](https://github.com/pulls?q=is%3Aopen+is%3Apr+archived%3Afalse+user%3Aflutter+sort%3Aupdated-asc): examine the 25 least-recently updated PRs, if the least recently updated one was updated more than 2 months ago. + +## Self test issue + +The automation that supports our triage processes will periodically file an issue with every team's label on it. After a couple of weeks, it then adds the `will need additional triage` label to send it to the attention of the "critical triage" meeting, at which point we discover how well the triage processes are going, and which teams are not following the process completely, or are understaffed for the volume of issues they are dealing with. diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Add-Flutter-Fragment-ViewPager.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Add-Flutter-Fragment-ViewPager.md new file mode 100644 index 0000000000000000000000000000000000000000..d08d93afa48afe5116e4532382cc43b4f3aa4a05 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Add-Flutter-Fragment-ViewPager.md @@ -0,0 +1,43 @@ +_**Everything in this doc and linked from this doc is experimental. These details WILL change. Do not use these instructions or APIs in production code because we will break you.**_ + +# Add Flutter as a Fragment in a ViewPager + +Tabbed navigation often expects the presence of a `ViewPager`, such that the user can swipe left/right to navigate between tabbed pages. This guide shows you how to integrate Flutter as one or more of the pages in your `ViewPager`. + +Start by implementing standard tabbed navigation in Android with a `ViewPager`. Consider following [this guide](https://developer.android.com/training/implementing-navigation/lateral). + +Next, alter your `FragmentPagerAdapter` to return a `FlutterFragment` for the desired page(s). + +```java + /** + * A {@link FragmentPagerAdapter} that returns a fragment corresponding to + * one of the sections/tabs/pages. + */ + public class SectionsPagerAdapter extends FragmentPagerAdapter { + + public SectionsPagerAdapter(FragmentManager fm) { + super(fm); + } + + @Override + public Fragment getItem(int position) { + if (position == FLUTTER_PAGE_INDEX) { + // In this case we construct a FlutterFragment that will run + // our main() method in Dart and start with an initial route of "/". + return new FlutterFragment.createDefault(); + } else { + // return some other page's Fragment + } + } + + @Override + public int getCount() { + // You need to define PAGE_COUNT + return PAGE_COUNT; + } + } +``` + +You should now have a Flutter UI as one or more pages within your tabbed navigation. + +You may notice a delay between creation of your `FlutterFragment` and the display of your Flutter UI. This delay is caused by the warm-up time for the `FlutterEngine`. This warm-up issue a standard concern that applies to all uses of Flutter, including `FlutterActivity`. The way to minimize this visual delay is to use pre-warmed `FlutterEngine`s. Please see [the page about pre-warming FlutterEngines](Experimental-Reuse-FlutterEngine-across-screens.md). \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Add-Flutter-View.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Add-Flutter-View.md new file mode 100644 index 0000000000000000000000000000000000000000..007704adcce02ec010c54fec1c0fdd9e9a5583b5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Add-Flutter-View.md @@ -0,0 +1,67 @@ +_**Everything in this doc and linked from this doc is experimental. These details WILL change. Do not use these instructions or APIs in production code because we will break you.**_ + +# Add a Flutter View + +Flutter can be added to an Android app as a single `View` in an `Activity`'s `View` hierarchy. + +Before adding Flutter as a single `View`, you should consider if it is possible to add Flutter as a `Fragment` to reduce your development burden. + +* [How to use a `FlutterFragment`](Experimental-Add-Flutter-Fragment-ViewPager.md) + +If you really need to add Flutter as a single `View` then do the following. + +## How to use FlutterView + +### Create and start a FlutterEngine + +Create and start a `FlutterEngine` by following the appropriate instructions. See the [FlutterEngine page](Experimental-Reuse-FlutterEngine-across-screens.md) + +### Create a FlutterView and add to layout + +```java +// Instantiate a new FlutterView. +FlutterView flutterView = new FlutterView(this); + +// Add your FlutterView wherever you'd like. In this case we add +// the FlutterView to a FrameLayout. +FrameLayout frameLayout = findViewById(R.id.framelayout); +frameLayout.addView(flutterView); +``` + +Your `FlutterView` will not render anything at this point because it is not backed by any particular Flutter app. + +### Attach your FlutterView to your FlutterEngine + +```java +flutterView.attachToFlutterEngine(flutterEngine); +``` + +At this point you should see your Flutter UI rendering to your `FlutterView`, and touch interaction should work. + +### Create and configure platform plugin + +TODO(mattcarroll): update this info about the platform plugin + +Fundamental communication between the Android platform and your Flutter app takes place over a `MethodChannel` with the name `"flutter/platform"`. For example, Android's `onPostResume()` call must be forwarded over the `flutterPlatformChannel` with the message `"AppLifecycleState.resumed"`. + +```java + platformPlugin = new PlatformPlugin(activity); + MethodChannel flutterPlatformChannel = new MethodChannel( + flutterEngine.getDartExecutor(), + "flutter/platform", + JSONMethodCodec.INSTANCE + ); + flutterPlatformChannel.setMethodCallHandler(platformPlugin); +``` + +### Add accessibility support + +TODO(mattcarroll) + +### Add support for plugins + +TODO(mattcarroll) + +### Handling orientation change + +TODO(mattcarroll) \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Launch-Flutter-with-non-main-entrypoint.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Launch-Flutter-with-non-main-entrypoint.md new file mode 100644 index 0000000000000000000000000000000000000000..793d7f82d454d49db8c4568a35e72297419cb605 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Launch-Flutter-with-non-main-entrypoint.md @@ -0,0 +1,119 @@ +_**Everything in this doc and linked from this doc is experimental. These details WILL change. Do not use these instructions or APIs in production code because we will break you.**_ + +# Launch Flutter with non-main entrypoint + +Typically, a Flutter app begins execution at the Dart method called `main()`, however this is not required. Developers can specify a different Dart entrypoint: + +## FlutterActivity + +Two options are available to specify a non-standard Dart entrypoint for a `FlutterActivity`. + +### Option 1: AndroidManifest.xml meta-data + +Specify your desired Dart entrypoint as `meta-data` in your `AndroidManifest.xml`: + +```xml + + + + + +``` + +Option 2: Subclass `FlutterActivity` and override a method + +Override the `getDartEntrypointFunctionName()` method: + +```java +public class MyFlutterActivity extends FlutterActivity { + @Override + @NonNull + public String getDartEntrypointFunctionName() { + return "myMainDartMethod"; + } +} +``` + +## FlutterFragment + +Two options are available to specify a non-standard Dart entrypoint for a `FlutterFragment`. + +### Option 1: Use FlutterFragmentBuilder + +```java +// Example for a FlutterFragment that creates its own FlutterEngine. +// +// Note: a Dart entrypoint cannot be set when using a cached engine because the +// cached engine has already started executing Dart. +FlutterFragment flutterFragment = new FlutterFragment + .withNewEngine() + .dartEntrypoint("myMainDartMethod") + .build(); +``` + +### Option 2: Subclass FlutterFragment + +```java +public class MyFlutterFragment extends FlutterFragment { + @Override + @NonNull + public String getDartEntrypointFunctionName() { + return "myMainDartMethod"; + } +} +``` + +## FlutterEngine + +When manually initializing a `FlutterEngine`, you take on the responsibility of +invoking the desired Dart entrypoint, even if you want the standard `main()` method. +The following examples illustrate how to execute a Dart entrypoint with a +`FlutterEngine`. + +Example using standard entrypoint: + +```java +// Instantiate a new FlutterEngine. +FlutterEngine flutterEngine = new FlutterEngine(context); + +// Start executing Dart using a default entrypoint, which resolves to "main()". +flutterEngine + .getDartExecutor() + .executeDartEntrypoint( + DartEntrypoint.createDefault(); + ); +``` + +Example using custom entrypoint: + +```java +// Instantiate a new FlutterEngine. +FlutterEngine flutterEngine = new FlutterEngine(context); + +// Start executing Dart using a custom entrypoint. +flutterEngine + .getDartExecutor() + .executeDartEntrypoint( + new DartEntrypoint( + FlutterMain.findAppBundlePath(), + "myMainDartMethod" + ) + ); +``` + +# Avoid Tree Shaking in Release + +When you build in release mode, your Dart code is tree-shaken. This means that the compiler removes any Dart code that it thinks you're not using. This includes your special entrypoints. To avoid crashing in release mode as a result of tree-shaking, be sure to place the following `@pragma` above each of your custom entrypoints. + +```dart +@pragma('vm:entry-point') +void myMainDartMethod() { + // implementation +} +``` \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Reuse-FlutterEngine-across-screens.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Reuse-FlutterEngine-across-screens.md new file mode 100644 index 0000000000000000000000000000000000000000..4cc4963cbf9a55b3b694ac1e6182ed1603a0db84 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Reuse-FlutterEngine-across-screens.md @@ -0,0 +1,63 @@ +_**Everything in this doc and linked from this doc is experimental. These details WILL change. Do not use these instructions or APIs in production code because we will break you.**_ + +# Re-use a FlutterEngine across screens + +A `FlutterEngine` is responsible for executing Dart code, rendering a Flutter UI to a `FlutterView`, and connecting plugins to the core Flutter system. Each instance of `FlutterEngine` comes with a non-trivial "warm-up" time, which sets up a group of dedicated threads and other resources. + +Due to the warm-up time of a `FlutterEngine` instance, developers may choose to cache one or more instances of `FlutterEngine`s and re-use those instances across different `Activity`s and/or `Fragment`s in their Android app. This document explains how to cache and re-use `FlutterEngine`s, as well as handle nuances when re-using those `FlutterEngine`s. + +## Ensure Flutter is initialized + +Flutter must be initialized before instantiating a single `FlutterEngine` instance. To ensure that Flutter is initialized, invoke the following methods before instantiating a `FlutterEngine`. + +```java +FlutterMain.startInitialization(...); +FlutterMain.ensureInitializationComplete(...); +``` + +## Initializing FlutterEngines + +A `FlutterEngine` must go through 2 steps to be fully initialized. First, an instance is instantiated. Second, the `FlutterEngine` is instructed to execute a Dart entrypoint, e.g., `main()`. + +```java +// Instantiate a FlutterEngine. +FlutterEngine engine = new FlutterEngine(appContext); + +// Define a DartEntrypoint +DartExecutor.DartEntrypoint entrypoint = new DartExecutor.createDefault(); + +// Execute the DartEntrypoint within the FlutterEngine. +engine.getDartExecutor().executeDartEntrypoint(entrypoint); +``` + +To cache one or more `FlutterEngine`s, store the initialized `FlutterEngine`s in a central place that you can access from your desired `Activity`s and `Fragment`s. You could choose to store these `FlutterEngine`s in your `Application` subclass, or you could store them in a statically accessible location of your choice. This choice is up to you, and should consider your specific application architecture and development practices. + +## Dart entrypoint restrictions + +A `FlutterEngine` can only execute a Dart entrypoint one time. Once a `FlutterEngine` has started executing Dart code, it will continue to execute that Dart code until the `FlutterEngine` is disposed. To re-use a `FlutterEngine` that needs to display different experiences at different times you will need to find an approach that accomplishes your goals without restarting Dart execution. Below are a couple options. + +### Using a Navigator with routes + +The `Navigator` widget in Flutter already has the ability to switch experiences at runtime. We call these different experiences `routes`, and your app is probably already using them. Typically, `routes` are controlled with Dart code, but the Android embedding also has a navigation system channel that allows you to `pushRoute(...)` and `popRoute(...)`. The `NavigationChannel` can be retrieved from a `FlutterEngine` instance. + +```java +myFlutterEngine.getNavigationChannel().pushRoute("myPage"); +``` + +You'll need to ensure that pushing a route at the desired time has the desired effect in your app. This approach of pushing routes may not work for all apps. + +### Using method channels and a custom widget + +Custom method channels offer a mechanism to implement your own solution for jumping between experiences. Method channels allow you to send any message you would like to your Flutter app, and then take whatever action you'd like. + +Start by [setting up a method channel](https://flutter.dev/docs/development/platform-integration/platform-channels) with the navigation messages that you're interested in sending. + +Once your method channel is setup, respond to your messages on the Flutter/Dart side by switching out your top-level widget, or by switching out any other widget in your hierarchy that makes sense for your use-case. + +TODO(mattcarroll): add a code example here. + +## Re-using FlutterEngines across screens + +Re-using the same `FlutterEngine` across screens that are significantly separated should work as described above. However, developers must consider the possibility that one Flutter experience might show through to another. For example, consider an `Activity` that displays `flutterEngineA`, which then launches a native Android dialog, and that dialog is a `Fragment` that also displays `flutterEngineA`. This situation won't work because both the dialog and the underlying `Activity` are simultaneously visible and a single `FlutterEngine` can only render a single UI at a given moment. + +When two Flutter experiences are shown back to back, you must carefully consider the possibility that Flutter might be instructed to show two different UIs at the same time. If such a situation occurs, you will need to switch your strategy to cache two `FlutterEngine`s instead of one, or you'll need to allow a new `FlutterEngine` to be instantiated for the second Flutter experience. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Use-old-plugins-with-new-embedding.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Use-old-plugins-with-new-embedding.md new file mode 100644 index 0000000000000000000000000000000000000000..25d7f599ae4eeb37d831944108e882249b75befc --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Experimental-Use-old-plugins-with-new-embedding.md @@ -0,0 +1,65 @@ +Flutter's v2 Android embedding includes reflection code that should find and register all plugins listed in your `pubspec.yaml` file without any intervention on your part. If your desired plugins are not registered automatically, please file an issue. + +### Partial plugin registration + +To prevent Flutter from registering all plugins and instead register only specific plugins of your choosing, do the following. + +First, construct a `FlutterEngine` either as a [cached `FlutterEngine`](https://flutter.dev/docs/development/add-to-app/android/add-flutter-screen#step-3-optional-use-a-cached-flutterengine), or by overriding `provideFlutterEngine()` in [`FlutterActivity`](https://api.flutter.dev/javadoc/io/flutter/embedding/android/FlutterActivity.html#provideFlutterEngine-android.content.Context-) or [`FlutterFragment`](https://api.flutter.dev/javadoc/io/flutter/embedding/android/FlutterFragment.html#provideFlutterEngine-android.content.Context-) such that the `FlutterEngine` instance doesn't automatically register plugins. + +```java +FlutterEngine flutterEngine = new FlutterEngine( + context, + FlutterLoader.getInstance(), + new FlutterJNI(), + dartVmArgs, // or an empty array if no args needed + false // this arg instructs the FlutterEngine NOT to register plugins automatically +); +``` + +Second, register the plugins that you want. If you overrode `provideFlutterEngine()` in `FlutterActivity` or `FlutterFragment` then override `configureFlutterEngine()` to add plugins: + +```java +public void configureFlutterEngine(FlutterEngine engine) { + // The ShimPluginRegistry is how the v2 embedding works with v1 plugins. + ShimPluginRegistry shimPluginRegistry = new ShimPluginRegistry( + flutterEngine, + new PlatformViewsController() + ); + + // Add any v1 plugins to the shim + // MyV1Plugin.registerWith( + // shimPluginRegistry.registrarFor("com.my.package.MyV1Plugin") + // ); + + // Add any v2 plugins that you want + // engine.getPlugins().add(new MyPlugin()); +} +``` + +If you went with the cached `FlutterEngine` approach instead of `FlutterActivity` and `FlutterFragment` method overrides, then you can add plugins whenever you'd like. You can even add them immediately after instantiating your `FlutterEngine`. However, be advised that some v1 plugins expect an `Activity` to be available immediately upon registration. This will not be the case unless you add plugins in `configureFlutterEngine()` as shown earlier. + +```java +// Instantiate cached FlutterEngine. +FlutterEngine flutterEngine = new FlutterEngine( + context, + FlutterLoader.getInstance(), + new FlutterJNI(), + dartVmArgs, // or an empty array if no args needed + false // this arg instructs the FlutterEngine NOT to register plugins automatically +); + +// Immediately add plugins to the cached FlutterEngine. +// The ShimPluginRegistry is how the v2 embedding works with v1 plugins. +ShimPluginRegistry shimPluginRegistry = new ShimPluginRegistry( + flutterEngine, + new PlatformViewsController() +); + +// Add any v1 plugins to the shim +// MyV1Plugin.registerWith( +// shimPluginRegistry.registrarFor("com.my.package.MyV1Plugin") +// ); + +// Add any v2 plugins that you want +// engine.getPlugins().add(new MyPlugin()); +``` \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Flutter-migrate.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Flutter-migrate.md new file mode 100644 index 0000000000000000000000000000000000000000..b648b9562b3710ad26fee86b6b1b53d412a13b9a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Flutter-migrate.md @@ -0,0 +1,63 @@ +_This refers to a [project](https://github.com/flutter/packages/tree/main/packages/flutter_migrate) that is incomplete and is not currently maintained._ + +# Flutter migrate tool + +Flutter projects that were created with old versions of flutter tend to slowly become outdated and sometimes do not have access to new flutter features. + +The `flutter_migrate` tool is a set of commands that helps you migrate legacy flutter projects to modern flutter project templates. This process will typically update your dependencies, add access to new flutter features, and improve resilience and robustness against future updates. + +Flutter migrate works best for small to medium sized projects that are primarily implemented in flutter/dart. + +The flutter migrate tool will generate a staging directory where you will be able to preview changes and resolve any conflicts before committing the changes to your project. + +## Prepare your project for migration + +Before running the migrate tool, your project must be set up as a git repository and have no uncommitted changes. This is to ensure that the migration will always be able to be rolled back if needed. The migrate tool itself also requires git to function. + +## Start the migration + +To start the migration process, enter the root directory of your flutter project and run: + + $ flutter migrate start + +It is normal for this command to take a while to run. A staging directory called `migrate_staging_directory` will be created in your flutter project where the suggested changes are located. The staged files are the migrated and merged versions. For some projects, there may be merge conflicts between flutter-generated code changes and your own changes. + +To view the status of your current started migration, run: + + $ flutter migrate status + +This will display an overview of the diffs, files changed, added, and deleted, as well as any files with merge conflicts. + +## Resolve conflicts + +Any merge conflicts must be resolved before applying the migration. The status command will list the discovered conflicts in the staging directory. These conflicts should either be fixed manually in the staging directory by directly modifying the staged files or optionally resolved using the resolve-conflicts wizard if one of the versions should be accepted without changes. + +The resolve-conflicts wizard helps process routine merge conflicts quickly. Many projects will find that user changes to files like AndroidManifest.xml will be caught as a conflict. In most cases, it is desired to just keep your manual changes instead of reverting to the default template manifest. The wizard can help quickly resolve these types of conflict. Run the resolve-conflicts wizard with: + + $ flutter migrate resolve-conflicts + +The wizard will display each conflict and present the option to accept the new template version, keep the existing version, or skip the conflict and resolve it manually later. After each file, the wizard will ask to commit the changes or not. + +## Apply the migration + +When all conflicts are resolved and the changes are to your liking, the migration should be applied to the project. The contents of the staging directory will be moved into the project itself, overwriting the existing files. To apply, run: + + + $ flutter migrate apply + +After applying the migration, all changes can be handled via git commands. It is recommended to now build your app for all your target platforms to ensure the migration was successful. Although the migration tool typically produces working apps, it is possible in complex projects for errors to occur when merging or resolving conflicts. If the project is left in a broken state, it is easy to undo the migration by running: + + $ git reset --hard HEAD + +Newly added files can be removed with: + + $ git clean -n (preview untracked files to be cleaned) + $ git clean -f (delete untracked files) + +## Aborting a staged migration + +If the staged migration is no longer desired, you can abort the migration by running: + + $ flutter migrate abort + +This will delete the staging directory and your project will be left untouched. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/IntelliJ---Flutter-Setup-Tips-and-Tricks.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/IntelliJ---Flutter-Setup-Tips-and-Tricks.md new file mode 100644 index 0000000000000000000000000000000000000000..a51ce380cb47ec423b2502a45db2520201117abe --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/IntelliJ---Flutter-Setup-Tips-and-Tricks.md @@ -0,0 +1,82 @@ +IntelliJ is a full-featured IDE; it supports refactorings, code navigation, debugging, searching, and source control integration. + +The following is a subjective take on getting IntelliJ to be a bit more lightweight (and slightly speedier) editor. Your mileage may vary. + +## Less Chrome + +Less is more! You can hide the IntelliJ toolbar and status line. You're still left with IntelliJ's tool buttons - buttons around the exterior allowing you to toggle visibility of different views - and the navigation bar, for common run actions. + +From the View menu, toggle off the Toolbar and Status Bar: + +![](http://i.imgur.com/54choqz.png) + +## Breadcrumbs + +The breadcrumbs view shows at the top of each editor. This view adds visual noise to the UI. To disable it, open the Settings view (ctrl-alt-s) and search for 'breadcrumbs'. + +![](http://i.imgur.com/Wkdskls.png) + +## Line numbers + +Perhaps more controversially, you can disable line numbers in the UI as well. Similarly to disabling breadcrumbs, open the Settings dialog and search for 'line numbers'. + +![](http://i.imgur.com/PDa6qtZ.png) + +## Code folding + +Some people disable it. Whether it adds value is highly subjective; your mileage may vary. In Settings, search for 'code folding'. Uncheck all the checkboxes under 'collapse by default'. + +## The structure view + +Also called the outline view in other tools. If you have a Dart file open this view will show the class and method structure for the file. This can be invaluable for quickly getting a sense of the structure of a file and for knowing where you are in one. + +By default this is inline with the Project view on the left side of the IDE window. This can make it difficult to see your project structure and the structure of your current library at the same time. You can drag the various views around to dock in exterior of your window. To experiment, drag the 'Structure' tab from the left side of the window and dock it on the right-hand side: + +![](blob:http://imgur.com/2b8659c2-a529-400c-ba56-4008e2e84cf9) + +## Synchronize views + +When some people navigate around files in a project, and within the current file, they like the project view and the structure view to stay synchronized with the selection. + +From the Project view, click on the gear icon, and ensure that 'Autoscroll to Source' and 'Autoscroll from Source' are checked: + +![](http://i.imgur.com/LuHDNxY.png) + +And from the Structure view, in the toolbar, ensure that the two icons for 'Autoscroll to Source' and 'Autoscroll from Source' are selected: + +![](http://i.imgur.com/SFj4Q2l.png) + +## Darcula + +Obviously a critical choice when developing - after coming down on one side or the other of the tabs-vs-spaces debate - is to choose a light or dark color theme. 😛 If you prefer a dark theme, you're in good company, with [52.5%](http://stackoverflow.com/research/developer-survey-2015#tech-ide) of other developers. + +To set your UI theme to Darcula open the Settings and, under Appearance & Behavior > Appearance, adjust the value of the 'Theme' chooser. + +![](http://i.imgur.com/3t0PgJ2.png) + +## IDE layout + +Some people prefer to have their IDE views positioned so that they are able to see the Project view, the Structure view, and the Dart Analysis view (errors and warnings) at once. Some people think of this as their +[work triangle](https://en.wikipedia.org/wiki/Kitchen_work_triangle), +similar to how you optimize for frequent tasks when designing a kitchen. After some fussing, here's a typical IDE layout: + +![](http://i.imgur.com/b3CFeh0.png) + +## Remove unused plugins + +IntelliJ (especially IntelliJ Ultimate) ships with a lot of plugins installed by default. Many of these plugins are harmless; a few may consume memory and CPU at various times. To disable plugins, open the Settings view and select the 'Plugins' category. Some people err on the side of only disabling plugins they clearly won't use. + +## Community Edition vs Ultimate? + +The two versions of IntelliJ are very similar. Ultimate includes plugins for web development; if web development is not an important use case for you, you can prefer to use the community edition. It has significantly fewer plugins installed than the Ultimate edition. + +## Adjust the default heap + +The recommended way of changing the JVM options in IntelliJ is from the Help | Edit Custom VM Options menu. This action will create a copy of the .vmoptions file in the IDE config directory and open an editor where you can change them (see also: +[configuring VM options](https://intellij-support.jetbrains.com/hc/en-us/articles/206544869-Configuring-JVM-options-and-platform-properties)). + +Current default values for IntelliJ: + +`-Xms128m -Xmx750m` + +Increase these for fun and profit. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Manual-Engine-Roll-with-Breaking-Commits.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Manual-Engine-Roll-with-Breaking-Commits.md new file mode 100644 index 0000000000000000000000000000000000000000..9a6e4148d2ba1831ef286bcbea8253e877d48fa7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Manual-Engine-Roll-with-Breaking-Commits.md @@ -0,0 +1,13 @@ +Due to the newly added framework presubmit tests, if your engine commit breaks the framework in some way, **build_and_test_host** will likely catch it. In some cases, that breakage is intended and it requires a subsequent framework change (a.k.a., a manual engine roll) to fix the breakage. + +While the breaking commit landed in the engine tree but the manual engine roll has not landed in the framework tree, all engine PRs could fail **build_and_test_host** unless those PRs are created based on an older engine tree without that breaking commit. + +Therefore, for the author of the breaking commit that needs a manual roll, please notify others in +* Flutter engine, +* Flutter & Dart, +* Flutter & Skia chat rooms, +* and anyone who's rolling into the Flutter engine tree. + +Feel free to @all to grab attentions as many people probably will skip any message without a red dot. + +For authors of other PRs: please hold your PR until the manual roll finishes and rerun build_and_test_host for a green landing if it's not urgent. If your PR needs to fix something urgently, you may still land it on red build_and_test_host with an explicit explanation that the redness is caused by another commit. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Multi-device-debugging-in-VS-Code.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Multi-device-debugging-in-VS-Code.md new file mode 100644 index 0000000000000000000000000000000000000000..28d9bc01391700db1714438b938fd1d6d112d688 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Multi-device-debugging-in-VS-Code.md @@ -0,0 +1,75 @@ +The Flutter plugin for Visual Studio code has been updated to provide _experimental_ support for [Visual Studio Code’s multi-target debugging](https://code.visualstudio.com/docs/editor/debugging#_multitarget-debugging). + +## Requirements +- You must be on latest Flutter master channel for concurrent builds to not overwrite each other and cause build failures. + +## Known Issues +- The Hot Reload button on the debug toolbar does all sessions, but Hot Restart only does the active session + + +## Setup +To debug multiple devices concurrently you should set up a launch config for each device that has the `deviceId` field set (this is the same ID you'd pass to `flutter run -d xxx`). Open the launch config by clicking `Debug -> Open Configurations`. Add a `compound` config at the bottom that will launch both (or more) configurations at the same time: + +```json +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Current Device", + "request": "launch", + "type": "dart" + }, + { + "name": "Android", + "request": "launch", + "type": "dart", + "deviceId": "android" + }, + { + "name": "iPhone", + "request": "launch", + "type": "dart", + "deviceId": "iphone" + }, + ], + "compounds": [ + { + "name": "All Devices", + "configurations": ["Android", "iPhone"], + } + ] +} +``` + +Once saved, the compound configuration will show up in the drop-down at the top of the Debug side bar. + +## Running +Selecting the compound config on the Debug side bar and clicking `Debug -> Start Debugging` (or `Start Without Debugging`) will launched debug sessions for each device at the same time. + +_Note: This may be slow because there are multiple concurrent builds (it may be faster on subsequent builds). You will also see multiple progress notification windows during the builds (we can likely improve this, but right now they just run without knowledge of each other so spawn their own notifications)._ + +When there are multiple active debug sessions, the debug toolbar will show a dropdown that lets you select the "active" debug session. + +Actions on the debug toolbar will be sent only to this session (so you can step individually). The Debug Console will show a similar dropdown to switch between the output of each session. + +The Variables and Watch panels on the Debug sidebar will be applied to the active debug session (being re-evaluated as you switch between them), though the Call Stack will show all sessions together, grouped by name. + +All the usual functionality like hot-reload-on-save should work. Terminating an app should close only that single debug session. + +## Troubleshooting +The following are tips and tricks learned from connecting a large number of devices for simultaneous debugging (up to 9 at a time have been tested with these techniques). + +### Hardware +- Make sure to use high quality USB cables, e.g. Anker Powerline+ and/or the official Apple cables +- Make sure to use a high quality USB hub, e.g. Anker 7-Port USB 3.0 Data Hub +- If you feel the device buzzing periodically, it may be connected and disconnecting, which isn't conducive to good debugging + +### Chrome OS +- Make sure that the ChromeOS box is in developer mode and supports adb deployment +- Make sure the left port is used for the connection (at least for the Google Pixel family of Chrome OS devices) +- If not showing in ```flutter devices```, reboot the Chrome OS device with the USB cable in place + +### Misc +- Changes not being replicated to the web and/or desktop app via hot reload? Clicking on the app should cause the changes to be replicated. +- Starting a debugging session always failing? Make sure that you're using the proper device name, e.g. Apple likes to use smart quotes in their device names instead of the standard apostrophe, e.g. ```Bob’s iPad``` instead of ```Bob's iPad```. +- If you're still having trouble, make sure to test each configuration on its own via the Debug Sidebar instead of choosing the device to debug from the status bar -- the one in the status bar is going to ignore your launch settings and hide your errors. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Upgrading-Flutter-projects-from-using-PlatformMessages-to-using-channels.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Upgrading-Flutter-projects-from-using-PlatformMessages-to-using-channels.md new file mode 100644 index 0000000000000000000000000000000000000000..9338e18833ede33714f7691216beb272104ad17e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Upgrading-Flutter-projects-from-using-PlatformMessages-to-using-channels.md @@ -0,0 +1,158 @@ +(This wiki page applies to people migrating code written before March 2017. It is unlikely to still be relevant.) + +# Introduction +Prior to pull requests [flutter/flutter#8837](https://github.com/flutter/flutter/pull/8837) and [flutter/engine#3482](https://github.com/flutter/engine/pull/3482), both merged on March 17 2017, communication between Flutter app components written in Dart and host platform app components written for Android or iOS was accomplished by sending and receiving string/JSON messages using methods defined in the following types: + +* `PlatformMessages` (Dart) +* `FlutterView` (Android) +* `FlutterViewController` (iOS) + +These methods have been removed, leaving only methods for sending unencoded binary messages. A new channel concept has been introduced in their place: + +* [`PlatformMessageChannel`](https://docs.flutter.io/flutter/services/PlatformMessageChannel-class.html), [`PlatformMethodChannel`](https://docs.flutter.io/flutter/services/PlatformMethodChannel-class.html) (Dart) +* `FlutterMessageChannel`, `FlutterMethodChannel` (Android, iOS) + +The main goals of the new API are to achieve + +* higher-level communication: asynchronous method calls and event streams +* less boilerplate and redundancy +* a more symmetric API across Dart, Android, and iOS + +The following sections detail how to port code written against the old API. + +# Flutter side + +With the new API you define in one place the name and type of the channel you need: + + var fooChannel = new PlatformMessageChannel('foo', const StringCodec()); + var barChannel = new PlatformMethodChannel('bar', const JSONMethodCodec()); + +There are four codecs to choose from: binary, string, JSON, and standard. The standard codec employs efficient binary serialization of JSON-like values, supporting also buffers as leaf values (e.g. Dart `TypedData`, Java primitive arrays, Cocoa `NSData`). + +Once you have a channel, you can use it in multiple places without repeating the information needed for its creation. + +## Sending messages to platform + +Replace code like this + + String reply = await PlatformMessages.sendString('foo', myString); + +with code like this + + String reply = await fooChannel.send(myString); + +## Receiving messages from platform + +Replace code like this + + PlatformMessages.setStringMessageHandler('foo', (String message) async { + // do something, then + return reply; + }); + +with code like this + + fooChannel.setMessageHandler((String message) async { + // do something, then + return reply; + }); + +## Invoking platform methods + +Replace code like this + + var arguments = { 'argA': 'hello', 'argB': 42 }; + var message = { + 'method': 'someMethod', + 'args': >[arguments], + }; + dynamic reply = await PlatformMessages.sendJSON('bar', message); + // what about errors? + +or this + + var arguments = { 'argA': 'hello', 'argB': 42 }; + dynamic reply = await PlatformMessages.invokeMethod( + 'bar', + 'someMethod', + >[arguments], + ); + // what about errors? + +with code like this + + try { + dynamic result = await barChannel.invokeMethod( + 'someMethod', + { 'argA': 'hello', 'argB': 42 }, + ); + // use result + } on PlatformException catch(e) { + // handle error + } + +## Receiving method calls from platform code + +Replace code like this + + PlatformMessages.setJSONMessageHandler('bar', (dynamic methodCall) async { + String method = methodCall['method']; + List arguments = methodCall['args']; + // handle call then + return result; + // but what about errors? + }); + +with code like this + + barChannel.setMethodCallHandler((MethodCall call) async { + String method = call.method; + dynamic arguments = call.arguments; + // handle call then + return result; + // or + throw new PlatformException(errorCode, anErrorMessage, someDetails); + }); + +See [platform_channel](../../examples/platform_channel/lib/main.dart) for an example. + +## Android side + +Similar to Flutter side, using `FlutterMessageChannel` and `FlutterMethodChannel` from `io.flutter.plugin.common`. + + FlutterView view = ... + FlutterMessageChannel fooChannel = + new FlutterMessageChannel<>(view, "foo", StringCodec.INSTANCE); + + fooChannel.send(myString); + + // or if you need to handle a reply: + + fooChannel.send(myString, new ReplyHandler() { + public void onReply(String reply) { + // do something with reply + } + }); + +[API documentation](https://docs.flutter.io/javadoc/). See [platform_channel](../../examples/platform_channel/android/app/src/main/java/com/example/platformchannel/MainActivity.java) for another example. + +## iOS side + +Similar to Flutter side, using `FlutterMessageChannel` and `FlutterMethodChannel` from `FlutterChannels.h`. + + FlutterViewController controller = ... + FlutterMessageChannel* fooChannel = + [FlutterMessageChannel messageChannelWithName:@"foo" + binaryMessenger:controller + codec:[FlutterStringCodec sharedInstance]]; + + [fooChannel sendMessage:myString]; + + // or if you need to handle a reply: + + [fooChannel sendMessage:myString replyHandler:^(id reply) { + // do something with (NSString*)reply + }]; + + +[API documentation](https://github.com/flutter/engine/blob/main/shell/platform/darwin/ios/framework/Headers). See [platform_channel](../../examples/platform_channel/ios/Runner/AppDelegate.m) for another example. \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/User-documentation-index.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/User-documentation-index.md new file mode 100644 index 0000000000000000000000000000000000000000..b5161c26e80e6289604265241dd4c056561e44a9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/User-documentation-index.md @@ -0,0 +1,57 @@ + + + +Flutter's user-facing documentation should all be on the Flutter web site and the API documentation site: + +- https://docs.flutter.dev/ + - [Release notes](https://docs.flutter.dev/release/release-notes) +- https://api.flutter.dev/ + +Historically, experimental documentation was sometimes first written on this wiki and later moved to the web site. This is +now discouraged but some of the content created in this way still exists and is listed below. + +_Contributors: please consider moving this content to the web site or deleting it if it is no longer applicable!_ + +## Old documentation + +## General + + +- [Apple Silicon support](../platforms/desktop/macos/Developing-with-Flutter-on-Apple-Silicon.md) +- [Bad Builds](../releases/Bad-Builds.md) +- [Binding to native code via FFI](https://flutter.dev/docs/development/platform-integration/c-interop) +- [Data-driven Fixes](../contributing/Data-driven-Fixes.md) +- [Flutter CLI crash reporting](https://docs.flutter.dev/reference/crash-reporting) +- [Flutter CLI custom embedder support](../tool/Using-custom-embedders-with-the-Flutter-CLI.md) +- [Flutter Test Fonts](../contributing/testing/Flutter-Test-Fonts.md) +- [Hybrid Composition](../platforms/Hybrid-Composition.md) +- [IntelliJ - Flutter Setup Tips and Tricks](IntelliJ---Flutter-Setup-Tips-and-Tricks.md) +- [JIT release builds](../engine/JIT-Release-Modes.md) +- [Making animated GIFs of Flutter apps](../contributing/issue_hygiene/Making-animated-GIFs-of-Flutter-apps.md) +- [Multi-device debugging in VS Code](Multi-device-debugging-in-VS-Code.md) +- [Obfuscating Dart Code](https://flutter.dev/docs/deployment/obfuscate) +- [Reduce shader compilation jank using SkSL warm up](https://flutter.dev/docs/perf/rendering/shader) +- [Upgrading Flutter projects from using PlatformMessages to using channels](Upgrading-Flutter-projects-from-using-PlatformMessages-to-using-channels.md) +- [Writing Effective Tests](../contributing/testing/Writing-Effective-Tests.md) + +### Android + +- [Android Fast Start](../tool/Fast-Start.md) +- [Android Platform Views](../platforms/android/Android-Platform-Views.md) +- [How Flutter apps are compiled with Gradle for Android](../platforms/android/How-Flutter-apps-are-compiled-with-Gradle-for-Android.md) +- [Hybrid Composition](../platforms/Hybrid-Composition.md#android) +- [Multidex](../platforms/android/Android-Multidex-support.md) +- [Texture Layer Hybrid Composition](../platforms/android/Texture-Layer-Hybrid-Composition.md) + +### iOS + +- [Hybrid Composition iOS](../platforms/Hybrid-Composition.md#ios) + +### Web + +- [Debugging issues on the Web](../platforms/web/Debugging-issues-on-the-Web.md) +- [Running Flutter Driver tests with Web](../contributing/testing/Running-Flutter-Driver-tests-with-Web.md) + +### Release notes + +- [Hotfixes to the Stable Channel](../../CHANGELOG.md) diff --git a/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Workarounds-for-common-issues.md b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Workarounds-for-common-issues.md new file mode 100644 index 0000000000000000000000000000000000000000..8805ca5507890b385a66f516b087e3f4fc14086d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/docs/wiki_archive/Workarounds-for-common-issues.md @@ -0,0 +1,177 @@ +Common issues Flutter developers might run into and recipes how to fix or work around. + +# Flutter Recipes + +## Flutter installation + +### Flutter installation corrupted + +The Flutter install directory is in an inconsistent state and that causes all kinds of troubles. + +#### Symptoms + +// TODO + +#### Causes + +Unclear + +#### Ways to fix + +- Run the following commands in the Flutter install directory: +```sh +git clean -xfd +git stash save --keep-index +git stash drop +git pull +flutter doctor +``` + +> [!CAUTION] +> The `git stash drop` command drops customizations you might have made to the Flutter installation. + +#### Related information +- https://github.com/flutter/flutter/issues/25220 +- https://github.com/flutter/flutter/issues/1963 + +## Flutter project files + +### Generated project files outdated + +#### Symptoms +// TODO + +#### Causes + +When a project is created with `flutter create foo` several files in the `ios/` and `android/` sub-directories are created. + +Newer Flutter versions might generate these files a bit differently and projects created with older Flutter versions might cause issues. + +#### Ways to fix + +- Delete the `ios/` and `android/` directories and run `flutter create .` to re-generate these directories. + +> [!CAUTION] +> Custom changes will be lost and need to be re-applied. +> This is easiest if the project is committed to a version control system like Git. + + +#### Related information +- https://github.com/flutter/flutter/issues/14974 +- https://github.com/flutter/flutter/issues/12573 +- https://github.com/flutter/flutter/issues/12983 +- https://github.com/flutter/flutter/issues/9827 + + +## Pub dependencies + +### Corrupted cache + +Especially with plugin packages it was seen several times that the package in the pub cache was corrupted. + +#### Symptoms +Usually syntax errors at build time about code in dependencies. + +#### Causes + +Unknown. +IDEs or editors used by developers might not prevent editing plugin files and when they navigate into plugin code they might accidentally modify the code. + +#### Ways to fix + +- Run `pub cache repair` +This might take quite some time and re-downloads every package in the cache, even outdated versions that might not be used anymore by any project on disk. + +- Delete `~/.pub-cache/hosted` and/or `~/.pub-cache/git` (for Git dependencies). +This requires to run `flutter packages get` in all active projects on your machine afterwards. + +- Delete a specific package or package version. +Look up the exact path in cache for a specific package in the `.packages` file of your project. +For example for `firebase_auth` +``` +firebase_auth:file:///Users/someuser/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.6/lib/ +``` +To fix this package delete `///Users/someuser/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.6/` (`lib/` removed) and run `flutter packages get`. + +#### Related information +- https://www.dartlang.org/tools/pub/cmd/pub-cache +- https://www.dartlang.org/tools/pub/environment-variables + +## Proxy + +### Flutter commands can not access the Internet + +In a network where the Internet can only be reached through a proxy and Flutter commands fail. + +#### Symtoms + +// TODO + +#### Causes + +Proxy setting incomplete or invalid. + +#### Related information +(none yet) + +### Hot-reload not working + +When a proxy is configured hot-reload does often not work. + +#### Symptoms + +// TODO + +#### Causes + +Proxy setting incomplete or invalid. +Localhost is redirected to the proxy. + +#### Ways to fix + +- Set environment variable `NO_PROXY=127.0.0.1` + +#### Related information + +- https://github.com/flutter/flutter/issues/24854 +- https://github.com/flutter/flutter/issues/16875#issuecomment-384758566 +- [Adding directory to PATH Environment Variable in Windows](https://stackoverflow.com/questions/9546324) +- [How do I add to the Windows PATH variable using setx? Having weird problems](https://stackoverflow.com/questions/19287379) + + +# Empty Template for new recipes + +Copy from the following line down + +## Topic name + +### Issue title + +Issue description + +#### Symptoms +Explain seen symptoms + +#### Causes + +Explain what causes this issue + +#### Ways to fix + +- Do this, do that as well + +#### Related information +- https://example.com/some_link.html + + +# AsciiDoc Recipes + +#### AsciiDoc Syntax Quick Reference + +- https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/ + +#### GitHub Flavored AsciiDoc + +Some workarounds for common issues with AsciiDoc on GitHub + +- https://gist.github.com/dcode/0cfbf2699a1fe9b46ff04c41721dda74 \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/build.gradle b/novelforge-project/agent-workspace/flutter/examples/api/android/app/build.gradle new file mode 100644 index 0000000000000000000000000000000000000000..aaad6599605fa62e709407a01fa77c0c7225d92c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/build.gradle @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +def localProperties = new Properties() +def localPropertiesFile = rootProject.file('local.properties') +if (localPropertiesFile.exists()) { + localPropertiesFile.withReader('UTF-8') { reader -> + localProperties.load(reader) + } +} + +def flutterRoot = localProperties.getProperty('flutter.sdk') +if (flutterRoot == null) { + throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.") +} + +def flutterVersionCode = localProperties.getProperty('flutter.versionCode') +if (flutterVersionCode == null) { + flutterVersionCode = '1' +} + +def flutterVersionName = localProperties.getProperty('flutter.versionName') +if (flutterVersionName == null) { + flutterVersionName = '1.0' +} + +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" + +android { + namespace "dev.flutter.flutter_api_samples" + compileSdk flutter.compileSdkVersion + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } + + kotlinOptions { + jvmTarget = '1.8' + } + + sourceSets { + main.java.srcDirs += 'src/main/kotlin' + } + + defaultConfig { + applicationId "dev.flutter.flutter_api_samples" + minSdkVersion flutter.minSdkVersion + targetSdkVersion flutter.targetSdkVersion + versionCode flutterVersionCode.toInteger() + versionName flutterVersionName + multiDexEnabled true + } + + buildTypes { + release { + // Signing with the debug keys for now, so `flutter run --release` works. + signingConfig signingConfigs.debug + } + } +} + +flutter { + source '../..' +} + +dependencies { + def multidex_version = "2.0.1" + implementation "androidx.multidex:multidex:$multidex_version" + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0' + implementation 'com.google.android.material:material:1.5.0' +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/debug/AndroidManifest.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/debug/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..5dba98d653111ed38303cfad525473ca1f434f55 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/debug/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/AndroidManifest.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..c284af112c17d8e126fae6e0680b48bab87caa58 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/kotlin/dev/flutter/flutter_api_samples/MainActivity.kt b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/kotlin/dev/flutter/flutter_api_samples/MainActivity.kt new file mode 100644 index 0000000000000000000000000000000000000000..15226924578924fb0aa7735731dbcba0a6364ce9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/kotlin/dev/flutter/flutter_api_samples/MainActivity.kt @@ -0,0 +1,6 @@ +package dev.flutter.flutter_api_samples + +import io.flutter.embedding.android.FlutterActivity + +class MainActivity: FlutterActivity() { +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/color/fab_ripple_color.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/color/fab_ripple_color.xml new file mode 100644 index 0000000000000000000000000000000000000000..ea2ccbdc35c9cb841a0e93d44b8c92443ed41528 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/color/fab_ripple_color.xml @@ -0,0 +1,9 @@ + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/drawable/ic_add_black_24dp.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/drawable/ic_add_black_24dp.xml new file mode 100644 index 0000000000000000000000000000000000000000..f99c4c64f65c169034105c526ea7c011d4ac418f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/drawable/ic_add_black_24dp.xml @@ -0,0 +1,13 @@ + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/drawable/launch_background.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/drawable/launch_background.xml new file mode 100644 index 0000000000000000000000000000000000000000..8726260df6d129b1a6ff099c53d40336088d2220 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/drawable/launch_background.xml @@ -0,0 +1,16 @@ + + + + + + + + + + \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/layout/flutter_view_layout.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/layout/flutter_view_layout.xml new file mode 100644 index 0000000000000000000000000000000000000000..ba7e253a949f97d050bbd9a1d470d4fb16367501 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/layout/flutter_view_layout.xml @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..db77bb4b7b0906d62b1847e87f15cdcacf6a4f29 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..17987b79bb8a35cc66c3c1fd44f5a5526c1b78be Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..09d4391482be68e9e4a07fab769b5de337d16eb1 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..d5f1c8d34e7a88e3f88bea192c3a370d44689c3c Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..4d6372eebdb28e45604e46eeda8dd24651419bc0 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/colors.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/colors.xml new file mode 100644 index 0000000000000000000000000000000000000000..07f7af62e7fbc2e93aa4b5897bec3a16c8b4b478 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/colors.xml @@ -0,0 +1,8 @@ + + + + #9E9E9E + #FFFFFF + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/dimens.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000000000000000000000000000000000000..1078837b05261f699ed602ea685aad09dd1b0827 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/dimens.xml @@ -0,0 +1,11 @@ + + + + 16dp + 6dp + 12dp + 17sp + 30sp + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/strings.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/strings.xml new file mode 100644 index 0000000000000000000000000000000000000000..ced96bc7f877f15f3ab5882c52862fae787a7ce0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/strings.xml @@ -0,0 +1,10 @@ + + + + Flutter API Sample + Flutter API Sample + Flutter button tapped 0 times. + Android + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/styles.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000000000000000000000000000000000000..52a474457e8f4f92871ca0d646a0f6ff4751f9e3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/main/res/values/styles.xml @@ -0,0 +1,22 @@ + + + + + + + + + \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/profile/AndroidManifest.xml b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/profile/AndroidManifest.xml new file mode 100644 index 0000000000000000000000000000000000000000..5dba98d653111ed38303cfad525473ca1f434f55 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/app/src/profile/AndroidManifest.xml @@ -0,0 +1,10 @@ + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/android/gradle/wrapper/gradle-wrapper.properties b/novelforge-project/agent-workspace/flutter/examples/api/android/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000000000000000000000000000000000000..e1ca574ef017c1bc00556b96ea372e2c07948771 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/android/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Flutter/AppFrameworkInfo.plist b/novelforge-project/agent-workspace/flutter/examples/api/ios/Flutter/AppFrameworkInfo.plist new file mode 100644 index 0000000000000000000000000000000000000000..7c56964006274498b0edaa77763cdd72c6d42b6a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Flutter/AppFrameworkInfo.plist @@ -0,0 +1,26 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + App + CFBundleIdentifier + io.flutter.flutter.app + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + App + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + MinimumOSVersion + 12.0 + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Flutter/Debug.xcconfig b/novelforge-project/agent-workspace/flutter/examples/api/ios/Flutter/Debug.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..ec97fc6f30212d34d53ab17751bcabdfab1891d4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Flutter/Debug.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Flutter/Release.xcconfig b/novelforge-project/agent-workspace/flutter/examples/api/ios/Flutter/Release.xcconfig new file mode 100644 index 0000000000000000000000000000000000000000..c4855bfe2000b73c8a50783b40073676021cbb68 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Flutter/Release.xcconfig @@ -0,0 +1,2 @@ +#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" +#include "Generated.xcconfig" diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.pbxproj b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.pbxproj new file mode 100644 index 0000000000000000000000000000000000000000..051d6d3edd1d31135be81e173f0740740d9f534a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.pbxproj @@ -0,0 +1,551 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 54; + objects = { + +/* Begin PBXBuildFile section */ + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; }; + 2A933C5EDC11346D6057DD27 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 864C6DD5813D75F8B897276C /* Pods_Runner.framework */; }; + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; }; + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; }; + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; }; + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; }; + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 9705A1C41CF9048500538489 /* Embed Frameworks */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + name = "Embed Frameworks"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = ""; }; + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; }; + 864C6DD5813D75F8B897276C /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; }; + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; }; + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + B5D84224F8927D033E1EFF32 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = ""; }; + EB826BBD91D6CC0B1567DB17 /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = ""; }; + F57FB3C80C2AAB1B738761F7 /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 97C146EB1CF9000F007C117D /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 2A933C5EDC11346D6057DD27 /* Pods_Runner.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6DE3720F77894423C0FDB38B /* Frameworks */ = { + isa = PBXGroup; + children = ( + 864C6DD5813D75F8B897276C /* Pods_Runner.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 9740EEB11CF90186004384FC /* Flutter */ = { + isa = PBXGroup; + children = ( + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */, + 9740EEB21CF90195004384FC /* Debug.xcconfig */, + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */, + 9740EEB31CF90195004384FC /* Generated.xcconfig */, + ); + name = Flutter; + sourceTree = ""; + }; + 97C146E51CF9000F007C117D = { + isa = PBXGroup; + children = ( + 9740EEB11CF90186004384FC /* Flutter */, + 97C146F01CF9000F007C117D /* Runner */, + 97C146EF1CF9000F007C117D /* Products */, + FDDF5CF0D66BC5E2ACD4F8DA /* Pods */, + 6DE3720F77894423C0FDB38B /* Frameworks */, + ); + sourceTree = ""; + }; + 97C146EF1CF9000F007C117D /* Products */ = { + isa = PBXGroup; + children = ( + 97C146EE1CF9000F007C117D /* Runner.app */, + ); + name = Products; + sourceTree = ""; + }; + 97C146F01CF9000F007C117D /* Runner */ = { + isa = PBXGroup; + children = ( + 97C146FA1CF9000F007C117D /* Main.storyboard */, + 97C146FD1CF9000F007C117D /* Assets.xcassets */, + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, + 97C147021CF9000F007C117D /* Info.plist */, + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */, + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */, + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */, + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */, + ); + path = Runner; + sourceTree = ""; + }; + FDDF5CF0D66BC5E2ACD4F8DA /* Pods */ = { + isa = PBXGroup; + children = ( + F57FB3C80C2AAB1B738761F7 /* Pods-Runner.debug.xcconfig */, + B5D84224F8927D033E1EFF32 /* Pods-Runner.release.xcconfig */, + EB826BBD91D6CC0B1567DB17 /* Pods-Runner.profile.xcconfig */, + ); + name = Pods; + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 97C146ED1CF9000F007C117D /* Runner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */; + buildPhases = ( + 3844CEFE24E0940030FA041C /* [CP] Check Pods Manifest.lock */, + 9740EEB61CF901F6004384FC /* Run Script */, + 97C146EA1CF9000F007C117D /* Sources */, + 97C146EB1CF9000F007C117D /* Frameworks */, + 97C146EC1CF9000F007C117D /* Resources */, + 9705A1C41CF9048500538489 /* Embed Frameworks */, + 3B06AD1E1E4923F5004D2608 /* Thin Binary */, + F5C590E667F961A99E0AAC66 /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Runner; + productName = Runner; + productReference = 97C146EE1CF9000F007C117D /* Runner.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 97C146E61CF9000F007C117D /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 1510; + ORGANIZATIONNAME = ""; + TargetAttributes = { + 97C146ED1CF9000F007C117D = { + CreatedOnToolsVersion = 7.3.1; + LastSwiftMigration = 1100; + }; + }; + }; + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 97C146E51CF9000F007C117D; + productRefGroup = 97C146EF1CF9000F007C117D /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 97C146ED1CF9000F007C117D /* Runner */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 97C146EC1CF9000F007C117D /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */, + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */, + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */, + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3844CEFE24E0940030FA041C /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( + ); + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}", + ); + name = "Thin Binary"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin"; + }; + 9740EEB61CF901F6004384FC /* Run Script */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Run Script"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build"; + }; + F5C590E667F961A99E0AAC66 /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 97C146EA1CF9000F007C117D /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */, + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 97C146FA1CF9000F007C117D /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C146FB1CF9000F007C117D /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 97C147001CF9000F007C117D /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 249021D3217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Profile; + }; + 249021D4217E4FDB00AE95B9 /* Profile */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.dartpadCurve2D0; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Profile; + }; + 97C147031CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 97C147041CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 97C147061CF9000F007C117D /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.dartpadCurve2D0; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Debug; + }; + 97C147071CF9000F007C117D /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CLANG_ENABLE_MODULES = YES; + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; + ENABLE_BITCODE = NO; + INFOPLIST_FILE = Runner/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = dev.flutter.dartpadCurve2D0; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + VERSIONING_SYSTEM = "apple-generic"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147031CF9000F007C117D /* Debug */, + 97C147041CF9000F007C117D /* Release */, + 249021D3217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 97C147061CF9000F007C117D /* Debug */, + 97C147071CF9000F007C117D /* Release */, + 249021D4217E4FDB00AE95B9 /* Profile */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 97C146E61CF9000F007C117D /* Project object */; +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..919434a6254f0e9651f402737811be6634a03e9c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d7c5ea15f194be85eb6ee8e6721a87ff4644 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme new file mode 100644 index 0000000000000000000000000000000000000000..e67b2808af02f9ec16f2d72b7961aefdf844afa5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcworkspace/contents.xcworkspacedata b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000000000000000000000000000000000000..21a3cc14c74e969ab1548274a8512ebfecc40f78 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000000000000000000000000000000000000..18d981003d68d0546c4804ac2ff47dd97c6e7921 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d7c5ea15f194be85eb6ee8e6721a87ff4644 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings @@ -0,0 +1,8 @@ + + + + + PreviewsEnabled + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/AppDelegate.swift b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/AppDelegate.swift new file mode 100644 index 0000000000000000000000000000000000000000..d815fed684a8a58a302828d747941af4fcffaa9a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/AppDelegate.swift @@ -0,0 +1,17 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import UIKit +import Flutter + +@UIApplicationMain +@objc class AppDelegate: FlutterAppDelegate { + override func application( + _ application: UIApplication, + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? + ) -> Bool { + GeneratedPluginRegistrant.register(with: self) + return super.application(application, didFinishLaunchingWithOptions: launchOptions) + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000000000000000000000000000000000..13929fcb3b24a87bd89e677407c6e378bec9bf46 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,130 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "iphone", + "filename" : "Icon-App-29x29@3x.png", + "scale" : "3x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@3x.png", + "scale" : "3x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@2x.png", + "scale" : "2x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@3x.png", + "scale" : "3x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@1x.png", + "scale" : "1x" + }, + { + "size" : "29x29", + "idiom" : "ipad", + "filename" : "Icon-App-29x29@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "40x40", + "idiom" : "ipad", + "filename" : "Icon-App-40x40@2x.png", + "scale" : "2x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@2x.png", + "scale" : "2x" + }, + { + "size" : "83.5x83.5", + "idiom" : "ipad", + "filename" : "Icon-App-83.5x83.5@2x.png", + "scale" : "2x" + }, + { + "size" : "40x40", + "idiom" : "iphone", + "filename" : "Icon-App-40x40@1x.png", + "scale" : "1x" + }, + { + "size" : "60x60", + "idiom" : "iphone", + "filename" : "Icon-App-60x60@1x.png", + "scale" : "1x" + }, + { + "size" : "76x76", + "idiom" : "ipad", + "filename" : "Icon-App-76x76@3x.png", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..4cde12118dda48d71e01fcb589a74d069c5d7cb5 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0ef06e7edb86cdfe0d15b4b0d98334a86163658 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..dcdc2306c28505ebc0b6c3a359c4d252bf626b9f Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..2ccbfd967d9697cd4b83225558af2911e9571c9b Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..c8f9ed8f5cee1c98386d13b17e89f719e83555b2 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@1x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..f091b6b0bca859a3f474b03065bef75ba58a9e4c Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@1x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..a6d6b8609df07bf62e5100a53a01510388bd2b22 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..75b2d164a5a98e212cca15ea7bf2ab5de5108680 Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png new file mode 100644 index 0000000000000000000000000000000000000000..c4df70d39da7941ef3f6dcb7f06a192d8dcb308d Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..6a84f41e14e27f4b11f16f9ee39279ac98f8d5ac Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png new file mode 100644 index 0000000000000000000000000000000000000000..5d2bad850374720926b6d2d1126b3e2ef5e122ac Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..d0e1f58536026aebc4f1f70e481f6993c9ff088d Binary files /dev/null and b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png differ diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Base.lproj/LaunchScreen.storyboard b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f2e259c7c9390ff69a6bbe1e0907e6dc366848e7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Base.lproj/Main.storyboard b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Base.lproj/Main.storyboard new file mode 100644 index 0000000000000000000000000000000000000000..f3c28516fb38e64d88cfcf5fb1791175df078f2f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Base.lproj/Main.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Info.plist b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Info.plist new file mode 100644 index 0000000000000000000000000000000000000000..a48d067fdea11e3b98396118a94f485c52bb95c0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Info.plist @@ -0,0 +1,47 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Flutter API Sample + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + CADisableMinimumFrameDurationOnPhone + + UIApplicationSupportsIndirectInputEvents + + + diff --git a/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Runner-Bridging-Header.h b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Runner-Bridging-Header.h new file mode 100644 index 0000000000000000000000000000000000000000..95b7baf386d06a38be9c775a9e97659baad52dc5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/ios/Runner/Runner-Bridging-Header.h @@ -0,0 +1,5 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "GeneratedPluginRegistrant.h" diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/animation/animation_controller/animated_digit.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/animation/animation_controller/animated_digit.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..b2d1e1d4833165325ce0ce1c4c3e1da5e2e76043 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/animation/animation_controller/animated_digit.0.dart @@ -0,0 +1,210 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// An example of [AnimationController] and [SlideTransition]. + +// Occupies the same width as the widest single digit used by AnimatedDigit. +// +// By stacking this widget behind AnimatedDigit's visible digit, we +// ensure that AnimatedWidget's width will not change when its value +// changes. Typically digits like '8' or '9' are wider than '1'. If +// an app arranges several AnimatedDigits in a centered Row, we don't +// want the Row to wiggle when the digits change because the overall +// width of the Row changes. +class _PlaceholderDigit extends StatelessWidget { + const _PlaceholderDigit(); + + @override + Widget build(BuildContext context) { + final TextStyle textStyle = Theme.of(context).textTheme.displayLarge!.copyWith( + fontWeight: FontWeight.w500, + ); + + final Iterable placeholderDigits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map( + (int n) { + return Text('$n', style: textStyle); + }, + ); + + return Opacity( + opacity: 0, + child: Stack(children: placeholderDigits.toList()), + ); + } +} + +// Displays a single digit [value]. +// +// When the value changes the old value slides upwards and out of sight +// at the same as the new value slides into view. +class AnimatedDigit extends StatefulWidget { + const AnimatedDigit({ super.key, required this.value }); + + final int value; + + @override + State createState() => _AnimatedDigitState(); +} + +class _AnimatedDigitState extends State with SingleTickerProviderStateMixin { + static const Duration defaultDuration = Duration(milliseconds: 300); + + late final AnimationController controller; + late int incomingValue; + late int outgoingValue; + List pendingValues = []; // widget.value updates that occurred while the animation is underway + Duration duration = defaultDuration; + + @override + void initState() { + super.initState(); + controller = AnimationController( + duration: duration, + vsync: this, + ); + controller.addStatusListener(handleAnimationCompleted); + incomingValue = widget.value; + outgoingValue = widget.value; + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + void handleAnimationCompleted(AnimationStatus status) { + if (status == AnimationStatus.completed) { + if (pendingValues.isNotEmpty) { + // Display the next pending value. The duration was scaled down + // in didUpdateWidget by the total number of pending values so + // that all of the pending changes are shown within + // defaultDuration of the last one (the past pending change). + controller.duration = duration; + animateValueUpdate(incomingValue, pendingValues.removeAt(0)); + } else { + controller.duration = defaultDuration; + } + } + } + + void animateValueUpdate(int outgoing, int incoming) { + setState(() { + outgoingValue = outgoing; + incomingValue = incoming; + controller.forward(from: 0); + }); + } + + // Rebuilding the widget with a new value causes the animations to run. + // If the widget is updated while the value is being changed the new + // value is added to pendingValues and is taken care of when the current + // animation is complete (see handleAnimationCompleted()). + @override + void didUpdateWidget(AnimatedDigit oldWidget) { + super.didUpdateWidget(oldWidget); + if (widget.value != oldWidget.value) { + if (controller.isAnimating) { + // We're in the middle of animating outgoingValue out and + // incomingValue in. Shorten the duration of the current + // animation as well as the duration for animations that + // will show the pending values. + pendingValues.add(widget.value); + final double percentRemaining = 1 - controller.value; + duration = defaultDuration * (1 / (percentRemaining + pendingValues.length)); + controller.animateTo(1.0, duration: duration * percentRemaining); + } else { + animateValueUpdate(incomingValue, widget.value); + } + } + } + + // When the controller runs forward both SlideTransitions' children + // animate upwards. This takes the outgoingValue out of sight and the + // incoming value into view. See animateValueUpdate(). + @override + Widget build(BuildContext context) { + final TextStyle textStyle = Theme.of(context).textTheme.displayLarge!; + return ClipRect( + child: Stack( + children: [ + const _PlaceholderDigit(), + SlideTransition( + position: controller + .drive( + Tween( + begin: Offset.zero, + end: const Offset(0, -1), // Out of view above the top. + ), + ), + child: Text( + key: ValueKey(outgoingValue), + '$outgoingValue', + style: textStyle, + ), + ), + SlideTransition( + position: controller + .drive( + Tween( + begin: const Offset(0, 1), // Out of view below the bottom. + end: Offset.zero, + ), + ), + child: Text( + key: ValueKey(incomingValue), + '$incomingValue', + style: textStyle, + ), + ), + ], + ), + ); + } +} + +class AnimatedDigitApp extends StatelessWidget { + const AnimatedDigitApp({ super.key }); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + title: 'AnimatedDigit', + home: AnimatedDigitHome(), + ); + } +} + +class AnimatedDigitHome extends StatefulWidget { + const AnimatedDigitHome({ super.key }); + + @override + State createState() => _AnimatedDigitHomeState(); +} + +class _AnimatedDigitHomeState extends State { + int value = 0; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: AnimatedDigit(value: value % 10), + ), + floatingActionButton: FloatingActionButton( + onPressed: () { + setState(() { value += 1; }); + }, + tooltip: 'Increment Digit', + child: const Icon(Icons.add), + ), + ); + } +} + +void main() { + runApp(const AnimatedDigitApp()); +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/animation/curves/curve2_d.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/animation/curves/curve2_d.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..f2d0d81d62d0a5cc224393e23894079122a1378e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/animation/curves/curve2_d.0.dart @@ -0,0 +1,115 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Curve2D]. + +void main() => runApp(const Curve2DExampleApp()); + +class Curve2DExampleApp extends StatelessWidget { + const Curve2DExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Curve2DExample(), + ); + } +} + +// This is the path that the child will follow. It's a CatmullRomSpline so +// that the coordinates can be specified that it must pass through. If the +// tension is set to 1.0, it will linearly interpolate between those points, +// instead of interpolating smoothly. +final CatmullRomSpline path = CatmullRomSpline( + const [ + Offset(0.05, 0.75), + Offset(0.18, 0.23), + Offset(0.32, 0.04), + Offset(0.73, 0.5), + Offset(0.42, 0.74), + Offset(0.73, 0.01), + Offset(0.93, 0.93), + Offset(0.05, 0.75), + ], + startHandle: const Offset(0.93, 0.93), + endHandle: const Offset(0.18, 0.23), +); + +class FollowCurve2D extends StatefulWidget { + const FollowCurve2D({ + super.key, + required this.path, + this.curve = Curves.easeInOut, + required this.child, + this.duration = const Duration(seconds: 1), + }); + + final Curve2D path; + final Curve curve; + final Duration duration; + final Widget child; + + @override + State createState() => _FollowCurve2DState(); +} + +class _FollowCurve2DState extends State with TickerProviderStateMixin { + // The animation controller for this animation. + late AnimationController controller; + // The animation that will be used to apply the widget's animation curve. + late Animation animation; + + @override + void initState() { + super.initState(); + controller = AnimationController(duration: widget.duration, vsync: this); + animation = CurvedAnimation(parent: controller, curve: widget.curve); + // Have the controller repeat indefinitely. If you want it to "bounce" back + // and forth, set the reverse parameter to true. + controller.repeat(); + controller.addListener(() => setState(() {})); + } + + @override + void dispose() { + // Always have to dispose of animation controllers when done. + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + // Scale the path values to match the -1.0 to 1.0 domain of the Alignment widget. + final Offset position = widget.path.transform(animation.value) * 2.0 - const Offset(1.0, 1.0); + return Align( + alignment: Alignment(position.dx, position.dy), + child: widget.child, + ); + } +} + +class Curve2DExample extends StatelessWidget { + const Curve2DExample({super.key}); + + @override + Widget build(BuildContext context) { + return Container( + color: Colors.white, + alignment: Alignment.center, + child: FollowCurve2D( + path: path, + duration: const Duration(seconds: 3), + child: CircleAvatar( + backgroundColor: Colors.yellow, + child: DefaultTextStyle( + style: Theme.of(context).textTheme.titleLarge!, + child: const Text('B'), // Buzz, buzz! + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/activity_indicator/cupertino_activity_indicator.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/activity_indicator/cupertino_activity_indicator.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a21e57142cd4ec24e3a18056f8c4e1c3066d7129 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/activity_indicator/cupertino_activity_indicator.0.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoActivityIndicator]. + +void main() => runApp(const CupertinoIndicatorApp()); + +class CupertinoIndicatorApp extends StatelessWidget { + const CupertinoIndicatorApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: CupertinoIndicatorExample(), + ); + } +} + +class CupertinoIndicatorExample extends StatelessWidget { + const CupertinoIndicatorExample({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: Text('CupertinoActivityIndicator Sample'), + ), + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + // Cupertino activity indicator with default properties. + CupertinoActivityIndicator(), + SizedBox(height: 10), + Text('Default'), + ], + ), + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + // Cupertino activity indicator with custom radius and color. + CupertinoActivityIndicator(radius: 20.0, color: CupertinoColors.activeBlue), + SizedBox(height: 10), + Text( + 'radius: 20.0\ncolor: CupertinoColors.activeBlue', + textAlign: TextAlign.center, + ), + ], + ), + Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + // Cupertino activity indicator with custom radius and disabled + // animation. + CupertinoActivityIndicator(radius: 20.0, animating: false), + SizedBox(height: 10), + Text( + 'radius: 20.0\nanimating: false', + textAlign: TextAlign.center, + ), + ], + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/bottom_tab_bar/cupertino_tab_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/bottom_tab_bar/cupertino_tab_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..4f145eac1e26ab23ecee331419e537d7d26cd990 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/bottom_tab_bar/cupertino_tab_bar.0.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoTabBar]. + +void main() => runApp(const CupertinoTabBarApp()); + +class CupertinoTabBarApp extends StatelessWidget { + const CupertinoTabBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: CupertinoTabBarExample(), + ); + } +} + +class CupertinoTabBarExample extends StatelessWidget { + const CupertinoTabBarExample({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoTabScaffold( + tabBar: CupertinoTabBar( + items: const [ + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.star_fill), + label: 'Favorites', + ), + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.clock_solid), + label: 'Recents', + ), + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.person_alt_circle_fill), + label: 'Contacts', + ), + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.circle_grid_3x3_fill), + label: 'Keypad', + ), + ], + ), + tabBuilder: (BuildContext context, int index) { + return CupertinoTabView( + builder: (BuildContext context) { + return Center( + child: Text('Content of tab $index'), + ); + }, + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/button/cupertino_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/button/cupertino_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..77581f6203d3868d795ac2c649696011ef4e6d26 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/button/cupertino_button.0.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoButton]. + +void main() => runApp(const CupertinoButtonApp()); + +class CupertinoButtonApp extends StatelessWidget { + const CupertinoButtonApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: CupertinoButtonExample(), + ); + } +} + +class CupertinoButtonExample extends StatelessWidget { + const CupertinoButtonExample({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoButton Sample'), + ), + child: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const CupertinoButton( + onPressed: null, + child: Text('Disabled'), + ), + const SizedBox(height: 30), + const CupertinoButton.filled( + onPressed: null, + child: Text('Disabled'), + ), + const SizedBox(height: 30), + CupertinoButton( + onPressed: () {}, + child: const Text('Enabled'), + ), + const SizedBox(height: 30), + CupertinoButton.filled( + onPressed: () {}, + child: const Text('Enabled'), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/context_menu/cupertino_context_menu.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/context_menu/cupertino_context_menu.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..f20ab23a14f930a7292198dbb2f36daea0f7445b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/context_menu/cupertino_context_menu.0.dart @@ -0,0 +1,79 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; + +/// Flutter code sample for [CupertinoContextMenu]. + +void main() => runApp(const ContextMenuApp()); + +class ContextMenuApp extends StatelessWidget { + const ContextMenuApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: ContextMenuExample(), + ); + } +} + +class ContextMenuExample extends StatelessWidget { + const ContextMenuExample({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoContextMenu Sample'), + ), + child: Center( + child: SizedBox( + width: 100, + height: 100, + child: CupertinoContextMenu( + actions: [ + CupertinoContextMenuAction( + onPressed: () { + Navigator.pop(context); + }, + isDefaultAction: true, + trailingIcon: CupertinoIcons.doc_on_clipboard_fill, + child: const Text('Copy'), + ), + CupertinoContextMenuAction( + onPressed: () { + Navigator.pop(context); + }, + trailingIcon: CupertinoIcons.share, + child: const Text('Share'), + ), + CupertinoContextMenuAction( + onPressed: () { + Navigator.pop(context); + }, + trailingIcon: CupertinoIcons.heart, + child: const Text('Favorite'), + ), + CupertinoContextMenuAction( + onPressed: () { + Navigator.pop(context); + }, + isDestructiveAction: true, + trailingIcon: CupertinoIcons.delete, + child: const Text('Delete'), + ), + ], + child: const ColoredBox( + color: CupertinoColors.systemYellow, + child: FlutterLogo(size: 500.0), + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/context_menu/cupertino_context_menu.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/context_menu/cupertino_context_menu.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..b54ab154122359d31853fe8f766ea58121a6b06c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/context_menu/cupertino_context_menu.1.dart @@ -0,0 +1,116 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; + +/// Flutter code sample for [CupertinoContextMenu]. + +final DecorationTween _tween = DecorationTween( + begin: BoxDecoration( + color: CupertinoColors.systemYellow, + boxShadow: const [], + borderRadius: BorderRadius.circular(20.0), + ), + end: BoxDecoration( + color: CupertinoColors.systemYellow, + boxShadow: CupertinoContextMenu.kEndBoxShadow, + borderRadius: BorderRadius.circular(20.0), + ), +); + +void main() => runApp(const ContextMenuApp()); + +class ContextMenuApp extends StatelessWidget { + const ContextMenuApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: ContextMenuExample(), + ); + } +} + +class ContextMenuExample extends StatelessWidget { + const ContextMenuExample({super.key}); + + // Or just do this inline in the builder below? + static Animation _boxDecorationAnimation(Animation animation) { + return _tween.animate( + CurvedAnimation( + parent: animation, + curve: Interval( + 0.0, + CupertinoContextMenu.animationOpensAt, + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoContextMenu Sample'), + ), + child: Center( + child: SizedBox( + width: 100, + height: 100, + child: CupertinoContextMenu.builder( + actions: [ + CupertinoContextMenuAction( + onPressed: () { + Navigator.pop(context); + }, + isDefaultAction: true, + trailingIcon: CupertinoIcons.doc_on_clipboard_fill, + child: const Text('Copy'), + ), + CupertinoContextMenuAction( + onPressed: () { + Navigator.pop(context); + }, + trailingIcon: CupertinoIcons.share, + child: const Text('Share'), + ), + CupertinoContextMenuAction( + onPressed: () { + Navigator.pop(context); + }, + trailingIcon: CupertinoIcons.heart, + child: const Text('Favorite'), + ), + CupertinoContextMenuAction( + onPressed: () { + Navigator.pop(context); + }, + isDestructiveAction: true, + trailingIcon: CupertinoIcons.delete, + child: const Text('Delete'), + ), + ], + builder: (BuildContext context, Animation animation) { + final Animation boxDecorationAnimation = _boxDecorationAnimation(animation); + + return Container( + decoration: + animation.value < CupertinoContextMenu.animationOpensAt ? boxDecorationAnimation.value : null, + child: Container( + decoration: BoxDecoration( + color: CupertinoColors.systemYellow, + borderRadius: BorderRadius.circular(20.0), + ), + child: const FlutterLogo(size: 500.0), + ), + ); + }, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/date_picker/cupertino_date_picker.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/date_picker/cupertino_date_picker.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..bc9acb33e3558cd44d06750da84f0d4ad16d6646 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/date_picker/cupertino_date_picker.0.dart @@ -0,0 +1,197 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoDatePicker]. + +void main() => runApp(const DatePickerApp()); + +class DatePickerApp extends StatelessWidget { + const DatePickerApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: DatePickerExample(), + ); + } +} + +class DatePickerExample extends StatefulWidget { + const DatePickerExample({super.key}); + + @override + State createState() => _DatePickerExampleState(); +} + +class _DatePickerExampleState extends State { + DateTime date = DateTime(2016, 10, 26); + DateTime time = DateTime(2016, 5, 10, 22, 35); + DateTime dateTime = DateTime(2016, 8, 3, 17, 45); + + // This function displays a CupertinoModalPopup with a reasonable fixed height + // which hosts CupertinoDatePicker. + void _showDialog(Widget child) { + showCupertinoModalPopup( + context: context, + builder: (BuildContext context) => Container( + height: 216, + padding: const EdgeInsets.only(top: 6.0), + // The Bottom margin is provided to align the popup above the system + // navigation bar. + margin: EdgeInsets.only( + bottom: MediaQuery.of(context).viewInsets.bottom, + ), + // Provide a background color for the popup. + color: CupertinoColors.systemBackground.resolveFrom(context), + // Use a SafeArea widget to avoid system overlaps. + child: SafeArea( + top: false, + child: child, + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoDatePicker Sample'), + ), + child: DefaultTextStyle( + style: TextStyle( + color: CupertinoColors.label.resolveFrom(context), + fontSize: 22.0, + ), + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + _DatePickerItem( + children: [ + const Text('Date'), + CupertinoButton( + // Display a CupertinoDatePicker in date picker mode. + onPressed: () => _showDialog( + CupertinoDatePicker( + initialDateTime: date, + mode: CupertinoDatePickerMode.date, + use24hFormat: true, + // This shows day of week alongside day of month + showDayOfWeek: true, + // This is called when the user changes the date. + onDateTimeChanged: (DateTime newDate) { + setState(() => date = newDate); + }, + ), + ), + // In this example, the date is formatted manually. You can + // use the intl package to format the value based on the + // user's locale settings. + child: Text( + '${date.month}-${date.day}-${date.year}', + style: const TextStyle( + fontSize: 22.0, + ), + ), + ), + ], + ), + _DatePickerItem( + children: [ + const Text('Time'), + CupertinoButton( + // Display a CupertinoDatePicker in time picker mode. + onPressed: () => _showDialog( + CupertinoDatePicker( + initialDateTime: time, + mode: CupertinoDatePickerMode.time, + use24hFormat: true, + // This is called when the user changes the time. + onDateTimeChanged: (DateTime newTime) { + setState(() => time = newTime); + }, + ), + ), + // In this example, the time value is formatted manually. + // You can use the intl package to format the value based on + // the user's locale settings. + child: Text( + '${time.hour}:${time.minute}', + style: const TextStyle( + fontSize: 22.0, + ), + ), + ), + ], + ), + _DatePickerItem( + children: [ + const Text('DateTime'), + CupertinoButton( + // Display a CupertinoDatePicker in dateTime picker mode. + onPressed: () => _showDialog( + CupertinoDatePicker( + initialDateTime: dateTime, + use24hFormat: true, + // This is called when the user changes the dateTime. + onDateTimeChanged: (DateTime newDateTime) { + setState(() => dateTime = newDateTime); + }, + ), + ), + // In this example, the time value is formatted manually. You + // can use the intl package to format the value based on the + // user's locale settings. + child: Text( + '${dateTime.month}-${dateTime.day}-${dateTime.year} ${dateTime.hour}:${dateTime.minute}', + style: const TextStyle( + fontSize: 22.0, + ), + ), + ), + ], + ), + ], + ), + ), + ), + ); + } +} + +// This class simply decorates a row of widgets. +class _DatePickerItem extends StatelessWidget { + const _DatePickerItem({required this.children}); + + final List children; + + @override + Widget build(BuildContext context) { + return DecoratedBox( + decoration: const BoxDecoration( + border: Border( + top: BorderSide( + color: CupertinoColors.inactiveGray, + width: 0.0, + ), + bottom: BorderSide( + color: CupertinoColors.inactiveGray, + width: 0.0, + ), + ), + ), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: children, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/date_picker/cupertino_timer_picker.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/date_picker/cupertino_timer_picker.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..c71a9112fc5374ded384fc34441c331eec475a79 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/date_picker/cupertino_timer_picker.0.dart @@ -0,0 +1,138 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoTimerPicker]. + +void main() => runApp(const TimerPickerApp()); + +class TimerPickerApp extends StatelessWidget { + const TimerPickerApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: TimerPickerExample(), + ); + } +} + +class TimerPickerExample extends StatefulWidget { + const TimerPickerExample({super.key}); + + @override + State createState() => _TimerPickerExampleState(); +} + +class _TimerPickerExampleState extends State { + Duration duration = const Duration(hours: 1, minutes: 23); + + // This shows a CupertinoModalPopup with a reasonable fixed height which hosts + // a CupertinoTimerPicker. + void _showDialog(Widget child) { + showCupertinoModalPopup( + context: context, + builder: (BuildContext context) => Container( + height: 216, + padding: const EdgeInsets.only(top: 6.0), + // The bottom margin is provided to align the popup above the system + // navigation bar. + margin: EdgeInsets.only( + bottom: MediaQuery.of(context).viewInsets.bottom, + ), + // Provide a background color for the popup. + color: CupertinoColors.systemBackground.resolveFrom(context), + // Use a SafeArea widget to avoid system overlaps. + child: SafeArea( + top: false, + child: child, + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoTimerPicker Sample'), + ), + child: DefaultTextStyle( + style: TextStyle( + color: CupertinoColors.label.resolveFrom(context), + fontSize: 22.0, + ), + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + _TimerPickerItem( + children: [ + const Text('Timer'), + CupertinoButton( + // Display a CupertinoTimerPicker with hour/minute mode. + onPressed: () => _showDialog( + CupertinoTimerPicker( + mode: CupertinoTimerPickerMode.hm, + initialTimerDuration: duration, + // This is called when the user changes the timer's + // duration. + onTimerDurationChanged: (Duration newDuration) { + setState(() => duration = newDuration); + }, + ), + ), + // In this example, the timer's value is formatted manually. + // You can use the intl package to format the value based on + // the user's locale settings. + child: Text( + '$duration', + style: const TextStyle( + fontSize: 22.0, + ), + ), + ), + ], + ), + ], + ), + ), + ), + ); + } +} + +// This class simply decorates a row of widgets. +class _TimerPickerItem extends StatelessWidget { + const _TimerPickerItem({required this.children}); + + final List children; + + @override + Widget build(BuildContext context) { + return DecoratedBox( + decoration: const BoxDecoration( + border: Border( + top: BorderSide( + color: CupertinoColors.inactiveGray, + width: 0.0, + ), + bottom: BorderSide( + color: CupertinoColors.inactiveGray, + width: 0.0, + ), + ), + ), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: children, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/dialog/cupertino_action_sheet.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/dialog/cupertino_action_sheet.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..f215bd283b67607b8b32631d609ae291f3ee225d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/dialog/cupertino_action_sheet.0.dart @@ -0,0 +1,78 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoActionSheet]. + +void main() => runApp(const ActionSheetApp()); + +class ActionSheetApp extends StatelessWidget { + const ActionSheetApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: ActionSheetExample(), + ); + } +} + +class ActionSheetExample extends StatelessWidget { + const ActionSheetExample({super.key}); + + // This shows a CupertinoModalPopup which hosts a CupertinoActionSheet. + void _showActionSheet(BuildContext context) { + showCupertinoModalPopup( + context: context, + builder: (BuildContext context) => CupertinoActionSheet( + title: const Text('Title'), + message: const Text('Message'), + actions: [ + CupertinoActionSheetAction( + /// This parameter indicates the action would be a default + /// default behavior, turns the action's text to bold text. + isDefaultAction: true, + onPressed: () { + Navigator.pop(context); + }, + child: const Text('Default Action'), + ), + CupertinoActionSheetAction( + onPressed: () { + Navigator.pop(context); + }, + child: const Text('Action'), + ), + CupertinoActionSheetAction( + /// This parameter indicates the action would perform + /// a destructive action such as delete or exit and turns + /// the action's text color to red. + isDestructiveAction: true, + onPressed: () { + Navigator.pop(context); + }, + child: const Text('Destructive Action'), + ), + ], + ), + ); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoActionSheet Sample'), + ), + child: Center( + child: CupertinoButton( + onPressed: () => _showActionSheet(context), + child: const Text('CupertinoActionSheet'), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/dialog/cupertino_alert_dialog.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/dialog/cupertino_alert_dialog.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..185b4e34a7ec7b95052b782ab5fdd39f1d6fcd29 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/dialog/cupertino_alert_dialog.0.dart @@ -0,0 +1,72 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoAlertDialog]. + +void main() => runApp(const AlertDialogApp()); + +class AlertDialogApp extends StatelessWidget { + const AlertDialogApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: AlertDialogExample(), + ); + } +} + +class AlertDialogExample extends StatelessWidget { + const AlertDialogExample({super.key}); + + // This shows a CupertinoModalPopup which hosts a CupertinoAlertDialog. + void _showAlertDialog(BuildContext context) { + showCupertinoModalPopup( + context: context, + builder: (BuildContext context) => CupertinoAlertDialog( + title: const Text('Alert'), + content: const Text('Proceed with destructive action?'), + actions: [ + CupertinoDialogAction( + /// This parameter indicates this action is the default, + /// and turns the action's text to bold text. + isDefaultAction: true, + onPressed: () { + Navigator.pop(context); + }, + child: const Text('No'), + ), + CupertinoDialogAction( + /// This parameter indicates the action would perform + /// a destructive action such as deletion, and turns + /// the action's text color to red. + isDestructiveAction: true, + onPressed: () { + Navigator.pop(context); + }, + child: const Text('Yes'), + ), + ], + ), + ); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoAlertDialog Sample'), + ), + child: Center( + child: CupertinoButton( + onPressed: () => _showAlertDialog(context), + child: const Text('CupertinoAlertDialog'), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/dialog/cupertino_popup_surface.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/dialog/cupertino_popup_surface.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..76a807d77198db13a6efd7db8c08647efaf7baf1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/dialog/cupertino_popup_surface.0.dart @@ -0,0 +1,105 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoPopupSurface]. + +void main() => runApp(const PopupSurfaceApp()); + +class PopupSurfaceApp extends StatelessWidget { + const PopupSurfaceApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + home: PopupSurfaceExample(), + ); + } +} + +class PopupSurfaceExample extends StatefulWidget { + const PopupSurfaceExample({super.key}); + + @override + State createState() => _PopupSurfaceExampleState(); +} + +class _PopupSurfaceExampleState extends State { + bool _shouldPaintSurface = true; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + const Text('Paint surface'), + const SizedBox(width: 16.0), + CupertinoSwitch( + value: _shouldPaintSurface, + onChanged: (bool value) => setState(() => _shouldPaintSurface = value), + ), + ], + ), + CupertinoButton( + onPressed: () => _showPopupSurface(context), + child: const Text('Show popup'), + ), + ], + ), + ), + ); + } + + void _showPopupSurface(BuildContext context) { + showCupertinoModalPopup( + context: context, + builder: (BuildContext context) { + return CupertinoPopupSurface( + isSurfacePainted: _shouldPaintSurface, + child: Container( + height: 240, + padding: const EdgeInsets.all(8.0), + child: Column( + children: [ + Expanded( + child: Container( + alignment: Alignment.center, + decoration: _shouldPaintSurface + ? null + : BoxDecoration( + color: CupertinoTheme.of(context).scaffoldBackgroundColor, + borderRadius: BorderRadius.circular(8.0), + ), + child: const Text('This is a popup surface.'), + ), + ), + const SizedBox(height: 8.0), + SizedBox( + width: double.infinity, + child: CupertinoButton( + color: _shouldPaintSurface + ? null + : CupertinoTheme.of(context).scaffoldBackgroundColor, + onPressed: () => Navigator.pop(context), + child: const Text( + 'Close', + style: TextStyle(color: CupertinoColors.systemBlue), + ), + ), + ), + ], + ), + ), + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/form_row/cupertino_form_row.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/form_row/cupertino_form_row.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..982d3f0367e92f74ee717352eb08a01aee74211a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/form_row/cupertino_form_row.0.dart @@ -0,0 +1,140 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoFormRow]. + +void main() => runApp(const CupertinoFormRowApp()); + +class CupertinoFormRowApp extends StatelessWidget { + const CupertinoFormRowApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: CupertinoFormRowExample(), + ); + } +} + +class CupertinoFormRowExample extends StatefulWidget { + const CupertinoFormRowExample({super.key}); + + @override + State createState() => _CupertinoFormRowExampleState(); +} + +class _CupertinoFormRowExampleState extends State { + bool airplaneMode = false; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoFormSection Sample'), + ), + // Add safe area widget to place the CupertinoFormSection below the navigation bar. + child: SafeArea( + child: CupertinoFormSection( + header: const Text('Connectivity'), + children: [ + CupertinoFormRow( + prefix: const PrefixWidget( + icon: CupertinoIcons.airplane, + title: 'Airplane Mode', + color: CupertinoColors.systemOrange, + ), + child: CupertinoSwitch( + value: airplaneMode, + onChanged: (bool value) { + setState(() { + airplaneMode = value; + }); + }, + ), + ), + const CupertinoFormRow( + prefix: PrefixWidget( + icon: CupertinoIcons.wifi, + title: 'Wi-Fi', + color: CupertinoColors.systemBlue, + ), + error: Text('Home network unavailable'), + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [Text('Not connected'), SizedBox(width: 5), Icon(CupertinoIcons.forward)], + ), + ), + const CupertinoFormRow( + prefix: PrefixWidget( + icon: CupertinoIcons.bluetooth, + title: 'Bluetooth', + color: CupertinoColors.activeBlue, + ), + helper: Padding( + padding: EdgeInsets.symmetric(vertical: 4.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text('Headphone'), + Text('Connected'), + ], + ), + ), + child: Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + Text('On'), + SizedBox(width: 5), + Icon(CupertinoIcons.forward), + ], + ), + ), + const CupertinoFormRow( + prefix: PrefixWidget( + icon: CupertinoIcons.bluetooth, + title: 'Mobile Data', + color: CupertinoColors.systemGreen, + ), + child: Icon(CupertinoIcons.forward), + ), + ], + ), + ), + ); + } +} + +class PrefixWidget extends StatelessWidget { + const PrefixWidget({ + super.key, + required this.icon, + required this.title, + required this.color, + }); + + final IconData icon; + final String title; + final Color color; + + @override + Widget build(BuildContext context) { + return Row( + children: [ + Container( + padding: const EdgeInsets.all(4.0), + decoration: BoxDecoration( + color: color, + borderRadius: BorderRadius.circular(4.0), + ), + child: Icon(icon, color: CupertinoColors.white), + ), + const SizedBox(width: 15), + Text(title) + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/list_section/list_section_base.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/list_section/list_section_base.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..c30d50a201e4d7f70256d2b2407437563d3cd9be --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/list_section/list_section_base.0.dart @@ -0,0 +1,92 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for base [CupertinoListSection] and [CupertinoListTile]. + +void main() => runApp(const CupertinoListSectionBaseApp()); + +class CupertinoListSectionBaseApp extends StatelessWidget { + const CupertinoListSectionBaseApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + home: ListSectionBaseExample(), + ); + } +} + +class ListSectionBaseExample extends StatelessWidget { + const ListSectionBaseExample({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + child: CupertinoListSection( + header: const Text('My Reminders'), + children: [ + CupertinoListTile( + title: const Text('Open pull request'), + leading: Container( + width: double.infinity, + height: double.infinity, + color: CupertinoColors.activeGreen, + ), + trailing: const CupertinoListTileChevron(), + onTap: () => Navigator.of(context).push( + CupertinoPageRoute( + builder: (BuildContext context) { + return const _SecondPage(text: 'Open pull request'); + }, + ), + ), + ), + CupertinoListTile( + title: const Text('Push to master'), + leading: Container( + width: double.infinity, + height: double.infinity, + color: CupertinoColors.systemRed, + ), + additionalInfo: const Text('Not available'), + ), + CupertinoListTile( + title: const Text('View last commit'), + leading: Container( + width: double.infinity, + height: double.infinity, + color: CupertinoColors.activeOrange, + ), + additionalInfo: const Text('12 days ago'), + trailing: const CupertinoListTileChevron(), + onTap: () => Navigator.of(context).push( + CupertinoPageRoute( + builder: (BuildContext context) { + return const _SecondPage(text: 'Last commit'); + }, + ), + ), + ), + ], + ), + ); + } +} + +class _SecondPage extends StatelessWidget { + const _SecondPage({required this.text}); + + final String text; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + child: Center( + child: Text(text), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/list_section/list_section_inset.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/list_section/list_section_inset.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..d2d1105c0da3ccdbca2f7649157c54816a678ad1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/list_section/list_section_inset.0.dart @@ -0,0 +1,92 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for inset [CupertinoListSection] and [CupertinoListTile]. + +void main() => runApp(const CupertinoListSectionInsetApp()); + +class CupertinoListSectionInsetApp extends StatelessWidget { + const CupertinoListSectionInsetApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + home: ListSectionInsetExample(), + ); + } +} + +class ListSectionInsetExample extends StatelessWidget { + const ListSectionInsetExample({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + child: CupertinoListSection.insetGrouped( + header: const Text('My Reminders'), + children: [ + CupertinoListTile.notched( + title: const Text('Open pull request'), + leading: Container( + width: double.infinity, + height: double.infinity, + color: CupertinoColors.activeGreen, + ), + trailing: const CupertinoListTileChevron(), + onTap: () => Navigator.of(context).push( + CupertinoPageRoute( + builder: (BuildContext context) { + return const _SecondPage(text: 'Open pull request'); + }, + ), + ), + ), + CupertinoListTile.notched( + title: const Text('Push to master'), + leading: Container( + width: double.infinity, + height: double.infinity, + color: CupertinoColors.systemRed, + ), + additionalInfo: const Text('Not available'), + ), + CupertinoListTile.notched( + title: const Text('View last commit'), + leading: Container( + width: double.infinity, + height: double.infinity, + color: CupertinoColors.activeOrange, + ), + additionalInfo: const Text('12 days ago'), + trailing: const CupertinoListTileChevron(), + onTap: () => Navigator.of(context).push( + CupertinoPageRoute( + builder: (BuildContext context) { + return const _SecondPage(text: 'Last commit'); + }, + ), + ), + ), + ], + ), + ); + } +} + +class _SecondPage extends StatelessWidget { + const _SecondPage({required this.text}); + + final String text; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + child: Center( + child: Text(text), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/nav_bar/cupertino_navigation_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/nav_bar/cupertino_navigation_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..97a211cc53f9cdffdc3c7e15174da309d5949e43 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/nav_bar/cupertino_navigation_bar.0.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoNavigationBar]. + +void main() => runApp(const NavBarApp()); + +class NavBarApp extends StatelessWidget { + const NavBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: NavBarExample(), + ); + } +} + +class NavBarExample extends StatefulWidget { + const NavBarExample({super.key}); + + @override + State createState() => _NavBarExampleState(); +} + +class _NavBarExampleState extends State { + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + // Try removing opacity to observe the lack of a blur effect and of sliding content. + backgroundColor: CupertinoColors.systemGrey.withOpacity(0.5), + middle: const Text('CupertinoNavigationBar Sample'), + ), + child: Column( + children: [ + Container(height: 50, color: CupertinoColors.systemRed), + Container(height: 50, color: CupertinoColors.systemGreen), + Container(height: 50, color: CupertinoColors.systemBlue), + Container(height: 50, color: CupertinoColors.systemYellow), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/nav_bar/cupertino_sliver_nav_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/nav_bar/cupertino_sliver_nav_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..bc897e14697d4443ddfb0321bf05d15bd1317ae8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/nav_bar/cupertino_sliver_nav_bar.0.dart @@ -0,0 +1,107 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoSliverNavigationBar]. + +void main() => runApp(const SliverNavBarApp()); + +class SliverNavBarApp extends StatelessWidget { + const SliverNavBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: SliverNavBarExample(), + ); + } +} + +class SliverNavBarExample extends StatelessWidget { + const SliverNavBarExample({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + // A ScrollView that creates custom scroll effects using slivers. + child: CustomScrollView( + // A list of sliver widgets. + slivers: [ + const CupertinoSliverNavigationBar( + leading: Icon(CupertinoIcons.person_2), + // This title is visible in both collapsed and expanded states. + // When the "middle" parameter is omitted, the widget provided + // in the "largeTitle" parameter is used instead in the collapsed state. + largeTitle: Text('Contacts'), + trailing: Icon(CupertinoIcons.add_circled), + ), + // This widget fills the remaining space in the viewport. + // Drag the scrollable area to collapse the CupertinoSliverNavigationBar. + SliverFillRemaining( + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + const Text('Drag me up', textAlign: TextAlign.center), + CupertinoButton.filled( + onPressed: () { + Navigator.push( + context, + CupertinoPageRoute( + builder: (BuildContext context) { + return const NextPage(); + }, + ), + ); + }, + child: const Text('Go to Next Page'), + ), + ], + ), + ), + ], + ), + ); + } +} + +class NextPage extends StatelessWidget { + const NextPage({super.key}); + + @override + Widget build(BuildContext context) { + final Brightness brightness = CupertinoTheme.brightnessOf(context); + return CupertinoPageScaffold( + child: CustomScrollView( + slivers: [ + CupertinoSliverNavigationBar( + backgroundColor: CupertinoColors.systemYellow, + border: Border( + bottom: BorderSide( + color: brightness == Brightness.light ? CupertinoColors.black : CupertinoColors.white, + ), + ), + // The middle widget is visible in both collapsed and expanded states. + middle: const Text('Contacts Group'), + // When the "middle" parameter is implemented, the largest title is only visible + // when the CupertinoSliverNavigationBar is fully expanded. + largeTitle: const Text('Family'), + ), + const SliverFillRemaining( + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Text('Drag me up', textAlign: TextAlign.center), + // When the "leading" parameter is omitted on a route that has a previous page, + // the back button is automatically added to the leading position. + Text('Tap on the leading button to navigate back', textAlign: TextAlign.center), + ], + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/page_scaffold/cupertino_page_scaffold.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/page_scaffold/cupertino_page_scaffold.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..41c3c3bfa23440dc891b6262fef3609ba2d958e4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/page_scaffold/cupertino_page_scaffold.0.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoPageScaffold]. + +void main() => runApp(const PageScaffoldApp()); + +class PageScaffoldApp extends StatelessWidget { + const PageScaffoldApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: PageScaffoldExample(), + ); + } +} + +class PageScaffoldExample extends StatefulWidget { + const PageScaffoldExample({super.key}); + + @override + State createState() => _PageScaffoldExampleState(); +} + +class _PageScaffoldExampleState extends State { + int _count = 0; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + // Uncomment to change the background color + // backgroundColor: CupertinoColors.systemPink, + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoPageScaffold Sample'), + ), + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Center( + child: Text('You have pressed the button $_count times.'), + ), + const SizedBox(height: 20.0), + Center( + child: CupertinoButton.filled( + onPressed: () => setState(() => _count++), + child: const Icon(CupertinoIcons.add), + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/picker/cupertino_picker.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/picker/cupertino_picker.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..4ab0a2e1c23913355c59e7a8e721f52a5b8e7b06 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/picker/cupertino_picker.0.dart @@ -0,0 +1,119 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoPicker]. + +const double _kItemExtent = 32.0; +const List _fruitNames = [ + 'Apple', + 'Mango', + 'Banana', + 'Orange', + 'Pineapple', + 'Strawberry', +]; + +void main() => runApp(const CupertinoPickerApp()); + +class CupertinoPickerApp extends StatelessWidget { + const CupertinoPickerApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: CupertinoPickerExample(), + ); + } +} + +class CupertinoPickerExample extends StatefulWidget { + const CupertinoPickerExample({super.key}); + + @override + State createState() => _CupertinoPickerExampleState(); +} + +class _CupertinoPickerExampleState extends State { + int _selectedFruit = 0; + + // This shows a CupertinoModalPopup with a reasonable fixed height which hosts CupertinoPicker. + void _showDialog(Widget child) { + showCupertinoModalPopup( + context: context, + builder: (BuildContext context) => Container( + height: 216, + padding: const EdgeInsets.only(top: 6.0), + // The Bottom margin is provided to align the popup above the system navigation bar. + margin: EdgeInsets.only( + bottom: MediaQuery.of(context).viewInsets.bottom, + ), + // Provide a background color for the popup. + color: CupertinoColors.systemBackground.resolveFrom(context), + // Use a SafeArea widget to avoid system overlaps. + child: SafeArea( + top: false, + child: child, + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoPicker Sample'), + ), + child: DefaultTextStyle( + style: TextStyle( + color: CupertinoColors.label.resolveFrom(context), + fontSize: 22.0, + ), + child: Center( + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('Selected fruit: '), + CupertinoButton( + padding: EdgeInsets.zero, + // Display a CupertinoPicker with list of fruits. + onPressed: () => _showDialog( + CupertinoPicker( + magnification: 1.22, + squeeze: 1.2, + useMagnifier: true, + itemExtent: _kItemExtent, + // This sets the initial item. + scrollController: FixedExtentScrollController( + initialItem: _selectedFruit, + ), + // This is called when selected item is changed. + onSelectedItemChanged: (int selectedItem) { + setState(() { + _selectedFruit = selectedItem; + }); + }, + children: List.generate(_fruitNames.length, (int index) { + return Center(child: Text(_fruitNames[index])); + }), + ), + ), + // This displays the selected fruit name. + child: Text( + _fruitNames[_selectedFruit], + style: const TextStyle( + fontSize: 22.0, + ), + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/radio/cupertino_radio.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/radio/cupertino_radio.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..6033b75cb67b00f31dea9445f005cfb129c6e9e6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/radio/cupertino_radio.0.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoRadio]. + +void main() => runApp(const CupertinoRadioApp()); + +class CupertinoRadioApp extends StatelessWidget { + const CupertinoRadioApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: Text('CupertinoRadio Example'), + ), + child: SafeArea( + child: CupertinoRadioExample(), + ), + ), + ); + } +} + +enum SingingCharacter { lafayette, jefferson } + +class CupertinoRadioExample extends StatefulWidget { + const CupertinoRadioExample({super.key}); + + @override + State createState() => _CupertinoRadioExampleState(); +} + +class _CupertinoRadioExampleState extends State { + SingingCharacter? _character = SingingCharacter.lafayette; + + @override + Widget build(BuildContext context) { + return CupertinoListSection( + children: [ + CupertinoListTile( + title: const Text('Lafayette'), + leading: CupertinoRadio( + value: SingingCharacter.lafayette, + groupValue: _character, + onChanged: (SingingCharacter? value) { + setState(() { + _character = value; + }); + }, + ), + ), + CupertinoListTile( + title: const Text('Thomas Jefferson'), + leading: CupertinoRadio( + value: SingingCharacter.jefferson, + groupValue: _character, + onChanged: (SingingCharacter? value) { + setState(() { + _character = value; + }); + }, + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/radio/cupertino_radio.toggleable.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/radio/cupertino_radio.toggleable.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..5a81881168dd76d303508ceb75c4903dc1146137 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/radio/cupertino_radio.toggleable.0.dart @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoRadio.toggleable]. + +void main() => runApp(const CupertinoRadioApp()); + +class CupertinoRadioApp extends StatelessWidget { + const CupertinoRadioApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + home: CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: Text('CupertinoRadio Toggleable Example'), + ), + child: SafeArea( + child: CupertinoRadioExample(), + ), + ), + ); + } +} + +enum SingingCharacter { mulligan, hamilton } + +class CupertinoRadioExample extends StatefulWidget { + const CupertinoRadioExample({super.key}); + + @override + State createState() => _CupertinoRadioExampleState(); +} + +class _CupertinoRadioExampleState extends State { + SingingCharacter? _character = SingingCharacter.mulligan; + + @override + Widget build(BuildContext context) { + return CupertinoListSection( + children: [ + CupertinoListTile( + title: const Text('Hercules Mulligan'), + leading: CupertinoRadio( + value: SingingCharacter.mulligan, + groupValue: _character, + // TRY THIS: Try setting the toggleable value to false and + // see how that changes the behavior of the widget. + toggleable: true, + onChanged: (SingingCharacter? value) { + setState(() { + _character = value; + }); + }, + ), + ), + CupertinoListTile( + title: const Text('Eliza Hamilton'), + leading: CupertinoRadio( + value: SingingCharacter.hamilton, + groupValue: _character, + toggleable: true, + onChanged: (SingingCharacter? value) { + setState(() { + _character = value; + }); + }, + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/refresh/cupertino_sliver_refresh_control.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/refresh/cupertino_sliver_refresh_control.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a7a8883b0f522b982541f6d434cc74747f28a6c8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/refresh/cupertino_sliver_refresh_control.0.dart @@ -0,0 +1,79 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoSliverRefreshControl]. + +void main() => runApp(const RefreshControlApp()); + +class RefreshControlApp extends StatelessWidget { + const RefreshControlApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: RefreshControlExample(), + ); + } +} + +class RefreshControlExample extends StatefulWidget { + const RefreshControlExample({super.key}); + + @override + State createState() => _RefreshControlExampleState(); +} + +class _RefreshControlExampleState extends State { + List colors = [ + CupertinoColors.systemYellow, + CupertinoColors.systemOrange, + CupertinoColors.systemPink, + ]; + List items = [ + Container(color: CupertinoColors.systemPink, height: 100.0), + Container(color: CupertinoColors.systemOrange, height: 100.0), + Container(color: CupertinoColors.systemYellow, height: 100.0), + ]; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoSliverRefreshControl Sample'), + ), + child: CustomScrollView( + physics: const BouncingScrollPhysics( + parent: AlwaysScrollableScrollPhysics(), + ), + slivers: [ + const CupertinoSliverNavigationBar( + largeTitle: Text('Scroll down'), + ), + CupertinoSliverRefreshControl( + onRefresh: () async { + await Future.delayed( + const Duration(milliseconds: 1000), + ); + setState(() { + items.insert( + 0, + Container(color: colors[items.length % 3], height: 100.0), + ); + }); + }, + ), + SliverList( + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) => items[index], + childCount: items.length, + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/route/show_cupertino_dialog.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/route/show_cupertino_dialog.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..06a26577d9db0d40b5147434b3cdbafdfbae680e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/route/show_cupertino_dialog.0.dart @@ -0,0 +1,70 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [showCupertinoDialog]. + +void main() => runApp(const CupertinoDialogApp()); + +class CupertinoDialogApp extends StatelessWidget { + const CupertinoDialogApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + restorationScopeId: 'app', + home: CupertinoDialogExample(), + ); + } +} + +class CupertinoDialogExample extends StatelessWidget { + const CupertinoDialogExample({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('Home'), + ), + child: Center( + child: CupertinoButton( + onPressed: () { + Navigator.of(context).restorablePush(_dialogBuilder); + }, + child: const Text('Open Dialog'), + ), + ), + ); + } + + @pragma('vm:entry-point') + static Route _dialogBuilder(BuildContext context, Object? arguments) { + return CupertinoDialogRoute( + context: context, + builder: (BuildContext context) { + return CupertinoAlertDialog( + title: const Text('Title'), + content: const Text('Content'), + actions: [ + CupertinoDialogAction( + onPressed: () { + Navigator.pop(context); + }, + child: const Text('Yes'), + ), + CupertinoDialogAction( + onPressed: () { + Navigator.pop(context); + }, + child: const Text('No'), + ), + ], + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/route/show_cupertino_modal_popup.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/route/show_cupertino_modal_popup.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..188087ec0ecd41cc514f8fec3e296520696a2fb2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/route/show_cupertino_modal_popup.0.dart @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [showCupertinoModalPopup]. + +void main() => runApp(const ModalPopupApp()); + +class ModalPopupApp extends StatelessWidget { + const ModalPopupApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + restorationScopeId: 'app', + home: ModalPopupExample(), + ); + } +} + +class ModalPopupExample extends StatelessWidget { + const ModalPopupExample({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('Home'), + ), + child: Center( + child: CupertinoButton( + onPressed: () { + Navigator.of(context).restorablePush(_modalBuilder); + }, + child: const Text('Open Modal'), + ), + ), + ); + } + + @pragma('vm:entry-point') + static Route _modalBuilder(BuildContext context, Object? arguments) { + return CupertinoModalPopupRoute( + builder: (BuildContext context) { + return CupertinoActionSheet( + title: const Text('Title'), + message: const Text('Message'), + actions: [ + CupertinoActionSheetAction( + child: const Text('Action One'), + onPressed: () { + Navigator.pop(context); + }, + ), + CupertinoActionSheetAction( + child: const Text('Action Two'), + onPressed: () { + Navigator.pop(context); + }, + ), + ], + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/scrollbar/cupertino_scrollbar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/scrollbar/cupertino_scrollbar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..8f5855e08711c90cd878c3cec3aad5f426fd2eea --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/scrollbar/cupertino_scrollbar.0.dart @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoScrollbar]. + +void main() => runApp(const ScrollbarApp()); + +class ScrollbarApp extends StatelessWidget { + const ScrollbarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: ScrollbarExample(), + ); + } +} + +class ScrollbarExample extends StatelessWidget { + const ScrollbarExample({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoScrollbar Sample'), + ), + child: CupertinoScrollbar( + thickness: 6.0, + thicknessWhileDragging: 10.0, + radius: const Radius.circular(34.0), + radiusWhileDragging: Radius.zero, + child: ListView.builder( + itemCount: 120, + itemBuilder: (BuildContext context, int index) { + return Center( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Text('Item $index'), + ), + ); + }, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/scrollbar/cupertino_scrollbar.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/scrollbar/cupertino_scrollbar.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..f8b1462e306caee290025db3fb62ad061c8f78e7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/scrollbar/cupertino_scrollbar.1.dart @@ -0,0 +1,61 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoScrollbar]. + +void main() => runApp(const ScrollbarApp()); + +class ScrollbarApp extends StatelessWidget { + const ScrollbarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: ScrollbarExample(), + ); + } +} + +class ScrollbarExample extends StatefulWidget { + const ScrollbarExample({super.key}); + + @override + State createState() => _ScrollbarExampleState(); +} + +class _ScrollbarExampleState extends State { + final ScrollController _controllerOne = ScrollController(); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoScrollbar Sample'), + ), + child: CupertinoScrollbar( + thickness: 6.0, + thicknessWhileDragging: 10.0, + radius: const Radius.circular(34.0), + radiusWhileDragging: Radius.zero, + controller: _controllerOne, + thumbVisibility: true, + child: ListView.builder( + controller: _controllerOne, + itemCount: 120, + itemBuilder: (BuildContext context, int index) { + return Center( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Text('Item $index'), + ), + ); + }, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/search_field/cupertino_search_field.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/search_field/cupertino_search_field.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..01c956eacdda927ae02480719cd61443a741481f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/search_field/cupertino_search_field.0.dart @@ -0,0 +1,62 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoSearchTextField]. + +void main() => runApp(const SearchTextFieldApp()); + +class SearchTextFieldApp extends StatelessWidget { + const SearchTextFieldApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: SearchTextFieldExample(), + ); + } +} + +class SearchTextFieldExample extends StatefulWidget { + const SearchTextFieldExample({super.key}); + + @override + State createState() => _SearchTextFieldExampleState(); +} + +class _SearchTextFieldExampleState extends State { + late TextEditingController textController; + + @override + void initState() { + super.initState(); + textController = TextEditingController(text: 'initial text'); + } + + @override + void dispose() { + textController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoSearchTextField Sample'), + ), + child: Center( + child: Padding( + padding: const EdgeInsets.all(16.0), + child: CupertinoSearchTextField( + controller: textController, + placeholder: 'Search', + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/search_field/cupertino_search_field.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/search_field/cupertino_search_field.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..6a106cc5a67588c2f07bbc9033eec3399931ee04 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/search_field/cupertino_search_field.1.dart @@ -0,0 +1,80 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoSearchTextField]. + +void main() => runApp(const SearchTextFieldApp()); + +class SearchTextFieldApp extends StatelessWidget { + const SearchTextFieldApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: SearchTextFieldExample(), + ); + } +} + +class SearchTextFieldExample extends StatefulWidget { + const SearchTextFieldExample({super.key}); + + @override + State createState() => _SearchTextFieldExampleState(); +} + +class _SearchTextFieldExampleState extends State { + String text = ''; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoSearchTextField Sample'), + ), + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text(text), + Padding( + padding: const EdgeInsets.all(16.0), + child: SearchTextField( + fieldValue: (String value) { + setState(() { + text = value; + }); + }, + ), + ), + ], + ), + ), + ); + } +} + +class SearchTextField extends StatelessWidget { + const SearchTextField({ + super.key, + required this.fieldValue, + }); + + final ValueChanged fieldValue; + + @override + Widget build(BuildContext context) { + return CupertinoSearchTextField( + onChanged: (String value) { + fieldValue('The text has changed to: $value'); + }, + onSubmitted: (String value) { + fieldValue('Submitted text: $value'); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/segmented_control/cupertino_segmented_control.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/segmented_control/cupertino_segmented_control.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..caad200d026375bdc6c2a6b04c325379863db5f0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/segmented_control/cupertino_segmented_control.0.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoSegmentedControl]. + +enum Sky { midnight, viridian, cerulean } + +Map skyColors = { + Sky.midnight: const Color(0xff191970), + Sky.viridian: const Color(0xff40826d), + Sky.cerulean: const Color(0xff007ba7), +}; + +void main() => runApp(const SegmentedControlApp()); + +class SegmentedControlApp extends StatelessWidget { + const SegmentedControlApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: SegmentedControlExample(), + ); + } +} + +class SegmentedControlExample extends StatefulWidget { + const SegmentedControlExample({super.key}); + + @override + State createState() => _SegmentedControlExampleState(); +} + +class _SegmentedControlExampleState extends State { + Sky _selectedSegment = Sky.midnight; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + backgroundColor: skyColors[_selectedSegment], + navigationBar: CupertinoNavigationBar( + // This Cupertino segmented control has the enum "Sky" as the type. + middle: CupertinoSegmentedControl( + selectedColor: skyColors[_selectedSegment], + // Provide horizontal padding around the children. + padding: const EdgeInsets.symmetric(horizontal: 12), + // This represents a currently selected segmented control. + groupValue: _selectedSegment, + // Callback that sets the selected segmented control. + onValueChanged: (Sky value) { + setState(() { + _selectedSegment = value; + }); + }, + children: const { + Sky.midnight: Padding( + padding: EdgeInsets.symmetric(horizontal: 20), + child: Text('Midnight'), + ), + Sky.viridian: Padding( + padding: EdgeInsets.symmetric(horizontal: 20), + child: Text('Viridian'), + ), + Sky.cerulean: Padding( + padding: EdgeInsets.symmetric(horizontal: 20), + child: Text('Cerulean'), + ), + }, + ), + ), + child: Center( + child: Text( + 'Selected Segment: ${_selectedSegment.name}', + style: const TextStyle(color: CupertinoColors.white), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/segmented_control/cupertino_sliding_segmented_control.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/segmented_control/cupertino_sliding_segmented_control.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..64f51a9125e1ca9d2b5a420d88ce87f15d44c309 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/segmented_control/cupertino_sliding_segmented_control.0.dart @@ -0,0 +1,93 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoSlidingSegmentedControl]. + +enum Sky { midnight, viridian, cerulean } + +Map skyColors = { + Sky.midnight: const Color(0xff191970), + Sky.viridian: const Color(0xff40826d), + Sky.cerulean: const Color(0xff007ba7), +}; + +void main() => runApp(const SegmentedControlApp()); + +class SegmentedControlApp extends StatelessWidget { + const SegmentedControlApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: SegmentedControlExample(), + ); + } +} + +class SegmentedControlExample extends StatefulWidget { + const SegmentedControlExample({super.key}); + + @override + State createState() => _SegmentedControlExampleState(); +} + +class _SegmentedControlExampleState extends State { + Sky _selectedSegment = Sky.midnight; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + backgroundColor: skyColors[_selectedSegment], + navigationBar: CupertinoNavigationBar( + // This Cupertino segmented control has the enum "Sky" as the type. + middle: CupertinoSlidingSegmentedControl( + backgroundColor: CupertinoColors.systemGrey2, + thumbColor: skyColors[_selectedSegment]!, + // This represents the currently selected segmented control. + groupValue: _selectedSegment, + // Callback that sets the selected segmented control. + onValueChanged: (Sky? value) { + if (value != null) { + setState(() { + _selectedSegment = value; + }); + } + }, + children: const { + Sky.midnight: Padding( + padding: EdgeInsets.symmetric(horizontal: 20), + child: Text( + 'Midnight', + style: TextStyle(color: CupertinoColors.white), + ), + ), + Sky.viridian: Padding( + padding: EdgeInsets.symmetric(horizontal: 20), + child: Text( + 'Viridian', + style: TextStyle(color: CupertinoColors.white), + ), + ), + Sky.cerulean: Padding( + padding: EdgeInsets.symmetric(horizontal: 20), + child: Text( + 'Cerulean', + style: TextStyle(color: CupertinoColors.white), + ), + ), + }, + ), + ), + child: Center( + child: Text( + 'Selected Segment: ${_selectedSegment.name}', + style: const TextStyle(color: CupertinoColors.white), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/slider/cupertino_slider.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/slider/cupertino_slider.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..d50faaf932f6cc6407452df2ee98240e4d346f87 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/slider/cupertino_slider.0.dart @@ -0,0 +1,86 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoSlider]. + +void main() => runApp(const CupertinoSliderApp()); + +class CupertinoSliderApp extends StatelessWidget { + const CupertinoSliderApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: CupertinoSliderExample(), + ); + } +} + +class CupertinoSliderExample extends StatefulWidget { + const CupertinoSliderExample({super.key}); + + @override + State createState() => _CupertinoSliderExampleState(); +} + +class _CupertinoSliderExampleState extends State { + double _currentSliderValue = 0.0; + String? _sliderStatus; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoSlider Sample'), + ), + child: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + // Display the current slider value. + Text('$_currentSliderValue'), + CupertinoSlider( + key: const Key('slider'), + value: _currentSliderValue, + // This allows the slider to jump between divisions. + // If null, the slide movement is continuous. + divisions: 5, + // The maximum slider value + max: 100, + activeColor: CupertinoColors.systemPurple, + thumbColor: CupertinoColors.systemPurple, + // This is called when sliding is started. + onChangeStart: (double value) { + setState(() { + _sliderStatus = 'Sliding'; + }); + }, + // This is called when sliding has ended. + onChangeEnd: (double value) { + setState(() { + _sliderStatus = 'Finished sliding'; + }); + }, + // This is called when slider value is changed. + onChanged: (double value) { + setState(() { + _currentSliderValue = value; + }); + }, + ), + Text( + _sliderStatus ?? '', + style: CupertinoTheme.of(context).textTheme.textStyle.copyWith( + fontSize: 12, + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/switch/cupertino_switch.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/switch/cupertino_switch.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..9f40bf03d7d018829ac7750e9c3c3f440292283d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/switch/cupertino_switch.0.dart @@ -0,0 +1,54 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoSwitch]. + +void main() => runApp(const CupertinoSwitchApp()); + +class CupertinoSwitchApp extends StatelessWidget { + const CupertinoSwitchApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: CupertinoSwitchExample(), + ); + } +} + +class CupertinoSwitchExample extends StatefulWidget { + const CupertinoSwitchExample({super.key}); + + @override + State createState() => _CupertinoSwitchExampleState(); +} + +class _CupertinoSwitchExampleState extends State { + bool switchValue = true; + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoSwitch Sample'), + ), + child: Center( + child: CupertinoSwitch( + // This bool value toggles the switch. + value: switchValue, + activeColor: CupertinoColors.activeBlue, + onChanged: (bool? value) { + // This is called when the user toggles the switch. + setState(() { + switchValue = value ?? false; + }); + }, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/tab_scaffold/cupertino_tab_controller.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/tab_scaffold/cupertino_tab_controller.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..0c67f83f001e73ef377ee971f7d03c0a2fa3dc52 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/tab_scaffold/cupertino_tab_controller.0.dart @@ -0,0 +1,72 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoTabController]. + +void main() => runApp(const TabControllerApp()); + +class TabControllerApp extends StatelessWidget { + const TabControllerApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: TabControllerExample(), + ); + } +} + +class TabControllerExample extends StatefulWidget { + const TabControllerExample({super.key}); + + @override + State createState() => _TabControllerExampleState(); +} + +class _TabControllerExampleState extends State { + final CupertinoTabController controller = CupertinoTabController(); + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return CupertinoTabScaffold( + controller: controller, + tabBar: CupertinoTabBar( + items: const [ + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.square_grid_2x2_fill), + label: 'Browse', + ), + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.star_circle_fill), + label: 'Starred', + ), + ], + ), + tabBuilder: (BuildContext context, int index) { + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Content of tab $index'), + const SizedBox(height: 10), + CupertinoButton( + onPressed: () => controller.index = 0, + child: const Text('Go to first tab'), + ), + ], + ), + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/tab_scaffold/cupertino_tab_scaffold.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/tab_scaffold/cupertino_tab_scaffold.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e69049c3131db931d7556e5caf89d3dad6175423 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/tab_scaffold/cupertino_tab_scaffold.0.dart @@ -0,0 +1,85 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoTabScaffold]. + +void main() => runApp(const TabScaffoldApp()); + +class TabScaffoldApp extends StatelessWidget { + const TabScaffoldApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: TabScaffoldExample(), + ); + } +} + +class TabScaffoldExample extends StatefulWidget { + const TabScaffoldExample({super.key}); + + @override + State createState() => _TabScaffoldExampleState(); +} + +class _TabScaffoldExampleState extends State { + @override + Widget build(BuildContext context) { + return CupertinoTabScaffold( + tabBar: CupertinoTabBar( + items: const [ + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.home), + label: 'Home', + ), + BottomNavigationBarItem( + icon: Icon(CupertinoIcons.search_circle_fill), + label: 'Explore', + ), + ], + ), + tabBuilder: (BuildContext context, int index) { + return CupertinoTabView( + builder: (BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: Text('Page 1 of tab $index'), + ), + child: Center( + child: CupertinoButton( + child: const Text('Next page'), + onPressed: () { + Navigator.of(context).push( + CupertinoPageRoute( + builder: (BuildContext context) { + return CupertinoPageScaffold( + navigationBar: CupertinoNavigationBar( + middle: Text('Page 2 of tab $index'), + ), + child: Center( + child: CupertinoButton( + child: const Text('Back'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + ), + ); + }, + ), + ); + }, + ), + ), + ); + }, + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/text_field/cupertino_text_field.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/text_field/cupertino_text_field.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..70ddb14c56a023e4fb4e89062551a89e5a41d254 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/text_field/cupertino_text_field.0.dart @@ -0,0 +1,58 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoTextField]. + +void main() => runApp(const CupertinoTextFieldApp()); + +class CupertinoTextFieldApp extends StatelessWidget { + const CupertinoTextFieldApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: CupertinoTextFieldExample(), + ); + } +} + +class CupertinoTextFieldExample extends StatefulWidget { + const CupertinoTextFieldExample({super.key}); + + @override + State createState() => _CupertinoTextFieldExampleState(); +} + +class _CupertinoTextFieldExampleState extends State { + late TextEditingController _textController; + + @override + void initState() { + super.initState(); + _textController = TextEditingController(text: 'initial text'); + } + + @override + void dispose() { + _textController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoTextField Sample'), + ), + child: Center( + child: CupertinoTextField( + controller: _textController, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/text_form_field_row/cupertino_text_form_field_row.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/text_form_field_row/cupertino_text_form_field_row.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..4506b60b77fcc5e98fc00533a0fe98ad03421a28 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/cupertino/text_form_field_row/cupertino_text_form_field_row.1.dart @@ -0,0 +1,58 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; + +/// Flutter code sample for [CupertinoTextFormFieldRow]. + +void main() => runApp(const FormSectionApp()); + +class FormSectionApp extends StatelessWidget { + const FormSectionApp({super.key}); + + @override + Widget build(BuildContext context) { + return const CupertinoApp( + theme: CupertinoThemeData(brightness: Brightness.light), + home: FromSectionExample(), + ); + } +} + +class FromSectionExample extends StatelessWidget { + const FromSectionExample({super.key}); + + @override + Widget build(BuildContext context) { + return CupertinoPageScaffold( + navigationBar: const CupertinoNavigationBar( + middle: Text('CupertinoFormSection Sample'), + ), + // Add safe area widget to place the CupertinoFormSection below the navigation bar. + child: SafeArea( + child: Form( + autovalidateMode: AutovalidateMode.always, + onChanged: () { + Form.maybeOf(primaryFocus!.context!)?.save(); + }, + child: CupertinoFormSection.insetGrouped( + header: const Text('SECTION 1'), + children: List.generate(5, (int index) { + return CupertinoTextFormFieldRow( + prefix: const Text('Enter text'), + placeholder: 'Enter text', + validator: (String? value) { + if (value == null || value.isEmpty) { + return 'Please enter a value'; + } + return null; + }, + ); + }), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/gestures/pointer_signal_resolver/pointer_signal_resolver.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/gestures/pointer_signal_resolver/pointer_signal_resolver.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..ff1b060d8f25f8211c2ff4e2fc34e43039aeac97 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/gestures/pointer_signal_resolver/pointer_signal_resolver.0.dart @@ -0,0 +1,135 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/gestures.dart'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [PointerSignalResolver]. + +void main() => runApp(const PointerSignalResolverExampleApp()); + +class PointerSignalResolverExampleApp extends StatelessWidget { + const PointerSignalResolverExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: PointerSignalResolverExample(), + ); + } +} + +class ColorChanger extends StatefulWidget { + const ColorChanger({ + super.key, + required this.initialColor, + required this.useResolver, + this.child, + }); + + final HSVColor initialColor; + final bool useResolver; + final Widget? child; + + @override + State createState() => _ColorChangerState(); +} + +class _ColorChangerState extends State { + late HSVColor color; + + void rotateColor() { + setState(() { + color = color.withHue((color.hue + 3) % 360.0); + }); + } + + @override + void initState() { + super.initState(); + color = widget.initialColor; + } + + @override + Widget build(BuildContext context) { + return DecoratedBox( + decoration: BoxDecoration( + border: const Border.fromBorderSide(BorderSide()), + color: color.toColor(), + ), + child: Listener( + onPointerSignal: (PointerSignalEvent event) { + if (widget.useResolver) { + GestureBinding.instance.pointerSignalResolver.register(event, (PointerSignalEvent event) { + rotateColor(); + }); + } else { + rotateColor(); + } + }, + child: Stack( + fit: StackFit.expand, + children: [ + const AbsorbPointer(), + if (widget.child != null) widget.child!, + ], + ), + ), + ); + } +} + +class PointerSignalResolverExample extends StatefulWidget { + const PointerSignalResolverExample({super.key}); + + @override + State createState() => _PointerSignalResolverExampleState(); +} + +class _PointerSignalResolverExampleState extends State { + bool useResolver = false; + + @override + Widget build(BuildContext context) { + return Material( + child: Stack( + fit: StackFit.expand, + children: [ + ColorChanger( + initialColor: const HSVColor.fromAHSV(0.2, 120.0, 1, 1), + useResolver: useResolver, + child: FractionallySizedBox( + widthFactor: 0.5, + heightFactor: 0.5, + child: ColorChanger( + initialColor: const HSVColor.fromAHSV(1, 60.0, 1, 1), + useResolver: useResolver, + ), + ), + ), + Align( + alignment: Alignment.topLeft, + child: Row( + children: [ + Switch( + value: useResolver, + onChanged: (bool value) { + setState(() { + useResolver = value; + }); + }, + ), + const Text( + 'Use the PointerSignalResolver?', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/gestures/tap_and_drag/tap_and_drag.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/gestures/tap_and_drag/tap_and_drag.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..ec1229572be535efeede7e50bcd6310faded1be5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/gestures/tap_and_drag/tap_and_drag.0.dart @@ -0,0 +1,138 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TapAndPanGestureRecognizer]. + +void main() { + runApp(const TapAndDragToZoomApp()); +} + +class TapAndDragToZoomApp extends StatelessWidget { + const TapAndDragToZoomApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold( + body: Center( + child: TapAndDragToZoomWidget( + child: MyBoxWidget(), + ), + ), + ), + ); + } +} + +class MyBoxWidget extends StatelessWidget { + const MyBoxWidget({super.key}); + + @override + Widget build(BuildContext context) { + return Container( + color: Colors.blueAccent, + height: 100.0, + width: 100.0, + ); + } +} + +// This widget will scale its child up when it detects a drag up, after a +// double tap/click. It will scale the widget down when it detects a drag down, +// after a double tap. Dragging down and then up after a double tap/click will +// zoom the child in/out. The scale of the child will be reset when the drag ends. +class TapAndDragToZoomWidget extends StatefulWidget { + const TapAndDragToZoomWidget({super.key, required this.child}); + + final Widget child; + + @override + State createState() => _TapAndDragToZoomWidgetState(); +} + +class _TapAndDragToZoomWidgetState extends State { + final double scaleMultiplier = -0.0001; + double _currentScale = 1.0; + Offset? _previousDragPosition; + + static double _keepScaleWithinBounds(double scale) { + const double minScale = 0.1; + const double maxScale = 30; + if (scale <= 0) { + return minScale; + } + if (scale >= 30) { + return maxScale; + } + return scale; + } + + void _zoomLogic(Offset currentDragPosition) { + final double dx = (_previousDragPosition!.dx - currentDragPosition.dx).abs(); + final double dy = (_previousDragPosition!.dy - currentDragPosition.dy).abs(); + + if (dx > dy) { + // Ignore horizontal drags. + _previousDragPosition = currentDragPosition; + return; + } + + if (currentDragPosition.dy < _previousDragPosition!.dy) { + // Zoom out on drag up. + setState(() { + _currentScale += currentDragPosition.dy * scaleMultiplier; + _currentScale = _keepScaleWithinBounds(_currentScale); + }); + } else { + // Zoom in on drag down. + setState(() { + _currentScale -= currentDragPosition.dy * scaleMultiplier; + _currentScale = _keepScaleWithinBounds(_currentScale); + }); + } + _previousDragPosition = currentDragPosition; + } + + @override + Widget build(BuildContext context) { + return RawGestureDetector( + gestures: { + TapAndPanGestureRecognizer: GestureRecognizerFactoryWithHandlers( + () => TapAndPanGestureRecognizer(), + (TapAndPanGestureRecognizer instance) { + instance + ..onTapDown = (TapDragDownDetails details) { + _previousDragPosition = details.globalPosition; + } + ..onDragStart = (TapDragStartDetails details) { + if (details.consecutiveTapCount == 2) { + _zoomLogic(details.globalPosition); + } + } + ..onDragUpdate = (TapDragUpdateDetails details) { + if (details.consecutiveTapCount == 2) { + _zoomLogic(details.globalPosition); + } + } + ..onDragEnd = (TapDragEndDetails details) { + if (details.consecutiveTapCount == 2) { + setState(() { + _currentScale = 1.0; + }); + _previousDragPosition = null; + } + }; + } + ), + }, + child: Transform.scale( + scale: _currentScale, + child: widget.child, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/about/about_list_tile.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/about/about_list_tile.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..ca431cb3a01b8b3e05befd948b2b46f93cff54ac --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/about/about_list_tile.0.dart @@ -0,0 +1,81 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AboutListTile]. + +void main() => runApp(const AboutListTileExampleApp()); + +class AboutListTileExampleApp extends StatelessWidget { + const AboutListTileExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: AboutListTileExample(), + ); + } +} + +class AboutListTileExample extends StatelessWidget { + const AboutListTileExample({super.key}); + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextStyle textStyle = theme.textTheme.bodyMedium!; + final List aboutBoxChildren = [ + const SizedBox(height: 24), + RichText( + text: TextSpan( + children: [ + TextSpan( + style: textStyle, + text: "Flutter is Google's UI toolkit for building beautiful, " + 'natively compiled applications for mobile, web, and desktop ' + 'from a single codebase. Learn more about Flutter at '), + TextSpan(style: textStyle.copyWith(color: theme.colorScheme.primary), text: 'https://flutter.dev'), + TextSpan(style: textStyle, text: '.'), + ], + ), + ), + ]; + + return Scaffold( + appBar: AppBar( + title: const Text('Show About Example'), + ), + drawer: Drawer( + child: SingleChildScrollView( + child: SafeArea( + child: AboutListTile( + icon: const Icon(Icons.info), + applicationIcon: const FlutterLogo(), + applicationName: 'Show About Example', + applicationVersion: 'August 2019', + applicationLegalese: '\u{a9} 2014 The Flutter Authors', + aboutBoxChildren: aboutBoxChildren, + ), + ), + ), + ), + body: Center( + child: ElevatedButton( + child: const Text('Show About Example'), + onPressed: () { + showAboutDialog( + context: context, + applicationIcon: const FlutterLogo(), + applicationName: 'Show About Example', + applicationVersion: 'August 2019', + applicationLegalese: '\u{a9} 2014 The Flutter Authors', + children: aboutBoxChildren, + ); + }, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/action_buttons/action_icon_theme.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/action_buttons/action_icon_theme.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..20671520545c7a7ac6028098e474d12929378358 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/action_buttons/action_icon_theme.0.dart @@ -0,0 +1,121 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ActionIconTheme]. + +void main() { + runApp(const ActionIconThemeExampleApp()); +} + +class _CustomEndDrawerIcon extends StatelessWidget { + const _CustomEndDrawerIcon(); + + @override + Widget build(BuildContext context) { + final MaterialLocalizations localization = MaterialLocalizations.of(context); + return Icon( + Icons.more_horiz, + semanticLabel: localization.openAppDrawerTooltip, + ); + } +} + +class _CustomDrawerIcon extends StatelessWidget { + const _CustomDrawerIcon(); + + @override + Widget build(BuildContext context) { + final MaterialLocalizations localization = MaterialLocalizations.of(context); + return Icon( + Icons.segment, + semanticLabel: localization.openAppDrawerTooltip, + ); + } +} + +class ActionIconThemeExampleApp extends StatelessWidget { + const ActionIconThemeExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + theme: ThemeData( + useMaterial3: true, + actionIconTheme: ActionIconThemeData( + backButtonIconBuilder: (BuildContext context) { + return const Icon(Icons.arrow_back_ios_new_rounded); + }, + drawerButtonIconBuilder: (BuildContext context) { + return const _CustomDrawerIcon(); + }, + endDrawerButtonIconBuilder: (BuildContext context) { + return const _CustomEndDrawerIcon(); + }, + ), + ), + home: const MyHomePage(title: 'Flutter Demo Home Page'), + ); + } +} + +class MyHomePage extends StatelessWidget { + const MyHomePage({super.key, required this.title}); + + final String title; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text(title), + ), + drawer: Drawer( + child: Column( + children: [ + TextButton(child: const Text('Drawer Item'), onPressed: () {}), + ], + ), + ), + body: const Center( + child: NextPageButton(), + ), + ); + } +} + +class NextPageButton extends StatelessWidget { + const NextPageButton({super.key}); + + @override + Widget build(BuildContext context) { + return ElevatedButton.icon( + onPressed: () { + Navigator.of(context).push( + MaterialPageRoute(builder: (BuildContext context) { + return const MySecondPage(); + }), + ); + }, + icon: const Icon(Icons.arrow_forward), + label: const Text('Next page'), + ); + } +} + +class MySecondPage extends StatelessWidget { + const MySecondPage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Second page'), + ), + endDrawer: const Drawer(), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/animated_icon/animated_icons_data.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/animated_icon/animated_icons_data.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..cc1ae2c6eb532345f280cb4bd8c424caec94665d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/animated_icon/animated_icons_data.0.dart @@ -0,0 +1,105 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AnimatedIcon]. + +final Map iconsList = { + 'add_event': AnimatedIcons.add_event, + 'arrow_menu': AnimatedIcons.arrow_menu, + 'close_menu': AnimatedIcons.close_menu, + 'ellipsis_search': AnimatedIcons.ellipsis_search, + 'event_add': AnimatedIcons.event_add, + 'home_menu': AnimatedIcons.home_menu, + 'list_view': AnimatedIcons.list_view, + 'menu_arrow': AnimatedIcons.menu_arrow, + 'menu_close': AnimatedIcons.menu_close, + 'menu_home': AnimatedIcons.menu_home, + 'pause_play': AnimatedIcons.pause_play, + 'play_pause': AnimatedIcons.play_pause, + 'search_ellipsis': AnimatedIcons.search_ellipsis, + 'view_list': AnimatedIcons.view_list, +}; + +void main() { + runApp(const AnimatedIconApp()); +} + +class AnimatedIconApp extends StatelessWidget { + const AnimatedIconApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + colorSchemeSeed: const Color(0xff6750a4), + useMaterial3: true, + ), + home: const Scaffold( + body: AnimatedIconExample(), + ), + ); + } +} + +class AnimatedIconExample extends StatefulWidget { + const AnimatedIconExample({super.key}); + + @override + State createState() => _AnimatedIconExampleState(); +} + +class _AnimatedIconExampleState extends State with SingleTickerProviderStateMixin { + late AnimationController controller; + late Animation animation; + + @override + void initState() { + super.initState(); + controller = AnimationController( + vsync: this, + duration: const Duration(seconds: 2), + ) + ..forward() + ..repeat(reverse: true); + animation = Tween(begin: 0.0, end: 1.0).animate(controller); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: GridView( + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 4, + ), + children: iconsList.entries.map((MapEntry entry) { + return Card( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + AnimatedIcon( + icon: entry.value, + progress: animation, + size: 72.0, + semanticLabel: entry.key, + ), + const SizedBox(height: 8.0), + Text(entry.key), + ], + ), + ), + ); + }).toList(), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app/app.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app/app.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..5df0bdee35e546f203af21707902c1bef0d0e429 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app/app.0.dart @@ -0,0 +1,87 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [MaterialApp]. + +void main() { + runApp(const MaterialAppExample()); +} + +enum AnimationStyles { defaultStyle, custom, none } +const List<(AnimationStyles, String)> animationStyleSegments = <(AnimationStyles, String)>[ + (AnimationStyles.defaultStyle, 'Default'), + (AnimationStyles.custom, 'Custom'), + (AnimationStyles.none, 'None'), +]; + +class MaterialAppExample extends StatefulWidget { + const MaterialAppExample({super.key}); + + @override + State createState() => _MaterialAppExampleState(); +} + +class _MaterialAppExampleState extends State { + Set _animationStyleSelection = {AnimationStyles.defaultStyle}; + AnimationStyle? _animationStyle; + bool isDarkTheme = false; + + @override + Widget build(BuildContext context) { + return MaterialApp( + themeAnimationStyle: _animationStyle, + themeMode: isDarkTheme ? ThemeMode.dark : ThemeMode.light, + theme: ThemeData(colorSchemeSeed: Colors.green), + darkTheme: ThemeData( + colorSchemeSeed: Colors.green, + brightness: Brightness.dark, + ), + home: Scaffold( + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SegmentedButton( + selected: _animationStyleSelection, + onSelectionChanged: (Set styles) { + setState(() { + _animationStyleSelection = styles; + switch (styles.first) { + case AnimationStyles.defaultStyle: + _animationStyle = null; + case AnimationStyles.custom: + _animationStyle = AnimationStyle( + curve: Easing.emphasizedAccelerate, + duration: const Duration(seconds: 1), + ); + case AnimationStyles.none: + _animationStyle = AnimationStyle.noAnimation; + } + }); + }, + segments: animationStyleSegments + .map>(((AnimationStyles, String) shirt) { + return ButtonSegment(value: shirt.$1, label: Text(shirt.$2)); + }) + .toList(), + ), + const SizedBox(height: 10), + OutlinedButton.icon( + onPressed: () { + setState(() { + isDarkTheme = !isDarkTheme; + }); + }, + icon: Icon(isDarkTheme ? Icons.wb_sunny : Icons.nightlight_round), + label: const Text('Switch Theme Mode'), + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e64d3b859b3a25999691196a72a602b97e62889c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.0.dart @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AppBar]. + +void main() => runApp(const AppBarApp()); + +class AppBarApp extends StatelessWidget { + const AppBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: AppBarExample(), + ); + } +} + +class AppBarExample extends StatelessWidget { + const AppBarExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('AppBar Demo'), + actions: [ + IconButton( + icon: const Icon(Icons.add_alert), + tooltip: 'Show Snackbar', + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(const SnackBar(content: Text('This is a snackbar'))); + }, + ), + IconButton( + icon: const Icon(Icons.navigate_next), + tooltip: 'Go to the next page', + onPressed: () { + Navigator.push(context, MaterialPageRoute( + builder: (BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Next page'), + ), + body: const Center( + child: Text( + 'This is the next page', + style: TextStyle(fontSize: 24), + ), + ), + ); + }, + )); + }, + ), + ], + ), + body: const Center( + child: Text( + 'This is the home page', + style: TextStyle(fontSize: 24), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..387ad18b7d66de3ef7b65f08e84c1fd4c7feeced --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.1.dart @@ -0,0 +1,124 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AppBar]. + +final List _items = List.generate(51, (int index) => index); + +void main() => runApp(const AppBarApp()); + +class AppBarApp extends StatelessWidget { + const AppBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + colorSchemeSeed: const Color(0xff6750a4), + useMaterial3: true, + ), + home: const AppBarExample(), + ); + } +} + +class AppBarExample extends StatefulWidget { + const AppBarExample({super.key}); + + @override + State createState() => _AppBarExampleState(); +} + +class _AppBarExampleState extends State { + bool shadowColor = false; + double? scrolledUnderElevation; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final Color oddItemColor = colorScheme.primary.withOpacity(0.05); + final Color evenItemColor = colorScheme.primary.withOpacity(0.15); + + return Scaffold( + appBar: AppBar( + title: const Text('AppBar Demo'), + scrolledUnderElevation: scrolledUnderElevation, + shadowColor: shadowColor ? Theme.of(context).colorScheme.shadow : null, + ), + body: GridView.builder( + itemCount: _items.length, + padding: const EdgeInsets.all(8.0), + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 3, + childAspectRatio: 2.0, + mainAxisSpacing: 10.0, + crossAxisSpacing: 10.0, + ), + itemBuilder: (BuildContext context, int index) { + if (index == 0) { + return Center( + child: Text( + 'Scroll to see the Appbar in effect.', + style: Theme.of(context).textTheme.labelLarge, + textAlign: TextAlign.center, + ), + ); + } + return Container( + alignment: Alignment.center, + // tileColor: _items[index].isOdd ? oddItemColor : evenItemColor, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(20.0), + color: _items[index].isOdd ? oddItemColor : evenItemColor, + ), + child: Text('Item $index'), + ); + }, + ), + bottomNavigationBar: BottomAppBar( + child: Padding( + padding: const EdgeInsets.all(8), + child: OverflowBar( + overflowAlignment: OverflowBarAlignment.center, + alignment: MainAxisAlignment.center, + overflowSpacing: 5.0, + children: [ + ElevatedButton.icon( + onPressed: () { + setState(() { + shadowColor = !shadowColor; + }); + }, + icon: Icon( + shadowColor ? Icons.visibility_off : Icons.visibility, + ), + label: const Text('shadow color'), + ), + const SizedBox(width: 5), + ElevatedButton( + onPressed: () { + if (scrolledUnderElevation == null) { + setState(() { + // Default elevation is 3.0, increment by 1.0. + scrolledUnderElevation = 4.0; + }); + } else { + setState(() { + scrolledUnderElevation = scrolledUnderElevation! + 1.0; + }); + } + }, + child: Text( + 'scrolledUnderElevation: ${scrolledUnderElevation ?? 'default'}', + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..1e0823ce6bc64fefd50218c6809a7d5086f235e4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.2.dart @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AppBar]. + +void main() => runApp(const AppBarApp()); + +class AppBarApp extends StatelessWidget { + const AppBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: AppBarExample(), + ); + } +} + +class AppBarExample extends StatelessWidget { + const AppBarExample({super.key}); + + @override + Widget build(BuildContext context) { + final ButtonStyle style = TextButton.styleFrom( + foregroundColor: Theme.of(context).colorScheme.onPrimary, + ); + return Scaffold( + appBar: AppBar( + actions: [ + TextButton( + style: style, + onPressed: () {}, + child: const Text('Action 1'), + ), + TextButton( + style: style, + onPressed: () {}, + child: const Text('Action 2'), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..4f7e8f5290863039e5e0a64a1c4417cc7544ca76 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.3.dart @@ -0,0 +1,112 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AppBar]. + +List titles = [ + 'Cloud', + 'Beach', + 'Sunny', +]; + +void main() => runApp(const AppBarApp()); + +class AppBarApp extends StatelessWidget { + const AppBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + home: const AppBarExample(), + ); + } +} + +class AppBarExample extends StatelessWidget { + const AppBarExample({super.key}); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final Color oddItemColor = colorScheme.primary.withOpacity(0.05); + final Color evenItemColor = colorScheme.primary.withOpacity(0.15); + const int tabsCount = 3; + + return DefaultTabController( + initialIndex: 1, + length: tabsCount, + child: Scaffold( + appBar: AppBar( + title: const Text('AppBar Sample'), + // This check specifies which nested Scrollable's scroll notification + // should be listened to. + // + // When `ThemeData.useMaterial3` is true and scroll view has + // scrolled underneath the app bar, this updates the app bar + // background color and elevation. + // + // This sets `notification.depth == 1` to listen to the scroll + // notification from the nested `ListView.builder`. + notificationPredicate: (ScrollNotification notification) { + return notification.depth == 1; + }, + // The elevation value of the app bar when scroll view has + // scrolled underneath the app bar. + scrolledUnderElevation: 4.0, + shadowColor: Theme.of(context).shadowColor, + bottom: TabBar( + tabs: [ + Tab( + icon: const Icon(Icons.cloud_outlined), + text: titles[0], + ), + Tab( + icon: const Icon(Icons.beach_access_sharp), + text: titles[1], + ), + Tab( + icon: const Icon(Icons.brightness_5_sharp), + text: titles[2], + ), + ], + ), + ), + body: TabBarView( + children: [ + ListView.builder( + itemCount: 25, + itemBuilder: (BuildContext context, int index) { + return ListTile( + tileColor: index.isOdd ? oddItemColor : evenItemColor, + title: Text('${titles[0]} $index'), + ); + }, + ), + ListView.builder( + itemCount: 25, + itemBuilder: (BuildContext context, int index) { + return ListTile( + tileColor: index.isOdd ? oddItemColor : evenItemColor, + title: Text('${titles[1]} $index'), + ); + }, + ), + ListView.builder( + itemCount: 25, + itemBuilder: (BuildContext context, int index) { + return ListTile( + tileColor: index.isOdd ? oddItemColor : evenItemColor, + title: Text('${titles[2]} $index'), + ); + }, + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.4.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.4.dart new file mode 100644 index 0000000000000000000000000000000000000000..a82f661c11d756807bb1b64718ca4599705c81f1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/app_bar.4.dart @@ -0,0 +1,149 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AppBar.shape]. + +void main() => runApp(const AppBarExampleApp()); + +class AppBarExampleApp extends StatelessWidget { + const AppBarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: AppBarExample(), + ); + } +} + +class AppBarExample extends StatelessWidget { + const AppBarExample({super.key}); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + return Scaffold( + appBar: AppBar( + shape: const CustomAppBarShape(), + backgroundColor: colorScheme.primaryContainer, + title: const Text('AppBar Sample'), + bottom: PreferredSize( + preferredSize: const Size.fromHeight(64.0), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0), + child: TextField( + decoration: InputDecoration( + border: OutlineInputBorder( + borderSide: BorderSide(color: colorScheme.primary), + ), + enabledBorder: OutlineInputBorder( + borderSide: BorderSide(color: colorScheme.onPrimaryContainer), + ), + filled: true, + hintText: 'Enter a search term', + fillColor: colorScheme.surface, + prefixIcon: Icon( + Icons.search_rounded, + color: colorScheme.primary + ), + suffixIcon: Icon( + Icons.tune_rounded, + color: colorScheme.primary + ), + ) + ), + ), + ), + ), + body: ListView.builder( + padding: const EdgeInsets.only(top: 45.0), + itemCount: 20, + itemBuilder: (BuildContext context, int index) { + return ListTile( + title: Text('Item $index'), + ); + }, + ), + ); + } +} + +class CustomAppBarShape extends OutlinedBorder { + // Implementing the constructor allows the CustomAppBarShape to be + // properly compared when calling the `identical` method. + const CustomAppBarShape({ super.side }); + + Path _getPath(Rect rect) { + final Path path = Path(); + final Size size = Size(rect.width, rect.height * 1.5) ; + + final double p0 = size.height * 0.75; + path.lineTo(0.0, p0); + + final Offset controlPoint = Offset(size.width * 0.4, size.height); + final Offset endPoint = Offset(size.width, size.height / 2); + path.quadraticBezierTo(controlPoint.dx, controlPoint.dy, endPoint.dx, endPoint.dy); + + path.lineTo(size.width, 0.0); + path.close(); + + return path; + } + + @override + Path getOuterPath(Rect rect, {TextDirection? textDirection}) { + return _getPath(rect.inflate(side.width)); + } + + @override + Path getInnerPath(Rect rect, {TextDirection? textDirection}) { + return _getPath(rect); + } + + @override + void paint(Canvas canvas, Rect rect, {TextDirection? textDirection}) { + if (rect.isEmpty) { + return; + } + canvas.drawPath( + getOuterPath(rect, textDirection: textDirection), + side.toPaint(), + ); + } + + @override + ShapeBorder scale(double t) { + return CustomAppBarShape(side: side.scale(t)); + } + + @override + OutlinedBorder copyWith({BorderSide? side}) { + return CustomAppBarShape(side: side ?? this.side); + } + + // The lerpFrom method is necessary for the CustomAppBarShape to be + // properly animated when changing the AppBar shape and when + // the AppBar is rebuilt. + @override + ShapeBorder? lerpFrom(ShapeBorder? a, double t) { + if (a is CustomAppBarShape) { + return CustomAppBarShape(side: BorderSide.lerp(a.side, side, t)); + } + return super.lerpFrom(a, t); + } + + // The lerpTo method is necessary for the CustomAppBarShape to be + // properly animated when changing the AppBar shape and when + // the AppBar is rebuilt. + @override + ShapeBorder? lerpTo(ShapeBorder? b, double t) { + if (b is CustomAppBarShape) { + return CustomAppBarShape(side: BorderSide.lerp(b.side, side, t)); + } + return super.lerpTo(b, t); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..46b41d81808164ee900afe69391e2c2a8d0440c9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.1.dart @@ -0,0 +1,132 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverAppBar]. + +void main() => runApp(const AppBarApp()); + +class AppBarApp extends StatelessWidget { + const AppBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SliverAppBarExample(), + ); + } +} + +class SliverAppBarExample extends StatefulWidget { + const SliverAppBarExample({super.key}); + + @override + State createState() => _SliverAppBarExampleState(); +} + +class _SliverAppBarExampleState extends State { + bool _pinned = true; + bool _snap = false; + bool _floating = false; + +// [SliverAppBar]s are typically used in [CustomScrollView.slivers], which in +// turn can be placed in a [Scaffold.body]. + @override + Widget build(BuildContext context) { + return Scaffold( + body: CustomScrollView( + slivers: [ + SliverAppBar( + pinned: _pinned, + snap: _snap, + floating: _floating, + expandedHeight: 160.0, + flexibleSpace: const FlexibleSpaceBar( + title: Text('SliverAppBar'), + background: FlutterLogo(), + ), + ), + const SliverToBoxAdapter( + child: SizedBox( + height: 20, + child: Center( + child: Text('Scroll to see the SliverAppBar in effect.'), + ), + ), + ), + SliverList( + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + return Container( + color: index.isOdd ? Colors.white : Colors.black12, + height: 100.0, + child: Center( + child: Text('$index', textScaler: const TextScaler.linear(5)), + ), + ); + }, + childCount: 20, + ), + ), + ], + ), + bottomNavigationBar: BottomAppBar( + child: Padding( + padding: const EdgeInsets.all(8), + child: OverflowBar( + overflowAlignment: OverflowBarAlignment.center, + children: [ + Row( + mainAxisSize: MainAxisSize.min, + children: [ + const Text('pinned'), + Switch( + onChanged: (bool val) { + setState(() { + _pinned = val; + }); + }, + value: _pinned, + ), + ], + ), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + const Text('snap'), + Switch( + onChanged: (bool val) { + setState(() { + _snap = val; + // Snapping only applies when the app bar is floating. + _floating = _floating || _snap; + }); + }, + value: _snap, + ), + ], + ), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + const Text('floating'), + Switch( + onChanged: (bool val) { + setState(() { + _floating = val; + _snap = _snap && _floating; + }); + }, + value: _floating, + ), + ], + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..2185659dbfbc6aaf776b3389afe7fffa632f402a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.2.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverAppBar.medium]. + +void main() { + runApp(const AppBarMediumApp()); +} + +class AppBarMediumApp extends StatelessWidget { + const AppBarMediumApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + useMaterial3: true, + colorSchemeSeed: const Color(0xff6750A4), + ), + home: Material( + child: CustomScrollView( + slivers: [ + SliverAppBar.medium( + leading: IconButton(icon: const Icon(Icons.menu), onPressed: () {}), + title: const Text('Medium App Bar'), + actions: [ + IconButton(icon: const Icon(Icons.more_vert), onPressed: () {}), + ], + ), + // Just some content big enough to have something to scroll. + SliverToBoxAdapter( + child: Card( + child: SizedBox( + height: 1200, + child: Padding( + padding: const EdgeInsets.fromLTRB(8, 100, 8, 100), + child: Text( + 'Here be scrolling content...', + style: Theme.of(context).textTheme.headlineSmall, + ), + ), + ), + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..30e260202159c5c500e53884d0456a19213b8037 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.3.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverAppBar.large]. + +void main() { + runApp(const AppBarLargeApp()); +} + +class AppBarLargeApp extends StatelessWidget { + const AppBarLargeApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + useMaterial3: true, + colorSchemeSeed: const Color(0xff6750A4), + ), + home: Material( + child: CustomScrollView( + slivers: [ + SliverAppBar.large( + leading: IconButton(icon: const Icon(Icons.menu), onPressed: () {}), + title: const Text('Large App Bar'), + actions: [ + IconButton(icon: const Icon(Icons.more_vert), onPressed: () {}), + ], + ), + // Just some content big enough to have something to scroll. + SliverToBoxAdapter( + child: Card( + child: SizedBox( + height: 1200, + child: Padding( + padding: const EdgeInsets.fromLTRB(8, 100, 8, 100), + child: Text( + 'Here be scrolling content...', + style: Theme.of(context).textTheme.headlineSmall, + ), + ), + ), + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.4.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.4.dart new file mode 100644 index 0000000000000000000000000000000000000000..77d2773988bb5ccd0b2705c088688213fe60fbc3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/app_bar/sliver_app_bar.4.dart @@ -0,0 +1,90 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverAppBar]. + +void main() { + runApp(const StretchableSliverAppBar()); +} + +class StretchableSliverAppBar extends StatefulWidget { + const StretchableSliverAppBar({super.key}); + + @override + State createState() => + _StretchableSliverAppBarState(); +} + +class _StretchableSliverAppBarState extends State { + bool _stretch = true; + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + body: CustomScrollView( + physics: const BouncingScrollPhysics(), + slivers: [ + SliverAppBar( + stretch: _stretch, + onStretchTrigger: () async { + // Triggers when stretching + }, + // [stretchTriggerOffset] describes the amount of overscroll that must occur + // to trigger [onStretchTrigger] + // + // Setting [stretchTriggerOffset] to a value of 300.0 will trigger + // [onStretchTrigger] when the user has overscrolled by 300.0 pixels. + stretchTriggerOffset: 300.0, + expandedHeight: 200.0, + flexibleSpace: const FlexibleSpaceBar( + title: Text('SliverAppBar'), + background: FlutterLogo(), + ), + ), + SliverList( + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + return Container( + color: index.isOdd ? Colors.white : Colors.black12, + height: 100.0, + child: Center( + child: Text('$index', textScaler: const TextScaler.linear(5.0)), + ), + ); + }, + childCount: 20, + ), + ), + ], + ), + bottomNavigationBar: BottomAppBar( + child: Padding( + padding: const EdgeInsets.all(8), + child: OverflowBar( + overflowAlignment: OverflowBarAlignment.center, + alignment: MainAxisAlignment.center, + children: [ + Row( + mainAxisSize: MainAxisSize.min, + children: [ + const Text('stretch'), + Switch( + onChanged: (bool val) { + setState(() { + _stretch = val; + }); + }, + value: _stretch, + ), + ], + ), + ], + ), + ), + ), + )); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..6c3236aaabb96b39b33091a0da2552d4893dd6df --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.0.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Autocomplete]. + +void main() => runApp(const AutocompleteExampleApp()); + +class AutocompleteExampleApp extends StatelessWidget { + const AutocompleteExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Autocomplete Basic'), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Type below to autocomplete the following possible results: ${AutocompleteBasicExample._kOptions}.'), + const AutocompleteBasicExample(), + ], + ), + ), + ), + ); + } +} + +class AutocompleteBasicExample extends StatelessWidget { + const AutocompleteBasicExample({super.key}); + + static const List _kOptions = [ + 'aardvark', + 'bobcat', + 'chameleon', + ]; + + @override + Widget build(BuildContext context) { + return Autocomplete( + optionsBuilder: (TextEditingValue textEditingValue) { + if (textEditingValue.text == '') { + return const Iterable.empty(); + } + return _kOptions.where((String option) { + return option.contains(textEditingValue.text.toLowerCase()); + }); + }, + onSelected: (String selection) { + debugPrint('You just selected $selection'); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..abee231da462f4eb1f051936dea8db9a35d9a98d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.1.dart @@ -0,0 +1,90 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Autocomplete]. + +void main() => runApp(const AutocompleteExampleApp()); + +class AutocompleteExampleApp extends StatelessWidget { + const AutocompleteExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Autocomplete Basic User'), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Type below to autocomplete the following possible results: ${AutocompleteBasicUserExample._userOptions}.'), + const AutocompleteBasicUserExample(), + ], + ), + ), + ), + ); + } +} + +@immutable +class User { + const User({ + required this.email, + required this.name, + }); + + final String email; + final String name; + + @override + String toString() { + return '$name, $email'; + } + + @override + bool operator ==(Object other) { + if (other.runtimeType != runtimeType) { + return false; + } + return other is User && other.name == name && other.email == email; + } + + @override + int get hashCode => Object.hash(email, name); +} + +class AutocompleteBasicUserExample extends StatelessWidget { + const AutocompleteBasicUserExample({super.key}); + + static const List _userOptions = [ + User(name: 'Alice', email: 'alice@example.com'), + User(name: 'Bob', email: 'bob@example.com'), + User(name: 'Charlie', email: 'charlie123@gmail.com'), + ]; + + static String _displayStringForOption(User option) => option.name; + + @override + Widget build(BuildContext context) { + return Autocomplete( + displayStringForOption: _displayStringForOption, + optionsBuilder: (TextEditingValue textEditingValue) { + if (textEditingValue.text == '') { + return const Iterable.empty(); + } + return _userOptions.where((User option) { + return option.toString().contains(textEditingValue.text.toLowerCase()); + }); + }, + onSelected: (User selection) { + debugPrint('You just selected ${_displayStringForOption(selection)}'); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..85082969e865f3b0a6871c087cee50b2968a8c78 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.2.dart @@ -0,0 +1,95 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Autocomplete] that shows how to fetch the options +/// from a remote API. + +const Duration fakeAPIDuration = Duration(seconds: 1); + +void main() => runApp(const AutocompleteExampleApp()); + +class AutocompleteExampleApp extends StatelessWidget { + const AutocompleteExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Autocomplete - async'), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Type below to autocomplete the following possible results: ${_FakeAPI._kOptions}.'), + const _AsyncAutocomplete(), + ], + ), + ), + ), + ); + } +} + +class _AsyncAutocomplete extends StatefulWidget { + const _AsyncAutocomplete(); + + @override + State<_AsyncAutocomplete > createState() => _AsyncAutocompleteState(); +} + +class _AsyncAutocompleteState extends State<_AsyncAutocomplete > { + // The query currently being searched for. If null, there is no pending + // request. + String? _searchingWithQuery; + + // The most recent options received from the API. + late Iterable _lastOptions = []; + + @override + Widget build(BuildContext context) { + return Autocomplete( + optionsBuilder: (TextEditingValue textEditingValue) async { + _searchingWithQuery = textEditingValue.text; + final Iterable options = await _FakeAPI.search(_searchingWithQuery!); + + // If another search happened after this one, throw away these options. + // Use the previous options intead and wait for the newer request to + // finish. + if (_searchingWithQuery != textEditingValue.text) { + return _lastOptions; + } + + _lastOptions = options; + return options; + }, + onSelected: (String selection) { + debugPrint('You just selected $selection'); + }, + ); + } +} + +// Mimics a remote API. +class _FakeAPI { + static const List _kOptions = [ + 'aardvark', + 'bobcat', + 'chameleon', + ]; + + // Searches the options, but injects a fake "network" delay. + static Future> search(String query) async { + await Future.delayed(fakeAPIDuration); // Fake 1 second delay. + if (query == '') { + return const Iterable.empty(); + } + return _kOptions.where((String option) { + return option.contains(query.toLowerCase()); + }); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..60ccea126d5e10aa49eda1bc1c61451c276f2f61 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.3.dart @@ -0,0 +1,172 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Autocomplete] that demonstrates fetching the +/// options asynchronously and debouncing the network calls. + +const Duration fakeAPIDuration = Duration(seconds: 1); +const Duration debounceDuration = Duration(milliseconds: 500); + +void main() => runApp(const AutocompleteExampleApp()); + +class AutocompleteExampleApp extends StatelessWidget { + const AutocompleteExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Autocomplete - async and debouncing'), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Type below to autocomplete the following possible results: ${_FakeAPI._kOptions}.'), + const _AsyncAutocomplete(), + ], + ), + ), + ), + ); + } +} + +class _AsyncAutocomplete extends StatefulWidget { + const _AsyncAutocomplete(); + + @override + State<_AsyncAutocomplete > createState() => _AsyncAutocompleteState(); +} + +class _AsyncAutocompleteState extends State<_AsyncAutocomplete > { + // The query currently being searched for. If null, there is no pending + // request. + String? _currentQuery; + + // The most recent options received from the API. + late Iterable _lastOptions = []; + + late final _Debounceable?, String> _debouncedSearch; + + // Calls the "remote" API to search with the given query. Returns null when + // the call has been made obsolete. + Future?> _search(String query) async { + _currentQuery = query; + + // In a real application, there should be some error handling here. + final Iterable options = await _FakeAPI.search(_currentQuery!); + + // If another search happened after this one, throw away these options. + if (_currentQuery != query) { + return null; + } + _currentQuery = null; + + return options; + } + + @override + void initState() { + super.initState(); + _debouncedSearch = _debounce?, String>(_search); + } + + @override + Widget build(BuildContext context) { + return Autocomplete( + optionsBuilder: (TextEditingValue textEditingValue) async { + final Iterable? options = await _debouncedSearch(textEditingValue.text); + if (options == null) { + return _lastOptions; + } + _lastOptions = options; + return options; + }, + onSelected: (String selection) { + debugPrint('You just selected $selection'); + }, + ); + } +} + +// Mimics a remote API. +class _FakeAPI { + static const List _kOptions = [ + 'aardvark', + 'bobcat', + 'chameleon', + ]; + + // Searches the options, but injects a fake "network" delay. + static Future> search(String query) async { + await Future.delayed(fakeAPIDuration); // Fake 1 second delay. + if (query == '') { + return const Iterable.empty(); + } + return _kOptions.where((String option) { + return option.contains(query.toLowerCase()); + }); + } +} + +typedef _Debounceable = Future Function(T parameter); + +/// Returns a new function that is a debounced version of the given function. +/// +/// This means that the original function will be called only after no calls +/// have been made for the given Duration. +_Debounceable _debounce(_Debounceable function) { + _DebounceTimer? debounceTimer; + + return (T parameter) async { + if (debounceTimer != null && !debounceTimer!.isCompleted) { + debounceTimer!.cancel(); + } + debounceTimer = _DebounceTimer(); + try { + await debounceTimer!.future; + } catch (error) { + if (error is _CancelException) { + return null; + } + rethrow; + } + return function(parameter); + }; +} + +// A wrapper around Timer used for debouncing. +class _DebounceTimer { + _DebounceTimer( + ) { + _timer = Timer(debounceDuration, _onComplete); + } + + late final Timer _timer; + final Completer _completer = Completer(); + + void _onComplete() { + _completer.complete(); + } + + Future get future => _completer.future; + + bool get isCompleted => _completer.isCompleted; + + void cancel() { + _timer.cancel(); + _completer.completeError(const _CancelException()); + } +} + +// An exception indicating that the timer was canceled. +class _CancelException implements Exception { + const _CancelException(); +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.4.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.4.dart new file mode 100644 index 0000000000000000000000000000000000000000..a44107b6d2b9a1a84ca1df2ce2b41ee1c969ee4a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/autocomplete/autocomplete.4.dart @@ -0,0 +1,234 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Autocomplete] that demonstrates fetching the +/// options asynchronously and debouncing the network calls, including handling +/// network errors. + +void main() => runApp(const AutocompleteExampleApp()); + +const Duration fakeAPIDuration = Duration(seconds: 1); +const Duration debounceDuration = Duration(milliseconds: 500); + +class AutocompleteExampleApp extends StatelessWidget { + const AutocompleteExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Autocomplete - async, debouncing, and network errors'), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Type below to autocomplete the following possible results: ${_FakeAPI._kOptions}.'), + const SizedBox(height: 32.0), + const _AsyncAutocomplete(), + ], + ), + ), + ), + ); + } +} + +class _AsyncAutocomplete extends StatefulWidget { + const _AsyncAutocomplete(); + + @override + State<_AsyncAutocomplete > createState() => _AsyncAutocompleteState(); +} + +class _AsyncAutocompleteState extends State<_AsyncAutocomplete > { + // The query currently being searched for. If null, there is no pending + // request. + String? _currentQuery; + + // The most recent options received from the API. + late Iterable _lastOptions = []; + + late final _Debounceable?, String> _debouncedSearch; + + // Whether to consider the fake network to be offline. + bool _networkEnabled = true; + + // A network error was received on the most recent query. + bool _networkError = false; + + // Calls the "remote" API to search with the given query. Returns null when + // the call has been made obsolete. + Future?> _search(String query) async { + _currentQuery = query; + + late final Iterable options; + try { + options = await _FakeAPI.search(_currentQuery!, _networkEnabled); + } catch (error) { + if (error is _NetworkException) { + setState(() { + _networkError = true; + }); + return []; + } + rethrow; + } + + // If another search happened after this one, throw away these options. + if (_currentQuery != query) { + return null; + } + _currentQuery = null; + + return options; + } + + @override + void initState() { + super.initState(); + _debouncedSearch = _debounce?, String>(_search); + } + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + _networkEnabled + ? 'Network is on, toggle to induce network errors.' + : 'Network is off, toggle to allow requests to go through.', + ), + Switch( + value: _networkEnabled, + onChanged: (bool? value) { + setState(() { + _networkEnabled = !_networkEnabled; + }); + }, + ), + const SizedBox( + height: 32.0, + ), + Autocomplete( + fieldViewBuilder: (BuildContext context, TextEditingController controller, FocusNode focusNode, VoidCallback onFieldSubmitted) { + return TextFormField( + decoration: InputDecoration( + errorText: _networkError ? 'Network error, please try again.' : null, + ), + controller: controller, + focusNode: focusNode, + onFieldSubmitted: (String value) { + onFieldSubmitted(); + }, + ); + }, + optionsBuilder: (TextEditingValue textEditingValue) async { + setState(() { + _networkError = false; + }); + final Iterable? options = await _debouncedSearch(textEditingValue.text); + if (options == null) { + return _lastOptions; + } + _lastOptions = options; + return options; + }, + onSelected: (String selection) { + debugPrint('You just selected $selection'); + }, + ), + ], + ); + } +} + +// Mimics a remote API. +class _FakeAPI { + static const List _kOptions = [ + 'aardvark', + 'bobcat', + 'chameleon', + ]; + + // Searches the options, but injects a fake "network" delay. + static Future> search(String query, bool networkEnabled) async { + await Future.delayed(fakeAPIDuration); // Fake 1 second delay. + if (!networkEnabled) { + throw const _NetworkException(); + } + if (query == '') { + return const Iterable.empty(); + } + return _kOptions.where((String option) { + return option.contains(query.toLowerCase()); + }); + } +} + +typedef _Debounceable = Future Function(T parameter); + +/// Returns a new function that is a debounced version of the given function. +/// +/// This means that the original function will be called only after no calls +/// have been made for the given Duration. +_Debounceable _debounce(_Debounceable function) { + _DebounceTimer? debounceTimer; + + return (T parameter) async { + if (debounceTimer != null && !debounceTimer!.isCompleted) { + debounceTimer!.cancel(); + } + debounceTimer = _DebounceTimer(); + try { + await debounceTimer!.future; + } catch (error) { + if (error is _CancelException) { + return null; + } + rethrow; + } + return function(parameter); + }; +} + +// A wrapper around Timer used for debouncing. +class _DebounceTimer { + _DebounceTimer( + ) { + _timer = Timer(debounceDuration, _onComplete); + } + + late final Timer _timer; + final Completer _completer = Completer(); + + void _onComplete() { + _completer.complete(); + } + + Future get future => _completer.future; + + bool get isCompleted => _completer.isCompleted; + + void cancel() { + _timer.cancel(); + _completer.completeError(const _CancelException()); + } +} + +// An exception indicating that the timer was canceled. +class _CancelException implements Exception { + const _CancelException(); +} + +// An exception indicating that a network request has failed. +class _NetworkException implements Exception { + const _NetworkException(); +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/badge/badge.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/badge/badge.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..bf0e177baa24a380e2e105b4abdc4d973deee27a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/badge/badge.0.dart @@ -0,0 +1,54 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Badge]. + +void main() => runApp(const BadgeExampleApp()); + +class BadgeExampleApp extends StatelessWidget { + const BadgeExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Badge Sample')), + body: const BadgeExample(), + ), + ); + } +} + +class BadgeExample extends StatelessWidget { + const BadgeExample({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + IconButton( + icon: const Badge( + label: Text('Your label'), + backgroundColor: Colors.blueAccent, + child: Icon(Icons.receipt), + ), + onPressed: () {}, + ), + const SizedBox(height: 20), + IconButton( + icon: Badge.count( + count: 9999, + child: const Icon(Icons.notifications), + ), + onPressed: () {}, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/banner/material_banner.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/banner/material_banner.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..fc3791f89b122dd3fb421d229cada7485a53ee50 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/banner/material_banner.0.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [MaterialBanner]. + +void main() => runApp(const MaterialBannerExampleApp()); + +class MaterialBannerExampleApp extends StatelessWidget { + const MaterialBannerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: MaterialBannerExample(), + ); + } +} + +class MaterialBannerExample extends StatelessWidget { + const MaterialBannerExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('The MaterialBanner is below'), + ), + body: const MaterialBanner( + padding: EdgeInsets.all(20), + content: Text('Hello, I am a Material Banner'), + leading: Icon(Icons.agriculture_outlined), + backgroundColor: Color(0xFFE0E0E0), + actions: [ + TextButton( + onPressed: null, + child: Text('OPEN'), + ), + TextButton( + onPressed: null, + child: Text('DISMISS'), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/banner/material_banner.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/banner/material_banner.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..ddba00b82615be86aa934fc0ac96975148e30128 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/banner/material_banner.1.dart @@ -0,0 +1,52 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [MaterialBanner]. + +void main() => runApp(const MaterialBannerExampleApp()); + +class MaterialBannerExampleApp extends StatelessWidget { + const MaterialBannerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: MaterialBannerExample(), + ); + } +} + +class MaterialBannerExample extends StatelessWidget { + const MaterialBannerExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('The MaterialBanner is below'), + ), + body: Center( + child: ElevatedButton( + child: const Text('Show MaterialBanner'), + onPressed: () => ScaffoldMessenger.of(context).showMaterialBanner( + const MaterialBanner( + padding: EdgeInsets.all(20), + content: Text('Hello, I am a Material Banner'), + leading: Icon(Icons.agriculture_outlined), + backgroundColor: Colors.green, + actions: [ + TextButton( + onPressed: null, + child: Text('DISMISS'), + ), + ], + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_app_bar/bottom_app_bar.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_app_bar/bottom_app_bar.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..a35c580131a24fd2cb6a2308e8f2e904c7181107 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_app_bar/bottom_app_bar.1.dart @@ -0,0 +1,157 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [BottomAppBar]. + +void main() { + runApp(const BottomAppBarDemo()); +} + +class BottomAppBarDemo extends StatefulWidget { + const BottomAppBarDemo({super.key}); + + @override + State createState() => _BottomAppBarDemoState(); +} + +class _BottomAppBarDemoState extends State { + bool _showFab = true; + bool _showNotch = true; + FloatingActionButtonLocation _fabLocation = FloatingActionButtonLocation.endDocked; + + void _onShowNotchChanged(bool value) { + setState(() { + _showNotch = value; + }); + } + + void _onShowFabChanged(bool value) { + setState(() { + _showFab = value; + }); + } + + void _onFabLocationChanged(FloatingActionButtonLocation? value) { + setState(() { + _fabLocation = value ?? FloatingActionButtonLocation.endDocked; + }); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + automaticallyImplyLeading: false, + title: const Text('Bottom App Bar Demo'), + ), + body: ListView( + padding: const EdgeInsets.only(bottom: 88), + children: [ + SwitchListTile( + title: const Text( + 'Floating Action Button', + ), + value: _showFab, + onChanged: _onShowFabChanged, + ), + SwitchListTile( + title: const Text('Notch'), + value: _showNotch, + onChanged: _onShowNotchChanged, + ), + const Padding( + padding: EdgeInsets.all(16), + child: Text('Floating action button position'), + ), + RadioListTile( + title: const Text('Docked - End'), + value: FloatingActionButtonLocation.endDocked, + groupValue: _fabLocation, + onChanged: _onFabLocationChanged, + ), + RadioListTile( + title: const Text('Docked - Center'), + value: FloatingActionButtonLocation.centerDocked, + groupValue: _fabLocation, + onChanged: _onFabLocationChanged, + ), + RadioListTile( + title: const Text('Floating - End'), + value: FloatingActionButtonLocation.endFloat, + groupValue: _fabLocation, + onChanged: _onFabLocationChanged, + ), + RadioListTile( + title: const Text('Floating - Center'), + value: FloatingActionButtonLocation.centerFloat, + groupValue: _fabLocation, + onChanged: _onFabLocationChanged, + ), + ], + ), + floatingActionButton: _showFab + ? FloatingActionButton( + onPressed: () {}, + tooltip: 'Create', + child: const Icon(Icons.add), + ) + : null, + floatingActionButtonLocation: _fabLocation, + bottomNavigationBar: _DemoBottomAppBar( + fabLocation: _fabLocation, + shape: _showNotch ? const CircularNotchedRectangle() : null, + ), + ), + ); + } +} + +class _DemoBottomAppBar extends StatelessWidget { + const _DemoBottomAppBar({ + this.fabLocation = FloatingActionButtonLocation.endDocked, + this.shape = const CircularNotchedRectangle(), + }); + + final FloatingActionButtonLocation fabLocation; + final NotchedShape? shape; + + static final List centerLocations = [ + FloatingActionButtonLocation.centerDocked, + FloatingActionButtonLocation.centerFloat, + ]; + + @override + Widget build(BuildContext context) { + return BottomAppBar( + shape: shape, + color: Colors.blue, + child: IconTheme( + data: IconThemeData(color: Theme.of(context).colorScheme.onPrimary), + child: Row( + children: [ + IconButton( + tooltip: 'Open navigation menu', + icon: const Icon(Icons.menu), + onPressed: () {}, + ), + if (centerLocations.contains(fabLocation)) const Spacer(), + IconButton( + tooltip: 'Search', + icon: const Icon(Icons.search), + onPressed: () {}, + ), + IconButton( + tooltip: 'Favorite', + icon: const Icon(Icons.favorite), + onPressed: () {}, + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_app_bar/bottom_app_bar.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_app_bar/bottom_app_bar.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..1aa6b981b8b51368e9e8a62d3b8a608cb2842241 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_app_bar/bottom_app_bar.2.dart @@ -0,0 +1,192 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +/// Flutter code sample for [BottomAppBar] with Material 3. + +void main() { + runApp(const BottomAppBarDemo()); +} + +class BottomAppBarDemo extends StatefulWidget { + const BottomAppBarDemo({super.key}); + + @override + State createState() => _BottomAppBarDemoState(); +} + +class _BottomAppBarDemoState extends State { + static const List colors = [ + Colors.yellow, + Colors.orange, + Colors.pink, + Colors.purple, + Colors.cyan, + ]; + + static final List items = List.generate( + colors.length, + (int index) => Container(color: colors[index], height: 150.0), + ).reversed.toList(); + + late ScrollController _controller; + bool _showFab = true; + bool _isElevated = true; + bool _isVisible = true; + + FloatingActionButtonLocation get _fabLocation => + _isVisible ? FloatingActionButtonLocation.endContained : FloatingActionButtonLocation.endFloat; + + void _listen() { + final ScrollDirection direction = _controller.position.userScrollDirection; + if (direction == ScrollDirection.forward) { + _show(); + } else if (direction == ScrollDirection.reverse) { + _hide(); + } + } + + void _show() { + if (!_isVisible) { + setState(() => _isVisible = true); + } + } + + void _hide() { + if (_isVisible) { + setState(() => _isVisible = false); + } + } + + void _onShowFabChanged(bool value) { + setState(() { + _showFab = value; + }); + } + + void _onElevatedChanged(bool value) { + setState(() { + _isElevated = value; + }); + } + + void _addNewItem() { + setState(() { + items.insert( + 0, + Container(color: colors[items.length % 5], height: 150.0), + ); + }); + } + + @override + void initState() { + super.initState(); + _controller = ScrollController(); + _controller.addListener(_listen); + } + + @override + void dispose() { + _controller.removeListener(_listen); + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar( + title: const Text('Bottom App Bar Demo'), + ), + body: Column( + children: [ + SwitchListTile( + title: const Text('Floating Action Button'), + value: _showFab, + onChanged: _onShowFabChanged, + ), + SwitchListTile( + title: const Text('Bottom App Bar Elevation'), + value: _isElevated, + onChanged: _onElevatedChanged, + ), + Expanded( + child: ListView( + controller: _controller, + children: items.toList(), + ), + ), + ], + ), + floatingActionButton: _showFab + ? FloatingActionButton( + onPressed: _addNewItem, + tooltip: 'Add New Item', + elevation: _isVisible ? 0.0 : null, + child: const Icon(Icons.add), + ) + : null, + floatingActionButtonLocation: _fabLocation, + bottomNavigationBar: _DemoBottomAppBar(isElevated: _isElevated, isVisible: _isVisible), + ), + ); + } +} + +class _DemoBottomAppBar extends StatelessWidget { + const _DemoBottomAppBar({ + required this.isElevated, + required this.isVisible, + }); + + final bool isElevated; + final bool isVisible; + + @override + Widget build(BuildContext context) { + return AnimatedContainer( + duration: const Duration(milliseconds: 200), + height: isVisible ? 80.0 : 0, + child: BottomAppBar( + elevation: isElevated ? null : 0.0, + child: Row( + children: [ + IconButton( + tooltip: 'Open popup menu', + icon: const Icon(Icons.more_vert), + onPressed: () { + final SnackBar snackBar = SnackBar( + content: const Text('Yay! A SnackBar!'), + action: SnackBarAction( + label: 'Undo', + onPressed: () {}, + ), + ); + + // Find the ScaffoldMessenger in the widget tree + // and use it to show a SnackBar. + ScaffoldMessenger.of(context).showSnackBar(snackBar); + }, + ), + IconButton( + tooltip: 'Search', + icon: const Icon(Icons.search), + onPressed: () {}, + ), + IconButton( + tooltip: 'Favorite', + icon: const Icon(Icons.favorite), + onPressed: () {}, + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..4bdf47c2e2d29fb2283a4fe16e94902cac86702c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.0.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [BottomNavigationBar]. + +void main() => runApp(const BottomNavigationBarExampleApp()); + +class BottomNavigationBarExampleApp extends StatelessWidget { + const BottomNavigationBarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: BottomNavigationBarExample(), + ); + } +} + +class BottomNavigationBarExample extends StatefulWidget { + const BottomNavigationBarExample({super.key}); + + @override + State createState() => _BottomNavigationBarExampleState(); +} + +class _BottomNavigationBarExampleState extends State { + int _selectedIndex = 0; + static const TextStyle optionStyle = TextStyle(fontSize: 30, fontWeight: FontWeight.bold); + static const List _widgetOptions = [ + Text( + 'Index 0: Home', + style: optionStyle, + ), + Text( + 'Index 1: Business', + style: optionStyle, + ), + Text( + 'Index 2: School', + style: optionStyle, + ), + ]; + + void _onItemTapped(int index) { + setState(() { + _selectedIndex = index; + }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('BottomNavigationBar Sample'), + ), + body: Center( + child: _widgetOptions.elementAt(_selectedIndex), + ), + bottomNavigationBar: BottomNavigationBar( + items: const [ + BottomNavigationBarItem( + icon: Icon(Icons.home), + label: 'Home', + ), + BottomNavigationBarItem( + icon: Icon(Icons.business), + label: 'Business', + ), + BottomNavigationBarItem( + icon: Icon(Icons.school), + label: 'School', + ), + ], + currentIndex: _selectedIndex, + selectedItemColor: Colors.amber[800], + onTap: _onItemTapped, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..f60330daeddf125ae3fef8c3602406da16b97b24 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.1.dart @@ -0,0 +1,95 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [BottomNavigationBar]. + +void main() => runApp(const BottomNavigationBarExampleApp()); + +class BottomNavigationBarExampleApp extends StatelessWidget { + const BottomNavigationBarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: BottomNavigationBarExample(), + ); + } +} + +class BottomNavigationBarExample extends StatefulWidget { + const BottomNavigationBarExample({super.key}); + + @override + State createState() => _BottomNavigationBarExampleState(); +} + +class _BottomNavigationBarExampleState extends State { + int _selectedIndex = 0; + static const TextStyle optionStyle = TextStyle(fontSize: 30, fontWeight: FontWeight.bold); + static const List _widgetOptions = [ + Text( + 'Index 0: Home', + style: optionStyle, + ), + Text( + 'Index 1: Business', + style: optionStyle, + ), + Text( + 'Index 2: School', + style: optionStyle, + ), + Text( + 'Index 3: Settings', + style: optionStyle, + ), + ]; + + void _onItemTapped(int index) { + setState(() { + _selectedIndex = index; + }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('BottomNavigationBar Sample'), + ), + body: Center( + child: _widgetOptions.elementAt(_selectedIndex), + ), + bottomNavigationBar: BottomNavigationBar( + items: const [ + BottomNavigationBarItem( + icon: Icon(Icons.home), + label: 'Home', + backgroundColor: Colors.red, + ), + BottomNavigationBarItem( + icon: Icon(Icons.business), + label: 'Business', + backgroundColor: Colors.green, + ), + BottomNavigationBarItem( + icon: Icon(Icons.school), + label: 'School', + backgroundColor: Colors.purple, + ), + BottomNavigationBarItem( + icon: Icon(Icons.settings), + label: 'Settings', + backgroundColor: Colors.pink, + ), + ], + currentIndex: _selectedIndex, + selectedItemColor: Colors.amber[800], + onTap: _onItemTapped, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..49e42910fa5ead2255edfb71fe76ecdfcef835d3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_navigation_bar/bottom_navigation_bar.2.dart @@ -0,0 +1,109 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [BottomNavigationBar]. + +void main() => runApp(const BottomNavigationBarExampleApp()); + +class BottomNavigationBarExampleApp extends StatelessWidget { + const BottomNavigationBarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: BottomNavigationBarExample(), + ); + } +} + +class BottomNavigationBarExample extends StatefulWidget { + const BottomNavigationBarExample({super.key}); + + @override + State createState() => _BottomNavigationBarExampleState(); +} + +class _BottomNavigationBarExampleState extends State { + int _selectedIndex = 0; + final ScrollController _homeController = ScrollController(); + + Widget _listViewBody() { + return ListView.separated( + controller: _homeController, + itemBuilder: (BuildContext context, int index) { + return Center( + child: Text( + 'Item $index', + ), + ); + }, + separatorBuilder: (BuildContext context, int index) => const Divider( + thickness: 1, + ), + itemCount: 50); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('BottomNavigationBar Sample'), + ), + body: _listViewBody(), + bottomNavigationBar: BottomNavigationBar( + items: const [ + BottomNavigationBarItem( + icon: Icon(Icons.home), + label: 'Home', + ), + BottomNavigationBarItem( + icon: Icon(Icons.open_in_new_rounded), + label: 'Open Dialog', + ), + ], + currentIndex: _selectedIndex, + selectedItemColor: Colors.amber[800], + onTap: (int index) { + switch (index) { + case 0: + // only scroll to top when current index is selected. + if (_selectedIndex == index) { + _homeController.animateTo( + 0.0, + duration: const Duration(milliseconds: 500), + curve: Curves.easeOut, + ); + } + case 1: + showModal(context); + } + setState( + () { + _selectedIndex = index; + }, + ); + }, + ), + ); + } + + void showModal(BuildContext context) { + showDialog( + context: context, + builder: (BuildContext context) => AlertDialog( + content: const Text('Example Dialog'), + actions: [ + TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: const Text('Close'), + ) + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_bottom_sheet.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_bottom_sheet.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e63885485c690168c104905952e54038a02ca446 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_bottom_sheet.0.dart @@ -0,0 +1,101 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [showBottomSheet]. + +void main() => runApp(const BottomSheetExampleApp()); + +class BottomSheetExampleApp extends StatelessWidget { + const BottomSheetExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Bottom Sheet Sample')), + body: const BottomSheetExample(), + ), + ); + } +} + +enum AnimationStyles { defaultStyle, custom, none } +const List<(AnimationStyles, String)> animationStyleSegments = <(AnimationStyles, String)>[ + (AnimationStyles.defaultStyle, 'Default'), + (AnimationStyles.custom, 'Custom'), + (AnimationStyles.none, 'None'), +]; + +class BottomSheetExample extends StatefulWidget { + const BottomSheetExample({super.key}); + + @override + State createState() => _BottomSheetExampleState(); +} + +class _BottomSheetExampleState extends State { + Set _animationStyleSelection = {AnimationStyles.defaultStyle}; + AnimationStyle? _animationStyle; + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SegmentedButton( + selected: _animationStyleSelection, + onSelectionChanged: (Set styles) { + setState(() { + _animationStyle = switch (styles.first) { + AnimationStyles.defaultStyle => null, + AnimationStyles.custom => AnimationStyle( + duration: const Duration(seconds: 3), + reverseDuration: const Duration(seconds: 1), + ), + AnimationStyles.none => AnimationStyle.noAnimation, + }; + _animationStyleSelection = styles; + }); + }, + segments: animationStyleSegments + .map>(((AnimationStyles, String) shirt) { + return ButtonSegment(value: shirt.$1, label: Text(shirt.$2)); + }) + .toList(), + ), + const SizedBox(height: 10), + ElevatedButton( + child: const Text('showBottomSheet'), + onPressed: () { + showBottomSheet( + context: context, + sheetAnimationStyle: _animationStyle, + builder: (BuildContext context) { + return SizedBox.expand( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.min, + children: [ + const Text('Bottom sheet'), + ElevatedButton( + child: const Text('Close'), + onPressed: () => Navigator.pop(context), + ), + ], + ), + ), + ); + }, + ); + }, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_modal_bottom_sheet.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_modal_bottom_sheet.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..fef506c1d6de58d0a1e14c1c52ebbecb7d4f5e04 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_modal_bottom_sheet.0.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [showModalBottomSheet]. + +void main() => runApp(const BottomSheetApp()); + +class BottomSheetApp extends StatelessWidget { + const BottomSheetApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Bottom Sheet Sample')), + body: const BottomSheetExample(), + ), + ); + } +} + +class BottomSheetExample extends StatelessWidget { + const BottomSheetExample({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: ElevatedButton( + child: const Text('showModalBottomSheet'), + onPressed: () { + showModalBottomSheet( + context: context, + builder: (BuildContext context) { + return Container( + height: 200, + color: Colors.amber, + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.min, + children: [ + const Text('Modal BottomSheet'), + ElevatedButton( + child: const Text('Close BottomSheet'), + onPressed: () => Navigator.pop(context), + ), + ], + ), + ), + ); + }, + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_modal_bottom_sheet.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_modal_bottom_sheet.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..096adc8d79f046c2de7360cd3a298384518a8189 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_modal_bottom_sheet.1.dart @@ -0,0 +1,63 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [showModalBottomSheet]. + +void main() => runApp(const BottomSheetApp()); + +class BottomSheetApp extends StatelessWidget { + const BottomSheetApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + colorSchemeSeed: const Color(0xff6750a4), + useMaterial3: true, + ), + home: Scaffold( + appBar: AppBar(title: const Text('Bottom Sheet Sample')), + body: const BottomSheetExample(), + ), + ); + } +} + +class BottomSheetExample extends StatelessWidget { + const BottomSheetExample({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: ElevatedButton( + child: const Text('showModalBottomSheet'), + onPressed: () { + showModalBottomSheet( + context: context, + builder: (BuildContext context) { + return SizedBox( + height: 200, + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.min, + children: [ + const Text('Modal BottomSheet'), + ElevatedButton( + child: const Text('Close BottomSheet'), + onPressed: () => Navigator.pop(context), + ), + ], + ), + ), + ); + }, + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_modal_bottom_sheet.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_modal_bottom_sheet.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..e602c50be0f5bbb5fabe8b63482896659ac039cb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/bottom_sheet/show_modal_bottom_sheet.2.dart @@ -0,0 +1,101 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [showModalBottomSheet]. + +void main() => runApp(const ModalBottomSheetApp()); + +class ModalBottomSheetApp extends StatelessWidget { + const ModalBottomSheetApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Modal Bottom Sheet Sample')), + body: const ModalBottomSheetExample(), + ), + ); + } +} + +enum AnimationStyles { defaultStyle, custom, none } +const List<(AnimationStyles, String)> animationStyleSegments = <(AnimationStyles, String)>[ + (AnimationStyles.defaultStyle, 'Default'), + (AnimationStyles.custom, 'Custom'), + (AnimationStyles.none, 'None'), +]; + +class ModalBottomSheetExample extends StatefulWidget { + const ModalBottomSheetExample({super.key}); + + @override + State createState() => _ModalBottomSheetExampleState(); +} + +class _ModalBottomSheetExampleState extends State { + Set _animationStyleSelection = {AnimationStyles.defaultStyle}; + AnimationStyle? _animationStyle; + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SegmentedButton( + selected: _animationStyleSelection, + onSelectionChanged: (Set styles) { + setState(() { + _animationStyle = switch (styles.first) { + AnimationStyles.defaultStyle => null, + AnimationStyles.custom => AnimationStyle( + duration: const Duration(seconds: 3), + reverseDuration: const Duration(seconds: 1), + ), + AnimationStyles.none => AnimationStyle.noAnimation, + }; + _animationStyleSelection = styles; + }); + }, + segments: animationStyleSegments + .map>(((AnimationStyles, String) shirt) { + return ButtonSegment(value: shirt.$1, label: Text(shirt.$2)); + }) + .toList(), + ), + const SizedBox(height: 10), + ElevatedButton( + child: const Text('showModalBottomSheet'), + onPressed: () { + showModalBottomSheet( + context: context, + sheetAnimationStyle: _animationStyle, + builder: (BuildContext context) { + return SizedBox.expand( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.min, + children: [ + const Text('Modal bottom sheet'), + ElevatedButton( + child: const Text('Close'), + onPressed: () => Navigator.pop(context), + ), + ], + ), + ), + ); + }, + ); + }, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/button_style/button_style.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/button_style/button_style.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..03a49430c40d8fe5bb8371a6b8846f4623be1f6a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/button_style/button_style.0.dart @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ElevatedButton]. + +void main() { + runApp(const ButtonApp()); +} + +class ButtonApp extends StatelessWidget { + const ButtonApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + title: 'Button Types', + home: const Scaffold( + body: ButtonTypesExample(), + ), + ); + } +} + +class ButtonTypesExample extends StatelessWidget { + const ButtonTypesExample({super.key}); + + @override + Widget build(BuildContext context) { + return const Padding( + padding: EdgeInsets.all(4.0), + child: Row( + children: [ + Spacer(), + ButtonTypesGroup(enabled: true), + ButtonTypesGroup(enabled: false), + Spacer(), + ], + ), + ); + } +} + +class ButtonTypesGroup extends StatelessWidget { + const ButtonTypesGroup({super.key, required this.enabled}); + + final bool enabled; + + @override + Widget build(BuildContext context) { + final VoidCallback? onPressed = enabled ? () {} : null; + return Padding( + padding: const EdgeInsets.all(4.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + ElevatedButton(onPressed: onPressed, child: const Text('Elevated')), + FilledButton(onPressed: onPressed, child: const Text('Filled')), + FilledButton.tonal(onPressed: onPressed, child: const Text('Filled Tonal')), + OutlinedButton(onPressed: onPressed, child: const Text('Outlined')), + TextButton(onPressed: onPressed, child: const Text('Text')), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/button_style_button/button_style_button.icon_alignment.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/button_style_button/button_style_button.icon_alignment.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..1b19ca629e6bcb3bf43434ffabef25f862105ef6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/button_style_button/button_style_button.icon_alignment.0.dart @@ -0,0 +1,147 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for using [ButtonStyleButton.iconAlignment] parameter. + +void main() { + runApp(const ButtonStyleButtonIconAlignmentApp()); +} + +class ButtonStyleButtonIconAlignmentApp extends StatelessWidget { + const ButtonStyleButtonIconAlignmentApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold( + body: ButtonStyleButtonIconAlignmentExample(), + ), + ); + } +} + +class ButtonStyleButtonIconAlignmentExample extends StatefulWidget { + const ButtonStyleButtonIconAlignmentExample({super.key}); + + @override + State createState() => _ButtonStyleButtonIconAlignmentExampleState(); +} + +class _ButtonStyleButtonIconAlignmentExampleState extends State { + TextDirection _textDirection = TextDirection.ltr; + IconAlignment _iconAlignment = IconAlignment.start; + + @override + Widget build(BuildContext context) { + return SafeArea( + child: Directionality( + key: const Key('Directionality'), + textDirection: _textDirection, + child: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Spacer(), + OverflowBar( + spacing: 10, + overflowSpacing: 20, + alignment: MainAxisAlignment.center, + overflowAlignment: OverflowBarAlignment.center, + children: [ + ElevatedButton.icon( + onPressed: () {}, + icon: const Icon(Icons.sunny), + label: const Text('ElevatedButton'), + iconAlignment: _iconAlignment, + ), + FilledButton.icon( + onPressed: () {}, + icon: const Icon(Icons.beach_access), + label: const Text('FilledButton'), + iconAlignment: _iconAlignment, + ), + FilledButton.tonalIcon( + onPressed: () {}, + icon: const Icon(Icons.cloud), + label: const Text('FilledButton Tonal'), + iconAlignment: _iconAlignment, + ), + OutlinedButton.icon( + onPressed: () {}, + icon: const Icon(Icons.light), + label: const Text('OutlinedButton'), + iconAlignment: _iconAlignment, + ), + TextButton.icon( + onPressed: () {}, + icon: const Icon(Icons.flight_takeoff), + label: const Text('TextButton'), + iconAlignment: _iconAlignment, + ), + ], + ), + const Spacer(), + OverflowBar( + alignment: MainAxisAlignment.spaceEvenly, + overflowAlignment: OverflowBarAlignment.center, + spacing: 10, + overflowSpacing: 10, + children: [ + Column( + children: [ + const Text('Icon alignment'), + const SizedBox(height: 10), + SegmentedButton( + onSelectionChanged: (Set value) { + setState(() { + _iconAlignment = value.first; + }); + }, + selected: { _iconAlignment }, + segments: IconAlignment.values.map((IconAlignment iconAlignment) { + return ButtonSegment( + value: iconAlignment, + label: Text(iconAlignment.name), + ); + }).toList(), + ), + ], + ), + Column( + children: [ + const Text('Text direction'), + const SizedBox(height: 10), + SegmentedButton( + onSelectionChanged: (Set value) { + setState(() { + _textDirection = value.first; + }); + }, + selected: { _textDirection }, + segments: const >[ + ButtonSegment( + value: TextDirection.ltr, + label: Text('LTR'), + ), + ButtonSegment( + value: TextDirection.rtl, + label: Text('RTL'), + ), + ], + ), + ], + ), + ], + ), + const Spacer(), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/card/card.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/card/card.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..1b90628c08fea3b6a640e787af35642b4ac60384 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/card/card.0.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Card]. + +void main() => runApp(const CardExampleApp()); + +class CardExampleApp extends StatelessWidget { + const CardExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Card Sample')), + body: const CardExample(), + ), + ); + } +} + +class CardExample extends StatelessWidget { + const CardExample({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: Card( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const ListTile( + leading: Icon(Icons.album), + title: Text('The Enchanted Nightingale'), + subtitle: Text('Music by Julie Gable. Lyrics by Sidney Stein.'), + ), + Row( + mainAxisAlignment: MainAxisAlignment.end, + children: [ + TextButton( + child: const Text('BUY TICKETS'), + onPressed: () {/* ... */}, + ), + const SizedBox(width: 8), + TextButton( + child: const Text('LISTEN'), + onPressed: () {/* ... */}, + ), + const SizedBox(width: 8), + ], + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/card/card.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/card/card.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..3be967d815e7368e3a269d07087661afeaba6753 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/card/card.1.dart @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Card]. + +void main() => runApp(const CardExampleApp()); + +class CardExampleApp extends StatelessWidget { + const CardExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Card Sample')), + body: const CardExample(), + ), + ); + } +} + +class CardExample extends StatelessWidget { + const CardExample({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: Card( + // clipBehavior is necessary because, without it, the InkWell's animation + // will extend beyond the rounded edges of the [Card] (see https://github.com/flutter/flutter/issues/109776) + // This comes with a small performance cost, and you should not set [clipBehavior] + // unless you need it. + clipBehavior: Clip.hardEdge, + child: InkWell( + splashColor: Colors.blue.withAlpha(30), + onTap: () { + debugPrint('Card tapped.'); + }, + child: const SizedBox( + width: 300, + height: 100, + child: Text('A card that can be tapped'), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/card/card.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/card/card.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..89958726c856ade6d543aba0ff82b6ab8be21d10 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/card/card.2.dart @@ -0,0 +1,48 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Card]. + +void main() { + runApp(const CardExamplesApp()); +} + +class CardExamplesApp extends StatelessWidget { + const CardExamplesApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Card Examples')), + body: const Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Card(child: _SampleCard(cardName: 'Elevated Card')), + Card.filled(child: _SampleCard(cardName: 'Filled Card')), + Card.outlined(child: _SampleCard(cardName: 'Outlined Card')), + ], + ), + ), + ), + ); + } +} + +class _SampleCard extends StatelessWidget { + const _SampleCard({required this.cardName}); + final String cardName; + + @override + Widget build(BuildContext context) { + return SizedBox( + width: 300, + height: 100, + child: Center(child: Text(cardName)), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/carousel/carousel.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/carousel/carousel.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..005bed704ca9a9a978784735e2d798e9b1996a76 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/carousel/carousel.0.dart @@ -0,0 +1,77 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Carousel]. + +void main() => runApp(const CarouselExampleApp()); + +class CarouselExampleApp extends StatelessWidget { + const CarouselExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + home: Scaffold( + appBar: AppBar( + title: const Text('Carousel Sample'), + ), + body: const CarouselExample(), + ), + ); + } +} + +class CarouselExample extends StatefulWidget { + const CarouselExample({super.key}); + + @override + State createState() => _CarouselExampleState(); +} + +class _CarouselExampleState extends State { + @override + Widget build(BuildContext context) { + return Center( + child: ConstrainedBox( + constraints: const BoxConstraints(maxHeight: 200), + child: CarouselView( + itemExtent: 330, + shrinkExtent: 200, + children: List.generate(20, (int index) { + return UncontainedLayoutCard(index: index, label: 'Item $index'); + }), + ), + ), + ); + } +} + +class UncontainedLayoutCard extends StatelessWidget { + const UncontainedLayoutCard({ + super.key, + required this.index, + required this.label, + }); + + final int index; + final String label; + + @override + Widget build(BuildContext context) { + return ColoredBox( + color: Colors.primaries[index % Colors.primaries.length].withOpacity(0.5), + child: Center( + child: Text( + label, + style: const TextStyle(color: Colors.white, fontSize: 20), + overflow: TextOverflow.clip, + softWrap: false, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox/checkbox.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox/checkbox.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..074e5adcdaf96de9f37ab068338976dbd526b16e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox/checkbox.0.dart @@ -0,0 +1,62 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Checkbox]. + +void main() => runApp(const CheckboxExampleApp()); + +class CheckboxExampleApp extends StatelessWidget { + const CheckboxExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Checkbox Sample')), + body: const Center( + child: CheckboxExample(), + ), + ), + ); + } +} + +class CheckboxExample extends StatefulWidget { + const CheckboxExample({super.key}); + + @override + State createState() => _CheckboxExampleState(); +} + +class _CheckboxExampleState extends State { + bool isChecked = false; + + @override + Widget build(BuildContext context) { + Color getColor(Set states) { + const Set interactiveStates = { + MaterialState.pressed, + MaterialState.hovered, + MaterialState.focused, + }; + if (states.any(interactiveStates.contains)) { + return Colors.blue; + } + return Colors.red; + } + + return Checkbox( + checkColor: Colors.white, + fillColor: MaterialStateProperty.resolveWith(getColor), + value: isChecked, + onChanged: (bool? value) { + setState(() { + isChecked = value!; + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox/checkbox.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox/checkbox.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..9593bacf61fc1ba60f445d9e05e694969fffb8c0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox/checkbox.1.dart @@ -0,0 +1,72 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for M3 [Checkbox] with error state. + +void main() => runApp(const CheckboxExampleApp()); + +class CheckboxExampleApp extends StatelessWidget { + const CheckboxExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true, colorSchemeSeed: const Color(0xff6750a4)), + title: 'Checkbox Sample', + home: Scaffold( + appBar: AppBar(title: const Text('Checkbox Sample')), + body: const Center( + child: CheckboxExample(), + ), + ), + ); + } +} + +class CheckboxExample extends StatefulWidget { + const CheckboxExample({super.key}); + + @override + State createState() => _CheckboxExampleState(); +} + +class _CheckboxExampleState extends State { + bool? isChecked = true; + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Checkbox( + tristate: true, + value: isChecked, + onChanged: (bool? value) { + setState(() { + isChecked = value; + }); + }, + ), + Checkbox( + isError: true, + tristate: true, + value: isChecked, + onChanged: (bool? value) { + setState(() { + isChecked = value; + }); + }, + ), + Checkbox( + isError: true, + tristate: true, + value: isChecked, + onChanged: null, + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/checkbox_list_tile.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/checkbox_list_tile.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..bf67c15b949abedab85bede86d76149e24020f30 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/checkbox_list_tile.0.dart @@ -0,0 +1,50 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart' show timeDilation; + +/// Flutter code sample for [CheckboxListTile]. + +void main() => runApp(const CheckboxListTileApp()); + +class CheckboxListTileApp extends StatelessWidget { + const CheckboxListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const CheckboxListTileExample(), + ); + } +} + +class CheckboxListTileExample extends StatefulWidget { + const CheckboxListTileExample({super.key}); + + @override + State createState() => _CheckboxListTileExampleState(); +} + +class _CheckboxListTileExampleState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('CheckboxListTile Sample')), + body: Center( + child: CheckboxListTile( + title: const Text('Animate Slowly'), + value: timeDilation != 1.0, + onChanged: (bool? value) { + setState(() { + timeDilation = value! ? 10.0 : 1.0; + }); + }, + secondary: const Icon(Icons.hourglass_empty), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/checkbox_list_tile.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/checkbox_list_tile.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..8d3808f4e242a66b3d6c326bf9235e83220b32c5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/checkbox_list_tile.1.dart @@ -0,0 +1,81 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [CheckboxListTile]. + +void main() => runApp(const CheckboxListTileApp()); + +class CheckboxListTileApp extends StatelessWidget { + const CheckboxListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const CheckboxListTileExample(), + ); + } +} + +class CheckboxListTileExample extends StatefulWidget { + const CheckboxListTileExample({super.key}); + + @override + State createState() => _CheckboxListTileExampleState(); +} + +class _CheckboxListTileExampleState extends State { + bool checkboxValue1 = true; + bool checkboxValue2 = true; + bool checkboxValue3 = true; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('CheckboxListTile Sample')), + body: Column( + children: [ + CheckboxListTile( + value: checkboxValue1, + onChanged: (bool? value) { + setState(() { + checkboxValue1 = value!; + }); + }, + title: const Text('Headline'), + subtitle: const Text('Supporting text'), + ), + const Divider(height: 0), + CheckboxListTile( + value: checkboxValue2, + onChanged: (bool? value) { + setState(() { + checkboxValue2 = value!; + }); + }, + title: const Text('Headline'), + subtitle: const Text( + 'Longer supporting text to demonstrate how the text wraps and the checkbox is centered vertically with the text.'), + ), + const Divider(height: 0), + CheckboxListTile( + value: checkboxValue3, + onChanged: (bool? value) { + setState(() { + checkboxValue3 = value!; + }); + }, + title: const Text('Headline'), + subtitle: const Text( + "Longer supporting text to demonstrate how the text wraps and how setting 'CheckboxListTile.isThreeLine = true' aligns the checkbox to the top vertically with the text."), + isThreeLine: true, + ), + const Divider(height: 0), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/custom_labeled_checkbox.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/custom_labeled_checkbox.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..50705bc9b00d5e27fce13a9ca4028e2f676d6ce9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/custom_labeled_checkbox.0.dart @@ -0,0 +1,100 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/gestures.dart'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for custom labeled checkbox. + +void main() => runApp(const LabeledCheckboxApp()); + +class LabeledCheckboxApp extends StatelessWidget { + const LabeledCheckboxApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const LabeledCheckboxExample(), + ); + } +} + +class LinkedLabelCheckbox extends StatelessWidget { + const LinkedLabelCheckbox({ + super.key, + required this.label, + required this.padding, + required this.value, + required this.onChanged, + }); + + final String label; + final EdgeInsets padding; + final bool value; + final ValueChanged onChanged; + + @override + Widget build(BuildContext context) { + return Padding( + padding: padding, + child: Row( + children: [ + Expanded( + child: RichText( + text: TextSpan( + text: label, + style: const TextStyle( + color: Colors.blueAccent, + decoration: TextDecoration.underline, + ), + recognizer: TapGestureRecognizer() + ..onTap = () { + debugPrint('Label has been tapped.'); + }, + ), + ), + ), + Checkbox( + value: value, + onChanged: (bool? newValue) { + onChanged(newValue!); + }, + ), + ], + ), + ); + } +} + +class LabeledCheckboxExample extends StatefulWidget { + const LabeledCheckboxExample({super.key}); + + @override + State createState() => _LabeledCheckboxExampleState(); +} + +class _LabeledCheckboxExampleState extends State { + bool _isSelected = false; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Custom Labeled Checkbox Sample')), + body: Center( + child: LinkedLabelCheckbox( + label: 'Linked, tappable label text', + padding: const EdgeInsets.symmetric(horizontal: 20.0), + value: _isSelected, + onChanged: (bool newValue) { + setState(() { + _isSelected = newValue; + }); + }, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/custom_labeled_checkbox.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/custom_labeled_checkbox.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..f1866cf09cc15e76ce86a05dfc9f504d9714da46 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/checkbox_list_tile/custom_labeled_checkbox.1.dart @@ -0,0 +1,89 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for custom labeled checkbox. + +void main() => runApp(const LabeledCheckboxApp()); + +class LabeledCheckboxApp extends StatelessWidget { + const LabeledCheckboxApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const LabeledCheckboxExample(), + ); + } +} + +class LabeledCheckbox extends StatelessWidget { + const LabeledCheckbox({ + super.key, + required this.label, + required this.padding, + required this.value, + required this.onChanged, + }); + + final String label; + final EdgeInsets padding; + final bool value; + final ValueChanged onChanged; + + @override + Widget build(BuildContext context) { + return InkWell( + onTap: () { + onChanged(!value); + }, + child: Padding( + padding: padding, + child: Row( + children: [ + Expanded(child: Text(label)), + Checkbox( + value: value, + onChanged: (bool? newValue) { + onChanged(newValue!); + }, + ), + ], + ), + ), + ); + } +} + +class LabeledCheckboxExample extends StatefulWidget { + const LabeledCheckboxExample({super.key}); + + @override + State createState() => _LabeledCheckboxExampleState(); +} + +class _LabeledCheckboxExampleState extends State { + bool _isSelected = false; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Custom Labeled Checkbox Sample')), + body: Center( + child: LabeledCheckbox( + label: 'This is the label text', + padding: const EdgeInsets.symmetric(horizontal: 20.0), + value: _isSelected, + onChanged: (bool newValue) { + setState(() { + _isSelected = newValue; + }); + }, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/chip_attributes.avatar_box_constraints.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/chip_attributes.avatar_box_constraints.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..4d409f51aa8f1f2fe398f79b7eb3a6edb598960c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/chip_attributes.avatar_box_constraints.0.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ChipAttributes.avatarBoxConstraints]. + +void main() => runApp(const AvatarBoxConstraintsApp()); + +class AvatarBoxConstraintsApp extends StatelessWidget { + const AvatarBoxConstraintsApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold( + body: Center( + child: AvatarBoxConstraintsExample(), + ), + ), + ); + } +} + +class AvatarBoxConstraintsExample extends StatelessWidget { + const AvatarBoxConstraintsExample({super.key}); + + @override + Widget build(BuildContext context) { + return const Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + RawChip( + avatarBoxConstraints: BoxConstraints.tightForFinite(), + avatar: Icon(Icons.star), + label: SizedBox( + width: 150, + child: Text( + 'One line text.', + maxLines: 3, + overflow: TextOverflow.ellipsis, + ), + ), + ), + SizedBox(height: 10), + RawChip( + avatarBoxConstraints: BoxConstraints.tightForFinite(), + avatar: Icon(Icons.star), + label: SizedBox( + width: 150, + child: Text( + 'This text will wrap into two lines.', + maxLines: 3, + overflow: TextOverflow.ellipsis, + ), + ), + ), + SizedBox(height: 10), + RawChip( + avatarBoxConstraints: BoxConstraints.tightForFinite(), + avatar: Icon(Icons.star), + label: SizedBox( + width: 150, + child: Text( + 'This is a very long text that will wrap into three lines.', + maxLines: 3, + overflow: TextOverflow.ellipsis, + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/chip_attributes.chip_animation_style.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/chip_attributes.chip_animation_style.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..03f9120385bcc1203c52cb8ac41b185c03eaa438 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/chip_attributes.chip_animation_style.0.dart @@ -0,0 +1,164 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ChipAttributes.chipAnimationStyle]. + +void main() => runApp(const ChipAnimationStyleExampleApp()); + +class ChipAnimationStyleExampleApp extends StatelessWidget { + const ChipAnimationStyleExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold( + body: Center( + child: ChipAnimationStyleExample(), + ), + ), + ); + } +} + +class ChipAnimationStyleExample extends StatefulWidget { + const ChipAnimationStyleExample({super.key}); + + @override + State createState() => + _ChipAnimationStyleExampleState(); +} + +class _ChipAnimationStyleExampleState extends State { + bool enabled = true; + bool selected = false; + bool showCheckmark = true; + bool showDeleteIcon = true; + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + FilterChip.elevated( + chipAnimationStyle: ChipAnimationStyle( + enableAnimation: AnimationStyle( + duration: const Duration(seconds: 3), + reverseDuration: const Duration(seconds: 1), + ), + ), + onSelected: !enabled ? null : (bool value) {}, + disabledColor: Colors.red.withOpacity(0.12), + backgroundColor: Colors.amber, + label: Text(enabled ? 'Enabled' : 'Disabled'), + ), + const SizedBox(height: 16), + ElevatedButton( + onPressed: () { + setState(() { + enabled = !enabled; + }); + }, + child: Text(enabled ? 'Disable' : 'Enable'), + ), + ], + ), + Column( + mainAxisSize: MainAxisSize.min, + children: [ + FilterChip.elevated( + chipAnimationStyle: ChipAnimationStyle( + selectAnimation: AnimationStyle( + duration: const Duration(seconds: 3), + reverseDuration: const Duration(seconds: 1), + ), + ), + backgroundColor: Colors.amber, + selectedColor: Colors.blue, + selected: selected, + showCheckmark: false, + onSelected: (bool value) {}, + label: Text(selected ? 'Selected' : 'Unselected'), + ), + const SizedBox(height: 16), + ElevatedButton( + onPressed: () { + setState(() { + selected = !selected; + }); + }, + child: Text(selected ? 'Unselect' : 'Select'), + ), + ], + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + FilterChip.elevated( + chipAnimationStyle: ChipAnimationStyle( + avatarDrawerAnimation: AnimationStyle( + duration: const Duration(seconds: 2), + reverseDuration: const Duration(seconds: 1), + ), + ), + selected: showCheckmark, + onSelected: (bool value) {}, + label: Text(showCheckmark ? 'Checked' : 'Unchecked'), + ), + const SizedBox(height: 16), + ElevatedButton( + onPressed: () { + setState(() { + showCheckmark = !showCheckmark; + }); + }, + child: + Text(showCheckmark ? 'Hide checkmark' : 'Show checkmark'), + ), + ], + ), + Column( + mainAxisSize: MainAxisSize.min, + children: [ + FilterChip.elevated( + chipAnimationStyle: ChipAnimationStyle( + deleteDrawerAnimation: AnimationStyle( + duration: const Duration(seconds: 2), + reverseDuration: const Duration(seconds: 1), + ), + ), + onDeleted: showDeleteIcon ? () {} : null, + onSelected: (bool value) {}, + label: Text(showDeleteIcon ? 'Deletable' : 'Undeletable'), + ), + const SizedBox(height: 16), + ElevatedButton( + onPressed: () { + setState(() { + showDeleteIcon = !showDeleteIcon; + }); + }, + child: Text( + showDeleteIcon ? 'Hide delete icon' : 'Show delete icon'), + ), + ], + ), + ], + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/deletable_chip_attributes.delete_icon_box_constraints.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/deletable_chip_attributes.delete_icon_box_constraints.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..efff540f876fc8b0ae90774ac52c41b73511a2ff --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/deletable_chip_attributes.delete_icon_box_constraints.0.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DeletableChipAttributes.deleteIconBoxConstraints]. + +void main() => runApp(const DeleteIconBoxConstraintsApp()); + +class DeleteIconBoxConstraintsApp extends StatelessWidget { + const DeleteIconBoxConstraintsApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold( + body: Center( + child: DeleteIconBoxConstraintsExample(), + ), + ), + ); + } +} + +class DeleteIconBoxConstraintsExample extends StatelessWidget { + const DeleteIconBoxConstraintsExample({super.key}); + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + RawChip( + deleteIconBoxConstraints: const BoxConstraints.tightForFinite(), + onDeleted: () {}, + label: const SizedBox( + width: 150, + child: Text( + 'One line text.', + maxLines: 3, + overflow: TextOverflow.ellipsis, + ), + ), + ), + const SizedBox(height: 10), + RawChip( + deleteIconBoxConstraints: const BoxConstraints.tightForFinite(), + onDeleted: () {}, + label: const SizedBox( + width: 150, + child: Text( + 'This text will wrap into two lines.', + maxLines: 3, + overflow: TextOverflow.ellipsis, + ), + ), + ), + const SizedBox(height: 10), + RawChip( + deleteIconBoxConstraints: const BoxConstraints.tightForFinite(), + onDeleted: () {}, + label: const SizedBox( + width: 150, + child: Text( + 'This is a very long text that will wrap into three lines.', + maxLines: 3, + overflow: TextOverflow.ellipsis, + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/deletable_chip_attributes.on_deleted.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/deletable_chip_attributes.on_deleted.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..6c91b2de785b6dfaa828d419cd08a3a6ac50f758 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/chip/deletable_chip_attributes.on_deleted.0.dart @@ -0,0 +1,87 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DeletableChipAttributes.onDeleted]. + +void main() => runApp(const OnDeletedExampleApp()); + +class OnDeletedExampleApp extends StatelessWidget { + const OnDeletedExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('DeletableChipAttributes.onDeleted Sample')), + body: const Center( + child: OnDeletedExample(), + ), + ), + ); + } +} + +class Actor { + const Actor(this.name, this.initials); + final String name; + final String initials; +} + +class CastList extends StatefulWidget { + const CastList({super.key}); + + @override + State createState() => CastListState(); +} + +class CastListState extends State { + final List _cast = [ + const Actor('Aaron Burr', 'AB'), + const Actor('Alexander Hamilton', 'AH'), + const Actor('Eliza Hamilton', 'EH'), + const Actor('James Madison', 'JM'), + ]; + + Iterable get actorWidgets { + return _cast.map((Actor actor) { + return Padding( + padding: const EdgeInsets.all(4.0), + child: Chip( + avatar: CircleAvatar(child: Text(actor.initials)), + label: Text(actor.name), + onDeleted: () { + setState(() { + _cast.removeWhere((Actor entry) { + return entry.name == actor.name; + }); + }); + }, + ), + ); + }); + } + + @override + Widget build(BuildContext context) { + return Wrap( + children: actorWidgets.toList(), + ); + } +} + +class OnDeletedExample extends StatefulWidget { + const OnDeletedExample({super.key}); + + @override + State createState() => _OnDeletedExampleState(); +} + +class _OnDeletedExampleState extends State { + @override + Widget build(BuildContext context) { + return const CastList(); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/choice_chip/choice_chip.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/choice_chip/choice_chip.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..097c198380053390deb90eec78d6ab40951293bd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/choice_chip/choice_chip.0.dart @@ -0,0 +1,70 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ActionChoice]. + +void main() => runApp(const ChipApp()); + +class ChipApp extends StatelessWidget { + const ChipApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + home: const ActionChoiceExample(), + ); + } +} + +class ActionChoiceExample extends StatefulWidget { + const ActionChoiceExample({super.key}); + + @override + State createState() => _ActionChoiceExampleState(); +} + +class _ActionChoiceExampleState extends State { + int? _value = 1; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + + return Scaffold( + appBar: AppBar( + title: const Text('ActionChoice Sample'), + ), + body: Center( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Choose an item', style: textTheme.labelLarge), + const SizedBox(height: 10.0), + Wrap( + spacing: 5.0, + children: List.generate( + 3, + (int index) { + return ChoiceChip( + label: Text('Item $index'), + selected: _value == index, + onSelected: (bool selected) { + setState(() { + _value = selected ? index : null; + }); + }, + ); + }, + ).toList(), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/color_scheme/color_scheme.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/color_scheme/color_scheme.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..0df4f7b5248d3f2dbc37143845e9a1acae564e31 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/color_scheme/color_scheme.0.dart @@ -0,0 +1,456 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ColorScheme]. + +const Widget divider = SizedBox(height: 10); + +void main() => runApp(const ColorSchemeExample()); + +class ColorSchemeExample extends StatefulWidget { + const ColorSchemeExample({super.key}); + + @override + State createState() => _ColorSchemeExampleState(); +} + +class _ColorSchemeExampleState extends State { + Color selectedColor = ColorSeed.baseColor.color; + Brightness selectedBrightness = Brightness.light; + double selectedContrast = 0.0; + static const List schemeVariants = DynamicSchemeVariant.values; + + void updateTheme(Brightness brightness, Color color, double contrastLevel) { + setState(() { + selectedBrightness = brightness; + selectedColor = color; + selectedContrast = contrastLevel; + }); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + theme: ThemeData( + colorScheme: ColorScheme.fromSeed( + seedColor: selectedColor, + brightness: selectedBrightness, + contrastLevel: selectedContrast, + ), + ), + home: Scaffold( + appBar: AppBar( + title: const Text('ColorScheme'), + actions: [ + SettingsButton( + selectedColor: selectedColor, + selectedBrightness: selectedBrightness, + selectedContrast: selectedContrast, + updateTheme: updateTheme, + ), + ], + ), + body: SingleChildScrollView( + child: Padding( + padding: const EdgeInsets.only(top: 5), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Row( + children: List.generate(schemeVariants.length, (int index) { + return ColorSchemeVariantColumn( + selectedColor: selectedColor, + brightness: selectedBrightness, + schemeVariant: schemeVariants[index], + contrastLevel: selectedContrast, + ); + }).toList(), + ), + ), + ], + ), + ), + ), + ), + ); + } +} + +class Settings extends StatefulWidget { + const Settings({ + super.key, + required this.updateTheme, + required this.selectedBrightness, + required this.selectedContrast, + required this.selectedColor, + }); + + final Brightness selectedBrightness; + final double selectedContrast; + final Color selectedColor; + + final void Function(Brightness, Color, double) updateTheme; + + @override + State createState() => _SettingsState(); +} + +class _SettingsState extends State { + late Brightness selectedBrightness = widget.selectedBrightness; + late Color selectedColor = widget.selectedColor; + late double selectedContrast = widget.selectedContrast; + + @override + Widget build(BuildContext context) { + return Theme( + data: Theme.of(context).copyWith( + colorScheme: ColorScheme.fromSeed( + seedColor: selectedColor, + contrastLevel: selectedContrast, + brightness: selectedBrightness, + )), + child: ConstrainedBox( + constraints: const BoxConstraints(maxHeight: 200), + child: Padding( + padding: const EdgeInsets.all(20.0), + child: ListView( + children: [ + Center(child: Text('Settings', style: Theme.of(context).textTheme.titleLarge)), + Row( + children: [ + const Text('Brightness: '), + Switch( + value: selectedBrightness == Brightness.light, + onChanged: (bool value) { + setState(() { + selectedBrightness = value ? Brightness.light : Brightness.dark; + }); + widget.updateTheme(selectedBrightness, selectedColor, selectedContrast); + }, + ) + ], + ), + Wrap(crossAxisAlignment: WrapCrossAlignment.center, children: [ + const Text('Seed color: '), + ...List.generate( + ColorSeed.values.length, + (int index) { + final Color itemColor = ColorSeed.values[index].color; + return IconButton( + icon: selectedColor == ColorSeed.values[index].color + ? Icon(Icons.circle, color: itemColor) + : Icon(Icons.circle_outlined, color: itemColor), + onPressed: () { + setState(() { + selectedColor = itemColor; + }); + widget.updateTheme(selectedBrightness, selectedColor, selectedContrast); + }, + ); + }, + ), + ]), + Row( + children: [ + const Text('Contrast level: '), + Expanded( + child: Slider( + divisions: 4, + label: selectedContrast.toString(), + min: -1, + value: selectedContrast, + onChanged: (double value) { + setState(() { + selectedContrast = value; + }); + widget.updateTheme(selectedBrightness, selectedColor, selectedContrast); + }, + ), + ), + ], + ), + ], + ), + ), + ), + ); + } +} + +class ColorSchemeVariantColumn extends StatelessWidget { + const ColorSchemeVariantColumn({ + super.key, + this.schemeVariant = DynamicSchemeVariant.tonalSpot, + this.brightness = Brightness.light, + this.contrastLevel = 0.0, + required this.selectedColor, + }); + + final DynamicSchemeVariant schemeVariant; + final Brightness brightness; + final double contrastLevel; + final Color selectedColor; + + @override + Widget build(BuildContext context) { + return ConstrainedBox( + constraints: const BoxConstraints.tightFor(width: 250), + child: Column( + children: [ + Padding( + padding: const EdgeInsets.symmetric(vertical: 15), + child: Text( + schemeVariant.name == 'tonalSpot' ? '${schemeVariant.name} (Default)' : schemeVariant.name, + style: const TextStyle(fontWeight: FontWeight.bold), + ), + ), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 15), + child: ColorSchemeView( + colorScheme: ColorScheme.fromSeed( + seedColor: selectedColor, + brightness: brightness, + contrastLevel: contrastLevel, + dynamicSchemeVariant: schemeVariant, + ), + ), + ), + ], + ), + ); + } +} + +class ColorSchemeView extends StatelessWidget { + const ColorSchemeView({super.key, required this.colorScheme}); + + final ColorScheme colorScheme; + + @override + Widget build(BuildContext context) { + return Column( + children: [ + ColorGroup(children: [ + ColorChip('primary', colorScheme.primary, colorScheme.onPrimary), + ColorChip('onPrimary', colorScheme.onPrimary, colorScheme.primary), + ColorChip('primaryContainer', colorScheme.primaryContainer, colorScheme.onPrimaryContainer), + ColorChip( + 'onPrimaryContainer', + colorScheme.onPrimaryContainer, + colorScheme.primaryContainer, + ), + ]), + divider, + ColorGroup(children: [ + ColorChip('primaryFixed', colorScheme.primaryFixed, colorScheme.onPrimaryFixed), + ColorChip('onPrimaryFixed', colorScheme.onPrimaryFixed, colorScheme.primaryFixed), + ColorChip('primaryFixedDim', colorScheme.primaryFixedDim, colorScheme.onPrimaryFixedVariant), + ColorChip( + 'onPrimaryFixedVariant', + colorScheme.onPrimaryFixedVariant, + colorScheme.primaryFixedDim, + ), + ]), + divider, + ColorGroup(children: [ + ColorChip('secondary', colorScheme.secondary, colorScheme.onSecondary), + ColorChip('onSecondary', colorScheme.onSecondary, colorScheme.secondary), + ColorChip( + 'secondaryContainer', + colorScheme.secondaryContainer, + colorScheme.onSecondaryContainer, + ), + ColorChip( + 'onSecondaryContainer', + colorScheme.onSecondaryContainer, + colorScheme.secondaryContainer, + ), + ]), + divider, + ColorGroup(children: [ + ColorChip('secondaryFixed', colorScheme.secondaryFixed, colorScheme.onSecondaryFixed), + ColorChip('onSecondaryFixed', colorScheme.onSecondaryFixed, colorScheme.secondaryFixed), + ColorChip( + 'secondaryFixedDim', + colorScheme.secondaryFixedDim, + colorScheme.onSecondaryFixedVariant, + ), + ColorChip( + 'onSecondaryFixedVariant', + colorScheme.onSecondaryFixedVariant, + colorScheme.secondaryFixedDim, + ), + ]), + divider, + ColorGroup( + children: [ + ColorChip('tertiary', colorScheme.tertiary, colorScheme.onTertiary), + ColorChip('onTertiary', colorScheme.onTertiary, colorScheme.tertiary), + ColorChip( + 'tertiaryContainer', + colorScheme.tertiaryContainer, + colorScheme.onTertiaryContainer, + ), + ColorChip( + 'onTertiaryContainer', + colorScheme.onTertiaryContainer, + colorScheme.tertiaryContainer, + ), + ], + ), + divider, + ColorGroup(children: [ + ColorChip('tertiaryFixed', colorScheme.tertiaryFixed, colorScheme.onTertiaryFixed), + ColorChip('onTertiaryFixed', colorScheme.onTertiaryFixed, colorScheme.tertiaryFixed), + ColorChip('tertiaryFixedDim', colorScheme.tertiaryFixedDim, colorScheme.onTertiaryFixedVariant), + ColorChip( + 'onTertiaryFixedVariant', + colorScheme.onTertiaryFixedVariant, + colorScheme.tertiaryFixedDim, + ), + ]), + divider, + ColorGroup( + children: [ + ColorChip('error', colorScheme.error, colorScheme.onError), + ColorChip('onError', colorScheme.onError, colorScheme.error), + ColorChip('errorContainer', colorScheme.errorContainer, colorScheme.onErrorContainer), + ColorChip('onErrorContainer', colorScheme.onErrorContainer, colorScheme.errorContainer), + ], + ), + divider, + ColorGroup( + children: [ + ColorChip('surfaceDim', colorScheme.surfaceDim, colorScheme.onSurface), + ColorChip('surface', colorScheme.surface, colorScheme.onSurface), + ColorChip('surfaceBright', colorScheme.surfaceBright, colorScheme.onSurface), + ColorChip('surfaceContainerLowest', colorScheme.surfaceContainerLowest, colorScheme.onSurface), + ColorChip('surfaceContainerLow', colorScheme.surfaceContainerLow, colorScheme.onSurface), + ColorChip('surfaceContainer', colorScheme.surfaceContainer, colorScheme.onSurface), + ColorChip('surfaceContainerHigh', colorScheme.surfaceContainerHigh, colorScheme.onSurface), + ColorChip('surfaceContainerHighest', colorScheme.surfaceContainerHighest, colorScheme.onSurface), + ColorChip('onSurface', colorScheme.onSurface, colorScheme.surface), + ColorChip( + 'onSurfaceVariant', + colorScheme.onSurfaceVariant, + colorScheme.surfaceContainerHighest, + ), + ], + ), + divider, + ColorGroup( + children: [ + ColorChip('outline', colorScheme.outline, null), + ColorChip('shadow', colorScheme.shadow, null), + ColorChip('inverseSurface', colorScheme.inverseSurface, colorScheme.onInverseSurface), + ColorChip('onInverseSurface', colorScheme.onInverseSurface, colorScheme.inverseSurface), + ColorChip('inversePrimary', colorScheme.inversePrimary, colorScheme.primary), + ], + ), + ], + ); + } +} + +class ColorGroup extends StatelessWidget { + const ColorGroup({super.key, required this.children}); + + final List children; + + @override + Widget build(BuildContext context) { + return RepaintBoundary( + child: Card(clipBehavior: Clip.antiAlias, child: Column(children: children)), + ); + } +} + +class ColorChip extends StatelessWidget { + const ColorChip(this.label, this.color, this.onColor, {super.key}); + + final Color color; + final Color? onColor; + final String label; + + static Color contrastColor(Color color) { + final Brightness brightness = ThemeData.estimateBrightnessForColor(color); + return brightness == Brightness.dark ? Colors.white : Colors.black; + } + + @override + Widget build(BuildContext context) { + final Color labelColor = onColor ?? contrastColor(color); + return ColoredBox( + color: color, + child: Padding( + padding: const EdgeInsets.all(16), + child: Row( + children: [ + Expanded(child: Text(label, style: TextStyle(color: labelColor))), + ], + ), + ), + ); + } +} + +enum ColorSeed { + baseColor('M3 Baseline', Color(0xff6750a4)), + indigo('Indigo', Colors.indigo), + blue('Blue', Colors.blue), + teal('Teal', Colors.teal), + green('Green', Colors.green), + yellow('Yellow', Colors.yellow), + orange('Orange', Colors.orange), + deepOrange('Deep Orange', Colors.deepOrange), + pink('Pink', Colors.pink), + brightBlue('Bright Blue', Color(0xFF0000FF)), + brightGreen('Bright Green', Color(0xFF00FF00)), + brightRed('Bright Red', Color(0xFFFF0000)); + + const ColorSeed(this.label, this.color); + final String label; + final Color color; +} + +class SettingsButton extends StatelessWidget { + const SettingsButton({ + super.key, + required this.updateTheme, + required this.selectedBrightness, + required this.selectedContrast, + required this.selectedColor, + }); + + final Brightness selectedBrightness; + final double selectedContrast; + final Color selectedColor; + + final void Function(Brightness, Color, double) updateTheme; + + @override + Widget build(BuildContext context) { + return IconButton( + icon: const Icon(Icons.settings), + onPressed: () { + showModalBottomSheet( + barrierColor: Colors.transparent, + context: context, + builder: (BuildContext context) { + return Settings( + selectedColor: selectedColor, + selectedBrightness: selectedBrightness, + selectedContrast: selectedContrast, + updateTheme: updateTheme); + }, + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/color_scheme/dynamic_content_color.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/color_scheme/dynamic_content_color.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..0dad9253839fadb9618528fe41d7df1588c7e534 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/color_scheme/dynamic_content_color.0.dart @@ -0,0 +1,390 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ColorScheme.fromImageProvider] with content-based dynamic color. + +const Widget divider = SizedBox(height: 10); +const double narrowScreenWidthThreshold = 400; + +void main() => runApp(DynamicColorExample()); + +class DynamicColorExample extends StatefulWidget { + DynamicColorExample({super.key}); + + final List images = [ + const NetworkImage( + 'https://flutter.github.io/assets-for-api-docs/assets/material/content_based_color_scheme_1.png'), + const NetworkImage( + 'https://flutter.github.io/assets-for-api-docs/assets/material/content_based_color_scheme_2.png'), + const NetworkImage( + 'https://flutter.github.io/assets-for-api-docs/assets/material/content_based_color_scheme_3.png'), + const NetworkImage( + 'https://flutter.github.io/assets-for-api-docs/assets/material/content_based_color_scheme_4.png'), + const NetworkImage( + 'https://flutter.github.io/assets-for-api-docs/assets/material/content_based_color_scheme_5.png'), + const NetworkImage( + 'https://flutter.github.io/assets-for-api-docs/assets/material/content_based_color_scheme_6.png'), + ]; + + @override + State createState() => _DynamicColorExampleState(); +} + +class _DynamicColorExampleState extends State { + late ColorScheme currentColorScheme; + String currentHyperlinkImage = ''; + late int selectedImage; + late bool isLight; + late bool isLoading; + + @override + void initState() { + super.initState(); + selectedImage = 0; + isLight = true; + isLoading = true; + currentColorScheme = const ColorScheme.light(); + WidgetsBinding.instance.addPostFrameCallback((_) { + _updateImage(widget.images[selectedImage]); + isLoading = false; + }); + } + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = currentColorScheme; + final Color selectedColor = currentColorScheme.primary; + + final ThemeData lightTheme = ThemeData( + colorSchemeSeed: selectedColor, + brightness: Brightness.light, + useMaterial3: false, + ); + final ThemeData darkTheme = ThemeData( + colorSchemeSeed: selectedColor, + brightness: Brightness.dark, + useMaterial3: false, + ); + + Widget schemeLabel(String brightness, ColorScheme colorScheme) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 15), + child: Text( + brightness, + style: TextStyle(fontWeight: FontWeight.bold, color: colorScheme.onSecondaryContainer), + ), + ); + } + + Widget schemeView(ThemeData theme) { + return Padding( + padding: const EdgeInsets.symmetric(horizontal: 15), + child: ColorSchemeView(colorScheme: theme.colorScheme), + ); + } + + return MaterialApp( + theme: ThemeData(useMaterial3: true, colorScheme: colorScheme), + debugShowCheckedModeBanner: false, + home: Builder( + builder: (BuildContext context) => Scaffold( + appBar: AppBar( + title: const Text('Content Based Dynamic Color'), + backgroundColor: colorScheme.primary, + foregroundColor: colorScheme.onPrimary, + actions: [ + const Icon(Icons.light_mode), + Switch( + activeColor: colorScheme.primary, + activeTrackColor: colorScheme.surface, + inactiveTrackColor: colorScheme.onSecondary, + value: isLight, + onChanged: (bool value) { + setState(() { + isLight = value; + _updateImage(widget.images[selectedImage]); + }); + }) + ], + ), + body: Center( + child: isLoading + ? const CircularProgressIndicator() + : ColoredBox( + color: colorScheme.secondaryContainer, + child: Column( + children: [ + divider, + _imagesRow( + context, + widget.images, + colorScheme, + ), + divider, + Expanded( + child: ColoredBox( + color: colorScheme.background, + child: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + if (constraints.maxWidth < narrowScreenWidthThreshold) { + return SingleChildScrollView( + child: Column( + children: [ + divider, + schemeLabel('Light ColorScheme', colorScheme), + schemeView(lightTheme), + divider, + divider, + schemeLabel('Dark ColorScheme', colorScheme), + schemeView(darkTheme), + ], + ), + ); + } else { + return SingleChildScrollView( + child: Padding( + padding: const EdgeInsets.only(top: 5), + child: Column( + children: [ + Row( + children: [ + Expanded( + child: Column( + children: [ + schemeLabel('Light ColorScheme', colorScheme), + schemeView(lightTheme), + ], + ), + ), + Expanded( + child: Column( + children: [ + schemeLabel('Dark ColorScheme', colorScheme), + schemeView(darkTheme), + ], + ), + ), + ], + ), + ], + ), + ), + ); + } + }), + ), + ), + ], + ), + ), + ), + ), + ), + ); + } + + Future _updateImage(ImageProvider provider) async { + final ColorScheme newColorScheme = await ColorScheme.fromImageProvider( + provider: provider, brightness: isLight ? Brightness.light : Brightness.dark); + setState(() { + selectedImage = widget.images.indexOf(provider); + currentColorScheme = newColorScheme; + }); + } + + // For small screens, have two rows of image selection. For wide screens, + // fit them onto one row. + Widget _imagesRow(BuildContext context, List images, ColorScheme colorScheme) { + final double windowHeight = MediaQuery.of(context).size.height; + final double windowWidth = MediaQuery.of(context).size.width; + return Padding( + padding: const EdgeInsets.all(8.0), + child: LayoutBuilder(builder: (BuildContext context, BoxConstraints constraints) { + if (constraints.maxWidth > 800) { + return _adaptiveLayoutImagesRow(images, colorScheme, windowHeight); + } else { + return Column(children: [ + _adaptiveLayoutImagesRow(images.sublist(0, 3), colorScheme, windowWidth), + _adaptiveLayoutImagesRow(images.sublist(3), colorScheme, windowWidth), + ]); + } + }), + ); + } + + Widget _adaptiveLayoutImagesRow(List images, ColorScheme colorScheme, double windowWidth) { + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: images + .map( + (ImageProvider image) => Flexible( + flex: (images.length / 3).floor(), + child: GestureDetector( + onTap: () => _updateImage(image), + child: Card( + color: widget.images.indexOf(image) == selectedImage + ? colorScheme.primaryContainer + : colorScheme.background, + child: Padding( + padding: const EdgeInsets.all(5.0), + child: ConstrainedBox( + constraints: BoxConstraints(maxWidth: windowWidth * .25), + child: ClipRRect( + borderRadius: BorderRadius.circular(8.0), + child: Image(image: image), + ), + ), + ), + ), + ), + ), + ) + .toList(), + ); + } +} + +class ColorSchemeView extends StatelessWidget { + const ColorSchemeView({super.key, required this.colorScheme}); + + final ColorScheme colorScheme; + + @override + Widget build(BuildContext context) { + return Column( + children: [ + ColorGroup(children: [ + ColorChip(label: 'primary', color: colorScheme.primary, onColor: colorScheme.onPrimary), + ColorChip(label: 'onPrimary', color: colorScheme.onPrimary, onColor: colorScheme.primary), + ColorChip( + label: 'primaryContainer', color: colorScheme.primaryContainer, onColor: colorScheme.onPrimaryContainer), + ColorChip( + label: 'onPrimaryContainer', + color: colorScheme.onPrimaryContainer, + onColor: colorScheme.primaryContainer), + ]), + divider, + ColorGroup(children: [ + ColorChip(label: 'secondary', color: colorScheme.secondary, onColor: colorScheme.onSecondary), + ColorChip(label: 'onSecondary', color: colorScheme.onSecondary, onColor: colorScheme.secondary), + ColorChip( + label: 'secondaryContainer', + color: colorScheme.secondaryContainer, + onColor: colorScheme.onSecondaryContainer), + ColorChip( + label: 'onSecondaryContainer', + color: colorScheme.onSecondaryContainer, + onColor: colorScheme.secondaryContainer), + ]), + divider, + ColorGroup( + children: [ + ColorChip(label: 'tertiary', color: colorScheme.tertiary, onColor: colorScheme.onTertiary), + ColorChip(label: 'onTertiary', color: colorScheme.onTertiary, onColor: colorScheme.tertiary), + ColorChip( + label: 'tertiaryContainer', + color: colorScheme.tertiaryContainer, + onColor: colorScheme.onTertiaryContainer), + ColorChip( + label: 'onTertiaryContainer', + color: colorScheme.onTertiaryContainer, + onColor: colorScheme.tertiaryContainer), + ], + ), + divider, + ColorGroup( + children: [ + ColorChip(label: 'error', color: colorScheme.error, onColor: colorScheme.onError), + ColorChip(label: 'onError', color: colorScheme.onError, onColor: colorScheme.error), + ColorChip( + label: 'errorContainer', color: colorScheme.errorContainer, onColor: colorScheme.onErrorContainer), + ColorChip( + label: 'onErrorContainer', color: colorScheme.onErrorContainer, onColor: colorScheme.errorContainer), + ], + ), + divider, + ColorGroup( + children: [ + ColorChip(label: 'background', color: colorScheme.background, onColor: colorScheme.onBackground), + ColorChip(label: 'onBackground', color: colorScheme.onBackground, onColor: colorScheme.background), + ], + ), + divider, + ColorGroup( + children: [ + ColorChip(label: 'surface', color: colorScheme.surface, onColor: colorScheme.onSurface), + ColorChip(label: 'onSurface', color: colorScheme.onSurface, onColor: colorScheme.surface), + ColorChip( + label: 'surfaceVariant', color: colorScheme.surfaceVariant, onColor: colorScheme.onSurfaceVariant), + ColorChip( + label: 'onSurfaceVariant', color: colorScheme.onSurfaceVariant, onColor: colorScheme.surfaceVariant), + ], + ), + divider, + ColorGroup( + children: [ + ColorChip(label: 'outline', color: colorScheme.outline), + ColorChip(label: 'shadow', color: colorScheme.shadow), + ColorChip( + label: 'inverseSurface', color: colorScheme.inverseSurface, onColor: colorScheme.onInverseSurface), + ColorChip( + label: 'onInverseSurface', color: colorScheme.onInverseSurface, onColor: colorScheme.inverseSurface), + ColorChip(label: 'inversePrimary', color: colorScheme.inversePrimary, onColor: colorScheme.primary), + ], + ), + ], + ); + } +} + +class ColorGroup extends StatelessWidget { + const ColorGroup({super.key, required this.children}); + + final List children; + + @override + Widget build(BuildContext context) { + return RepaintBoundary( + child: Card(clipBehavior: Clip.antiAlias, child: Column(children: children)), + ); + } +} + +class ColorChip extends StatelessWidget { + const ColorChip({ + super.key, + required this.color, + required this.label, + this.onColor, + }); + + final Color color; + final Color? onColor; + final String label; + + static Color contrastColor(Color color) { + final Brightness brightness = ThemeData.estimateBrightnessForColor(color); + return switch (brightness) { + Brightness.dark => Colors.white, + Brightness.light => Colors.black, + }; + } + + @override + Widget build(BuildContext context) { + final Color labelColor = onColor ?? contrastColor(color); + return ColoredBox( + color: color, + child: Padding( + padding: const EdgeInsets.all(16), + child: Row( + children: [ + Expanded(child: Text(label, style: TextStyle(color: labelColor))), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/context_menu_controller.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/context_menu_controller.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..99e77ec9353d25cc9373852687dfb03f5c0fc222 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/context_menu_controller.0.dart @@ -0,0 +1,183 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This sample demonstrates allowing a context menu to be shown in a widget +// subtree in response to user gestures. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +void main() => runApp(const ContextMenuControllerExampleApp()); + +/// A builder that includes an Offset to draw the context menu at. +typedef ContextMenuBuilder = Widget Function(BuildContext context, Offset offset); + +class ContextMenuControllerExampleApp extends StatefulWidget { + const ContextMenuControllerExampleApp({super.key}); + + @override + State createState() => _ContextMenuControllerExampleAppState(); +} + +class _ContextMenuControllerExampleAppState extends State { + void _showDialog(BuildContext context) { + Navigator.of(context).push( + DialogRoute( + context: context, + builder: (BuildContext context) => const AlertDialog(title: Text('You clicked print!')), + ), + ); + } + + @override + void initState() { + super.initState(); + // On web, disable the browser's context menu since this example uses a custom + // Flutter-rendered context menu. + if (kIsWeb) { + BrowserContextMenu.disableContextMenu(); + } + } + + @override + void dispose() { + if (kIsWeb) { + BrowserContextMenu.enableContextMenu(); + } + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Context menu outside of text'), + ), + body: _ContextMenuRegion( + contextMenuBuilder: (BuildContext context, Offset offset) { + // The custom context menu will look like the default context menu + // on the current platform with a single 'Print' button. + return AdaptiveTextSelectionToolbar.buttonItems( + anchors: TextSelectionToolbarAnchors( + primaryAnchor: offset, + ), + buttonItems: [ + ContextMenuButtonItem( + onPressed: () { + ContextMenuController.removeAny(); + _showDialog(context); + }, + label: 'Print', + ), + ], + ); + }, + // In this case this wraps a big open space in a GestureDetector in + // order to show the context menu, but it could also wrap a single + // widget like an Image to give it a context menu. + child: ListView( + children: [ + Container(height: 20.0), + const Text( + 'Right click (desktop) or long press (mobile) anywhere, not just on this text, to show the custom menu.'), + ], + ), + ), + ), + ); + } +} + +/// Shows and hides the context menu based on user gestures. +/// +/// By default, shows the menu on right clicks and long presses. +class _ContextMenuRegion extends StatefulWidget { + /// Creates an instance of [_ContextMenuRegion]. + const _ContextMenuRegion({ + required this.child, + required this.contextMenuBuilder, + }); + + /// Builds the context menu. + final ContextMenuBuilder contextMenuBuilder; + + /// The child widget that will be listened to for gestures. + final Widget child; + + @override + State<_ContextMenuRegion> createState() => _ContextMenuRegionState(); +} + +class _ContextMenuRegionState extends State<_ContextMenuRegion> { + Offset? _longPressOffset; + + final ContextMenuController _contextMenuController = ContextMenuController(); + + static bool get _longPressEnabled { + switch (defaultTargetPlatform) { + case TargetPlatform.android: + case TargetPlatform.iOS: + return true; + case TargetPlatform.macOS: + case TargetPlatform.fuchsia: + case TargetPlatform.linux: + case TargetPlatform.windows: + return false; + } + } + + void _onSecondaryTapUp(TapUpDetails details) { + _show(details.globalPosition); + } + + void _onTap() { + if (!_contextMenuController.isShown) { + return; + } + _hide(); + } + + void _onLongPressStart(LongPressStartDetails details) { + _longPressOffset = details.globalPosition; + } + + void _onLongPress() { + assert(_longPressOffset != null); + _show(_longPressOffset!); + _longPressOffset = null; + } + + void _show(Offset position) { + _contextMenuController.show( + context: context, + contextMenuBuilder: (BuildContext context) { + return widget.contextMenuBuilder(context, position); + }, + ); + } + + void _hide() { + _contextMenuController.remove(); + } + + @override + void dispose() { + _hide(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return GestureDetector( + behavior: HitTestBehavior.opaque, + onSecondaryTapUp: _onSecondaryTapUp, + onTap: _onTap, + onLongPress: _longPressEnabled ? _onLongPress : null, + onLongPressStart: _longPressEnabled ? _onLongPressStart : null, + child: widget.child, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/editable_text_toolbar_builder.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/editable_text_toolbar_builder.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..138c14d4689cd3ed0ea74836091302759e13792e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/editable_text_toolbar_builder.0.dart @@ -0,0 +1,89 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This example demonstrates showing the default buttons, but customizing their +// appearance. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +void main() => runApp(const EditableTextToolbarBuilderExampleApp()); + +class EditableTextToolbarBuilderExampleApp extends StatefulWidget { + const EditableTextToolbarBuilderExampleApp({super.key}); + + @override + State createState() => _EditableTextToolbarBuilderExampleAppState(); +} + +class _EditableTextToolbarBuilderExampleAppState extends State { + final TextEditingController _controller = TextEditingController( + text: 'Right click (desktop) or long press (mobile) to see the menu with custom buttons.', + ); + + @override + void initState() { + super.initState(); + // On web, disable the browser's context menu since this example uses a custom + // Flutter-rendered context menu. + if (kIsWeb) { + BrowserContextMenu.disableContextMenu(); + } + } + + @override + void dispose() { + if (kIsWeb) { + BrowserContextMenu.enableContextMenu(); + } + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Custom button appearance'), + ), + body: Center( + child: Column( + children: [ + const SizedBox(height: 20.0), + TextField( + controller: _controller, + contextMenuBuilder: (BuildContext context, EditableTextState editableTextState) { + return AdaptiveTextSelectionToolbar( + anchors: editableTextState.contextMenuAnchors, + // Build the default buttons, but make them look custom. + // In a real project you may want to build different + // buttons depending on the platform. + children: editableTextState.contextMenuButtonItems.map((ContextMenuButtonItem buttonItem) { + return CupertinoButton( + borderRadius: null, + color: const Color(0xffaaaa00), + disabledColor: const Color(0xffaaaaff), + onPressed: buttonItem.onPressed, + padding: const EdgeInsets.all(10.0), + pressedOpacity: 0.7, + child: SizedBox( + width: 200.0, + child: Text( + CupertinoTextSelectionToolbarButton.getButtonLabel(context, buttonItem), + ), + ), + ); + }).toList(), + ); + }, + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/editable_text_toolbar_builder.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/editable_text_toolbar_builder.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..c7c16f05e7a9a5453d7f131a8230d69621ad5026 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/editable_text_toolbar_builder.1.dart @@ -0,0 +1,109 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This example demonstrates showing a custom context menu only when some +// narrowly defined text is selected. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +void main() => runApp(const EditableTextToolbarBuilderExampleApp()); + +const String emailAddress = 'me@example.com'; +const String text = 'Select the email address and open the menu: $emailAddress'; + +class EditableTextToolbarBuilderExampleApp extends StatefulWidget { + const EditableTextToolbarBuilderExampleApp({super.key}); + + @override + State createState() => _EditableTextToolbarBuilderExampleAppState(); +} + +class _EditableTextToolbarBuilderExampleAppState extends State { + final TextEditingController _controller = TextEditingController( + text: text, + ); + + void _showDialog(BuildContext context) { + Navigator.of(context).push( + DialogRoute( + context: context, + builder: (BuildContext context) => const AlertDialog(title: Text('You clicked send email!')), + ), + ); + } + + @override + void initState() { + super.initState(); + // On web, disable the browser's context menu since this example uses a custom + // Flutter-rendered context menu. + if (kIsWeb) { + BrowserContextMenu.disableContextMenu(); + } + } + + @override + void dispose() { + if (kIsWeb) { + BrowserContextMenu.enableContextMenu(); + } + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Custom button for emails'), + ), + body: Center( + child: Column( + children: [ + Container(height: 20.0), + TextField( + controller: _controller, + contextMenuBuilder: (BuildContext context, EditableTextState editableTextState) { + final List buttonItems = editableTextState.contextMenuButtonItems; + // Here we add an "Email" button to the default TextField + // context menu for the current platform, but only if an email + // address is currently selected. + final TextEditingValue value = _controller.value; + if (_isValidEmail(value.selection.textInside(value.text))) { + buttonItems.insert( + 0, + ContextMenuButtonItem( + label: 'Send email', + onPressed: () { + ContextMenuController.removeAny(); + _showDialog(context); + }, + ), + ); + } + return AdaptiveTextSelectionToolbar.buttonItems( + anchors: editableTextState.contextMenuAnchors, + buttonItems: buttonItems, + ); + }, + ), + ], + ), + ), + ), + ); + } +} + +bool _isValidEmail(String text) { + return RegExp( + r'(?[a-zA-Z0-9]+)' + r'@' + r'(?[a-zA-Z0-9]+)' + r'\.' + r'(?[a-zA-Z0-9]+)', + ).hasMatch(text); +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/editable_text_toolbar_builder.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/editable_text_toolbar_builder.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..25fa23637c7b88c12869de1ecad45485dcaaf0d8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/editable_text_toolbar_builder.2.dart @@ -0,0 +1,132 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This example demonstrates how to create a custom toolbar that retains the +// look of the default buttons for the current platform. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +void main() => runApp(const EditableTextToolbarBuilderExampleApp()); + +class EditableTextToolbarBuilderExampleApp extends StatefulWidget { + const EditableTextToolbarBuilderExampleApp({super.key}); + + @override + State createState() => _EditableTextToolbarBuilderExampleAppState(); +} + +class _EditableTextToolbarBuilderExampleAppState extends State { + final TextEditingController _controller = TextEditingController( + text: 'Right click (desktop) or long press (mobile) to see the menu with a custom toolbar.', + ); + + @override + void initState() { + super.initState(); + // On web, disable the browser's context menu since this example uses a custom + // Flutter-rendered context menu. + if (kIsWeb) { + BrowserContextMenu.disableContextMenu(); + } + } + + @override + void dispose() { + if (kIsWeb) { + BrowserContextMenu.enableContextMenu(); + } + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Custom toolbar, default-looking buttons'), + ), + body: Center( + child: Column( + children: [ + const SizedBox(height: 20.0), + TextField( + controller: _controller, + contextMenuBuilder: (BuildContext context, EditableTextState editableTextState) { + return _MyTextSelectionToolbar( + anchor: editableTextState.contextMenuAnchors.primaryAnchor, + // getAdaptiveButtons creates the default button widgets for + // the current platform. + children: AdaptiveTextSelectionToolbar.getAdaptiveButtons( + context, + // These buttons just close the menu when clicked. + [ + ContextMenuButtonItem( + label: 'One', + onPressed: () => ContextMenuController.removeAny(), + ), + ContextMenuButtonItem( + label: 'Two', + onPressed: () => ContextMenuController.removeAny(), + ), + ContextMenuButtonItem( + label: 'Three', + onPressed: () => ContextMenuController.removeAny(), + ), + ContextMenuButtonItem( + label: 'Four', + onPressed: () => ContextMenuController.removeAny(), + ), + ContextMenuButtonItem( + label: 'Five', + onPressed: () => ContextMenuController.removeAny(), + ), + ], + ).toList(), + ); + }, + ), + ], + ), + ), + ), + ); + } +} + +/// A simple, yet totally custom, text selection toolbar. +/// +/// Displays its children in a scrollable grid. +class _MyTextSelectionToolbar extends StatelessWidget { + const _MyTextSelectionToolbar({ + required this.anchor, + required this.children, + }); + + final Offset anchor; + final List children; + + @override + Widget build(BuildContext context) { + return Stack( + children: [ + Positioned( + top: anchor.dy, + left: anchor.dx, + child: Container( + width: 200.0, + height: 200.0, + color: Colors.cyanAccent.withOpacity(0.5), + child: GridView.count( + padding: const EdgeInsets.all(12.0), + crossAxisCount: 2, + children: children, + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/selectable_region_toolbar_builder.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/selectable_region_toolbar_builder.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a63b625c42687199156b95bed4023b850a54532d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/context_menu/selectable_region_toolbar_builder.0.dart @@ -0,0 +1,93 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// This example demonstrates a custom context menu in non-editable text using +// SelectionArea. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +void main() => runApp(const SelectableRegionToolbarBuilderExampleApp()); + +const String text = + 'I am some text inside of SelectionArea. Right click (desktop) or long press (mobile) me to show the customized context menu.'; + +class SelectableRegionToolbarBuilderExampleApp extends StatefulWidget { + const SelectableRegionToolbarBuilderExampleApp({super.key}); + + @override + State createState() => _SelectableRegionToolbarBuilderExampleAppState(); +} + +class _SelectableRegionToolbarBuilderExampleAppState extends State { + void _showDialog(BuildContext context) { + Navigator.of(context).push( + DialogRoute( + context: context, + builder: (BuildContext context) => const AlertDialog(title: Text('You clicked print!')), + ), + ); + } + + @override + void initState() { + super.initState(); + // On web, disable the browser's context menu since this example uses a custom + // Flutter-rendered context menu. + if (kIsWeb) { + BrowserContextMenu.disableContextMenu(); + } + } + + @override + void dispose() { + if (kIsWeb) { + BrowserContextMenu.enableContextMenu(); + } + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Context menu anywhere'), + ), + body: Center( + child: SizedBox( + width: 200.0, + child: SelectionArea( + contextMenuBuilder: ( + BuildContext context, + SelectableRegionState selectableRegionState, + ) { + return AdaptiveTextSelectionToolbar.buttonItems( + anchors: selectableRegionState.contextMenuAnchors, + buttonItems: [ + ...selectableRegionState.contextMenuButtonItems, + ContextMenuButtonItem( + onPressed: () { + ContextMenuController.removeAny(); + _showDialog(context); + }, + label: 'Print', + ), + ], + ); + }, + child: ListView( + children: const [ + SizedBox(height: 20.0), + Text(text), + ], + ), + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/data_table/data_table.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/data_table/data_table.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..2d1ff244bc803df54d4e25410d413fc4c8262e4c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/data_table/data_table.0.dart @@ -0,0 +1,82 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DataTable]. + +void main() => runApp(const DataTableExampleApp()); + +class DataTableExampleApp extends StatelessWidget { + const DataTableExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('DataTable Sample')), + body: const DataTableExample(), + ), + ); + } +} + +class DataTableExample extends StatelessWidget { + const DataTableExample({super.key}); + + @override + Widget build(BuildContext context) { + return DataTable( + columns: const [ + DataColumn( + label: Expanded( + child: Text( + 'Name', + style: TextStyle(fontStyle: FontStyle.italic), + ), + ), + ), + DataColumn( + label: Expanded( + child: Text( + 'Age', + style: TextStyle(fontStyle: FontStyle.italic), + ), + ), + ), + DataColumn( + label: Expanded( + child: Text( + 'Role', + style: TextStyle(fontStyle: FontStyle.italic), + ), + ), + ), + ], + rows: const [ + DataRow( + cells: [ + DataCell(Text('Sarah')), + DataCell(Text('19')), + DataCell(Text('Student')), + ], + ), + DataRow( + cells: [ + DataCell(Text('Janine')), + DataCell(Text('43')), + DataCell(Text('Professor')), + ], + ), + DataRow( + cells: [ + DataCell(Text('William')), + DataCell(Text('27')), + DataCell(Text('Associate Professor')), + ], + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/data_table/data_table.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/data_table/data_table.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..36690d3617496fdc04f33f68d3805759a97c12c0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/data_table/data_table.1.dart @@ -0,0 +1,71 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DataTable]. + +void main() => runApp(const DataTableExampleApp()); + +class DataTableExampleApp extends StatelessWidget { + const DataTableExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('DataTable Sample')), + body: const DataTableExample(), + ), + ); + } +} + +class DataTableExample extends StatefulWidget { + const DataTableExample({super.key}); + + @override + State createState() => _DataTableExampleState(); +} + +class _DataTableExampleState extends State { + static const int numItems = 20; + List selected = List.generate(numItems, (int index) => false); + + @override + Widget build(BuildContext context) { + return SingleChildScrollView( + child: DataTable( + columns: const [ + DataColumn( + label: Text('Number'), + ), + ], + rows: List.generate( + numItems, + (int index) => DataRow( + color: MaterialStateProperty.resolveWith((Set states) { + // All rows will have the same selected color. + if (states.contains(MaterialState.selected)) { + return Theme.of(context).colorScheme.primary.withOpacity(0.08); + } + // Even rows will have a grey color. + if (index.isEven) { + return Colors.grey.withOpacity(0.3); + } + return null; // Use default value for other states and odd rows. + }), + cells: [DataCell(Text('Row $index'))], + selected: selected[index], + onSelectChanged: (bool? value) { + setState(() { + selected[index] = value!; + }); + }, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/date_picker/date_picker_theme_day_shape.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/date_picker/date_picker_theme_day_shape.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..41cd9812df266844def02514f4856a3509aa0b2d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/date_picker/date_picker_theme_day_shape.0.dart @@ -0,0 +1,64 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DatePickerThemeData]. + +void main() => runApp(const DatePickerApp()); + +class DatePickerApp extends StatelessWidget { + const DatePickerApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + datePickerTheme: DatePickerThemeData( + todayBackgroundColor: const MaterialStatePropertyAll(Colors.amber), + todayForegroundColor: const MaterialStatePropertyAll(Colors.black), + todayBorder: const BorderSide(width: 2), + dayShape: MaterialStatePropertyAll( + RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8.0), + ), + ), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(16.0), + ), + ), + ), + home: const DatePickerExample(), + ); + } +} + +class DatePickerExample extends StatefulWidget { + const DatePickerExample({super.key}); + + @override + State createState() => _DatePickerExampleState(); +} + +class _DatePickerExampleState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: OutlinedButton( + onPressed: () { + showDatePicker( + context: context, + initialDate: DateTime(2021, 1, 20), + currentDate: DateTime(2021, 1, 15), + firstDate: DateTime(2021), + lastDate: DateTime(2022), + ); + }, + child: const Text('Open Date Picker'), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/date_picker/show_date_picker.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/date_picker/show_date_picker.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..cd6b8d5fae194dcc0a70293c3499bda4fbff77d0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/date_picker/show_date_picker.0.dart @@ -0,0 +1,101 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [showDatePicker]. + +void main() => runApp(const DatePickerApp()); + +class DatePickerApp extends StatelessWidget { + const DatePickerApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + restorationScopeId: 'app', + home: const DatePickerExample(restorationId: 'main'), + ); + } +} + +class DatePickerExample extends StatefulWidget { + const DatePickerExample({super.key, this.restorationId}); + + final String? restorationId; + + @override + State createState() => _DatePickerExampleState(); +} + +/// RestorationProperty objects can be used because of RestorationMixin. +class _DatePickerExampleState extends State with RestorationMixin { + // In this example, the restoration ID for the mixin is passed in through + // the [StatefulWidget]'s constructor. + @override + String? get restorationId => widget.restorationId; + + final RestorableDateTime _selectedDate = RestorableDateTime(DateTime(2021, 7, 25)); + late final RestorableRouteFuture _restorableDatePickerRouteFuture = RestorableRouteFuture( + onComplete: _selectDate, + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush( + _datePickerRoute, + arguments: _selectedDate.value.millisecondsSinceEpoch, + ); + }, + ); + + @pragma('vm:entry-point') + static Route _datePickerRoute( + BuildContext context, + Object? arguments, + ) { + return DialogRoute( + context: context, + builder: (BuildContext context) { + return DatePickerDialog( + restorationId: 'date_picker_dialog', + initialEntryMode: DatePickerEntryMode.calendarOnly, + initialDate: DateTime.fromMillisecondsSinceEpoch(arguments! as int), + firstDate: DateTime(2021), + lastDate: DateTime(2022), + ); + }, + ); + } + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_selectedDate, 'selected_date'); + registerForRestoration(_restorableDatePickerRouteFuture, 'date_picker_route_future'); + } + + void _selectDate(DateTime? newSelectedDate) { + if (newSelectedDate != null) { + setState(() { + _selectedDate.value = newSelectedDate; + ScaffoldMessenger.of(context).showSnackBar(SnackBar( + content: + Text('Selected: ${_selectedDate.value.day}/${_selectedDate.value.month}/${_selectedDate.value.year}'), + )); + }); + } + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: OutlinedButton( + onPressed: () { + _restorableDatePickerRouteFuture.present(); + }, + child: const Text('Open Date Picker'), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/date_picker/show_date_range_picker.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/date_picker/show_date_range_picker.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..9efd6d037c3838190e21526047e4901b3dac816a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/date_picker/show_date_range_picker.0.dart @@ -0,0 +1,112 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [showDateRangePicker]. + +void main() => runApp(const DatePickerApp()); + +class DatePickerApp extends StatelessWidget { + const DatePickerApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + restorationScopeId: 'app', + home: const DatePickerExample(restorationId: 'main'), + ); + } +} + +class DatePickerExample extends StatefulWidget { + const DatePickerExample({super.key, this.restorationId}); + + final String? restorationId; + + @override + State createState() => _DatePickerExampleState(); +} + +/// RestorationProperty objects can be used because of RestorationMixin. +class _DatePickerExampleState extends State with RestorationMixin { + // In this example, the restoration ID for the mixin is passed in through + // the [StatefulWidget]'s constructor. + @override + String? get restorationId => widget.restorationId; + + final RestorableDateTimeN _startDate = RestorableDateTimeN(DateTime(2021)); + final RestorableDateTimeN _endDate = RestorableDateTimeN(DateTime(2021, 1, 5)); + late final RestorableRouteFuture _restorableDateRangePickerRouteFuture = + RestorableRouteFuture( + onComplete: _selectDateRange, + onPresent: (NavigatorState navigator, Object? arguments) { + return navigator.restorablePush(_dateRangePickerRoute, arguments: { + 'initialStartDate': _startDate.value?.millisecondsSinceEpoch, + 'initialEndDate': _endDate.value?.millisecondsSinceEpoch, + }); + }, + ); + + void _selectDateRange(DateTimeRange? newSelectedDate) { + if (newSelectedDate != null) { + setState(() { + _startDate.value = newSelectedDate.start; + _endDate.value = newSelectedDate.end; + }); + } + } + + @override + void restoreState(RestorationBucket? oldBucket, bool initialRestore) { + registerForRestoration(_startDate, 'start_date'); + registerForRestoration(_endDate, 'end_date'); + registerForRestoration(_restorableDateRangePickerRouteFuture, 'date_picker_route_future'); + } + + @pragma('vm:entry-point') + static Route _dateRangePickerRoute( + BuildContext context, + Object? arguments, + ) { + return DialogRoute( + context: context, + builder: (BuildContext context) { + return DateRangePickerDialog( + restorationId: 'date_picker_dialog', + initialDateRange: _initialDateTimeRange(arguments! as Map), + firstDate: DateTime(2021), + currentDate: DateTime(2021, 1, 25), + lastDate: DateTime(2022), + ); + }, + ); + } + + static DateTimeRange? _initialDateTimeRange(Map arguments) { + if (arguments['initialStartDate'] != null && arguments['initialEndDate'] != null) { + return DateTimeRange( + start: DateTime.fromMillisecondsSinceEpoch(arguments['initialStartDate'] as int), + end: DateTime.fromMillisecondsSinceEpoch(arguments['initialEndDate'] as int), + ); + } + + return null; + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: OutlinedButton( + onPressed: () { + _restorableDateRangePickerRouteFuture.present(); + }, + child: const Text('Open Date Range Picker'), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/adaptive_alert_dialog.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/adaptive_alert_dialog.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..08b760cfb313d5d27b5ebd67eaae555fda43a2a2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/adaptive_alert_dialog.0.dart @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AlertDialog]. + +void main() => runApp(const AdaptiveAlertDialogApp()); + +class AdaptiveAlertDialogApp extends StatelessWidget { + const AdaptiveAlertDialogApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + // Try this: set the platform to TargetPlatform.android and see the difference + theme: ThemeData(platform: TargetPlatform.iOS, useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('AlertDialog Sample')), + body: const Center( + child: AdaptiveDialogExample(), + ), + ), + ); + } +} + +class AdaptiveDialogExample extends StatelessWidget { + const AdaptiveDialogExample({super.key}); + + Widget adaptiveAction({ + required BuildContext context, + required VoidCallback onPressed, + required Widget child + }) { + final ThemeData theme = Theme.of(context); + switch (theme.platform) { + case TargetPlatform.android: + case TargetPlatform.fuchsia: + case TargetPlatform.linux: + case TargetPlatform.windows: + return TextButton(onPressed: onPressed, child: child); + case TargetPlatform.iOS: + case TargetPlatform.macOS: + return CupertinoDialogAction(onPressed: onPressed, child: child); + } + } + + @override + Widget build(BuildContext context) { + return TextButton( + onPressed: () => showAdaptiveDialog( + context: context, + builder: (BuildContext context) => AlertDialog.adaptive( + title: const Text('AlertDialog Title'), + content: const Text('AlertDialog description'), + actions: [ + adaptiveAction( + context: context, + onPressed: () => Navigator.pop(context, 'Cancel'), + child: const Text('Cancel'), + ), + adaptiveAction( + context: context, + onPressed: () => Navigator.pop(context, 'OK'), + child: const Text('OK'), + ), + ], + ), + ), + child: const Text('Show Dialog'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/alert_dialog.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/alert_dialog.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..82b0708bbe76c588a93dc003f2f31c80de435759 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/alert_dialog.0.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AlertDialog]. + +void main() => runApp(const AlertDialogExampleApp()); + +class AlertDialogExampleApp extends StatelessWidget { + const AlertDialogExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('AlertDialog Sample')), + body: const Center( + child: DialogExample(), + ), + ), + ); + } +} + +class DialogExample extends StatelessWidget { + const DialogExample({super.key}); + + @override + Widget build(BuildContext context) { + return TextButton( + onPressed: () => showDialog( + context: context, + builder: (BuildContext context) => AlertDialog( + title: const Text('AlertDialog Title'), + content: const Text('AlertDialog description'), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context, 'Cancel'), + child: const Text('Cancel'), + ), + TextButton( + onPressed: () => Navigator.pop(context, 'OK'), + child: const Text('OK'), + ), + ], + ), + ), + child: const Text('Show Dialog'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/alert_dialog.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/alert_dialog.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..0785b5ed09d64c7dca464c17434810d0f00c6c95 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/alert_dialog.1.dart @@ -0,0 +1,54 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AlertDialog]. + +void main() => runApp(const AlertDialogExampleApp()); + +class AlertDialogExampleApp extends StatelessWidget { + const AlertDialogExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('AlertDialog Sample')), + body: const Center( + child: DialogExample(), + ), + ), + ); + } +} + +class DialogExample extends StatelessWidget { + const DialogExample({super.key}); + + @override + Widget build(BuildContext context) { + return TextButton( + onPressed: () => showDialog( + context: context, + builder: (BuildContext context) => AlertDialog( + title: const Text('AlertDialog Title'), + content: const Text('AlertDialog description'), + actions: [ + TextButton( + onPressed: () => Navigator.pop(context, 'Cancel'), + child: const Text('Cancel'), + ), + TextButton( + onPressed: () => Navigator.pop(context, 'OK'), + child: const Text('OK'), + ), + ], + ), + ), + child: const Text('Show Dialog'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/dialog.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/dialog.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..4dbda85c56dfec8e8d6dce9b9fa4519fca3e3d8c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/dialog.0.dart @@ -0,0 +1,86 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Dialog]. + +void main() => runApp(const DialogExampleApp()); + +class DialogExampleApp extends StatelessWidget { + const DialogExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Dialog Sample')), + body: const Center( + child: DialogExample(), + ), + ), + ); + } +} + +class DialogExample extends StatelessWidget { + const DialogExample({super.key}); + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + TextButton( + onPressed: () => showDialog( + context: context, + builder: (BuildContext context) => Dialog( + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('This is a typical dialog.'), + const SizedBox(height: 15), + TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: const Text('Close'), + ), + ], + ), + ), + ), + ), + child: const Text('Show Dialog'), + ), + const SizedBox(height: 10), + TextButton( + onPressed: () => showDialog( + context: context, + builder: (BuildContext context) => Dialog.fullscreen( + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('This is a fullscreen dialog.'), + const SizedBox(height: 15), + TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: const Text('Close'), + ), + ], + ), + ), + ), + child: const Text('Show Fullscreen Dialog'), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/show_dialog.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/show_dialog.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..614e40b3503af9a5a399f08f807efd9a6c99d008 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/show_dialog.0.dart @@ -0,0 +1,74 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [showDialog]. + +void main() => runApp(const ShowDialogExampleApp()); + +class ShowDialogExampleApp extends StatelessWidget { + const ShowDialogExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: DialogExample(), + ); + } +} + +class DialogExample extends StatelessWidget { + const DialogExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('showDialog Sample')), + body: Center( + child: OutlinedButton( + onPressed: () => _dialogBuilder(context), + child: const Text('Open Dialog'), + ), + ), + ); + } + + Future _dialogBuilder(BuildContext context) { + return showDialog( + context: context, + builder: (BuildContext context) { + return AlertDialog( + title: const Text('Basic dialog title'), + content: const Text( + 'A dialog is a type of modal window that\n' + 'appears in front of app content to\n' + 'provide critical information, or prompt\n' + 'for a decision to be made.', + ), + actions: [ + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Disable'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Enable'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + ], + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/show_dialog.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/show_dialog.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..73b6807da31c0c92cc2ac6146f4cdbf165d32efe --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/show_dialog.1.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [showDialog]. + +void main() => runApp(const ShowDialogExampleApp()); + +class ShowDialogExampleApp extends StatelessWidget { + const ShowDialogExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + home: const DialogExample(), + ); + } +} + +class DialogExample extends StatelessWidget { + const DialogExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('showDialog Sample')), + body: Center( + child: OutlinedButton( + onPressed: () => _dialogBuilder(context), + child: const Text('Open Dialog'), + ), + ), + ); + } + + Future _dialogBuilder(BuildContext context) { + return showDialog( + context: context, + builder: (BuildContext context) { + return AlertDialog( + title: const Text('Basic dialog title'), + content: const Text( + 'A dialog is a type of modal window that\n' + 'appears in front of app content to\n' + 'provide critical information, or prompt\n' + 'for a decision to be made.', + ), + actions: [ + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Disable'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Enable'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + ], + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/show_dialog.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/show_dialog.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..f76a84ea618301790e23fd18fbd6c46f470862ed --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dialog/show_dialog.2.dart @@ -0,0 +1,78 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [showDialog]. + +void main() => runApp(const ShowDialogExampleApp()); + +class ShowDialogExampleApp extends StatelessWidget { + const ShowDialogExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + restorationScopeId: 'app', + home: DialogExample(), + ); + } +} + +class DialogExample extends StatelessWidget { + const DialogExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('AlertDialog Sample')), + body: Center( + child: OutlinedButton( + onPressed: () { + Navigator.of(context).restorablePush(_dialogBuilder); + }, + child: const Text('Open Dialog'), + ), + ), + ); + } + + @pragma('vm:entry-point') + static Route _dialogBuilder(BuildContext context, Object? arguments) { + return DialogRoute( + context: context, + builder: (BuildContext context) { + return AlertDialog( + title: const Text('Basic dialog title'), + content: const Text( + 'A dialog is a type of modal window that\n' + 'appears in front of app content to\n' + 'provide critical information, or prompt\n' + 'for a decision to be made.', + ), + actions: [ + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Disable'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + TextButton( + style: TextButton.styleFrom( + textStyle: Theme.of(context).textTheme.labelLarge, + ), + child: const Text('Enable'), + onPressed: () { + Navigator.of(context).pop(); + }, + ), + ], + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/divider.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/divider.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..15cb5af017644c0227814052f4711056ac0dab10 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/divider.0.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Divider]. + +void main() => runApp(const DividerExampleApp()); + +class DividerExampleApp extends StatelessWidget { + const DividerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Divider Sample')), + body: const DividerExample(), + ), + ); + } +} + +class DividerExample extends StatelessWidget { + const DividerExample({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + children: [ + const Expanded( + child: ColoredBox( + color: Colors.amber, + child: Center( + child: Text('Above'), + ), + ), + ), + const Divider( + height: 20, + thickness: 5, + indent: 20, + endIndent: 0, + color: Colors.black, + ), + // Subheader example from Material spec. + // https://material.io/components/dividers#types + Container( + padding: const EdgeInsets.only(left: 20), + child: Align( + alignment: AlignmentDirectional.centerStart, + child: Text( + 'Subheader', + style: Theme.of(context).textTheme.bodySmall, + textAlign: TextAlign.start, + ), + ), + ), + Expanded( + child: ColoredBox( + color: Theme.of(context).colorScheme.primary, + child: const Center( + child: Text('Below'), + ), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/divider.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/divider.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..ae91b18d013d0a53d7eb3e3991ae5bd3da8c55fb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/divider.1.dart @@ -0,0 +1,52 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Divider]. + +void main() => runApp(const DividerExampleApp()); + +class DividerExampleApp extends StatelessWidget { + const DividerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('Divider Sample')), + body: const DividerExample(), + ), + ); + } +} + +class DividerExample extends StatelessWidget { + const DividerExample({super.key}); + + @override + Widget build(BuildContext context) { + return const Center( + child: Padding( + padding: EdgeInsets.all(16.0), + child: Column( + children: [ + Expanded( + child: Card( + child: SizedBox.expand(), + ), + ), + Divider(), + Expanded( + child: Card( + child: SizedBox.expand(), + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/vertical_divider.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/vertical_divider.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..cf1c9887558c248adb80598dfdd31fbd15978ae8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/vertical_divider.0.dart @@ -0,0 +1,61 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [VerticalDivider]. + +void main() => runApp(const VerticalDividerExampleApp()); + +class VerticalDividerExampleApp extends StatelessWidget { + const VerticalDividerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('VerticalDivider Sample')), + body: const DividerExample(), + ), + ); + } +} + +class DividerExample extends StatelessWidget { + const DividerExample({super.key}); + + @override + Widget build(BuildContext context) { + return Container( + padding: const EdgeInsets.all(10), + child: Row( + children: [ + Expanded( + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + color: Colors.deepPurpleAccent, + ), + ), + ), + const VerticalDivider( + width: 20, + thickness: 1, + indent: 20, + endIndent: 0, + color: Colors.grey, + ), + Expanded( + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10), + color: Colors.deepOrangeAccent, + ), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/vertical_divider.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/vertical_divider.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..a272b7e62e1cdcae0c2de542d735dcfad3e5ad65 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/divider/vertical_divider.1.dart @@ -0,0 +1,52 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Divider]. + +void main() => runApp(const VerticalDividerExampleApp()); + +class VerticalDividerExampleApp extends StatelessWidget { + const VerticalDividerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('Divider Sample')), + body: const DividerExample(), + ), + ); + } +} + +class DividerExample extends StatelessWidget { + const DividerExample({super.key}); + + @override + Widget build(BuildContext context) { + return const Center( + child: Padding( + padding: EdgeInsets.all(16.0), + child: Row( + children: [ + Expanded( + child: Card( + child: SizedBox.expand(), + ), + ), + VerticalDivider(), + Expanded( + child: Card( + child: SizedBox.expand(), + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/drawer/drawer.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/drawer/drawer.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..46c96ac435bb772c94804ba606396194af8b2082 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/drawer/drawer.0.dart @@ -0,0 +1,90 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Drawer]. + +void main() => runApp(const DrawerApp()); + +class DrawerApp extends StatelessWidget { + const DrawerApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const DrawerExample(), + ); + } +} + +class DrawerExample extends StatefulWidget { + const DrawerExample({super.key}); + + @override + State createState() => _DrawerExampleState(); +} + +class _DrawerExampleState extends State { + String selectedPage = ''; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Drawer Example'), + ), + drawer: Drawer( + child: ListView( + padding: EdgeInsets.zero, + children: [ + const DrawerHeader( + decoration: BoxDecoration( + color: Colors.blue, + ), + child: Text( + 'Drawer Header', + style: TextStyle( + color: Colors.white, + fontSize: 24, + ), + ), + ), + ListTile( + leading: const Icon(Icons.message), + title: const Text('Messages'), + onTap: () { + setState(() { + selectedPage = 'Messages'; + }); + }, + ), + ListTile( + leading: const Icon(Icons.account_circle), + title: const Text('Profile'), + onTap: () { + setState(() { + selectedPage = 'Profile'; + }); + }, + ), + ListTile( + leading: const Icon(Icons.settings), + title: const Text('Settings'), + onTap: () { + setState(() { + selectedPage = 'Settings'; + }); + }, + ), + ], + ), + ), + body: Center( + child: Text('Page: $selectedPage'), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown/dropdown_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown/dropdown_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..15d1ccb60133436be27da08bfbc86143d03b0ed6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown/dropdown_button.0.dart @@ -0,0 +1,64 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DropdownButton]. + +const List list = ['One', 'Two', 'Three', 'Four']; + +void main() => runApp(const DropdownButtonApp()); + +class DropdownButtonApp extends StatelessWidget { + const DropdownButtonApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('DropdownButton Sample')), + body: const Center( + child: DropdownButtonExample(), + ), + ), + ); + } +} + +class DropdownButtonExample extends StatefulWidget { + const DropdownButtonExample({super.key}); + + @override + State createState() => _DropdownButtonExampleState(); +} + +class _DropdownButtonExampleState extends State { + String dropdownValue = list.first; + + @override + Widget build(BuildContext context) { + return DropdownButton( + value: dropdownValue, + icon: const Icon(Icons.arrow_downward), + elevation: 16, + style: const TextStyle(color: Colors.deepPurple), + underline: Container( + height: 2, + color: Colors.deepPurpleAccent, + ), + onChanged: (String? value) { + // This is called when the user selects an item. + setState(() { + dropdownValue = value!; + }); + }, + items: list.map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value), + ); + }).toList(), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown/dropdown_button.selected_item_builder.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown/dropdown_button.selected_item_builder.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..1c4f832e7f161ba52575de3400f763b6c7d1ede3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown/dropdown_button.selected_item_builder.0.dart @@ -0,0 +1,85 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DropdownButton.selectedItemBuilder]. + +Map cities = { + 'New York': 'NYC', + 'Los Angeles': 'LA', + 'San Francisco': 'SF', + 'Chicago': 'CH', + 'Miami': 'MI', +}; + +void main() => runApp(const DropdownButtonApp()); + +class DropdownButtonApp extends StatelessWidget { + const DropdownButtonApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('DropdownButton Sample')), + body: const Center(child: DropdownButtonExample()), + ), + ); + } +} + +class DropdownButtonExample extends StatefulWidget { + const DropdownButtonExample({super.key}); + + @override + State createState() => _DropdownButtonExampleState(); +} + +class _DropdownButtonExampleState extends State { + String selectedItem = cities.keys.first; + + @override + Widget build(BuildContext context) { + return Center( + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Select a city:', style: Theme.of(context).textTheme.bodyLarge), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: DropdownButton( + value: selectedItem, + onChanged: (String? value) { + // This is called when the user selects an item. + setState(() => selectedItem = value!); + }, + selectedItemBuilder: (BuildContext context) { + return cities.values.map((String item) { + // This is the widget that will be shown when you select an item. + // Here custom text style, alignment and layout size can be applied + // to selected item string. + return Container( + alignment: Alignment.centerLeft, + constraints: const BoxConstraints(minWidth: 100), + child: Text( + item, + style: const TextStyle(color: Colors.blue, fontWeight: FontWeight.w600), + ), + ); + }).toList(); + }, + items: cities.keys.map>((String item) { + return DropdownMenuItem( + value: item, + child: Text(item), + ); + }).toList(), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown/dropdown_button.style.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown/dropdown_button.style.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..825e9fc6e30e29eb848b4c7138d8b0fff6119ce9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown/dropdown_button.style.0.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DropdownButton.style]. + +void main() => runApp(const DropdownButtonApp()); + +class DropdownButtonApp extends StatelessWidget { + const DropdownButtonApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('DropdownButton Sample')), + body: const DropdownButtonExample(), + ), + ); + } +} + +class DropdownButtonExample extends StatefulWidget { + const DropdownButtonExample({super.key}); + + @override + State createState() => _DropdownButtonExampleState(); +} + +class _DropdownButtonExampleState extends State { + List options = ['One', 'Two', 'Three', 'Four']; + String dropdownValue = 'One'; + + @override + Widget build(BuildContext context) { + return Container( + alignment: Alignment.center, + color: Colors.blue, + child: DropdownButton( + value: dropdownValue, + onChanged: (String? value) { + // This is called when the user selects an item. + setState(() { + dropdownValue = value!; + }); + }, + style: const TextStyle(color: Colors.blue), + selectedItemBuilder: (BuildContext context) { + // This is the widget that will be shown when you select an item. + // Here custom text style, alignment and layout size can be applied + // to selected item string. + return options.map((String value) { + return Align( + alignment: Alignment.centerLeft, + child: Text( + dropdownValue, + style: const TextStyle(color: Colors.white), + ), + ); + }).toList(); + }, + items: options.map>((String value) { + return DropdownMenuItem( + value: value, + child: Text(value), + ); + }).toList(), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e7b1ea9b3db3d3d692b3db4510837981b5e6a463 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu.0.dart @@ -0,0 +1,152 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +// Flutter code sample for [DropdownMenu]s. The first dropdown menu +// has the default outlined border and demos using the +// [DropdownMenuEntry] style parameter to customize its appearance. +// The second dropdown menu customizes the appearance of the dropdown +// menu's text field with its [InputDecorationTheme] parameter. + +void main() { + runApp(const DropdownMenuExample()); +} + +// DropdownMenuEntry labels and values for the first dropdown menu. +enum ColorLabel { + blue('Blue', Colors.blue), + pink('Pink', Colors.pink), + green('Green', Colors.green), + yellow('Orange', Colors.orange), + grey('Grey', Colors.grey); + + const ColorLabel(this.label, this.color); + final String label; + final Color color; +} + +// DropdownMenuEntry labels and values for the second dropdown menu. +enum IconLabel { + smile('Smile', Icons.sentiment_satisfied_outlined), + cloud( + 'Cloud', + Icons.cloud_outlined, + ), + brush('Brush', Icons.brush_outlined), + heart('Heart', Icons.favorite); + + const IconLabel(this.label, this.icon); + final String label; + final IconData icon; +} + +class DropdownMenuExample extends StatefulWidget { + const DropdownMenuExample({super.key}); + + @override + State createState() => _DropdownMenuExampleState(); +} + +class _DropdownMenuExampleState extends State { + final TextEditingController colorController = TextEditingController(); + final TextEditingController iconController = TextEditingController(); + ColorLabel? selectedColor; + IconLabel? selectedIcon; + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + useMaterial3: true, + colorSchemeSeed: Colors.green, + ), + home: Scaffold( + body: SafeArea( + child: Column( + children: [ + Padding( + padding: const EdgeInsets.symmetric(vertical: 20), + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + DropdownMenu( + initialSelection: ColorLabel.green, + controller: colorController, + // requestFocusOnTap is enabled/disabled by platforms when it is null. + // On mobile platforms, this is false by default. Setting this to true will + // trigger focus request on the text field and virtual keyboard will appear + // afterward. On desktop platforms however, this defaults to true. + requestFocusOnTap: true, + label: const Text('Color'), + onSelected: (ColorLabel? color) { + setState(() { + selectedColor = color; + }); + }, + dropdownMenuEntries: ColorLabel.values.map>( + (ColorLabel color) { + return DropdownMenuEntry( + value: color, + label: color.label, + enabled: color.label != 'Grey', + style: MenuItemButton.styleFrom( + foregroundColor: color.color, + ), + ); + } + ).toList(), + ), + const SizedBox(width: 24), + DropdownMenu( + controller: iconController, + enableFilter: true, + requestFocusOnTap: true, + leadingIcon: const Icon(Icons.search), + label: const Text('Icon'), + inputDecorationTheme: const InputDecorationTheme( + filled: true, + contentPadding: EdgeInsets.symmetric(vertical: 5.0), + ), + onSelected: (IconLabel? icon) { + setState(() { + selectedIcon = icon; + }); + }, + dropdownMenuEntries: IconLabel.values.map>( + (IconLabel icon) { + return DropdownMenuEntry( + value: icon, + label: icon.label, + leadingIcon: Icon(icon.icon), + ); + }, + ).toList(), + ), + ], + ), + ), + if (selectedColor != null && selectedIcon != null) + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('You selected a ${selectedColor?.label} ${selectedIcon?.label}'), + Padding( + padding: const EdgeInsets.symmetric(horizontal: 5), + child: Icon( + selectedIcon?.icon, + color: selectedColor?.color, + ), + ) + ], + ) + else + const Text('Please select a color and an icon.') + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..dbb22177f3d98d781dbe9dbf1bac30ceec63e678 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu.1.dart @@ -0,0 +1,58 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DropdownMenu]. + +const List list = ['One', 'Two', 'Three', 'Four']; + +void main() => runApp(const DropdownMenuApp()); + +class DropdownMenuApp extends StatelessWidget { + const DropdownMenuApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3:true), + home: Scaffold( + appBar: AppBar(title: const Text('DropdownMenu Sample')), + body: const Center( + child: DropdownMenuExample(), + ), + ), + ); + } +} + +class DropdownMenuExample extends StatefulWidget { + const DropdownMenuExample({super.key}); + + @override + State createState() => _DropdownMenuExampleState(); +} + +class _DropdownMenuExampleState extends State { + String dropdownValue = list.first; + + @override + Widget build(BuildContext context) { + return DropdownMenu( + initialSelection: list.first, + onSelected: (String? value) { + // This is called when the user selects an item. + setState(() { + dropdownValue = value!; + }); + }, + dropdownMenuEntries: list.map>((String value) { + return DropdownMenuEntry( + value: value, + label: value + ); + }).toList(), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..4fbe137cb5fe538068899a936c197915bb147e62 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu.2.dart @@ -0,0 +1,169 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DropdownMenu]. + +const List list = ['One', 'Two', 'Three', 'Four']; + +void main() => runApp(const DropdownMenuApp()); + +class DropdownMenuApp extends StatelessWidget { + const DropdownMenuApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('DropdownMenu Sample')), + body: const Center( + child: DropdownMenuExample(), + ), + ), + ); + } +} + +class DropdownMenuExample extends StatefulWidget { + const DropdownMenuExample({super.key}); + + @override + State createState() => _DropdownMenuExampleState(); +} + +class _DropdownMenuExampleState extends State { + String dropdownValue = list.first; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + return ListView( + children: [ + ListTile( + tileColor: colorScheme.primaryContainer, + title: const Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('enabled: true'), + Text('requestFocusOnTap: true'), + ], + ), + subtitle: Column( + children: [ + DropdownMenu( + requestFocusOnTap: true, + initialSelection: list.first, + expandedInsets: EdgeInsets.zero, + onSelected: (String? value) { + setState(() { + dropdownValue = value!; + }); + }, + dropdownMenuEntries: + list.map>((String value) { + return DropdownMenuEntry(value: value, label: value); + }).toList(), + ), + const Text('Text cursor is shown when hovering over the DropdownMenu.'), + ], + ), + ), + const SizedBox(height: 20), + ListTile( + tileColor: colorScheme.primaryContainer, + title: const Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('enabled: true'), + Text('requestFocusOnTap: false'), + ], + ), + subtitle: Column( + children: [ + DropdownMenu( + requestFocusOnTap: false, + initialSelection: list.first, + expandedInsets: EdgeInsets.zero, + onSelected: (String? value) { + setState(() { + dropdownValue = value!; + }); + }, + dropdownMenuEntries: + list.map>((String value) { + return DropdownMenuEntry(value: value, label: value); + }).toList(), + ), + const Text('Clickable cursor is shown when hovering over the DropdownMenu.'), + ], + ), + ), + const SizedBox(height: 20), + ListTile( + tileColor: colorScheme.onInverseSurface, + title: const Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('enabled: false'), + Text('requestFocusOnTap: true'), + ], + ), + subtitle: Column( + children: [ + DropdownMenu( + enabled: false, + requestFocusOnTap: true, + initialSelection: list.first, + expandedInsets: EdgeInsets.zero, + onSelected: (String? value) { + setState(() { + dropdownValue = value!; + }); + }, + dropdownMenuEntries: + list.map>((String value) { + return DropdownMenuEntry(value: value, label: value); + }).toList(), + ), + const Text('Default cursor is shown when hovering over the DropdownMenu.'), + ], + ), + ), + const SizedBox(height: 20), + ListTile( + tileColor: colorScheme.onInverseSurface, + title: const Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('enabled: false'), + Text('requestFocusOnTap: false'), + ], + ), + subtitle: Column( + children: [ + DropdownMenu( + enabled: false, + requestFocusOnTap: false, + initialSelection: list.first, + expandedInsets: EdgeInsets.zero, + onSelected: (String? value) { + setState(() { + dropdownValue = value!; + }); + }, + dropdownMenuEntries: + list.map>((String value) { + return DropdownMenuEntry(value: value, label: value); + }).toList(), + ), + const Text('Default cursor is shown when hovering over the DropdownMenu.'), + ], + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu_entry_label_widget.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu_entry_label_widget.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a4c77c624450311de561cdfa7738e173e5f5c7e4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/dropdown_menu/dropdown_menu_entry_label_widget.0.dart @@ -0,0 +1,91 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for the [DropdownMenuEntry] `labelWidget` property. + +enum ColorItem { + blue('Blue', Colors.blue), + pink('Pink', Colors.pink), + green('Green', Colors.green), + yellow('Yellow', Colors.yellow), + grey('Grey', Colors.grey); + + const ColorItem(this.label, this.color); + final String label; + final Color color; +} + +class DropdownMenuEntryLabelWidgetExample extends StatefulWidget { + const DropdownMenuEntryLabelWidgetExample({ super.key }); + + @override + State createState() => _DropdownMenuEntryLabelWidgetExampleState(); +} + +class _DropdownMenuEntryLabelWidgetExampleState extends State { + late final TextEditingController controller; + + @override + void initState() { + super.initState(); + controller = TextEditingController(); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + // Created by Google Bard from 'create a lyrical phrase of about 25 words that begins with "is a color"'. + const String longText = 'is a color that sings of hope, A hue that shines like gold. It is the color of dreams, A shade that never grows old.'; + + return Scaffold( + body: Center( + child: DropdownMenu( + width: 300, + controller: controller, + initialSelection: ColorItem.green, + label: const Text('Color'), + onSelected: (ColorItem? color) { + print('Selected $color'); + }, + dropdownMenuEntries: ColorItem.values.map>((ColorItem item) { + final String labelText = '${item.label} $longText\n'; + return DropdownMenuEntry( + value: item, + label: labelText, + // Try commenting the labelWidget out or changing + // the labelWidget's Text parameters. + labelWidget: Text( + labelText, + maxLines: 1, + overflow: TextOverflow.ellipsis, + ), + ); + }).toList(), + ), + ), + ); + } +} + +class DropdownMenuEntryLabelWidgetExampleApp extends StatelessWidget { + const DropdownMenuEntryLabelWidgetExampleApp({ super.key }); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: DropdownMenuEntryLabelWidgetExample(), + ); + } +} + +void main() { + runApp(const DropdownMenuEntryLabelWidgetExampleApp()); +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/elevated_button/elevated_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/elevated_button/elevated_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..ece62f42a94ba13c9536a3ab04a8eb192cb703b0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/elevated_button/elevated_button.0.dart @@ -0,0 +1,56 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ElevatedButton]. + +void main() => runApp(const ElevatedButtonExampleApp()); + +class ElevatedButtonExampleApp extends StatelessWidget { + const ElevatedButtonExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ElevatedButton Sample')), + body: const ElevatedButtonExample(), + ), + ); + } +} + +class ElevatedButtonExample extends StatefulWidget { + const ElevatedButtonExample({super.key}); + + @override + State createState() => _ElevatedButtonExampleState(); +} + +class _ElevatedButtonExampleState extends State { + @override + Widget build(BuildContext context) { + final ButtonStyle style = ElevatedButton.styleFrom(textStyle: const TextStyle(fontSize: 20)); + + return Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + ElevatedButton( + style: style, + onPressed: null, + child: const Text('Disabled'), + ), + const SizedBox(height: 30), + ElevatedButton( + style: style, + onPressed: () {}, + child: const Text('Enabled'), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_panel/expansion_panel_list.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_panel/expansion_panel_list.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..6fb02ad07408fadb02448bc17f0b08feb67fd3d1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_panel/expansion_panel_list.0.dart @@ -0,0 +1,94 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ExpansionPanelList]. + +void main() => runApp(const ExpansionPanelListExampleApp()); + +class ExpansionPanelListExampleApp extends StatelessWidget { + const ExpansionPanelListExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ExpansionPanelList Sample')), + body: const ExpansionPanelListExample(), + ), + ); + } +} + +// stores ExpansionPanel state information +class Item { + Item({ + required this.expandedValue, + required this.headerValue, + this.isExpanded = false, + }); + + String expandedValue; + String headerValue; + bool isExpanded; +} + +List generateItems(int numberOfItems) { + return List.generate(numberOfItems, (int index) { + return Item( + headerValue: 'Panel $index', + expandedValue: 'This is item number $index', + ); + }); +} + +class ExpansionPanelListExample extends StatefulWidget { + const ExpansionPanelListExample({super.key}); + + @override + State createState() => _ExpansionPanelListExampleState(); +} + +class _ExpansionPanelListExampleState extends State { + final List _data = generateItems(8); + + @override + Widget build(BuildContext context) { + return SingleChildScrollView( + child: Container( + child: _buildPanel(), + ), + ); + } + + Widget _buildPanel() { + return ExpansionPanelList( + expansionCallback: (int index, bool isExpanded) { + setState(() { + _data[index].isExpanded = isExpanded; + }); + }, + children: _data.map((Item item) { + return ExpansionPanel( + headerBuilder: (BuildContext context, bool isExpanded) { + return ListTile( + title: Text(item.headerValue), + ); + }, + body: ListTile( + title: Text(item.expandedValue), + subtitle: const Text('To delete this panel, tap the trash can icon'), + trailing: const Icon(Icons.delete), + onTap: () { + setState(() { + _data.removeWhere((Item currentItem) => item == currentItem); + }); + }), + isExpanded: item.isExpanded, + ); + }).toList(), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_panel/expansion_panel_list.expansion_panel_list_radio.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_panel/expansion_panel_list.expansion_panel_list_radio.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..db7ec03f4ee866f5a88cebb8afefdbc1dbb6c4d1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_panel/expansion_panel_list.expansion_panel_list_radio.0.dart @@ -0,0 +1,90 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ExpansionPanelList.ExpansionPanelList.radio]. + +void main() => runApp(const ExpansionPanelListRadioExampleApp()); + +class ExpansionPanelListRadioExampleApp extends StatelessWidget { + const ExpansionPanelListRadioExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ExpansionPanelList.radio Sample')), + body: const ExpansionPanelListRadioExample(), + ), + ); + } +} + +// stores ExpansionPanel state information +class Item { + Item({ + required this.id, + required this.expandedValue, + required this.headerValue, + }); + + int id; + String expandedValue; + String headerValue; +} + +List generateItems(int numberOfItems) { + return List.generate(numberOfItems, (int index) { + return Item( + id: index, + headerValue: 'Panel $index', + expandedValue: 'This is item number $index', + ); + }); +} + +class ExpansionPanelListRadioExample extends StatefulWidget { + const ExpansionPanelListRadioExample({super.key}); + + @override + State createState() => _ExpansionPanelListRadioExampleState(); +} + +class _ExpansionPanelListRadioExampleState extends State { + final List _data = generateItems(8); + + @override + Widget build(BuildContext context) { + return SingleChildScrollView( + child: Container( + child: _buildPanel(), + ), + ); + } + + Widget _buildPanel() { + return ExpansionPanelList.radio( + initialOpenPanelValue: 2, + children: _data.map((Item item) { + return ExpansionPanelRadio( + value: item.id, + headerBuilder: (BuildContext context, bool isExpanded) { + return ListTile( + title: Text(item.headerValue), + ); + }, + body: ListTile( + title: Text(item.expandedValue), + subtitle: const Text('To delete this panel, tap the trash can icon'), + trailing: const Icon(Icons.delete), + onTap: () { + setState(() { + _data.removeWhere((Item currentItem) => item == currentItem); + }); + })); + }).toList(), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_tile/expansion_tile.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_tile/expansion_tile.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..384c88912f6265c2a9c9287172da9ac94ef2dc99 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_tile/expansion_tile.0.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ExpansionTile]. + +void main() => runApp(const ExpansionTileApp()); + +class ExpansionTileApp extends StatelessWidget { + const ExpansionTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('ExpansionTile Sample')), + body: const ExpansionTileExample(), + ), + ); + } +} + +class ExpansionTileExample extends StatefulWidget { + const ExpansionTileExample({super.key}); + + @override + State createState() => _ExpansionTileExampleState(); +} + +class _ExpansionTileExampleState extends State { + bool _customTileExpanded = false; + + @override + Widget build(BuildContext context) { + return Column( + children: [ + const ExpansionTile( + title: Text('ExpansionTile 1'), + subtitle: Text('Trailing expansion arrow icon'), + children: [ + ListTile(title: Text('This is tile number 1')), + ], + ), + ExpansionTile( + title: const Text('ExpansionTile 2'), + subtitle: const Text('Custom expansion arrow icon'), + trailing: Icon( + _customTileExpanded ? Icons.arrow_drop_down_circle : Icons.arrow_drop_down, + ), + children: const [ + ListTile(title: Text('This is tile number 2')), + ], + onExpansionChanged: (bool expanded) { + setState(() { + _customTileExpanded = expanded; + }); + }, + ), + const ExpansionTile( + title: Text('ExpansionTile 3'), + subtitle: Text('Leading expansion arrow icon'), + controlAffinity: ListTileControlAffinity.leading, + children: [ + ListTile(title: Text('This is tile number 3')), + ], + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_tile/expansion_tile.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_tile/expansion_tile.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..76799ec9899cd86b7b65934266faf6ab8ed18cf1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_tile/expansion_tile.1.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ExpansionTile] and [ExpansionTileController]. + +void main() { + runApp(const ExpansionTileControllerApp()); +} + +class ExpansionTileControllerApp extends StatefulWidget { + const ExpansionTileControllerApp({super.key}); + + @override + State createState() => _ExpansionTileControllerAppState(); +} + +class _ExpansionTileControllerAppState extends State { + final ExpansionTileController controller = ExpansionTileController(); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('ExpansionTileController Sample')), + body: Column( + children: [ + // A controller has been provided to the ExpansionTile because it's + // going to be accessed from a component that is not within the + // tile's BuildContext. + ExpansionTile( + controller: controller, + title: const Text('ExpansionTile with explicit controller.'), + children: [ + Container( + alignment: Alignment.center, + padding: const EdgeInsets.all(24), + child: const Text('ExpansionTile Contents'), + ), + ], + ), + const SizedBox(height: 8), + ElevatedButton( + child: const Text('Expand/Collapse the Tile Above'), + onPressed: () { + if (controller.isExpanded) { + controller.collapse(); + } else { + controller.expand(); + } + }, + ), + const SizedBox(height: 48), + // A controller has not been provided to the ExpansionTile because + // the automatically created one can be retrieved via the tile's BuildContext. + ExpansionTile( + title: const Text('ExpansionTile with implicit controller.'), + children: [ + Builder( + builder: (BuildContext context) { + return Container( + padding: const EdgeInsets.all(24), + alignment: Alignment.center, + child: ElevatedButton( + child: const Text('Collapse This Tile'), + onPressed: () { + return ExpansionTileController.of(context).collapse(); + }, + ), + ); + }, + ), + ], + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_tile/expansion_tile.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_tile/expansion_tile.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..1d6f6c4e4a579c3fed8ba05d1c57f27890dc82ad --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/expansion_tile/expansion_tile.2.dart @@ -0,0 +1,78 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ExpansionTile] and [AnimationStyle]. + +void main() { + runApp(const ExpansionTileAnimationStyleApp()); +} + +enum AnimationStyles { defaultStyle, custom, none } +const List<(AnimationStyles, String)> animationStyleSegments = <(AnimationStyles, String)>[ + (AnimationStyles.defaultStyle, 'Default'), + (AnimationStyles.custom, 'Custom'), + (AnimationStyles.none, 'None'), +]; + +class ExpansionTileAnimationStyleApp extends StatefulWidget { + const ExpansionTileAnimationStyleApp({super.key}); + + @override + State createState() => _ExpansionTileAnimationStyleAppState(); +} + +class _ExpansionTileAnimationStyleAppState extends State { + Set _animationStyleSelection = {AnimationStyles.defaultStyle}; + AnimationStyle? _animationStyle; + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + body: SafeArea( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SegmentedButton( + selected: _animationStyleSelection, + onSelectionChanged: (Set styles) { + setState(() { + _animationStyleSelection = styles; + switch (styles.first) { + case AnimationStyles.defaultStyle: + _animationStyle = null; + case AnimationStyles.custom: + _animationStyle = AnimationStyle( + curve: Easing.emphasizedAccelerate, + duration: Durations.extralong1, + ); + case AnimationStyles.none: + _animationStyle = AnimationStyle.noAnimation; + } + }); + }, + segments: animationStyleSegments + .map>(((AnimationStyles, String) shirt) { + return ButtonSegment(value: shirt.$1, label: Text(shirt.$2)); + }) + .toList(), + ), + const SizedBox(height: 20), + ExpansionTile( + expansionAnimationStyle: _animationStyle, + title: const Text('ExpansionTile'), + children: const [ + ListTile(title: Text('Expanded Item 1')), + ListTile(title: Text('Expanded Item 2')), + ], + ) + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/filled_button/filled_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/filled_button/filled_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..7b0ca199ea144f37095ab946a0c6e8696641b5f1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/filled_button/filled_button.0.dart @@ -0,0 +1,61 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [FilledButton]. + +void main() { + runApp(const FilledButtonApp()); +} + +class FilledButtonApp extends StatelessWidget { + const FilledButtonApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('FilledButton Sample')), + body: Center( + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Column(children: [ + const SizedBox(height: 30), + const Text('Filled'), + const SizedBox(height: 15), + FilledButton( + onPressed: () {}, + child: const Text('Enabled'), + ), + const SizedBox(height: 30), + const FilledButton( + onPressed: null, + child: Text('Disabled'), + ), + ]), + const SizedBox(width: 30), + Column(children: [ + const SizedBox(height: 30), + const Text('Filled tonal'), + const SizedBox(height: 15), + FilledButton.tonal( + onPressed: () {}, + child: const Text('Enabled'), + ), + const SizedBox(height: 30), + const FilledButton.tonal( + onPressed: null, + child: Text('Disabled'), + ), + ]) + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/filter_chip/filter_chip.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/filter_chip/filter_chip.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..acf72b1db4050dcd0a19a915f04f6d206546c3f0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/filter_chip/filter_chip.0.dart @@ -0,0 +1,77 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [FilterChip]. + +enum ExerciseFilter { walking, running, cycling, hiking } + +void main() => runApp(const ChipApp()); + +class ChipApp extends StatelessWidget { + const ChipApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar( + title: const Text('FilterChip Sample'), + ), + body: const FilterChipExample(), + ), + ); + } +} + +class FilterChipExample extends StatefulWidget { + const FilterChipExample({super.key}); + + @override + State createState() => _FilterChipExampleState(); +} + +class _FilterChipExampleState extends State { + Set filters = {}; + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Choose an exercise', style: textTheme.labelLarge), + const SizedBox(height: 5.0), + Wrap( + spacing: 5.0, + children: ExerciseFilter.values.map((ExerciseFilter exercise) { + return FilterChip( + label: Text(exercise.name), + selected: filters.contains(exercise), + onSelected: (bool selected) { + setState(() { + if (selected) { + filters.add(exercise); + } else { + filters.remove(exercise); + } + }); + }, + ); + }).toList(), + ), + const SizedBox(height: 10.0), + Text( + 'Looking for: ${filters.map((ExerciseFilter e) => e.name).join(', ')}', + style: textTheme.labelLarge, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/flexible_space_bar/flexible_space_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/flexible_space_bar/flexible_space_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..b1649afa0b93bbc0367c28d921f63cad15dcd163 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/flexible_space_bar/flexible_space_bar.0.dart @@ -0,0 +1,79 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [FlexibleSpaceBar]. + +void main() => runApp(const MaterialApp(home: FlexibleSpaceBarExampleApp())); + +class FlexibleSpaceBarExampleApp extends StatelessWidget { + const FlexibleSpaceBarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + body: CustomScrollView( + physics: const BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics()), + slivers: [ + SliverAppBar( + stretch: true, + onStretchTrigger: () { + // Function callback for stretch + return Future.value(); + }, + expandedHeight: 300.0, + flexibleSpace: FlexibleSpaceBar( + stretchModes: const [ + StretchMode.zoomBackground, + StretchMode.blurBackground, + StretchMode.fadeTitle, + ], + centerTitle: true, + title: const Text('Flight Report'), + background: Stack( + fit: StackFit.expand, + children: [ + Image.network( + 'https://flutter.github.io/assets-for-api-docs/assets/widgets/owl-2.jpg', + fit: BoxFit.cover, + ), + const DecoratedBox( + decoration: BoxDecoration( + gradient: LinearGradient( + begin: Alignment(0.0, 0.5), + end: Alignment.center, + colors: [ + Color(0x60000000), + Color(0x00000000), + ], + ), + ), + ), + ], + ), + ), + ), + SliverList( + delegate: SliverChildListDelegate( + const [ + ListTile( + leading: Icon(Icons.wb_sunny), + title: Text('Sunday'), + subtitle: Text('sunny, h: 80, l: 65'), + ), + ListTile( + leading: Icon(Icons.wb_sunny), + title: Text('Monday'), + subtitle: Text('sunny, h: 80, l: 65'), + ), + // ListTiles++ + ], + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button/floating_action_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button/floating_action_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..30a0b3295ffaa093ada5f0156ce00b36d94c8bfc --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button/floating_action_button.0.dart @@ -0,0 +1,62 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [FloatingActionButton]. + +void main() { + runApp(const FloatingActionButtonExampleApp()); +} + +class FloatingActionButtonExampleApp extends StatelessWidget { + const FloatingActionButtonExampleApp({ super.key }); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const FloatingActionButtonExample(), + ); + } +} + +class FloatingActionButtonExample extends StatefulWidget { + const FloatingActionButtonExample({ super.key }); + + @override + State createState() => _FloatingActionButtonExampleState(); +} + +class _FloatingActionButtonExampleState extends State { + // The FAB's foregroundColor, backgroundColor, and shape + static const List<(Color?, Color? background, ShapeBorder?)> customizations = <(Color?, Color?, ShapeBorder?)>[ + (null, null, null), // The FAB uses its default for null parameters. + (null, Colors.green, null), + (Colors.white, Colors.green, null), + (Colors.white, Colors.green, CircleBorder()), + ]; + int index = 0; // Selects the customization. + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('FloatingActionButton Sample'), + ), + body: const Center(child: Text('Press the button below!')), + floatingActionButton: FloatingActionButton( + onPressed: () { + setState(() { + index = (index + 1) % customizations.length; + }); + }, + foregroundColor: customizations[index].$1, + backgroundColor: customizations[index].$2, + shape: customizations[index].$3, + child: const Icon(Icons.navigation), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button/floating_action_button.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button/floating_action_button.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..3aef595986a5fd6e264535461ac0a75fb04192ba --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button/floating_action_button.1.dart @@ -0,0 +1,106 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [FloatingActionButton]. + +void main() => runApp(const FloatingActionButtonExampleApp()); + +class FloatingActionButtonExampleApp extends StatelessWidget { + const FloatingActionButtonExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const FloatingActionButtonExample(), + ); + } +} + +class FloatingActionButtonExample extends StatelessWidget { + const FloatingActionButtonExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('FloatingActionButton Sample'), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('Small'), + const SizedBox(width: 16), + // An example of the small floating action button. + // + // https://m3.material.io/components/floating-action-button/specs#669a1be8-7271-48cb-a74d-dd502d73bda4 + FloatingActionButton.small( + onPressed: () { + // Add your onPressed code here! + }, + child: const Icon(Icons.add), + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('Regular'), + const SizedBox(width: 16), + // An example of the regular floating action button. + // + // https://m3.material.io/components/floating-action-button/specs#71504201-7bd1-423d-8bb7-07e0291743e5 + FloatingActionButton( + onPressed: () { + // Add your onPressed code here! + }, + child: const Icon(Icons.add), + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('Large'), + const SizedBox(width: 16), + // An example of the large floating action button. + // + // https://m3.material.io/components/floating-action-button/specs#9d7d3d6a-bab7-47cb-be32-5596fbd660fe + FloatingActionButton.large( + onPressed: () { + // Add your onPressed code here! + }, + child: const Icon(Icons.add), + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('Extended'), + const SizedBox(width: 16), + // An example of the extended floating action button. + // + // https://m3.material.io/components/extended-fab/specs#686cb8af-87c9-48e8-a3e1-db9da6f6c69b + FloatingActionButton.extended( + onPressed: () { + // Add your onPressed code here! + }, + label: const Text('Add'), + icon: const Icon(Icons.add), + ), + ], + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button/floating_action_button.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button/floating_action_button.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..dda2e9b6db284e1fa5258e2f4c9d06fdbd536165 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button/floating_action_button.2.dart @@ -0,0 +1,104 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [FloatingActionButton]. + +void main() => runApp(const FloatingActionButtonExampleApp()); + +class FloatingActionButtonExampleApp extends StatelessWidget { + const FloatingActionButtonExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const FloatingActionButtonExample(), + ); + } +} + +class FloatingActionButtonExample extends StatelessWidget { + const FloatingActionButtonExample({super.key}); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + + Widget titleBox(String title) { + return DecoratedBox( + decoration: BoxDecoration( + color: colorScheme.inverseSurface, + borderRadius: BorderRadius.circular(4), + ), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), + child: Text(title, style: TextStyle(color: colorScheme.onInverseSurface)), + ), + ); + } + + return Scaffold( + appBar: AppBar( + title: const Text('FAB Additional Color Mappings'), + ), + body: Center( + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + // Surface color mapping. + Column( + mainAxisSize: MainAxisSize.min, + children: [ + FloatingActionButton.large( + foregroundColor: colorScheme.primary, + backgroundColor: colorScheme.surface, + onPressed: () { + // Add your onPressed code here! + }, + child: const Icon(Icons.edit_outlined), + ), + const SizedBox(height: 20), + titleBox('Surface'), + ], + ), + // Secondary color mapping. + Column( + mainAxisSize: MainAxisSize.min, + children: [ + FloatingActionButton.large( + foregroundColor: colorScheme.onSecondaryContainer, + backgroundColor: colorScheme.secondaryContainer, + onPressed: () { + // Add your onPressed code here! + }, + child: const Icon(Icons.edit_outlined), + ), + const SizedBox(height: 20), + titleBox('Secondary'), + ], + ), + // Tertiary color mapping. + Column( + mainAxisSize: MainAxisSize.min, + children: [ + FloatingActionButton.large( + foregroundColor: colorScheme.onTertiaryContainer, + backgroundColor: colorScheme.tertiaryContainer, + onPressed: () { + // Add your onPressed code here! + }, + child: const Icon(Icons.edit_outlined), + ), + const SizedBox(height: 20), + titleBox('Tertiary'), + ], + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button_location/standard_fab_location.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button_location/standard_fab_location.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..ce77bf7a5f34dd6b51ea6595a9a6b1c28b9b269c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/floating_action_button_location/standard_fab_location.0.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [StandardFabLocation]. + +void main() => runApp(const StandardFabLocationExampleApp()); + +class StandardFabLocationExampleApp extends StatelessWidget { + const StandardFabLocationExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: StandardFabLocationExample(), + ); + } +} + +class AlmostEndFloatFabLocation extends StandardFabLocation with FabEndOffsetX, FabFloatOffsetY { + @override + double getOffsetX(ScaffoldPrelayoutGeometry scaffoldGeometry, double adjustment) { + final double directionalAdjustment = scaffoldGeometry.textDirection == TextDirection.ltr ? -50.0 : 50.0; + return super.getOffsetX(scaffoldGeometry, adjustment) + directionalAdjustment; + } +} + +class StandardFabLocationExample extends StatelessWidget { + const StandardFabLocationExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Home page'), + ), + floatingActionButton: FloatingActionButton( + onPressed: () { + debugPrint('FAB pressed.'); + }, + tooltip: 'Increment', + child: const Icon(Icons.add), + ), + floatingActionButtonLocation: AlmostEndFloatFabLocation(), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..309d4ce475a797b3e77b91609d70f76e4b92f673 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.0.dart @@ -0,0 +1,55 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [IconButton]. + +void main() => runApp(const IconButtonExampleApp()); + +class IconButtonExampleApp extends StatelessWidget { + const IconButtonExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('IconButton Sample')), + body: const Center( + child: IconButtonExample(), + ), + ), + ); + } +} + +double _volume = 0.0; + +class IconButtonExample extends StatefulWidget { + const IconButtonExample({super.key}); + + @override + State createState() => _IconButtonExampleState(); +} + +class _IconButtonExampleState extends State { + @override + Widget build(BuildContext context) { + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + IconButton( + icon: const Icon(Icons.volume_up), + tooltip: 'Increase volume by 10', + onPressed: () { + setState(() { + _volume += 10; + }); + }, + ), + Text('Volume : $_volume'), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..2bc28d1acf89c888f9454f5ae106194f29c9aece --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.1.dart @@ -0,0 +1,48 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [IconButton]. + +void main() => runApp(const IconButtonExampleApp()); + +class IconButtonExampleApp extends StatelessWidget { + const IconButtonExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('IconButton Sample')), + body: const IconButtonExample(), + ), + ); + } +} + +class IconButtonExample extends StatelessWidget { + const IconButtonExample({super.key}); + + @override + @override + Widget build(BuildContext context) { + return Material( + color: Colors.white, + child: Center( + child: Ink( + decoration: const ShapeDecoration( + color: Colors.lightBlue, + shape: CircleBorder(), + ), + child: IconButton( + icon: const Icon(Icons.android), + color: Colors.white, + onPressed: () {}, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..e057781c2ddb9e37f0b91ffab296ec2d43717451 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.2.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [IconButton]. + +void main() { + runApp(const IconButtonApp()); +} + +class IconButtonApp extends StatelessWidget { + const IconButtonApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + title: 'Icon Button Types', + home: const Scaffold( + body: ButtonTypesExample(), + ), + ); + } +} + +class ButtonTypesExample extends StatelessWidget { + const ButtonTypesExample({super.key}); + + @override + Widget build(BuildContext context) { + return const Padding( + padding: EdgeInsets.all(4.0), + child: Row( + children: [ + Spacer(), + ButtonTypesGroup(enabled: true), + ButtonTypesGroup(enabled: false), + Spacer(), + ], + ), + ); + } +} + +class ButtonTypesGroup extends StatelessWidget { + const ButtonTypesGroup({super.key, required this.enabled}); + + final bool enabled; + + @override + Widget build(BuildContext context) { + final VoidCallback? onPressed = enabled ? () {} : null; + + return Padding( + padding: const EdgeInsets.all(4.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + IconButton(icon: const Icon(Icons.filter_drama), onPressed: onPressed), + + // Filled icon button + IconButton.filled(onPressed: onPressed, icon: const Icon(Icons.filter_drama)), + + // Filled tonal icon button + IconButton.filledTonal(onPressed: onPressed, icon: const Icon(Icons.filter_drama)), + + // Outlined icon button + IconButton.outlined(onPressed: onPressed, icon: const Icon(Icons.filter_drama)), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..00ff53fa66433d28872ce3ec801a0584611ea39f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/icon_button/icon_button.3.dart @@ -0,0 +1,140 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [IconButton] with toggle feature. + +void main() { + runApp(const IconButtonToggleApp()); +} + +class IconButtonToggleApp extends StatelessWidget { + const IconButtonToggleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + colorSchemeSeed: const Color(0xff6750a4), + useMaterial3: true, + ), + title: 'Icon Button Types', + home: const Scaffold( + body: DemoIconToggleButtons(), + ), + ); + } +} + +class DemoIconToggleButtons extends StatefulWidget { + const DemoIconToggleButtons({super.key}); + + @override + State createState() => _DemoIconToggleButtonsState(); +} + +class _DemoIconToggleButtonsState extends State { + bool standardSelected = false; + bool filledSelected = false; + bool tonalSelected = false; + bool outlinedSelected = false; + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + IconButton( + isSelected: standardSelected, + icon: const Icon(Icons.settings_outlined), + selectedIcon: const Icon(Icons.settings), + onPressed: () { + setState(() { + standardSelected = !standardSelected; + }); + }, + ), + const SizedBox(width: 10), + IconButton( + isSelected: standardSelected, + icon: const Icon(Icons.settings_outlined), + selectedIcon: const Icon(Icons.settings), + onPressed: null, + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + IconButton.filled( + isSelected: filledSelected, + icon: const Icon(Icons.settings_outlined), + selectedIcon: const Icon(Icons.settings), + onPressed: () { + setState(() { + filledSelected = !filledSelected; + }); + }, + ), + const SizedBox(width: 10), + IconButton.filled( + isSelected: filledSelected, + icon: const Icon(Icons.settings_outlined), + selectedIcon: const Icon(Icons.settings), + onPressed: null, + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + IconButton.filledTonal( + isSelected: tonalSelected, + icon: const Icon(Icons.settings_outlined), + selectedIcon: const Icon(Icons.settings), + onPressed: () { + setState(() { + tonalSelected = !tonalSelected; + }); + }, + ), + const SizedBox(width: 10), + IconButton.filledTonal( + isSelected: tonalSelected, + icon: const Icon(Icons.settings_outlined), + selectedIcon: const Icon(Icons.settings), + onPressed: null, + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + IconButton.outlined( + isSelected: outlinedSelected, + icon: const Icon(Icons.settings_outlined), + selectedIcon: const Icon(Icons.settings), + onPressed: () { + setState(() { + outlinedSelected = !outlinedSelected; + }); + }, + ), + const SizedBox(width: 10), + IconButton.outlined( + isSelected: outlinedSelected, + icon: const Icon(Icons.settings_outlined), + selectedIcon: const Icon(Icons.settings), + onPressed: null, + ), + ], + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/ink/ink.image_clip.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/ink/ink.image_clip.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..c4a58d959d28a1f6a1bb117a0a5c7237edaef7e4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/ink/ink.image_clip.0.dart @@ -0,0 +1,56 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Image.frameBuilder]. + +void main() { + runApp( + MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Image.frameBuilder Sample')), + body: const Center( + child: ImageClipExample( + image: NetworkImage('https://flutter.github.io/assets-for-api-docs/assets/widgets/puffin.jpg'), + ), + ), + ), + ), + ); +} + +class ImageClipExample extends StatelessWidget { + const ImageClipExample({super.key, required this.image}); + + final ImageProvider image; + + @override + Widget build(BuildContext context) { + return ClipRRect( + borderRadius: BorderRadius.circular(100), + child: Ink.image( + fit: BoxFit.fill, + width: 300, + height: 300, + image: image, + child: InkWell( + onTap: () {/* ... */}, + child: const Align( + child: Padding( + padding: EdgeInsets.all(10.0), + child: Text( + 'PUFFIN', + style: TextStyle( + fontWeight: FontWeight.w900, + color: Colors.white, + ), + ), + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/ink/ink.image_clip.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/ink/ink.image_clip.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..aa981ebb54d0dafac786bdbf2d80b9bfc3586e1a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/ink/ink.image_clip.1.dart @@ -0,0 +1,56 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Image.frameBuilder]. + +void main() { + runApp(MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Image.frameBuilder Sample')), + body: const Center( + child: ImageClipExample( + image: NetworkImage('https://flutter.github.io/assets-for-api-docs/assets/widgets/puffin.jpg'), + ), + ), + ), + )); +} + +class ImageClipExample extends StatelessWidget { + const ImageClipExample({super.key, required this.image}); + + final ImageProvider image; + + @override + Widget build(BuildContext context) { + return ClipRRect( + borderRadius: BorderRadius.circular(100), + child: Material( + child: Ink.image( + fit: BoxFit.fill, + width: 300, + height: 300, + image: image, + child: InkWell( + onTap: () {/* ... */}, + child: const Align( + child: Padding( + padding: EdgeInsets.all(10.0), + child: Text( + 'PUFFIN', + style: TextStyle( + fontWeight: FontWeight.w900, + color: Colors.white, + ), + ), + ), + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/ink_well/ink_well.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/ink_well/ink_well.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..723bfd1ed096e2e9070ff9dc7f2d65f9f0cac7ae --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/ink_well/ink_well.0.dart @@ -0,0 +1,56 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InkWell]. + +void main() => runApp(const InkWellExampleApp()); + +class InkWellExampleApp extends StatelessWidget { + const InkWellExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('InkWell Sample')), + body: const Center( + child: InkWellExample(), + ), + ), + ); + } +} + +class InkWellExample extends StatefulWidget { + const InkWellExample({super.key}); + + @override + State createState() => _InkWellExampleState(); +} + +class _InkWellExampleState extends State { + double sideLength = 50; + + @override + Widget build(BuildContext context) { + return AnimatedContainer( + height: sideLength, + width: sideLength, + duration: const Duration(seconds: 2), + curve: Curves.easeIn, + child: Material( + color: Colors.yellow, + child: InkWell( + onTap: () { + setState(() { + sideLength == 50 ? sideLength = 100 : sideLength = 50; + }); + }, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_chip/input_chip.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_chip/input_chip.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..8ac57d63301410df656c0c90dc4f92aef4c1e0d2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_chip/input_chip.0.dart @@ -0,0 +1,86 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Flutter code sample InputChip. + +import 'package:flutter/material.dart'; + +void main() => runApp(const ChipApp()); + +class ChipApp extends StatelessWidget { + const ChipApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + home: const InputChipExample(), + ); + } +} + +class InputChipExample extends StatefulWidget { + const InputChipExample({super.key}); + + @override + State createState() => _InputChipExampleState(); +} + +class _InputChipExampleState extends State { + int inputs = 3; + int? selectedIndex; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('InputChip Sample'), + ), + body: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Wrap( + alignment: WrapAlignment.center, + spacing: 5.0, + children: List.generate( + inputs, + (int index) { + return InputChip( + label: Text('Person ${index + 1}'), + selected: selectedIndex == index, + onSelected: (bool selected) { + setState(() { + if (selectedIndex == index) { + selectedIndex = null; + } else { + selectedIndex = index; + } + }); + }, + onDeleted: () { + setState(() { + inputs = inputs - 1; + }); + }, + ); + }, + ).toList(), + ), + const SizedBox(height: 10), + ElevatedButton( + onPressed: () { + setState(() { + inputs = 3; + }); + }, + child: const Text('Reset'), + ) + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_chip/input_chip.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_chip/input_chip.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..c503e6ce7e0fa484e4333ed38b17d98ff601e2b7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_chip/input_chip.1.dart @@ -0,0 +1,369 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter/material.dart'; + +const List _pizzaToppings = [ + 'Olives', + 'Tomato', + 'Cheese', + 'Pepperoni', + 'Bacon', + 'Onion', + 'Jalapeno', + 'Mushrooms', + 'Pineapple', +]; + +void main() => runApp(const EditableChipFieldApp()); + +class EditableChipFieldApp extends StatelessWidget { + const EditableChipFieldApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const EditableChipFieldExample(), + ); + } +} + +class EditableChipFieldExample extends StatefulWidget { + const EditableChipFieldExample({super.key}); + + @override + EditableChipFieldExampleState createState() { + return EditableChipFieldExampleState(); + } +} + +class EditableChipFieldExampleState extends State { + final FocusNode _chipFocusNode = FocusNode(); + List _toppings = [_pizzaToppings.first]; + List _suggestions = []; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Editable Chip Field Sample'), + ), + body: Column( + children: [ + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: ChipsInput( + values: _toppings, + decoration: const InputDecoration( + prefixIcon: Icon(Icons.local_pizza_rounded), + hintText: 'Search for toppings', + ), + strutStyle: const StrutStyle(fontSize: 15), + onChanged: _onChanged, + onSubmitted: _onSubmitted, + chipBuilder: _chipBuilder, + onTextChanged: _onSearchChanged, + ), + ), + if (_suggestions.isNotEmpty) + Expanded( + child: ListView.builder( + itemCount: _suggestions.length, + itemBuilder: (BuildContext context, int index) { + return ToppingSuggestion( + _suggestions[index], + onTap: _selectSuggestion, + ); + }, + ), + ), + ], + ), + ); + } + + Future _onSearchChanged(String value) async { + final List results = await _suggestionCallback(value); + setState(() { + _suggestions = results + .where((String topping) => !_toppings.contains(topping)) + .toList(); + }); + } + + Widget _chipBuilder(BuildContext context, String topping) { + return ToppingInputChip( + topping: topping, + onDeleted: _onChipDeleted, + onSelected: _onChipTapped, + ); + } + + void _selectSuggestion(String topping) { + setState(() { + _toppings.add(topping); + _suggestions = []; + }); + } + + void _onChipTapped(String topping) {} + + void _onChipDeleted(String topping) { + setState(() { + _toppings.remove(topping); + _suggestions = []; + }); + } + + void _onSubmitted(String text) { + if (text.trim().isNotEmpty) { + setState(() { + _toppings = [..._toppings, text.trim()]; + }); + } else { + _chipFocusNode.unfocus(); + setState(() { + _toppings = []; + }); + } + } + + void _onChanged(List data) { + setState(() { + _toppings = data; + }); + } + + FutureOr> _suggestionCallback(String text) { + if (text.isNotEmpty) { + return _pizzaToppings.where((String topping) { + return topping.toLowerCase().contains(text.toLowerCase()); + }).toList(); + } + return const []; + } +} + +class ChipsInput extends StatefulWidget { + const ChipsInput({ + super.key, + required this.values, + this.decoration = const InputDecoration(), + this.style, + this.strutStyle, + required this.chipBuilder, + required this.onChanged, + this.onChipTapped, + this.onSubmitted, + this.onTextChanged, + }); + + final List values; + final InputDecoration decoration; + final TextStyle? style; + final StrutStyle? strutStyle; + + final ValueChanged> onChanged; + final ValueChanged? onChipTapped; + final ValueChanged? onSubmitted; + final ValueChanged? onTextChanged; + + final Widget Function(BuildContext context, T data) chipBuilder; + + @override + ChipsInputState createState() => ChipsInputState(); +} + +class ChipsInputState extends State> { + @visibleForTesting + late final ChipsInputEditingController controller; + + String _previousText = ''; + TextSelection? _previousSelection; + + @override + void initState() { + super.initState(); + + controller = ChipsInputEditingController( + [...widget.values], + widget.chipBuilder, + ); + controller.addListener(_textListener); + } + + @override + void dispose() { + controller.removeListener(_textListener); + controller.dispose(); + + super.dispose(); + } + + void _textListener() { + final String currentText = controller.text; + + if (_previousSelection != null) { + final int currentNumber = countReplacements(currentText); + final int previousNumber = countReplacements(_previousText); + + final int cursorEnd = _previousSelection!.extentOffset; + final int cursorStart = _previousSelection!.baseOffset; + + final List values = [...widget.values]; + + // If the current number and the previous number of replacements are different, then + // the user has deleted the InputChip using the keyboard. In this case, we trigger + // the onChanged callback. We need to be sure also that the current number of + // replacements is different from the input chip to avoid double-deletion. + if (currentNumber < previousNumber && currentNumber != values.length) { + if (cursorStart == cursorEnd) { + values.removeRange(cursorStart - 1, cursorEnd); + } else { + if (cursorStart > cursorEnd) { + values.removeRange(cursorEnd, cursorStart); + } else { + values.removeRange(cursorStart, cursorEnd); + } + } + widget.onChanged(values); + } + } + + _previousText = currentText; + _previousSelection = controller.selection; + } + + static int countReplacements(String text) { + return text.codeUnits + .where((int u) => u == ChipsInputEditingController.kObjectReplacementChar) + .length; + } + + @override + Widget build(BuildContext context) { + controller.updateValues([...widget.values]); + + return TextField( + minLines: 1, + maxLines: 3, + textInputAction: TextInputAction.done, + style: widget.style, + strutStyle: widget.strutStyle, + controller: controller, + onChanged: (String value) => + widget.onTextChanged?.call(controller.textWithoutReplacements), + onSubmitted: (String value) => + widget.onSubmitted?.call(controller.textWithoutReplacements), + ); + } +} + +class ChipsInputEditingController extends TextEditingController { + ChipsInputEditingController(this.values, this.chipBuilder) + : super( + text: String.fromCharCode(kObjectReplacementChar) * values.length, + ); + + // This constant character acts as a placeholder in the TextField text value. + // There will be one character for each of the InputChip displayed. + static const int kObjectReplacementChar = 0xFFFE; + + List values; + + final Widget Function(BuildContext context, T data) chipBuilder; + + /// Called whenever chip is either added or removed + /// from the outside the context of the text field. + void updateValues(List values) { + if (values.length != this.values.length) { + final String char = String.fromCharCode(kObjectReplacementChar); + final int length = values.length; + value = TextEditingValue( + text: char * length, + selection: TextSelection.collapsed(offset: length), + ); + this.values = values; + } + } + + String get textWithoutReplacements { + final String char = String.fromCharCode(kObjectReplacementChar); + return text.replaceAll(RegExp(char), ''); + } + + String get textWithReplacements => text; + + @override + TextSpan buildTextSpan( + {required BuildContext context, TextStyle? style, required bool withComposing}) { + + final Iterable chipWidgets = + values.map((T v) => WidgetSpan(child: chipBuilder(context, v))); + + return TextSpan( + style: style, + children: [ + ...chipWidgets, + if (textWithoutReplacements.isNotEmpty) + TextSpan(text: textWithoutReplacements) + ], + ); + } +} + +class ToppingSuggestion extends StatelessWidget { + const ToppingSuggestion(this.topping, {super.key, this.onTap}); + + final String topping; + final ValueChanged? onTap; + + @override + Widget build(BuildContext context) { + return ListTile( + key: ObjectKey(topping), + leading: CircleAvatar( + child: Text( + topping[0].toUpperCase(), + ), + ), + title: Text(topping), + onTap: () => onTap?.call(topping), + ); + } +} + +class ToppingInputChip extends StatelessWidget { + const ToppingInputChip({ + super.key, + required this.topping, + required this.onDeleted, + required this.onSelected, + }); + + final String topping; + final ValueChanged onDeleted; + final ValueChanged onSelected; + + @override + Widget build(BuildContext context) { + return Container( + margin: const EdgeInsets.only(right: 3), + child: InputChip( + key: ObjectKey(topping), + label: Text(topping), + avatar: CircleAvatar( + child: Text(topping[0].toUpperCase()), + ), + onDeleted: () => onDeleted(topping), + onSelected: (bool value) => onSelected(topping), + materialTapTargetSize: MaterialTapTargetSize.shrinkWrap, + padding: const EdgeInsets.all(2), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..40c0f1f3bd3523d3e7a92a0b7462f82efb0ce3e7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.0.dart @@ -0,0 +1,41 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration]. + +void main() => runApp(const InputDecorationExampleApp()); + +class InputDecorationExampleApp extends StatelessWidget { + const InputDecorationExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration Sample')), + body: const InputDecorationExample(), + ), + ); + } +} + +class InputDecorationExample extends StatelessWidget { + const InputDecorationExample({super.key}); + + @override + Widget build(BuildContext context) { + return const TextField( + decoration: InputDecoration( + icon: Icon(Icons.send), + hintText: 'Hint Text', + helperText: 'Helper Text', + counterText: '0 characters', + border: OutlineInputBorder(), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..afcfdc39e73ed5d98036b71d5f7355f86a6ad617 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.1.dart @@ -0,0 +1,38 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration]. + +void main() => runApp(const InputDecorationExampleApp()); + +class InputDecorationExampleApp extends StatelessWidget { + const InputDecorationExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration Sample')), + body: const InputDecorationExample(), + ), + ); + } +} + +class InputDecorationExample extends StatelessWidget { + const InputDecorationExample({super.key}); + + @override + Widget build(BuildContext context) { + return const TextField( + decoration: InputDecoration.collapsed( + hintText: 'Hint Text', + border: OutlineInputBorder(), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..07d1275a76c4901e0473a9b19e55c8f2f9741621 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.2.dart @@ -0,0 +1,39 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration]. + +void main() => runApp(const InputDecorationExampleApp()); + +class InputDecorationExampleApp extends StatelessWidget { + const InputDecorationExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration Sample')), + body: const InputDecorationExample(), + ), + ); + } +} + +class InputDecorationExample extends StatelessWidget { + const InputDecorationExample({super.key}); + + @override + Widget build(BuildContext context) { + return const TextField( + decoration: InputDecoration( + hintText: 'Hint Text', + errorText: 'Error Text', + border: OutlineInputBorder(), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..09b8e8f5c715613429c40b1144f41471744a9998 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.3.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration]. + +void main() => runApp(const InputDecorationExampleApp()); + +class InputDecorationExampleApp extends StatelessWidget { + const InputDecorationExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration Sample')), + body: const InputDecorationExample(), + ), + ); + } +} + +class InputDecorationExample extends StatelessWidget { + const InputDecorationExample({super.key}); + + @override + Widget build(BuildContext context) { + return TextFormField( + initialValue: 'abc', + decoration: const InputDecoration( + prefix: Text('Prefix'), + suffix: Text('Suffix'), + border: OutlineInputBorder(), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.floating_label_style_error.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.floating_label_style_error.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..dab7208a6cc5abd4371f295ac120825d12a9527f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.floating_label_style_error.0.dart @@ -0,0 +1,57 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecorator]. + +void main() => runApp(const FloatingLabelStyleErrorExampleApp()); + +class FloatingLabelStyleErrorExampleApp extends StatelessWidget { + const FloatingLabelStyleErrorExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecorator Sample')), + body: const Center( + child: InputDecoratorExample(), + ), + ), + ); + } +} + +class InputDecoratorExample extends StatelessWidget { + const InputDecoratorExample({super.key}); + + @override + Widget build(BuildContext context) { + return TextFormField( + decoration: InputDecoration( + border: const OutlineInputBorder(), + labelText: 'Name', + // The MaterialStateProperty's value is a text style that is orange + // by default, but the theme's error color if the input decorator + // is in its error state. + floatingLabelStyle: MaterialStateTextStyle.resolveWith( + (Set states) { + final Color color = + states.contains(MaterialState.error) ? Theme.of(context).colorScheme.error : Colors.orange; + return TextStyle(color: color, letterSpacing: 1.3); + }, + ), + ), + validator: (String? value) { + if (value == null || value == '') { + return 'Enter name'; + } + return null; + }, + autovalidateMode: AutovalidateMode.always, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.helper.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.helper.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..f3ca0c6d445c66ae6fa8bf6a304b17ca315691f2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.helper.0.dart @@ -0,0 +1,56 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration.helper]. + +void main() => runApp(const HelperExampleApp()); + +class HelperExampleApp extends StatelessWidget { + const HelperExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration.helper Sample')), + body: const HelperExample(), + ), + ); + } +} + +class HelperExample extends StatelessWidget { + const HelperExample({super.key}); + + @override + Widget build(BuildContext context) { + return const Center( + child: TextField( + decoration: InputDecoration( + helper: Text.rich( + TextSpan( + children: [ + WidgetSpan( + child: Text( + 'Helper Text ', + ), + ), + WidgetSpan( + child: Icon( + Icons.help_outline, + color: Colors.blue, + size: 20.0, + ), + ), + ], + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.label.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.label.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..3bec377d2da426bc6f43c53b5ee583db77185f12 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.label.0.dart @@ -0,0 +1,55 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration.label]. + +void main() => runApp(const LabelExampleApp()); + +class LabelExampleApp extends StatelessWidget { + const LabelExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration.label Sample')), + body: const LabelExample(), + ), + ); + } +} + +class LabelExample extends StatelessWidget { + const LabelExample({super.key}); + + @override + Widget build(BuildContext context) { + return const Center( + child: TextField( + decoration: InputDecoration( + label: Text.rich( + TextSpan( + children: [ + WidgetSpan( + child: Text( + 'Username', + ), + ), + WidgetSpan( + child: Text( + '*', + style: TextStyle(color: Colors.red), + ), + ), + ], + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.label_style_error.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.label_style_error.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..186395015ad3c943b740401e72df1d0b0f411521 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.label_style_error.0.dart @@ -0,0 +1,57 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecorator]. + +void main() => runApp(const LabelStyleErrorExampleApp()); + +class LabelStyleErrorExampleApp extends StatelessWidget { + const LabelStyleErrorExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecorator Sample')), + body: const Center( + child: InputDecoratorExample(), + ), + ), + ); + } +} + +class InputDecoratorExample extends StatelessWidget { + const InputDecoratorExample({super.key}); + + @override + Widget build(BuildContext context) { + return TextFormField( + decoration: InputDecoration( + border: const OutlineInputBorder(), + labelText: 'Name', + // The MaterialStateProperty's value is a text style that is orange + // by default, but the theme's error color if the input decorator + // is in its error state. + labelStyle: MaterialStateTextStyle.resolveWith( + (Set states) { + final Color color = + states.contains(MaterialState.error) ? Theme.of(context).colorScheme.error : Colors.orange; + return TextStyle(color: color, letterSpacing: 1.3); + }, + ), + ), + validator: (String? value) { + if (value == null || value == '') { + return 'Enter name'; + } + return null; + }, + autovalidateMode: AutovalidateMode.always, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.material_state.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.material_state.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a361606fc16113f5e85f965f4d031e759e607372 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.material_state.0.dart @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration]. + +void main() => runApp(const MaterialStateExampleApp()); + +class MaterialStateExampleApp extends StatelessWidget { + const MaterialStateExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration Sample')), + body: const MaterialStateExample(), + ), + ); + } +} + +class MaterialStateExample extends StatelessWidget { + const MaterialStateExample({super.key}); + + @override + Widget build(BuildContext context) { + return TextFormField( + initialValue: 'abc', + decoration: InputDecoration( + prefixIcon: const Icon(Icons.person), + prefixIconColor: MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.focused)) { + return Colors.green; + } + if (states.contains(MaterialState.error)) { + return Colors.red; + } + return Colors.grey; + }), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.material_state.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.material_state.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..69a478cf3187b15d2ee1285816628436f1dfc4a6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.material_state.1.dart @@ -0,0 +1,56 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration]. + +void main() => runApp(const MaterialStateExampleApp()); + +class MaterialStateExampleApp extends StatelessWidget { + const MaterialStateExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration Sample')), + body: const MaterialStateExample(), + ), + ); + } +} + +class MaterialStateExample extends StatelessWidget { + const MaterialStateExample({super.key}); + + @override + Widget build(BuildContext context) { + final ThemeData themeData = Theme.of(context); + return Theme( + data: themeData.copyWith( + inputDecorationTheme: themeData.inputDecorationTheme.copyWith( + prefixIconColor: MaterialStateColor.resolveWith( + (Set states) { + if (states.contains(MaterialState.focused)) { + return Colors.green; + } + if (states.contains(MaterialState.error)) { + return Colors.red; + } + return Colors.grey; + }, + ), + ), + ), + child: TextFormField( + initialValue: 'abc', + decoration: const InputDecoration( + prefixIcon: Icon(Icons.person), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.prefix_icon.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.prefix_icon.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..cf11e9cfe81a3260afe1969b0f4dc7b75758e7dd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.prefix_icon.0.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecorator]. + +void main() => runApp(const PrefixIconExampleApp()); + +class PrefixIconExampleApp extends StatelessWidget { + const PrefixIconExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const Scaffold(body: InputDecoratorExample()), + ); + } +} + +class InputDecoratorExample extends StatelessWidget { + const InputDecoratorExample({super.key}); + + @override + Widget build(BuildContext context) { + return const TextField( + decoration: InputDecoration( + border: OutlineInputBorder(), + labelText: 'Enter name', + prefixIcon: Align( + widthFactor: 1.0, + heightFactor: 1.0, + child: Icon( + Icons.person, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.prefix_icon_constraints.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.prefix_icon_constraints.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..ccc0eb3b07f1295cc5ac126ee2a9b4d62f058225 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.prefix_icon_constraints.0.dart @@ -0,0 +1,58 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration.prefixIconConstraints]. + +void main() => runApp(const PrefixIconConstraintsExampleApp()); + +class PrefixIconConstraintsExampleApp extends StatelessWidget { + const PrefixIconConstraintsExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration Sample')), + body: const PrefixIconConstraintsExample(), + ), + ); + } +} + +class PrefixIconConstraintsExample extends StatelessWidget { + const PrefixIconConstraintsExample({super.key}); + + @override + Widget build(BuildContext context) { + return const Padding( + padding: EdgeInsets.symmetric(horizontal: 8.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + TextField( + decoration: InputDecoration( + hintText: 'Normal Icon Constraints', + prefixIcon: Icon(Icons.search), + ), + ), + SizedBox(height: 10), + TextField( + decoration: InputDecoration( + isDense: true, + hintText: 'Smaller Icon Constraints', + prefixIcon: Icon(Icons.search), + prefixIconConstraints: BoxConstraints( + minHeight: 32, + minWidth: 32, + ), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.suffix_icon.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.suffix_icon.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a3869ada885b3b17e90018e35bf5bcde7ee1547f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.suffix_icon.0.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecorator]. + +void main() => runApp(const SuffixIconExampleApp()); + +class SuffixIconExampleApp extends StatelessWidget { + const SuffixIconExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const Scaffold(body: InputDecoratorExample()), + ); + } +} + +class InputDecoratorExample extends StatelessWidget { + const InputDecoratorExample({super.key}); + + @override + Widget build(BuildContext context) { + return const TextField( + decoration: InputDecoration( + border: OutlineInputBorder(), + labelText: 'Enter password', + suffixIcon: Align( + widthFactor: 1.0, + heightFactor: 1.0, + child: Icon( + Icons.remove_red_eye, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.suffix_icon_constraints.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.suffix_icon_constraints.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..1395bbb1e1dd84e8b7851556a9a5824c0b274f08 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.suffix_icon_constraints.0.dart @@ -0,0 +1,58 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration.suffixIconConstraints]. + +void main() => runApp(const SuffixIconConstraintsExampleApp()); + +class SuffixIconConstraintsExampleApp extends StatelessWidget { + const SuffixIconConstraintsExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration Sample')), + body: const SuffixIconConstraintsExample(), + ), + ); + } +} + +class SuffixIconConstraintsExample extends StatelessWidget { + const SuffixIconConstraintsExample({super.key}); + + @override + Widget build(BuildContext context) { + return const Padding( + padding: EdgeInsets.symmetric(horizontal: 8.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + TextField( + decoration: InputDecoration( + hintText: 'Normal Icon Constraints', + suffixIcon: Icon(Icons.search), + ), + ), + SizedBox(height: 10), + TextField( + decoration: InputDecoration( + isDense: true, + hintText: 'Smaller Icon Constraints', + suffixIcon: Icon(Icons.search), + suffixIconConstraints: BoxConstraints( + minHeight: 32, + minWidth: 32, + ), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.widget_state.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.widget_state.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..c20700dd0ca38fff5f4af4f406cc8db7efafd180 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.widget_state.0.dart @@ -0,0 +1,44 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration]. + +void main() => runApp(const MaterialStateExampleApp()); + +class MaterialStateExampleApp extends StatelessWidget { + const MaterialStateExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration Sample')), + body: const MaterialStateExample(), + ), + ); + } +} + +class MaterialStateExample extends StatelessWidget { + const MaterialStateExample({super.key}); + + @override + Widget build(BuildContext context) { + return TextFormField( + initialValue: 'abc', + decoration: InputDecoration( + prefixIcon: const Icon(Icons.person), + prefixIconColor: WidgetStateColor.resolveWith((Set states) { + if (states.contains(WidgetState.focused)) { + return Colors.green; + } + return Colors.grey; + }), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.widget_state.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.widget_state.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..06401d60ec261a043548f9b31b3e03c28c33a84b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/input_decorator/input_decoration.widget_state.1.dart @@ -0,0 +1,63 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [InputDecoration]. + +void main() => runApp(const MaterialStateExampleApp()); + +class MaterialStateExampleApp extends StatelessWidget { + const MaterialStateExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('InputDecoration Sample')), + body: const MaterialStateExample(), + ), + ); + } +} + +class MaterialStateExample extends StatelessWidget { + const MaterialStateExample({super.key}); + + @override + Widget build(BuildContext context) { + final ThemeData themeData = Theme.of(context); + return Theme( + data: themeData.copyWith( + inputDecorationTheme: themeData.inputDecorationTheme.copyWith( + prefixIconColor: WidgetStateColor.resolveWith( + (Set states) { + if (states.contains(WidgetState.error)) { + return Colors.red; + } + if (states.contains(WidgetState.focused)) { + return Colors.blue; + } + return Colors.grey; + }, + ), + ), + ), + child: TextFormField( + initialValue: 'example.com', + decoration: const InputDecoration( + prefixIcon: Icon(Icons.web), + ), + autovalidateMode: AutovalidateMode.always, + validator: (String? text) { + if (text?.endsWith('.com') ?? false) { + return null; + } + return 'No .com tld'; + } + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/custom_list_item.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/custom_list_item.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..891f8039a85369b87475b07a5d589cc245f63821 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/custom_list_item.0.dart @@ -0,0 +1,137 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for custom list items. + +void main() => runApp(const CustomListItemApp()); + +class CustomListItemApp extends StatelessWidget { + const CustomListItemApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: CustomListItemExample(), + ); + } +} + +class CustomListItem extends StatelessWidget { + const CustomListItem({ + super.key, + required this.thumbnail, + required this.title, + required this.user, + required this.viewCount, + }); + + final Widget thumbnail; + final String title; + final String user; + final int viewCount; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 5.0), + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + flex: 2, + child: thumbnail, + ), + Expanded( + flex: 3, + child: _VideoDescription( + title: title, + user: user, + viewCount: viewCount, + ), + ), + const Icon( + Icons.more_vert, + size: 16.0, + ), + ], + ), + ); + } +} + +class _VideoDescription extends StatelessWidget { + const _VideoDescription({ + required this.title, + required this.user, + required this.viewCount, + }); + + final String title; + final String user; + final int viewCount; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.fromLTRB(5.0, 0.0, 0.0, 0.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + title, + style: const TextStyle( + fontWeight: FontWeight.w500, + fontSize: 14.0, + ), + ), + const Padding(padding: EdgeInsets.symmetric(vertical: 2.0)), + Text( + user, + style: const TextStyle(fontSize: 10.0), + ), + const Padding(padding: EdgeInsets.symmetric(vertical: 1.0)), + Text( + '$viewCount views', + style: const TextStyle(fontSize: 10.0), + ), + ], + ), + ); + } +} + +class CustomListItemExample extends StatelessWidget { + const CustomListItemExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Custom List Item Sample')), + body: ListView( + padding: const EdgeInsets.all(8.0), + itemExtent: 106.0, + children: [ + CustomListItem( + user: 'Flutter', + viewCount: 999000, + thumbnail: Container( + decoration: const BoxDecoration(color: Colors.blue), + ), + title: 'The Flutter YouTube Channel', + ), + CustomListItem( + user: 'Dash', + viewCount: 884000, + thumbnail: Container( + decoration: const BoxDecoration(color: Colors.yellow), + ), + title: 'Announcing Flutter 1.0', + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/custom_list_item.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/custom_list_item.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..7cc63e1070674cbb6a30579250289a0780774eb0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/custom_list_item.1.dart @@ -0,0 +1,167 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for custom list items. + +void main() => runApp(const CustomListItemApp()); + +class CustomListItemApp extends StatelessWidget { + const CustomListItemApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const CustomListItemExample(), + ); + } +} + +class _ArticleDescription extends StatelessWidget { + const _ArticleDescription({ + required this.title, + required this.subtitle, + required this.author, + required this.publishDate, + required this.readDuration, + }); + + final String title; + final String subtitle; + final String author; + final String publishDate; + final String readDuration; + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + title, + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontWeight: FontWeight.bold, + ), + ), + const Padding(padding: EdgeInsets.only(bottom: 2.0)), + Expanded( + child: Text( + subtitle, + maxLines: 2, + overflow: TextOverflow.ellipsis, + style: const TextStyle( + fontSize: 12.0, + color: Colors.black54, + ), + ), + ), + Text( + author, + style: const TextStyle( + fontSize: 12.0, + color: Colors.black87, + ), + ), + Text( + '$publishDate - $readDuration', + style: const TextStyle( + fontSize: 12.0, + color: Colors.black54, + ), + ), + ], + ); + } +} + +class CustomListItemTwo extends StatelessWidget { + const CustomListItemTwo({ + super.key, + required this.thumbnail, + required this.title, + required this.subtitle, + required this.author, + required this.publishDate, + required this.readDuration, + }); + + final Widget thumbnail; + final String title; + final String subtitle; + final String author; + final String publishDate; + final String readDuration; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 10.0), + child: SizedBox( + height: 100, + child: Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + AspectRatio( + aspectRatio: 1.0, + child: thumbnail, + ), + Expanded( + child: Padding( + padding: const EdgeInsets.fromLTRB(20.0, 0.0, 2.0, 0.0), + child: _ArticleDescription( + title: title, + subtitle: subtitle, + author: author, + publishDate: publishDate, + readDuration: readDuration, + ), + ), + ), + ], + ), + ), + ); + } +} + +class CustomListItemExample extends StatelessWidget { + const CustomListItemExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Custom List Item Sample')), + body: ListView( + padding: const EdgeInsets.all(10.0), + children: [ + CustomListItemTwo( + thumbnail: Container( + decoration: const BoxDecoration(color: Colors.pink), + ), + title: 'Flutter 1.0 Launch', + subtitle: 'Flutter continues to improve and expand its horizons. ' + 'This text should max out at two lines and clip', + author: 'Dash', + publishDate: 'Dec 28', + readDuration: '5 mins', + ), + CustomListItemTwo( + thumbnail: Container( + decoration: const BoxDecoration(color: Colors.blue), + ), + title: 'Flutter 1.2 Release - Continual updates to the framework', + subtitle: 'Flutter once again improves and makes updates.', + author: 'Flutter', + publishDate: 'Feb 26', + readDuration: '12 mins', + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..26226fb29de750ba34d3b283cd46ed936834ff54 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.0.dart @@ -0,0 +1,151 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ListTile]. + +void main() => runApp(const ListTileApp()); + +class ListTileApp extends StatelessWidget { + const ListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + listTileTheme: const ListTileThemeData( + textColor: Colors.white, + ), + useMaterial3: true, + ), + home: const ListTileExample(), + ); + } +} + +class ListTileExample extends StatefulWidget { + const ListTileExample({super.key}); + + @override + State createState() => _ListTileExampleState(); +} + +class _ListTileExampleState extends State with TickerProviderStateMixin { + late final AnimationController _fadeController; + late final AnimationController _sizeController; + late final Animation _fadeAnimation; + late final Animation _sizeAnimation; + + @override + void initState() { + super.initState(); + _fadeController = AnimationController( + duration: const Duration(seconds: 1), + vsync: this, + )..repeat(reverse: true); + + _sizeController = AnimationController( + duration: const Duration(milliseconds: 850), + vsync: this, + )..repeat(reverse: true); + + _fadeAnimation = CurvedAnimation( + parent: _fadeController, + curve: Curves.easeInOut, + ); + + _sizeAnimation = CurvedAnimation( + parent: _sizeController, + curve: Curves.easeOut, + ); + } + + @override + void dispose() { + _fadeController.dispose(); + _sizeController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('ListTile Samples')), + body: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Hero( + tag: 'ListTile-Hero', + // Wrap the ListTile in a Material widget so the ListTile has someplace + // to draw the animated colors during the hero transition. + child: Material( + child: ListTile( + title: const Text('ListTile with Hero'), + subtitle: const Text('Tap here for Hero transition'), + tileColor: Colors.cyan, + onTap: () { + Navigator.push( + context, + MaterialPageRoute(builder: (BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('ListTile Hero')), + body: Center( + child: Hero( + tag: 'ListTile-Hero', + child: Material( + child: ListTile( + title: const Text('ListTile with Hero'), + subtitle: const Text('Tap here to go back'), + tileColor: Colors.blue[700], + onTap: () { + Navigator.pop(context); + }, + ), + ), + ), + ), + ); + }), + ); + }, + ), + ), + ), + FadeTransition( + opacity: _fadeAnimation, + // Wrap the ListTile in a Material widget so the ListTile has someplace + // to draw the animated colors during the fade transition. + child: const Material( + child: ListTile( + title: Text('ListTile with FadeTransition'), + selectedTileColor: Colors.green, + selectedColor: Colors.white, + selected: true, + ), + ), + ), + SizedBox( + height: 100, + child: Center( + child: SizeTransition( + sizeFactor: _sizeAnimation, + axisAlignment: -1.0, + // Wrap the ListTile in a Material widget so the ListTile has someplace + // to draw the animated colors during the size transition. + child: const Material( + child: ListTile( + title: Text('ListTile with SizeTransition'), + tileColor: Colors.red, + minVerticalPadding: 25.0, + ), + ), + ), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..0f5f8bb6f776fd70ba47f63158fb187eb9007f89 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.1.dart @@ -0,0 +1,79 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ListTile]. + +void main() => runApp(const ListTileApp()); + +class ListTileApp extends StatelessWidget { + const ListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const ListTileExample(), + ); + } +} + +class ListTileExample extends StatelessWidget { + const ListTileExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('ListTile Sample')), + body: ListView( + children: const [ + Card(child: ListTile(title: Text('One-line ListTile'))), + Card( + child: ListTile( + leading: FlutterLogo(), + title: Text('One-line with leading widget'), + ), + ), + Card( + child: ListTile( + title: Text('One-line with trailing widget'), + trailing: Icon(Icons.more_vert), + ), + ), + Card( + child: ListTile( + leading: FlutterLogo(), + title: Text('One-line with both widgets'), + trailing: Icon(Icons.more_vert), + ), + ), + Card( + child: ListTile( + title: Text('One-line dense ListTile'), + dense: true, + ), + ), + Card( + child: ListTile( + leading: FlutterLogo(size: 56.0), + title: Text('Two-line ListTile'), + subtitle: Text('Here is a second line'), + trailing: Icon(Icons.more_vert), + ), + ), + Card( + child: ListTile( + leading: FlutterLogo(size: 72.0), + title: Text('Three-line ListTile'), + subtitle: Text('A sufficiently long subtitle warrants three lines.'), + trailing: Icon(Icons.more_vert), + isThreeLine: true, + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..7caa7ff4f93c98c7e7f4328da0e8401cbc81fa9e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.2.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ListTile]. + +void main() => runApp(const ListTileApp()); + +class ListTileApp extends StatelessWidget { + const ListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const ListTileExample(), + ); + } +} + +class ListTileExample extends StatelessWidget { + const ListTileExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('ListTile Sample')), + body: ListView( + children: const [ + ListTile( + leading: CircleAvatar(child: Text('A')), + title: Text('Headline'), + subtitle: Text('Supporting text'), + trailing: Icon(Icons.favorite_rounded), + ), + Divider(height: 0), + ListTile( + leading: CircleAvatar(child: Text('B')), + title: Text('Headline'), + subtitle: Text( + 'Longer supporting text to demonstrate how the text wraps and how the leading and trailing widgets are centered vertically with the text.'), + trailing: Icon(Icons.favorite_rounded), + ), + Divider(height: 0), + ListTile( + leading: CircleAvatar(child: Text('C')), + title: Text('Headline'), + subtitle: Text( + "Longer supporting text to demonstrate how the text wraps and how setting 'ListTile.isThreeLine = true' aligns leading and trailing widgets to the top vertically with the text."), + trailing: Icon(Icons.favorite_rounded), + isThreeLine: true, + ), + Divider(height: 0), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..82f326491f4ce27fea21df82a5e648ae9db8b92a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.3.dart @@ -0,0 +1,86 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ListTile]. + +void main() => runApp(const ListTileApp()); + +class ListTileApp extends StatelessWidget { + const ListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const ListTileExample(), + ); + } +} + +class ListTileExample extends StatefulWidget { + const ListTileExample({super.key}); + + @override + State createState() => _ListTileExampleState(); +} + +class _ListTileExampleState extends State { + bool _selected = false; + bool _enabled = true; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('ListTile Sample')), + body: Center( + child: ListTile( + enabled: _enabled, + selected: _selected, + onTap: () { + setState(() { + // This is called when the user toggles the switch. + _selected = !_selected; + }); + }, + // This sets text color and icon color to red when list tile is disabled and + // green when list tile is selected, otherwise sets it to black. + iconColor: MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return Colors.red; + } + if (states.contains(MaterialState.selected)) { + return Colors.green; + } + return Colors.black; + }), + // This sets text color and icon color to red when list tile is disabled and + // green when list tile is selected, otherwise sets it to black. + textColor: MaterialStateColor.resolveWith((Set states) { + if (states.contains(MaterialState.disabled)) { + return Colors.red; + } + if (states.contains(MaterialState.selected)) { + return Colors.green; + } + return Colors.black; + }), + leading: const Icon(Icons.person), + title: const Text('Headline'), + subtitle: Text('Enabled: $_enabled, Selected: $_selected'), + trailing: Switch( + onChanged: (bool? value) { + // This is called when the user toggles the switch. + setState(() { + _enabled = value!; + }); + }, + value: _enabled, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.4.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.4.dart new file mode 100644 index 0000000000000000000000000000000000000000..9ad3494d031a128cf8c28bc2ee7470085ef1ade4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.4.dart @@ -0,0 +1,84 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ListTile]. + +void main() => runApp(const ListTileApp()); + +class ListTileApp extends StatelessWidget { + const ListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const ListTileExample(), + ); + } +} + +class ListTileExample extends StatefulWidget { + const ListTileExample({super.key}); + + @override + State createState() => _ListTileExampleState(); +} + +class _ListTileExampleState extends State { + ListTileTitleAlignment? titleAlignment; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('ListTile.titleAlignment Sample')), + body: Column( + children: [ + const Divider(), + ListTile( + titleAlignment: titleAlignment, + leading: Checkbox( + value: true, + onChanged: (bool? value) {}, + ), + title: const Text('Headline Text'), + subtitle: const Text( + 'Tapping on the trailing widget will show a menu that allows you to change the title alignment. The title alignment is set to threeLine by default if `ThemeData.useMaterial3` is true. Otherwise, defaults to titleHeight.'), + trailing: PopupMenuButton( + onSelected: (ListTileTitleAlignment? value) { + setState(() { + titleAlignment = value; + }); + }, + itemBuilder: (BuildContext context) => >[ + const PopupMenuItem( + value: ListTileTitleAlignment.threeLine, + child: Text('threeLine'), + ), + const PopupMenuItem( + value: ListTileTitleAlignment.titleHeight, + child: Text('titleHeight'), + ), + const PopupMenuItem( + value: ListTileTitleAlignment.top, + child: Text('top'), + ), + const PopupMenuItem( + value: ListTileTitleAlignment.center, + child: Text('center'), + ), + const PopupMenuItem( + value: ListTileTitleAlignment.bottom, + child: Text('bottom'), + ), + ], + ), + ), + const Divider(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.selected.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.selected.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..c326774f6db510b9de379a61742bb7cafbaf071b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/list_tile/list_tile.selected.0.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ListTile.selected]. + +void main() => runApp(const ListTileApp()); + +class ListTileApp extends StatelessWidget { + const ListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const ListTileExample(), + ); + } +} + +class ListTileExample extends StatefulWidget { + const ListTileExample({super.key}); + + @override + State createState() => _ListTileExampleState(); +} + +class _ListTileExampleState extends State { + int _selectedIndex = 0; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Custom List Item Sample')), + body: ListView.builder( + itemCount: 10, + itemBuilder: (BuildContext context, int index) { + return ListTile( + title: Text('Item $index'), + selected: index == _selectedIndex, + onTap: () { + setState(() { + _selectedIndex = index; + }); + }, + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_border_side.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_border_side.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..dadd03d2ab581bf6384c4a6a14de97c9ac1a544c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_border_side.0.dart @@ -0,0 +1,55 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [MaterialStateBorderSide]. + +void main() => runApp(const MaterialStateBorderSideExampleApp()); + +class MaterialStateBorderSideExampleApp extends StatelessWidget { + const MaterialStateBorderSideExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('MaterialStateBorderSide Sample')), + body: const Center( + child: MaterialStateBorderSideExample(), + ), + ), + ); + } +} + +class MaterialStateBorderSideExample extends StatefulWidget { + const MaterialStateBorderSideExample({super.key}); + + @override + State createState() => _MaterialStateBorderSideExampleState(); +} + +class _MaterialStateBorderSideExampleState extends State { + bool isSelected = true; + + @override + Widget build(BuildContext context) { + return FilterChip( + label: const Text('Select chip'), + selected: isSelected, + onSelected: (bool value) { + setState(() { + isSelected = value; + }); + }, + side: MaterialStateBorderSide.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return const BorderSide(color: Colors.red); + } + return null; // Defer to default value on the theme or widget. + }), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_mouse_cursor.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_mouse_cursor.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..446f8e034b0bffa6b6f1e04d93cd946b02b02f50 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_mouse_cursor.0.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [MaterialStateMouseCursor]. + +void main() => runApp(const MaterialStateMouseCursorExampleApp()); + +class MaterialStateMouseCursorExampleApp extends StatelessWidget { + const MaterialStateMouseCursorExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('MaterialStateMouseCursor Sample')), + body: const Center( + child: MaterialStateMouseCursorExample(), + ), + ), + ); + } +} + +class ListTileCursor extends MaterialStateMouseCursor { + const ListTileCursor(); + + @override + MouseCursor resolve(Set states) { + if (states.contains(MaterialState.disabled)) { + return SystemMouseCursors.forbidden; + } + return SystemMouseCursors.click; + } + + @override + String get debugDescription => 'ListTileCursor()'; +} + +class MaterialStateMouseCursorExample extends StatelessWidget { + const MaterialStateMouseCursorExample({super.key}); + + @override + Widget build(BuildContext context) { + return const ListTile( + title: Text('Disabled ListTile'), + enabled: false, + mouseCursor: ListTileCursor(), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_outlined_border.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_outlined_border.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..525bafce7e57efad50aec06228f67eed61c3c3b4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_outlined_border.0.dart @@ -0,0 +1,59 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [MaterialStateOutlinedBorder]. + +void main() => runApp(const MaterialStateOutlinedBorderExampleApp()); + +class MaterialStateOutlinedBorderExampleApp extends StatelessWidget { + const MaterialStateOutlinedBorderExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: MaterialStateOutlinedBorderExample(), + ); + } +} + +class SelectedBorder extends RoundedRectangleBorder implements MaterialStateOutlinedBorder { + const SelectedBorder(); + + @override + OutlinedBorder? resolve(Set states) { + if (states.contains(MaterialState.selected)) { + return const RoundedRectangleBorder(); + } + return null; // Defer to default value on the theme or widget. + } +} + +class MaterialStateOutlinedBorderExample extends StatefulWidget { + const MaterialStateOutlinedBorderExample({super.key}); + + @override + State createState() => _MaterialStateOutlinedBorderExampleState(); +} + +class _MaterialStateOutlinedBorderExampleState extends State { + bool isSelected = true; + + @override + Widget build(BuildContext context) { + return Material( + child: FilterChip( + label: const Text('Select chip'), + selected: isSelected, + onSelected: (bool value) { + setState(() { + isSelected = value; + }); + }, + shape: const SelectedBorder(), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_property.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_property.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..0840d583db8fb979565c60f5715d7257e498f977 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/material_state/material_state_property.0.dart @@ -0,0 +1,52 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [MaterialStateProperty]. + +void main() => runApp(const MaterialStatePropertyExampleApp()); + +class MaterialStatePropertyExampleApp extends StatelessWidget { + const MaterialStatePropertyExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('MaterialStateProperty Sample')), + body: const Center( + child: MaterialStatePropertyExample(), + ), + ), + ); + } +} + +class MaterialStatePropertyExample extends StatelessWidget { + const MaterialStatePropertyExample({super.key}); + + @override + Widget build(BuildContext context) { + Color getColor(Set states) { + const Set interactiveStates = { + MaterialState.pressed, + MaterialState.hovered, + MaterialState.focused, + }; + if (states.any(interactiveStates.contains)) { + return Colors.blue; + } + return Colors.red; + } + + return TextButton( + style: ButtonStyle( + foregroundColor: MaterialStateProperty.resolveWith(getColor), + ), + onPressed: () {}, + child: const Text('TextButton'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/checkbox_menu_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/checkbox_menu_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..8a6066f7ce8501aa12e250abec7285ef6477b26f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/checkbox_menu_button.0.dart @@ -0,0 +1,109 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [CheckboxMenuButton]. + +void main() => runApp(const MenuApp()); + +class MyCheckboxMenu extends StatefulWidget { + const MyCheckboxMenu({super.key, required this.message}); + + final String message; + + @override + State createState() => _MyCheckboxMenuState(); +} + +class _MyCheckboxMenuState extends State { + final FocusNode _buttonFocusNode = FocusNode(debugLabel: 'Menu Button'); + static const SingleActivator _showShortcut = SingleActivator(LogicalKeyboardKey.keyS, control: true); + bool _showingMessage = false; + + @override + void dispose() { + _buttonFocusNode.dispose(); + super.dispose(); + } + + void _setMessageVisibility(bool visible) { + setState(() { + _showingMessage = visible; + }); + } + + @override + Widget build(BuildContext context) { + return CallbackShortcuts( + bindings: { + _showShortcut: () { + _setMessageVisibility(!_showingMessage); + }, + }, + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + MenuAnchor( + childFocusNode: _buttonFocusNode, + menuChildren: [ + CheckboxMenuButton( + value: _showingMessage, + onChanged: (bool? value) { + _setMessageVisibility(value!); + }, + child: const Text('Show Message'), + ), + ], + builder: (BuildContext context, MenuController controller, Widget? child) { + return TextButton( + focusNode: _buttonFocusNode, + onPressed: () { + if (controller.isOpen) { + controller.close(); + } else { + controller.open(); + } + }, + child: const Text('OPEN MENU'), + ); + }, + ), + Expanded( + child: Container( + alignment: Alignment.center, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Padding( + padding: const EdgeInsets.all(12.0), + child: Text( + _showingMessage ? widget.message : '', + style: Theme.of(context).textTheme.headlineSmall, + ), + ), + ], + ), + ), + ), + ], + ), + ); + } +} + +class MenuApp extends StatelessWidget { + const MenuApp({super.key}); + + static const String kMessage = '"Talk less. Smile more." - A. Burr'; + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const Scaffold(body: SafeArea(child: MyCheckboxMenu(message: kMessage))), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_accelerator_label.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_accelerator_label.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..5e09ef9328486d39a3ddc454426b8b7a677e5562 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_accelerator_label.0.dart @@ -0,0 +1,117 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [MenuAcceleratorLabel]. + +void main() => runApp(const MenuAcceleratorApp()); + +class MyMenuBar extends StatelessWidget { + const MyMenuBar({super.key}); + + @override + Widget build(BuildContext context) { + return Column( + children: [ + Row( + mainAxisSize: MainAxisSize.min, + children: [ + Expanded( + child: MenuBar( + children: [ + SubmenuButton( + menuChildren: [ + MenuItemButton( + onPressed: () { + showAboutDialog( + context: context, + applicationName: 'MenuBar Sample', + applicationVersion: '1.0.0', + ); + }, + child: const MenuAcceleratorLabel('&About'), + ), + MenuItemButton( + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text('Saved!'), + ), + ); + }, + child: const MenuAcceleratorLabel('&Save'), + ), + MenuItemButton( + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text('Quit!'), + ), + ); + }, + child: const MenuAcceleratorLabel('&Quit'), + ), + ], + child: const MenuAcceleratorLabel('&File'), + ), + SubmenuButton( + menuChildren: [ + MenuItemButton( + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text('Magnify!'), + ), + ); + }, + child: const MenuAcceleratorLabel('&Magnify'), + ), + MenuItemButton( + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text('Minify!'), + ), + ); + }, + child: const MenuAcceleratorLabel('Mi&nify'), + ), + ], + child: const MenuAcceleratorLabel('&View'), + ), + ], + ), + ), + ], + ), + Expanded( + child: FlutterLogo( + size: MediaQuery.of(context).size.shortestSide * 0.5, + ), + ), + ], + ); + } +} + +class MenuAcceleratorApp extends StatelessWidget { + const MenuAcceleratorApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Shortcuts( + shortcuts: { + const SingleActivator(LogicalKeyboardKey.keyT, control: true): VoidCallbackIntent(() { + debugDumpApp(); + }), + }, + child: const Scaffold(body: SafeArea(child: MyMenuBar())), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..d4a3de7dece2bc6d555c77824c66001fc0c252bf --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.0.dart @@ -0,0 +1,210 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [MenuAnchor]. + +void main() => runApp(const MenuApp()); + +/// An enhanced enum to define the available menus and their shortcuts. +/// +/// Using an enum for menu definition is not required, but this illustrates how +/// they could be used for simple menu systems. +enum MenuEntry { + about('About'), + showMessage('Show Message', SingleActivator(LogicalKeyboardKey.keyS, control: true)), + hideMessage('Hide Message', SingleActivator(LogicalKeyboardKey.keyS, control: true)), + colorMenu('Color Menu'), + colorRed('Red Background', SingleActivator(LogicalKeyboardKey.keyR, control: true)), + colorGreen('Green Background', SingleActivator(LogicalKeyboardKey.keyG, control: true)), + colorBlue('Blue Background', SingleActivator(LogicalKeyboardKey.keyB, control: true)); + + const MenuEntry(this.label, [this.shortcut]); + final String label; + final MenuSerializableShortcut? shortcut; +} + +class MyCascadingMenu extends StatefulWidget { + const MyCascadingMenu({super.key, required this.message}); + + final String message; + + @override + State createState() => _MyCascadingMenuState(); +} + +class _MyCascadingMenuState extends State { + MenuEntry? _lastSelection; + final FocusNode _buttonFocusNode = FocusNode(debugLabel: 'Menu Button'); + ShortcutRegistryEntry? _shortcutsEntry; + + Color get backgroundColor => _backgroundColor; + Color _backgroundColor = Colors.red; + set backgroundColor(Color value) { + if (_backgroundColor != value) { + setState(() { + _backgroundColor = value; + }); + } + } + + bool get showingMessage => _showingMessage; + bool _showingMessage = false; + set showingMessage(bool value) { + if (_showingMessage != value) { + setState(() { + _showingMessage = value; + }); + } + } + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + // Dispose of any previously registered shortcuts, since they are about to + // be replaced. + _shortcutsEntry?.dispose(); + // Collect the shortcuts from the different menu selections so that they can + // be registered to apply to the entire app. Menus don't register their + // shortcuts, they only display the shortcut hint text. + final Map shortcuts = { + for (final MenuEntry item in MenuEntry.values) + if (item.shortcut != null) item.shortcut!: VoidCallbackIntent(() => _activate(item)), + }; + // Register the shortcuts with the ShortcutRegistry so that they are + // available to the entire application. + _shortcutsEntry = ShortcutRegistry.of(context).addAll(shortcuts); + } + + @override + void dispose() { + _shortcutsEntry?.dispose(); + _buttonFocusNode.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + MenuAnchor( + childFocusNode: _buttonFocusNode, + menuChildren: [ + MenuItemButton( + child: Text(MenuEntry.about.label), + onPressed: () => _activate(MenuEntry.about), + ), + if (_showingMessage) + MenuItemButton( + onPressed: () => _activate(MenuEntry.hideMessage), + shortcut: MenuEntry.hideMessage.shortcut, + child: Text(MenuEntry.hideMessage.label), + ), + if (!_showingMessage) + MenuItemButton( + onPressed: () => _activate(MenuEntry.showMessage), + shortcut: MenuEntry.showMessage.shortcut, + child: Text(MenuEntry.showMessage.label), + ), + SubmenuButton( + menuChildren: [ + MenuItemButton( + onPressed: () => _activate(MenuEntry.colorRed), + shortcut: MenuEntry.colorRed.shortcut, + child: Text(MenuEntry.colorRed.label), + ), + MenuItemButton( + onPressed: () => _activate(MenuEntry.colorGreen), + shortcut: MenuEntry.colorGreen.shortcut, + child: Text(MenuEntry.colorGreen.label), + ), + MenuItemButton( + onPressed: () => _activate(MenuEntry.colorBlue), + shortcut: MenuEntry.colorBlue.shortcut, + child: Text(MenuEntry.colorBlue.label), + ), + ], + child: const Text('Background Color'), + ), + ], + builder: (BuildContext context, MenuController controller, Widget? child) { + return TextButton( + focusNode: _buttonFocusNode, + onPressed: () { + if (controller.isOpen) { + controller.close(); + } else { + controller.open(); + } + }, + child: const Text('OPEN MENU'), + ); + }, + ), + Expanded( + child: Container( + alignment: Alignment.center, + color: backgroundColor, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Padding( + padding: const EdgeInsets.all(12.0), + child: Text( + showingMessage ? widget.message : '', + style: Theme.of(context).textTheme.headlineSmall, + ), + ), + Text(_lastSelection != null ? 'Last Selected: ${_lastSelection!.label}' : ''), + ], + ), + ), + ), + ], + ); + } + + void _activate(MenuEntry selection) { + setState(() { + _lastSelection = selection; + }); + + switch (selection) { + case MenuEntry.about: + showAboutDialog( + context: context, + applicationName: 'MenuBar Sample', + applicationVersion: '1.0.0', + ); + case MenuEntry.hideMessage: + case MenuEntry.showMessage: + showingMessage = !showingMessage; + case MenuEntry.colorMenu: + break; + case MenuEntry.colorRed: + backgroundColor = Colors.red; + case MenuEntry.colorGreen: + backgroundColor = Colors.green; + case MenuEntry.colorBlue: + backgroundColor = Colors.blue; + } + } +} + +class MenuApp extends StatelessWidget { + const MenuApp({super.key}); + + static const String kMessage = '"Talk less. Smile more." - A. Burr'; + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const Scaffold(body: SafeArea(child: MyCascadingMenu(message: kMessage))), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..e6b6d07f2e47673f84fcf86f574dcc42328242c4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.1.dart @@ -0,0 +1,259 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [MenuAnchor]. + +void main() => runApp(const ContextMenuApp()); + +/// An enhanced enum to define the available menus and their shortcuts. +/// +/// Using an enum for menu definition is not required, but this illustrates how +/// they could be used for simple menu systems. +enum MenuEntry { + about('About'), + showMessage('Show Message', SingleActivator(LogicalKeyboardKey.keyS, control: true)), + hideMessage('Hide Message', SingleActivator(LogicalKeyboardKey.keyS, control: true)), + colorMenu('Color Menu'), + colorRed('Red Background', SingleActivator(LogicalKeyboardKey.keyR, control: true)), + colorGreen('Green Background', SingleActivator(LogicalKeyboardKey.keyG, control: true)), + colorBlue('Blue Background', SingleActivator(LogicalKeyboardKey.keyB, control: true)); + + const MenuEntry(this.label, [this.shortcut]); + final String label; + final MenuSerializableShortcut? shortcut; +} + +class MyContextMenu extends StatefulWidget { + const MyContextMenu({super.key, required this.message}); + + final String message; + + @override + State createState() => _MyContextMenuState(); +} + +class _MyContextMenuState extends State { + MenuEntry? _lastSelection; + final FocusNode _buttonFocusNode = FocusNode(debugLabel: 'Menu Button'); + final MenuController _menuController = MenuController(); + ShortcutRegistryEntry? _shortcutsEntry; + bool _menuWasEnabled = false; + + Color get backgroundColor => _backgroundColor; + Color _backgroundColor = Colors.red; + set backgroundColor(Color value) { + if (_backgroundColor != value) { + setState(() { + _backgroundColor = value; + }); + } + } + + bool get showingMessage => _showingMessage; + bool _showingMessage = false; + set showingMessage(bool value) { + if (_showingMessage != value) { + setState(() { + _showingMessage = value; + }); + } + } + + @override + void initState() { + super.initState(); + _disableContextMenu(); + } + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + // Dispose of any previously registered shortcuts, since they are about to + // be replaced. + _shortcutsEntry?.dispose(); + // Collect the shortcuts from the different menu selections so that they can + // be registered to apply to the entire app. Menus don't register their + // shortcuts, they only display the shortcut hint text. + final Map shortcuts = { + for (final MenuEntry item in MenuEntry.values) + if (item.shortcut != null) item.shortcut!: VoidCallbackIntent(() => _activate(item)), + }; + // Register the shortcuts with the ShortcutRegistry so that they are + // available to the entire application. + _shortcutsEntry = ShortcutRegistry.of(context).addAll(shortcuts); + } + + @override + void dispose() { + _shortcutsEntry?.dispose(); + _buttonFocusNode.dispose(); + _reenableContextMenu(); + super.dispose(); + } + + Future _disableContextMenu() async { + if (!kIsWeb) { + // Does nothing on non-web platforms. + return; + } + _menuWasEnabled = BrowserContextMenu.enabled; + if (_menuWasEnabled) { + await BrowserContextMenu.disableContextMenu(); + } + } + + void _reenableContextMenu() { + if (!kIsWeb) { + // Does nothing on non-web platforms. + return; + } + if (_menuWasEnabled && !BrowserContextMenu.enabled) { + BrowserContextMenu.enableContextMenu(); + } + } + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.all(50), + child: GestureDetector( + onTapDown: _handleTapDown, + onSecondaryTapDown: _handleSecondaryTapDown, + child: MenuAnchor( + controller: _menuController, + menuChildren: [ + MenuItemButton( + child: Text(MenuEntry.about.label), + onPressed: () => _activate(MenuEntry.about), + ), + if (_showingMessage) + MenuItemButton( + onPressed: () => _activate(MenuEntry.hideMessage), + shortcut: MenuEntry.hideMessage.shortcut, + child: Text(MenuEntry.hideMessage.label), + ), + if (!_showingMessage) + MenuItemButton( + onPressed: () => _activate(MenuEntry.showMessage), + shortcut: MenuEntry.showMessage.shortcut, + child: Text(MenuEntry.showMessage.label), + ), + SubmenuButton( + menuChildren: [ + MenuItemButton( + onPressed: () => _activate(MenuEntry.colorRed), + shortcut: MenuEntry.colorRed.shortcut, + child: Text(MenuEntry.colorRed.label), + ), + MenuItemButton( + onPressed: () => _activate(MenuEntry.colorGreen), + shortcut: MenuEntry.colorGreen.shortcut, + child: Text(MenuEntry.colorGreen.label), + ), + MenuItemButton( + onPressed: () => _activate(MenuEntry.colorBlue), + shortcut: MenuEntry.colorBlue.shortcut, + child: Text(MenuEntry.colorBlue.label), + ), + ], + child: const Text('Background Color'), + ), + ], + child: Container( + alignment: Alignment.center, + color: backgroundColor, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Padding( + padding: EdgeInsets.all(8.0), + child: Text('Right-click anywhere on the background to show the menu.'), + ), + Padding( + padding: const EdgeInsets.all(12.0), + child: Text( + showingMessage ? widget.message : '', + style: Theme.of(context).textTheme.headlineSmall, + ), + ), + Text(_lastSelection != null ? 'Last Selected: ${_lastSelection!.label}' : ''), + ], + ), + ), + ), + ), + ); + } + + void _activate(MenuEntry selection) { + setState(() { + _lastSelection = selection; + }); + switch (selection) { + case MenuEntry.about: + showAboutDialog( + context: context, + applicationName: 'MenuBar Sample', + applicationVersion: '1.0.0', + ); + case MenuEntry.showMessage: + case MenuEntry.hideMessage: + showingMessage = !showingMessage; + case MenuEntry.colorMenu: + break; + case MenuEntry.colorRed: + backgroundColor = Colors.red; + case MenuEntry.colorGreen: + backgroundColor = Colors.green; + case MenuEntry.colorBlue: + backgroundColor = Colors.blue; + } + } + + void _handleSecondaryTapDown(TapDownDetails details) { + _menuController.open(position: details.localPosition); + } + + void _handleTapDown(TapDownDetails details) { + if (_menuController.isOpen) { + _menuController.close(); + return; + } + switch (defaultTargetPlatform) { + case TargetPlatform.android: + case TargetPlatform.fuchsia: + case TargetPlatform.linux: + case TargetPlatform.windows: + // Don't open the menu on these platforms with a Ctrl-tap (or a + // tap). + break; + case TargetPlatform.iOS: + case TargetPlatform.macOS: + // Only open the menu on these platforms if the control button is down + // when the tap occurs. + if (HardwareKeyboard.instance.logicalKeysPressed.contains(LogicalKeyboardKey.controlLeft) || + HardwareKeyboard.instance.logicalKeysPressed.contains(LogicalKeyboardKey.controlRight)) { + _menuController.open(position: details.localPosition); + } + } + } +} + +class ContextMenuApp extends StatelessWidget { + const ContextMenuApp({super.key}); + + static const String kMessage = '"Talk less. Smile more." - A. Burr'; + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const Scaffold(body: MyContextMenu(message: kMessage)), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..7c241d3c5f157f03f4b28d212170662a7f3383e5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.2.dart @@ -0,0 +1,70 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [MenuAnchor]. + + +void main() => runApp(const MenuAnchorApp()); + +// This is the type used by the menu below. +enum SampleItem { itemOne, itemTwo, itemThree } + +class MenuAnchorApp extends StatelessWidget { + const MenuAnchorApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const MenuAnchorExample(), + ); + } +} + +class MenuAnchorExample extends StatefulWidget { + const MenuAnchorExample({super.key}); + + @override + State createState() => _MenuAnchorExampleState(); +} + +class _MenuAnchorExampleState extends State { + SampleItem? selectedMenu; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('MenuAnchorButton'), + backgroundColor: Theme.of(context).primaryColorLight, + ), + body: Center( + child: MenuAnchor( + builder: + (BuildContext context, MenuController controller, Widget? child) { + return IconButton( + onPressed: () { + if (controller.isOpen) { + controller.close(); + } else { + controller.open(); + } + }, + icon: const Icon(Icons.more_horiz), + tooltip: 'Show menu', + );}, + menuChildren: List.generate( + 3, + (int index) => MenuItemButton( + onPressed: () => setState(() => selectedMenu = SampleItem.values[index]), + child: Text('Item ${index + 1}'), + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..2995fb9ec12f2f2dddef3e3c5a97e90f3a549f2c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_anchor.3.dart @@ -0,0 +1,81 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SimpleCascadingMenuApp]. + +void main() => runApp(const SimpleCascadingMenuApp()); + +/// A Simple Cascading Menu example using the [MenuAnchor] Widget. +class MyCascadingMenu extends StatefulWidget { + const MyCascadingMenu({super.key}); + + @override + State createState() => _MyCascadingMenuState(); +} + +class _MyCascadingMenuState extends State { + final FocusNode _buttonFocusNode = FocusNode(debugLabel: 'Menu Button'); + + @override + void dispose() { + _buttonFocusNode.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return MenuAnchor( + childFocusNode: _buttonFocusNode, + menuChildren: [ + MenuItemButton( + onPressed: () {}, + child: const Text('Revert'), + ), + MenuItemButton( + onPressed: () {}, + child: const Text('Setting'), + ), + MenuItemButton( + onPressed: () {}, + child: const Text('Send Feedback'), + ), + ], + builder: (_, MenuController controller, Widget? child) { + return IconButton( + focusNode: _buttonFocusNode, + onPressed: () { + if (controller.isOpen) { + controller.close(); + } else { + controller.open(); + } + }, + icon: const Icon(Icons.more_vert), + ); + }, + ); + } +} + +/// Top Level Application Widget. +class SimpleCascadingMenuApp extends StatelessWidget { + const SimpleCascadingMenuApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + home: Scaffold( + appBar: AppBar( + title: const Text('MenuAnchor Simple Example'), + actions: const [ + MyCascadingMenu(), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..b769630027a38aa59339a503131623d6fd534cf7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/menu_bar.0.dart @@ -0,0 +1,236 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [MenuBar]. + +void main() => runApp(const MenuBarApp()); + +/// A class for consolidating the definition of menu entries. +/// +/// This sort of class is not required, but illustrates one way that defining +/// menus could be done. +class MenuEntry { + const MenuEntry({required this.label, this.shortcut, this.onPressed, this.menuChildren}) + : assert(menuChildren == null || onPressed == null, 'onPressed is ignored if menuChildren are provided'); + final String label; + + final MenuSerializableShortcut? shortcut; + final VoidCallback? onPressed; + final List? menuChildren; + + static List build(List selections) { + Widget buildSelection(MenuEntry selection) { + if (selection.menuChildren != null) { + return SubmenuButton( + menuChildren: MenuEntry.build(selection.menuChildren!), + child: Text(selection.label), + ); + } + return MenuItemButton( + shortcut: selection.shortcut, + onPressed: selection.onPressed, + child: Text(selection.label), + ); + } + + return selections.map(buildSelection).toList(); + } + + static Map shortcuts(List selections) { + final Map result = {}; + for (final MenuEntry selection in selections) { + if (selection.menuChildren != null) { + result.addAll(MenuEntry.shortcuts(selection.menuChildren!)); + } else { + if (selection.shortcut != null && selection.onPressed != null) { + result[selection.shortcut!] = VoidCallbackIntent(selection.onPressed!); + } + } + } + return result; + } +} + +class MyMenuBar extends StatefulWidget { + const MyMenuBar({ + super.key, + required this.message, + }); + + final String message; + + @override + State createState() => _MyMenuBarState(); +} + +class _MyMenuBarState extends State { + ShortcutRegistryEntry? _shortcutsEntry; + String? _lastSelection; + + Color get backgroundColor => _backgroundColor; + Color _backgroundColor = Colors.red; + set backgroundColor(Color value) { + if (_backgroundColor != value) { + setState(() { + _backgroundColor = value; + }); + } + } + + bool get showingMessage => _showMessage; + bool _showMessage = false; + set showingMessage(bool value) { + if (_showMessage != value) { + setState(() { + _showMessage = value; + }); + } + } + + @override + void dispose() { + _shortcutsEntry?.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Column( + children: [ + Row( + mainAxisSize: MainAxisSize.min, + children: [ + Expanded( + child: MenuBar( + children: MenuEntry.build(_getMenus()), + ), + ), + ], + ), + Expanded( + child: Container( + alignment: Alignment.center, + color: backgroundColor, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Padding( + padding: const EdgeInsets.all(12.0), + child: Text( + showingMessage ? widget.message : '', + style: Theme.of(context).textTheme.headlineSmall, + ), + ), + Text(_lastSelection != null ? 'Last Selected: $_lastSelection' : ''), + ], + ), + ), + ), + ], + ); + } + + List _getMenus() { + final List result = [ + MenuEntry( + label: 'Menu Demo', + menuChildren: [ + MenuEntry( + label: 'About', + onPressed: () { + showAboutDialog( + context: context, + applicationName: 'MenuBar Sample', + applicationVersion: '1.0.0', + ); + setState(() { + _lastSelection = 'About'; + }); + }, + ), + MenuEntry( + label: showingMessage ? 'Hide Message' : 'Show Message', + onPressed: () { + setState(() { + _lastSelection = showingMessage ? 'Hide Message' : 'Show Message'; + showingMessage = !showingMessage; + }); + }, + shortcut: const SingleActivator(LogicalKeyboardKey.keyS, control: true), + ), + // Hides the message, but is only enabled if the message isn't + // already hidden. + MenuEntry( + label: 'Reset Message', + onPressed: showingMessage + ? () { + setState(() { + _lastSelection = 'Reset Message'; + showingMessage = false; + }); + } + : null, + shortcut: const SingleActivator(LogicalKeyboardKey.escape), + ), + MenuEntry( + label: 'Background Color', + menuChildren: [ + MenuEntry( + label: 'Red Background', + onPressed: () { + setState(() { + _lastSelection = 'Red Background'; + backgroundColor = Colors.red; + }); + }, + shortcut: const SingleActivator(LogicalKeyboardKey.keyR, control: true), + ), + MenuEntry( + label: 'Green Background', + onPressed: () { + setState(() { + _lastSelection = 'Green Background'; + backgroundColor = Colors.green; + }); + }, + shortcut: const SingleActivator(LogicalKeyboardKey.keyG, control: true), + ), + MenuEntry( + label: 'Blue Background', + onPressed: () { + setState(() { + _lastSelection = 'Blue Background'; + backgroundColor = Colors.blue; + }); + }, + shortcut: const SingleActivator(LogicalKeyboardKey.keyB, control: true), + ), + ], + ), + ], + ), + ]; + // (Re-)register the shortcuts with the ShortcutRegistry so that they are + // available to the entire application, and update them if they've changed. + _shortcutsEntry?.dispose(); + _shortcutsEntry = ShortcutRegistry.of(context).addAll(MenuEntry.shortcuts(result)); + return result; + } +} + +class MenuBarApp extends StatelessWidget { + const MenuBarApp({super.key}); + + static const String kMessage = '"Talk less. Smile more." - A. Burr'; + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold(body: SafeArea(child: MyMenuBar(message: kMessage))), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/radio_menu_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/radio_menu_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..3976c88d3745e09e95f61251329de0435dced3a1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/menu_anchor/radio_menu_button.0.dart @@ -0,0 +1,115 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [RadioMenuButton]. + +void main() => runApp(const MenuApp()); + +class MyRadioMenu extends StatefulWidget { + const MyRadioMenu({super.key}); + + @override + State createState() => _MyRadioMenuState(); +} + +class _MyRadioMenuState extends State { + final FocusNode _buttonFocusNode = FocusNode(debugLabel: 'Menu Button'); + Color _backgroundColor = Colors.red; + late ShortcutRegistryEntry _entry; + + static const SingleActivator _redShortcut = SingleActivator(LogicalKeyboardKey.keyR, control: true); + static const SingleActivator _greenShortcut = SingleActivator(LogicalKeyboardKey.keyG, control: true); + static const SingleActivator _blueShortcut = SingleActivator(LogicalKeyboardKey.keyB, control: true); + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + _entry = ShortcutRegistry.of(context).addAll({ + _redShortcut: VoidCallbackIntent(() => _setBackgroundColor(Colors.red)), + _greenShortcut: VoidCallbackIntent(() => _setBackgroundColor(Colors.green)), + _blueShortcut: VoidCallbackIntent(() => _setBackgroundColor(Colors.blue)), + }); + } + + @override + void dispose() { + _buttonFocusNode.dispose(); + _entry.dispose(); + super.dispose(); + } + + void _setBackgroundColor(Color? color) { + setState(() { + _backgroundColor = color!; + }); + } + + @override + Widget build(BuildContext context) { + return Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + MenuAnchor( + childFocusNode: _buttonFocusNode, + menuChildren: [ + RadioMenuButton( + value: Colors.red, + shortcut: _redShortcut, + groupValue: _backgroundColor, + onChanged: _setBackgroundColor, + child: const Text('Red Background'), + ), + RadioMenuButton( + value: Colors.green, + shortcut: _greenShortcut, + groupValue: _backgroundColor, + onChanged: _setBackgroundColor, + child: const Text('Green Background'), + ), + RadioMenuButton( + value: Colors.blue, + shortcut: _blueShortcut, + groupValue: _backgroundColor, + onChanged: _setBackgroundColor, + child: const Text('Blue Background'), + ), + ], + builder: (BuildContext context, MenuController controller, Widget? child) { + return TextButton( + focusNode: _buttonFocusNode, + onPressed: () { + if (controller.isOpen) { + controller.close(); + } else { + controller.open(); + } + }, + child: const Text('OPEN MENU'), + ); + }, + ), + Expanded( + child: Container( + color: _backgroundColor, + ), + ), + ], + ); + } +} + +class MenuApp extends StatelessWidget { + const MenuApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const Scaffold(body: SafeArea(child: MyRadioMenu())), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_bar/navigation_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_bar/navigation_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..5c38b8c1615ed87724765d97aa303ce835f255e5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_bar/navigation_bar.0.dart @@ -0,0 +1,144 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [NavigationBar]. + +void main() => runApp(const NavigationBarApp()); + +class NavigationBarApp extends StatelessWidget { + const NavigationBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const NavigationExample(), + ); + } +} + +class NavigationExample extends StatefulWidget { + const NavigationExample({super.key}); + + @override + State createState() => _NavigationExampleState(); +} + +class _NavigationExampleState extends State { + int currentPageIndex = 0; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return Scaffold( + bottomNavigationBar: NavigationBar( + onDestinationSelected: (int index) { + setState(() { + currentPageIndex = index; + }); + }, + indicatorColor: Colors.amber, + selectedIndex: currentPageIndex, + destinations: const [ + NavigationDestination( + selectedIcon: Icon(Icons.home), + icon: Icon(Icons.home_outlined), + label: 'Home', + ), + NavigationDestination( + icon: Badge(child: Icon(Icons.notifications_sharp)), + label: 'Notifications', + ), + NavigationDestination( + icon: Badge( + label: Text('2'), + child: Icon(Icons.messenger_sharp), + ), + label: 'Messages', + ), + ], + ), + body: [ + /// Home page + Card( + shadowColor: Colors.transparent, + margin: const EdgeInsets.all(8.0), + child: SizedBox.expand( + child: Center( + child: Text( + 'Home page', + style: theme.textTheme.titleLarge, + ), + ), + ), + ), + /// Notifications page + const Padding( + padding: EdgeInsets.all(8.0), + child: Column( + children: [ + Card( + child: ListTile( + leading: Icon(Icons.notifications_sharp), + title: Text('Notification 1'), + subtitle: Text('This is a notification'), + ), + ), + Card( + child: ListTile( + leading: Icon(Icons.notifications_sharp), + title: Text('Notification 2'), + subtitle: Text('This is a notification'), + ), + ), + ], + ), + ), + /// Messages page + ListView.builder( + reverse: true, + itemCount: 2, + itemBuilder: (BuildContext context, int index) { + if (index == 0) { + return Align( + alignment: Alignment.centerRight, + child: Container( + margin: const EdgeInsets.all(8.0), + padding: const EdgeInsets.all(8.0), + decoration: BoxDecoration( + color: theme.colorScheme.primary, + borderRadius: BorderRadius.circular(8.0), + ), + child: Text( + 'Hello', + style: theme.textTheme.bodyLarge! + .copyWith(color: theme.colorScheme.onPrimary), + ), + ), + ); + } + return Align( + alignment: Alignment.centerLeft, + child: Container( + margin: const EdgeInsets.all(8.0), + padding: const EdgeInsets.all(8.0), + decoration: BoxDecoration( + color: theme.colorScheme.primary, + borderRadius: BorderRadius.circular(8.0), + ), + child: Text( + 'Hi!', + style: theme.textTheme.bodyLarge! + .copyWith(color: theme.colorScheme.onPrimary), + ), + ), + ); + }, + ), + ][currentPageIndex], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_bar/navigation_bar.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_bar/navigation_bar.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..edd5e2d0946bfd9dc900e98f8ead85eabdb61f06 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_bar/navigation_bar.1.dart @@ -0,0 +1,98 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [NavigationBar]. + +void main() => runApp(const NavigationBarApp()); + +class NavigationBarApp extends StatelessWidget { + const NavigationBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp(home: NavigationExample()); + } +} + +class NavigationExample extends StatefulWidget { + const NavigationExample({super.key}); + + @override + State createState() => _NavigationExampleState(); +} + +class _NavigationExampleState extends State { + int currentPageIndex = 0; + NavigationDestinationLabelBehavior labelBehavior = NavigationDestinationLabelBehavior.alwaysShow; + + @override + Widget build(BuildContext context) { + return Scaffold( + bottomNavigationBar: NavigationBar( + labelBehavior: labelBehavior, + selectedIndex: currentPageIndex, + onDestinationSelected: (int index) { + setState(() { + currentPageIndex = index; + }); + }, + destinations: const [ + NavigationDestination( + icon: Icon(Icons.explore), + label: 'Explore', + ), + NavigationDestination( + icon: Icon(Icons.commute), + label: 'Commute', + ), + NavigationDestination( + selectedIcon: Icon(Icons.bookmark), + icon: Icon(Icons.bookmark_border), + label: 'Saved', + ), + ], + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Label behavior: ${labelBehavior.name}'), + const SizedBox(height: 10), + OverflowBar( + spacing: 10.0, + children: [ + ElevatedButton( + onPressed: () { + setState(() { + labelBehavior = NavigationDestinationLabelBehavior.alwaysShow; + }); + }, + child: const Text('alwaysShow'), + ), + ElevatedButton( + onPressed: () { + setState(() { + labelBehavior = NavigationDestinationLabelBehavior.onlyShowSelected; + }); + }, + child: const Text('onlyShowSelected'), + ), + ElevatedButton( + onPressed: () { + setState(() { + labelBehavior = NavigationDestinationLabelBehavior.alwaysHide; + }); + }, + child: const Text('alwaysHide'), + ), + ], + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_bar/navigation_bar.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_bar/navigation_bar.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..db9a31e2347c40953dbc819124aaf61d5f12335c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_bar/navigation_bar.2.dart @@ -0,0 +1,401 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [NavigationBar] with nested [Navigator] destinations. + +void main() { + runApp(const MaterialApp(home: Home())); +} + +class Home extends StatefulWidget { + const Home({super.key}); + + @override + State createState() => _HomeState(); +} + +class _HomeState extends State with TickerProviderStateMixin { + static const List allDestinations = [ + Destination(0, 'Teal', Icons.home, Colors.teal), + Destination(1, 'Cyan', Icons.business, Colors.cyan), + Destination(2, 'Orange', Icons.school, Colors.orange), + Destination(3, 'Blue', Icons.flight, Colors.blue), + ]; + + late final List> navigatorKeys; + late final List destinationKeys; + late final List destinationFaders; + late final List destinationViews; + int selectedIndex = 0; + + AnimationController buildFaderController() { + final AnimationController controller = AnimationController( + vsync: this, + duration: const Duration(milliseconds: 300), + ); + controller.addStatusListener( + (AnimationStatus status) { + if (status == AnimationStatus.dismissed) { + setState(() {}); // Rebuild unselected destinations offstage. + } + }, + ); + return controller; + } + + @override + void initState() { + super.initState(); + + navigatorKeys = List>.generate( + allDestinations.length, + (int index) => GlobalKey(), + ).toList(); + + destinationFaders = List.generate( + allDestinations.length, + (int index) => buildFaderController(), + ).toList(); + destinationFaders[selectedIndex].value = 1.0; + + final CurveTween tween = CurveTween(curve: Curves.fastOutSlowIn); + destinationViews = allDestinations.map( + (Destination destination) { + return FadeTransition( + opacity: destinationFaders[destination.index].drive(tween), + child: DestinationView( + destination: destination, + navigatorKey: navigatorKeys[destination.index], + ), + ); + }, + ).toList(); + } + + @override + void dispose() { + for (final AnimationController controller in destinationFaders) { + controller.dispose(); + } + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return NavigatorPopHandler( + onPop: () { + final NavigatorState navigator = navigatorKeys[selectedIndex].currentState!; + navigator.pop(); + }, + child: Scaffold( + body: SafeArea( + top: false, + child: Stack( + fit: StackFit.expand, + children: allDestinations.map( + (Destination destination) { + final int index = destination.index; + final Widget view = destinationViews[index]; + if (index == selectedIndex) { + destinationFaders[index].forward(); + return Offstage(offstage: false, child: view); + } else { + destinationFaders[index].reverse(); + if (destinationFaders[index].isAnimating) { + return IgnorePointer(child: view); + } + return Offstage(child: view); + } + }, + ).toList(), + ), + ), + bottomNavigationBar: NavigationBar( + selectedIndex: selectedIndex, + onDestinationSelected: (int index) { + setState(() { + selectedIndex = index; + }); + }, + destinations: allDestinations.map( + (Destination destination) { + return NavigationDestination( + icon: Icon(destination.icon, color: destination.color), + label: destination.title, + ); + }, + ).toList(), + ), + ), + ); + } +} + +class Destination { + const Destination(this.index, this.title, this.icon, this.color); + final int index; + final String title; + final IconData icon; + final MaterialColor color; +} + +class RootPage extends StatelessWidget { + const RootPage({super.key, required this.destination}); + + final Destination destination; + + Widget _buildDialog(BuildContext context) { + return AlertDialog( + title: Text('${destination.title} AlertDialog'), + actions: [ + TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: const Text('OK'), + ), + ], + ); + } + + @override + Widget build(BuildContext context) { + final TextStyle headlineSmall = Theme.of(context).textTheme.headlineSmall!; + final ButtonStyle buttonStyle = ElevatedButton.styleFrom( + backgroundColor: destination.color, + foregroundColor: Colors.white, + visualDensity: VisualDensity.comfortable, + padding: const EdgeInsets.symmetric(vertical: 12, horizontal: 16), + textStyle: headlineSmall, + ); + + return Scaffold( + appBar: AppBar( + title: Text('${destination.title} RootPage - /'), + backgroundColor: destination.color, + foregroundColor: Colors.white, + ), + backgroundColor: destination.color[50], + body: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + ElevatedButton( + style: buttonStyle, + onPressed: () { + Navigator.pushNamed(context, '/list'); + }, + child: const Text('Push /list'), + ), + const SizedBox(height: 16), + ElevatedButton( + style: buttonStyle, + onPressed: () { + showDialog( + context: context, + useRootNavigator: false, + builder: _buildDialog, + ); + }, + child: const Text('Local Dialog'), + ), + const SizedBox(height: 16), + ElevatedButton( + style: buttonStyle, + onPressed: () { + showDialog( + context: context, + useRootNavigator: true, // ignore: avoid_redundant_argument_values + builder: _buildDialog, + ); + }, + child: const Text('Root Dialog'), + ), + const SizedBox(height: 16), + Builder( + builder: (BuildContext context) { + return ElevatedButton( + style: buttonStyle, + onPressed: () { + showBottomSheet( + context: context, + builder: (BuildContext context) { + return Container( + padding: const EdgeInsets.all(16), + width: double.infinity, + child: Text( + '${destination.title} BottomSheet\n' + 'Tap the back button to dismiss', + style: headlineSmall, + softWrap: true, + textAlign: TextAlign.center, + ), + ); + }, + ); + }, + child: const Text('Local BottomSheet'), + ); + }, + ), + ], + ), + ), + ); + } +} + +class ListPage extends StatelessWidget { + const ListPage({super.key, required this.destination}); + + final Destination destination; + + @override + Widget build(BuildContext context) { + const int itemCount = 50; + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final ButtonStyle buttonStyle = OutlinedButton.styleFrom( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8), + side: BorderSide( + color: colorScheme.onSurface.withOpacity(0.12), + ), + ), + foregroundColor: destination.color, + fixedSize: const Size.fromHeight(64), + textStyle: Theme.of(context).textTheme.headlineSmall, + ); + return Scaffold( + appBar: AppBar( + title: Text('${destination.title} ListPage - /list'), + backgroundColor: destination.color, + foregroundColor: Colors.white, + ), + backgroundColor: destination.color[50], + body: SizedBox.expand( + child: ListView.builder( + itemCount: itemCount, + itemBuilder: (BuildContext context, int index) { + return Padding( + padding: const EdgeInsets.symmetric(vertical: 4, horizontal: 8), + child: OutlinedButton( + style: buttonStyle.copyWith( + backgroundColor: MaterialStatePropertyAll( + Color.lerp( + destination.color[100], + Colors.white, + index / itemCount + )!, + ), + ), + onPressed: () { + Navigator.pushNamed(context, '/text'); + }, + child: Text('Push /text [$index]'), + ), + ); + }, + ), + ), + ); + } +} + +class TextPage extends StatefulWidget { + const TextPage({super.key, required this.destination}); + + final Destination destination; + + @override + State createState() => _TextPageState(); +} + +class _TextPageState extends State { + late final TextEditingController textController; + + @override + void initState() { + super.initState(); + textController = TextEditingController(text: 'Sample Text'); + } + + @override + void dispose() { + textController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + return Scaffold( + appBar: AppBar( + title: Text('${widget.destination.title} TextPage - /list/text'), + backgroundColor: widget.destination.color, + foregroundColor: Colors.white, + ), + backgroundColor: widget.destination.color[50], + body: Container( + padding: const EdgeInsets.all(32.0), + alignment: Alignment.center, + child: TextField( + controller: textController, + style: theme.primaryTextTheme.headlineMedium?.copyWith( + color: widget.destination.color, + ), + decoration: InputDecoration( + focusedBorder: UnderlineInputBorder( + borderSide: BorderSide( + color: widget.destination.color, + width: 3.0, + ), + ), + ), + ), + ), + ); + } +} + +class DestinationView extends StatefulWidget { + const DestinationView({ + super.key, + required this.destination, + required this.navigatorKey, + }); + + final Destination destination; + final Key navigatorKey; + + @override + State createState() => _DestinationViewState(); +} + +class _DestinationViewState extends State { + @override + Widget build(BuildContext context) { + return Navigator( + key: widget.navigatorKey, + onGenerateRoute: (RouteSettings settings) { + return MaterialPageRoute( + settings: settings, + builder: (BuildContext context) { + switch (settings.name) { + case '/': + return RootPage(destination: widget.destination); + case '/list': + return ListPage(destination: widget.destination); + case '/text': + return TextPage(destination: widget.destination); + } + assert(false); + return const SizedBox(); + }, + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_drawer/navigation_drawer.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_drawer/navigation_drawer.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..1854b6f8506962c3e182b51c0cab80dd0770c688 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_drawer/navigation_drawer.0.dart @@ -0,0 +1,182 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Builds an adaptive navigation widget layout. When the screen width is less than +// 450, A [NavigationBar] will be displayed. Otherwise, a [NavigationRail] will be +// displayed on the left side, and also a button to open the [NavigationDrawer]. +// All of these navigation widgets are built from an identical list of data. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [NavigationDrawer]. + +void main() => runApp(const NavigationDrawerApp()); + +class ExampleDestination { + const ExampleDestination(this.label, this.icon, this.selectedIcon); + + final String label; + final Widget icon; + final Widget selectedIcon; +} + +const List destinations = [ + ExampleDestination('Messages', Icon(Icons.widgets_outlined), Icon(Icons.widgets)), + ExampleDestination('Profile', Icon(Icons.format_paint_outlined), Icon(Icons.format_paint)), + ExampleDestination('Settings', Icon(Icons.settings_outlined), Icon(Icons.settings)), +]; + +class NavigationDrawerApp extends StatelessWidget { + const NavigationDrawerApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + debugShowCheckedModeBanner: false, + theme: ThemeData(useMaterial3: true), + home: const NavigationDrawerExample(), + ); + } +} + +class NavigationDrawerExample extends StatefulWidget { + const NavigationDrawerExample({super.key}); + + @override + State createState() => _NavigationDrawerExampleState(); +} + +class _NavigationDrawerExampleState extends State { + final GlobalKey scaffoldKey = GlobalKey(); + + int screenIndex = 0; + late bool showNavigationDrawer; + + void handleScreenChanged(int selectedScreen) { + setState(() { + screenIndex = selectedScreen; + }); + } + + void openDrawer() { + scaffoldKey.currentState!.openEndDrawer(); + } + + Widget buildBottomBarScaffold() { + return Scaffold( + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Text('Page Index = $screenIndex'), + ], + ), + ), + bottomNavigationBar: NavigationBar( + selectedIndex: screenIndex, + onDestinationSelected: (int index) { + setState(() { + screenIndex = index; + }); + }, + destinations: destinations.map( + (ExampleDestination destination) { + return NavigationDestination( + label: destination.label, + icon: destination.icon, + selectedIcon: destination.selectedIcon, + tooltip: destination.label, + ); + }, + ).toList(), + ), + ); + } + + Widget buildDrawerScaffold(BuildContext context) { + return Scaffold( + key: scaffoldKey, + body: SafeArea( + bottom: false, + top: false, + child: Row( + children: [ + Padding( + padding: const EdgeInsets.symmetric(horizontal: 5), + child: NavigationRail( + minWidth: 50, + destinations: destinations.map( + (ExampleDestination destination) { + return NavigationRailDestination( + label: Text(destination.label), + icon: destination.icon, + selectedIcon: destination.selectedIcon, + ); + }, + ).toList(), + selectedIndex: screenIndex, + useIndicator: true, + onDestinationSelected: (int index) { + setState(() { + screenIndex = index; + }); + }, + ), + ), + const VerticalDivider(thickness: 1, width: 1), + Expanded( + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Text('Page Index = $screenIndex'), + ElevatedButton( + onPressed: openDrawer, + child: const Text('Open Drawer'), + ), + ], + ), + ), + ], + ), + ), + endDrawer: NavigationDrawer( + onDestinationSelected: handleScreenChanged, + selectedIndex: screenIndex, + children: [ + Padding( + padding: const EdgeInsets.fromLTRB(28, 16, 16, 10), + child: Text( + 'Header', + style: Theme.of(context).textTheme.titleSmall, + ), + ), + ...destinations.map( + (ExampleDestination destination) { + return NavigationDrawerDestination( + label: Text(destination.label), + icon: destination.icon, + selectedIcon: destination.selectedIcon, + ); + }, + ), + const Padding( + padding: EdgeInsets.fromLTRB(28, 16, 28, 10), + child: Divider(), + ), + ], + ), + ); + } + + @override + void didChangeDependencies() { + super.didChangeDependencies(); + showNavigationDrawer = MediaQuery.of(context).size.width >= 450; + } + + @override + Widget build(BuildContext context) { + return showNavigationDrawer ? buildDrawerScaffold(context) : buildBottomBarScaffold(); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_rail/navigation_rail.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_rail/navigation_rail.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..fbe7f6ab8df585dd6c44731807ab6506e6a2435b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_rail/navigation_rail.0.dart @@ -0,0 +1,185 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [NavigationRail]. + +void main() => runApp(const NavigationRailExampleApp()); + +class NavigationRailExampleApp extends StatelessWidget { + const NavigationRailExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: NavRailExample(), + ); + } +} + +class NavRailExample extends StatefulWidget { + const NavRailExample({super.key}); + + @override + State createState() => _NavRailExampleState(); +} + +class _NavRailExampleState extends State { + int _selectedIndex = 0; + NavigationRailLabelType labelType = NavigationRailLabelType.all; + bool showLeading = false; + bool showTrailing = false; + double groupAlignment = -1.0; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Row( + children: [ + NavigationRail( + selectedIndex: _selectedIndex, + groupAlignment: groupAlignment, + onDestinationSelected: (int index) { + setState(() { + _selectedIndex = index; + }); + }, + labelType: labelType, + leading: showLeading + ? FloatingActionButton( + elevation: 0, + onPressed: () { + // Add your onPressed code here! + }, + child: const Icon(Icons.add), + ) + : const SizedBox(), + trailing: showTrailing + ? IconButton( + onPressed: () { + // Add your onPressed code here! + }, + icon: const Icon(Icons.more_horiz_rounded), + ) + : const SizedBox(), + destinations: const [ + NavigationRailDestination( + icon: Icon(Icons.favorite_border), + selectedIcon: Icon(Icons.favorite), + label: Text('First'), + ), + NavigationRailDestination( + icon: Icon(Icons.bookmark_border), + selectedIcon: Icon(Icons.book), + label: Text('Second'), + ), + NavigationRailDestination( + icon: Icon(Icons.star_border), + selectedIcon: Icon(Icons.star), + label: Text('Third'), + ), + ], + ), + const VerticalDivider(thickness: 1, width: 1), + // This is the main content. + Expanded( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('selectedIndex: $_selectedIndex'), + const SizedBox(height: 20), + Text('Label type: ${labelType.name}'), + const SizedBox(height: 10), + OverflowBar( + spacing: 10.0, + children: [ + ElevatedButton( + onPressed: () { + setState(() { + labelType = NavigationRailLabelType.none; + }); + }, + child: const Text('None'), + ), + ElevatedButton( + onPressed: () { + setState(() { + labelType = NavigationRailLabelType.selected; + }); + }, + child: const Text('Selected'), + ), + ElevatedButton( + onPressed: () { + setState(() { + labelType = NavigationRailLabelType.all; + }); + }, + child: const Text('All'), + ), + ], + ), + const SizedBox(height: 20), + Text('Group alignment: $groupAlignment'), + const SizedBox(height: 10), + OverflowBar( + spacing: 10.0, + children: [ + ElevatedButton( + onPressed: () { + setState(() { + groupAlignment = -1.0; + }); + }, + child: const Text('Top'), + ), + ElevatedButton( + onPressed: () { + setState(() { + groupAlignment = 0.0; + }); + }, + child: const Text('Center'), + ), + ElevatedButton( + onPressed: () { + setState(() { + groupAlignment = 1.0; + }); + }, + child: const Text('Bottom'), + ), + ], + ), + const SizedBox(height: 20), + OverflowBar( + spacing: 10.0, + children: [ + ElevatedButton( + onPressed: () { + setState(() { + showLeading = !showLeading; + }); + }, + child: Text(showLeading ? 'Hide Leading' : 'Show Leading'), + ), + ElevatedButton( + onPressed: () { + setState(() { + showTrailing = !showTrailing; + }); + }, + child: Text(showTrailing ? 'Hide Trailing' : 'Show Trailing'), + ), + ], + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_rail/navigation_rail.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_rail/navigation_rail.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..f3e943736e3cd3f743640955762107c3be3e999a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_rail/navigation_rail.1.dart @@ -0,0 +1,194 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [NavigationRail]. + +void main() => runApp(const NavigationRailExampleApp()); + +class NavigationRailExampleApp extends StatelessWidget { + const NavigationRailExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const NavRailExample(), + ); + } +} + +class NavRailExample extends StatefulWidget { + const NavRailExample({super.key}); + + @override + State createState() => _NavRailExampleState(); +} + +class _NavRailExampleState extends State { + int _selectedIndex = 0; + NavigationRailLabelType labelType = NavigationRailLabelType.all; + bool showLeading = false; + bool showTrailing = false; + double groupAlignment = -1.0; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: SafeArea( + child: Row( + children: [ + NavigationRail( + selectedIndex: _selectedIndex, + groupAlignment: groupAlignment, + onDestinationSelected: (int index) { + setState(() { + _selectedIndex = index; + }); + }, + labelType: labelType, + leading: showLeading + ? FloatingActionButton( + elevation: 0, + onPressed: () { + // Add your onPressed code here! + }, + child: const Icon(Icons.add), + ) + : const SizedBox(), + trailing: showTrailing + ? IconButton( + onPressed: () { + // Add your onPressed code here! + }, + icon: const Icon(Icons.more_horiz_rounded), + ) + : const SizedBox(), + destinations: const [ + NavigationRailDestination( + icon: Icon(Icons.favorite_border), + selectedIcon: Icon(Icons.favorite), + label: Text('First'), + ), + NavigationRailDestination( + icon: Badge(child: Icon(Icons.bookmark_border)), + selectedIcon: Badge(child: Icon(Icons.book)), + label: Text('Second'), + ), + NavigationRailDestination( + icon: Badge( + label: Text('4'), + child: Icon(Icons.star_border), + ), + selectedIcon: Badge( + label: Text('4'), + child: Icon(Icons.star), + ), + label: Text('Third'), + ), + ], + ), + const VerticalDivider(thickness: 1, width: 1), + // This is the main content. + Expanded( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('selectedIndex: $_selectedIndex'), + const SizedBox(height: 20), + Text('Label type: ${labelType.name}'), + const SizedBox(height: 10), + OverflowBar( + spacing: 10.0, + children: [ + ElevatedButton( + onPressed: () { + setState(() { + labelType = NavigationRailLabelType.none; + }); + }, + child: const Text('None'), + ), + ElevatedButton( + onPressed: () { + setState(() { + labelType = NavigationRailLabelType.selected; + }); + }, + child: const Text('Selected'), + ), + ElevatedButton( + onPressed: () { + setState(() { + labelType = NavigationRailLabelType.all; + }); + }, + child: const Text('All'), + ), + ], + ), + const SizedBox(height: 20), + Text('Group alignment: $groupAlignment'), + const SizedBox(height: 10), + OverflowBar( + spacing: 10.0, + children: [ + ElevatedButton( + onPressed: () { + setState(() { + groupAlignment = -1.0; + }); + }, + child: const Text('Top'), + ), + ElevatedButton( + onPressed: () { + setState(() { + groupAlignment = 0.0; + }); + }, + child: const Text('Center'), + ), + ElevatedButton( + onPressed: () { + setState(() { + groupAlignment = 1.0; + }); + }, + child: const Text('Bottom'), + ), + ], + ), + const SizedBox(height: 20), + OverflowBar( + spacing: 10.0, + children: [ + ElevatedButton( + onPressed: () { + setState(() { + showLeading = !showLeading; + }); + }, + child: Text(showLeading ? 'Hide Leading' : 'Show Leading'), + ), + ElevatedButton( + onPressed: () { + setState(() { + showTrailing = !showTrailing; + }); + }, + child: Text(showTrailing ? 'Hide Trailing' : 'Show Trailing'), + ), + ], + ), + ], + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_rail/navigation_rail.extended_animation.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_rail/navigation_rail.extended_animation.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..c2163662e3ad760a7bea26d3d53493a46dea7c2e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/navigation_rail/navigation_rail.extended_animation.0.dart @@ -0,0 +1,130 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:ui'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [NavigationRail.extendedAnimation]. + +void main() => runApp(const ExtendedAnimationExampleApp()); + +class ExtendedAnimationExampleApp extends StatelessWidget { + const ExtendedAnimationExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold( + body: MyNavigationRail(), + ), + ); + } +} + +class MyNavigationRail extends StatefulWidget { + const MyNavigationRail({super.key}); + + @override + State createState() => _MyNavigationRailState(); +} + +class _MyNavigationRailState extends State { + int _selectedIndex = 0; + bool _extended = false; + + @override + Widget build(BuildContext context) { + return Row( + children: [ + NavigationRail( + selectedIndex: _selectedIndex, + extended: _extended, + leading: MyNavigationRailFab(onPressed: () { + setState(() { + _extended = !_extended; + }); + }), + onDestinationSelected: (int index) { + setState(() { + _selectedIndex = index; + }); + }, + labelType: NavigationRailLabelType.none, + destinations: const [ + NavigationRailDestination( + icon: Icon(Icons.favorite_border), + selectedIcon: Icon(Icons.favorite), + label: Text('First'), + ), + NavigationRailDestination( + icon: Icon(Icons.bookmark_border), + selectedIcon: Icon(Icons.book), + label: Text('Second'), + ), + NavigationRailDestination( + icon: Icon(Icons.star_border), + selectedIcon: Icon(Icons.star), + label: Text('Third'), + ), + ], + ), + const VerticalDivider(thickness: 1, width: 1), + // This is the main content. + Expanded( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('Tap on FloatingActionButton to expand'), + const SizedBox(height: 20), + Text('selectedIndex: $_selectedIndex'), + ], + ), + ), + ), + ], + ); + } +} + +class MyNavigationRailFab extends StatelessWidget { + const MyNavigationRailFab({super.key, this.onPressed}); + + final VoidCallback? onPressed; + + @override + Widget build(BuildContext context) { + final Animation animation = NavigationRail.extendedAnimation(context); + return AnimatedBuilder( + animation: animation, + builder: (BuildContext context, Widget? child) { + // The extended fab has a shorter height than the regular fab. + return Container( + height: 56, + padding: EdgeInsets.symmetric( + vertical: lerpDouble(0, 6, animation.value)!, + ), + child: animation.value == 0 + ? FloatingActionButton( + onPressed: onPressed, + child: const Icon(Icons.add), + ) + : Align( + alignment: AlignmentDirectional.centerStart, + widthFactor: animation.value, + child: Padding( + padding: const EdgeInsetsDirectional.only(start: 8), + child: FloatingActionButton.extended( + icon: const Icon(Icons.add), + label: const Text('CREATE'), + onPressed: onPressed, + ), + ), + ), + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/outlined_button/outlined_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/outlined_button/outlined_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..b177a70c8019f0889d5337c7fb68819081842b42 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/outlined_button/outlined_button.0.dart @@ -0,0 +1,39 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [OutlinedButton]. + +void main() => runApp(const OutlinedButtonExampleApp()); + +class OutlinedButtonExampleApp extends StatelessWidget { + const OutlinedButtonExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('OutlinedButton Sample')), + body: const Center( + child: OutlinedButtonExample(), + ), + ), + ); + } +} + +class OutlinedButtonExample extends StatelessWidget { + const OutlinedButtonExample({super.key}); + + @override + Widget build(BuildContext context) { + return OutlinedButton( + onPressed: () { + debugPrint('Received click'); + }, + child: const Text('Click Me'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/page_transitions_theme/page_transitions_theme.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/page_transitions_theme/page_transitions_theme.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e541cd898de456d184105748db16e124ef212098 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/page_transitions_theme/page_transitions_theme.0.dart @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [PageTransitionsTheme]. + +void main() => runApp(const PageTransitionsThemeApp()); + +class PageTransitionsThemeApp extends StatelessWidget { + const PageTransitionsThemeApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + useMaterial3: true, + // Defines the page transition animations used by MaterialPageRoute + // for different target platforms. + // Non-specified target platforms will default to + // ZoomPageTransitionsBuilder(). + pageTransitionsTheme: const PageTransitionsTheme( + builders: { + TargetPlatform.iOS: CupertinoPageTransitionsBuilder(), + TargetPlatform.linux: OpenUpwardsPageTransitionsBuilder(), + TargetPlatform.macOS: FadeUpwardsPageTransitionsBuilder(), + }, + ), + ), + home: const HomePage(), + ); + } +} + +class HomePage extends StatelessWidget { + const HomePage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Colors.blueGrey, + body: Center( + child: ElevatedButton( + onPressed: () { + Navigator.of(context).push( + MaterialPageRoute( + builder: (BuildContext context) => const SecondPage(), + ), + ); + }, + child: const Text('To SecondPage'), + ), + ), + ); + } +} + +class SecondPage extends StatelessWidget { + const SecondPage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Colors.purple[200], + body: Center( + child: ElevatedButton( + onPressed: () { + Navigator.of(context).pop(); + }, + child: const Text('Back to HomePage'), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/page_transitions_theme/page_transitions_theme.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/page_transitions_theme/page_transitions_theme.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..8f106d02416fbb5ae6f05ba6f483ec5af55821f1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/page_transitions_theme/page_transitions_theme.1.dart @@ -0,0 +1,72 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [PageTransitionsTheme]. + +void main() => runApp(const PageTransitionsThemeApp()); + +class PageTransitionsThemeApp extends StatelessWidget { + const PageTransitionsThemeApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + useMaterial3: true, + pageTransitionsTheme: const PageTransitionsTheme( + builders: { + TargetPlatform.android: ZoomPageTransitionsBuilder( + allowSnapshotting: false, + ), + }, + ), + ), + home: const HomePage(), + ); + } +} + +class HomePage extends StatelessWidget { + const HomePage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Colors.blueGrey, + body: Center( + child: ElevatedButton( + onPressed: () { + Navigator.of(context).push( + MaterialPageRoute( + builder: (BuildContext context) => const SecondPage(), + ), + ); + }, + child: const Text('To SecondPage'), + ), + ), + ); + } +} + +class SecondPage extends StatelessWidget { + const SecondPage({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + backgroundColor: Colors.purple[200], + body: Center( + child: ElevatedButton( + onPressed: () { + Navigator.of(context).pop(); + }, + child: const Text('Back to HomePage'), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/paginated_data_table/paginated_data_table.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/paginated_data_table/paginated_data_table.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..8249d5e62fff944c7d28270145ba6d2fe529cbf5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/paginated_data_table/paginated_data_table.0.dart @@ -0,0 +1,86 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [PaginatedDataTable]. + +class MyDataSource extends DataTableSource { + @override + int get rowCount => 3; + + @override + DataRow? getRow(int index) { + switch (index) { + case 0: return const DataRow( + cells: [ + DataCell(Text('Sarah')), + DataCell(Text('19')), + DataCell(Text('Student')), + ], + ); + case 1: return const DataRow( + cells: [ + DataCell(Text('Janine')), + DataCell(Text('43')), + DataCell(Text('Professor')), + ], + ); + case 2: return const DataRow( + cells: [ + DataCell(Text('William')), + DataCell(Text('27')), + DataCell(Text('Associate Professor')), + ], + ); + default: return null; + } + } + + @override + bool get isRowCountApproximate => false; + + @override + int get selectedRowCount => 0; +} + +final DataTableSource dataSource = MyDataSource(); + +void main() => runApp(const DataTableExampleApp()); + +class DataTableExampleApp extends StatelessWidget { + const DataTableExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SingleChildScrollView( + padding: EdgeInsets.all(12.0), + child: DataTableExample(), + ), + ); + } +} + +class DataTableExample extends StatelessWidget { + const DataTableExample({super.key}); + + @override + Widget build(BuildContext context) { + return PaginatedDataTable( + columns: const [ + DataColumn( + label: Text('Name'), + ), + DataColumn( + label: Text('Age'), + ), + DataColumn( + label: Text('Role'), + ), + ], + source: dataSource, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/paginated_data_table/paginated_data_table.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/paginated_data_table/paginated_data_table.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..bc4eff6a93ac417b7508cc051ba0c84f5820363c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/paginated_data_table/paginated_data_table.1.dart @@ -0,0 +1,307 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [PaginatedDataTable]. + +class MyDataSource extends DataTableSource { + static const List _displayIndexToRawIndex = [ 0, 3, 4, 5, 6 ]; + + late List>> sortedData; + void setData(List>> rawData, int sortColumn, bool sortAscending) { + sortedData = rawData.toList()..sort((List> a, List> b) { + final Comparable cellA = a[_displayIndexToRawIndex[sortColumn]]; + final Comparable cellB = b[_displayIndexToRawIndex[sortColumn]]; + return cellA.compareTo(cellB) * (sortAscending ? 1 : -1); + }); + notifyListeners(); + } + + @override + int get rowCount => sortedData.length; + + static DataCell cellFor(Object data) { + String value; + if (data is DateTime) { + value = '${data.year}-${data.month.toString().padLeft(2, '0')}-${data.day.toString().padLeft(2, '0')}'; + } else { + value = data.toString(); + } + return DataCell(Text(value)); + } + + @override + DataRow? getRow(int index) { + return DataRow.byIndex( + index: sortedData[index][0] as int, + cells: [ + cellFor('S${sortedData[index][1]}E${sortedData[index][2].toString().padLeft(2, '0')}'), + cellFor(sortedData[index][3]), + cellFor(sortedData[index][4]), + cellFor(sortedData[index][5]), + cellFor(sortedData[index][6]), + ], + ); + } + + @override + bool get isRowCountApproximate => false; + + @override + int get selectedRowCount => 0; +} + +void main() => runApp(const DataTableExampleApp()); + +class DataTableExampleApp extends StatelessWidget { + const DataTableExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SingleChildScrollView( + padding: EdgeInsets.all(12.0), + child: DataTableExample(), + ), + ); + } +} + +class DataTableExample extends StatefulWidget { + const DataTableExample({super.key}); + + @override + State createState() => _DataTableExampleState(); +} + +class _DataTableExampleState extends State { + final MyDataSource dataSource = MyDataSource() + ..setData(episodes, 0, true); + + int _columnIndex = 0; + bool _columnAscending = true; + + void _sort(int columnIndex, bool ascending) { + setState(() { + _columnIndex = columnIndex; + _columnAscending = ascending; + dataSource.setData(episodes, _columnIndex, _columnAscending); + }); + } + + @override + Widget build(BuildContext context) { + return PaginatedDataTable( + sortColumnIndex: _columnIndex, + sortAscending: _columnAscending, + columns: [ + DataColumn( + label: const Text('Episode'), + onSort: _sort, + ), + DataColumn( + label: const Text('Title'), + onSort: _sort, + ), + DataColumn( + label: const Text('Director'), + onSort: _sort, + ), + DataColumn( + label: const Text('Writer(s)'), + onSort: _sort, + ), + DataColumn( + label: const Text('Air Date'), + onSort: _sort, + ), + ], + source: dataSource, + ); + } +} + +final List>> episodes = >>[ + >[ + 1, + 1, + 1, + 'Strange New Worlds', + 'Akiva Goldsman', + 'Akiva Goldsman, Alex Kurtzman, Jenny Lumet', + DateTime(2022, 5, 5), + ], + >[ + 2, + 1, + 2, + 'Children of the Comet', + 'Maja Vrvilo', + 'Henry Alonso Myers, Sarah Tarkoff', + DateTime(2022, 5, 12), + ], + >[ + 3, + 1, + 3, + 'Ghosts of Illyria', + 'Leslie Hope', + 'Akela Cooper, Bill Wolkoff', + DateTime(2022, 5, 19), + ], + >[ + 4, + 1, + 4, + 'Memento Mori', + 'Dan Liu', + 'Davy Perez, Beau DeMayo', + DateTime(2022, 5, 26), + ], + >[ + 5, + 1, + 5, + 'Spock Amok', + 'Rachel Leiterman', + 'Henry Alonso Myers, Robin Wasserman', + DateTime(2022, 6, 2), + ], + >[ + 6, + 1, + 6, + 'Lift Us Where Suffering Cannot Reach', + 'Andi Armaganian', + 'Robin Wasserman, Bill Wolkoff', + DateTime(2022, 6, 9), + ], + >[ + 7, + 1, + 7, + 'The Serene Squall', + 'Sydney Freeland', + 'Beau DeMayo, Sarah Tarkoff', + DateTime(2022, 6, 16), + ], + >[ + 8, + 1, + 8, + 'The Elysian Kingdom', + 'Amanda Row', + 'Akela Cooper, Onitra Johnson', + DateTime(2022, 6, 23), + ], + >[ + 9, + 1, + 9, + 'All Those Who Wander', + 'Christopher J. Byrne', + 'Davy Perez', + DateTime(2022, 6, 30), + ], + >[ + 10, + 2, + 10, + 'A Quality of Mercy', + 'Chris Fisher', + 'Henry Alonso Myers, Akiva Goldsman', + DateTime(2022, 7, 7), + ], + >[ + 11, + 2, + 1, + 'The Broken Circle', + 'Chris Fisher', + 'Henry Alonso Myers, Akiva Goldsman', + DateTime(2023, 6, 15), + ], + >[ + 12, + 2, + 2, + 'Ad Astra per Aspera', + 'Valerie Weiss', + 'Dana Horgan', + DateTime(2023, 6, 22), + ], + >[ + 13, + 2, + 3, + 'Tomorrow and Tomorrow and Tomorrow', + 'Amanda Row', + 'David Reed', + DateTime(2023, 6, 29), + ], + >[ + 14, + 2, + 4, + 'Among the Lotus Eaters', + 'Eduardo Sánchez', + 'Kirsten Beyer, Davy Perez', + DateTime(2023, 7, 6), + ], + >[ + 15, + 2, + 5, + 'Charades', + 'Jordan Canning', + 'Kathryn Lyn, Henry Alonso Myers', + DateTime(2023, 7, 13), + ], + >[ + 16, + 2, + 6, + 'Lost in Translation', + 'Dan Liu', + 'Onitra Johnson, David Reed', + DateTime(2023, 7, 20), + ], + >[ + 17, + 2, + 7, + 'Those Old Scientists', + 'Jonathan Frakes', + 'Kathryn Lyn, Bill Wolkoff', + DateTime(2023, 7, 22), + ], + >[ + 18, + 2, + 8, + 'Under the Cloak of War', + '', + 'Davy Perez', + DateTime(2023, 7, 27), + ], + >[ + 19, + 2, + 9, + 'Subspace Rhapsody', + '', + 'Dana Horgan, Bill Wolkoff', + DateTime(2023, 8, 3), + ], + >[ + 20, + 2, + 10, + 'Hegemony', + '', + 'Henry Alonso Myers', + DateTime(2023, 8, 10), + ], +]; diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/platform_menu_bar/platform_menu_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/platform_menu_bar/platform_menu_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..5b79009a2e4c0523606427c7f232b71dfd5ff527 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/platform_menu_bar/platform_menu_bar.0.dart @@ -0,0 +1,133 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// THIS SAMPLE ONLY WORKS ON MACOS. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [PlatformMenuBar]. + +void main() => runApp(const ExampleApp()); + +enum MenuSelection { + about, + showMessage, +} + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold(body: PlatformMenuBarExample()), + ); + } +} + +class PlatformMenuBarExample extends StatefulWidget { + const PlatformMenuBarExample({super.key}); + + @override + State createState() => _PlatformMenuBarExampleState(); +} + +class _PlatformMenuBarExampleState extends State { + String _message = 'Hello'; + bool _showMessage = false; + + void _handleMenuSelection(MenuSelection value) { + switch (value) { + case MenuSelection.about: + showAboutDialog( + context: context, + applicationName: 'MenuBar Sample', + applicationVersion: '1.0.0', + ); + case MenuSelection.showMessage: + setState(() { + _showMessage = !_showMessage; + }); + } + } + + @override + Widget build(BuildContext context) { + //////////////////////////////////// + // THIS SAMPLE ONLY WORKS ON MACOS. + //////////////////////////////////// + + // This builds a menu hierarchy that looks like this: + // Flutter API Sample + // ├ About + // ├ ──────── (group divider) + // ├ Hide/Show Message + // ├ Messages + // │ ├ I am not throwing away my shot. + // │ └ There's a million things I haven't done, but just you wait. + // └ Quit + return PlatformMenuBar( + menus: [ + PlatformMenu( + label: 'Flutter API Sample', + menus: [ + PlatformMenuItemGroup( + members: [ + PlatformMenuItem( + label: 'About', + onSelected: () { + _handleMenuSelection(MenuSelection.about); + }, + ), + ], + ), + PlatformMenuItemGroup( + members: [ + PlatformMenuItem( + onSelected: () { + _handleMenuSelection(MenuSelection.showMessage); + }, + shortcut: const CharacterActivator('m'), + label: _showMessage ? 'Hide Message' : 'Show Message', + ), + PlatformMenu( + label: 'Messages', + menus: [ + PlatformMenuItem( + label: 'I am not throwing away my shot.', + shortcut: const SingleActivator(LogicalKeyboardKey.digit1, meta: true), + onSelected: () { + setState(() { + _message = 'I am not throwing away my shot.'; + }); + }, + ), + PlatformMenuItem( + label: "There's a million things I haven't done, but just you wait.", + shortcut: const SingleActivator(LogicalKeyboardKey.digit2, meta: true), + onSelected: () { + setState(() { + _message = "There's a million things I haven't done, but just you wait."; + }); + }, + ), + ], + ), + ], + ), + if (PlatformProvidedMenuItem.hasMenu(PlatformProvidedMenuItemType.quit)) + const PlatformProvidedMenuItem(type: PlatformProvidedMenuItemType.quit), + ], + ), + ], + child: Center( + child: Text(_showMessage + ? _message + : 'This space intentionally left blank.\n' + 'Show a message here using the menu.'), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/popup_menu/popup_menu.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/popup_menu/popup_menu.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..cfdc80ac7fe6ece1ca82af8465f6116e31282952 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/popup_menu/popup_menu.0.dart @@ -0,0 +1,65 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [PopupMenuButton]. + +// This is the type used by the popup menu below. +enum SampleItem { itemOne, itemTwo, itemThree } + +void main() => runApp(const PopupMenuApp()); + +class PopupMenuApp extends StatelessWidget { + const PopupMenuApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: PopupMenuExample(), + ); + } +} + +class PopupMenuExample extends StatefulWidget { + const PopupMenuExample({super.key}); + + @override + State createState() => _PopupMenuExampleState(); +} + +class _PopupMenuExampleState extends State { + SampleItem? selectedItem; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('PopupMenuButton')), + body: Center( + child: PopupMenuButton( + initialValue: selectedItem, + onSelected: (SampleItem item) { + setState(() { + selectedItem = item; + }); + }, + itemBuilder: (BuildContext context) => >[ + const PopupMenuItem( + value: SampleItem.itemOne, + child: Text('Item 1'), + ), + const PopupMenuItem( + value: SampleItem.itemTwo, + child: Text('Item 2'), + ), + const PopupMenuItem( + value: SampleItem.itemThree, + child: Text('Item 3'), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/popup_menu/popup_menu.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/popup_menu/popup_menu.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..a961d4013b57c46aca2002929393ed80c9a97e12 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/popup_menu/popup_menu.1.dart @@ -0,0 +1,66 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [PopupMenuButton]. + +// This is the type used by the popup menu below. +enum SampleItem { itemOne, itemTwo, itemThree } + +void main() => runApp(const PopupMenuApp()); + +class PopupMenuApp extends StatelessWidget { + const PopupMenuApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true, colorSchemeSeed: const Color(0xff6750a4)), + home: const PopupMenuExample(), + ); + } +} + +class PopupMenuExample extends StatefulWidget { + const PopupMenuExample({super.key}); + + @override + State createState() => _PopupMenuExampleState(); +} + +class _PopupMenuExampleState extends State { + SampleItem? selectedItem; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('PopupMenuButton')), + body: Center( + child: PopupMenuButton( + initialValue: selectedItem, + onSelected: (SampleItem item) { + setState(() { + selectedItem = item; + }); + }, + itemBuilder: (BuildContext context) => >[ + const PopupMenuItem( + value: SampleItem.itemOne, + child: Text('Item 1'), + ), + const PopupMenuItem( + value: SampleItem.itemTwo, + child: Text('Item 2'), + ), + const PopupMenuItem( + value: SampleItem.itemThree, + child: Text('Item 3'), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/popup_menu/popup_menu.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/popup_menu/popup_menu.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..50947b1073602c846a312f2470bab6acdf357acd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/popup_menu/popup_menu.2.dart @@ -0,0 +1,129 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [PopupMenuButton]. + +void main() => runApp(const PopupMenuApp()); + +class PopupMenuApp extends StatelessWidget { + const PopupMenuApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: PopupMenuExample(), + ); + } +} + +enum AnimationStyles { defaultStyle, custom, none } +const List<(AnimationStyles, String)> animationStyleSegments = <(AnimationStyles, String)>[ + (AnimationStyles.defaultStyle, 'Default'), + (AnimationStyles.custom, 'Custom'), + (AnimationStyles.none, 'None'), +]; + +enum Menu { preview, share, getLink, remove, download } + +class PopupMenuExample extends StatefulWidget { + const PopupMenuExample({super.key}); + + @override + State createState() => _PopupMenuExampleState(); +} + +class _PopupMenuExampleState extends State { + Set _animationStyleSelection = {AnimationStyles.defaultStyle}; + AnimationStyle? _animationStyle; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: SafeArea( + child: Padding( + padding: const EdgeInsets.only(top: 50), + child: Align( + alignment: Alignment.topCenter, + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SegmentedButton( + selected: _animationStyleSelection, + onSelectionChanged: (Set styles) { + setState(() { + _animationStyleSelection = styles; + switch (styles.first) { + case AnimationStyles.defaultStyle: + _animationStyle = null; + case AnimationStyles.custom: + _animationStyle = AnimationStyle( + curve: Easing.emphasizedDecelerate, + duration: const Duration(seconds: 3), + ); + case AnimationStyles.none: + _animationStyle = AnimationStyle.noAnimation; + } + }); + }, + segments: animationStyleSegments + .map>(((AnimationStyles, String) shirt) { + return ButtonSegment(value: shirt.$1, label: Text(shirt.$2)); + }) + .toList(), + ), + const SizedBox(height: 10), + PopupMenuButton( + popUpAnimationStyle: _animationStyle, + icon: const Icon(Icons.more_vert), + onSelected: (Menu item) { }, + itemBuilder: (BuildContext context) => >[ + const PopupMenuItem( + value: Menu.preview, + child: ListTile( + leading: Icon(Icons.visibility_outlined), + title: Text('Preview'), + ), + ), + const PopupMenuItem( + value: Menu.share, + child: ListTile( + leading: Icon(Icons.share_outlined), + title: Text('Share'), + ), + ), + const PopupMenuItem( + value: Menu.getLink, + child: ListTile( + leading: Icon(Icons.link_outlined), + title: Text('Get link'), + ), + ), + const PopupMenuDivider(), + const PopupMenuItem( + value: Menu.remove, + child: ListTile( + leading: Icon(Icons.delete_outline), + title: Text('Remove'), + ), + ), + const PopupMenuItem( + value: Menu.download, + child: ListTile( + leading: Icon(Icons.download_outlined), + title: Text('Download'), + ), + ), + ], + ), + ], + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/circular_progress_indicator.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/circular_progress_indicator.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a41036a8c4538985dc9fe95bc473f24e06460415 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/circular_progress_indicator.0.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [CircularProgressIndicator]. + +void main() => runApp(const ProgressIndicatorApp()); + +class ProgressIndicatorApp extends StatelessWidget { + const ProgressIndicatorApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ProgressIndicatorExample(), + ); + } +} + +class ProgressIndicatorExample extends StatefulWidget { + const ProgressIndicatorExample({super.key}); + + @override + State createState() => _ProgressIndicatorExampleState(); +} + +class _ProgressIndicatorExampleState extends State with TickerProviderStateMixin { + late AnimationController controller; + + @override + void initState() { + controller = AnimationController( + /// [AnimationController]s can be created with `vsync: this` because of + /// [TickerProviderStateMixin]. + vsync: this, + duration: const Duration(seconds: 5), + )..addListener(() { + setState(() {}); + }); + controller.repeat(reverse: true); + super.initState(); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Padding( + padding: const EdgeInsets.all(20.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Text( + 'Circular progress indicator with a fixed color', + style: Theme.of(context).textTheme.titleLarge, + ), + CircularProgressIndicator( + value: controller.value, + semanticsLabel: 'Circular progress indicator', + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/circular_progress_indicator.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/circular_progress_indicator.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..6b228f89e2053f6bbaf16b69a24cb11b1850b8cc --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/circular_progress_indicator.1.dart @@ -0,0 +1,102 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [CircularProgressIndicator]. + +void main() => runApp(const ProgressIndicatorApp()); + +class ProgressIndicatorApp extends StatelessWidget { + const ProgressIndicatorApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true, colorSchemeSeed: const Color(0xff6750a4)), + home: const ProgressIndicatorExample(), + ); + } +} + +class ProgressIndicatorExample extends StatefulWidget { + const ProgressIndicatorExample({super.key}); + + @override + State createState() => _ProgressIndicatorExampleState(); +} + +class _ProgressIndicatorExampleState extends State with TickerProviderStateMixin { + late AnimationController controller; + bool determinate = false; + + @override + void initState() { + controller = AnimationController( + /// [AnimationController]s can be created with `vsync: this` because of + /// [TickerProviderStateMixin]. + vsync: this, + duration: const Duration(seconds: 2), + )..addListener(() { + setState(() {}); + }); + controller.repeat(reverse: true); + super.initState(); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Padding( + padding: const EdgeInsets.all(20.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + 'Circular progress indicator', + style: Theme.of(context).textTheme.titleLarge, + ), + const SizedBox(height: 30), + CircularProgressIndicator( + value: controller.value, + semanticsLabel: 'Circular progress indicator', + ), + const SizedBox(height: 10), + Row( + children: [ + Expanded( + child: Text( + 'determinate Mode', + style: Theme.of(context).textTheme.titleSmall, + ), + ), + Switch( + value: determinate, + onChanged: (bool value) { + setState(() { + determinate = value; + if (determinate) { + controller.stop(); + } else { + controller + ..forward(from: controller.value) + ..repeat(); + } + }); + }, + ), + ], + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/linear_progress_indicator.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/linear_progress_indicator.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..7e2e7c35873edc17bfe11ba370d2c179a03ccb04 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/linear_progress_indicator.0.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [LinearProgressIndicator]. + +void main() => runApp(const ProgressIndicatorApp()); + +class ProgressIndicatorApp extends StatelessWidget { + const ProgressIndicatorApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ProgressIndicatorExample(), + ); + } +} + +class ProgressIndicatorExample extends StatefulWidget { + const ProgressIndicatorExample({super.key}); + + @override + State createState() => _ProgressIndicatorExampleState(); +} + +class _ProgressIndicatorExampleState extends State with TickerProviderStateMixin { + late AnimationController controller; + + @override + void initState() { + controller = AnimationController( + /// [AnimationController]s can be created with `vsync: this` because of + /// [TickerProviderStateMixin]. + vsync: this, + duration: const Duration(seconds: 5), + )..addListener(() { + setState(() {}); + }); + controller.repeat(reverse: true); + super.initState(); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Padding( + padding: const EdgeInsets.all(20.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + const Text( + 'Linear progress indicator with a fixed color', + style: TextStyle(fontSize: 20), + ), + LinearProgressIndicator( + value: controller.value, + semanticsLabel: 'Linear progress indicator', + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/linear_progress_indicator.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/linear_progress_indicator.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..9a954e46ebe35b83dbea42630af54f3b3c96bee3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/progress_indicator/linear_progress_indicator.1.dart @@ -0,0 +1,102 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [LinearProgressIndicator]. + +void main() => runApp(const ProgressIndicatorApp()); + +class ProgressIndicatorApp extends StatelessWidget { + const ProgressIndicatorApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true, colorSchemeSeed: const Color(0xff6750a4)), + home: const ProgressIndicatorExample(), + ); + } +} + +class ProgressIndicatorExample extends StatefulWidget { + const ProgressIndicatorExample({super.key}); + + @override + State createState() => _ProgressIndicatorExampleState(); +} + +class _ProgressIndicatorExampleState extends State with TickerProviderStateMixin { + late AnimationController controller; + bool determinate = false; + + @override + void initState() { + controller = AnimationController( + /// [AnimationController]s can be created with `vsync: this` because of + /// [TickerProviderStateMixin]. + vsync: this, + duration: const Duration(seconds: 2), + )..addListener(() { + setState(() {}); + }); + controller.repeat(); + super.initState(); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Padding( + padding: const EdgeInsets.all(20.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text( + 'Linear progress indicator', + style: TextStyle(fontSize: 20), + ), + const SizedBox(height: 30), + LinearProgressIndicator( + value: controller.value, + semanticsLabel: 'Linear progress indicator', + ), + const SizedBox(height: 10), + Row( + children: [ + Expanded( + child: Text( + 'determinate Mode', + style: Theme.of(context).textTheme.titleSmall, + ), + ), + Switch( + value: determinate, + onChanged: (bool value) { + setState(() { + determinate = value; + if (determinate) { + controller.stop(); + } else { + controller + ..forward(from: controller.value) + ..repeat(); + } + }); + }, + ), + ], + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio/radio.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio/radio.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..4797a6f7d903d403ea09519940bf0691101adaef --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio/radio.0.dart @@ -0,0 +1,70 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Radio]. + +void main() => runApp(const RadioExampleApp()); + +class RadioExampleApp extends StatelessWidget { + const RadioExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Radio Sample')), + body: const Center( + child: RadioExample(), + ), + ), + ); + } +} + +enum SingingCharacter { lafayette, jefferson } + +class RadioExample extends StatefulWidget { + const RadioExample({super.key}); + + @override + State createState() => _RadioExampleState(); +} + +class _RadioExampleState extends State { + SingingCharacter? _character = SingingCharacter.lafayette; + + @override + Widget build(BuildContext context) { + return Column( + children: [ + ListTile( + title: const Text('Lafayette'), + leading: Radio( + value: SingingCharacter.lafayette, + groupValue: _character, + onChanged: (SingingCharacter? value) { + setState(() { + _character = value; + }); + }, + ), + ), + ListTile( + title: const Text('Thomas Jefferson'), + leading: Radio( + value: SingingCharacter.jefferson, + groupValue: _character, + onChanged: (SingingCharacter? value) { + setState(() { + _character = value; + }); + }, + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio/radio.toggleable.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio/radio.toggleable.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..fbe38a677fe1c27b92eb90c79fb69001b1307e80 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio/radio.toggleable.0.dart @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Radio.toggleable]. + +void main() => runApp(const ToggleableExampleApp()); + +class ToggleableExampleApp extends StatelessWidget { + const ToggleableExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Radio Sample')), + body: const ToggleableExample(), + ), + ); + } +} + +class ToggleableExample extends StatefulWidget { + const ToggleableExample({super.key}); + + @override + State createState() => _ToggleableExampleState(); +} + +class _ToggleableExampleState extends State { + int? groupValue; + static const List selections = [ + 'Hercules Mulligan', + 'Eliza Hamilton', + 'Philip Schuyler', + 'Maria Reynolds', + 'Samuel Seabury', + ]; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: ListView.builder( + itemBuilder: (BuildContext context, int index) { + return Row( + mainAxisSize: MainAxisSize.min, + children: [ + Radio( + value: index, + groupValue: groupValue, + // TRY THIS: Try setting the toggleable value to false and + // see how that changes the behavior of the widget. + toggleable: true, + onChanged: (int? value) { + setState(() { + groupValue = value; + }); + }), + Text(selections[index]), + ], + ); + }, + itemCount: selections.length, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/custom_labeled_radio.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/custom_labeled_radio.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..80061a371336364e4344df90e1f721b454894a58 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/custom_labeled_radio.0.dart @@ -0,0 +1,118 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/gestures.dart'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for custom labeled radio. + +void main() => runApp(const LabeledRadioApp()); + +class LabeledRadioApp extends StatelessWidget { + const LabeledRadioApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('Custom Labeled Radio Sample')), + body: const LabeledRadioExample(), + ), + ); + } +} + +class LinkedLabelRadio extends StatelessWidget { + const LinkedLabelRadio({ + super.key, + required this.label, + required this.padding, + required this.groupValue, + required this.value, + required this.onChanged, + }); + + final String label; + final EdgeInsets padding; + final bool groupValue; + final bool value; + final ValueChanged onChanged; + + @override + Widget build(BuildContext context) { + return Padding( + padding: padding, + child: Row( + children: [ + Radio( + groupValue: groupValue, + value: value, + onChanged: (bool? newValue) { + onChanged(newValue!); + }, + ), + RichText( + text: TextSpan( + text: label, + style: TextStyle( + color: Theme.of(context).colorScheme.primary, + decoration: TextDecoration.underline, + ), + recognizer: TapGestureRecognizer() + ..onTap = () { + debugPrint('Label has been tapped.'); + }, + ), + ), + ], + ), + ); + } +} + +class LabeledRadioExample extends StatefulWidget { + const LabeledRadioExample({super.key}); + + @override + State createState() => _LabeledRadioExampleState(); +} + +class _LabeledRadioExampleState extends State { + bool _isRadioSelected = false; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + LinkedLabelRadio( + label: 'First tappable label text', + padding: const EdgeInsets.symmetric(horizontal: 5.0), + value: true, + groupValue: _isRadioSelected, + onChanged: (bool newValue) { + setState(() { + _isRadioSelected = newValue; + }); + }, + ), + LinkedLabelRadio( + label: 'Second tappable label text', + padding: const EdgeInsets.symmetric(horizontal: 5.0), + value: false, + groupValue: _isRadioSelected, + onChanged: (bool newValue) { + setState(() { + _isRadioSelected = newValue; + }); + }, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/custom_labeled_radio.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/custom_labeled_radio.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..1eaabbc809da79677f5984d41f4e9010b0f65033 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/custom_labeled_radio.1.dart @@ -0,0 +1,111 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for custom labeled radio. + +void main() => runApp(const LabeledRadioApp()); + +class LabeledRadioApp extends StatelessWidget { + const LabeledRadioApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('Custom Labeled Radio Sample')), + body: const LabeledRadioExample(), + ), + ); + } +} + +class LabeledRadio extends StatelessWidget { + const LabeledRadio({ + super.key, + required this.label, + required this.padding, + required this.groupValue, + required this.value, + required this.onChanged, + }); + + final String label; + final EdgeInsets padding; + final bool groupValue; + final bool value; + final ValueChanged onChanged; + + @override + Widget build(BuildContext context) { + return InkWell( + onTap: () { + if (value != groupValue) { + onChanged(value); + } + }, + child: Padding( + padding: padding, + child: Row( + children: [ + Radio( + groupValue: groupValue, + value: value, + onChanged: (bool? newValue) { + onChanged(newValue!); + }, + ), + Text(label), + ], + ), + ), + ); + } +} + +class LabeledRadioExample extends StatefulWidget { + const LabeledRadioExample({super.key}); + + @override + State createState() => _LabeledRadioExampleState(); +} + +class _LabeledRadioExampleState extends State { + bool _isRadioSelected = false; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + LabeledRadio( + label: 'This is the first label text', + padding: const EdgeInsets.symmetric(horizontal: 5.0), + value: true, + groupValue: _isRadioSelected, + onChanged: (bool newValue) { + setState(() { + _isRadioSelected = newValue; + }); + }, + ), + LabeledRadio( + label: 'This is the second label text', + padding: const EdgeInsets.symmetric(horizontal: 5.0), + value: false, + groupValue: _isRadioSelected, + onChanged: (bool newValue) { + setState(() { + _isRadioSelected = newValue; + }); + }, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..f54f2526662ad19661ca744b27fee28d5f7668b6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.0.dart @@ -0,0 +1,65 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [RadioListTile]. + +void main() => runApp(const RadioListTileApp()); + +class RadioListTileApp extends StatelessWidget { + const RadioListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('RadioListTile Sample')), + body: const RadioListTileExample(), + ), + ); + } +} + +enum SingingCharacter { lafayette, jefferson } + +class RadioListTileExample extends StatefulWidget { + const RadioListTileExample({super.key}); + + @override + State createState() => _RadioListTileExampleState(); +} + +class _RadioListTileExampleState extends State { + SingingCharacter? _character = SingingCharacter.lafayette; + + @override + Widget build(BuildContext context) { + return Column( + children: [ + RadioListTile( + title: const Text('Lafayette'), + value: SingingCharacter.lafayette, + groupValue: _character, + onChanged: (SingingCharacter? value) { + setState(() { + _character = value; + }); + }, + ), + RadioListTile( + title: const Text('Thomas Jefferson'), + value: SingingCharacter.jefferson, + groupValue: _character, + onChanged: (SingingCharacter? value) { + setState(() { + _character = value; + }); + }, + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..116655320cf160b0977764693719493f147060e5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.1.dart @@ -0,0 +1,81 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [RadioListTile]. + +void main() => runApp(const RadioListTileApp()); + +class RadioListTileApp extends StatelessWidget { + const RadioListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const RadioListTileExample(), + ); + } +} + +enum Groceries { pickles, tomato, lettuce } + +class RadioListTileExample extends StatefulWidget { + const RadioListTileExample({super.key}); + + @override + State createState() => _RadioListTileExampleState(); +} + +class _RadioListTileExampleState extends State { + Groceries? _groceryItem = Groceries.pickles; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('RadioListTile Sample')), + body: Column( + children: [ + RadioListTile( + value: Groceries.pickles, + groupValue: _groceryItem, + onChanged: (Groceries? value) { + setState(() { + _groceryItem = value; + }); + }, + title: const Text('Pickles'), + subtitle: const Text('Supporting text'), + ), + RadioListTile( + value: Groceries.tomato, + groupValue: _groceryItem, + onChanged: (Groceries? value) { + setState(() { + _groceryItem = value; + }); + }, + title: const Text('Tomato'), + subtitle: const Text( + 'Longer supporting text to demonstrate how the text wraps and the radio is centered vertically with the text.'), + ), + RadioListTile( + value: Groceries.lettuce, + groupValue: _groceryItem, + onChanged: (Groceries? value) { + setState(() { + _groceryItem = value; + }); + }, + title: const Text('Lettuce'), + subtitle: const Text( + "Longer supporting text to demonstrate how the text wraps and how setting 'RadioListTile.isThreeLine = true' aligns the radio to the top vertically with the text."), + isThreeLine: true, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.toggleable.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.toggleable.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..6fdb158243cd2723a36fb9ddc7d7ce3177cd8174 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/radio_list_tile/radio_list_tile.toggleable.0.dart @@ -0,0 +1,64 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [RadioListTile.toggleable]. + +void main() => runApp(const RadioListTileApp()); + +class RadioListTileApp extends StatelessWidget { + const RadioListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('RadioListTile.toggleable Sample')), + body: const RadioListTileExample(), + ), + ); + } +} + +class RadioListTileExample extends StatefulWidget { + const RadioListTileExample({super.key}); + + @override + State createState() => _RadioListTileExampleState(); +} + +class _RadioListTileExampleState extends State { + int? groupValue; + static const List selections = [ + 'Hercules Mulligan', + 'Eliza Hamilton', + 'Philip Schuyler', + 'Maria Reynolds', + 'Samuel Seabury', + ]; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: ListView.builder( + itemBuilder: (BuildContext context, int index) { + return RadioListTile( + value: index, + groupValue: groupValue, + toggleable: true, + title: Text(selections[index]), + onChanged: (int? value) { + setState(() { + groupValue = value; + }); + }, + ); + }, + itemCount: selections.length, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/range_slider/range_slider.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/range_slider/range_slider.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..31301e3aa313b90c16202e4b3ab9cc452b59e309 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/range_slider/range_slider.0.dart @@ -0,0 +1,52 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [RangeSlider]. + +void main() => runApp(const RangeSliderExampleApp()); + +class RangeSliderExampleApp extends StatelessWidget { + const RangeSliderExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('RangeSlider Sample')), + body: const RangeSliderExample(), + ), + ); + } +} + +class RangeSliderExample extends StatefulWidget { + const RangeSliderExample({super.key}); + + @override + State createState() => _RangeSliderExampleState(); +} + +class _RangeSliderExampleState extends State { + RangeValues _currentRangeValues = const RangeValues(40, 80); + + @override + Widget build(BuildContext context) { + return RangeSlider( + values: _currentRangeValues, + max: 100, + divisions: 5, + labels: RangeLabels( + _currentRangeValues.start.round().toString(), + _currentRangeValues.end.round().toString(), + ), + onChanged: (RangeValues values) { + setState(() { + _currentRangeValues = values; + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/refresh_indicator/refresh_indicator.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/refresh_indicator/refresh_indicator.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..78d6fb5fdc2b1e7a57f783362deb39bb0c5d6517 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/refresh_indicator/refresh_indicator.0.dart @@ -0,0 +1,68 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [RefreshIndicator]. + +void main() => runApp(const RefreshIndicatorExampleApp()); + +class RefreshIndicatorExampleApp extends StatelessWidget { + const RefreshIndicatorExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: RefreshIndicatorExample(), + ); + } +} + +class RefreshIndicatorExample extends StatefulWidget { + const RefreshIndicatorExample({super.key}); + + @override + State createState() => _RefreshIndicatorExampleState(); +} + +class _RefreshIndicatorExampleState extends State { + final GlobalKey _refreshIndicatorKey = GlobalKey(); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('RefreshIndicator Sample'), + ), + body: RefreshIndicator( + key: _refreshIndicatorKey, + color: Colors.white, + backgroundColor: Colors.blue, + strokeWidth: 4.0, + onRefresh: () async { + // Replace this delay with the code to be executed during refresh + // and return a Future when code finishes execution. + return Future.delayed(const Duration(seconds: 3)); + }, + // Pull from top to show refresh indicator. + child: ListView.builder( + itemCount: 25, + itemBuilder: (BuildContext context, int index) { + return ListTile( + title: Text('Item $index'), + ); + }, + ), + ), + floatingActionButton: FloatingActionButton.extended( + onPressed: () { + // Show refresh indicator programmatically on button tap. + _refreshIndicatorKey.currentState?.show(); + }, + icon: const Icon(Icons.refresh), + label: const Text('Show Indicator'), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/refresh_indicator/refresh_indicator.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/refresh_indicator/refresh_indicator.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..c389d404ab7623ebbfed2ad0b753a77c81c36768 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/refresh_indicator/refresh_indicator.1.dart @@ -0,0 +1,100 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; + +/// Flutter code sample for [RefreshIndicator]. + +void main() => runApp(const RefreshIndicatorExampleApp()); + +class RefreshIndicatorExampleApp extends StatelessWidget { + const RefreshIndicatorExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + scrollBehavior: const MaterialScrollBehavior().copyWith(dragDevices: PointerDeviceKind.values.toSet()), + home: const RefreshIndicatorExample(), + ); + } +} + +class RefreshIndicatorExample extends StatelessWidget { + const RefreshIndicatorExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('RefreshIndicator Sample'), + ), + body: RefreshIndicator( + color: Colors.white, + backgroundColor: Colors.blue, + onRefresh: () async { + // Replace this delay with the code to be executed during refresh + // and return asynchronous code + return Future.delayed(const Duration(seconds: 3)); + }, + // This check is used to customize listening to scroll notifications + // from the widget's children. + // + // By default this is set to `notification.depth == 0`, which ensures + // the only the scroll notifications from the first scroll view are listened to. + // + // Here setting `notification.depth == 1` triggers the refresh indicator + // when overscrolling the nested scroll view. + notificationPredicate: (ScrollNotification notification) { + return notification.depth == 1; + }, + child: CustomScrollView( + slivers: [ + SliverToBoxAdapter( + child: Container( + height: 100, + alignment: Alignment.center, + color: Colors.pink[100], + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text( + 'Pull down here', + style: Theme.of(context).textTheme.headlineMedium, + ), + const Text("RefreshIndicator won't trigger"), + ], + ), + ), + ), + SliverToBoxAdapter( + child: Container( + color: Colors.green[100], + height: 300, + child: ListView.builder( + itemCount: 25, + itemBuilder: (BuildContext context, int index) { + return const ListTile( + title: Text('Pull down here'), + subtitle: Text('RefreshIndicator will trigger'), + ); + }, + ), + ), + ), + SliverList.builder( + itemCount: 20, + itemBuilder: (BuildContext context, int index) { + return const ListTile( + title: Text('Pull down here'), + subtitle: Text("Refresh indicator won't trigger"), + ); + } + ) + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e5a798eb7a3bc40e8378588c99657a117d8f9e87 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.0.dart @@ -0,0 +1,62 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ReorderableListView]. + +void main() => runApp(const ReorderableApp()); + +class ReorderableApp extends StatelessWidget { + const ReorderableApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ReorderableListView Sample')), + body: const ReorderableExample(), + ), + ); + } +} + +class ReorderableExample extends StatefulWidget { + const ReorderableExample({super.key}); + + @override + State createState() => _ReorderableListViewExampleState(); +} + +class _ReorderableListViewExampleState extends State { + final List _items = List.generate(50, (int index) => index); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final Color oddItemColor = colorScheme.primary.withOpacity(0.05); + final Color evenItemColor = colorScheme.primary.withOpacity(0.15); + + return ReorderableListView( + padding: const EdgeInsets.symmetric(horizontal: 40), + children: [ + for (int index = 0; index < _items.length; index += 1) + ListTile( + key: Key('$index'), + tileColor: _items[index].isOdd ? oddItemColor : evenItemColor, + title: Text('Item ${_items[index]}'), + ), + ], + onReorder: (int oldIndex, int newIndex) { + setState(() { + if (oldIndex < newIndex) { + newIndex -= 1; + } + final int item = _items.removeAt(oldIndex); + _items.insert(newIndex, item); + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..9f4892037155cac070215d9c967148509db56592 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.1.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:ui'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ReorderableListView]. + +void main() => runApp(const ReorderableApp()); + +class ReorderableApp extends StatelessWidget { + const ReorderableApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ReorderableListView Sample')), + body: const ReorderableExample(), + ), + ); + } +} + +class ReorderableExample extends StatefulWidget { + const ReorderableExample({super.key}); + + @override + State createState() => _ReorderableExampleState(); +} + +class _ReorderableExampleState extends State { + final List _items = List.generate(50, (int index) => index); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final Color oddItemColor = colorScheme.secondary.withOpacity(0.05); + final Color evenItemColor = colorScheme.secondary.withOpacity(0.15); + final Color draggableItemColor = colorScheme.secondary; + + Widget proxyDecorator(Widget child, int index, Animation animation) { + return AnimatedBuilder( + animation: animation, + builder: (BuildContext context, Widget? child) { + final double animValue = Curves.easeInOut.transform(animation.value); + final double elevation = lerpDouble(0, 6, animValue)!; + return Material( + elevation: elevation, + color: draggableItemColor, + shadowColor: draggableItemColor, + child: child, + ); + }, + child: child, + ); + } + + return ReorderableListView( + padding: const EdgeInsets.symmetric(horizontal: 40), + proxyDecorator: proxyDecorator, + children: [ + for (int index = 0; index < _items.length; index += 1) + ListTile( + key: Key('$index'), + tileColor: _items[index].isOdd ? oddItemColor : evenItemColor, + title: Text('Item ${_items[index]}'), + ), + ], + onReorder: (int oldIndex, int newIndex) { + setState(() { + if (oldIndex < newIndex) { + newIndex -= 1; + } + final int item = _items.removeAt(oldIndex); + _items.insert(newIndex, item); + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..5ae8d3624c7bc30107e5397c175cad18d7b74c3a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.2.dart @@ -0,0 +1,94 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:ui'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ReorderableListView]. + +void main() => runApp(const ReorderableApp()); + +class ReorderableApp extends StatelessWidget { + const ReorderableApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('ReorderableListView Sample')), + body: const ReorderableExample(), + ), + ); + } +} + +class ReorderableExample extends StatefulWidget { + const ReorderableExample({super.key}); + + @override + State createState() => _ReorderableExampleState(); +} + +class _ReorderableExampleState extends State { + final List _items = List.generate(50, (int index) => index); + + @override + Widget build(BuildContext context) { + final Color oddItemColor = Colors.lime.shade100; + final Color evenItemColor = Colors.deepPurple.shade100; + + final List cards = [ + for (int index = 0; index < _items.length; index += 1) + Card( + key: Key('$index'), + color: _items[index].isOdd ? oddItemColor : evenItemColor, + child: SizedBox( + height: 80, + child: Center( + child: Text('Card ${_items[index]}'), + ), + ), + ), + ]; + + Widget proxyDecorator(Widget child, int index, Animation animation) { + return AnimatedBuilder( + animation: animation, + builder: (BuildContext context, Widget? child) { + final double animValue = Curves.easeInOut.transform(animation.value); + final double elevation = lerpDouble(1, 6, animValue)!; + final double scale = lerpDouble(1, 1.02, animValue)!; + return Transform.scale( + scale: scale, + // Create a Card based on the color and the content of the dragged one + // and set its elevation to the animated value. + child: Card( + elevation: elevation, + color: cards[index].color, + child: cards[index].child, + ), + ); + }, + child: child, + ); + } + + return ReorderableListView( + padding: const EdgeInsets.symmetric(horizontal: 40), + proxyDecorator: proxyDecorator, + onReorder: (int oldIndex, int newIndex) { + setState(() { + if (oldIndex < newIndex) { + newIndex -= 1; + } + final int item = _items.removeAt(oldIndex); + _items.insert(newIndex, item); + }); + }, + children: cards, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.build_default_drag_handles.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.build_default_drag_handles.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..6fa001366fd551d8d4c1db6fd2933cef2838d02e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.build_default_drag_handles.0.dart @@ -0,0 +1,78 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ReorderableListView.buildDefaultDragHandles]. + +void main() => runApp(const ReorderableApp()); + +class ReorderableApp extends StatelessWidget { + const ReorderableApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ReorderableListView Sample')), + body: const ReorderableExample(), + ), + ); + } +} + +class ReorderableExample extends StatefulWidget { + const ReorderableExample({super.key}); + + @override + State createState() => _ReorderableExampleState(); +} + +class _ReorderableExampleState extends State { + final List _items = List.generate(50, (int index) => index); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final Color oddItemColor = colorScheme.primary.withOpacity(0.05); + final Color evenItemColor = colorScheme.primary.withOpacity(0.15); + + return ReorderableListView( + buildDefaultDragHandles: false, + children: [ + for (int index = 0; index < _items.length; index++) + ColoredBox( + key: Key('$index'), + color: _items[index].isOdd ? oddItemColor : evenItemColor, + child: Row( + children: [ + Container( + width: 64, + height: 64, + padding: const EdgeInsets.all(8), + child: ReorderableDragStartListener( + index: index, + child: Card( + color: colorScheme.primary, + elevation: 2, + ), + ), + ), + Text('Item ${_items[index]}'), + ], + ), + ), + ], + onReorder: (int oldIndex, int newIndex) { + setState(() { + if (oldIndex < newIndex) { + newIndex -= 1; + } + final int item = _items.removeAt(oldIndex); + _items.insert(newIndex, item); + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.reorderable_list_view_builder.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.reorderable_list_view_builder.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..2647a754a03c1252ff2dd244b744629ea67b687d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/reorderable_list/reorderable_list_view.reorderable_list_view_builder.0.dart @@ -0,0 +1,64 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ReorderableListView.ReorderableListView.builder]. + +void main() => runApp(const ReorderableApp()); + +class ReorderableApp extends StatelessWidget { + const ReorderableApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ReorderableListView Sample')), + body: const Center( + child: ReorderableExample(), + ), + ), + ); + } +} + +class ReorderableExample extends StatefulWidget { + const ReorderableExample({super.key}); + + @override + State createState() => _ReorderableExampleState(); +} + +class _ReorderableExampleState extends State { + final List _items = List.generate(50, (int index) => index); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final Color oddItemColor = colorScheme.primary.withOpacity(0.05); + final Color evenItemColor = colorScheme.primary.withOpacity(0.15); + + return ReorderableListView.builder( + padding: const EdgeInsets.symmetric(horizontal: 40), + itemCount: _items.length, + itemBuilder: (BuildContext context, int index) { + return ListTile( + key: Key('$index'), + tileColor: _items[index].isOdd ? oddItemColor : evenItemColor, + title: Text('Item ${_items[index]}'), + ); + }, + onReorder: (int oldIndex, int newIndex) { + setState(() { + if (oldIndex < newIndex) { + newIndex -= 1; + } + final int item = _items.removeAt(oldIndex); + _items.insert(newIndex, item); + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..6513333709467e9530c8ea76ab9f52775c2156dd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.0.dart @@ -0,0 +1,46 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Scaffold]. + +void main() => runApp(const ScaffoldExampleApp()); + +class ScaffoldExampleApp extends StatelessWidget { + const ScaffoldExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ScaffoldExample(), + ); + } +} + +class ScaffoldExample extends StatefulWidget { + const ScaffoldExample({super.key}); + + @override + State createState() => _ScaffoldExampleState(); +} + +class _ScaffoldExampleState extends State { + int _count = 0; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Sample Code'), + ), + body: Center(child: Text('You have pressed the button $_count times.')), + floatingActionButton: FloatingActionButton( + onPressed: () => setState(() => _count++), + tooltip: 'Increment Counter', + child: const Icon(Icons.add), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..c0cadf7a0f4a524746c327ee5bb1f96c29f3259d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.1.dart @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Scaffold]. + +void main() => runApp(const ScaffoldExampleApp()); + +class ScaffoldExampleApp extends StatelessWidget { + const ScaffoldExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ScaffoldExample(), + ); + } +} + +class ScaffoldExample extends StatefulWidget { + const ScaffoldExample({super.key}); + + @override + State createState() => _ScaffoldExampleState(); +} + +class _ScaffoldExampleState extends State { + int _count = 0; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Sample Code'), + ), + body: Center(child: Text('You have pressed the button $_count times.')), + backgroundColor: Colors.blueGrey.shade200, + floatingActionButton: FloatingActionButton( + onPressed: () => setState(() => _count++), + tooltip: 'Increment Counter', + child: const Icon(Icons.add), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..147628b716eafff279671cc898b4f36040f4174e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.2.dart @@ -0,0 +1,55 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Scaffold]. + +void main() => runApp(const ScaffoldExampleApp()); + +class ScaffoldExampleApp extends StatelessWidget { + const ScaffoldExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ScaffoldExample(), + ); + } +} + +class ScaffoldExample extends StatefulWidget { + const ScaffoldExample({super.key}); + + @override + State createState() => _ScaffoldExampleState(); +} + +class _ScaffoldExampleState extends State { + int _count = 0; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('Sample Code'), + ), + body: Center( + child: Text('You have pressed the button $_count times.'), + ), + bottomNavigationBar: BottomAppBar( + shape: const CircularNotchedRectangle(), + child: Container(height: 50.0), + ), + floatingActionButton: FloatingActionButton( + onPressed: () => setState(() { + _count++; + }), + tooltip: 'Increment Counter', + child: const Icon(Icons.add), + ), + floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.drawer.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.drawer.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..2731f47723be3c03ef6d5f961970ca159791ae21 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.drawer.0.dart @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Scaffold.drawer]. + +void main() => runApp(const DrawerExampleApp()); + +class DrawerExampleApp extends StatelessWidget { + const DrawerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: DrawerExample(), + ); + } +} + +class DrawerExample extends StatefulWidget { + const DrawerExample({super.key}); + + @override + State createState() => _DrawerExampleState(); +} + +class _DrawerExampleState extends State { + final GlobalKey _scaffoldKey = GlobalKey(); + + void _openDrawer() { + _scaffoldKey.currentState!.openDrawer(); + } + + void _closeDrawer() { + Navigator.of(context).pop(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + key: _scaffoldKey, + appBar: AppBar(title: const Text('Drawer Demo')), + body: Center( + child: ElevatedButton( + onPressed: _openDrawer, + child: const Text('Open Drawer'), + ), + ), + drawer: Drawer( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('This is the Drawer'), + ElevatedButton( + onPressed: _closeDrawer, + child: const Text('Close Drawer'), + ), + ], + ), + ), + ), + // Disable opening the drawer with a swipe gesture. + drawerEnableOpenDragGesture: false, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.end_drawer.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.end_drawer.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..8d3cbe140edb6f96c6a700a55d32aa0ed15708a9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.end_drawer.0.dart @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Scaffold.endDrawer]. + +void main() => runApp(const EndDrawerExampleApp()); + +class EndDrawerExampleApp extends StatelessWidget { + const EndDrawerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: EndDrawerExample(), + ); + } +} + +class EndDrawerExample extends StatefulWidget { + const EndDrawerExample({super.key}); + + @override + State createState() => _EndDrawerExampleState(); +} + +class _EndDrawerExampleState extends State { + final GlobalKey _scaffoldKey = GlobalKey(); + + void _openEndDrawer() { + _scaffoldKey.currentState!.openEndDrawer(); + } + + void _closeEndDrawer() { + Navigator.of(context).pop(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + key: _scaffoldKey, + appBar: AppBar(title: const Text('Drawer Demo')), + body: Center( + child: ElevatedButton( + onPressed: _openEndDrawer, + child: const Text('Open End Drawer'), + ), + ), + endDrawer: Drawer( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('This is the Drawer'), + ElevatedButton( + onPressed: _closeEndDrawer, + child: const Text('Close Drawer'), + ), + ], + ), + ), + ), + // Disable opening the end drawer with a swipe gesture. + endDrawerEnableOpenDragGesture: false, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.floating_action_button_animator.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.floating_action_button_animator.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..4ef8ae3df641e823fff3f93bee5b095a7b00e379 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.floating_action_button_animator.0.dart @@ -0,0 +1,120 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Scaffold.floatingActionButtonAnimator]. + +void main() => runApp(const ScaffoldFloatingActionButtonAnimatorApp()); + +class ScaffoldFloatingActionButtonAnimatorApp extends StatelessWidget { + const ScaffoldFloatingActionButtonAnimatorApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ScaffoldFloatingActionButtonAnimatorExample(), + ); + } +} + +enum FabAnimator { defaultStyle, none } +const List<(FabAnimator, String)> fabAnimatoregments = <(FabAnimator, String)>[ + (FabAnimator.defaultStyle, 'Default'), + (FabAnimator.none, 'None'), +]; + +enum FabLocation { centerFloat, endFloat, endTop } +const List<(FabLocation, String)> fabLocationegments = <(FabLocation, String)>[ + (FabLocation.centerFloat, 'centerFloat'), + (FabLocation.endFloat, 'endFloat'), + (FabLocation.endTop, 'endTop'), +]; + +class ScaffoldFloatingActionButtonAnimatorExample extends StatefulWidget { + const ScaffoldFloatingActionButtonAnimatorExample({super.key}); + + @override + State createState() => _ScaffoldFloatingActionButtonAnimatorExampleState(); +} + +class _ScaffoldFloatingActionButtonAnimatorExampleState extends State { + Set _selectedFabAnimator = {FabAnimator.defaultStyle}; + Set _selectedFabLocation = {FabLocation.endFloat}; + FloatingActionButtonAnimator? _floatingActionButtonAnimator; + FloatingActionButtonLocation? _floatingActionButtonLocation; + bool _showFab = false; + + @override + Widget build(BuildContext context) { + return Scaffold( + floatingActionButtonLocation: _floatingActionButtonLocation, + floatingActionButtonAnimator: _floatingActionButtonAnimator, + appBar: AppBar(title: const Text('FloatingActionButtonAnimator Sample')), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SegmentedButton( + selected: _selectedFabAnimator, + onSelectionChanged: (Set styles) { + setState(() { + _floatingActionButtonAnimator = switch (styles.first) { + FabAnimator.defaultStyle => null, + FabAnimator.none => FloatingActionButtonAnimator.noAnimation, + }; + _selectedFabAnimator = styles; + }); + }, + segments: fabAnimatoregments + .map>(((FabAnimator, String) fabAnimator) { + final FabAnimator animator = fabAnimator.$1; + final String label = fabAnimator.$2; + return ButtonSegment(value: animator, label: Text(label)); + }) + .toList(), + ), + const SizedBox(height: 10), + SegmentedButton( + selected: _selectedFabLocation, + onSelectionChanged: (Set styles) { + setState(() { + _floatingActionButtonLocation = switch (styles.first) { + FabLocation.centerFloat => FloatingActionButtonLocation.centerFloat, + FabLocation.endFloat => FloatingActionButtonLocation.endFloat, + FabLocation.endTop => FloatingActionButtonLocation.endTop, + }; + _selectedFabLocation = styles; + }); + }, + segments: fabLocationegments + .map>(((FabLocation, String) fabLocation) { + final FabLocation location = fabLocation.$1; + final String label = fabLocation.$2; + return ButtonSegment(value: location, label: Text(label)); + }) + .toList(), + ), + const SizedBox(height: 10), + FilledButton.icon( + onPressed: () { + setState(() { + _showFab = !_showFab; + }); + }, + icon: Icon(_showFab ? Icons.visibility_off : Icons.visibility), + label: const Text('Toggle FAB'), + ), + ], + ), + ), + floatingActionButton: !_showFab + ? null + : FloatingActionButton( + onPressed: () {}, + child: const Icon(Icons.add), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.of.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.of.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e720538f69c8356c802db9125a214a3841dbc6db --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.of.0.dart @@ -0,0 +1,66 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Scaffold.of]. + +void main() => runApp(const OfExampleApp()); + +class OfExampleApp extends StatelessWidget { + const OfExampleApp({super.key}); + + // This widget is the root of your application. + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + primarySwatch: Colors.blue, + ), + home: Scaffold( + body: const MyScaffoldBody(), + appBar: AppBar(title: const Text('Scaffold.of Example')), + ), + color: Colors.white, + ); + } +} + +class MyScaffoldBody extends StatelessWidget { + const MyScaffoldBody({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: ElevatedButton( + child: const Text('SHOW BOTTOM SHEET'), + onPressed: () { + Scaffold.of(context).showBottomSheet( + (BuildContext context) { + return Container( + alignment: Alignment.center, + height: 200, + color: Colors.amber, + child: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Text('BottomSheet'), + ElevatedButton( + child: const Text('Close BottomSheet'), + onPressed: () { + Navigator.pop(context); + }, + ), + ], + ), + ), + ); + }, + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.of.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.of.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..103df16f0fa6df0af4561e14edaedb8762fcd24a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold.of.1.dart @@ -0,0 +1,67 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Scaffold.of]. + +void main() => runApp(const OfExampleApp()); + +class OfExampleApp extends StatelessWidget { + const OfExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: OfExample(), + ); + } +} + +class OfExample extends StatelessWidget { + const OfExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Demo')), + body: Builder( + // Create an inner BuildContext so that the onPressed methods + // can refer to the Scaffold with Scaffold.of(). + builder: (BuildContext context) { + return Center( + child: ElevatedButton( + child: const Text('SHOW BOTTOM SHEET'), + onPressed: () { + Scaffold.of(context).showBottomSheet( + (BuildContext context) { + return Container( + alignment: Alignment.center, + height: 200, + color: Colors.amber, + child: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const Text('BottomSheet'), + ElevatedButton( + child: const Text('Close BottomSheet'), + onPressed: () { + Navigator.pop(context); + }, + ), + ], + ), + ), + ); + }, + ); + }, + ), + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..2e003a043849f7cfbbd0917ba8a1cdf1712a530d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger.0.dart @@ -0,0 +1,43 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ScaffoldMessenger]. + +void main() => runApp(const ScaffoldMessengerExampleApp()); + +class ScaffoldMessengerExampleApp extends StatelessWidget { + const ScaffoldMessengerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ScaffoldMessenger Sample')), + body: const Center( + child: ScaffoldMessengerExample(), + ), + ), + ); + } +} + +class ScaffoldMessengerExample extends StatelessWidget { + const ScaffoldMessengerExample({super.key}); + + @override + Widget build(BuildContext context) { + return OutlinedButton( + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text('A SnackBar has been shown.'), + ), + ); + }, + child: const Text('Show SnackBar'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger.of.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger.of.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..7c951f1c98f6c0b9b30c4d9ff056ed4e475d3713 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger.of.0.dart @@ -0,0 +1,43 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ScaffoldMessenger.of]. + +void main() => runApp(const OfExampleApp()); + +class OfExampleApp extends StatelessWidget { + const OfExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ScaffoldMessenger.of Sample')), + body: const Center( + child: OfExample(), + ), + ), + ); + } +} + +class OfExample extends StatelessWidget { + const OfExample({super.key}); + + @override + Widget build(BuildContext context) { + return ElevatedButton( + child: const Text('SHOW A SNACKBAR'), + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text('Have a snack!'), + ), + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger.of.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger.of.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..f0b04db36c958204bc3f13b6e0e0f318643f83e9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger.of.1.dart @@ -0,0 +1,61 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ScaffoldMessenger.of]. + +void main() => runApp(const OfExampleApp()); + +class OfExampleApp extends StatefulWidget { + const OfExampleApp({super.key}); + + @override + State createState() => _OfExampleAppState(); +} + +class _OfExampleAppState extends State { + final GlobalKey _scaffoldMessengerKey = GlobalKey(); + int _counter = 0; + + void _incrementCounter() { + setState(() { + _counter++; + }); + if (_counter % 10 == 0) { + _scaffoldMessengerKey.currentState!.showSnackBar(const SnackBar( + content: Text('A multiple of ten!'), + )); + } + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + scaffoldMessengerKey: _scaffoldMessengerKey, + home: Scaffold( + appBar: AppBar(title: const Text('ScaffoldMessenger Demo')), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text( + 'You have pushed the button this many times:', + ), + Text( + '$_counter', + style: Theme.of(context).textTheme.headlineMedium, + ), + ], + ), + ), + floatingActionButton: FloatingActionButton( + onPressed: _incrementCounter, + tooltip: 'Increment', + child: const Icon(Icons.add), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_material_banner.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_material_banner.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e98de5d6db2d85ba70af2e74bcea48b0f19adeb2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_material_banner.0.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ScaffoldMessengerState.showMaterialBanner]. + +void main() => runApp(const ShowMaterialBannerExampleApp()); + +class ShowMaterialBannerExampleApp extends StatelessWidget { + const ShowMaterialBannerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ScaffoldMessengerState Sample')), + body: const Center( + child: ShowMaterialBannerExample(), + ), + ), + ); + } +} + +class ShowMaterialBannerExample extends StatelessWidget { + const ShowMaterialBannerExample({super.key}); + + @override + Widget build(BuildContext context) { + return OutlinedButton( + onPressed: () { + ScaffoldMessenger.of(context).showMaterialBanner( + const MaterialBanner( + content: Text('This is a MaterialBanner'), + actions: [ + TextButton( + onPressed: null, + child: Text('DISMISS'), + ), + ], + ), + ); + }, + child: const Text('Show MaterialBanner'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..2f98624e83a391f6f50dc45b8d4cbb0d6d37d924 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.0.dart @@ -0,0 +1,43 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ScaffoldMessengerState.showSnackBar]. + +void main() => runApp(const ShowSnackBarExampleApp()); + +class ShowSnackBarExampleApp extends StatelessWidget { + const ShowSnackBarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ScaffoldMessengerState Sample')), + body: const Center( + child: ShowSnackBarExample(), + ), + ), + ); + } +} + +class ShowSnackBarExample extends StatelessWidget { + const ShowSnackBarExample({super.key}); + + @override + Widget build(BuildContext context) { + return OutlinedButton( + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text('A SnackBar has been shown.'), + ), + ); + }, + child: const Text('Show SnackBar'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..2f4229f4462569ee7cc9e2d1f94bd317346b793c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.1.dart @@ -0,0 +1,76 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SnackBar]. + +void main() => runApp(const SnackBarApp()); + +class SnackBarApp extends StatelessWidget { + const SnackBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SnackBarExample(), + ); + } +} + +class SnackBarExample extends StatefulWidget { + const SnackBarExample({super.key}); + + @override + State createState() => _SnackBarExampleState(); +} + +class _SnackBarExampleState extends State { + bool _largeLogo = false; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('SnackBar Sample')), + body: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + children: [ + ElevatedButton( + onPressed: () { + const SnackBar snackBar = SnackBar( + content: Text('A SnackBar has been shown.'), + behavior: SnackBarBehavior.floating, + ); + ScaffoldMessenger.of(context).showSnackBar(snackBar); + }, + child: const Text('Show SnackBar'), + ), + const SizedBox(height: 8.0), + ElevatedButton( + onPressed: () { + setState(() => _largeLogo = !_largeLogo); + }, + child: Text(_largeLogo ? 'Shrink Logo' : 'Grow Logo'), + ), + ], + ), + ), + // A floating [SnackBar] is positioned above [Scaffold.floatingActionButton]. + // If the Widget provided to the floatingActionButton slot takes up too much space + // for the SnackBar to be visible, an error will be thrown. + floatingActionButton: Container( + constraints: BoxConstraints.tightFor( + width: 150, + height: _largeLogo ? double.infinity : 150, + ), + decoration: const BoxDecoration( + color: Colors.blueGrey, + borderRadius: BorderRadius.all(Radius.circular(20)), + ), + child: const FlutterLogo(), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..10bfd0d4e652ff44c5ee720ad589d5759f0c9482 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_messenger_state.show_snack_bar.2.dart @@ -0,0 +1,91 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SnackBar]. + +void main() => runApp(const SnackBarApp()); + +class SnackBarApp extends StatelessWidget { + const SnackBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SnackBarExample(), + ); + } +} + +enum AnimationStyles { defaultStyle, custom, none } +const List<(AnimationStyles, String)> animationStyleSegments = <(AnimationStyles, String)>[ + (AnimationStyles.defaultStyle, 'Default'), + (AnimationStyles.custom, 'Custom'), + (AnimationStyles.none, 'None'), +]; + +class SnackBarExample extends StatefulWidget { + const SnackBarExample({super.key}); + + @override + State createState() => _SnackBarExampleState(); +} + +class _SnackBarExampleState extends State { + Set _animationStyleSelection = {AnimationStyles.defaultStyle}; + AnimationStyle? _animationStyle; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('SnackBar Sample')), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SegmentedButton( + selected: _animationStyleSelection, + onSelectionChanged: (Set styles) { + setState(() { + _animationStyle = switch (styles.first) { + AnimationStyles.defaultStyle => null, + AnimationStyles.custom => AnimationStyle( + duration: const Duration(seconds: 3), + reverseDuration: const Duration(seconds: 1), + ), + AnimationStyles.none => AnimationStyle.noAnimation, + }; + _animationStyleSelection = styles; + }); + }, + segments: animationStyleSegments + .map>(((AnimationStyles, String) shirt) { + return ButtonSegment(value: shirt.$1, label: Text(shirt.$2)); + }) + .toList(), + ), + const SizedBox(height: 10), + Builder( + builder: (BuildContext context) { + return ElevatedButton( + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar( + content: Text('I am a snack bar.'), + showCloseIcon: true, + ), + snackBarAnimationStyle: _animationStyle, + ); + }, + child: const Text('Show SnackBar'), + ); + } + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_state.show_bottom_sheet.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_state.show_bottom_sheet.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..3bda005f959975879cf83bbc3edb38fe7ef9b570 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_state.show_bottom_sheet.0.dart @@ -0,0 +1,61 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ScaffoldState.showBottomSheet]. + +void main() => runApp(const ShowBottomSheetExampleApp()); + +class ShowBottomSheetExampleApp extends StatelessWidget { + const ShowBottomSheetExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ScaffoldState Sample')), + body: const ShowBottomSheetExample(), + ), + ); + } +} + +class ShowBottomSheetExample extends StatelessWidget { + const ShowBottomSheetExample({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: ElevatedButton( + child: const Text('showBottomSheet'), + onPressed: () { + Scaffold.of(context).showBottomSheet( + (BuildContext context) { + return Container( + height: 200, + color: Colors.amber, + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.min, + children: [ + const Text('BottomSheet'), + ElevatedButton( + child: const Text('Close BottomSheet'), + onPressed: () { + Navigator.pop(context); + }, + ), + ], + ), + ), + ); + }, + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_state.show_bottom_sheet.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_state.show_bottom_sheet.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..c00a98f8d429f0d07a0c88597fea24bb0b7b64bf --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scaffold/scaffold_state.show_bottom_sheet.1.dart @@ -0,0 +1,103 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ScaffoldState.showBottomSheet]. + +void main() => runApp(const ShowBottomSheetExampleApp()); + +class ShowBottomSheetExampleApp extends StatelessWidget { + const ShowBottomSheetExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ScaffoldState BottomSheet Sample')), + body: const ShowBottomSheetExample(), + ), + ); + } +} + +enum AnimationStyles { defaultStyle, custom, none } +const List<(AnimationStyles, String)> animationStyleSegments = <(AnimationStyles, String)>[ + (AnimationStyles.defaultStyle, 'Default'), + (AnimationStyles.custom, 'Custom'), + (AnimationStyles.none, 'None'), +]; + +class ShowBottomSheetExample extends StatefulWidget { + const ShowBottomSheetExample({super.key}); + + @override + State createState() => _ShowBottomSheetExampleState(); +} + +class _ShowBottomSheetExampleState extends State { + Set _animationStyleSelection = {AnimationStyles.defaultStyle}; + AnimationStyle? _animationStyle; + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + SegmentedButton( + selected: _animationStyleSelection, + onSelectionChanged: (Set styles) { + setState(() { + _animationStyle = switch (styles.first) { + AnimationStyles.defaultStyle => null, + AnimationStyles.custom => AnimationStyle( + duration: const Duration(seconds: 3), + reverseDuration: const Duration(seconds: 1), + ), + AnimationStyles.none => AnimationStyle.noAnimation, + }; + _animationStyleSelection = styles; + }); + }, + segments: animationStyleSegments + .map>(((AnimationStyles, String) shirt) { + return ButtonSegment(value: shirt.$1, label: Text(shirt.$2)); + }) + .toList(), + ), + const SizedBox(height: 10), + ElevatedButton( + child: const Text('showBottomSheet'), + onPressed: () { + Scaffold.of(context).showBottomSheet( + sheetAnimationStyle: _animationStyle, + (BuildContext context) { + return SizedBox( + height: 200, + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + mainAxisSize: MainAxisSize.min, + children: [ + const Text('BottomSheet'), + ElevatedButton( + child: const Text('Close'), + onPressed: () { + Navigator.pop(context); + }, + ), + ], + ), + ), + ); + }, + ); + }, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scrollbar/scrollbar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scrollbar/scrollbar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..07f1eb4646ad5088ac7680529ea391360f1a8f56 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scrollbar/scrollbar.0.dart @@ -0,0 +1,43 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Scrollbar]. + +void main() => runApp(const ScrollbarExampleApp()); + +class ScrollbarExampleApp extends StatelessWidget { + const ScrollbarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Scrollbar Sample')), + body: const ScrollbarExample(), + ), + ); + } +} + +class ScrollbarExample extends StatelessWidget { + const ScrollbarExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scrollbar( + child: GridView.builder( + primary: true, + itemCount: 120, + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3), + itemBuilder: (BuildContext context, int index) { + return Center( + child: Text('item $index'), + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scrollbar/scrollbar.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scrollbar/scrollbar.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..52491ca999b6d23455a18fe03a5bb63726d05ebb --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/scrollbar/scrollbar.1.dart @@ -0,0 +1,52 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Scrollbar]. + +void main() => runApp(const ScrollbarExampleApp()); + +class ScrollbarExampleApp extends StatelessWidget { + const ScrollbarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Scrollbar Sample')), + body: const ScrollbarExample(), + ), + ); + } +} + +class ScrollbarExample extends StatefulWidget { + const ScrollbarExample({super.key}); + + @override + State createState() => _ScrollbarExampleState(); +} + +class _ScrollbarExampleState extends State { + final ScrollController _controllerOne = ScrollController(); + + @override + Widget build(BuildContext context) { + return Scrollbar( + controller: _controllerOne, + thumbVisibility: true, + child: GridView.builder( + controller: _controllerOne, + itemCount: 120, + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3), + itemBuilder: (BuildContext context, int index) { + return Center( + child: Text('item $index'), + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..262befcabb90e82845b0450b7b233f126bd8a4e1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.0.dart @@ -0,0 +1,135 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SearchAnchor.bar]. + +void main() => runApp(const SearchBarApp()); + +class SearchBarApp extends StatefulWidget { + const SearchBarApp({super.key}); + + @override + State createState() => _SearchBarAppState(); +} + +class _SearchBarAppState extends State { + Color? selectedColorSeed; + List searchHistory = []; + + Iterable getHistoryList(SearchController controller) { + return searchHistory.map( + (ColorLabel color) => ListTile( + leading: const Icon(Icons.history), + title: Text(color.label), + trailing: IconButton( + icon: const Icon(Icons.call_missed), + onPressed: () { + controller.text = color.label; + controller.selection = TextSelection.collapsed(offset: controller.text.length); + }, + ), + ), + ); + } + + Iterable getSuggestions(SearchController controller) { + final String input = controller.value.text; + return ColorLabel.values.where((ColorLabel color) => color.label.contains(input)).map( + (ColorLabel filteredColor) => ListTile( + leading: CircleAvatar(backgroundColor: filteredColor.color), + title: Text(filteredColor.label), + trailing: IconButton( + icon: const Icon(Icons.call_missed), + onPressed: () { + controller.text = filteredColor.label; + controller.selection = TextSelection.collapsed(offset: controller.text.length); + }, + ), + onTap: () { + controller.closeView(filteredColor.label); + handleSelection(filteredColor); + }, + ), + ); + } + + void handleSelection(ColorLabel selectedColor) { + setState(() { + selectedColorSeed = selectedColor.color; + if (searchHistory.length >= 5) { + searchHistory.removeLast(); + } + searchHistory.insert(0, selectedColor); + }); + } + + @override + Widget build(BuildContext context) { + final ThemeData themeData = ThemeData(useMaterial3: true, colorSchemeSeed: selectedColorSeed); + final ColorScheme colors = themeData.colorScheme; + + return MaterialApp( + theme: themeData, + home: Scaffold( + appBar: AppBar(title: const Text('Search Bar Sample')), + body: Align( + alignment: Alignment.topCenter, + child: Column( + children: [ + SearchAnchor.bar( + barHintText: 'Search colors', + suggestionsBuilder: (BuildContext context, SearchController controller) { + if (controller.text.isEmpty) { + if (searchHistory.isNotEmpty) { + return getHistoryList(controller); + } + return [Center(child: Text('No search history.', style: TextStyle(color: colors.outline)))]; + } + return getSuggestions(controller); + }, + ), + cardSize, + Card(color: colors.primary, child: cardSize), + Card(color: colors.onPrimary, child: cardSize), + Card(color: colors.primaryContainer, child: cardSize), + Card(color: colors.onPrimaryContainer, child: cardSize), + Card(color: colors.secondary, child: cardSize), + Card(color: colors.onSecondary, child: cardSize), + ], + ), + ), + ), + ); + } +} + +SizedBox cardSize = const SizedBox( + width: 80, + height: 30, +); + +enum ColorLabel { + red('red', Colors.red), + orange('orange', Colors.orange), + yellow('yellow', Colors.yellow), + green('green', Colors.green), + blue('blue', Colors.blue), + indigo('indigo', Colors.indigo), + violet('violet', Color(0xFF8F00FF)), + purple('purple', Colors.purple), + pink('pink', Colors.pink), + silver('silver', Color(0xFF808080)), + gold('gold', Color(0xFFFFD700)), + beige('beige', Color(0xFFF5F5DC)), + brown('brown', Colors.brown), + grey('grey', Colors.grey), + black('black', Colors.black), + white('white', Colors.white); + + const ColorLabel(this.label, this.color); + final String label; + final Color color; +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..aaf004080deedfe211d935c1c7cdb5eea70fe4a1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.1.dart @@ -0,0 +1,87 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for pinned [SearchAnchor] while scrolling. + +void main() { + runApp(const PinnedSearchBarApp()); +} + +class PinnedSearchBarApp extends StatefulWidget { + const PinnedSearchBarApp({super.key}); + + @override + State createState() => _PinnedSearchBarAppState(); +} + +class _PinnedSearchBarAppState extends State { + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true, colorSchemeSeed: const Color(0xff6750a4)), + home: Scaffold( + body: SafeArea( + child: CustomScrollView( + slivers: [ + SliverAppBar( + clipBehavior: Clip.none, + shape: const StadiumBorder(), + scrolledUnderElevation: 0.0, + titleSpacing: 0.0, + backgroundColor: Colors.transparent, + floating: true, // We can also uncomment this line and set `pinned` to true to see a pinned search bar. + title: SearchAnchor.bar( + suggestionsBuilder: (BuildContext context, SearchController controller) { + return List.generate( + 5, + (int index) { + return ListTile( + titleAlignment: ListTileTitleAlignment.center, + title: Text('Initial list item $index'), + ); + }, + ); + }, + ), + ), + // The listed items below are just for filling the screen + // so we can see the scrolling effect. + SliverToBoxAdapter( + child: Padding( + padding: const EdgeInsets.all(20), + child: SizedBox( + height: 100.0, + child: ListView.builder( + scrollDirection: Axis.horizontal, + itemCount: 10, + itemBuilder: (BuildContext context, int index) { + return SizedBox( + width: 100.0, + child: Card( + child: Center(child: Text('Card $index')), + ), + ); + }, + ), + ), + ), + ), + SliverToBoxAdapter( + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 20), + child: Container( + height: 1000, + color: Colors.deepPurple.withOpacity(0.5), + ), + ), + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..a5a28682cbaf26a41e5fe7351684124639af1296 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.2.dart @@ -0,0 +1,64 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SearchAnchor]. + +void main() => runApp(const SearchBarApp()); + +class SearchBarApp extends StatefulWidget { + const SearchBarApp({super.key}); + + @override + State createState() => _SearchBarAppState(); +} + +class _SearchBarAppState extends State { + final SearchController controller = SearchController(); + + @override + Widget build(BuildContext context) { + final ThemeData themeData = ThemeData(useMaterial3: true); + + return MaterialApp( + theme: themeData, + home: Scaffold( + appBar: AppBar(title: const Text('Search Anchor Sample')), + body: Column( + children: [ + SearchAnchor( + searchController: controller, + builder: (BuildContext context, SearchController controller) { + return IconButton( + icon: const Icon(Icons.search), + onPressed: () { + controller.openView(); + }, + ); + }, + suggestionsBuilder: (BuildContext context, SearchController controller) { + return List.generate(5, (int index) { + final String item = 'item $index'; + return ListTile( + title: Text(item), + onTap: () { + setState(() { + controller.closeView(item); + }); + }, + ); + }); + }), + Center( + child: controller.text.isEmpty + ? const Text('No item selected') + : Text('Selected item: ${controller.value.text}'), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..e0eae6b16021f6c136c185d85450bfe74c40afd1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.3.dart @@ -0,0 +1,98 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SearchAnchor]. + +const Duration fakeAPIDuration = Duration(seconds: 1); + +void main() => runApp(const SearchAnchorAsyncExampleApp()); + +class SearchAnchorAsyncExampleApp extends StatelessWidget { + const SearchAnchorAsyncExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('SearchAnchor - async'), + ), + body: const Center( + child: _AsyncSearchAnchor(), + ), + ), + ); + } +} + +class _AsyncSearchAnchor extends StatefulWidget { + const _AsyncSearchAnchor(); + + @override + State<_AsyncSearchAnchor > createState() => _AsyncSearchAnchorState(); +} + +class _AsyncSearchAnchorState extends State<_AsyncSearchAnchor > { + // The query currently being searched for. If null, there is no pending + // request. + String? _searchingWithQuery; + + // The most recent options received from the API. + late Iterable _lastOptions = []; + + @override + Widget build(BuildContext context) { + return SearchAnchor( + builder: (BuildContext context, SearchController controller) { + return IconButton( + icon: const Icon(Icons.search), + onPressed: () { + controller.openView(); + }, + ); + }, + suggestionsBuilder: (BuildContext context, SearchController controller) async { + _searchingWithQuery = controller.text; + final List options = (await _FakeAPI.search(_searchingWithQuery!)).toList(); + + // If another search happened after this one, throw away these options. + // Use the previous options instead and wait for the newer request to + // finish. + if (_searchingWithQuery != controller.text) { + return _lastOptions; + } + + _lastOptions = List.generate(options.length, (int index) { + final String item = options[index]; + return ListTile( + title: Text(item), + ); + }); + + return _lastOptions; + }); + } +} + +// Mimics a remote API. +class _FakeAPI { + static const List _kOptions = [ + 'aardvark', + 'bobcat', + 'chameleon', + ]; + + // Searches the options, but injects a fake "network" delay. + static Future> search(String query) async { + await Future.delayed(fakeAPIDuration); // Fake 1 second delay. + if (query == '') { + return const Iterable.empty(); + } + return _kOptions.where((String option) { + return option.contains(query.toLowerCase()); + }); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.4.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.4.dart new file mode 100644 index 0000000000000000000000000000000000000000..d7e90ea12a066cfa6a5f9d3f3c8c137e779bd0f3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_anchor.4.dart @@ -0,0 +1,178 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SearchAnchor]. + +const Duration fakeAPIDuration = Duration(seconds: 1); +const Duration debounceDuration = Duration(milliseconds: 500); + +void main() => runApp(const SearchAnchorAsyncExampleApp()); + +class SearchAnchorAsyncExampleApp extends StatelessWidget { + const SearchAnchorAsyncExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('SearchAnchor - async and debouncing'), + ), + body: const Center( + child: _AsyncSearchAnchor(), + ), + ), + ); + } +} + +class _AsyncSearchAnchor extends StatefulWidget { + const _AsyncSearchAnchor(); + + @override + State<_AsyncSearchAnchor > createState() => _AsyncSearchAnchorState(); +} + +class _AsyncSearchAnchorState extends State<_AsyncSearchAnchor > { + // The query currently being searched for. If null, there is no pending + // request. + String? _currentQuery; + + // The most recent suggestions received from the API. + late Iterable _lastOptions = []; + + late final _Debounceable?, String> _debouncedSearch; + + // Calls the "remote" API to search with the given query. Returns null when + // the call has been made obsolete. + Future?> _search(String query) async { + _currentQuery = query; + + // In a real application, there should be some error handling here. + final Iterable options = await _FakeAPI.search(_currentQuery!); + + // If another search happened after this one, throw away these options. + if (_currentQuery != query) { + return null; + } + _currentQuery = null; + + return options; + } + + @override + void initState() { + super.initState(); + _debouncedSearch = _debounce?, String>(_search); + } + + @override + Widget build(BuildContext context) { + return SearchAnchor( + builder: (BuildContext context, SearchController controller) { + return IconButton( + icon: const Icon(Icons.search), + onPressed: () { + controller.openView(); + }, + ); + }, + suggestionsBuilder: (BuildContext context, SearchController controller) async { + final List? options = (await _debouncedSearch(controller.text))?.toList(); + if (options == null) { + return _lastOptions; + } + _lastOptions = List.generate(options.length, (int index) { + final String item = options[index]; + return ListTile( + title: Text(item), + onTap: () { + debugPrint('You just selected $item'); + }, + ); + }); + + return _lastOptions; + }, + ); + } +} + +// Mimics a remote API. +class _FakeAPI { + static const List _kOptions = [ + 'aardvark', + 'bobcat', + 'chameleon', + ]; + + // Searches the options, but injects a fake "network" delay. + static Future> search(String query) async { + await Future.delayed(fakeAPIDuration); // Fake 1 second delay. + if (query == '') { + return const Iterable.empty(); + } + return _kOptions.where((String option) { + return option.contains(query.toLowerCase()); + }); + } +} + +typedef _Debounceable = Future Function(T parameter); + +/// Returns a new function that is a debounced version of the given function. +/// +/// This means that the original function will be called only after no calls +/// have been made for the given Duration. +_Debounceable _debounce(_Debounceable function) { + _DebounceTimer? debounceTimer; + + return (T parameter) async { + if (debounceTimer != null && !debounceTimer!.isCompleted) { + debounceTimer!.cancel(); + } + debounceTimer = _DebounceTimer(); + try { + await debounceTimer!.future; + } catch (error) { + if (error is _CancelException) { + return null; + } + rethrow; + } + return function(parameter); + }; +} + +// A wrapper around Timer used for debouncing. +class _DebounceTimer { + _DebounceTimer() { + _timer = Timer(debounceDuration, _onComplete); + } + + late final Timer _timer; + final Completer _completer = Completer(); + + void _onComplete() { + _completer.complete(); + } + + Future get future => _completer.future; + + bool get isCompleted => _completer.isCompleted; + + void cancel() { + _timer.cancel(); + _completer.completeError(const _CancelException()); + } +} + +// An exception indicating that the timer was canceled. +class _CancelException implements Exception { + const _CancelException(); +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..f4ed7ce16f9d9fb40abe1e05d17684db2e850538 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/search_anchor/search_bar.0.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SearchBar]. + +void main() => runApp(const SearchBarApp()); + +class SearchBarApp extends StatefulWidget { + const SearchBarApp({super.key}); + + @override + State createState() => _SearchBarAppState(); +} + +class _SearchBarAppState extends State { + bool isDark = false; + + @override + Widget build(BuildContext context) { + final ThemeData themeData = ThemeData(useMaterial3: true, brightness: isDark ? Brightness.dark : Brightness.light); + + return MaterialApp( + theme: themeData, + home: Scaffold( + appBar: AppBar(title: const Text('Search Bar Sample')), + body: Padding( + padding: const EdgeInsets.all(8.0), + child: SearchAnchor( + builder: (BuildContext context, SearchController controller) { + return SearchBar( + controller: controller, + padding: const MaterialStatePropertyAll(EdgeInsets.symmetric(horizontal: 16.0)), + onTap: () { controller.openView(); }, + onChanged: (_) { controller.openView(); }, + leading: const Icon(Icons.search), + trailing: [ + Tooltip( + message: 'Change brightness mode', + child: IconButton( + isSelected: isDark, + onPressed: () { + setState(() { + isDark = !isDark; + }); + }, + icon: const Icon(Icons.wb_sunny_outlined), + selectedIcon: const Icon(Icons.brightness_2_outlined), + ), + ) + ], + ); + }, + suggestionsBuilder: (BuildContext context, SearchController controller) { + return List.generate(5, (int index) { + final String item = 'item $index'; + return ListTile( + title: Text(item), + onTap: () { + setState(() { + controller.closeView(item); + }); + }, + ); + }); + }), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/segmented_button/segmented_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/segmented_button/segmented_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..c9ea2dd0b55fc3877c24ef17d193b51c48d33c11 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/segmented_button/segmented_button.0.dart @@ -0,0 +1,108 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SegmentedButton]. + +void main() { + runApp(const SegmentedButtonApp()); +} + +class SegmentedButtonApp extends StatelessWidget { + const SegmentedButtonApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const Scaffold( + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Spacer(), + Text('Single choice'), + SingleChoice(), + SizedBox(height: 20), + Text('Multiple choice'), + MultipleChoice(), + Spacer(), + ], + ), + ), + ), + ); + } +} + +enum Calendar { day, week, month, year } + +class SingleChoice extends StatefulWidget { + const SingleChoice({super.key}); + + @override + State createState() => _SingleChoiceState(); +} + +class _SingleChoiceState extends State { + Calendar calendarView = Calendar.day; + + @override + Widget build(BuildContext context) { + return SegmentedButton( + segments: const >[ + ButtonSegment(value: Calendar.day, label: Text('Day'), icon: Icon(Icons.calendar_view_day)), + ButtonSegment(value: Calendar.week, label: Text('Week'), icon: Icon(Icons.calendar_view_week)), + ButtonSegment(value: Calendar.month, label: Text('Month'), icon: Icon(Icons.calendar_view_month)), + ButtonSegment(value: Calendar.year, label: Text('Year'), icon: Icon(Icons.calendar_today)), + ], + selected: {calendarView}, + onSelectionChanged: (Set newSelection) { + setState(() { + // By default there is only a single segment that can be + // selected at one time, so its value is always the first + // item in the selected set. + calendarView = newSelection.first; + }); + }, + ); + } +} + +enum Sizes { extraSmall, small, medium, large, extraLarge } + +class MultipleChoice extends StatefulWidget { + const MultipleChoice({super.key}); + + @override + State createState() => _MultipleChoiceState(); +} + +class _MultipleChoiceState extends State { + Set selection = {Sizes.large, Sizes.extraLarge}; + + @override + Widget build(BuildContext context) { + return SegmentedButton( + segments: const >[ + ButtonSegment(value: Sizes.extraSmall, label: Text('XS')), + ButtonSegment(value: Sizes.small, label: Text('S')), + ButtonSegment(value: Sizes.medium, label: Text('M')), + ButtonSegment( + value: Sizes.large, + label: Text('L'), + ), + ButtonSegment(value: Sizes.extraLarge, label: Text('XL')), + ], + selected: selection, + onSelectionChanged: (Set newSelection) { + setState(() { + selection = newSelection; + }); + }, + multiSelectionEnabled: true, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/segmented_button/segmented_button.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/segmented_button/segmented_button.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..c277e55f56c644c3ec76fa7382afd598379998e7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/segmented_button/segmented_button.1.dart @@ -0,0 +1,66 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SegmentedButton.styleFrom]. + +void main() { + runApp(const SegmentedButtonApp()); +} + +class SegmentedButtonApp extends StatelessWidget { + const SegmentedButtonApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold( + body: Center( + child: SegmentedButtonExample(), + ), + ), + ); + } +} + +class SegmentedButtonExample extends StatefulWidget { + const SegmentedButtonExample({super.key}); + + @override + State createState() => _SegmentedButtonExampleState(); +} + +enum Calendar { day, week, month, year } + +class _SegmentedButtonExampleState extends State { + Calendar calendarView = Calendar.week; + + @override + Widget build(BuildContext context) { + return SegmentedButton( + style: SegmentedButton.styleFrom( + backgroundColor: Colors.grey[200], + foregroundColor: Colors.red, + selectedForegroundColor: Colors.white, + selectedBackgroundColor: Colors.green, + ), + segments: const >[ + ButtonSegment(value: Calendar.day, label: Text('Day'), icon: Icon(Icons.calendar_view_day)), + ButtonSegment(value: Calendar.week, label: Text('Week'), icon: Icon(Icons.calendar_view_week)), + ButtonSegment(value: Calendar.month, label: Text('Month'), icon: Icon(Icons.calendar_view_month)), + ButtonSegment(value: Calendar.year, label: Text('Year'), icon: Icon(Icons.calendar_today)), + ], + selected: {calendarView}, + onSelectionChanged: (Set newSelection) { + setState(() { + // By default there is only a single segment that can be + // selected at one time, so its value is always the first + // item in the selected set. + calendarView = newSelection.first; + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selectable_region/selectable_region.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selectable_region/selectable_region.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..33bfe031b1ca612b4354a50e8d5329187f323604 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selectable_region/selectable_region.0.dart @@ -0,0 +1,326 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +/// Flutter code sample for [SelectableRegion]. + +void main() => runApp(const SelectableRegionExampleApp()); + +class SelectableRegionExampleApp extends StatelessWidget { + const SelectableRegionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: SelectionArea( + child: Scaffold( + appBar: AppBar(title: const Text('SelectableRegion Sample')), + body: const Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Select this icon', style: TextStyle(fontSize: 30)), + SizedBox(height: 10), + MySelectableAdapter(child: Icon(Icons.key, size: 30)), + ], + ), + ), + ), + ), + ); + } +} + +class MySelectableAdapter extends StatelessWidget { + const MySelectableAdapter({super.key, required this.child}); + + final Widget child; + + @override + Widget build(BuildContext context) { + final SelectionRegistrar? registrar = SelectionContainer.maybeOf(context); + if (registrar == null) { + return child; + } + return MouseRegion( + cursor: SystemMouseCursors.text, + child: _SelectableAdapter( + registrar: registrar, + child: child, + ), + ); + } +} + +class _SelectableAdapter extends SingleChildRenderObjectWidget { + const _SelectableAdapter({ + required this.registrar, + required Widget child, + }) : super(child: child); + + final SelectionRegistrar registrar; + + @override + _RenderSelectableAdapter createRenderObject(BuildContext context) { + return _RenderSelectableAdapter( + DefaultSelectionStyle.of(context).selectionColor!, + registrar, + ); + } + + @override + void updateRenderObject(BuildContext context, _RenderSelectableAdapter renderObject) { + renderObject + ..selectionColor = DefaultSelectionStyle.of(context).selectionColor! + ..registrar = registrar; + } +} + +class _RenderSelectableAdapter extends RenderProxyBox with Selectable, SelectionRegistrant { + _RenderSelectableAdapter( + Color selectionColor, + SelectionRegistrar registrar, + ) : _selectionColor = selectionColor, + _geometry = ValueNotifier(_noSelection) { + this.registrar = registrar; + _geometry.addListener(markNeedsPaint); + } + + static const SelectionGeometry _noSelection = SelectionGeometry(status: SelectionStatus.none, hasContent: true); + final ValueNotifier _geometry; + + Color get selectionColor => _selectionColor; + late Color _selectionColor; + set selectionColor(Color value) { + if (_selectionColor == value) { + return; + } + _selectionColor = value; + markNeedsPaint(); + } + + // ValueListenable APIs + + @override + void addListener(VoidCallback listener) => _geometry.addListener(listener); + + @override + void removeListener(VoidCallback listener) => _geometry.removeListener(listener); + + @override + SelectionGeometry get value => _geometry.value; + + // Selectable APIs. + + @override + List get boundingBoxes => [paintBounds]; + + // Adjust this value to enlarge or shrink the selection highlight. + static const double _padding = 10.0; + Rect _getSelectionHighlightRect() { + return Rect.fromLTWH(0 - _padding, 0 - _padding, size.width + _padding * 2, size.height + _padding * 2); + } + + Offset? _start; + Offset? _end; + void _updateGeometry() { + if (_start == null || _end == null) { + _geometry.value = _noSelection; + return; + } + final Rect renderObjectRect = Rect.fromLTWH(0, 0, size.width, size.height); + final Rect selectionRect = Rect.fromPoints(_start!, _end!); + if (renderObjectRect.intersect(selectionRect).isEmpty) { + _geometry.value = _noSelection; + } else { + final Rect selectionRect = _getSelectionHighlightRect(); + final SelectionPoint firstSelectionPoint = SelectionPoint( + localPosition: selectionRect.bottomLeft, + lineHeight: selectionRect.size.height, + handleType: TextSelectionHandleType.left, + ); + final SelectionPoint secondSelectionPoint = SelectionPoint( + localPosition: selectionRect.bottomRight, + lineHeight: selectionRect.size.height, + handleType: TextSelectionHandleType.right, + ); + final bool isReversed; + if (_start!.dy > _end!.dy) { + isReversed = true; + } else if (_start!.dy < _end!.dy) { + isReversed = false; + } else { + isReversed = _start!.dx > _end!.dx; + } + _geometry.value = SelectionGeometry( + status: SelectionStatus.uncollapsed, + hasContent: true, + startSelectionPoint: isReversed ? secondSelectionPoint : firstSelectionPoint, + endSelectionPoint: isReversed ? firstSelectionPoint : secondSelectionPoint, + selectionRects: [selectionRect], + ); + } + } + + @override + SelectionResult dispatchSelectionEvent(SelectionEvent event) { + SelectionResult result = SelectionResult.none; + switch (event.type) { + case SelectionEventType.startEdgeUpdate: + case SelectionEventType.endEdgeUpdate: + final Rect renderObjectRect = Rect.fromLTWH(0, 0, size.width, size.height); + // Normalize offset in case it is out side of the rect. + final Offset point = globalToLocal((event as SelectionEdgeUpdateEvent).globalPosition); + final Offset adjustedPoint = SelectionUtils.adjustDragOffset(renderObjectRect, point); + if (event.type == SelectionEventType.startEdgeUpdate) { + _start = adjustedPoint; + } else { + _end = adjustedPoint; + } + result = SelectionUtils.getResultBasedOnRect(renderObjectRect, point); + case SelectionEventType.clear: + _start = _end = null; + case SelectionEventType.selectAll: + case SelectionEventType.selectWord: + _start = Offset.zero; + _end = Offset.infinite; + case SelectionEventType.granularlyExtendSelection: + result = SelectionResult.end; + final GranularlyExtendSelectionEvent extendSelectionEvent = event as GranularlyExtendSelectionEvent; + // Initialize the offset it there is no ongoing selection. + if (_start == null || _end == null) { + if (extendSelectionEvent.forward) { + _start = _end = Offset.zero; + } else { + _start = _end = Offset.infinite; + } + } + // Move the corresponding selection edge. + final Offset newOffset = extendSelectionEvent.forward ? Offset.infinite : Offset.zero; + if (extendSelectionEvent.isEnd) { + if (newOffset == _end) { + result = extendSelectionEvent.forward ? SelectionResult.next : SelectionResult.previous; + } + _end = newOffset; + } else { + if (newOffset == _start) { + result = extendSelectionEvent.forward ? SelectionResult.next : SelectionResult.previous; + } + _start = newOffset; + } + case SelectionEventType.directionallyExtendSelection: + result = SelectionResult.end; + final DirectionallyExtendSelectionEvent extendSelectionEvent = event as DirectionallyExtendSelectionEvent; + // Convert to local coordinates. + final double horizontalBaseLine = globalToLocal(Offset(event.dx, 0)).dx; + final Offset newOffset; + final bool forward; + switch (extendSelectionEvent.direction) { + case SelectionExtendDirection.backward: + case SelectionExtendDirection.previousLine: + forward = false; + // Initialize the offset it there is no ongoing selection. + if (_start == null || _end == null) { + _start = _end = Offset.infinite; + } + // Move the corresponding selection edge. + if (extendSelectionEvent.direction == SelectionExtendDirection.previousLine || horizontalBaseLine < 0) { + newOffset = Offset.zero; + } else { + newOffset = Offset.infinite; + } + case SelectionExtendDirection.nextLine: + case SelectionExtendDirection.forward: + forward = true; + // Initialize the offset it there is no ongoing selection. + if (_start == null || _end == null) { + _start = _end = Offset.zero; + } + // Move the corresponding selection edge. + if (extendSelectionEvent.direction == SelectionExtendDirection.nextLine || + horizontalBaseLine > size.width) { + newOffset = Offset.infinite; + } else { + newOffset = Offset.zero; + } + } + if (extendSelectionEvent.isEnd) { + if (newOffset == _end) { + result = forward ? SelectionResult.next : SelectionResult.previous; + } + _end = newOffset; + } else { + if (newOffset == _start) { + result = forward ? SelectionResult.next : SelectionResult.previous; + } + _start = newOffset; + } + } + _updateGeometry(); + return result; + } + + // This method is called when users want to copy selected content in this + // widget into clipboard. + @override + SelectedContent? getSelectedContent() { + return value.hasSelection ? const SelectedContent(plainText: 'Custom Text') : null; + } + + LayerLink? _startHandle; + LayerLink? _endHandle; + + @override + void pushHandleLayers(LayerLink? startHandle, LayerLink? endHandle) { + if (_startHandle == startHandle && _endHandle == endHandle) { + return; + } + _startHandle = startHandle; + _endHandle = endHandle; + markNeedsPaint(); + } + + @override + void paint(PaintingContext context, Offset offset) { + super.paint(context, offset); + if (!_geometry.value.hasSelection) { + return; + } + // Draw the selection highlight. + final Paint selectionPaint = Paint() + ..style = PaintingStyle.fill + ..color = _selectionColor; + context.canvas.drawRect(_getSelectionHighlightRect().shift(offset), selectionPaint); + + // Push the layer links if any. + if (_startHandle != null) { + context.pushLayer( + LeaderLayer( + link: _startHandle!, + offset: offset + value.startSelectionPoint!.localPosition, + ), + (PaintingContext context, Offset offset) {}, + Offset.zero, + ); + } + if (_endHandle != null) { + context.pushLayer( + LeaderLayer( + link: _endHandle!, + offset: offset + value.endSelectionPoint!.localPosition, + ), + (PaintingContext context, Offset offset) {}, + Offset.zero, + ); + } + } + + @override + void dispose() { + _geometry.dispose(); + super.dispose(); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selection_area/selection_area.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selection_area/selection_area.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..69f6e73b4816906c7c85be63b621b768cb91e746 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selection_area/selection_area.0.dart @@ -0,0 +1,34 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SelectionArea]. + +void main() => runApp(const SelectionAreaExampleApp()); + +class SelectionAreaExampleApp extends StatelessWidget { + const SelectionAreaExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: SelectionArea( + child: Scaffold( + appBar: AppBar(title: const Text('SelectionArea Sample')), + body: const Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Row 1'), + Text('Row 2'), + Text('Row 3'), + ], + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selection_container/selection_container.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selection_container/selection_container.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a4f52b32ebc5fb0a789bd4c64d13d8bd134265f5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selection_container/selection_container.0.dart @@ -0,0 +1,124 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +/// Flutter code sample for [SelectionContainer]. + +void main() => runApp(const SelectionContainerExampleApp()); + +class SelectionContainerExampleApp extends StatelessWidget { + const SelectionContainerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: SelectionArea( + child: Scaffold( + appBar: AppBar(title: const Text('SelectionContainer Sample')), + body: const Center( + child: SelectionAllOrNoneContainer( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Row 1'), + Text('Row 2'), + Text('Row 3'), + ], + ), + ), + ), + ), + ), + ); + } +} + +class SelectionAllOrNoneContainer extends StatefulWidget { + const SelectionAllOrNoneContainer({super.key, required this.child}); + + final Widget child; + + @override + State createState() => _SelectionAllOrNoneContainerState(); +} + +class _SelectionAllOrNoneContainerState extends State { + final SelectAllOrNoneContainerDelegate delegate = SelectAllOrNoneContainerDelegate(); + + @override + void dispose() { + delegate.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return SelectionContainer( + delegate: delegate, + child: widget.child, + ); + } +} + +class SelectAllOrNoneContainerDelegate extends MultiSelectableSelectionContainerDelegate { + Offset? _adjustedStartEdge; + Offset? _adjustedEndEdge; + bool _isSelected = false; + + // This method is called when newly added selectable is in the current + // selected range. + @override + void ensureChildUpdated(Selectable selectable) { + if (_isSelected) { + dispatchSelectionEventToChild(selectable, const SelectAllSelectionEvent()); + } + } + + @override + SelectionResult handleSelectWord(SelectWordSelectionEvent event) { + // Treat select word as select all. + return handleSelectAll(const SelectAllSelectionEvent()); + } + + @override + SelectionResult handleSelectionEdgeUpdate(SelectionEdgeUpdateEvent event) { + final Rect containerRect = Rect.fromLTWH(0, 0, containerSize.width, containerSize.height); + final Matrix4 globalToLocal = getTransformTo(null)..invert(); + final Offset localOffset = MatrixUtils.transformPoint(globalToLocal, event.globalPosition); + final Offset adjustOffset = SelectionUtils.adjustDragOffset(containerRect, localOffset); + if (event.type == SelectionEventType.startEdgeUpdate) { + _adjustedStartEdge = adjustOffset; + } else { + _adjustedEndEdge = adjustOffset; + } + // Select all content if the selection rect intercepts with the rect. + if (_adjustedStartEdge != null && _adjustedEndEdge != null) { + final Rect selectionRect = Rect.fromPoints(_adjustedStartEdge!, _adjustedEndEdge!); + if (!selectionRect.intersect(containerRect).isEmpty) { + handleSelectAll(const SelectAllSelectionEvent()); + } else { + super.handleClearSelection(const ClearSelectionEvent()); + } + } else { + super.handleClearSelection(const ClearSelectionEvent()); + } + return SelectionUtils.getResultBasedOnRect(containerRect, localOffset); + } + + @override + SelectionResult handleClearSelection(ClearSelectionEvent event) { + _adjustedStartEdge = null; + _adjustedEndEdge = null; + _isSelected = false; + return super.handleClearSelection(event); + } + + @override + SelectionResult handleSelectAll(SelectAllSelectionEvent event) { + _isSelected = true; + return super.handleSelectAll(event); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selection_container/selection_container_disabled.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selection_container/selection_container_disabled.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..79aa1d7a02ad502e22e3ccac872be99471b8c342 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/selection_container/selection_container_disabled.0.dart @@ -0,0 +1,34 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Flutter example for [SelectionContainer.disabled]. + +import 'package:flutter/material.dart'; + +void main() => runApp(const SelectionContainerDisabledExampleApp()); + +class SelectionContainerDisabledExampleApp extends StatelessWidget { + const SelectionContainerDisabledExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SelectionContainer.disabled Sample')), + body: const Center( + child: SelectionArea( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Text('Selectable text'), + SelectionContainer.disabled(child: Text('Non-selectable text')), + Text('Selectable text'), + ], + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/slider/slider.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/slider/slider.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..f73efb81c460dcc7aae3d4226a70a8fb3539ec0b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/slider/slider.0.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Slider]. + +void main() => runApp(const SliderApp()); + +class SliderApp extends StatelessWidget { + const SliderApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SliderExample(), + ); + } +} + +class SliderExample extends StatefulWidget { + const SliderExample({super.key}); + + @override + State createState() => _SliderExampleState(); +} + +class _SliderExampleState extends State { + double _currentSliderValue = 20; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Slider')), + body: Slider( + value: _currentSliderValue, + max: 100, + divisions: 5, + label: _currentSliderValue.round().toString(), + onChanged: (double value) { + setState(() { + _currentSliderValue = value; + }); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/slider/slider.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/slider/slider.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..f5c791fa1117b53c231a464ff6ba766dfb30b67a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/slider/slider.1.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Slider]. + +void main() => runApp(const SliderApp()); + +class SliderApp extends StatelessWidget { + const SliderApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + colorSchemeSeed: const Color(0xff6750a4), + useMaterial3: true, + ), + home: const SliderExample(), + ); + } +} + +class SliderExample extends StatefulWidget { + const SliderExample({super.key}); + + @override + State createState() => _SliderExampleState(); +} + +class _SliderExampleState extends State { + double _currentSliderValue = 20; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Slider')), + body: Slider( + value: _currentSliderValue, + max: 100, + divisions: 5, + label: _currentSliderValue.round().toString(), + onChanged: (double value) { + setState(() { + _currentSliderValue = value; + }); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/slider/slider.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/slider/slider.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..b5716712cc5df2a89e275503092c6230e4348b86 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/slider/slider.2.dart @@ -0,0 +1,63 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Slider]. + +void main() => runApp(const SliderApp()); + +class SliderApp extends StatelessWidget { + const SliderApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SliderExample(), + ); + } +} + +class SliderExample extends StatefulWidget { + const SliderExample({super.key}); + + @override + State createState() => _SliderExampleState(); +} + +class _SliderExampleState extends State { + double _currentSliderPrimaryValue = 0.2; + double _currentSliderSecondaryValue = 0.5; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('Slider')), + body: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Slider( + value: _currentSliderPrimaryValue, + secondaryTrackValue: _currentSliderSecondaryValue, + label: _currentSliderPrimaryValue.round().toString(), + onChanged: (double value) { + setState(() { + _currentSliderPrimaryValue = value; + }); + }, + ), + Slider( + value: _currentSliderSecondaryValue, + label: _currentSliderSecondaryValue.round().toString(), + onChanged: (double value) { + setState(() { + _currentSliderSecondaryValue = value; + }); + }, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/snack_bar/snack_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/snack_bar/snack_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..3736dc93d8205e1ebf3d2230326346177e56fe80 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/snack_bar/snack_bar.0.dart @@ -0,0 +1,49 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SnackBar]. + +void main() => runApp(const SnackBarExampleApp()); + +class SnackBarExampleApp extends StatelessWidget { + const SnackBarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SnackBar Sample')), + body: const Center( + child: SnackBarExample(), + ), + ), + ); + } +} + +class SnackBarExample extends StatelessWidget { + const SnackBarExample({super.key}); + + @override + Widget build(BuildContext context) { + return ElevatedButton( + child: const Text('Show Snackbar'), + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + content: const Text('Awesome Snackbar!'), + action: SnackBarAction( + label: 'Action', + onPressed: () { + // Code to execute. + }, + ), + ), + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/snack_bar/snack_bar.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/snack_bar/snack_bar.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..2294e1d8a3cd884730b1ff6d391049fad0c179bd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/snack_bar/snack_bar.1.dart @@ -0,0 +1,58 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SnackBar]. + +void main() => runApp(const SnackBarExampleApp()); + +class SnackBarExampleApp extends StatelessWidget { + const SnackBarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SnackBar Sample')), + body: const Center( + child: SnackBarExample(), + ), + ), + ); + } +} + +class SnackBarExample extends StatelessWidget { + const SnackBarExample({super.key}); + + @override + Widget build(BuildContext context) { + return ElevatedButton( + child: const Text('Show Snackbar'), + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + action: SnackBarAction( + label: 'Action', + onPressed: () { + // Code to execute. + }, + ), + content: const Text('Awesome SnackBar!'), + duration: const Duration(milliseconds: 1500), + width: 280.0, // Width of the SnackBar. + padding: const EdgeInsets.symmetric( + horizontal: 8.0, // Inner padding for SnackBar content. + ), + behavior: SnackBarBehavior.floating, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(10.0), + ), + ), + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/snack_bar/snack_bar.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/snack_bar/snack_bar.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..63fca4d7f9e22463ebf4278af69b666b8753788e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/snack_bar/snack_bar.2.dart @@ -0,0 +1,185 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SnackBar]. + +void main() => runApp(const SnackBarExampleApp()); + +/// A Material 3 [SnackBar] demonstrating an optional icon, in either floating +/// or fixed format. +class SnackBarExampleApp extends StatelessWidget { + const SnackBarExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('SnackBar Sample')), + body: const Center( + child: SnackBarExample(), + ), + ), + ); + } +} + +class SnackBarExample extends StatefulWidget { + const SnackBarExample({super.key}); + + @override + State createState() => _SnackBarExampleState(); +} + +class _SnackBarExampleState extends State { + SnackBarBehavior? _snackBarBehavior = SnackBarBehavior.floating; + bool _withIcon = true; + bool _withAction = true; + bool _multiLine = false; + bool _longActionLabel = false; + double _sliderValue = 0.25; + + Padding _padRow(List children) => Padding( + padding: const EdgeInsets.all(8.0), + child: Row(children: children), + ); + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.only(left: 50.0), + child: Column( + children: [ + _padRow([ + Text('Snack Bar configuration', style: Theme.of(context).textTheme.bodyLarge), + ]), + _padRow( + [ + const Text('Fixed'), + Radio( + value: SnackBarBehavior.fixed, + groupValue: _snackBarBehavior, + onChanged: (SnackBarBehavior? value) { + setState(() { + _snackBarBehavior = value; + }); + }, + ), + const Text('Floating'), + Radio( + value: SnackBarBehavior.floating, + groupValue: _snackBarBehavior, + onChanged: (SnackBarBehavior? value) { + setState(() { + _snackBarBehavior = value; + }); + }, + ), + ], + ), + _padRow( + [ + const Text('Include Icon '), + Switch( + value: _withIcon, + onChanged: (bool value) { + setState(() { + _withIcon = !_withIcon; + }); + }, + ), + ], + ), + _padRow( + [ + const Text('Include Action '), + Switch( + value: _withAction, + onChanged: (bool value) { + setState(() { + _withAction = !_withAction; + }); + }, + ), + const SizedBox(width: 16.0), + const Text('Long Action Label '), + Switch( + value: _longActionLabel, + onChanged: !_withAction + ? null + : (bool value) { + setState(() { + _longActionLabel = !_longActionLabel; + }); + }, + ), + ], + ), + _padRow( + [ + const Text('Multi Line Text'), + Switch( + value: _multiLine, + onChanged: _snackBarBehavior == SnackBarBehavior.fixed + ? null + : (bool value) { + setState(() { + _multiLine = !_multiLine; + }); + }, + ), + ], + ), + _padRow([ + const Text('Action new-line overflow threshold'), + Slider( + value: _sliderValue, + divisions: 20, + label: _sliderValue.toStringAsFixed(2), + onChanged: _snackBarBehavior == SnackBarBehavior.fixed + ? null + : (double value) { + setState(() { + _sliderValue = value; + }); + }, + ), + ]), + const SizedBox(height: 16.0), + ElevatedButton( + child: const Text('Show Snackbar'), + onPressed: () { + ScaffoldMessenger.of(context).showSnackBar(_snackBar()); + }, + ), + ], + ), + ); + } + + SnackBar _snackBar() { + final SnackBarAction? action = _withAction + ? SnackBarAction( + label: _longActionLabel ? 'Long Action Text' : 'Action', + onPressed: () { + // Code to execute. + }, + ) + : null; + final double? width = _snackBarBehavior == SnackBarBehavior.floating && _multiLine ? 400.0 : null; + final String label = + _multiLine ? 'A Snack Bar with quite a lot of text which spans across multiple lines' : 'Single Line Snack Bar'; + return SnackBar( + content: Text(label), + showCloseIcon: _withIcon, + width: width, + behavior: _snackBarBehavior, + action: action, + duration: const Duration(seconds: 3), + actionOverflowThreshold: _sliderValue, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/stepper/step_style.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/stepper/step_style.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..2841a0e886833cfb50a44c844e34293e9e685d3f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/stepper/step_style.0.dart @@ -0,0 +1,105 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [StepStyle]. + +void main() => runApp(const StepStyleExampleApp()); + +class StepStyleExampleApp extends StatelessWidget { + + const StepStyleExampleApp({ super.key }); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Step Style Example')), + body: const Center( + child: StepStyleExample(), + ), + ), + ); + } +} + +class StepStyleExample extends StatefulWidget { + const StepStyleExample({ super.key }); + + @override + State createState() => _StepStyleExampleState(); +} + +class _StepStyleExampleState extends State { + final StepStyle _stepStyle = StepStyle( + connectorThickness: 10, + color: Colors.white, + connectorColor: Colors.red, + indexStyle: const TextStyle( + color: Colors.black, + fontSize: 20, + ), + border: Border.all( + width: 2, + ), + ); + + @override + Widget build(BuildContext context) { + return Stepper( + type: StepperType.horizontal, + stepIconHeight: 48, + stepIconWidth: 48, + stepIconMargin: EdgeInsets.zero, + steps: [ + Step( + title: const SizedBox.shrink(), + content: const SizedBox.shrink(), + isActive: true, + stepStyle: _stepStyle, + ), + Step( + title: const SizedBox.shrink(), + content: const SizedBox.shrink(), + isActive: true, + stepStyle: _stepStyle.copyWith( + connectorColor: Colors.orange, + gradient: const LinearGradient( + colors: [ + Colors.white, + Colors.black, + ], + ), + ), + ), + Step( + title: const SizedBox.shrink(), + content: const SizedBox.shrink(), + isActive: true, + stepStyle: _stepStyle.copyWith( + connectorColor: Colors.blue, + ), + ), + Step( + title: const SizedBox.shrink(), + content: const SizedBox.shrink(), + isActive: true, + stepStyle: _stepStyle.merge( + StepStyle( + color: Colors.white, + indexStyle: const TextStyle( + color: Colors.black, + fontSize: 20, + ), + border: Border.all( + width: 2, + ), + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/stepper/stepper.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/stepper/stepper.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..b8b15d692c75f65785e3f118f6ffc27c8021dd95 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/stepper/stepper.0.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Stepper]. + +void main() => runApp(const StepperExampleApp()); + +class StepperExampleApp extends StatelessWidget { + const StepperExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Stepper Sample')), + body: const Center( + child: StepperExample(), + ), + ), + ); + } +} + +class StepperExample extends StatefulWidget { + const StepperExample({super.key}); + + @override + State createState() => _StepperExampleState(); +} + +class _StepperExampleState extends State { + int _index = 0; + + @override + Widget build(BuildContext context) { + return Stepper( + currentStep: _index, + onStepCancel: () { + if (_index > 0) { + setState(() { + _index -= 1; + }); + } + }, + onStepContinue: () { + if (_index <= 0) { + setState(() { + _index += 1; + }); + } + }, + onStepTapped: (int index) { + setState(() { + _index = index; + }); + }, + steps: [ + Step( + title: const Text('Step 1 title'), + content: Container( + alignment: Alignment.centerLeft, + child: const Text('Content for Step 1'), + ), + ), + const Step( + title: Text('Step 2 title'), + content: Text('Content for Step 2'), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/stepper/stepper.controls_builder.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/stepper/stepper.controls_builder.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..069e2c1c5c999fb42c1edb36ce7999beb2b19752 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/stepper/stepper.controls_builder.0.dart @@ -0,0 +1,63 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Stepper.controlsBuilder]. + +void main() => runApp(const ControlsBuilderExampleApp()); + +class ControlsBuilderExampleApp extends StatelessWidget { + const ControlsBuilderExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Stepper Sample')), + body: const ControlsBuilderExample(), + ), + ); + } +} + +class ControlsBuilderExample extends StatelessWidget { + const ControlsBuilderExample({super.key}); + + @override + Widget build(BuildContext context) { + return Stepper( + controlsBuilder: (BuildContext context, ControlsDetails details) { + return Row( + children: [ + TextButton( + onPressed: details.onStepContinue, + child: const Text('NEXT'), + ), + TextButton( + onPressed: details.onStepCancel, + child: const Text('CANCEL'), + ), + ], + ); + }, + steps: const [ + Step( + title: Text('A'), + content: SizedBox( + width: 100.0, + height: 100.0, + ), + ), + Step( + title: Text('B'), + content: SizedBox( + width: 100.0, + height: 100.0, + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..9a92dd39b20edd755498c3f3ca3963e889037897 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.0.dart @@ -0,0 +1,52 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Switch]. + +void main() => runApp(const SwitchApp()); + +class SwitchApp extends StatelessWidget { + const SwitchApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('Switch Sample')), + body: const Center( + child: SwitchExample(), + ), + ), + ); + } +} + +class SwitchExample extends StatefulWidget { + const SwitchExample({super.key}); + + @override + State createState() => _SwitchExampleState(); +} + +class _SwitchExampleState extends State { + bool light = true; + + @override + Widget build(BuildContext context) { + return Switch( + // This bool value toggles the switch. + value: light, + activeColor: Colors.red, + onChanged: (bool value) { + // This is called when the user toggles the switch. + setState(() { + light = value; + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..0fbe72deadae01cb5c3f577f5707bbb8222d046e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.1.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Switch]. + +void main() => runApp(const SwitchApp()); + +class SwitchApp extends StatelessWidget { + const SwitchApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('Switch Sample')), + body: const Center( + child: SwitchExample(), + ), + ), + ); + } +} + +class SwitchExample extends StatefulWidget { + const SwitchExample({super.key}); + + @override + State createState() => _SwitchExampleState(); +} + +class _SwitchExampleState extends State { + bool light = true; + + @override + Widget build(BuildContext context) { + final MaterialStateProperty trackColor = MaterialStateProperty.resolveWith( + (Set states) { + // Track color when the switch is selected. + if (states.contains(MaterialState.selected)) { + return Colors.amber; + } + // Otherwise return null to set default track color + // for remaining states such as when the switch is + // hovered, focused, or disabled. + return null; + }, + ); + final MaterialStateProperty overlayColor = MaterialStateProperty.resolveWith( + (Set states) { + // Material color when switch is selected. + if (states.contains(MaterialState.selected)) { + return Colors.amber.withOpacity(0.54); + } + // Material color when switch is disabled. + if (states.contains(MaterialState.disabled)) { + return Colors.grey.shade400; + } + // Otherwise return null to set default material color + // for remaining states such as when the switch is + // hovered, or focused. + return null; + }, + ); + + return Switch( + // This bool value toggles the switch. + value: light, + overlayColor: overlayColor, + trackColor: trackColor, + thumbColor: const MaterialStatePropertyAll(Colors.black), + onChanged: (bool value) { + // This is called when the user toggles the switch. + setState(() { + light = value; + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..8c47d5235f79bee0879505374341c70496014af9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.2.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Switch]. + +void main() => runApp(const SwitchApp()); + +class SwitchApp extends StatelessWidget { + const SwitchApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('Switch Sample')), + body: const Center( + child: SwitchExample(), + ), + ), + ); + } +} + +class SwitchExample extends StatefulWidget { + const SwitchExample({super.key}); + + @override + State createState() => _SwitchExampleState(); +} + +class _SwitchExampleState extends State { + bool light0 = true; + bool light1 = true; + + final MaterialStateProperty thumbIcon = MaterialStateProperty.resolveWith( + (Set states) { + if (states.contains(MaterialState.selected)) { + return const Icon(Icons.check); + } + return const Icon(Icons.close); + }, + ); + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Switch( + value: light0, + onChanged: (bool value) { + setState(() { + light0 = value; + }); + }, + ), + Switch( + thumbIcon: thumbIcon, + value: light1, + onChanged: (bool value) { + setState(() { + light1 = value; + }); + }, + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..b1ba74d7dfb796fa96b4614e1c2a27f42f51344e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.3.dart @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Switch]. + +void main() => runApp(const SwitchApp()); + +class SwitchApp extends StatelessWidget { + const SwitchApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData.light(useMaterial3: true).copyWith( + // Use the ambient CupertinoThemeData to style all widgets which would + // otherwise use iOS defaults. + cupertinoOverrideTheme: const CupertinoThemeData(applyThemeToAll: true), + ), + home: Scaffold( + appBar: AppBar(title: const Text('Switch Sample')), + body: const Center( + child: SwitchExample(), + ), + ), + ); + } +} + +class SwitchExample extends StatefulWidget { + const SwitchExample({super.key}); + + @override + State createState() => _SwitchExampleState(); +} + +class _SwitchExampleState extends State { + bool light = true; + + @override + Widget build(BuildContext context) { + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Switch.adaptive( + value: light, + onChanged: (bool value) { + setState(() { + light = value; + }); + }, + ), + Switch.adaptive( + // Don't use the ambient CupertinoThemeData to style this switch. + applyCupertinoTheme: false, + value: light, + onChanged: (bool value) { + setState(() { + light = value; + }); + }, + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.4.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.4.dart new file mode 100644 index 0000000000000000000000000000000000000000..4d64608f86fe3a0e864fc9f500eef049abed9756 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch/switch.4.dart @@ -0,0 +1,134 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Switch.adaptive]. + +void main() => runApp(const SwitchApp()); + +class SwitchApp extends StatefulWidget { + const SwitchApp({super.key}); + + @override + State createState() => _SwitchAppState(); +} + +class _SwitchAppState extends State { + bool isMaterial = true; + bool isCustomized = false; + + @override + Widget build(BuildContext context) { + final ThemeData theme = ThemeData( + platform: isMaterial ? TargetPlatform.android : TargetPlatform.iOS, + adaptations: >[ + if (isCustomized) const _SwitchThemeAdaptation() + ] + ); + final ButtonStyle style = OutlinedButton.styleFrom( + fixedSize: const Size(220, 40), + ); + + return MaterialApp( + theme: theme, + home: Scaffold( + appBar: AppBar(title: const Text('Adaptive Switches')), + body: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + OutlinedButton( + style: style, + onPressed: () { + setState(() { + isMaterial = !isMaterial; + }); + }, + child: isMaterial ? const Text('Show cupertino style') : const Text('Show material style'), + ), + OutlinedButton( + style: style, + onPressed: () { + setState(() { + isCustomized = !isCustomized; + }); + }, + child: isCustomized ? const Text('Remove customization') : const Text('Add customization'), + ), + const SizedBox(height: 20), + const SwitchWithLabel(label: 'enabled', enabled: true), + const SwitchWithLabel(label: 'disabled', enabled: false), + ], + ), + ), + ); + } +} + +class SwitchWithLabel extends StatefulWidget { + const SwitchWithLabel({ + super.key, + required this.enabled, + required this.label, + }); + + final bool enabled; + final String label; + + @override + State createState() => _SwitchWithLabelState(); +} + +class _SwitchWithLabelState extends State { + bool active = true; + + @override + Widget build(BuildContext context) { + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container( + width: 150, + padding: const EdgeInsets.only(right: 20), + child: Text(widget.label) + ), + Switch.adaptive( + value: active, + onChanged: !widget.enabled ? null : (bool value) { + setState(() { + active = value; + }); + }, + ), + ], + ); + } +} + + +class _SwitchThemeAdaptation extends Adaptation { + const _SwitchThemeAdaptation(); + + @override + SwitchThemeData adapt(ThemeData theme, SwitchThemeData defaultValue) { + switch (theme.platform) { + case TargetPlatform.android: + case TargetPlatform.fuchsia: + case TargetPlatform.linux: + case TargetPlatform.windows: + return defaultValue; + case TargetPlatform.iOS: + case TargetPlatform.macOS: + return SwitchThemeData( + thumbColor: MaterialStateProperty.resolveWith((Set states) { + if (states.contains(MaterialState.selected)) { + return Colors.yellow; + } + return null; // Use the default. + }), + trackColor: const MaterialStatePropertyAll(Colors.brown), + ); + } + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/custom_labeled_switch.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/custom_labeled_switch.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..6b3d5ff526a01102accbdb2eef7e0bba4b46f30c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/custom_labeled_switch.0.dart @@ -0,0 +1,100 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/gestures.dart'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for custom labeled switch. + +void main() => runApp(const LabeledSwitchApp()); + +class LabeledSwitchApp extends StatelessWidget { + const LabeledSwitchApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('Custom Labeled Switch Sample')), + body: const Center( + child: LabeledSwitchExample(), + ), + ), + ); + } +} + +class LinkedLabelSwitch extends StatelessWidget { + const LinkedLabelSwitch({ + super.key, + required this.label, + required this.padding, + required this.value, + required this.onChanged, + }); + + final String label; + final EdgeInsets padding; + final bool value; + final ValueChanged onChanged; + + @override + Widget build(BuildContext context) { + return Padding( + padding: padding, + child: Row( + children: [ + Expanded( + child: RichText( + text: TextSpan( + text: label, + style: TextStyle( + color: Theme.of(context).colorScheme.primary, + decoration: TextDecoration.underline, + ), + recognizer: TapGestureRecognizer() + ..onTap = () { + debugPrint('Label has been tapped.'); + }, + ), + ), + ), + Switch( + value: value, + onChanged: (bool newValue) { + onChanged(newValue); + }, + ), + ], + ), + ); + } +} + +class LabeledSwitchExample extends StatefulWidget { + const LabeledSwitchExample({super.key}); + + @override + State createState() => _LabeledSwitchExampleState(); +} + +class _LabeledSwitchExampleState extends State { + bool _isSelected = false; + + @override + Widget build(BuildContext context) { + return LinkedLabelSwitch( + label: 'Linked, tappable label text', + padding: const EdgeInsets.symmetric(horizontal: 20.0), + value: _isSelected, + onChanged: (bool newValue) { + setState(() { + _isSelected = newValue; + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/custom_labeled_switch.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/custom_labeled_switch.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..3c33361468f9f518bba7b7041748f37425ca2598 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/custom_labeled_switch.1.dart @@ -0,0 +1,89 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for custom labeled switch. + +void main() => runApp(const LabeledSwitchApp()); + +class LabeledSwitchApp extends StatelessWidget { + const LabeledSwitchApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('Custom Labeled Switch Sample')), + body: const Center( + child: LabeledSwitchExample(), + ), + ), + ); + } +} + +class LabeledSwitch extends StatelessWidget { + const LabeledSwitch({ + super.key, + required this.label, + required this.padding, + required this.value, + required this.onChanged, + }); + + final String label; + final EdgeInsets padding; + final bool value; + final ValueChanged onChanged; + + @override + Widget build(BuildContext context) { + return InkWell( + onTap: () { + onChanged(!value); + }, + child: Padding( + padding: padding, + child: Row( + children: [ + Expanded(child: Text(label)), + Switch( + value: value, + onChanged: (bool newValue) { + onChanged(newValue); + }, + ), + ], + ), + ), + ); + } +} + +class LabeledSwitchExample extends StatefulWidget { + const LabeledSwitchExample({super.key}); + + @override + State createState() => _LabeledSwitchExampleState(); +} + +class _LabeledSwitchExampleState extends State { + bool _isSelected = false; + + @override + Widget build(BuildContext context) { + return LabeledSwitch( + label: 'This is the label text', + padding: const EdgeInsets.symmetric(horizontal: 20.0), + value: _isSelected, + onChanged: (bool newValue) { + setState(() { + _isSelected = newValue; + }); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/switch_list_tile.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/switch_list_tile.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..339b3a79a6e7d5012e089b0d394cb04b209ecc8d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/switch_list_tile.0.dart @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SwitchListTile]. + +void main() => runApp(const SwitchListTileApp()); + +class SwitchListTileApp extends StatelessWidget { + const SwitchListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('SwitchListTile Sample')), + body: const Center( + child: SwitchListTileExample(), + ), + ), + ); + } +} + +class SwitchListTileExample extends StatefulWidget { + const SwitchListTileExample({super.key}); + + @override + State createState() => _SwitchListTileExampleState(); +} + +class _SwitchListTileExampleState extends State { + bool _lights = false; + + @override + Widget build(BuildContext context) { + return SwitchListTile( + title: const Text('Lights'), + value: _lights, + onChanged: (bool value) { + setState(() { + _lights = value; + }); + }, + secondary: const Icon(Icons.lightbulb_outline), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/switch_list_tile.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/switch_list_tile.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..4c5d55b6603407ac2b2fc3ba85792f2149b67857 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/switch_list_tile/switch_list_tile.1.dart @@ -0,0 +1,80 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SwitchListTile]. + +void main() => runApp(const SwitchListTileApp()); + +class SwitchListTileApp extends StatelessWidget { + const SwitchListTileApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold(appBar: AppBar(title: const Text('SwitchListTile Sample')), body: const SwitchListTileExample()), + ); + } +} + +class SwitchListTileExample extends StatefulWidget { + const SwitchListTileExample({super.key}); + + @override + State createState() => _SwitchListTileExampleState(); +} + +class _SwitchListTileExampleState extends State { + bool switchValue1 = true; + bool switchValue2 = true; + bool switchValue3 = true; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Column( + children: [ + SwitchListTile( + value: switchValue1, + onChanged: (bool? value) { + setState(() { + switchValue1 = value!; + }); + }, + title: const Text('Headline'), + subtitle: const Text('Supporting text'), + ), + const Divider(height: 0), + SwitchListTile( + value: switchValue2, + onChanged: (bool? value) { + setState(() { + switchValue2 = value!; + }); + }, + title: const Text('Headline'), + subtitle: const Text( + 'Longer supporting text to demonstrate how the text wraps and the switch is centered vertically with the text.'), + ), + const Divider(height: 0), + SwitchListTile( + value: switchValue3, + onChanged: (bool? value) { + setState(() { + switchValue3 = value!; + }); + }, + title: const Text('Headline'), + subtitle: const Text( + "Longer supporting text to demonstrate how the text wraps and how setting 'SwitchListTile.isThreeLine = true' aligns the switch to the top vertically with the text."), + isThreeLine: true, + ), + const Divider(height: 0), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tab_controller/tab_controller.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tab_controller/tab_controller.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..691980da683c1a21b9c6318f615b10702e2184f0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tab_controller/tab_controller.1.dart @@ -0,0 +1,65 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TabController]. + +void main() => runApp(const TabControllerExampleApp()); + +class TabControllerExampleApp extends StatelessWidget { + const TabControllerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: TabControllerExample(), + ); + } +} + +const List tabs = [ + Tab(text: 'Zeroth'), + Tab(text: 'First'), + Tab(text: 'Second'), +]; + +class TabControllerExample extends StatelessWidget { + const TabControllerExample({super.key}); + + @override + Widget build(BuildContext context) { + return DefaultTabController( + length: tabs.length, + // The Builder widget is used to have a different BuildContext to access + // closest DefaultTabController. + child: Builder(builder: (BuildContext context) { + final TabController tabController = DefaultTabController.of(context); + tabController.addListener(() { + if (!tabController.indexIsChanging) { + // Your code goes here. + // To get index of current tab use tabController.index + } + }); + return Scaffold( + appBar: AppBar( + bottom: const TabBar( + tabs: tabs, + ), + ), + body: TabBarView( + children: tabs.map((Tab tab) { + return Center( + child: Text( + '${tab.text!} Tab', + style: Theme.of(context).textTheme.headlineSmall, + ), + ); + }).toList(), + ), + ); + }), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tabs/tab_bar.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tabs/tab_bar.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..09d6dd64ff9442fe5d3d1b951e3367d40b6583ed --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tabs/tab_bar.0.dart @@ -0,0 +1,64 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TabBar]. + +void main() => runApp(const TabBarApp()); + +class TabBarApp extends StatelessWidget { + const TabBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const TabBarExample(), + ); + } +} + +class TabBarExample extends StatelessWidget { + const TabBarExample({super.key}); + + @override + Widget build(BuildContext context) { + return DefaultTabController( + initialIndex: 1, + length: 3, + child: Scaffold( + appBar: AppBar( + title: const Text('TabBar Sample'), + bottom: const TabBar( + tabs: [ + Tab( + icon: Icon(Icons.cloud_outlined), + ), + Tab( + icon: Icon(Icons.beach_access_sharp), + ), + Tab( + icon: Icon(Icons.brightness_5_sharp), + ), + ], + ), + ), + body: const TabBarView( + children: [ + Center( + child: Text("It's cloudy here"), + ), + Center( + child: Text("It's rainy here"), + ), + Center( + child: Text("It's sunny here"), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tabs/tab_bar.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tabs/tab_bar.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..954742a1a2f310897c3a372c4b8f70aa218f8c7e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tabs/tab_bar.1.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TabBar]. + +void main() => runApp(const TabBarApp()); + +class TabBarApp extends StatelessWidget { + const TabBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const TabBarExample(), + ); + } +} + +class TabBarExample extends StatefulWidget { + const TabBarExample({super.key}); + + @override + State createState() => _TabBarExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _TabBarExampleState extends State with TickerProviderStateMixin { + late final TabController _tabController; + + @override + void initState() { + super.initState(); + _tabController = TabController(length: 3, vsync: this); + } + + @override + void dispose() { + _tabController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('TabBar Sample'), + bottom: TabBar( + controller: _tabController, + tabs: const [ + Tab( + icon: Icon(Icons.cloud_outlined), + ), + Tab( + icon: Icon(Icons.beach_access_sharp), + ), + Tab( + icon: Icon(Icons.brightness_5_sharp), + ), + ], + ), + ), + body: TabBarView( + controller: _tabController, + children: const [ + Center( + child: Text("It's cloudy here"), + ), + Center( + child: Text("It's rainy here"), + ), + Center( + child: Text("It's sunny here"), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tabs/tab_bar.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tabs/tab_bar.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..d15eb4f1aea676bd2cd398403131cb24db66fee4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tabs/tab_bar.2.dart @@ -0,0 +1,117 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TabBar]. + +void main() => runApp(const TabBarApp()); + +class TabBarApp extends StatelessWidget { + const TabBarApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const TabBarExample(), + ); + } +} + +class TabBarExample extends StatelessWidget { + const TabBarExample({super.key}); + + @override + Widget build(BuildContext context) { + return DefaultTabController( + initialIndex: 1, + length: 3, + child: Scaffold( + appBar: AppBar( + title: const Text('Primary and secondary TabBar'), + bottom: const TabBar( + dividerColor: Colors.transparent, + tabs: [ + Tab( + text: 'Flights', + icon: Icon(Icons.flight), + ), + Tab( + text: 'Trips', + icon: Icon(Icons.luggage), + ), + Tab( + text: 'Explore', + icon: Icon(Icons.explore), + ), + ], + ), + ), + body: const TabBarView( + children: [ + NestedTabBar('Flights'), + NestedTabBar('Trips'), + NestedTabBar('Explore'), + ], + ), + ), + ); + } +} + +class NestedTabBar extends StatefulWidget { + const NestedTabBar(this.outerTab, {super.key}); + + final String outerTab; + + @override + State createState() => _NestedTabBarState(); +} + +class _NestedTabBarState extends State with TickerProviderStateMixin { + late final TabController _tabController; + + @override + void initState() { + super.initState(); + _tabController = TabController(length: 2, vsync: this); + } + + @override + void dispose() { + _tabController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Column( + children: [ + TabBar.secondary( + controller: _tabController, + tabs: const [ + Tab(text: 'Overview'), + Tab(text: 'Specifications'), + ], + ), + Expanded( + child: TabBarView( + controller: _tabController, + children: [ + Card( + margin: const EdgeInsets.all(16.0), + child: Center(child: Text('${widget.outerTab}: Overview tab')), + ), + Card( + margin: const EdgeInsets.all(16.0), + child: Center(child: Text('${widget.outerTab}: Specifications tab')), + ), + ], + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_button/text_button.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_button/text_button.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..98fa6bc770e69e6b25fc52e69a7451a26cd1cde8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_button/text_button.0.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TextButton]. + +void main() => runApp(const TextButtonExampleApp()); + +class TextButtonExampleApp extends StatelessWidget { + const TextButtonExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('TextButton Sample')), + body: const TextButtonExample(), + ), + ); + } +} + +class TextButtonExample extends StatelessWidget { + const TextButtonExample({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + TextButton( + style: TextButton.styleFrom( + textStyle: const TextStyle(fontSize: 20), + ), + onPressed: null, + child: const Text('Disabled'), + ), + const SizedBox(height: 30), + TextButton( + style: TextButton.styleFrom( + textStyle: const TextStyle(fontSize: 20), + ), + onPressed: () {}, + child: const Text('Enabled'), + ), + const SizedBox(height: 30), + ClipRRect( + borderRadius: BorderRadius.circular(4), + child: Stack( + children: [ + Positioned.fill( + child: Container( + decoration: const BoxDecoration( + gradient: LinearGradient( + colors: [ + Color(0xFF0D47A1), + Color(0xFF1976D2), + Color(0xFF42A5F5), + ], + ), + ), + ), + ), + TextButton( + style: TextButton.styleFrom( + foregroundColor: Colors.white, + padding: const EdgeInsets.all(16.0), + textStyle: const TextStyle(fontSize: 20), + ), + onPressed: () {}, + child: const Text('Gradient'), + ), + ], + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_button/text_button.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_button/text_button.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..f72630a65c627d3846662a65b15cb62a96b6e0ac --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_button/text_button.1.dart @@ -0,0 +1,103 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TextButton]. + +void main() { + runApp(const MaterialApp(home: Home())); +} + +class SelectableButton extends StatefulWidget { + const SelectableButton({ + super.key, + required this.selected, + this.style, + required this.onPressed, + required this.child, + }); + + final bool selected; + final ButtonStyle? style; + final VoidCallback? onPressed; + final Widget child; + + @override + State createState() => _SelectableButtonState(); +} + +class _SelectableButtonState extends State { + late final MaterialStatesController statesController; + + @override + void initState() { + super.initState(); + statesController = MaterialStatesController({if (widget.selected) MaterialState.selected}); + } + + @override + void didUpdateWidget(SelectableButton oldWidget) { + super.didUpdateWidget(oldWidget); + if (widget.selected != oldWidget.selected) { + statesController.update(MaterialState.selected, widget.selected); + } + } + + @override + Widget build(BuildContext context) { + return TextButton( + statesController: statesController, + style: widget.style, + onPressed: widget.onPressed, + child: widget.child, + ); + } +} + +class Home extends StatefulWidget { + const Home({super.key}); + + @override + State createState() => _HomeState(); +} + +class _HomeState extends State { + bool selected = false; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: SelectableButton( + selected: selected, + style: ButtonStyle( + foregroundColor: MaterialStateProperty.resolveWith( + (Set states) { + if (states.contains(MaterialState.selected)) { + return Colors.white; + } + return null; // defer to the defaults + }, + ), + backgroundColor: MaterialStateProperty.resolveWith( + (Set states) { + if (states.contains(MaterialState.selected)) { + return Colors.indigo; + } + return null; // defer to the defaults + }, + ), + ), + onPressed: () { + setState(() { + selected = !selected; + }); + }, + child: const Text('toggle selected'), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_field/text_field.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_field/text_field.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..87e5335869291240963a1fb2fa145e8fb62dff69 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_field/text_field.0.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TextField]. + +class ObscuredTextFieldSample extends StatelessWidget { + const ObscuredTextFieldSample({super.key}); + + @override + Widget build(BuildContext context) { + return const SizedBox( + width: 250, + child: TextField( + obscureText: true, + decoration: InputDecoration( + border: OutlineInputBorder(), + labelText: 'Password', + ), + ), + ); + } +} + +class TextFieldExampleApp extends StatelessWidget { + const TextFieldExampleApp({super.key}); + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Obscured Textfield')), + body: const Center( + child: ObscuredTextFieldSample(), + ), + ), + ); + } +} + +void main() => runApp(const TextFieldExampleApp()); diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_field/text_field.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_field/text_field.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..cf3bde3ce05d17503b1a290b00c47025103702c8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_field/text_field.1.dart @@ -0,0 +1,73 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TextField]. + +void main() => runApp(const TextFieldExampleApp()); + +class TextFieldExampleApp extends StatelessWidget { + const TextFieldExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: TextFieldExample(), + ); + } +} + +class TextFieldExample extends StatefulWidget { + const TextFieldExample({super.key}); + + @override + State createState() => _TextFieldExampleState(); +} + +class _TextFieldExampleState extends State { + late TextEditingController _controller; + + @override + void initState() { + super.initState(); + _controller = TextEditingController(); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: TextField( + controller: _controller, + onSubmitted: (String value) async { + await showDialog( + context: context, + builder: (BuildContext context) { + return AlertDialog( + title: const Text('Thanks!'), + content: Text('You typed "$value", which has length ${value.characters.length}.'), + actions: [ + TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: const Text('OK'), + ), + ], + ); + }, + ); + }, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_field/text_field.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_field/text_field.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..a00487fe277e62a65fa59879cb371ebcfd64d474 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_field/text_field.2.dart @@ -0,0 +1,77 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for Material Design 3 [TextField]s. + +void main() { + runApp(const TextFieldExamplesApp()); +} + +class TextFieldExamplesApp extends StatelessWidget { + const TextFieldExamplesApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(colorSchemeSeed: const Color(0xff6750a4), useMaterial3: true), + home: Scaffold( + appBar: AppBar(title: const Text('TextField Examples')), + body: const Column( + children: [ + Spacer(), + FilledTextFieldExample(), + OutlinedTextFieldExample(), + Spacer(), + ], + ), + ), + ); + } +} + +/// An example of the filled text field type. +/// +/// A filled [TextField] with default settings matching the spec: +/// https://m3.material.io/components/text-fields/specs#6d654d1d-262e-4697-858c-9a75e8e7c81d +class FilledTextFieldExample extends StatelessWidget { + const FilledTextFieldExample({super.key}); + + @override + Widget build(BuildContext context) { + return const TextField( + decoration: InputDecoration( + prefixIcon: Icon(Icons.search), + suffixIcon: Icon(Icons.clear), + labelText: 'Filled', + hintText: 'hint text', + helperText: 'supporting text', + filled: true, + ), + ); + } +} + +/// An example of the outlined text field type. +/// +/// A Outlined [TextField] with default settings matching the spec: +/// https://m3.material.io/components/text-fields/specs#68b00bd6-ab40-4b4f-93d9-ed1fbbc5d06e +class OutlinedTextFieldExample extends StatelessWidget { + const OutlinedTextFieldExample({super.key}); + + @override + Widget build(BuildContext context) { + return const TextField( + decoration: InputDecoration( + prefixIcon: Icon(Icons.search), + suffixIcon: Icon(Icons.clear), + labelText: 'Outlined', + hintText: 'hint text', + helperText: 'supporting text', + border: OutlineInputBorder(), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_form_field/text_form_field.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_form_field/text_form_field.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..8ff9dfce6f600fc28618c5d4f0e0fc9b141cf11d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_form_field/text_form_field.1.dart @@ -0,0 +1,67 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [TextFormField]. + +void main() => runApp(const TextFormFieldExampleApp()); + +class TextFormFieldExampleApp extends StatelessWidget { + const TextFormFieldExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: TextFormFieldExample(), + ); + } +} + +class TextFormFieldExample extends StatefulWidget { + const TextFormFieldExample({super.key}); + + @override + State createState() => _TextFormFieldExampleState(); +} + +class _TextFormFieldExampleState extends State { + @override + Widget build(BuildContext context) { + return Material( + child: Center( + child: Shortcuts( + shortcuts: const { + // Pressing space in the field will now move to the next field. + SingleActivator(LogicalKeyboardKey.space): NextFocusIntent(), + }, + child: FocusTraversalGroup( + child: Form( + autovalidateMode: AutovalidateMode.always, + onChanged: () { + Form.of(primaryFocus!.context!).save(); + }, + child: Wrap( + children: List.generate(5, (int index) { + return Padding( + padding: const EdgeInsets.all(8.0), + child: ConstrainedBox( + constraints: BoxConstraints.tight(const Size(200, 50)), + child: TextFormField( + onSaved: (String? value) { + debugPrint('Value for field $index saved as "$value"'); + }, + ), + ), + ); + }), + ), + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_form_field/text_form_field.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_form_field/text_form_field.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..cb587ee59aaec66d81732f63b34ff28ee1beeedd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/text_form_field/text_form_field.2.dart @@ -0,0 +1,138 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TextFormField]. + +const Duration kFakeHttpRequestDuration = Duration(seconds: 3); + +void main() => runApp(const TextFormFieldExampleApp()); + +class TextFormFieldExampleApp extends StatelessWidget { + const TextFormFieldExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: TextFormFieldExample(), + ); + } +} + +class TextFormFieldExample extends StatefulWidget { + const TextFormFieldExample({super.key}); + + @override + State createState() => _TextFormFieldExampleState(); +} + +class _TextFormFieldExampleState extends State { + final TextEditingController controller = TextEditingController(); + final GlobalKey formKey = GlobalKey(); + String? forceErrorText; + bool isLoading = false; + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + String? validator(String? value) { + if (value == null || value.isEmpty) { + return 'This field is required'; + } + if (value.length != value.replaceAll(' ', '').length) { + return 'Username must not contain any spaces'; + } + if (int.tryParse(value[0]) != null) { + return 'Username must not start with a number'; + } + if (value.length <= 2) { + return 'Username should be at least 3 characters long'; + } + return null; + } + + void onChanged(String value) { + // Nullify forceErrorText if the input changed. + if (forceErrorText != null) { + setState(() { + forceErrorText = null; + }); + } + } + + Future onSave() async { + // Providing a default value in case this was called on the + // first frame, the [fromKey.currentState] will be null. + final bool isValid = formKey.currentState?.validate() ?? false; + if (!isValid) { + return; + } + + setState(() => isLoading = true); + final String? errorText = await validateUsernameFromServer(controller.text); + + if (context.mounted) { + setState(() => isLoading = false); + + if (errorText != null) { + setState(() { + forceErrorText = errorText; + }); + } + } + } + + @override + Widget build(BuildContext context) { + return Material( + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 24.0), + child: Center( + child: Form( + key: formKey, + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + TextFormField( + forceErrorText: forceErrorText, + controller: controller, + decoration: const InputDecoration( + hintText: 'Please write a username', + ), + validator: validator, + onChanged: onChanged, + ), + const SizedBox(height: 40.0), + if (isLoading) + const CircularProgressIndicator() + else + TextButton( + onPressed: onSave, + child: const Text('Save'), + ), + ], + ), + ), + ), + ), + ); + } +} + +Future validateUsernameFromServer(String username) async { + final Set takenUsernames = {'jack', 'alex'}; + + await Future.delayed(kFakeHttpRequestDuration); + + final bool isValid = !takenUsernames.contains(username); + if (isValid) { + return null; + } + + return 'Username $username is already taken'; +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/theme/theme_extension.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/theme/theme_extension.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..d6b2f388033fcb9c9daf53b7d22b58f20dfafb8e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/theme/theme_extension.1.dart @@ -0,0 +1,123 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/scheduler.dart'; + +/// Flutter code sample for [ThemeExtension]. + +@immutable +class MyColors extends ThemeExtension { + const MyColors({ + required this.brandColor, + required this.danger, + }); + + final Color? brandColor; + final Color? danger; + + @override + MyColors copyWith({Color? brandColor, Color? danger}) { + return MyColors( + brandColor: brandColor ?? this.brandColor, + danger: danger ?? this.danger, + ); + } + + @override + MyColors lerp(MyColors? other, double t) { + if (other is! MyColors) { + return this; + } + return MyColors( + brandColor: Color.lerp(brandColor, other.brandColor, t), + danger: Color.lerp(danger, other.danger, t), + ); + } + + // Optional + @override + String toString() => 'MyColors(brandColor: $brandColor, danger: $danger)'; +} + +void main() { + // Slow down time to see lerping. + timeDilation = 5.0; + runApp(const ThemeExtensionExampleApp()); +} + +class ThemeExtensionExampleApp extends StatefulWidget { + const ThemeExtensionExampleApp({super.key}); + + @override + State createState() => _ThemeExtensionExampleAppState(); +} + +class _ThemeExtensionExampleAppState extends State { + bool isLightTheme = true; + + void toggleTheme() { + setState(() => isLightTheme = !isLightTheme); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData.light().copyWith( + extensions: >[ + const MyColors( + brandColor: Color(0xFF1E88E5), + danger: Color(0xFFE53935), + ), + ], + ), + darkTheme: ThemeData.dark().copyWith( + extensions: >[ + const MyColors( + brandColor: Color(0xFF90CAF9), + danger: Color(0xFFEF9A9A), + ), + ], + ), + themeMode: isLightTheme ? ThemeMode.light : ThemeMode.dark, + home: Home( + isLightTheme: isLightTheme, + toggleTheme: toggleTheme, + ), + ); + } +} + +class Home extends StatelessWidget { + const Home({ + super.key, + required this.isLightTheme, + required this.toggleTheme, + }); + + final bool isLightTheme; + final void Function() toggleTheme; + + @override + Widget build(BuildContext context) { + final MyColors myColors = Theme.of(context).extension()!; + return Material( + child: Center( + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Container(width: 100, height: 100, color: myColors.brandColor), + const SizedBox(width: 10), + Container(width: 100, height: 100, color: myColors.danger), + const SizedBox(width: 50), + IconButton( + icon: Icon(isLightTheme ? Icons.nightlight : Icons.wb_sunny), + onPressed: toggleTheme, + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/theme_data/theme_data.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/theme_data/theme_data.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..6ec50ae546e26399d857f1b20e607086dcad00aa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/theme_data/theme_data.0.dart @@ -0,0 +1,115 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() { + runApp(const ThemeDataExampleApp()); +} + +// This app's theme specifies an overall ColorScheme as well as overrides +// for the default configuration of FloatingActionButtons. To customize +// the appearance of other components, add additional component specific +// themes, rather than tweaking the color scheme. +// +// Creating an entire color scheme from a single seed color is a good +// way to ensure a visually appealing color palette where the default +// component colors have sufficient contrast for accessibility. Another +// good way to create an app's color scheme is to use +// ColorScheme.fromImageProvider. +// +// The color scheme reflects the platform's light or dark setting +// which is retrieved with `MediaQuery.platformBrightnessOf`. The color +// scheme's colors will be different for light and dark settings although +// they'll all be related to the seed color in both cases. +// +// Color scheme colors have been used where component defaults have +// been overridden so that the app will look good and remain accessible +// in both light and dark modes. +// +// Text styles are derived from the theme's textTheme (not the obsolete +// primaryTextTheme property) and then customized using copyWith. +// Using the _on_ version of a color scheme color as the foreground, +// as in `tertiary` and `onTertiary`, guarantees sufficient contrast +// for readability/accessibility. + +class ThemeDataExampleApp extends StatelessWidget { + const ThemeDataExampleApp({ super.key }); + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = ColorScheme.fromSeed( + brightness: MediaQuery.platformBrightnessOf(context), + seedColor: Colors.indigo, + ); + return MaterialApp( + title: 'ThemeData Demo', + theme: ThemeData( + colorScheme: colorScheme, + floatingActionButtonTheme: FloatingActionButtonThemeData( + backgroundColor: colorScheme.tertiary, + foregroundColor: colorScheme.onTertiary, + ), + ), + home: const Home(), + ); + } +} + +class Home extends StatefulWidget { + const Home({ super.key }); + + @override + State createState() => _HomeState(); +} + +class _HomeState extends State { + int buttonPressCount = 0; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final ColorScheme colorScheme = theme.colorScheme; + final double pointCount = 8 + (buttonPressCount % 6); + + return Scaffold( + appBar: AppBar( + title: const Text('Press the + Button'), + ), + // An AnimatedContainer makes the decoration changes entertaining. + body: AnimatedContainer( + duration: const Duration(milliseconds: 500), + margin: const EdgeInsets.all(32), + alignment: Alignment.center, + decoration: ShapeDecoration( + color: colorScheme.tertiaryContainer, + shape: StarBorder( + points: pointCount, + pointRounding: 0.4, + valleyRounding: 0.6, + side: BorderSide( + width: 9, + color: colorScheme.tertiary + ), + ), + ), + child: Text( + '${pointCount.toInt()} Points', + style: theme.textTheme.headlineMedium!.copyWith( + color: colorScheme.onPrimaryContainer, + ), + ), + ), + floatingActionButton: FloatingActionButton( + onPressed: () { + setState(() { + buttonPressCount += 1; + }); + }, + tooltip: "Change the shape's point count", + child: const Icon(Icons.add), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/time_picker/show_time_picker.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/time_picker/show_time_picker.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..d7d05702d6c492ea0bcced445667813137a252aa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/time_picker/show_time_picker.0.dart @@ -0,0 +1,358 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [showTimePicker]. + +void main() { + runApp(const ShowTimePickerApp()); +} + +class ShowTimePickerApp extends StatefulWidget { + const ShowTimePickerApp({super.key}); + + @override + State createState() => _ShowTimePickerAppState(); +} + +class _ShowTimePickerAppState extends State { + ThemeMode themeMode = ThemeMode.dark; + bool useMaterial3 = true; + + void setThemeMode(ThemeMode mode) { + setState(() { + themeMode = mode; + }); + } + + void setUseMaterial3(bool? value) { + setState(() { + useMaterial3 = value!; + }); + } + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData.light(useMaterial3: useMaterial3), + darkTheme: ThemeData.dark(useMaterial3: useMaterial3), + themeMode: themeMode, + home: TimePickerOptions( + themeMode: themeMode, + useMaterial3: useMaterial3, + setThemeMode: setThemeMode, + setUseMaterial3: setUseMaterial3, + ), + ); + } +} + +class TimePickerOptions extends StatefulWidget { + const TimePickerOptions({ + super.key, + required this.themeMode, + required this.useMaterial3, + required this.setThemeMode, + required this.setUseMaterial3, + }); + + final ThemeMode themeMode; + final bool useMaterial3; + final ValueChanged setThemeMode; + final ValueChanged setUseMaterial3; + + @override + State createState() => _TimePickerOptionsState(); +} + +class _TimePickerOptionsState extends State { + TimeOfDay? selectedTime; + TimePickerEntryMode entryMode = TimePickerEntryMode.dial; + Orientation? orientation; + TextDirection textDirection = TextDirection.ltr; + MaterialTapTargetSize tapTargetSize = MaterialTapTargetSize.padded; + bool use24HourTime = false; + + void _entryModeChanged(TimePickerEntryMode? value) { + if (value != entryMode) { + setState(() { + entryMode = value!; + }); + } + } + + void _orientationChanged(Orientation? value) { + if (value != orientation) { + setState(() { + orientation = value; + }); + } + } + + void _textDirectionChanged(TextDirection? value) { + if (value != textDirection) { + setState(() { + textDirection = value!; + }); + } + } + + void _tapTargetSizeChanged(MaterialTapTargetSize? value) { + if (value != tapTargetSize) { + setState(() { + tapTargetSize = value!; + }); + } + } + + void _use24HourTimeChanged(bool? value) { + if (value != use24HourTime) { + setState(() { + use24HourTime = value!; + }); + } + } + + void _themeModeChanged(ThemeMode? value) { + widget.setThemeMode(value!); + } + + @override + Widget build(BuildContext context) { + return Material( + child: Column( + children: [ + Expanded( + child: GridView( + gridDelegate: SliverGridDelegateWithMaxCrossAxisExtent( + maxCrossAxisExtent: 350, + mainAxisSpacing: 4, + // ignore: deprecated_member_use, https://github.com/flutter/flutter/issues/128825 + mainAxisExtent: 200 * MediaQuery.textScalerOf(context).textScaleFactor, + crossAxisSpacing: 4, + ), + children: [ + EnumCard( + choices: TimePickerEntryMode.values, + value: entryMode, + onChanged: _entryModeChanged, + ), + EnumCard( + choices: ThemeMode.values, + value: widget.themeMode, + onChanged: _themeModeChanged, + ), + EnumCard( + choices: TextDirection.values, + value: textDirection, + onChanged: _textDirectionChanged, + ), + EnumCard( + choices: MaterialTapTargetSize.values, + value: tapTargetSize, + onChanged: _tapTargetSizeChanged, + ), + ChoiceCard( + choices: const [...Orientation.values, null], + value: orientation, + title: '$Orientation', + choiceLabels: { + for (final Orientation choice in Orientation.values) choice: choice.name, + null: 'from MediaQuery', + }, + onChanged: _orientationChanged, + ), + ChoiceCard( + choices: const [false, true], + value: use24HourTime, + onChanged: _use24HourTimeChanged, + title: 'Time Mode', + choiceLabels: const { + false: '12-hour am/pm time', + true: '24-hour time', + }, + ), + ChoiceCard( + choices: const [false, true], + value: widget.useMaterial3, + onChanged: widget.setUseMaterial3, + title: 'Material Version', + choiceLabels: const { + false: 'Material 2', + true: 'Material 3', + }, + ), + ], + ), + ), + SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Padding( + padding: const EdgeInsets.all(12.0), + child: ElevatedButton( + child: const Text('Open time picker'), + onPressed: () async { + final TimeOfDay? time = await showTimePicker( + context: context, + initialTime: selectedTime ?? TimeOfDay.now(), + initialEntryMode: entryMode, + orientation: orientation, + builder: (BuildContext context, Widget? child) { + // We just wrap these environmental changes around the + // child in this builder so that we can apply the + // options selected above. In regular usage, this is + // rarely necessary, because the default values are + // usually used as-is. + return Theme( + data: Theme.of(context).copyWith( + materialTapTargetSize: tapTargetSize, + ), + child: Directionality( + textDirection: textDirection, + child: MediaQuery( + data: MediaQuery.of(context).copyWith( + alwaysUse24HourFormat: use24HourTime, + ), + child: child!, + ), + ), + ); + }, + ); + setState(() { + selectedTime = time; + }); + }, + ), + ), + if (selectedTime != null) Text('Selected time: ${selectedTime!.format(context)}'), + ], + ), + ), + ], + ), + ); + } +} + +// This is a simple card that presents a set of radio buttons (inside of a +// RadioSelection, defined below) for the user to select from. +class ChoiceCard extends StatelessWidget { + const ChoiceCard({ + super.key, + required this.value, + required this.choices, + required this.onChanged, + required this.choiceLabels, + required this.title, + }); + + final T value; + final Iterable choices; + final Map choiceLabels; + final String title; + final ValueChanged onChanged; + + @override + Widget build(BuildContext context) { + return Card( + // If the card gets too small, let it scroll both directions. + child: SingleChildScrollView( + child: SingleChildScrollView( + scrollDirection: Axis.horizontal, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.all(8.0), + child: Text(title), + ), + for (final T choice in choices) + RadioSelection( + value: choice, + groupValue: value, + onChanged: onChanged, + child: Text(choiceLabels[choice]!), + ), + ], + ), + ), + ), + ), + ); + } +} + +// This aggregates a ChoiceCard so that it presents a set of radio buttons for +// the allowed enum values for the user to select from. +class EnumCard extends StatelessWidget { + const EnumCard({ + super.key, + required this.value, + required this.choices, + required this.onChanged, + }); + + final T value; + final Iterable choices; + final ValueChanged onChanged; + + @override + Widget build(BuildContext context) { + return ChoiceCard( + value: value, + choices: choices, + onChanged: onChanged, + choiceLabels: { + for (final T choice in choices) choice: choice.name, + }, + title: value.runtimeType.toString()); + } +} + +// A button that has a radio button on one side and a label child. Tapping on +// the label or the radio button selects the item. +class RadioSelection extends StatefulWidget { + const RadioSelection({ + super.key, + required this.value, + required this.groupValue, + required this.onChanged, + required this.child, + }); + + final T value; + final T? groupValue; + final ValueChanged onChanged; + final Widget child; + + @override + State> createState() => _RadioSelectionState(); +} + +class _RadioSelectionState extends State> { + @override + Widget build(BuildContext context) { + return Row( + mainAxisSize: MainAxisSize.min, + children: [ + Padding( + padding: const EdgeInsetsDirectional.only(end: 8), + child: Radio( + groupValue: widget.groupValue, + value: widget.value, + onChanged: widget.onChanged, + ), + ), + GestureDetector(onTap: () => widget.onChanged(widget.value), child: widget.child), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/toggle_buttons/toggle_buttons.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/toggle_buttons/toggle_buttons.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..3aef1c179c2a929124fcb483b45f2c39a78a8b28 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/toggle_buttons/toggle_buttons.0.dart @@ -0,0 +1,147 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ToggleButtons]. + +const List fruits = [Text('Apple'), Text('Banana'), Text('Orange')]; + +const List vegetables = [Text('Tomatoes'), Text('Potatoes'), Text('Carrots')]; + +const List icons = [ + Icon(Icons.sunny), + Icon(Icons.cloud), + Icon(Icons.ac_unit), +]; + +void main() => runApp(const ToggleButtonsExampleApp()); + +class ToggleButtonsExampleApp extends StatelessWidget { + const ToggleButtonsExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const ToggleButtonsSample(title: 'ToggleButtons Sample'), + ); + } +} + +class ToggleButtonsSample extends StatefulWidget { + const ToggleButtonsSample({super.key, required this.title}); + + final String title; + + @override + State createState() => _ToggleButtonsSampleState(); +} + +class _ToggleButtonsSampleState extends State { + final List _selectedFruits = [true, false, false]; + final List _selectedVegetables = [false, true, false]; + final List _selectedWeather = [false, false, true]; + bool vertical = false; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + + return Scaffold( + appBar: AppBar(title: Text(widget.title)), + body: Center( + child: SingleChildScrollView( + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, + children: [ + // ToggleButtons with a single selection. + Text('Single-select', style: theme.textTheme.titleSmall), + const SizedBox(height: 5), + ToggleButtons( + direction: vertical ? Axis.vertical : Axis.horizontal, + onPressed: (int index) { + setState(() { + // The button that is tapped is set to true, and the others to false. + for (int i = 0; i < _selectedFruits.length; i++) { + _selectedFruits[i] = i == index; + } + }); + }, + borderRadius: const BorderRadius.all(Radius.circular(8)), + selectedBorderColor: Colors.red[700], + selectedColor: Colors.white, + fillColor: Colors.red[200], + color: Colors.red[400], + constraints: const BoxConstraints( + minHeight: 40.0, + minWidth: 80.0, + ), + isSelected: _selectedFruits, + children: fruits, + ), + const SizedBox(height: 20), + // ToggleButtons with a multiple selection. + Text('Multi-select', style: theme.textTheme.titleSmall), + const SizedBox(height: 5), + ToggleButtons( + direction: vertical ? Axis.vertical : Axis.horizontal, + onPressed: (int index) { + // All buttons are selectable. + setState(() { + _selectedVegetables[index] = !_selectedVegetables[index]; + }); + }, + borderRadius: const BorderRadius.all(Radius.circular(8)), + selectedBorderColor: Colors.green[700], + selectedColor: Colors.white, + fillColor: Colors.green[200], + color: Colors.green[400], + constraints: const BoxConstraints( + minHeight: 40.0, + minWidth: 80.0, + ), + isSelected: _selectedVegetables, + children: vegetables, + ), + const SizedBox(height: 20), + // ToggleButtons with icons only. + Text('Icon-only', style: theme.textTheme.titleSmall), + const SizedBox(height: 5), + ToggleButtons( + direction: vertical ? Axis.vertical : Axis.horizontal, + onPressed: (int index) { + setState(() { + // The button that is tapped is set to true, and the others to false. + for (int i = 0; i < _selectedWeather.length; i++) { + _selectedWeather[i] = i == index; + } + }); + }, + borderRadius: const BorderRadius.all(Radius.circular(8)), + selectedBorderColor: Colors.blue[700], + selectedColor: Colors.white, + fillColor: Colors.blue[200], + color: Colors.blue[400], + isSelected: _selectedWeather, + children: icons, + ), + ], + ), + ), + ), + floatingActionButton: FloatingActionButton.extended( + onPressed: () { + setState(() { + // When the button is pressed, ToggleButtons direction is changed. + vertical = !vertical; + }); + }, + icon: const Icon(Icons.screen_rotation_outlined), + label: Text(vertical ? 'Horizontal' : 'Vertical'), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/toggle_buttons/toggle_buttons.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/toggle_buttons/toggle_buttons.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..7e872bea2253706ac899dd4efe348d03c571d2a4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/toggle_buttons/toggle_buttons.1.dart @@ -0,0 +1,105 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for migrating from [ToggleButtons] to [SegmentedButton]. + +void main() { + runApp(const ToggleButtonsApp()); +} + +class ToggleButtonsApp extends StatelessWidget { + const ToggleButtonsApp({super.key}); + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: const Scaffold( + body: ToggleButtonsExample(), + ), + ); + } +} + +enum ShirtSize { extraSmall, small, medium, large, extraLarge } +const List<(ShirtSize, String)> shirtSizeOptions = <(ShirtSize, String)>[ + (ShirtSize.extraSmall, 'XS'), + (ShirtSize.small, 'S'), + (ShirtSize.medium, 'M'), + (ShirtSize.large, 'L'), + (ShirtSize.extraLarge, 'XL'), +]; + +class ToggleButtonsExample extends StatefulWidget { + const ToggleButtonsExample({super.key}); + + @override + State createState() => _ToggleButtonsExampleState(); +} + +class _ToggleButtonsExampleState extends State { + final List _toggleButtonsSelection = ShirtSize.values.map((ShirtSize e) => e == ShirtSize.medium).toList(); + Set _segmentedButtonSelection = {ShirtSize.medium}; + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('ToggleButtons'), + const SizedBox(height: 10), + // This ToggleButtons allows multiple or no selection. + ToggleButtons( + // ToggleButtons uses a List to track its selection state. + isSelected: _toggleButtonsSelection, + // This callback return the index of the child that was pressed. + onPressed: (int index) { + setState(() { + _toggleButtonsSelection[index] = !_toggleButtonsSelection[index]; + }); + }, + // Constraints are used to determine the size of each child widget. + constraints: const BoxConstraints( + minHeight: 32.0, + minWidth: 56.0, + ), + // ToggleButtons uses a List to build its children. + children: shirtSizeOptions + .map(((ShirtSize, String) shirt) => Text(shirt.$2)) + .toList(), + ), + const SizedBox(height: 20), + const Text('SegmentedButton'), + const SizedBox(height: 10), + SegmentedButton( + // ToggleButtons above allows multiple or no selection. + // Set `multiSelectionEnabled` and `emptySelectionAllowed` to true + // to match the behavior of ToggleButtons. + multiSelectionEnabled: true, + emptySelectionAllowed: true, + // Hide the selected icon to match the behavior of ToggleButtons. + showSelectedIcon: false, + // SegmentedButton uses a Set to track its selection state. + selected: _segmentedButtonSelection, + // This callback updates the set of selected segment values. + onSelectionChanged: (Set newSelection) { + setState(() { + _segmentedButtonSelection = newSelection; + }); + }, + // SegmentedButton uses a List> to build its children + // instead of a List like ToggleButtons. + segments: shirtSizeOptions + .map>(((ShirtSize, String) shirt) { + return ButtonSegment(value: shirt.$1, label: Text(shirt.$2)); + }) + .toList(), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..2a380750bfeef51df5912ce39dbb922ba0af9bf5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.0.dart @@ -0,0 +1,38 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Tooltip]. + +void main() => runApp(const TooltipExampleApp()); + +class TooltipExampleApp extends StatelessWidget { + const TooltipExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(tooltipTheme: const TooltipThemeData(preferBelow: false)), + home: Scaffold( + appBar: AppBar(title: const Text('Tooltip Sample')), + body: const Center( + child: TooltipSample(), + ), + ), + ); + } +} + +class TooltipSample extends StatelessWidget { + const TooltipSample({super.key}); + + @override + Widget build(BuildContext context) { + return const Tooltip( + message: 'I am a Tooltip', + child: Text('Hover over the text to show a tooltip.'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..26b709707678180bb58d5cb84c4467a65eebcb04 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.1.dart @@ -0,0 +1,50 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Tooltip]. + +void main() => runApp(const TooltipExampleApp()); + +class TooltipExampleApp extends StatelessWidget { + const TooltipExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(tooltipTheme: const TooltipThemeData(preferBelow: false)), + home: Scaffold( + appBar: AppBar(title: const Text('Tooltip Sample')), + body: const Center( + child: TooltipSample(), + ), + ), + ); + } +} + +class TooltipSample extends StatelessWidget { + const TooltipSample({super.key}); + + @override + Widget build(BuildContext context) { + return Tooltip( + message: 'I am a Tooltip', + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(25), + gradient: const LinearGradient(colors: [Colors.amber, Colors.red]), + ), + height: 50, + padding: const EdgeInsets.all(8.0), + preferBelow: true, + textStyle: const TextStyle( + fontSize: 24, + ), + showDuration: const Duration(seconds: 2), + waitDuration: const Duration(seconds: 1), + child: const Text('Tap this text and hold down to show a tooltip.'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..66f097d82a7ad504282d05f2fa4f06ab88e90027 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.2.dart @@ -0,0 +1,47 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Tooltip]. + +void main() => runApp(const TooltipExampleApp()); + +class TooltipExampleApp extends StatelessWidget { + const TooltipExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(tooltipTheme: const TooltipThemeData(preferBelow: false)), + home: Scaffold( + appBar: AppBar(title: const Text('Tooltip Sample')), + body: const Center( + child: TooltipSample(), + ), + ), + ); + } +} + +class TooltipSample extends StatelessWidget { + const TooltipSample({super.key}); + + @override + Widget build(BuildContext context) { + return const Tooltip( + richMessage: TextSpan( + text: 'I am a rich tooltip. ', + style: TextStyle(color: Colors.red), + children: [ + TextSpan( + text: 'I am another span of this rich tooltip', + style: TextStyle(fontWeight: FontWeight.bold), + ), + ], + ), + child: Text('Tap this text and hold down to show a tooltip.'), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..03899aeb0df4be5ec00e8d42a97fca33aa7d1672 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/material/tooltip/tooltip.3.dart @@ -0,0 +1,54 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Tooltip]. + +void main() => runApp(const TooltipExampleApp()); + +class TooltipExampleApp extends StatelessWidget { + const TooltipExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(tooltipTheme: const TooltipThemeData(preferBelow: false)), + home: const TooltipSample(title: 'Tooltip Sample'), + ); + } +} + +class TooltipSample extends StatelessWidget { + const TooltipSample({super.key, required this.title}); + + final String title; + + @override + Widget build(BuildContext context) { + final GlobalKey tooltipkey = GlobalKey(); + + return Scaffold( + appBar: AppBar(title: Text(title)), + body: Center( + child: Tooltip( + // Provide a global key with the "TooltipState" type to show + // the tooltip manually when trigger mode is set to manual. + key: tooltipkey, + triggerMode: TooltipTriggerMode.manual, + showDuration: const Duration(seconds: 1), + message: 'I am a Tooltip', + child: const Text('Tap on the FAB'), + ), + ), + floatingActionButton: FloatingActionButton.extended( + onPressed: () { + // Show Tooltip programmatically on button tap. + tooltipkey.currentState?.ensureTooltipVisible(); + }, + label: const Text('Show Tooltip'), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/axis_direction/axis_direction.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/axis_direction/axis_direction.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e48fd0918e11622e72da2169dc7ad7b9ee16232e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/axis_direction/axis_direction.0.dart @@ -0,0 +1,188 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AxisDirection]s. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: MyWidget(), + ); + } +} + +class MyWidget extends StatefulWidget { + const MyWidget({super.key}); + + @override + State createState() => _MyWidgetState(); +} + +class _MyWidgetState extends State { + final List _alphabet = [ + 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', + 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', + ]; + final Widget _spacer = const SizedBox.square(dimension: 10); + AxisDirection _axisDirection = AxisDirection.down; + + Widget _getArrows() { + final Widget arrow; + switch (_axisDirection) { + case AxisDirection.up: + arrow = const Icon(Icons.arrow_upward_rounded); + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + case AxisDirection.down: + arrow = const Icon(Icons.arrow_downward_rounded); + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + case AxisDirection.left: + arrow = const Icon(Icons.arrow_back_rounded); + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + case AxisDirection.right: + arrow = const Icon(Icons.arrow_forward_rounded); + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + } + } + + void _onAxisDirectionChanged(AxisDirection? axisDirection) { + if (axisDirection != null && axisDirection != _axisDirection) { + setState(() { + // Respond to change in axis direction. + _axisDirection = axisDirection; + }); + } + } + + Widget _getLeading() { + return Container( + color: Colors.blue[100], + padding: const EdgeInsets.all(8.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text(axisDirectionToAxis(_axisDirection).toString()), + _spacer, + Text(_axisDirection.toString()), + _spacer, + const Text('GrowthDirection.forward'), + _spacer, + _getArrows(), + ], + ), + ); + } + + Widget _getRadioRow() { + return DefaultTextStyle( + style: const TextStyle(fontWeight: FontWeight.bold, color: Colors.white), + child: RadioTheme( + data: RadioThemeData( + fillColor: MaterialStateProperty.all(Colors.white), + ), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Radio( + value: AxisDirection.up, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('up'), + _spacer, + Radio( + value: AxisDirection.down, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('down'), + _spacer, + Radio( + value: AxisDirection.left, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('left'), + _spacer, + Radio( + value: AxisDirection.right, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('right'), + _spacer, + ], + ), + ), + ), + ); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('AxisDirections'), + bottom: PreferredSize( + preferredSize: const Size.fromHeight(50), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: _getRadioRow(), + ), + ), + ), + // Also works for ListView.builder, which creates a SliverList for itself. + // A CustomScrollView allows multiple slivers to be composed together. + body: CustomScrollView( + // This method is available to conveniently determine if an scroll + // view is reversed by its AxisDirection. + reverse: axisDirectionIsReversed(_axisDirection), + // This method is available to conveniently convert an AxisDirection + // into its Axis. + scrollDirection: axisDirectionToAxis(_axisDirection), + slivers: [ + SliverList.builder( + itemCount: 27, + itemBuilder: (BuildContext context, int index) { + final Widget child; + if (index == 0) { + child = _getLeading(); + } else { + child = Container( + color: index.isEven ? Colors.amber[100] : Colors.amberAccent, + padding: const EdgeInsets.all(8.0), + child: Center(child: Text(_alphabet[index - 1])), + ); + } + return Padding( + padding: const EdgeInsets.all(8.0), + child: child, + ); + }, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/borders/border_side.stroke_align.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/borders/border_side.stroke_align.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..1ba11404c7f615172b6dee287bc67a67ef85e49f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/borders/border_side.stroke_align.0.dart @@ -0,0 +1,202 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [BorderSide.strokeAlign]. + +void main() => runApp(const StrokeAlignApp()); + +class StrokeAlignApp extends StatelessWidget { + const StrokeAlignApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp(home: StrokeAlignExample()); + } +} + +class StrokeAlignExample extends StatefulWidget { + const StrokeAlignExample({super.key}); + + @override + State createState() => _StrokeAlignExampleState(); +} + +class _StrokeAlignExampleState extends State with TickerProviderStateMixin { + late final AnimationController animation; + + @override + void initState() { + super.initState(); + animation = AnimationController(vsync: this, duration: const Duration(seconds: 1)); + animation.repeat(reverse: true); + animation.addListener(_markDirty); + } + + @override + void dispose() { + animation.dispose(); + super.dispose(); + } + + void _markDirty() { + setState(() {}); + } + + static const double borderWidth = 10; + static const double cornerRadius = 10; + static const Color borderColor = Color(0x8000b4fc); + + @override + Widget build(BuildContext context) { + return Material( + child: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + BorderedBox( + shape: StadiumBorder( + side: BorderSide( + color: borderColor, + width: borderWidth, + strokeAlign: (animation.value * 2) - 1, + ), + ), + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + BorderedBox( + shape: CircleBorder( + side: BorderSide( + color: borderColor, + width: borderWidth, + strokeAlign: (animation.value * 2) - 1, + ), + ), + ), + BorderedBox( + shape: OvalBorder( + side: BorderSide( + color: borderColor, + width: borderWidth, + strokeAlign: (animation.value * 2) - 1, + ), + ), + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + BorderedBox( + shape: BeveledRectangleBorder( + side: BorderSide( + color: borderColor, + width: borderWidth, + strokeAlign: (animation.value * 2) - 1, + ), + ), + ), + BorderedBox( + shape: BeveledRectangleBorder( + borderRadius: BorderRadius.circular(cornerRadius), + side: BorderSide( + color: borderColor, + width: borderWidth, + strokeAlign: (animation.value * 2) - 1, + ), + ), + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + BorderedBox( + shape: RoundedRectangleBorder( + side: BorderSide( + color: borderColor, + width: borderWidth, + strokeAlign: (animation.value * 2) - 1, + ), + ), + ), + BorderedBox( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(cornerRadius), + side: BorderSide( + color: borderColor, + width: borderWidth, + strokeAlign: (animation.value * 2) - 1, + ), + ), + ), + ], + ), + Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + BorderedBox( + shape: StarBorder( + side: BorderSide( + color: borderColor, + width: borderWidth, + strokeAlign: (animation.value * 2) - 1, + ), + ), + ), + BorderedBox( + shape: StarBorder( + pointRounding: 1, + innerRadiusRatio: 0.5, + points: 8, + side: BorderSide( + color: borderColor, + width: borderWidth, + strokeAlign: (animation.value * 2) - 1, + ), + ), + ), + BorderedBox( + shape: StarBorder.polygon( + sides: 6, + pointRounding: 0.5, + side: BorderSide( + color: borderColor, + width: borderWidth, + strokeAlign: (animation.value * 2) - 1, + ), + ), + ), + ], + ), + ], + ), + ), + ); + } +} + +class BorderedBox extends StatelessWidget { + const BorderedBox({ + super.key, + required this.shape, + }); + + final ShapeBorder shape; + + @override + Widget build(BuildContext context) { + return Container( + width: 100, + height: 50, + decoration: ShapeDecoration( + color: const Color(0xff012677), + shape: shape, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/gradient/linear_gradient.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/gradient/linear_gradient.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..503bdaeb349592dbdf8e342adc480dd69f574480 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/gradient/linear_gradient.0.dart @@ -0,0 +1,53 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [LinearGradient]. + +void main() => runApp(const LinearGradientExampleApp()); + +class LinearGradientExampleApp extends StatelessWidget { + const LinearGradientExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp(home: MoodyGradient()); + } +} + +class MoodyGradient extends StatelessWidget { + const MoodyGradient({super.key}); + + @override + Widget build(BuildContext context) { + return Material( + child: Container( + decoration: const BoxDecoration( + gradient: LinearGradient( + begin: Alignment.topLeft, + end: Alignment(0.8, 1), + colors: [ + Color(0xff1f005c), + Color(0xff5b0060), + Color(0xff870160), + Color(0xffac255e), + Color(0xffca485c), + Color(0xffe16b5c), + Color(0xfff39060), + Color(0xffffb56b), + ], // Gradient from https://learnui.design/tools/gradient-generator.html + tileMode: TileMode.mirror, + ), + ), + child: const Center( + child: Text( + 'From Night to Day', + style: TextStyle(fontSize: 24, color: Colors.white), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/image_provider/image_provider.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/image_provider/image_provider.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..86349f15c0d0fc45f94658bea1b8c20a75f889fd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/image_provider/image_provider.0.dart @@ -0,0 +1,104 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:async'; +import 'dart:io'; +import 'dart:ui' as ui; + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; + +@immutable +class CustomNetworkImage extends ImageProvider { + const CustomNetworkImage(this.url); + + final String url; + + @override + Future obtainKey(ImageConfiguration configuration) { + final Uri result = Uri.parse(url).replace( + queryParameters: { + 'dpr': '${configuration.devicePixelRatio}', + 'locale': '${configuration.locale?.toLanguageTag()}', + 'platform': '${configuration.platform?.name}', + 'width': '${configuration.size?.width}', + 'height': '${configuration.size?.height}', + 'bidi': '${configuration.textDirection?.name}', + }, + ); + return SynchronousFuture(result); + } + + static HttpClient get _httpClient { + HttpClient? client; + assert(() { + if (debugNetworkImageHttpClientProvider != null) { + client = debugNetworkImageHttpClientProvider!(); + } + return true; + }()); + return client ?? HttpClient()..autoUncompress = false; + } + + @override + ImageStreamCompleter loadImage(Uri key, ImageDecoderCallback decode) { + final StreamController chunkEvents = StreamController(); + debugPrint('Fetching "$key"...'); + return MultiFrameImageStreamCompleter( + codec: _httpClient.getUrl(key) + .then((HttpClientRequest request) => request.close()) + .then((HttpClientResponse response) { + return consolidateHttpClientResponseBytes( + response, + onBytesReceived: (int cumulative, int? total) { + chunkEvents.add(ImageChunkEvent( + cumulativeBytesLoaded: cumulative, + expectedTotalBytes: total, + )); + }, + ); + }) + .catchError((Object e, StackTrace stack) { + scheduleMicrotask(() { + PaintingBinding.instance.imageCache.evict(key); + }); + return Future.error(e, stack); + }) + .whenComplete(chunkEvents.close) + .then(ui.ImmutableBuffer.fromUint8List) + .then(decode), + chunkEvents: chunkEvents.stream, + scale: 1.0, + debugLabel: '"key"', + informationCollector: () => [ + DiagnosticsProperty('Image provider', this), + DiagnosticsProperty('URL', key), + ], + ); + } + + @override + String toString() => '${objectRuntimeType(this, 'CustomNetworkImage')}("$url")'; +} + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + return Image( + image: const CustomNetworkImage('https://flutter.github.io/assets-for-api-docs/assets/widgets/flamingos.jpg'), + width: constraints.hasBoundedWidth ? constraints.maxWidth : null, + height: constraints.hasBoundedHeight ? constraints.maxHeight : null, + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/linear_border/linear_border.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/linear_border/linear_border.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..510a65236eb9feb53d7fab5fc05c4803f2278910 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/linear_border/linear_border.0.dart @@ -0,0 +1,302 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Examples for [LinearBorder] and [LinearBorderEdge]. + +void main() { + runApp(const ExampleApp()); +} + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData.light(useMaterial3: true), + home: const Directionality( + // TRY THIS: Switch to TextDirection.rtl to see how the borders change. + textDirection: TextDirection.ltr, + child: Home(), + ), + ); + } +} + +class SampleCard extends StatelessWidget { + const SampleCard({super.key, required this.title, required this.subtitle, required this.children}); + + final String title; + final String subtitle; + final List children; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final TextTheme textTheme = theme.textTheme; + final ColorScheme colorScheme = theme.colorScheme; + + return Card( + child: Padding( + padding: const EdgeInsets.all(16), + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + mainAxisSize: MainAxisSize.min, + children: [ + Text(title, style: textTheme.titleMedium), + Text(subtitle, style: textTheme.bodyMedium!.copyWith(color: colorScheme.secondary)), + const SizedBox(height: 16), + Row( + children: List.generate(children.length * 2 - 1, (int index) { + return index.isEven ? children[index ~/ 2] : const SizedBox(width: 16); + }), + ), + ], + ), + ), + ); + } +} + +class Home extends StatefulWidget { + const Home({super.key}); + + @override + State createState() => _HomeState(); +} + +class _HomeState extends State { + final LinearBorder shape0 = LinearBorder.top(); + final LinearBorder shape1 = LinearBorder.top(size: 0); + late LinearBorder shape = shape0; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + final BorderSide primarySide0 = BorderSide(width: 0, color: colorScheme.inversePrimary); // hairline + final BorderSide primarySide2 = BorderSide(width: 2, color: colorScheme.onPrimaryContainer); + final BorderSide primarySide3 = BorderSide(width: 3, color: colorScheme.inversePrimary); + + return Scaffold( + body: SingleChildScrollView( + child: Padding( + padding: const EdgeInsets.all(16), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + // Demonstrates using LinearBorder.bottom() to define + // an underline border for the standard button types. + // The underline's color and width is defined by the ButtonStyle's + // side parameter. The side can also be specified as a + // LinearBorder parameter and if both are specified then the + // ButtonStyle's side is used. This set up makes it possible + // for a button theme to specify the shape and for individual + // buttons to specify the shape border's color and width. + SampleCard( + title: 'LinearBorder.bottom()', + subtitle: 'Standard button widgets', + children: [ + TextButton( + style: TextButton.styleFrom( + side: primarySide3, + shape: LinearBorder.bottom(), + ), + onPressed: () {}, + child: const Text('Text'), + ), + OutlinedButton( + style: OutlinedButton.styleFrom( + side: primarySide3, + shape: LinearBorder.bottom(), + ), + onPressed: () {}, + child: const Text('Outlined'), + ), + ElevatedButton( + style: ElevatedButton.styleFrom( + side: primarySide3, + shape: LinearBorder.bottom(), + ), + onPressed: () {}, + child: const Text('Elevated'), + ), + ], + ), + const SizedBox(height: 32), + // Demonstrates creating LinearBorders with a single edge + // by using the convenience constructors like LinearBorder.start(). + // The edges are drawn with a BorderSide with width:0, which + // means that a "hairline" line is stroked. Wider borders are + // drawn with filled rectangles. + SampleCard( + title: 'LinearBorder', + subtitle: 'Convenience constructors', + children: [ + TextButton( + style: TextButton.styleFrom( + side: primarySide0, + shape: LinearBorder.start(), + ), + onPressed: () {}, + child: const Text('Start()'), + ), + TextButton( + style: TextButton.styleFrom( + side: primarySide0, + shape: LinearBorder.end(), + ), + onPressed: () {}, + child: const Text('End()'), + ), + TextButton( + style: TextButton.styleFrom( + side: primarySide0, + shape: LinearBorder.top(), + ), + onPressed: () {}, + child: const Text('Top()'), + ), + TextButton( + style: TextButton.styleFrom( + side: primarySide0, + shape: LinearBorder.bottom(), + ), + onPressed: () {}, + child: const Text('Bottom()'), + ), + ], + ), + const SizedBox(height: 32), + // Demonstrates creating LinearBorders with a single edge + // that's smaller than the button's bounding box. The size + // parameter specifies a percentage of the available space + // and alignment is -1 for start-alignment, 0 for centered, + // and 1 for end-alignment. + SampleCard( + title: 'LinearBorder', + subtitle: 'Size and alignment parameters', + children: [ + TextButton( + style: TextButton.styleFrom( + side: primarySide2, + shape: LinearBorder.bottom( + size: 0.5, + ), + ), + onPressed: () {}, + child: const Text('Center'), + ), + TextButton( + style: TextButton.styleFrom( + side: primarySide2, + shape: LinearBorder.bottom( + size: 0.75, + alignment: -1, + ), + ), + onPressed: () {}, + child: const Text('Start'), + ), + TextButton( + style: TextButton.styleFrom( + side: primarySide2, + shape: LinearBorder.bottom( + size: 0.75, + alignment: 1, + ), + ), + onPressed: () {}, + child: const Text('End'), + ), + ], + ), + const SizedBox(height: 32), + // Demonstrates creating LinearBorders with more than one edge. + // In these cases the default constructor is used and each edge + // is defined with one LinearBorderEdge object. + SampleCard( + title: 'LinearBorder', + subtitle: 'LinearBorderEdge parameters', + children: [ + TextButton( + style: TextButton.styleFrom( + side: primarySide0, + shape: const LinearBorder( + top: LinearBorderEdge(), + bottom: LinearBorderEdge(), + ), + ), + onPressed: () {}, + child: const Text('Horizontal'), + ), + TextButton( + style: TextButton.styleFrom( + side: primarySide0, + shape: const LinearBorder( + start: LinearBorderEdge(), + end: LinearBorderEdge(), + ), + ), + onPressed: () {}, + child: const Text('Vertical'), + ), + TextButton( + style: TextButton.styleFrom( + side: primarySide0, + shape: const LinearBorder( + start: LinearBorderEdge(), + bottom: LinearBorderEdge(), + ), + ), + onPressed: () {}, + child: const Text('Corner'), + ), + ], + ), + const SizedBox(height: 32), + // Demonstrates that changing properties of LinearBorders + // causes them to animate to their new configuration. + SampleCard( + title: 'Interpolation', + subtitle: 'LinearBorder.top() => LinearBorder.top(size: 0)', + children: [ + IconButton( + icon: const Icon(Icons.play_arrow), + onPressed: () { + setState(() { + shape = shape == shape0 ? shape1 : shape0; + }); + }, + ), + TextButton( + style: TextButton.styleFrom( + side: primarySide3, + shape: shape, + ), + onPressed: () {}, + child: const Text('Press Play'), + ), + TextButton( + style: ButtonStyle( + side: MaterialStateProperty.resolveWith((Set states) { + return states.contains(MaterialState.hovered) ? primarySide3 : null; + }), + shape: MaterialStateProperty.resolveWith((Set states) { + return states.contains(MaterialState.hovered) ? shape0 : shape1; + }), + ), + onPressed: () {}, + child: const Text('Hover'), + ), + ], + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/star_border/star_border.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/star_border/star_border.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a89c7f6a9f1eb74550cc5ce6f826c4c8abc3d420 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/painting/star_border/star_border.0.dart @@ -0,0 +1,453 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// An example showing usage of [StarBorder]. + +import 'package:flutter/material.dart'; + +const int _kParameterPrecision = 2; + +void main() => runApp(const StarBorderApp()); + +class StarBorderApp extends StatelessWidget { + const StarBorderApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('StarBorder Example'), + backgroundColor: const Color(0xff323232), + ), + body: const StarBorderExample(), + ), + ); + } +} + +class StarBorderExample extends StatefulWidget { + const StarBorderExample({super.key}); + + @override + State createState() => _StarBorderExampleState(); +} + +class _StarBorderExampleState extends State { + final OptionModel _model = OptionModel(); + final TextEditingController _textController = TextEditingController(); + + @override + void initState() { + super.initState(); + _model.addListener(_modelChanged); + } + + @override + void dispose() { + _model.removeListener(_modelChanged); + _textController.dispose(); + super.dispose(); + } + + void _modelChanged() { + setState(() {}); + } + + @override + Widget build(BuildContext context) { + return DefaultTextStyle( + style: const TextStyle( + color: Colors.black, + fontSize: 14.0, + fontFamily: 'Roboto', + fontStyle: FontStyle.normal, + ), + child: ListView( + children: [ + ColoredBox( + color: Colors.grey.shade200, + child: Options(_model), + ), + Padding( + padding: const EdgeInsets.all(18.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceEvenly, + children: [ + Expanded( + child: ExampleBorder( + border: StarBorder( + side: const BorderSide(), + points: _model.points, + innerRadiusRatio: _model.innerRadiusRatio, + pointRounding: _model.pointRounding, + valleyRounding: _model.valleyRounding, + rotation: _model.rotation, + squash: _model.squash, + ), + title: 'Star', + ), + ), + Expanded( + child: ExampleBorder( + border: StarBorder.polygon( + side: const BorderSide(), + sides: _model.points, + pointRounding: _model.pointRounding, + rotation: _model.rotation, + squash: _model.squash, + ), + title: 'Polygon', + ), + ), + ], + ), + ), + Row( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + child: Container( + color: Colors.black12, + margin: const EdgeInsets.all(16.0), + padding: const EdgeInsets.all(16.0), + child: SelectableText(_model.starCode), + ), + ), + Expanded( + child: Container( + color: Colors.black12, + margin: const EdgeInsets.all(16.0), + padding: const EdgeInsets.all(16.0), + child: SelectableText(_model.polygonCode), + ), + ), + ], + ), + ], + ), + ); + } +} + +class ExampleBorder extends StatelessWidget { + const ExampleBorder({ + super.key, + required this.border, + required this.title, + }); + + final StarBorder border; + final String title; + + @override + Widget build(BuildContext context) { + return Container( + alignment: Alignment.center, + padding: const EdgeInsets.all(20), + width: 150, + height: 100, + decoration: ShapeDecoration( + color: Colors.blue.shade100, + shape: border, + ), + child: Text(title), + ); + } +} + +class Options extends StatefulWidget { + const Options(this.model, {super.key}); + + final OptionModel model; + + @override + State createState() => _OptionsState(); +} + +class _OptionsState extends State { + @override + void initState() { + super.initState(); + widget.model.addListener(_modelChanged); + } + + @override + void didUpdateWidget(Options oldWidget) { + super.didUpdateWidget(oldWidget); + if (widget.model != oldWidget.model) { + oldWidget.model.removeListener(_modelChanged); + widget.model.addListener(_modelChanged); + } + } + + @override + void dispose() { + super.dispose(); + widget.model.removeListener(_modelChanged); + } + + void _modelChanged() { + setState(() {}); + } + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.fromLTRB(5.0, 0.0, 5.0, 10.0), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Row( + children: [ + Expanded( + child: ControlSlider( + label: 'Point Rounding', + value: widget.model.pointRounding, + onChanged: (double value) { + widget.model.pointRounding = value; + }, + ), + ), + Expanded( + child: ControlSlider( + label: 'Valley Rounding', + value: widget.model.valleyRounding, + onChanged: (double value) { + widget.model.valleyRounding = value; + }, + ), + ), + ], + ), + Row( + children: [ + Expanded( + child: ControlSlider( + label: 'Squash', + value: widget.model.squash, + onChanged: (double value) { + widget.model.squash = value; + }, + ), + ), + Expanded( + child: ControlSlider( + label: 'Rotation', + value: widget.model.rotation, + max: 360, + onChanged: (double value) { + widget.model.rotation = value; + }, + ), + ), + ], + ), + Row( + children: [ + Expanded( + child: Row( + children: [ + Expanded( + child: ControlSlider( + label: 'Points', + value: widget.model.points, + min: 3, + max: 20, + precision: 1, + onChanged: (double value) { + widget.model.points = value; + }, + ), + ), + Tooltip( + message: 'Round the number of points to the nearest integer.', + child: Padding( + padding: const EdgeInsets.all(8.0), + child: OutlinedButton( + child: const Text('Nearest'), + onPressed: () { + widget.model.points = widget.model.points.roundToDouble(); + }, + ), + ), + ), + ], + ), + ), + Expanded( + child: ControlSlider( + label: 'Inner Radius', + value: widget.model.innerRadiusRatio, + onChanged: (double value) { + widget.model.innerRadiusRatio = value; + }, + ), + ), + ], + ), + ElevatedButton( + onPressed: () { + widget.model.reset(); + }, + child: const Text('Reset'), + ), + ], + ), + ); + } +} + +class OptionModel extends ChangeNotifier { + double get pointRounding => _pointRounding; + double _pointRounding = 0.0; + set pointRounding(double value) { + if (value != _pointRounding) { + _pointRounding = value; + if (_valleyRounding + _pointRounding > 1) { + _valleyRounding = 1.0 - _pointRounding; + } + notifyListeners(); + } + } + + double get valleyRounding => _valleyRounding; + double _valleyRounding = 0.0; + set valleyRounding(double value) { + if (value != _valleyRounding) { + _valleyRounding = value; + if (_valleyRounding + _pointRounding > 1) { + _pointRounding = 1.0 - _valleyRounding; + } + notifyListeners(); + } + } + + double get squash => _squash; + double _squash = 0.0; + set squash(double value) { + if (value != _squash) { + _squash = value; + notifyListeners(); + } + } + + double get rotation => _rotation; + double _rotation = 0.0; + set rotation(double value) { + if (value != _rotation) { + _rotation = value; + notifyListeners(); + } + } + + double get innerRadiusRatio => _innerRadiusRatio; + double _innerRadiusRatio = 0.4; + set innerRadiusRatio(double value) { + if (value != _innerRadiusRatio) { + _innerRadiusRatio = value.clamp(0.0001, double.infinity); + notifyListeners(); + } + } + + double get points => _points; + double _points = 5; + set points(double value) { + if (value != _points) { + _points = value; + notifyListeners(); + } + } + + String get starCode { + return 'Container(\n' + ' decoration: ShapeDecoration(\n' + ' shape: StarBorder(\n' + ' points: ${points.toStringAsFixed(_kParameterPrecision)},\n' + ' rotation: ${rotation.toStringAsFixed(_kParameterPrecision)},\n' + ' innerRadiusRatio: ${innerRadiusRatio.toStringAsFixed(_kParameterPrecision)},\n' + ' pointRounding: ${pointRounding.toStringAsFixed(_kParameterPrecision)},\n' + ' valleyRounding: ${valleyRounding.toStringAsFixed(_kParameterPrecision)},\n' + ' squash: ${squash.toStringAsFixed(_kParameterPrecision)},\n' + ' ),\n' + ' ),\n' + ');'; + } + + String get polygonCode { + return 'Container(\n' + ' decoration: ShapeDecoration(\n' + ' shape: StarBorder.polygon(\n' + ' sides: ${points.toStringAsFixed(_kParameterPrecision)},\n' + ' rotation: ${rotation.toStringAsFixed(_kParameterPrecision)},\n' + ' cornerRounding: ${pointRounding.toStringAsFixed(_kParameterPrecision)},\n' + ' squash: ${squash.toStringAsFixed(_kParameterPrecision)},\n' + ' ),\n' + ' ),\n' + ');'; + } + + void reset() { + final OptionModel defaultModel = OptionModel(); + _pointRounding = defaultModel.pointRounding; + _valleyRounding = defaultModel.valleyRounding; + _rotation = defaultModel.rotation; + _squash = defaultModel.squash; + _innerRadiusRatio = defaultModel._innerRadiusRatio; + _points = defaultModel.points; + notifyListeners(); + } +} + +class ControlSlider extends StatelessWidget { + const ControlSlider({ + super.key, + required this.label, + required this.value, + required this.onChanged, + this.min = 0.0, + this.max = 1.0, + this.precision = _kParameterPrecision, + }); + + final String label; + final double value; + final void Function(double value) onChanged; + final double min; + final double max; + final int precision; + + @override + Widget build(BuildContext context) { + return Padding( + padding: const EdgeInsets.all(4.0), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Expanded( + flex: 2, + child: Text( + label, + textAlign: TextAlign.end, + ), + ), + Expanded( + flex: 5, + child: Slider( + onChanged: onChanged, + min: min, + max: max, + value: value, + ), + ), + Expanded( + child: Text( + value.toStringAsFixed(precision), + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/box/parent_data.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/box/parent_data.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..0063f0e54427d17d464629593a85aaeb7ec9fd0d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/box/parent_data.0.dart @@ -0,0 +1,394 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +void main() => runApp(const SampleApp()); + +class SampleApp extends StatefulWidget { + const SampleApp({super.key}); + + @override + State createState() => _SampleAppState(); +} + +class _SampleAppState extends State { + // This can be toggled using buttons in the UI to change which layout render object is used. + bool _compact = false; + + // This is the content we show in the rendering. + // + // Headline and Paragraph are simple custom widgets defined below. + // + // Any widget _could_ be specified here, and would render fine. + // The Headline and Paragraph widgets are used so that the renderer + // can distinguish between the kinds of content and use different + // spacing between different children. + static const List body = [ + Headline('Bugs that improve T for future bugs'), + Paragraph( + 'The best bugs to fix are those that make us more productive ' + 'in the future. Reducing test flakiness, reducing technical ' + 'debt, increasing the number of team members who are able to ' + 'review code confidently and well: this all makes future bugs ' + 'easier to fix, which is a huge multiplier to our overall ' + 'effectiveness and thus to developer happiness.', + ), + Headline('Bugs affecting more people are more valuable (maximize N)'), + Paragraph( + 'We will make more people happier if we fix a bug experienced by more people.' + ), + Paragraph( + 'One thing to be careful about is to think about the number of ' + 'people we are ignoring in our metrics. For example, if we had ' + 'a bug that prevented our product from working on Windows, we ' + 'would have no Windows users, so the bug would affect nobody. ' + 'However, fixing the bug would enable millions of developers ' + "to use our product, and that's the number that counts." + ), + Headline('Bugs with greater impact on developers are more valuable (maximize ΔH)'), + Paragraph( + 'A slight improvement to the user experience is less valuable ' + 'than a greater improvement. For example, if our application, ' + 'under certain conditions, shows a message with a typo, and ' + 'then crashes because of an off-by-one error in the code, ' + 'fixing the crash is a higher priority than fixing the typo.' + ), + ]; + + // This is the description of the demo's interface. + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('Custom Render Boxes'), + // There are two buttons over to the top right of the demo that let you + // toggle between the two rendering modes. + actions: [ + IconButton( + icon: const Icon(Icons.density_small), + isSelected: _compact, + onPressed: () { + setState(() { _compact = true; }); + }, + ), + IconButton( + icon: const Icon(Icons.density_large), + isSelected: !_compact, + onPressed: () { + setState(() { _compact = false; }); + }, + ), + ], + ), + body: SingleChildScrollView( + padding: const EdgeInsets.symmetric(horizontal: 30.0, vertical: 20.0), + // CompactLayout and OpenLayout are the two rendering widgets defined below. + child: _compact ? const CompactLayout(children: body) : const OpenLayout(children: body), + ), + ), + ); + } +} + +// Headline and Paragraph are just wrappers around the Text widget, but they +// also introduce a TextCategory widget that the CompactLayout and OpenLayout +// widgets can read to determine what kind of child is being rendered. + +class Headline extends StatelessWidget { + const Headline(this.text, { super.key }); + + final String text; + + @override + Widget build(BuildContext context) { + return TextCategory( + category: 'headline', + child: Text(text, style: Theme.of(context).textTheme.titleLarge), + ); + } +} + +class Paragraph extends StatelessWidget { + const Paragraph(this.text, { super.key }); + + final String text; + + @override + Widget build(BuildContext context) { + return TextCategory( + category: 'paragraph', + child: Text(text, style: Theme.of(context).textTheme.bodyLarge), + ); + } +} + +// This is the ParentDataWidget that allows us to specify what kind of child +// is being rendered. It allows information to be shared with the render object +// without violating the principle of agnostic composition (wherein parents should +// work with any child, not only support a fixed set of children). +class TextCategory extends ParentDataWidget { + const TextCategory({ super.key, required this.category, required super.child }); + + final String category; + + @override + void applyParentData(RenderObject renderObject) { + final TextFlowParentData parentData = renderObject.parentData! as TextFlowParentData; + if (parentData.category != category) { + parentData.category = category; + renderObject.parent!.markNeedsLayout(); + } + } + + @override + Type get debugTypicalAncestorWidgetClass => OpenLayout; +} + +// This is one of the two layout variants. It is a widget that defers to +// a render object defined below (RenderCompactLayout). +class CompactLayout extends MultiChildRenderObjectWidget { + const CompactLayout({ super.key, super.children }); + + @override + RenderCompactLayout createRenderObject(BuildContext context) { + return RenderCompactLayout(); + } + + @override + void updateRenderObject(BuildContext context, RenderCompactLayout renderObject) { + // nothing to update + } +} + +// This is the other of the two layout variants. It is a widget that defers to a +// render object defined below (RenderOpenLayout). +class OpenLayout extends MultiChildRenderObjectWidget { + const OpenLayout({ super.key, super.children }); + + @override + RenderOpenLayout createRenderObject(BuildContext context) { + return RenderOpenLayout(); + } + + @override + void updateRenderObject(BuildContext context, RenderOpenLayout renderObject) { + // nothing to update + } +} + +// This is the data structure that contains the kind of data that can be +// passed to the parent to label the child. It is literally stored on +// the RenderObject child, in its "parentData" field. +class TextFlowParentData extends ContainerBoxParentData { + String category = ''; +} + +// This is the bulk of the layout logic. (It's similar to RenderListBody, +// but only supports vertical layout.) It has no properties. +// +// This is an abstract class that is then extended by RenderCompactLayout and +// RenderOpenLayout to get different layouts based on the children's categories, +// as stored in the ParentData structure defined above. +// +// The documentation for the RenderBox class and its members provides much +// more detail on how to implement each of the methods below. +abstract class RenderTextFlow extends RenderBox + with ContainerRenderObjectMixin, + RenderBoxContainerDefaultsMixin { + RenderTextFlow({ List? children }) { + addAll(children); + } + + @override + void setupParentData(RenderBox child) { + if (child.parentData is! TextFlowParentData) { + child.parentData = TextFlowParentData(); + } + } + + // This is the function that is overridden by the subclasses to do the + // actual decision about the space to use between children. + double spacingBetween(String before, String after); + + // The next few functions are the layout functions. In each case we walk the + // children, calling each one to determine the geometry of the child, and use + // that to determine the layout. + + // The first two functions compute the intrinsic width of the render object, + // as seen when using the IntrinsicWidth widget. + // + // They essentially defer to the widest child. + + @override + double computeMinIntrinsicWidth(double height) { + double width = 0.0; + RenderBox? child = firstChild; + while (child != null) { + final double childWidth = child.getMinIntrinsicWidth(height); + if (childWidth > width) { + width = childWidth; + } + child = childAfter(child); + } + return width; + } + + @override + double computeMaxIntrinsicWidth(double height) { + double width = 0.0; + RenderBox? child = firstChild; + while (child != null) { + final double childWidth = child.getMaxIntrinsicWidth(height); + if (childWidth > width) { + width = childWidth; + } + child = childAfter(child); + } + return width; + } + + // The next two functions compute the intrinsic height of the render object, + // as seen when using the IntrinsicHeight widget. + // + // They add up the height contributed by each child. + // + // They have to take into account the categories of the children and the + // spacing that will be added, hence the slightly more elaborate logic. + + @override + double computeMinIntrinsicHeight(double width) { + String? previousCategory; + double height = 0.0; + RenderBox? child = firstChild; + while (child != null) { + final String category = (child.parentData! as TextFlowParentData).category; + if (previousCategory != null) { + height += spacingBetween(previousCategory, category); + } + height += child.getMinIntrinsicHeight(width); + previousCategory = category; + child = childAfter(child); + } + return height; + } + + @override + double computeMaxIntrinsicHeight(double width) { + String? previousCategory; + double height = 0.0; + RenderBox? child = firstChild; + while (child != null) { + final String category = (child.parentData! as TextFlowParentData).category; + if (previousCategory != null) { + height += spacingBetween(previousCategory, category); + } + height += child.getMaxIntrinsicHeight(width); + previousCategory = category; + child = childAfter(child); + } + return height; + } + + // This function implements the baseline logic. Because this class does + // nothing special, we just defer to the default implementation in the + // RenderBoxContainerDefaultsMixin utility class. + + @override + double? computeDistanceToActualBaseline(TextBaseline baseline) { + return defaultComputeDistanceToFirstActualBaseline(baseline); + } + + // Next we have a function similar to the intrinsic methods, but for both axes + // at the same time. + + @override + Size computeDryLayout(BoxConstraints constraints) { + final BoxConstraints innerConstraints = BoxConstraints.tightFor(width: constraints.maxWidth); + String? previousCategory; + double y = 0.0; + RenderBox? child = firstChild; + while (child != null) { + final String category = (child.parentData! as TextFlowParentData).category; + if (previousCategory != null) { + y += spacingBetween(previousCategory, category); + } + final Size childSize = child.getDryLayout(innerConstraints); + y += childSize.height; + previousCategory = category; + child = childAfter(child); + } + return constraints.constrain(Size(constraints.maxWidth, y)); + } + + // This is the core of the layout logic. Most of the time, this is the only + // function that will be called. It computes the size and position of each + // child, and stores it (in the parent data, as it happens!) for use during + // the paint phase. + + @override + void performLayout() { + final BoxConstraints innerConstraints = BoxConstraints.tightFor(width: constraints.maxWidth); + String? previousCategory; + double y = 0.0; + RenderBox? child = firstChild; + while (child != null) { + final String category = (child.parentData! as TextFlowParentData).category; + if (previousCategory != null) { + // This is where we call the function that computes the spacing between + // the different children. The arguments are the categories, obtained + // from the parentData property of each child. + y += spacingBetween(previousCategory, category); + } + child.layout(innerConstraints, parentUsesSize: true); + (child.parentData! as TextFlowParentData).offset = Offset(0.0, y); + y += child.size.height; + previousCategory = category; + child = childAfter(child); + } + size = constraints.constrain(Size(constraints.maxWidth, y)); + } + + // Hit testing is normal for this widget, so we defer to the default implementation. + @override + bool hitTestChildren(BoxHitTestResult result, { required Offset position }) { + return defaultHitTestChildren(result, position: position); + } + + // Painting is normal for this widget, so we defer to the default + // implementation. The default implementation expects to find the positions + // configured in the parentData property of each child, which is why we + // configure it that way in performLayout above. + @override + void paint(PaintingContext context, Offset offset) { + defaultPaint(context, offset); + } +} + +// Finally we have the two render objects that implement the two layouts in this demo. + +class RenderOpenLayout extends RenderTextFlow { + @override + double spacingBetween(String before, String after) { + if (after == 'headline') { + return 20.0; + } + if (before == 'headline') { + return 5.0; + } + return 10.0; + } +} + +class RenderCompactLayout extends RenderTextFlow { + @override + double spacingBetween(String before, String after) { + if (after == 'headline') { + return 4.0; + } + return 2.0; + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/growth_direction/growth_direction.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/growth_direction/growth_direction.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..d5ca03e434f649440c1e3fb9323d140ce23ebdb0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/growth_direction/growth_direction.0.dart @@ -0,0 +1,223 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +/// Flutter code sample for [GrowthDirection]s. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: MyWidget(), + ); + } +} + +class MyWidget extends StatefulWidget { + const MyWidget({super.key}); + + @override + State createState() => _MyWidgetState(); +} + +class _MyWidgetState extends State { + final List _alphabet = [ + 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', + 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', + ]; + final Widget _spacer = const SizedBox.square(dimension: 10); + final UniqueKey _center = UniqueKey(); + AxisDirection _axisDirection = AxisDirection.down; + + Widget _getArrows(AxisDirection axisDirection) { + final Widget arrow; + switch (axisDirection) { + case AxisDirection.up: + arrow = const Icon(Icons.arrow_upward_rounded); + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + case AxisDirection.down: + arrow = const Icon(Icons.arrow_downward_rounded); + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + case AxisDirection.left: + arrow = const Icon(Icons.arrow_back_rounded); + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + case AxisDirection.right: + arrow = const Icon(Icons.arrow_forward_rounded); + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + } + } + + void _onAxisDirectionChanged(AxisDirection? axisDirection) { + if (axisDirection != null && axisDirection != _axisDirection) { + setState(() { + // Respond to change in axis direction. + _axisDirection = axisDirection; + }); + } + } + + Widget _getLeading(SliverConstraints constraints, bool isForward) { + return Container( + color: isForward ? Colors.orange[300] : Colors.green[400], + padding: const EdgeInsets.all(8.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text(constraints.axis.toString()), + _spacer, + Text(constraints.axisDirection.toString()), + _spacer, + Text(constraints.growthDirection.toString()), + _spacer, + _getArrows( + isForward + ? _axisDirection + // This method is available to conveniently flip an AxisDirection + // into its opposite direction. + : flipAxisDirection(_axisDirection), + ), + ], + ), + ); + } + + Widget _getRadioRow() { + return DefaultTextStyle( + style: const TextStyle(fontWeight: FontWeight.bold, color: Colors.white), + child: RadioTheme( + data: RadioThemeData( + fillColor: MaterialStateProperty.all(Colors.white), + ), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Radio( + value: AxisDirection.up, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('up'), + _spacer, + Radio( + value: AxisDirection.down, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('down'), + _spacer, + Radio( + value: AxisDirection.left, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('left'), + _spacer, + Radio( + value: AxisDirection.right, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('right'), + _spacer, + ], + ), + ), + ), + ); + } + + Widget _getList({required bool isForward}) { + // The SliverLayoutBuilder is not necessary, and is here to allow us to see + // the SliverConstraints & directional information that is provided to the + // SliverList when laying out. + return SliverLayoutBuilder( + builder: (BuildContext context, SliverConstraints constraints) { + return SliverList.builder( + itemCount: 27, + itemBuilder: (BuildContext context, int index) { + final Widget child; + if (index == 0) { + child = _getLeading(constraints, isForward); + } else { + child = Container( + color: isForward + ? (index.isEven ? Colors.amber[100] : Colors.amberAccent) + : (index.isEven ? Colors.green[100] : Colors.lightGreen), + padding: const EdgeInsets.all(8.0), + child: Center(child: Text(_alphabet[index - 1])), + ); + } + return Padding( + padding: const EdgeInsets.all(8.0), + child: child, + ); + }, + ); + }, + ); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('GrowthDirections'), + bottom: PreferredSize( + preferredSize: const Size.fromHeight(50), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: _getRadioRow(), + ), + ), + ), + body: CustomScrollView( + // This method is available to conveniently determine if an scroll + // view is reversed by its AxisDirection. + reverse: axisDirectionIsReversed(_axisDirection), + // This method is available to conveniently convert an AxisDirection + // into its Axis. + scrollDirection: axisDirectionToAxis(_axisDirection), + // Places the leading edge of the center sliver in the middle of the + // viewport. Changing this value between 0.0 (the default) and 1.0 + // changes the position of the inflection point between GrowthDirections + // in the viewport when the slivers are laid out. + anchor: 0.5, + center: _center, + slivers: [ + _getList(isForward: false), + SliverToBoxAdapter( + // This sliver will be located at the anchor. The scroll position + // will progress in either direction from this point. + key: _center, + child: const Padding( + padding: EdgeInsets.all(8.0), + child: Center(child: Text('0', style: TextStyle(fontWeight: FontWeight.bold))), + ), + ), + _getList(isForward: true), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/scroll_direction/scroll_direction.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/scroll_direction/scroll_direction.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..6eb3c9c913049fcc50052860221fc1f2bdbd9073 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/scroll_direction/scroll_direction.0.dart @@ -0,0 +1,204 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +/// Flutter code sample for [ScrollDirection]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: MyWidget(), + ); + } +} + +class MyWidget extends StatefulWidget { + const MyWidget({super.key}); + + @override + State createState() => _MyWidgetState(); +} + +class _MyWidgetState extends State { + final List alphabet = [ + 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', + 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', + ]; + final Widget spacer = const SizedBox.square(dimension: 10); + ScrollDirection scrollDirection = ScrollDirection.idle; + AxisDirection _axisDirection = AxisDirection.down; + + Widget _getArrows() { + final Widget arrow; + switch (_axisDirection) { + case AxisDirection.up: + arrow = const Icon(Icons.arrow_upward_rounded); + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + case AxisDirection.down: + arrow = const Icon(Icons.arrow_downward_rounded); + return Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + case AxisDirection.left: + arrow = const Icon(Icons.arrow_back_rounded); + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + case AxisDirection.right: + arrow = const Icon(Icons.arrow_forward_rounded); + return Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [arrow, arrow], + ); + } + } + + void _onAxisDirectionChanged(AxisDirection? axisDirection) { + if (axisDirection != null && axisDirection != _axisDirection) { + setState(() { + // Respond to change in axis direction. + _axisDirection = axisDirection; + }); + } + } + + Widget _getLeading() { + return Container( + color: Colors.blue[100], + padding: const EdgeInsets.all(8.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + Text(axisDirectionToAxis(_axisDirection).toString()), + spacer, + Text(_axisDirection.toString()), + spacer, + const Text('GrowthDirection.forward'), + spacer, + Text(scrollDirection.toString()), + spacer, + _getArrows(), + ], + ), + ); + } + + Widget _getRadioRow() { + return DefaultTextStyle( + style: const TextStyle(fontWeight: FontWeight.bold, color: Colors.white), + child: RadioTheme( + data: RadioThemeData( + fillColor: MaterialStateProperty.all(Colors.white), + ), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Radio( + value: AxisDirection.up, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('up'), + spacer, + Radio( + value: AxisDirection.down, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('down'), + spacer, + Radio( + value: AxisDirection.left, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('left'), + spacer, + Radio( + value: AxisDirection.right, + groupValue: _axisDirection, + onChanged: _onAxisDirectionChanged, + ), + const Text('right'), + spacer, + ], + ), + ), + ), + ); + } + + bool _handleNotification(UserScrollNotification notification) { + if (notification.direction != scrollDirection) { + setState(() { + scrollDirection = notification.direction; + }); + } + return false; + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('ScrollDirections'), + bottom: PreferredSize( + preferredSize: const Size.fromHeight(50), + child: Padding( + padding: const EdgeInsets.all(8.0), + child: _getRadioRow(), + ), + ), + ), + body: NotificationListener( + onNotification: _handleNotification, + // Also works for ListView.builder, which creates a SliverList for itself. + // A CustomScrollView allows multiple slivers to be composed together. + child: CustomScrollView( + // This method is available to conveniently determine if an scroll + // view is reversed by its AxisDirection. + reverse: axisDirectionIsReversed(_axisDirection), + // This method is available to conveniently convert an AxisDirection + // into its Axis. + scrollDirection: axisDirectionToAxis(_axisDirection), + slivers: [ + SliverList.builder( + itemCount: 27, + itemBuilder: (BuildContext context, int index) { + final Widget child; + if (index == 0) { + child = _getLeading(); + } else { + child = Container( + color: index.isEven ? Colors.amber[100] : Colors.amberAccent, + padding: const EdgeInsets.all(8.0), + child: Center(child: Text(alphabet[index - 1])), + ); + } + return Padding( + padding: const EdgeInsets.all(8.0), + child: child, + ); + }, + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e35b2d9202454706c1cef354bb12b8433abdb57e --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.0.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverGridDelegateWithFixedCrossAxisCount]. + +void main() => runApp(const SliverGridDelegateWithFixedCrossAxisCountExampleApp()); + +class SliverGridDelegateWithFixedCrossAxisCountExampleApp extends StatelessWidget { + const SliverGridDelegateWithFixedCrossAxisCountExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverGridDelegateWithFixedCrossAxisCount Sample')), + body: const SliverGridDelegateWithFixedCrossAxisCountExample(), + ), + ); + } +} + +class SliverGridDelegateWithFixedCrossAxisCountExample extends StatelessWidget { + const SliverGridDelegateWithFixedCrossAxisCountExample({super.key}); + + @override + Widget build(BuildContext context) { + return GridView( + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 4, + childAspectRatio: 0.5, + ), + children: List.generate(20, (int i) { + return Builder(builder: (BuildContext context) { + return Text('$i'); + }); + }), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..399cc64ff4a2caa58bc32fa92be5a93f8d91ffc9 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/rendering/sliver_grid/sliver_grid_delegate_with_fixed_cross_axis_count.1.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverGridDelegateWithFixedCrossAxisCount]. + +void main() => runApp(const SliverGridDelegateWithFixedCrossAxisCountExampleApp()); + +class SliverGridDelegateWithFixedCrossAxisCountExampleApp extends StatelessWidget { + const SliverGridDelegateWithFixedCrossAxisCountExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverGridDelegateWithFixedCrossAxisCount Sample')), + body: const SliverGridDelegateWithFixedCrossAxisCountExample(), + ), + ); + } +} + +class SliverGridDelegateWithFixedCrossAxisCountExample extends StatelessWidget { + const SliverGridDelegateWithFixedCrossAxisCountExample({super.key}); + + @override + Widget build(BuildContext context) { + return GridView( + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount( + crossAxisCount: 4, + mainAxisExtent: 150.0, + ), + children: List.generate(20, (int i) { + return Builder(builder: (BuildContext context) { + return Text('$i'); + }); + }), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/services/binding/handle_request_app_exit.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/binding/handle_request_app_exit.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..3757b315c09ece8c057f5c17f2ee223d5018f51a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/binding/handle_request_app_exit.0.dart @@ -0,0 +1,109 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:ui'; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [ServicesBinding.handleRequestAppExit]. + +void main() { + runApp(const ApplicationExitExample()); +} + +class ApplicationExitExample extends StatelessWidget { + const ApplicationExitExample({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: Scaffold(body: Body()), + ); + } +} + +class Body extends StatefulWidget { + const Body({super.key}); + + @override + State createState() => _BodyState(); +} + +class _BodyState extends State with WidgetsBindingObserver { + bool _shouldExit = false; + String lastResponse = 'No exit requested yet'; + + @override + void initState() { + super.initState(); + WidgetsBinding.instance.addObserver(this); + } + + @override + void dispose() { + WidgetsBinding.instance.removeObserver(this); + super.dispose(); + } + + Future _quit() async { + final AppExitType exitType = _shouldExit ? AppExitType.required : AppExitType.cancelable; + setState(() { + lastResponse = 'App requesting ${exitType.name} exit'; + }); + await ServicesBinding.instance.exitApplication(exitType); + } + + @override + Future didRequestAppExit() async { + final AppExitResponse response = _shouldExit ? AppExitResponse.exit : AppExitResponse.cancel; + setState(() { + lastResponse = 'App responded ${response.name} to exit request'; + }); + return response; + } + + void _radioChanged(bool? value) { + value ??= true; + if (_shouldExit == value) { + return; + } + setState(() { + _shouldExit = value!; + }); + } + + @override + Widget build(BuildContext context) { + return Center( + child: SizedBox( + width: 300, + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + RadioListTile( + title: const Text('Do Not Allow Exit'), + groupValue: _shouldExit, + value: false, + onChanged: _radioChanged, + ), + RadioListTile( + title: const Text('Allow Exit'), + groupValue: _shouldExit, + value: true, + onChanged: _radioChanged, + ), + const SizedBox(height: 30), + ElevatedButton( + onPressed: _quit, + child: const Text('Quit'), + ), + const SizedBox(height: 30), + Text(lastResponse), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/services/keyboard_key/logical_keyboard_key.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/keyboard_key/logical_keyboard_key.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..4dc3d8febda1eca804f114611c9851b2eb16f312 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/keyboard_key/logical_keyboard_key.0.dart @@ -0,0 +1,95 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [LogicalKeyboardKey]. + +void main() => runApp(const KeyExampleApp()); + +class KeyExampleApp extends StatelessWidget { + const KeyExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Key Handling Example')), + body: const MyKeyExample(), + ), + ); + } +} + +class MyKeyExample extends StatefulWidget { + const MyKeyExample({super.key}); + + @override + State createState() => _MyKeyExampleState(); +} + +class _MyKeyExampleState extends State { + // The node used to request the keyboard focus. + final FocusNode _focusNode = FocusNode(); + // The message to display. + String? _message; + + // Focus nodes need to be disposed. + @override + void dispose() { + _focusNode.dispose(); + super.dispose(); + } + + // Handles the key events from the Focus widget and updates the + // _message. + KeyEventResult _handleKeyEvent(FocusNode node, KeyEvent event) { + setState(() { + if (event.logicalKey == LogicalKeyboardKey.keyQ) { + _message = 'Pressed the "Q" key!'; + } else { + if (kReleaseMode) { + _message = 'Not a Q: Pressed 0x${event.logicalKey.keyId.toRadixString(16)}'; + } else { + // As the name implies, the debugName will only print useful + // information in debug mode. + _message = 'Not a Q: Pressed ${event.logicalKey.debugName}'; + } + } + }); + return event.logicalKey == LogicalKeyboardKey.keyQ ? KeyEventResult.handled : KeyEventResult.ignored; + } + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + return Container( + color: Colors.white, + alignment: Alignment.center, + child: DefaultTextStyle( + style: textTheme.headlineMedium!, + child: Focus( + focusNode: _focusNode, + onKeyEvent: _handleKeyEvent, + child: ListenableBuilder( + listenable: _focusNode, + builder: (BuildContext context, Widget? child) { + if (!_focusNode.hasFocus) { + return GestureDetector( + onTap: () { + FocusScope.of(context).requestFocus(_focusNode); + }, + child: const Text('Click to focus'), + ); + } + return Text(_message ?? 'Press a key'); + }, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/services/keyboard_key/physical_keyboard_key.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/keyboard_key/physical_keyboard_key.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..5e1d635b426c70d0fb765ca7ed119a4c77f58832 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/keyboard_key/physical_keyboard_key.0.dart @@ -0,0 +1,95 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [PhysicalKeyboardKey]. + +void main() => runApp(const KeyExampleApp()); + +class KeyExampleApp extends StatelessWidget { + const KeyExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('PhysicalKeyboardKey Example')), + body: const MyPhysicalKeyExample(), + ), + ); + } +} + +class MyPhysicalKeyExample extends StatefulWidget { + const MyPhysicalKeyExample({super.key}); + + @override + State createState() => _MyPhysicalKeyExampleState(); +} + +class _MyPhysicalKeyExampleState extends State { +// The node used to request the keyboard focus. + final FocusNode _focusNode = FocusNode(); +// The message to display. + String? _message; + +// Focus nodes need to be disposed. + @override + void dispose() { + _focusNode.dispose(); + super.dispose(); + } + +// Handles the key events from the RawKeyboardListener and update the +// _message. + KeyEventResult _handleKeyEvent(FocusNode node, KeyEvent event) { + setState(() { + if (event.physicalKey == PhysicalKeyboardKey.keyA) { + _message = 'Pressed the key next to CAPS LOCK!'; + } else { + if (kReleaseMode) { + _message = 'Not the key next to CAPS LOCK: Pressed 0x${event.physicalKey.usbHidUsage.toRadixString(16)}'; + } else { + // As the name implies, the debugName will only print useful + // information in debug mode. + _message = 'Not the key next to CAPS LOCK: Pressed ${event.physicalKey.debugName}'; + } + } + }); + return event.physicalKey == PhysicalKeyboardKey.keyA ? KeyEventResult.handled : KeyEventResult.ignored; + } + + @override + Widget build(BuildContext context) { + final TextTheme textTheme = Theme.of(context).textTheme; + return Container( + color: Colors.white, + alignment: Alignment.center, + child: DefaultTextStyle( + style: textTheme.headlineMedium!, + child: Focus( + focusNode: _focusNode, + onKeyEvent: _handleKeyEvent, + child: ListenableBuilder( + listenable: _focusNode, + builder: (BuildContext context, Widget? child) { + if (!_focusNode.hasFocus) { + return GestureDetector( + onTap: () { + FocusScope.of(context).requestFocus(_focusNode); + }, + child: const Text('Click to focus'), + ); + } + return Text(_message ?? 'Press a key'); + }, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/services/mouse_cursor/mouse_cursor.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/mouse_cursor/mouse_cursor.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e5db8fe766ffc352eb277935cbffa1acc5dd95bd --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/mouse_cursor/mouse_cursor.0.dart @@ -0,0 +1,44 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [MouseCursor]. + +void main() => runApp(const MouseCursorExampleApp()); + +class MouseCursorExampleApp extends StatelessWidget { + const MouseCursorExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('MouseCursor Code Sample')), + body: const MouseCursorExample(), + ), + ); + } +} + +class MouseCursorExample extends StatelessWidget { + const MouseCursorExample({super.key}); + + @override + Widget build(BuildContext context) { + return Center( + child: MouseRegion( + cursor: SystemMouseCursors.text, + child: Container( + width: 200, + height: 100, + decoration: BoxDecoration( + color: Colors.blue, + border: Border.all(color: Colors.yellow), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/services/system_chrome/system_chrome.set_system_u_i_overlay_style.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/system_chrome/system_chrome.set_system_u_i_overlay_style.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..4aaca41f3f870f1937f52d6593f0b98c48fe75aa --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/system_chrome/system_chrome.set_system_u_i_overlay_style.0.dart @@ -0,0 +1,70 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [AppBar.systemOverlayStyle]. + +void main() => runApp(const SystemOverlayStyleApp()); + +class SystemOverlayStyleApp extends StatelessWidget { + const SystemOverlayStyleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + useMaterial3: true, + brightness: Brightness.light, + ), + home: const SystemOverlayStyleExample(), + ); + } +} + +class SystemOverlayStyleExample extends StatefulWidget { + const SystemOverlayStyleExample({super.key}); + + @override + State createState() => _SystemOverlayStyleExampleState(); +} + +class _SystemOverlayStyleExampleState extends State { + final math.Random _random = math.Random(); + SystemUiOverlayStyle _currentStyle = SystemUiOverlayStyle.light; + + void _changeColor() { + final Color color = Color.fromRGBO( + _random.nextInt(255), + _random.nextInt(255), + _random.nextInt(255), + 1.0, + ); + setState(() { + _currentStyle = SystemUiOverlayStyle.dark.copyWith( + statusBarColor: color, + systemNavigationBarColor: color, + ); + }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('SystemUiOverlayStyle Sample'), + systemOverlayStyle: _currentStyle, + ), + body: Center( + child: ElevatedButton( + onPressed: _changeColor, + child: const Text('Change Color'), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/services/system_chrome/system_chrome.set_system_u_i_overlay_style.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/system_chrome/system_chrome.set_system_u_i_overlay_style.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..6cb5fca2cc042c79015e86603b3282991f6c64e3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/system_chrome/system_chrome.set_system_u_i_overlay_style.1.dart @@ -0,0 +1,83 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for setting the [SystemUiOverlayStyle] with an [AnnotatedRegion]. + +void main() => runApp(const SystemOverlayStyleApp()); + +class SystemOverlayStyleApp extends StatelessWidget { + const SystemOverlayStyleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + useMaterial3: true, + brightness: Brightness.light, + ), + home: const SystemOverlayStyleExample(), + ); + } +} + +class SystemOverlayStyleExample extends StatefulWidget { + const SystemOverlayStyleExample({super.key}); + + @override + State createState() => _SystemOverlayStyleExampleState(); +} + +class _SystemOverlayStyleExampleState extends State { + final math.Random _random = math.Random(); + SystemUiOverlayStyle _currentStyle = SystemUiOverlayStyle.light; + + void _changeColor() { + final Color color = Color.fromRGBO( + _random.nextInt(255), + _random.nextInt(255), + _random.nextInt(255), + 1.0, + ); + setState(() { + _currentStyle = SystemUiOverlayStyle.dark.copyWith( + statusBarColor: color, + systemNavigationBarColor: color, + ); + }); + } + + @override + Widget build(BuildContext context) { + return AnnotatedRegion( + value: _currentStyle, + child: Scaffold( + body: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Padding( + padding: const EdgeInsets.all(16.0), + child: Text( + 'SystemUiOverlayStyle Sample', + style: Theme.of(context).textTheme.titleLarge, + ), + ), + Expanded( + child: Center( + child: ElevatedButton( + onPressed: _changeColor, + child: const Text('Change Color'), + ), + ), + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/services/text_input/text_input_control.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/text_input/text_input_control.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..64c508dd35b6b30b294313a1d2dcf3db1adddb14 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/services/text_input/text_input_control.0.dart @@ -0,0 +1,167 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [TextInputControl]. + +void main() => runApp(const TextInputControlExampleApp()); + +class TextInputControlExampleApp extends StatelessWidget { + const TextInputControlExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: TextInputControlExample(), + ); + } +} + +class TextInputControlExample extends StatefulWidget { + const TextInputControlExample({super.key}); + + @override + MyStatefulWidgetState createState() => MyStatefulWidgetState(); +} + +class MyStatefulWidgetState extends State { + final TextEditingController _controller = TextEditingController(); + final FocusNode _focusNode = FocusNode(); + + @override + void dispose() { + super.dispose(); + _controller.dispose(); + _focusNode.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: TextField( + autofocus: true, + controller: _controller, + focusNode: _focusNode, + decoration: InputDecoration( + suffix: IconButton( + icon: const Icon(Icons.clear), + tooltip: 'Clear and unfocus', + onPressed: () { + _controller.clear(); + _focusNode.unfocus(); + }, + ), + ), + ), + ), + bottomSheet: const MyVirtualKeyboard(), + ); + } +} + +class MyVirtualKeyboard extends StatefulWidget { + const MyVirtualKeyboard({super.key}); + + @override + MyVirtualKeyboardState createState() => MyVirtualKeyboardState(); +} + +class MyVirtualKeyboardState extends State { + final MyTextInputControl _inputControl = MyTextInputControl(); + + @override + void initState() { + super.initState(); + _inputControl.register(); + } + + @override + void dispose() { + super.dispose(); + _inputControl.unregister(); + } + + void _handleKeyPress(String key) { + _inputControl.processUserInput(key); + } + + @override + Widget build(BuildContext context) { + return ValueListenableBuilder( + valueListenable: _inputControl.visible, + builder: (_, bool visible, __) { + return Visibility( + visible: visible, + child: FocusScope( + canRequestFocus: false, + child: TextFieldTapRegion( + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + for (final String key in ['A', 'B', 'C']) + ElevatedButton( + child: Text(key), + onPressed: () => _handleKeyPress(key), + ), + ], + ), + ), + ), + ); + }, + ); + } +} + +class MyTextInputControl with TextInputControl { + TextEditingValue _editingState = TextEditingValue.empty; + final ValueNotifier _visible = ValueNotifier(false); + + /// The input control's visibility state for updating the visual presentation. + ValueListenable get visible => _visible; + + /// Register the input control. + void register() => TextInput.setInputControl(this); + + /// Restore the original platform input control. + void unregister() => TextInput.restorePlatformInputControl(); + + @override + void show() => _visible.value = true; + + @override + void hide() => _visible.value = false; + + @override + void setEditingState(TextEditingValue value) => _editingState = value; + + /// Process user input. + /// + /// Updates the internal editing state by inserting the input text, + /// and by replacing the current selection if any. + void processUserInput(String input) { + _editingState = _editingState.copyWith( + text: _insertText(input), + selection: _replaceSelection(input), + ); + + // Request the attached client to update accordingly. + TextInput.updateEditingValue(_editingState); + } + + String _insertText(String input) { + final String text = _editingState.text; + final TextSelection selection = _editingState.selection; + return text.replaceRange(selection.start, selection.end, input); + } + + TextSelection _replaceSelection(String input) { + final TextSelection selection = _editingState.selection; + return TextSelection.collapsed(offset: selection.start + input.length); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..cc657cf1289bdf6be599cb730386d5e7158c3c55 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.0.dart @@ -0,0 +1,78 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [FontFeature]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ExampleWidget(), + ); + } +} + +final TextStyle titleStyle = TextStyle( + fontSize: 18, + fontFeatures: const [FontFeature.enable('smcp')], + color: Colors.blueGrey[600], +); + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Cardo, Milonga and Raleway Dots fonts can be downloaded from Google + // Fonts (https://www.google.com/fonts). + return Scaffold( + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Spacer(flex: 5), + Text('regular numbers have their place:', style: titleStyle), + const Text('The 1972 cup final was a 1-1 draw.', + style: TextStyle( + fontFamily: 'Cardo', + fontSize: 24, + )), + const Spacer(), + Text('but old-style figures blend well with lower case:', style: titleStyle), + const Text('The 1972 cup final was a 1-1 draw.', + style: TextStyle( + fontFamily: 'Cardo', fontSize: 24, fontFeatures: [FontFeature.oldstyleFigures()])), + const Spacer(), + const Divider(), + const Spacer(), + Text('fractions look better with a custom ligature:', style: titleStyle), + const Text('Add 1/2 tsp of flour and stir.', + style: TextStyle( + fontFamily: 'Milonga', + fontSize: 24, + fontFeatures: [FontFeature.alternativeFractions()])), + const Spacer(), + const Divider(), + const Spacer(), + Text('multiple stylistic sets in one font:', style: titleStyle), + const Text('Raleway Dots', style: TextStyle(fontFamily: 'Raleway Dots', fontSize: 48)), + Text('Raleway Dots', + style: TextStyle( + fontFeatures: [FontFeature.stylisticSet(1)], + fontFamily: 'Raleway Dots', + fontSize: 48, + )), + const Spacer(flex: 5), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_alternative.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_alternative.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..95491a10a946b7b1f54fa76b89ce3c906669a769 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_alternative.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.alternative]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Raleway font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'The infamous Tuna Torture.', + style: TextStyle( + fontFamily: 'Raleway', + fontFeatures: [ + FontFeature.alternative(1), // or 2, or 3, or... + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_alternative_fractions.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_alternative_fractions.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..62e365970538b0a6892733f14908b3837c3bffd2 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_alternative_fractions.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.alternativeFractions]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Ubuntu Mono font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'Fractions: 1/2 2/3 3/4 4/5', + style: TextStyle( + fontFamily: 'Ubuntu Mono', + fontFeatures: [ + FontFeature.alternativeFractions(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_case_sensitive_forms.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_case_sensitive_forms.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..8ad787769d25fe838f7764bb3d209e67ac876e6f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_case_sensitive_forms.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.caseSensitiveForms]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Piazzolla font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + '(A) [A] {A} «A» A/B A•B', + style: TextStyle( + fontFamily: 'Piazzolla', + fontFeatures: [ + FontFeature.caseSensitiveForms(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_character_variant.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_character_variant.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..0acf1621faa8f30606158903a7276cde7e93e9a4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_character_variant.0.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.characterVariant]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Source Code Pro font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return Text( + 'aáâ β gǵĝ θб Iiíî Ll', + style: TextStyle( + fontFamily: 'Source Code Pro', + fontFeatures: [ + FontFeature.characterVariant(1), + FontFeature.characterVariant(2), + FontFeature.characterVariant(4), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_contextual_alternates.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_contextual_alternates.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..f71d8f3b186c266125d374d1fc4e3b5891812963 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_contextual_alternates.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.contextualAlternates]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Barriecito font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + "Ooohh, we weren't going to tell him that.", + style: TextStyle( + fontFamily: 'Barriecito', + fontFeatures: [ + FontFeature.contextualAlternates(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_denominator.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_denominator.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e62a9dd2679efd141765617a1b22f6c50e79df10 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_denominator.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.denominator]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Piazzolla font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'Fractions: 1/2 2/3 3/4 4/5', + style: TextStyle( + fontFamily: 'Piazzolla', + fontFeatures: [ + FontFeature.denominator(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_fractions.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_fractions.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..c77c679dc6ee346604e415aa0af398b37b0edcf4 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_fractions.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.fractions]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Ubuntu Mono font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'Fractions: 1/2 2/3 3/4 4/5', + style: TextStyle( + fontFamily: 'Ubuntu Mono', + fontFeatures: [ + FontFeature.fractions(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_historical_forms.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_historical_forms.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..3de92ab69838af01816ad354200bd7ff8cc30b52 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_historical_forms.0.dart @@ -0,0 +1,41 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.historicalForms]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Cardo font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'VIBRANT fish assisted his business.', + style: TextStyle( + fontFamily: 'Sorts Mill Goudy', + fontFeatures: [ + FontFeature.historicalForms(), // Enables "hist". + // Use FontFeature.historicalLigatures() to enable "hlig" as well. + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_historical_ligatures.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_historical_ligatures.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..9418c31d21d09c441c16d2dbc50d0d558303ac4f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_historical_ligatures.0.dart @@ -0,0 +1,41 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.historicalLigatures]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Cardo font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'VIBRANT fish assisted his business.', + style: TextStyle( + fontFamily: 'Sorts Mill Goudy', + fontFeatures: [ + FontFeature.historicalForms(), // Enables "hist". + FontFeature.historicalLigatures(), // Enables "hlig". + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_lining_figures.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_lining_figures.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..3a82a31533f1b01434c508972b17cc9bec490c10 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_lining_figures.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.liningFigures]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Sorts Mill Goudy font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'CALL 311-555-2368 NOW!', + style: TextStyle( + fontFamily: 'Sorts Mill Goudy', + fontFeatures: [ + FontFeature.liningFigures(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_locale_aware.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_locale_aware.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..ca34cd4281af69bdffc9288f53c5c7c3abe507c5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_locale_aware.0.dart @@ -0,0 +1,38 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.localeAware]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Noto family of fonts can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + '次 化 刃 直 入 令', + locale: Locale('zh', 'CN'), // or Locale('ja'), Locale('ko'), Locale('zh', 'TW'), etc + style: TextStyle( + fontFamily: 'Noto Sans', + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_notational_forms.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_notational_forms.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..42e1354d8fcf8299d460052a8822c304758015f5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_notational_forms.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.notationalForms]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Gothic A1 font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'abc 123', + style: TextStyle( + fontFamily: 'Gothic A1', + fontFeatures: [ + FontFeature.notationalForms(3), // circled letters and digits + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_numerators.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_numerators.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..c16efd0b1ba2f3875ef508264b8d43ee361590e8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_numerators.0.dart @@ -0,0 +1,41 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.numerators]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +/// This is the stateless widget that the main application instantiates. +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Piazzolla font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'Fractions: 1/2 2/3 3/4 4/5', + style: TextStyle( + fontFamily: 'Piazzolla', + fontFeatures: [ + FontFeature.numerators(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_oldstyle_figures.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_oldstyle_figures.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..9649d0f2b293e7e5f69b045aa33f47c6460795a7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_oldstyle_figures.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.oldstyleFigures]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Piazzolla font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'Call 311-555-2368 now!', + style: TextStyle( + fontFamily: 'Piazzolla', + fontFeatures: [ + FontFeature.oldstyleFigures(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_ordinal_forms.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_ordinal_forms.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..dbec73a0978c80f6801675bb03cabd176b5380f3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_ordinal_forms.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.ordinalForms]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Piazzolla font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + '1st, 2nd, 3rd, 4th...', + style: TextStyle( + fontFamily: 'Piazzolla', + fontFeatures: [ + FontFeature.ordinalForms(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_proportional_figures.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_proportional_figures.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..283f747f797d2bf16382599ae747758fb45d566f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_proportional_figures.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.proportionalFigures]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Kufam font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'Call 311-555-2368 now!', + style: TextStyle( + fontFamily: 'Kufam', + fontFeatures: [ + FontFeature.proportionalFigures(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_scientific_inferiors.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_scientific_inferiors.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a9f63f14d9e01fd121354eea9cfe190b2fb9bd70 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_scientific_inferiors.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.scientificInferiors]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Piazzolla font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'C8H10N4O2', + style: TextStyle( + fontFamily: 'Piazzolla', + fontFeatures: [ + FontFeature.scientificInferiors(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_slashed_zero.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_slashed_zero.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..44bcbfa4df60611cbb444155673991e66b1ed258 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_slashed_zero.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.slashedZero]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Source Code Pro font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'One million is: 1,000,000.00', + style: TextStyle( + fontFamily: 'Source Code Pro', + fontFeatures: [ + FontFeature.slashedZero(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_stylistic_alternates.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_stylistic_alternates.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..021320b8064a5c65d1a7b25d02065dd20f90245b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_stylistic_alternates.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.stylisticAlternates]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Source Code Pro font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + r'Agile Game - $100 initial bet', + style: TextStyle( + fontFamily: 'Source Code Pro', + fontFeatures: [ + FontFeature.stylisticAlternates(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_stylistic_set.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_stylistic_set.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..23699b963b4e111e12697dd486374e8341b28079 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_stylistic_set.0.dart @@ -0,0 +1,42 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.stylisticSet]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Source Code Pro font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return Text( + 'aáâ β gǵĝ θб Iiíî Ll', + style: TextStyle( + fontFamily: 'Source Code Pro', + fontFeatures: [ + FontFeature.stylisticSet(2), + FontFeature.stylisticSet(3), + FontFeature.stylisticSet(4), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_stylistic_set.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_stylistic_set.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..b4c64e4986b53247a5207884fe2092d0b832643c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_stylistic_set.1.dart @@ -0,0 +1,41 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.stylisticSet]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Piazzolla font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return Text( + '-> MCMXCVII <-', // 1997 + style: TextStyle( + fontFamily: 'Piazzolla', + fontFeatures: [ + FontFeature.stylisticSet(1), + FontFeature.stylisticSet(2), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_subscripts.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_subscripts.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..0151b88b56255a8583da807414a0eb30df3b689b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_subscripts.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.subscripts]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Piazzolla font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'Line from x1,y1 to x2,y2', + style: TextStyle( + fontFamily: 'Piazzolla', + fontFeatures: [ + FontFeature.subscripts(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_superscripts.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_superscripts.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..8eef9141b65b1e06ac8e503a705c952eba22491c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_superscripts.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.superscripts]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Sorts Mill Goudy font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'The isotope 238U decays to 206Pb', + style: TextStyle( + fontFamily: 'Sorts Mill Goudy', + fontFeatures: [ + FontFeature.superscripts(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_swash.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_swash.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..d47c031257252053cae08f2cc6780dcb8119dce1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_swash.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [FontFeature.FontFeature.swash]. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The BioRhyme Expanded font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'Queer & Romantic', + style: TextStyle( + fontFamily: 'BioRhyme Expanded', + fontFeatures: [ + FontFeature.swash(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_tabular_figures.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_tabular_figures.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..db7cc099405e390637e72d38dd6a4762f57b4531 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/ui/text/font_feature.font_feature_tabular_figures.0.dart @@ -0,0 +1,40 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/widgets.dart'; + +/// Flutter code sample for [dart]:ui FontFeature.FontFeature.tabularFigures. + +void main() => runApp(const ExampleApp()); + +class ExampleApp extends StatelessWidget { + const ExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return WidgetsApp( + builder: (BuildContext context, Widget? navigator) => const ExampleWidget(), + color: const Color(0xffffffff), + ); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + // The Piazzolla font can be downloaded from Google Fonts + // (https://www.google.com/fonts). + return const Text( + 'Call 311-555-2368 now!', + style: TextStyle( + fontFamily: 'Piazzolla', + fontFeatures: [ + FontFeature.tabularFigures(), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/scroll_view/grid_view.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/scroll_view/grid_view.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..218429fde5ef219df379952130afbbed5dfbabf8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/scroll_view/grid_view.0.dart @@ -0,0 +1,190 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +void main() => runApp(const GridViewExampleApp()); + +class GridViewExampleApp extends StatelessWidget { + const GridViewExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Padding( + padding: const EdgeInsets.all(20.0), + child: Card( + elevation: 8.0, + child: GridView.builder( + padding: const EdgeInsets.all(12.0), + gridDelegate: CustomGridDelegate(dimension: 240.0), + // Try uncommenting some of these properties to see the effect on the grid: + // itemCount: 20, // The default is that the number of grid tiles is infinite. + // scrollDirection: Axis.horizontal, // The default is vertical. + // reverse: true, // The default is false, going down (or left to right). + itemBuilder: (BuildContext context, int index) { + final math.Random random = math.Random(index); + return GridTile( + header: GridTileBar( + title: Text('$index', style: const TextStyle(color: Colors.black)), + ), + child: Container( + margin: const EdgeInsets.all(12.0), + decoration: ShapeDecoration( + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(12.0), + ), + gradient: const RadialGradient( + colors: [ Color(0x0F88EEFF), Color(0x2F0099BB) ], + ), + ), + child: FlutterLogo( + style: FlutterLogoStyle.values[random.nextInt(FlutterLogoStyle.values.length)], + ), + ), + ); + }, + ), + ), + ), + ); + } +} + +class CustomGridDelegate extends SliverGridDelegate { + CustomGridDelegate({ required this.dimension }); + + // This is the desired height of each row (and width of each square). + // When there is not enough room, we shrink this to the width of the scroll view. + final double dimension; + + // The layout is two rows of squares, then one very wide cell, repeat. + + @override + SliverGridLayout getLayout(SliverConstraints constraints) { + // Determine how many squares we can fit per row. + int count = constraints.crossAxisExtent ~/ dimension; + if (count < 1) { + count = 1; // Always fit at least one regardless. + } + final double squareDimension = constraints.crossAxisExtent / count; + return CustomGridLayout( + crossAxisCount: count, + fullRowPeriod: 3, // Number of rows per block (one of which is the full row). + dimension: squareDimension, + ); + } + + @override + bool shouldRelayout(CustomGridDelegate oldDelegate) { + return dimension != oldDelegate.dimension; + } +} + +class CustomGridLayout extends SliverGridLayout { + const CustomGridLayout({ + required this.crossAxisCount, + required this.dimension, + required this.fullRowPeriod, + }) : assert(crossAxisCount > 0), + assert(fullRowPeriod > 1), + loopLength = crossAxisCount * (fullRowPeriod - 1) + 1, + loopHeight = fullRowPeriod * dimension; + + final int crossAxisCount; + final double dimension; + final int fullRowPeriod; + + // Computed values. + final int loopLength; + final double loopHeight; + + @override + double computeMaxScrollOffset(int childCount) { + // This returns the scroll offset of the end side of the childCount'th child. + // In the case of this example, this method is not used, since the grid is + // infinite. However, if one set an itemCount on the GridView above, this + // function would be used to determine how far to allow the user to scroll. + if (childCount == 0 || dimension == 0) { + return 0; + } + return (childCount ~/ loopLength) * loopHeight + + ((childCount % loopLength) ~/ crossAxisCount) * dimension; + } + + @override + SliverGridGeometry getGeometryForChildIndex(int index) { + // This returns the position of the index'th tile. + // + // The SliverGridGeometry object returned from this method has four + // properties. For a grid that scrolls down, as in this example, the four + // properties are equivalent to x,y,width,height. However, since the + // GridView is direction agnostic, the names used for SliverGridGeometry are + // also direction-agnostic. + // + // Try changing the scrollDirection and reverse properties on the GridView + // to see how this algorithm works in any direction (and why, therefore, the + // names are direction-agnostic). + final int loop = index ~/ loopLength; + final int loopIndex = index % loopLength; + if (loopIndex == loopLength - 1) { + // Full width case. + return SliverGridGeometry( + scrollOffset: (loop + 1) * loopHeight - dimension, // "y" + crossAxisOffset: 0, // "x" + mainAxisExtent: dimension, // "height" + crossAxisExtent: crossAxisCount * dimension, // "width" + ); + } + // Square case. + final int rowIndex = loopIndex ~/ crossAxisCount; + final int columnIndex = loopIndex % crossAxisCount; + return SliverGridGeometry( + scrollOffset: (loop * loopHeight) + (rowIndex * dimension), // "y" + crossAxisOffset: columnIndex * dimension, // "x" + mainAxisExtent: dimension, // "height" + crossAxisExtent: dimension, // "width" + ); + } + + @override + int getMinChildIndexForScrollOffset(double scrollOffset) { + // This returns the first index that is visible for a given scrollOffset. + // + // The GridView only asks for the geometry of children that are visible + // between the scroll offset passed to getMinChildIndexForScrollOffset and + // the scroll offset passed to getMaxChildIndexForScrollOffset. + // + // It is the responsibility of the SliverGridLayout to ensure that + // getGeometryForChildIndex is consistent with getMinChildIndexForScrollOffset + // and getMaxChildIndexForScrollOffset. + // + // Not every child between the minimum child index and the maximum child + // index need be visible (some may have scroll offsets that are outside the + // view; this happens commonly when the grid view places tiles out of + // order). However, doing this means the grid view is less efficient, as it + // will do work for children that are not visible. It is preferred that the + // children are returned in the order that they are laid out. + final int rows = scrollOffset ~/ dimension; + final int loops = rows ~/ fullRowPeriod; + final int extra = rows % fullRowPeriod; + return loops * loopLength + extra * crossAxisCount; + } + + @override + int getMaxChildIndexForScrollOffset(double scrollOffset) { + // (See commentary above.) + final int rows = scrollOffset ~/ dimension; + final int loops = rows ~/ fullRowPeriod; + final int extra = rows % fullRowPeriod; + final int count = loops * loopLength + extra * crossAxisCount; + if (extra == fullRowPeriod - 1) { + return count; + } + return count + crossAxisCount - 1; + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/scroll_view/list_view.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/scroll_view/list_view.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..870420fdfd8f1292053f165dab899aa945c0ca8f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/scroll_view/list_view.0.dart @@ -0,0 +1,231 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ListTile] selection in a [ListView] or [GridView]. + +void main() => runApp(const ListViewExampleApp()); + +class ListViewExampleApp extends StatelessWidget { + const ListViewExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ListTileSelectExample(), + ); + } +} + +class ListTileSelectExample extends StatefulWidget { + const ListTileSelectExample({super.key}); + + @override + ListTileSelectExampleState createState() => ListTileSelectExampleState(); +} + +class ListTileSelectExampleState extends State { + bool isSelectionMode = false; + final int listLength = 30; + late List _selected; + bool _selectAll = false; + bool _isGridMode = false; + + @override + void initState() { + super.initState(); + initializeSelection(); + } + + void initializeSelection() { + _selected = List.generate(listLength, (_) => false); + } + + @override + void dispose() { + _selected.clear(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text( + 'ListTile selection', + ), + leading: isSelectionMode + ? IconButton( + icon: const Icon(Icons.close), + onPressed: () { + setState(() { + isSelectionMode = false; + }); + initializeSelection(); + }, + ) + : const SizedBox(), + actions: [ + if (_isGridMode) + IconButton( + icon: const Icon(Icons.grid_on), + onPressed: () { + setState(() { + _isGridMode = false; + }); + }, + ) + else + IconButton( + icon: const Icon(Icons.list), + onPressed: () { + setState(() { + _isGridMode = true; + }); + }, + ), + if (isSelectionMode) + TextButton( + child: !_selectAll + ? const Text( + 'select all', + style: TextStyle(color: Colors.white), + ) + : const Text( + 'unselect all', + style: TextStyle(color: Colors.white), + ), + onPressed: () { + _selectAll = !_selectAll; + setState(() { + _selected = List.generate(listLength, (_) => _selectAll); + }); + }), + ], + ), + body: _isGridMode + ? GridBuilder( + isSelectionMode: isSelectionMode, + selectedList: _selected, + onSelectionChange: (bool x) { + setState(() { + isSelectionMode = x; + }); + }, + ) + : ListBuilder( + isSelectionMode: isSelectionMode, + selectedList: _selected, + onSelectionChange: (bool x) { + setState(() { + isSelectionMode = x; + }); + }, + )); + } +} + +class GridBuilder extends StatefulWidget { + const GridBuilder({ + super.key, + required this.selectedList, + required this.isSelectionMode, + required this.onSelectionChange, + }); + + final bool isSelectionMode; + final ValueChanged? onSelectionChange; + final List selectedList; + + @override + GridBuilderState createState() => GridBuilderState(); +} + +class GridBuilderState extends State { + void _toggle(int index) { + if (widget.isSelectionMode) { + setState(() { + widget.selectedList[index] = !widget.selectedList[index]; + }); + } + } + + @override + Widget build(BuildContext context) { + return GridView.builder( + itemCount: widget.selectedList.length, + gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2), + itemBuilder: (_, int index) { + return InkWell( + onTap: () => _toggle(index), + onLongPress: () { + if (!widget.isSelectionMode) { + setState(() { + widget.selectedList[index] = true; + }); + widget.onSelectionChange!(true); + } + }, + child: GridTile( + child: Container( + child: widget.isSelectionMode + ? Checkbox(onChanged: (bool? x) => _toggle(index), value: widget.selectedList[index]) + : const Icon(Icons.image), + )), + ); + }); + } +} + +class ListBuilder extends StatefulWidget { + const ListBuilder({ + super.key, + required this.selectedList, + required this.isSelectionMode, + required this.onSelectionChange, + }); + + final bool isSelectionMode; + final List selectedList; + final ValueChanged? onSelectionChange; + + @override + State createState() => _ListBuilderState(); +} + +class _ListBuilderState extends State { + void _toggle(int index) { + if (widget.isSelectionMode) { + setState(() { + widget.selectedList[index] = !widget.selectedList[index]; + }); + } + } + + @override + Widget build(BuildContext context) { + return ListView.builder( + itemCount: widget.selectedList.length, + itemBuilder: (_, int index) { + return ListTile( + onTap: () => _toggle(index), + onLongPress: () { + if (!widget.isSelectionMode) { + setState(() { + widget.selectedList[index] = true; + }); + widget.onSelectionChange!(true); + } + }, + trailing: widget.isSelectionMode + ? Checkbox( + value: widget.selectedList[index], + onChanged: (bool? x) => _toggle(index), + ) + : const SizedBox.shrink(), + title: Text('item $index')); + }); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/scroll_view/list_view.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/scroll_view/list_view.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..46adcd3c67cf836c01ef1ad9dcb580bb43d6778d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/scroll_view/list_view.1.dart @@ -0,0 +1,97 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for a [ListView.custom] using the `findChildIndexCallback` argument. +void main() => runApp(const ListViewExampleApp()); + +class ListViewExampleApp extends StatelessWidget { + const ListViewExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp(home: ListViewExample()); + } +} + +class ListViewExample extends StatefulWidget { + const ListViewExample({super.key}); + + @override + State createState() => _ListViewExampleState(); +} + +class _ListViewExampleState extends State { + List items = ['1', '2', '3', '4', '5']; + + void _reverse() { + setState(() { + items = items.reversed.toList(); + }); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: SafeArea( + child: ListView.custom( + childrenDelegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + return KeepAliveItem( + data: items[index], + key: ValueKey(items[index]), + ); + }, + childCount: items.length, + findChildIndexCallback: (Key key) { + final ValueKey valueKey = key as ValueKey; + final String data = valueKey.value; + final int index = items.indexOf(data); + if (index >= 0) { + return index; + } + return null; + }, + ), + ), + ), + bottomNavigationBar: BottomAppBar( + child: Row( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + TextButton( + onPressed: () => _reverse(), + child: const Text('Reverse items'), + ), + ], + ), + ), + ); + } +} + +class KeepAliveItem extends StatefulWidget { + const KeepAliveItem({ + required Key key, + required this.data, + }) : super(key: key); + + final String data; + + @override + State createState() => _KeepAliveItemState(); +} + +class _KeepAliveItemState extends State + with AutomaticKeepAliveClientMixin { + @override + bool get wantKeepAlive => true; + + @override + Widget build(BuildContext context) { + super.build(context); + return Text(widget.data); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shared_app_data/shared_app_data.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shared_app_data/shared_app_data.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..2a2c698e50e98d722859f359ba13e6ad3f7a325c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shared_app_data/shared_app_data.0.dart @@ -0,0 +1,77 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SharedAppData]. + +class ShowSharedValue extends StatelessWidget { + const ShowSharedValue({super.key, required this.appDataKey}); + + final String appDataKey; + + @override + Widget build(BuildContext context) { + // The SharedAppData.getValue() call causes this widget to depend on the + // value of the SharedAppData's 'foo' key. If it's changed, with + // SharedAppData.setValue(), then this widget will be rebuilt. + final String value = SharedAppData.getValue(context, appDataKey, () => 'initial'); + return Text('$appDataKey: $value'); + } +} + +// Demonstrates that changes to the SharedAppData _only_ cause the dependent +// widgets to be rebuilt. In this case that's the ShowSharedValue widget that's +// displaying the value of a key whose value has been updated. +class Home extends StatefulWidget { + const Home({super.key}); + + @override + State createState() => _HomeState(); +} + +class _HomeState extends State { + int _fooVersion = 0; + int _barVersion = 0; + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + const ShowSharedValue(appDataKey: 'foo'), + const SizedBox(height: 16), + const ShowSharedValue(appDataKey: 'bar'), + const SizedBox(height: 16), + ElevatedButton( + child: const Text('change foo'), + onPressed: () { + _fooVersion += 1; + // Changing the SharedAppData's value for 'foo' causes the + // widgets that depend on 'foo' to be rebuilt. + SharedAppData.setValue( + context, 'foo', 'FOO $_fooVersion'); // no need to call setState() + }, + ), + const SizedBox(height: 16), + ElevatedButton( + child: const Text('change bar'), + onPressed: () { + _barVersion += 1; + SharedAppData.setValue( + context, 'bar', 'BAR $_barVersion'); // no need to call setState() + }, + ), + ], + ), + ), + ); + } +} + +void main() { + runApp(const MaterialApp(home: Home())); +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shared_app_data/shared_app_data.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shared_app_data/shared_app_data.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..76b081e895a9fcf27ff5be0a33ab38f0ac7ec987 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shared_app_data/shared_app_data.1.dart @@ -0,0 +1,64 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SharedAppData]. + +// A single lazily-constructed object that's shared with the entire application +// via `SharedObject.of(context)`. The value of the object can be changed with +// `SharedObject.reset(context)`. Resetting the value will cause all of the +// widgets that depend on it to be rebuilt. +class SharedObject { + SharedObject._(); + + static final Object _sharedObjectKey = Object(); + + @override + String toString() => describeIdentity(this); + + static void reset(BuildContext context) { + // Calling SharedAppData.setValue() causes dependent widgets to be rebuilt. + SharedAppData.setValue(context, _sharedObjectKey, SharedObject._()); + } + + static SharedObject of(BuildContext context) { + // If a value for _sharedObjectKey has never been set then the third + // callback parameter is used to generate an initial value. + return SharedAppData.getValue(context, _sharedObjectKey, () => SharedObject._()); + } +} + +// An example of a widget which depends on the SharedObject's value, which might +// be provided - along with SharedObject - in a Dart package. +class CustomWidget extends StatelessWidget { + const CustomWidget({super.key}); + + @override + Widget build(BuildContext context) { + // Will be rebuilt if the shared object's value is changed. + return ElevatedButton( + child: Text('Replace ${SharedObject.of(context)}'), + onPressed: () { + SharedObject.reset(context); + }, + ); + } +} + +class Home extends StatelessWidget { + const Home({super.key}); + + @override + Widget build(BuildContext context) { + return const Scaffold( + body: Center(child: CustomWidget()), + ); + } +} + +void main() { + runApp(const MaterialApp(home: Home())); +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/callback_shortcuts.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/callback_shortcuts.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..f4297c310c2c62ce1743577b5959e02c032da5d8 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/callback_shortcuts.0.dart @@ -0,0 +1,61 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [CallbackShortcuts]. + +void main() => runApp(const CallbackShortcutsApp()); + +class CallbackShortcutsApp extends StatelessWidget { + const CallbackShortcutsApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('CallbackShortcuts Sample')), + body: const Center( + child: CallbackShortcutsExample(), + ), + ), + ); + } +} + +class CallbackShortcutsExample extends StatefulWidget { + const CallbackShortcutsExample({super.key}); + + @override + State createState() => _CallbackShortcutsExampleState(); +} + +class _CallbackShortcutsExampleState extends State { + int count = 0; + + @override + Widget build(BuildContext context) { + return CallbackShortcuts( + bindings: { + const SingleActivator(LogicalKeyboardKey.arrowUp): () { + setState(() => count = count + 1); + }, + const SingleActivator(LogicalKeyboardKey.arrowDown): () { + setState(() => count = count - 1); + }, + }, + child: Focus( + autofocus: true, + child: Column( + children: [ + const Text('Press the up arrow key to add to the counter'), + const Text('Press the down arrow key to subtract from the counter'), + Text('count: $count'), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/character_activator.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/character_activator.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..08e703c3980f1f58857962d22d57d0de07f080ee --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/character_activator.0.dart @@ -0,0 +1,67 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [CharacterActivator]. + +void main() => runApp(const CharacterActivatorExampleApp()); + +class CharacterActivatorExampleApp extends StatelessWidget { + const CharacterActivatorExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('CharacterActivator Sample')), + body: const Center( + child: CharacterActivatorExample(), + ), + ), + ); + } +} + +class HelpMenuIntent extends Intent { + const HelpMenuIntent(); +} + +class CharacterActivatorExample extends StatefulWidget { + const CharacterActivatorExample({super.key}); + + @override + State createState() => _CharacterActivatorExampleState(); +} + +class _CharacterActivatorExampleState extends State { + @override + Widget build(BuildContext context) { + return Shortcuts( + shortcuts: const { + CharacterActivator('?'): HelpMenuIntent(), + }, + child: Actions( + actions: >{ + HelpMenuIntent: CallbackAction( + onInvoke: (HelpMenuIntent intent) { + ScaffoldMessenger.of(context).showSnackBar( + const SnackBar(content: Text('Keep calm and carry on!')), + ); + return null; + }, + ), + }, + child: const Focus( + autofocus: true, + child: Column( + children: [ + Text('Press question mark for help'), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/logical_key_set.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/logical_key_set.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e784c72a8cb9ab5ec7b9529b9f0dec354ff30518 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/logical_key_set.0.dart @@ -0,0 +1,68 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [LogicalKeySet]. + +void main() => runApp(const LogicalKeySetExampleApp()); + +class LogicalKeySetExampleApp extends StatelessWidget { + const LogicalKeySetExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('LogicalKeySet Sample')), + body: const Center( + child: LogicalKeySetExample(), + ), + ), + ); + } +} + +class IncrementIntent extends Intent { + const IncrementIntent(); +} + +class LogicalKeySetExample extends StatefulWidget { + const LogicalKeySetExample({super.key}); + + @override + State createState() => _LogicalKeySetExampleState(); +} + +class _LogicalKeySetExampleState extends State { + int count = 0; + + @override + Widget build(BuildContext context) { + return Shortcuts( + shortcuts: { + LogicalKeySet(LogicalKeyboardKey.keyC, LogicalKeyboardKey.controlLeft): const IncrementIntent(), + }, + child: Actions( + actions: >{ + IncrementIntent: CallbackAction( + onInvoke: (IncrementIntent intent) => setState(() { + count = count + 1; + }), + ), + }, + child: Focus( + autofocus: true, + child: Column( + children: [ + const Text('Add to the counter by pressing Ctrl+C'), + Text('count: $count'), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/shortcuts.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/shortcuts.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..d88825cb2740efd41a42c23f6665bca6fcb83678 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/shortcuts.0.dart @@ -0,0 +1,79 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [Shortcuts]. + +void main() => runApp(const ShortcutsExampleApp()); + +class ShortcutsExampleApp extends StatelessWidget { + const ShortcutsExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Shortcuts Sample')), + body: const Center( + child: ShortcutsExample(), + ), + ), + ); + } +} + +class IncrementIntent extends Intent { + const IncrementIntent(); +} + +class DecrementIntent extends Intent { + const DecrementIntent(); +} + +class ShortcutsExample extends StatefulWidget { + const ShortcutsExample({super.key}); + + @override + State createState() => _ShortcutsExampleState(); +} + +class _ShortcutsExampleState extends State { + int count = 0; + + @override + Widget build(BuildContext context) { + return Shortcuts( + shortcuts: const { + SingleActivator(LogicalKeyboardKey.arrowUp): IncrementIntent(), + SingleActivator(LogicalKeyboardKey.arrowDown): DecrementIntent(), + }, + child: Actions( + actions: >{ + IncrementIntent: CallbackAction( + onInvoke: (IncrementIntent intent) => setState(() { + count = count + 1; + }), + ), + DecrementIntent: CallbackAction( + onInvoke: (DecrementIntent intent) => setState(() { + count = count - 1; + }), + ), + }, + child: Focus( + autofocus: true, + child: Column( + children: [ + const Text('Add to the counter by pressing the up arrow key'), + const Text('Subtract from the counter by pressing the down arrow key'), + Text('count: $count'), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/shortcuts.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/shortcuts.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..8d59f00601fcd2141ac80f1829c7472634980ef0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/shortcuts.1.dart @@ -0,0 +1,115 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [Shortcuts]. + +void main() => runApp(const ShortcutsExampleApp()); + +class ShortcutsExampleApp extends StatelessWidget { + const ShortcutsExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Shortcuts Sample')), + body: const Center( + child: ShortcutsExample(), + ), + ), + ); + } +} + +class Model with ChangeNotifier { + int count = 0; + void incrementBy(int amount) { + count += amount; + notifyListeners(); + } + + void decrementBy(int amount) { + count -= amount; + notifyListeners(); + } +} + +class IncrementIntent extends Intent { + const IncrementIntent(this.amount); + + final int amount; +} + +class DecrementIntent extends Intent { + const DecrementIntent(this.amount); + + final int amount; +} + +class IncrementAction extends Action { + IncrementAction(this.model); + + final Model model; + + @override + void invoke(covariant IncrementIntent intent) { + model.incrementBy(intent.amount); + } +} + +class DecrementAction extends Action { + DecrementAction(this.model); + + final Model model; + + @override + void invoke(covariant DecrementIntent intent) { + model.decrementBy(intent.amount); + } +} + +class ShortcutsExample extends StatefulWidget { + const ShortcutsExample({super.key}); + + @override + State createState() => _ShortcutsExampleState(); +} + +class _ShortcutsExampleState extends State { + Model model = Model(); + + @override + Widget build(BuildContext context) { + return Shortcuts( + shortcuts: { + LogicalKeySet(LogicalKeyboardKey.arrowUp): const IncrementIntent(2), + LogicalKeySet(LogicalKeyboardKey.arrowDown): const DecrementIntent(2), + }, + child: Actions( + actions: >{ + IncrementIntent: IncrementAction(model), + DecrementIntent: DecrementAction(model), + }, + child: Focus( + autofocus: true, + child: Column( + children: [ + const Text('Add to the counter by pressing the up arrow key'), + const Text('Subtract from the counter by pressing the down arrow key'), + ListenableBuilder( + listenable: model, + builder: (BuildContext context, Widget? child) { + return Text('count: ${model.count}'); + }, + ), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/single_activator.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/single_activator.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..4552c96a832488813f976058dcf1d4a25557ecb6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/single_activator.0.dart @@ -0,0 +1,68 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [SingleActivator]. + +void main() => runApp(const SingleActivatorExampleApp()); + +class SingleActivatorExampleApp extends StatelessWidget { + const SingleActivatorExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SingleActivator Sample')), + body: const Center( + child: SingleActivatorExample(), + ), + ), + ); + } +} + +class IncrementIntent extends Intent { + const IncrementIntent(); +} + +class SingleActivatorExample extends StatefulWidget { + const SingleActivatorExample({super.key}); + + @override + State createState() => _SingleActivatorExampleState(); +} + +class _SingleActivatorExampleState extends State { + int count = 0; + + @override + Widget build(BuildContext context) { + return Shortcuts( + shortcuts: const { + SingleActivator(LogicalKeyboardKey.keyC, control: true): IncrementIntent(), + }, + child: Actions( + actions: >{ + IncrementIntent: CallbackAction( + onInvoke: (IncrementIntent intent) => setState(() { + count = count + 1; + }), + ), + }, + child: Focus( + autofocus: true, + child: Column( + children: [ + const Text('Add to the counter by pressing Ctrl+C'), + Text('count: $count'), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..5cb5eb8b688dbafe6250a17620bc542fbf678afe --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/shortcuts/single_activator.single_activator.0.dart @@ -0,0 +1,68 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [SingleActivator.SingleActivator]. + +void main() => runApp(const SingleActivatorExampleApp()); + +class SingleActivatorExampleApp extends StatelessWidget { + const SingleActivatorExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SingleActivator Sample')), + body: const Center( + child: SingleActivatorExample(), + ), + ), + ); + } +} + +class IncrementIntent extends Intent { + const IncrementIntent(); +} + +class SingleActivatorExample extends StatefulWidget { + const SingleActivatorExample({super.key}); + + @override + State createState() => _SingleActivatorExampleState(); +} + +class _SingleActivatorExampleState extends State { + int count = 0; + + @override + Widget build(BuildContext context) { + return Shortcuts( + shortcuts: const { + SingleActivator(LogicalKeyboardKey.keyC, control: true): IncrementIntent(), + }, + child: Actions( + actions: >{ + IncrementIntent: CallbackAction( + onInvoke: (IncrementIntent intent) => setState(() { + count = count + 1; + }), + ), + }, + child: Focus( + autofocus: true, + child: Column( + children: [ + const Text('Add to the counter by pressing Ctrl+C'), + Text('count: $count'), + ], + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..c0be195c30fc6fca5ec81ce29644c962b8cb3ddf --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.0.dart @@ -0,0 +1,62 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SingleChildScrollView]. + +void main() => runApp(const SingleChildScrollViewExampleApp()); + +class SingleChildScrollViewExampleApp extends StatelessWidget { + const SingleChildScrollViewExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SingleChildScrollViewExample(), + ); + } +} + +class SingleChildScrollViewExample extends StatelessWidget { + const SingleChildScrollViewExample({super.key}); + + @override + Widget build(BuildContext context) { + return DefaultTextStyle( + style: Theme.of(context).textTheme.bodyMedium!, + child: LayoutBuilder( + builder: (BuildContext context, BoxConstraints viewportConstraints) { + return SingleChildScrollView( + child: ConstrainedBox( + constraints: BoxConstraints( + minHeight: viewportConstraints.maxHeight, + ), + child: Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.spaceAround, + children: [ + Container( + // A fixed-height child. + color: const Color(0xffeeee00), // Yellow + height: 120.0, + alignment: Alignment.center, + child: const Text('Fixed Height Content'), + ), + Container( + // Another fixed-height child. + color: const Color(0xff008000), // Green + height: 120.0, + alignment: Alignment.center, + child: const Text('Fixed Height Content'), + ), + ], + ), + ), + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..9a21cb2caeb7b02071f78b316cf438cbda5d2747 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/single_child_scroll_view/single_child_scroll_view.1.dart @@ -0,0 +1,65 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SingleChildScrollView]. + +void main() => runApp(const SingleChildScrollViewExampleApp()); + +class SingleChildScrollViewExampleApp extends StatelessWidget { + const SingleChildScrollViewExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SingleChildScrollViewExample(), + ); + } +} + +class SingleChildScrollViewExample extends StatelessWidget { + const SingleChildScrollViewExample({super.key}); + + @override + Widget build(BuildContext context) { + return DefaultTextStyle( + style: Theme.of(context).textTheme.bodyMedium!, + child: LayoutBuilder( + builder: (BuildContext context, BoxConstraints viewportConstraints) { + return SingleChildScrollView( + child: ConstrainedBox( + constraints: BoxConstraints( + minHeight: viewportConstraints.maxHeight, + ), + child: IntrinsicHeight( + child: Column( + children: [ + Container( + // A fixed-height child. + color: const Color(0xffeeee00), // Yellow + height: 120.0, + alignment: Alignment.center, + child: const Text('Fixed Height Content'), + ), + Expanded( + // A flexible child that will grow to fit the viewport but + // still be at least as big as necessary to fit its contents. + child: Container( + color: const Color(0xffee0000), // Red + height: 120.0, + alignment: Alignment.center, + child: const Text('Flexible Content'), + ), + ), + ], + ), + ), + ), + ); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/decorated_sliver.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/decorated_sliver.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..5ccd9b93cfb053b737387eba2a83971b9b1e0a87 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/decorated_sliver.0.dart @@ -0,0 +1,58 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() => runApp(const SliverDecorationExampleApp()); + +class SliverDecorationExampleApp extends StatelessWidget { + const SliverDecorationExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverDecoration Sample')), + body: const SliverDecorationExample(), + ), + ); + } +} + +class SliverDecorationExample extends StatelessWidget { + const SliverDecorationExample({super.key}); + + @override + Widget build(BuildContext context) { + return CustomScrollView( + slivers: [ + DecoratedSliver( + decoration: const BoxDecoration( + gradient: RadialGradient( + center: Alignment(-0.5, -0.6), + radius: 0.15, + colors: [ + Color(0xFFEEEEEE), + Color(0xFF111133), + ], + stops: [0.9, 1.0], + ), + ), + sliver: SliverList( + delegate: SliverChildListDelegate([ + const Text('Goodnight Moon'), + ]), + ), + ), + const DecoratedSliver( + decoration: BoxDecoration( + color: Colors.amber, + borderRadius: BorderRadius.all(Radius.circular(50)) + ), + sliver: SliverToBoxAdapter(child: SizedBox(height: 300)), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/pinned_header_sliver.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/pinned_header_sliver.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..5eacfca82a65c2e63ce8e883581b65c061f1fd18 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/pinned_header_sliver.0.dart @@ -0,0 +1,129 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [PinnedHeaderSliver]. + +void main() { + runApp(const PinnedHeaderSliverApp()); +} + +class PinnedHeaderSliverApp extends StatelessWidget { + const PinnedHeaderSliverApp({ super.key }); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: PinnedHeaderSliverExample(), + ); + } +} + +class PinnedHeaderSliverExample extends StatefulWidget { + const PinnedHeaderSliverExample({ super.key }); + + @override + State createState() => _PinnedHeaderSliverExampleState(); +} + +class _PinnedHeaderSliverExampleState extends State { + int count = 0; + late final ScrollController scrollController; + + @override + void initState() { + super.initState(); + scrollController = ScrollController(); + } + + @override + void dispose() { + scrollController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final ColorScheme colorScheme = theme.colorScheme; + + final Widget header = Container( + color: colorScheme.background, + padding: const EdgeInsets.all(4), + child: Material( + color: colorScheme.primaryContainer, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8), + side: BorderSide( + width: 7, + color: colorScheme.outline, + ), + ), + child: Container( + alignment: Alignment.center, + padding: const EdgeInsets.symmetric(vertical: 48), + child: Text( + count.isOdd ? 'Alternative Title\nWith Two Lines' : 'PinnedHeaderSliver', + style: theme.textTheme.headlineMedium!.copyWith( + color: colorScheme.onPrimaryContainer, + ), + ), + ), + ), + ); + + return Scaffold( + body: SafeArea( + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 4), + child: CustomScrollView( + controller: scrollController, + slivers: [ + PinnedHeaderSliver(child: header), + const ItemList(), + ], + ), + ), + ), + floatingActionButton: FloatingActionButton( + onPressed: () { + setState(() { + count += 1; + }); + }, + child: const Icon(Icons.add), + ), + ); + } +} + +// A placeholder SliverList of 25 items. +class ItemList extends StatelessWidget { + const ItemList({ + super.key, + this.itemCount = 25, + }); + + final int itemCount; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + return SliverList( + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + return Card( + color: colorScheme.onSecondary, + child: ListTile( + textColor: colorScheme.secondary, + title: Text('Item $index'), + ), + ); + }, + childCount: itemCount, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_constrained_cross_axis.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_constrained_cross_axis.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..78f877aa16a2f5fe3d58f6dd7b4096d105b99b8a --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_constrained_cross_axis.0.dart @@ -0,0 +1,51 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() => runApp(const SliverConstrainedCrossAxisExampleApp()); + +class SliverConstrainedCrossAxisExampleApp extends StatelessWidget { + const SliverConstrainedCrossAxisExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverConstrainedCrossAxis Sample')), + body: const SliverConstrainedCrossAxisExample(), + ), + ); + } +} + +class SliverConstrainedCrossAxisExample extends StatelessWidget { + const SliverConstrainedCrossAxisExample({super.key}); + + @override + Widget build(BuildContext context) { + return CustomScrollView( + slivers: [ + SliverConstrainedCrossAxis( + maxExtent: 200, + sliver: SliverList.builder( + itemBuilder: (BuildContext context, int index) { + return Container( + color: index.isEven ? Colors.amber[300] : Colors.blue[300], + height: 100.0, + child: Center( + child: Text( + 'Item $index', + style: const TextStyle(fontSize: 24), + ), + ), + ); + }, + itemCount: 10, + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_cross_axis_group.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_cross_axis_group.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..fefbb4767e6d93a0fe307228d16cd5e189e67b94 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_cross_axis_group.0.dart @@ -0,0 +1,88 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() => runApp(const SliverCrossAxisGroupExampleApp()); + +class SliverCrossAxisGroupExampleApp extends StatelessWidget { + const SliverCrossAxisGroupExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverCrossAxisGroup Sample')), + body: const SliverCrossAxisGroupExample(), + ), + ); + } +} + +class SliverCrossAxisGroupExample extends StatelessWidget { + const SliverCrossAxisGroupExample({super.key}); + + @override + Widget build(BuildContext context) { + return CustomScrollView( + slivers: [ + SliverCrossAxisGroup( + slivers: [ + SliverList.builder( + itemBuilder: (BuildContext context, int index) { + return Container( + color: index.isEven ? Colors.amber[300] : Colors.blue[300], + height: 100.0, + child: Center( + child: Text( + 'Item $index', + style: const TextStyle(fontSize: 24), + ), + ), + ); + }, + itemCount: 5, + ), + SliverConstrainedCrossAxis( + maxExtent: 200, + sliver: SliverList.builder( + itemBuilder: (BuildContext context, int index) { + return Container( + color: index.isEven ? Colors.green[300] : Colors.red[300], + height: 100.0, + child: Center( + child: Text( + 'Item ${index + 5}', + style: const TextStyle(fontSize: 24), + ), + ), + ); + }, + itemCount: 5, + ), + ), + SliverCrossAxisExpanded( + flex: 2, + sliver: SliverList.builder( + itemBuilder: (BuildContext context, int index) { + return Container( + color: index.isEven ? Colors.purple[300] : Colors.orange[300], + height: 100.0, + child: Center( + child: Text( + 'Item ${index + 10}', + style: const TextStyle(fontSize: 24), + ), + ), + ); + }, + itemCount: 5, + ), + ), + ], + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_main_axis_group.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_main_axis_group.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..14fdb3ac4200a53ea21ee1ee15022d6be94fcb59 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_main_axis_group.0.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() => runApp(const SliverMainAxisGroupExampleApp()); + +class SliverMainAxisGroupExampleApp extends StatelessWidget { + const SliverMainAxisGroupExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverMainAxisGroup Sample')), + body: const SliverMainAxisGroupExample(), + ), + ); + } +} + +class SliverMainAxisGroupExample extends StatelessWidget { + const SliverMainAxisGroupExample({super.key}); + + @override + Widget build(BuildContext context) { + return CustomScrollView( + slivers: [ + SliverMainAxisGroup( + slivers: [ + const SliverAppBar( + title: Text('Section Title'), + expandedHeight: 70.0, + pinned: true, + ), + SliverList.builder( + itemBuilder: (BuildContext context, int index) { + return Container( + color: index.isEven ? Colors.amber[300] : Colors.blue[300], + height: 100.0, + child: Center( + child: Text( + 'Item $index', + style: const TextStyle(fontSize: 24), + ), + ), + ); + }, + itemCount: 5, + ), + SliverToBoxAdapter( + child: Container( + color: Colors.cyan, + height: 100, + child: const Center( + child: Text('Another sliver child', style: TextStyle(fontSize: 24)), + ), + ), + ) + ], + ), + SliverToBoxAdapter( + child: Container( + height: 1000, + decoration: const BoxDecoration(color: Colors.greenAccent), + child: const Center( + child: Text('Hello World!', style: TextStyle(fontSize: 24)), + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_opacity.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_opacity.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..e2ea3492c38c2b473547838147e7a5d0f6e8a036 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_opacity.1.dart @@ -0,0 +1,72 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverOpacity]. + +void main() => runApp(const SliverOpacityExampleApp()); + +class SliverOpacityExampleApp extends StatelessWidget { + const SliverOpacityExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SliverOpacityExample(), + ); + } +} + +class SliverOpacityExample extends StatefulWidget { + const SliverOpacityExample({super.key}); + + @override + State createState() => _SliverOpacityExampleState(); +} + +class _SliverOpacityExampleState extends State { + static const List _listItems = [ + ListTile(title: Text('Now you see me,')), + ListTile(title: Text("Now you don't!")), + ]; + + bool _visible = true; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('SliverOpacity demo'), + ), + body: CustomScrollView( + slivers: [ + const SliverToBoxAdapter( + child: ListTile(title: Text('Press on the button to toggle the list visibility.')), + ), + const SliverToBoxAdapter( + child: ListTile(title: Text('Before the list...')), + ), + SliverOpacity( + opacity: _visible ? 1.0 : 0.0, + sliver: SliverList( + delegate: SliverChildListDelegate(_listItems), + ), + ), + const SliverToBoxAdapter( + child: ListTile(title: Text('Before the list...')), + ), + ], + ), + floatingActionButton: FloatingActionButton( + child: const Icon(Icons.disabled_visible), + onPressed: () { + setState(() { + _visible = !_visible; + }); + }, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_resizing_header.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_resizing_header.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..347a433d43e034fd9eccd6dadf66df7d6ed507a0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_resizing_header.0.dart @@ -0,0 +1,145 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +void main() { + runApp(const SliverResizingHeaderApp()); +} + +class SliverResizingHeaderApp extends StatelessWidget { + const SliverResizingHeaderApp({ super.key }); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ResizingHeaderExample(), + ); + } +} + +class ResizingHeaderExample extends StatefulWidget { + const ResizingHeaderExample({ super.key }); + + @override + State createState() => _ResizingHeaderExampleState(); +} + +class _ResizingHeaderExampleState extends State { + late final ScrollController scrollController; + + @override + void initState() { + super.initState(); + scrollController = ScrollController(); + } + + @override + void dispose() { + scrollController.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: SafeArea( + child: Padding( + padding: const EdgeInsets.all(4), + child: Scrollbar( + controller: scrollController, + child: CustomScrollView( + controller: scrollController, + slivers: const [ + SliverResizingHeader( + minExtentPrototype: ListHeader( + text: 'One', + ), + maxExtentPrototype: ListHeader( + text: 'One\nTwo\nThree' + ), + child: ListHeader( + text: 'SliverResizingHeader\nWith Two Optional\nLines of Text', + ), + ), + ItemList(), + ], + ), + ), + ), + ), + ); + } +} + +// A widget that displays its text within a thick rounded rectangle border +class ListHeader extends StatelessWidget { + const ListHeader({ + super.key, + required this.text, + }); + + final String text; + + @override + Widget build(BuildContext context) { + final ThemeData theme = Theme.of(context); + final ColorScheme colorScheme = theme.colorScheme; + + return Container( + color: colorScheme.background, + padding: const EdgeInsets.symmetric(horizontal: 4), + child: Material( + color: colorScheme.primaryContainer, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(8), + side: BorderSide( + width: 7, + color: colorScheme.outline, + ), + ), + child: Container( + alignment: Alignment.center, + padding: const EdgeInsets.symmetric(vertical: 16), + child: Text( + text, + textAlign: TextAlign.center, + style: theme.textTheme.headlineMedium!.copyWith( + color: colorScheme.onPrimaryContainer, + ), + ), + ), + ), + ); + } +} + +// A placeholder SliverList of 50 items. +class ItemList extends StatelessWidget { + const ItemList({ + super.key, + this.itemCount = 50, + }); + + final int itemCount; + + @override + Widget build(BuildContext context) { + final ColorScheme colorScheme = Theme.of(context).colorScheme; + return SliverList( + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + return Card( + color: colorScheme.onSecondary, + child: ListTile( + textColor: colorScheme.secondary, + title: Text('Item $index'), + ), + ); + }, + childCount: itemCount, + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_tree.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_tree.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..914815752df76c97e4181884a4c5ec10f4727976 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_tree.0.dart @@ -0,0 +1,104 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TreeSliver]. + +void main() => runApp(const TreeSliverExampleApp()); + +class TreeSliverExampleApp extends StatelessWidget { + const TreeSliverExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: TreeSliverExample(), + ); + } +} + +class TreeSliverExample extends StatefulWidget { + const TreeSliverExample({super.key}); + + @override + State createState() => _TreeSliverExampleState(); +} + +class _TreeSliverExampleState extends State { + TreeSliverNode? _selectedNode; + final TreeSliverController controller = TreeSliverController(); + final List> _tree = >[ + TreeSliverNode('First'), + TreeSliverNode( + 'Second', + children: >[ + TreeSliverNode( + 'alpha', + children: >[ + TreeSliverNode('uno'), + TreeSliverNode('dos'), + TreeSliverNode('tres'), + ], + ), + TreeSliverNode('beta'), + TreeSliverNode('kappa'), + ], + ), + TreeSliverNode( + 'Third', + expanded: true, + children: >[ + TreeSliverNode('gamma'), + TreeSliverNode('delta'), + TreeSliverNode('epsilon'), + ], + ), + TreeSliverNode('Fourth'), + ]; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('TreeSliver Demo'), + ), + body: CustomScrollView( + slivers: [ + TreeSliver( + tree: _tree, + controller: controller, + treeNodeBuilder: ( + BuildContext context, + TreeSliverNode node, + AnimationStyle animationStyle, + ) { + Widget child = GestureDetector( + behavior: HitTestBehavior.translucent, + onTap: () { + setState(() { + controller.toggleNode(node); + _selectedNode = node as TreeSliverNode; + }); + }, + child: TreeSliver.defaultTreeNodeBuilder( + context, + node, + animationStyle, + ), + ); + if (_selectedNode == node as TreeSliverNode) { + child = ColoredBox( + color: Colors.purple[100]!, + child: child, + ); + } + return child; + }, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_tree.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_tree.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..b5d8b783f35136dc1a677ca5e208dc6253e18ec3 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver/sliver_tree.1.dart @@ -0,0 +1,189 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +/// Flutter code sample for [TreeSliver]. + +void main() => runApp(const TreeSliverExampleApp()); + +class TreeSliverExampleApp extends StatelessWidget { + const TreeSliverExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: TreeSliverExample(), + ); + } +} + +class TreeSliverExample extends StatefulWidget { + const TreeSliverExample({super.key}); + + @override + State createState() => _TreeSliverExampleState(); +} + +class _TreeSliverExampleState extends State { + TreeSliverNode? _selectedNode; + final List> tree = >[ + TreeSliverNode('README.md'), + TreeSliverNode('analysis_options.yaml'), + TreeSliverNode( + 'lib', + children: >[ + TreeSliverNode( + 'src', + children: >[ + TreeSliverNode( + 'widgets', + children: >[ + TreeSliverNode('about.dart.dart'), + TreeSliverNode('app.dart'), + TreeSliverNode('basic.dart'), + TreeSliverNode('constants.dart'), + ], + ), + ], + ), + TreeSliverNode('widgets.dart'), + ], + ), + TreeSliverNode('pubspec.lock'), + TreeSliverNode('pubspec.yaml'), + TreeSliverNode( + 'test', + children: >[ + TreeSliverNode( + 'widgets', + children: >[ + TreeSliverNode('about_test.dart'), + TreeSliverNode('app_test.dart'), + TreeSliverNode('basic_test.dart'), + TreeSliverNode('constants_test.dart'), + ], + ), + ], + ), + ]; + + Widget _treeNodeBuilder( + BuildContext context, + TreeSliverNode node, + AnimationStyle toggleAnimationStyle, + ) { + final bool isParentNode = node.children.isNotEmpty; + final BorderSide border = BorderSide( + width: 2, + color: Colors.purple[300]!, + ); + return TreeSliver.wrapChildToToggleNode( + node: node, + child: Row( + children: [ + // Custom indentation + SizedBox(width: 10.0 * node.depth! + 8.0), + DecoratedBox( + decoration: BoxDecoration( + border: node.parent != null + ? Border(left: border, bottom: border) + : null, + ), + child: const SizedBox(height: 50.0, width: 20.0), + ), + // Leading icon for parent nodes + if (isParentNode) + DecoratedBox( + decoration: BoxDecoration(border: Border.all()), + child: SizedBox.square( + dimension: 20.0, + child: Icon( + node.isExpanded ? Icons.remove : Icons.add, + size: 14, + ), + ), + ), + // Spacer + const SizedBox(width: 8.0), + // Content + Text(node.content.toString()), + ], + ), + ); + } + + Widget _getTree() { + return DecoratedSliver( + decoration: BoxDecoration( border: Border.all()), + sliver: TreeSliver( + tree: tree, + onNodeToggle: (TreeSliverNode node) { + setState(() { + _selectedNode = node as TreeSliverNode; + }); + }, + treeNodeBuilder: _treeNodeBuilder, + treeRowExtentBuilder: ( + TreeSliverNode node, + SliverLayoutDimensions layoutDimensions, + ) { + // This gives more space to parent nodes. + return node.children.isNotEmpty ? 60.0 : 50.0; + }, + // No internal indentation, the custom treeNodeBuilder applies its + // own indentation to decorate in the indented space. + indentation: TreeSliverIndentationType.none, + ), + ); + } + + @override + Widget build(BuildContext context) { + // This example is assumes the full screen is available. + final Size screenSize = MediaQuery.sizeOf(context); + final List selectedChildren = []; + if (_selectedNode != null) { + selectedChildren.addAll([ + const Spacer(), + Icon( + _selectedNode!.children.isEmpty + ? Icons.file_open_outlined + : Icons.folder_outlined, + ), + const SizedBox(height: 16.0), + Text(_selectedNode!.content), + const Spacer(), + ]); + } + return Scaffold( + body: Row(children: [ + SizedBox( + width: screenSize.width / 2, + height: double.infinity, + child: CustomScrollView( + slivers: [ + _getTree(), + ], + ), + ), + DecoratedBox( + decoration: BoxDecoration( + border: Border.all(), + ), + child: SizedBox( + width: screenSize.width / 2, + height: double.infinity, + child: Center( + child: Column( + children: selectedChildren, + ), + ), + ), + ), + ]), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..fe5c7453304d360bf890c672c26230c60eb1c42c --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.0.dart @@ -0,0 +1,52 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverFillRemaining]. + +void main() => runApp(const SliverFillRemainingExampleApp()); + +class SliverFillRemainingExampleApp extends StatelessWidget { + const SliverFillRemainingExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverFillRemaining Sample')), + body: const SliverFillRemainingExample(), + ), + ); + } +} + +class SliverFillRemainingExample extends StatelessWidget { + const SliverFillRemainingExample({super.key}); + + @override + Widget build(BuildContext context) { + return CustomScrollView( + slivers: [ + SliverToBoxAdapter( + child: Container( + color: Colors.amber[300], + height: 150.0, + ), + ), + SliverFillRemaining( + hasScrollBody: false, + child: Container( + color: Colors.blue[100], + child: Icon( + Icons.sentiment_very_satisfied, + size: 75, + color: Colors.blue[900], + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..5d0f4c89dd10da8fab932f5d3e8a478da319c1e1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.1.dart @@ -0,0 +1,56 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverFillRemaining]. + +void main() => runApp(const SliverFillRemainingExampleApp()); + +class SliverFillRemainingExampleApp extends StatelessWidget { + const SliverFillRemainingExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverFillRemaining Sample')), + body: const SliverFillRemainingExample(), + ), + ); + } +} + +class SliverFillRemainingExample extends StatelessWidget { + const SliverFillRemainingExample({super.key}); + + @override + Widget build(BuildContext context) { + return CustomScrollView( + slivers: [ + SliverFixedExtentList( + itemExtent: 100.0, + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + return Container( + color: index.isEven ? Colors.amber[200] : Colors.blue[200], + ); + }, + childCount: 3, + ), + ), + SliverFillRemaining( + hasScrollBody: false, + child: Container( + color: Colors.orange[300], + child: const Padding( + padding: EdgeInsets.all(50.0), + child: FlutterLogo(size: 100), + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..5f3fff43d1ae6cae0bc906f64ffea7e39f95c65b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.2.dart @@ -0,0 +1,57 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverFillRemaining]. + +void main() => runApp(const SliverFillRemainingExampleApp()); + +class SliverFillRemainingExampleApp extends StatelessWidget { + const SliverFillRemainingExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverFillRemaining Sample')), + body: const SliverFillRemainingExample(), + ), + ); + } +} + +class SliverFillRemainingExample extends StatelessWidget { + const SliverFillRemainingExample({super.key}); + + @override + Widget build(BuildContext context) { + return CustomScrollView( + slivers: [ + SliverFixedExtentList( + itemExtent: 130.0, + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + return Container( + color: index.isEven ? Colors.indigo[200] : Colors.orange[200], + ); + }, + childCount: 5, + ), + ), + const SliverFillRemaining( + hasScrollBody: false, + child: Padding( + padding: EdgeInsets.all(50.0), + child: Icon( + Icons.pan_tool, + size: 60, + color: Colors.blueGrey, + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..45d8626c1a28e5ca4aa0fbfc2163229fb6cb7131 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/sliver_fill/sliver_fill_remaining.3.dart @@ -0,0 +1,71 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverFillRemaining]. + +void main() => runApp(const SliverFillRemainingExampleApp()); + +class SliverFillRemainingExampleApp extends StatelessWidget { + const SliverFillRemainingExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverFillRemaining Sample')), + body: const SliverFillRemainingExample(), + ), + ); + } +} + +class SliverFillRemainingExample extends StatelessWidget { + const SliverFillRemainingExample({super.key}); + + @override + Widget build(BuildContext context) { + return CustomScrollView( + // The ScrollPhysics are overridden here to illustrate the functionality + // of fillOverscroll on all devices this sample may be run on. + // fillOverscroll only changes the behavior of your layout when applied to + // Scrollables that allow for overscroll. BouncingScrollPhysics are one + // example, which are provided by default on the iOS platform. + // BouncingScrollPhysics is combined with AlwaysScrollableScrollPhysics to + // allow for the overscroll, regardless of the depth of the scrollable. + physics: const BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics()), + slivers: [ + SliverToBoxAdapter( + child: Container( + color: Colors.tealAccent[700], + height: 150.0, + ), + ), + SliverFillRemaining( + hasScrollBody: false, + // Switch for different overscroll behavior in your layout. If your + // ScrollPhysics do not allow for overscroll, setting fillOverscroll + // to true will have no effect. + fillOverscroll: true, + child: Container( + color: Colors.teal[100], + child: Align( + alignment: Alignment.bottomCenter, + child: Padding( + padding: const EdgeInsets.all(16.0), + child: ElevatedButton( + onPressed: () { + /* Place your onPressed code here! */ + }, + child: const Text('Bottom Pinned Button!'), + ), + ), + ), + ), + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..1d0525e9a82f6af366637dc6d47c0b98a79132f6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/slotted_render_object_widget/slotted_multi_child_render_object_widget_mixin.0.dart @@ -0,0 +1,290 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/rendering.dart'; + +/// Flutter code sample for [SlottedMultiChildRenderObjectWidget]. + +/// Slots used for the children of [Diagonal] and [RenderDiagonal]. +enum DiagonalSlot { + topLeft, + bottomRight, +} + +/// A widget that demonstrates the usage of +/// [SlottedMultiChildRenderObjectWidget] by providing slots for two +/// children that will be arranged diagonally. +class Diagonal extends SlottedMultiChildRenderObjectWidget { + const Diagonal({ + super.key, + this.topLeft, + this.bottomRight, + this.backgroundColor, + }); + + final Widget? topLeft; + final Widget? bottomRight; + final Color? backgroundColor; + + @override + Iterable get slots => DiagonalSlot.values; + + @override + Widget? childForSlot(DiagonalSlot slot) { + return switch (slot) { + DiagonalSlot.topLeft => topLeft, + DiagonalSlot.bottomRight => bottomRight, + }; + } + + // The [createRenderObject] and [updateRenderObject] methods configure the + // [RenderObject] backing this widget with the configuration of the widget. + // They do not need to do anything with the children of the widget, though. + // The children of the widget are automatically configured on the + // [RenderObject] by [SlottedRenderObjectElement.mount] and + // [SlottedRenderObjectElement.update]. + + @override + SlottedContainerRenderObjectMixin createRenderObject( + BuildContext context, + ) { + return RenderDiagonal( + backgroundColor: backgroundColor, + ); + } + + @override + void updateRenderObject( + BuildContext context, + SlottedContainerRenderObjectMixin renderObject, + ) { + (renderObject as RenderDiagonal).backgroundColor = backgroundColor; + } +} + +/// A render object that demonstrates the usage of +/// [SlottedContainerRenderObjectMixin] by providing slots for two children that +/// will be arranged diagonally. +class RenderDiagonal extends RenderBox + with SlottedContainerRenderObjectMixin, DebugOverflowIndicatorMixin { + RenderDiagonal({Color? backgroundColor}) : _backgroundColor = backgroundColor; + + // Getters and setters to configure the [RenderObject] with the configuration + // of the [Widget]. These mostly contain boilerplate code, but depending on + // where the configuration value is used, the setter has to call + // [markNeedsLayout], [markNeedsPaint], or [markNeedsSemanticsUpdate]. + Color? get backgroundColor => _backgroundColor; + Color? _backgroundColor; + set backgroundColor(Color? value) { + assert(value != null); + if (_backgroundColor == value) { + return; + } + _backgroundColor = value; + markNeedsPaint(); + } + + // Getters to simplify accessing the slotted children. + RenderBox? get _topLeft => childForSlot(DiagonalSlot.topLeft); + RenderBox? get _bottomRight => childForSlot(DiagonalSlot.bottomRight); + + // The size this render object would have if the incoming constraints were + // unconstrained; calculated during performLayout used during paint for an + // assertion that checks for unintended overflow. + late Size _childrenSize; + + // Returns children in hit test order. + @override + Iterable get children { + return [ + if (_topLeft != null) _topLeft!, + if (_bottomRight != null) _bottomRight!, + ]; + } + + // LAYOUT + + @override + void performLayout() { + // Children are allowed to be as big as they want (= unconstrained). + const BoxConstraints childConstraints = BoxConstraints(); + + // Lay out the top left child and position it at offset zero. + Size topLeftSize = Size.zero; + final RenderBox? topLeft = _topLeft; + if (topLeft != null) { + topLeft.layout(childConstraints, parentUsesSize: true); + _positionChild(topLeft, Offset.zero); + topLeftSize = topLeft.size; + } + + // Lay out the bottom right child and position it at the bottom right corner + // of the top left child. + Size bottomRightSize = Size.zero; + final RenderBox? bottomRight = _bottomRight; + if (bottomRight != null) { + bottomRight.layout(childConstraints, parentUsesSize: true); + _positionChild( + bottomRight, + Offset(topLeftSize.width, topLeftSize.height), + ); + bottomRightSize = bottomRight.size; + } + + // Calculate the overall size and constrain it to the given constraints. + // Any overflow is marked (in debug mode) during paint. + _childrenSize = Size( + topLeftSize.width + bottomRightSize.width, + topLeftSize.height + bottomRightSize.height, + ); + size = constraints.constrain(_childrenSize); + } + + void _positionChild(RenderBox child, Offset offset) { + (child.parentData! as BoxParentData).offset = offset; + } + + // PAINT + + @override + void paint(PaintingContext context, Offset offset) { + // Paint the background. + if (backgroundColor != null) { + context.canvas.drawRect( + offset & size, + Paint()..color = backgroundColor!, + ); + } + + void paintChild(RenderBox child, PaintingContext context, Offset offset) { + final BoxParentData childParentData = child.parentData! as BoxParentData; + context.paintChild(child, childParentData.offset + offset); + } + + // Paint the children at the offset calculated during layout. + final RenderBox? topLeft = _topLeft; + if (topLeft != null) { + paintChild(topLeft, context, offset); + } + final RenderBox? bottomRight = _bottomRight; + if (bottomRight != null) { + paintChild(bottomRight, context, offset); + } + + // Paint an overflow indicator in debug mode if the children want to be + // larger than the incoming constraints allow. + assert(() { + paintOverflowIndicator( + context, + offset, + Offset.zero & size, + Offset.zero & _childrenSize, + ); + return true; + }()); + } + + // HIT TEST + + @override + bool hitTestChildren(BoxHitTestResult result, {required Offset position}) { + for (final RenderBox child in children) { + final BoxParentData parentData = child.parentData! as BoxParentData; + final bool isHit = result.addWithPaintOffset( + offset: parentData.offset, + position: position, + hitTest: (BoxHitTestResult result, Offset transformed) { + assert(transformed == position - parentData.offset); + return child.hitTest(result, position: transformed); + }, + ); + if (isHit) { + return true; + } + } + return false; + } + + // INTRINSICS + + // Incoming height/width are ignored as children are always laid out unconstrained. + + @override + double computeMinIntrinsicWidth(double height) { + final double topLeftWidth = _topLeft?.getMinIntrinsicWidth(double.infinity) ?? 0; + final double bottomRightWith = _bottomRight?.getMinIntrinsicWidth(double.infinity) ?? 0; + return topLeftWidth + bottomRightWith; + } + + @override + double computeMaxIntrinsicWidth(double height) { + final double topLeftWidth = _topLeft?.getMaxIntrinsicWidth(double.infinity) ?? 0; + final double bottomRightWith = _bottomRight?.getMaxIntrinsicWidth(double.infinity) ?? 0; + return topLeftWidth + bottomRightWith; + } + + @override + double computeMinIntrinsicHeight(double width) { + final double topLeftHeight = _topLeft?.getMinIntrinsicHeight(double.infinity) ?? 0; + final double bottomRightHeight = _bottomRight?.getMinIntrinsicHeight(double.infinity) ?? 0; + return topLeftHeight + bottomRightHeight; + } + + @override + double computeMaxIntrinsicHeight(double width) { + final double topLeftHeight = _topLeft?.getMaxIntrinsicHeight(double.infinity) ?? 0; + final double bottomRightHeight = _bottomRight?.getMaxIntrinsicHeight(double.infinity) ?? 0; + return topLeftHeight + bottomRightHeight; + } + + @override + Size computeDryLayout(BoxConstraints constraints) { + const BoxConstraints childConstraints = BoxConstraints(); + final Size topLeftSize = _topLeft?.computeDryLayout(childConstraints) ?? Size.zero; + final Size bottomRightSize = _bottomRight?.computeDryLayout(childConstraints) ?? Size.zero; + return constraints.constrain(Size( + topLeftSize.width + bottomRightSize.width, + topLeftSize.height + bottomRightSize.height, + )); + } +} + +class ExampleWidget extends StatelessWidget { + const ExampleWidget({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Slotted RenderObject Example')), + body: Center( + child: Diagonal( + topLeft: Container( + color: Colors.green, + height: 100, + width: 200, + child: const Center( + child: Text('topLeft'), + ), + ), + bottomRight: Container( + color: Colors.yellow, + height: 60, + width: 30, + child: const Center( + child: Text('bottomRight'), + ), + ), + backgroundColor: Colors.blue, + ), + ), + ), + ); + } +} + +void main() { + runApp(const ExampleWidget()); +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/system_context_menu/system_context_menu.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/system_context_menu/system_context_menu.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..b648c116b00e34171f60b13c46e3cfb5fbe6f9cc --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/system_context_menu/system_context_menu.0.dart @@ -0,0 +1,41 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SystemContextMenu]. + +void main() => runApp(const SystemContextMenuExampleApp()); + +class SystemContextMenuExampleApp extends StatelessWidget { + const SystemContextMenuExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar( + title: const Text('SystemContextMenu Basic Example'), + ), + body: Center( + child: TextField( + contextMenuBuilder: (BuildContext context, EditableTextState editableTextState) { + // If supported, show the system context menu. + if (SystemContextMenu.isSupported(context)) { + return SystemContextMenu.editableText( + editableTextState: editableTextState, + ); + } + // Otherwise, show the flutter-rendered context menu for the current + // platform. + return AdaptiveTextSelectionToolbar.editableText( + editableTextState: editableTextState, + ); + }, + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/table/table.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/table/table.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..531b6e95db2ac7c069a2d2119ee467ad6e8b15c5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/table/table.0.dart @@ -0,0 +1,85 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [Table]. + +void main() => runApp(const TableExampleApp()); + +class TableExampleApp extends StatelessWidget { + const TableExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('Table Sample')), + body: const TableExample(), + ), + ); + } +} + +class TableExample extends StatelessWidget { + const TableExample({super.key}); + + @override + Widget build(BuildContext context) { + return Table( + border: TableBorder.all(), + columnWidths: const { + 0: IntrinsicColumnWidth(), + 1: FlexColumnWidth(), + 2: FixedColumnWidth(64), + }, + defaultVerticalAlignment: TableCellVerticalAlignment.middle, + children: [ + TableRow( + children: [ + Container( + height: 32, + color: Colors.green, + ), + TableCell( + verticalAlignment: TableCellVerticalAlignment.top, + child: Container( + height: 32, + width: 32, + color: Colors.red, + ), + ), + Container( + height: 64, + color: Colors.blue, + ), + ], + ), + TableRow( + decoration: const BoxDecoration( + color: Colors.grey, + ), + children: [ + Container( + height: 64, + width: 128, + color: Colors.purple, + ), + Container( + height: 32, + color: Colors.yellow, + ), + Center( + child: Container( + height: 32, + width: 32, + color: Colors.orange, + ), + ), + ], + ), + ], + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/tap_region/text_field_tap_region.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/tap_region/text_field_tap_region.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e4e08a4ace93cbce66b85157a0eb2e83dda06a76 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/tap_region/text_field_tap_region.0.dart @@ -0,0 +1,250 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; + +/// Flutter code sample for [TextFieldTapRegion]. + +void main() => runApp(const TapRegionApp()); + +class TapRegionApp extends StatelessWidget { + const TapRegionApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('TextFieldTapRegion Example')), + body: const TextFieldTapRegionExample(), + ), + ); + } +} + +class TextFieldTapRegionExample extends StatefulWidget { + const TextFieldTapRegionExample({super.key}); + + @override + State createState() => _TextFieldTapRegionExampleState(); +} + +class _TextFieldTapRegionExampleState extends State { + int value = 0; + + @override + Widget build(BuildContext context) { + return ListView( + children: [ + Center( + child: Padding( + padding: const EdgeInsets.all(20.0), + child: SizedBox( + width: 150, + height: 80, + child: IntegerSpinnerField( + value: value, + autofocus: true, + onChanged: (int newValue) { + if (value == newValue) { + // Avoid unnecessary redraws. + return; + } + setState(() { + // Update the value and redraw. + value = newValue; + }); + }, + ), + ), + ), + ), + ], + ); + } +} + +/// An integer example of the generic [SpinnerField] that validates input and +/// increments by a delta. +class IntegerSpinnerField extends StatelessWidget { + const IntegerSpinnerField({ + super.key, + required this.value, + this.autofocus = false, + this.delta = 1, + this.onChanged, + }); + + final int value; + final bool autofocus; + final int delta; + final ValueChanged? onChanged; + + @override + Widget build(BuildContext context) { + return SpinnerField( + value: value, + onChanged: onChanged, + autofocus: autofocus, + fromString: (String stringValue) => int.tryParse(stringValue) ?? value, + increment: (int i) => i + delta, + decrement: (int i) => i - delta, + // Add a text formatter that only allows integer values and a leading + // minus sign. + inputFormatters: [ + TextInputFormatter.withFunction( + (TextEditingValue oldValue, TextEditingValue newValue) { + String newString; + if (newValue.text.startsWith('-')) { + newString = '-${newValue.text.replaceAll(RegExp(r'\D'), '')}'; + } else { + newString = newValue.text.replaceAll(RegExp(r'\D'), ''); + } + return newValue.copyWith( + text: newString, + selection: newValue.selection.copyWith( + baseOffset: newValue.selection.baseOffset.clamp(0, newString.length), + extentOffset: newValue.selection.extentOffset.clamp(0, newString.length), + ), + ); + }, + ) + ], + ); + } +} + +/// A generic "spinner" field example which adds extra buttons next to a +/// [TextField] to increment and decrement the value. +/// +/// This widget uses [TextFieldTapRegion] to indicate that tapping on the +/// spinner buttons should not cause the text field to lose focus. +class SpinnerField extends StatefulWidget { + SpinnerField({ + super.key, + required this.value, + required this.fromString, + this.autofocus = false, + String Function(T value)? asString, + this.increment, + this.decrement, + this.onChanged, + this.inputFormatters = const [], + }) : asString = asString ?? ((T value) => value.toString()); + + final T value; + final T Function(T value)? increment; + final T Function(T value)? decrement; + final String Function(T value) asString; + final T Function(String value) fromString; + final ValueChanged? onChanged; + final List inputFormatters; + final bool autofocus; + + @override + State> createState() => _SpinnerFieldState(); +} + +class _SpinnerFieldState extends State> { + TextEditingController controller = TextEditingController(); + + @override + void initState() { + super.initState(); + _updateText(widget.asString(widget.value)); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + void didUpdateWidget(covariant SpinnerField oldWidget) { + super.didUpdateWidget(oldWidget); + if (oldWidget.asString != widget.asString || oldWidget.value != widget.value) { + final String newText = widget.asString(widget.value); + _updateText(newText); + } + } + + void _updateText(String text, {bool collapsed = true}) { + if (text != controller.text) { + controller.value = TextEditingValue( + text: text, + selection: collapsed + ? TextSelection.collapsed(offset: text.length) + : TextSelection(baseOffset: 0, extentOffset: text.length), + ); + } + } + + void _spin(T Function(T value)? spinFunction) { + if (spinFunction == null) { + return; + } + final T newValue = spinFunction(widget.value); + widget.onChanged?.call(newValue); + _updateText(widget.asString(newValue), collapsed: false); + } + + void _increment() { + _spin(widget.increment); + } + + void _decrement() { + _spin(widget.decrement); + } + + @override + Widget build(BuildContext context) { + return CallbackShortcuts( + bindings: { + const SingleActivator(LogicalKeyboardKey.arrowUp): _increment, + const SingleActivator(LogicalKeyboardKey.arrowDown): _decrement, + }, + child: Row( + children: [ + Expanded( + child: TextField( + autofocus: widget.autofocus, + inputFormatters: widget.inputFormatters, + decoration: const InputDecoration( + border: OutlineInputBorder(), + ), + onChanged: (String value) => widget.onChanged?.call(widget.fromString(value)), + controller: controller, + textAlign: TextAlign.center, + ), + ), + const SizedBox(width: 12), + // Without this TextFieldTapRegion, tapping on the buttons below would + // increment the value, but it would cause the text field to be + // unfocused, since tapping outside of a text field should unfocus it + // on non-mobile platforms. + TextFieldTapRegion( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + Expanded( + child: OutlinedButton( + onPressed: _increment, + child: const Icon(Icons.add), + ), + ), + Expanded( + child: OutlinedButton( + onPressed: _decrement, + child: const Icon(Icons.remove), + ), + ), + ], + ), + ) + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/text/text.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/text/text.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..26ea189955994a5048e05ad5980b5b55d26524f7 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/text/text.0.dart @@ -0,0 +1,46 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DefaultTextStyle]. + +void main() => runApp(const DefaultTextStyleApp()); + +class DefaultTextStyleApp extends StatelessWidget { + const DefaultTextStyleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData( + useMaterial3: true, + brightness: Brightness.light, + colorSchemeSeed: Colors.purple, + ), + home: const DefaultTextStyleExample(), + ); + } +} + +class DefaultTextStyleExample extends StatelessWidget { + const DefaultTextStyleExample({super.key}); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(title: const Text('DefaultTextStyle.merge Sample')), + // Inherit MaterialApp text theme and override font size and font weight. + body: DefaultTextStyle.merge( + style: const TextStyle( + fontSize: 24, + fontWeight: FontWeight.bold, + ), + child: const Center( + child: Text('Flutter'), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/text_magnifier/text_magnifier.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/text_magnifier/text_magnifier.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..03daf7e8f0e29b121fe2af1247289d8afbc8ab97 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/text_magnifier/text_magnifier.0.dart @@ -0,0 +1,110 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; + +void main() => runApp(const TextMagnifierExampleApp(text: 'Hello world!')); + +class TextMagnifierExampleApp extends StatelessWidget { + const TextMagnifierExampleApp({ + super.key, + this.textDirection = TextDirection.ltr, + required this.text, + }); + + final TextDirection textDirection; + final String text; + + @override + Widget build(BuildContext context) { + return MaterialApp( + theme: ThemeData(useMaterial3: true), + home: Scaffold( + body: Padding( + padding: const EdgeInsets.symmetric(horizontal: 48.0), + child: Center( + child: TextField( + textDirection: textDirection, + // Create a custom magnifier configuration that + // this `TextField` will use to build a magnifier with. + magnifierConfiguration: TextMagnifierConfiguration( + magnifierBuilder: (_, __, ValueNotifier magnifierInfo) => CustomMagnifier( + magnifierInfo: magnifierInfo, + ), + ), + controller: TextEditingController(text: text), + ), + ), + ), + ), + ); + } +} + +class CustomMagnifier extends StatelessWidget { + const CustomMagnifier({super.key, required this.magnifierInfo}); + + static const Size magnifierSize = Size(200, 200); + + // This magnifier will consume some text data and position itself + // based on the info in the magnifier. + final ValueNotifier magnifierInfo; + + @override + Widget build(BuildContext context) { + // Use a value listenable builder because we want to rebuild + // every time the text selection info changes. + // `CustomMagnifier` could also be a `StatefulWidget` and call `setState` + // when `magnifierInfo` updates. This would be useful for more complex + // positioning cases. + return ValueListenableBuilder( + valueListenable: magnifierInfo, + builder: (BuildContext context, MagnifierInfo currentMagnifierInfo, _) { + // We want to position the magnifier at the global position of the gesture. + Offset magnifierPosition = currentMagnifierInfo.globalGesturePosition; + + // You may use the `MagnifierInfo` however you'd like: + // In this case, we make sure the magnifier never goes out of the current line bounds. + magnifierPosition = Offset( + clampDouble( + magnifierPosition.dx, + currentMagnifierInfo.currentLineBoundaries.left, + currentMagnifierInfo.currentLineBoundaries.right, + ), + clampDouble( + magnifierPosition.dy, + currentMagnifierInfo.currentLineBoundaries.top, + currentMagnifierInfo.currentLineBoundaries.bottom, + ), + ); + + // Finally, align the magnifier to the bottom center. The initial anchor is + // the top left, so subtract bottom center alignment. + magnifierPosition -= Alignment.bottomCenter.alongSize(magnifierSize); + + return Positioned( + left: magnifierPosition.dx, + top: magnifierPosition.dy, + child: RawMagnifier( + magnificationScale: 2, + // The focal point starts at the center of the magnifier. + // We probably want to point below the magnifier, so + // offset the focal point by half the magnifier height. + focalPointOffset: Offset(0, magnifierSize.height / 2), + // Decorate it however we'd like! + decoration: const MagnifierDecoration( + shape: StarBorder( + side: BorderSide( + color: Colors.green, + width: 2, + ), + ), + ), + size: magnifierSize, + ), + ); + }); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/align_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/align_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..fa7118c82a7eaee5aa4efdf68e8e2875fc6e9cd5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/align_transition.0.dart @@ -0,0 +1,67 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AlignTransition]. + +void main() => runApp(const AlignTransitionExampleApp()); + +class AlignTransitionExampleApp extends StatelessWidget { + const AlignTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: AlignTransitionExample(), + ); + } +} + +class AlignTransitionExample extends StatefulWidget { + const AlignTransitionExample({super.key}); + + @override + State createState() => _AlignTransitionExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _AlignTransitionExampleState extends State with TickerProviderStateMixin { + // Using `late final` for lazy initialization. See + // https://dart.dev/null-safety/understanding-null-safety#lazy-initialization. + late final AnimationController _controller = AnimationController( + duration: const Duration(seconds: 2), + vsync: this, + )..repeat(reverse: true); + late final Animation _animation = Tween( + begin: Alignment.bottomLeft, + end: Alignment.center, + ).animate( + CurvedAnimation( + parent: _controller, + curve: Curves.decelerate, + ), + ); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return ColoredBox( + color: Colors.white, + child: AlignTransition( + alignment: _animation, + child: const Padding( + padding: EdgeInsets.all(8), + child: FlutterLogo(size: 150.0), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/animated_builder.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/animated_builder.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..89abd212925bc05fce2a4f912d68f9cc3baa90fe --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/animated_builder.0.dart @@ -0,0 +1,65 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AnimatedBuilder]. + +void main() => runApp(const AnimatedBuilderExampleApp()); + +class AnimatedBuilderExampleApp extends StatelessWidget { + const AnimatedBuilderExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: AnimatedBuilderExample(), + ); + } +} + +class AnimatedBuilderExample extends StatefulWidget { + const AnimatedBuilderExample({super.key}); + + @override + State createState() => _AnimatedBuilderExampleState(); +} + +/// AnimationControllers can be created with `vsync: this` because of +/// TickerProviderStateMixin. +class _AnimatedBuilderExampleState extends State with TickerProviderStateMixin { + late final AnimationController _controller = AnimationController( + duration: const Duration(seconds: 10), + vsync: this, + )..repeat(); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return AnimatedBuilder( + animation: _controller, + child: Container( + width: 200.0, + height: 200.0, + color: Colors.green, + child: const Center( + child: Text('Whee!'), + ), + ), + builder: (BuildContext context, Widget? child) { + return Transform.rotate( + angle: _controller.value * 2.0 * math.pi, + child: child, + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/animated_widget.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/animated_widget.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..93c98bc43f88f33e6ab1ad4572c9cb42631ef1be --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/animated_widget.0.dart @@ -0,0 +1,66 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [AnimatedWidget]. + +void main() => runApp(const AnimatedWidgetExampleApp()); + +class AnimatedWidgetExampleApp extends StatelessWidget { + const AnimatedWidgetExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: AnimatedWidgetExample(), + ); + } +} + +class SpinningContainer extends AnimatedWidget { + const SpinningContainer({ + super.key, + required AnimationController controller, + }) : super(listenable: controller); + + Animation get _progress => listenable as Animation; + + @override + Widget build(BuildContext context) { + return Transform.rotate( + angle: _progress.value * 2.0 * math.pi, + child: Container(width: 200.0, height: 200.0, color: Colors.green), + ); + } +} + +class AnimatedWidgetExample extends StatefulWidget { + const AnimatedWidgetExample({super.key}); + + @override + State createState() => _AnimatedWidgetExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _AnimatedWidgetExampleState extends State with TickerProviderStateMixin { + late final AnimationController _controller = AnimationController( + duration: const Duration(seconds: 10), + vsync: this, + )..repeat(); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return SpinningContainer(controller: _controller); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/decorated_box_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/decorated_box_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..2ff7ef3ea5c4d976b74eaa6383fca4cc1cc641c5 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/decorated_box_transition.0.dart @@ -0,0 +1,84 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DecoratedBoxTransition]. + +void main() => runApp(const DecoratedBoxTransitionExampleApp()); + +class DecoratedBoxTransitionExampleApp extends StatelessWidget { + const DecoratedBoxTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: DecoratedBoxTransitionExample(), + ); + } +} + +class DecoratedBoxTransitionExample extends StatefulWidget { + const DecoratedBoxTransitionExample({super.key}); + + @override + State createState() => _DecoratedBoxTransitionExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _DecoratedBoxTransitionExampleState extends State with TickerProviderStateMixin { + final DecorationTween decorationTween = DecorationTween( + begin: BoxDecoration( + color: const Color(0xFFFFFFFF), + border: Border.all(style: BorderStyle.none), + borderRadius: BorderRadius.circular(60.0), + boxShadow: const [ + BoxShadow( + color: Color(0x66666666), + blurRadius: 10.0, + spreadRadius: 3.0, + offset: Offset(0, 6.0), + ), + ], + ), + end: BoxDecoration( + color: const Color(0xFFFFFFFF), + border: Border.all( + style: BorderStyle.none, + ), + borderRadius: BorderRadius.zero, + // No shadow. + ), + ); + + late final AnimationController _controller = AnimationController( + vsync: this, + duration: const Duration(seconds: 3), + )..repeat(reverse: true); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return ColoredBox( + color: Colors.white, + child: Center( + child: DecoratedBoxTransition( + decoration: decorationTween.animate(_controller), + child: Container( + width: 200, + height: 200, + padding: const EdgeInsets.all(10), + child: const FlutterLogo(), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/default_text_style_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/default_text_style_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..bd62f97dc3bafeb329ec488b316082c84f2e1561 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/default_text_style_transition.0.dart @@ -0,0 +1,69 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [DefaultTextStyleTransition]. + +void main() => runApp(const DefaultTextStyleTransitionExampleApp()); + +class DefaultTextStyleTransitionExampleApp extends StatelessWidget { + const DefaultTextStyleTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: DefaultTextStyleTransitionExample(), + ); + } +} + +class DefaultTextStyleTransitionExample extends StatefulWidget { + const DefaultTextStyleTransitionExample({super.key}); + + @override + State createState() => _DefaultTextStyleTransitionExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _DefaultTextStyleTransitionExampleState extends State + with TickerProviderStateMixin { + late AnimationController _controller; + late TextStyleTween _styleTween; + late CurvedAnimation _curvedAnimation; + + @override + void initState() { + super.initState(); + _controller = AnimationController( + duration: const Duration(seconds: 2), + vsync: this, + )..repeat(reverse: true); + _styleTween = TextStyleTween( + begin: const TextStyle(fontSize: 50, color: Colors.blue, fontWeight: FontWeight.w900), + end: const TextStyle(fontSize: 50, color: Colors.red, fontWeight: FontWeight.w100), + ); + _curvedAnimation = CurvedAnimation( + parent: _controller, + curve: Curves.elasticInOut, + ); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Center( + child: DefaultTextStyleTransition( + style: _styleTween.animate(_curvedAnimation), + child: const Text('Flutter'), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/fade_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/fade_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..a6dd3246412913aff104d750062c4a0e525aa721 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/fade_transition.0.dart @@ -0,0 +1,57 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [FadeTransition]. + +void main() => runApp(const FadeTransitionExampleApp()); + +class FadeTransitionExampleApp extends StatelessWidget { + const FadeTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: FadeTransitionExample(), + ); + } +} + +class FadeTransitionExample extends StatefulWidget { + const FadeTransitionExample({super.key}); + + @override + State createState() => _FadeTransitionExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _FadeTransitionExampleState extends State with TickerProviderStateMixin { + late final AnimationController _controller = AnimationController( + duration: const Duration(seconds: 2), + vsync: this, + )..repeat(reverse: true); + late final Animation _animation = CurvedAnimation( + parent: _controller, + curve: Curves.easeIn, + ); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return ColoredBox( + color: Colors.white, + child: FadeTransition( + opacity: _animation, + child: const Padding(padding: EdgeInsets.all(8), child: FlutterLogo()), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..e0cd2eff3feb30bc2859fc6db5afbf1542e1abd0 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.0.dart @@ -0,0 +1,172 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ListenableBuilder]. + +void main() => runApp(const ListenableBuilderExample()); + +/// This widget listens for changes in the focus state of the subtree defined by +/// its [child] widget, changing the border and color of the container it is in +/// when it has focus. +/// +/// A [FocusListenerContainer] swaps out the [BorderSide] of a border around the +/// child widget with [focusedSide], and the background color with +/// [focusedColor], when a widget that is a descendant of this widget has focus. +class FocusListenerContainer extends StatefulWidget { + const FocusListenerContainer({ + super.key, + this.border, + this.padding, + this.focusedSide, + this.focusedColor = Colors.black12, + required this.child, + }); + + /// This is the border that will be used when not focused, and which defines + /// all the attributes except for the [OutlinedBorder.side] when focused. + final OutlinedBorder? border; + + /// This is the [BorderSide] that will be used for [border] when the [child] + /// subtree is focused. + final BorderSide? focusedSide; + + /// This is the [Color] that will be used as the fill color for the background + /// of the [child] when a descendant widget is focused. + final Color? focusedColor; + + /// The padding around the inside of the container. + final EdgeInsetsGeometry? padding; + + /// This is defines the subtree to listen to for focus changes. + final Widget child; + + @override + State createState() => _FocusListenerContainerState(); +} + +class _FocusListenerContainerState extends State { + final FocusNode _focusNode = FocusNode(); + + @override + void dispose() { + _focusNode.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + final OutlinedBorder effectiveBorder = widget.border ?? const RoundedRectangleBorder(); + return ListenableBuilder( + listenable: _focusNode, + child: Focus( + focusNode: _focusNode, + skipTraversal: true, + canRequestFocus: false, + child: widget.child, + ), + builder: (BuildContext context, Widget? child) { + return Container( + padding: widget.padding, + decoration: ShapeDecoration( + color: _focusNode.hasFocus ? widget.focusedColor : null, + shape: effectiveBorder.copyWith( + side: _focusNode.hasFocus ? widget.focusedSide : null, + ), + ), + child: child, + ); + }, + ); + } +} + +class MyField extends StatefulWidget { + const MyField({super.key, required this.label}); + + final String label; + + @override + State createState() => _MyFieldState(); +} + +class _MyFieldState extends State { + final TextEditingController controller = TextEditingController(); + + @override + Widget build(BuildContext context) { + return Row( + children: [ + Expanded(child: Text(widget.label)), + Expanded( + flex: 2, + child: TextField( + controller: controller, + onEditingComplete: () { + debugPrint('Field ${widget.label} changed to ${controller.value}'); + }, + ), + ), + ], + ); + } +} + +class ListenableBuilderExample extends StatelessWidget { + const ListenableBuilderExample({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ListenableBuilder Example')), + body: Center( + child: SizedBox( + width: 300, + child: Padding( + padding: const EdgeInsets.all(8.0), + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Padding( + padding: EdgeInsets.only(bottom: 8), + child: MyField(label: 'Company'), + ), + FocusListenerContainer( + padding: const EdgeInsets.all(8), + border: const RoundedRectangleBorder( + side: BorderSide( + strokeAlign: BorderSide.strokeAlignOutside, + ), + borderRadius: BorderRadius.all( + Radius.circular(5), + ), + ), + // The border side will get wider when the subtree has focus. + focusedSide: const BorderSide( + width: 4, + strokeAlign: BorderSide.strokeAlignOutside, + ), + // The container background will change color to this when + // the subtree has focus. + focusedColor: Colors.blue.shade50, + child: const Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text('Owner:'), + MyField(label: 'First Name'), + MyField(label: 'Last Name'), + ], + ), + ), + ], + ), + ), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.1.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.1.dart new file mode 100644 index 0000000000000000000000000000000000000000..4d83badcdb18dd01a76e877a55ca60ca46bb212d --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.1.dart @@ -0,0 +1,64 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for a [ValueNotifier] with a [ListenableBuilder]. + +void main() { + runApp(const ListenableBuilderExample()); +} + +class ListenableBuilderExample extends StatefulWidget { + const ListenableBuilderExample({super.key}); + + @override + State createState() => _ListenableBuilderExampleState(); +} + +class _ListenableBuilderExampleState extends State { + final ValueNotifier _counter = ValueNotifier(0); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ListenableBuilder Example')), + body: CounterBody(counterValueNotifier: _counter), + floatingActionButton: FloatingActionButton( + onPressed: () => _counter.value++, + child: const Icon(Icons.add), + ), + ), + ); + } +} + +class CounterBody extends StatelessWidget { + const CounterBody({super.key, required this.counterValueNotifier}); + + final ValueNotifier counterValueNotifier; + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('Current counter value:'), + // Thanks to the ListenableBuilder, only the widget displaying the + // current count is rebuilt when counterValueNotifier notifies its + // listeners. The Text widget above and CounterBody itself aren't + // rebuilt. + ListenableBuilder( + listenable: counterValueNotifier, + builder: (BuildContext context, Widget? child) { + return Text('${counterValueNotifier.value}'); + }, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.2.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.2.dart new file mode 100644 index 0000000000000000000000000000000000000000..f417bfc46f4cf0749b45f7ba9325f99fef11a37b --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.2.dart @@ -0,0 +1,74 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for a [ChangeNotifier] with a [ListenableBuilder]. + +void main() { + runApp(const ListenableBuilderExample()); +} + +class CounterModel with ChangeNotifier { + int _count = 0; + int get count => _count; + + void increment() { + _count += 1; + notifyListeners(); + } +} + +class ListenableBuilderExample extends StatefulWidget { + const ListenableBuilderExample({super.key}); + + @override + State createState() => _ListenableBuilderExampleState(); +} + +class _ListenableBuilderExampleState extends State { + final CounterModel _counter = CounterModel(); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ListenableBuilder Example')), + body: CounterBody(counterNotifier: _counter), + floatingActionButton: FloatingActionButton( + onPressed: _counter.increment, + child: const Icon(Icons.add), + ), + ), + ); + } +} + +class CounterBody extends StatelessWidget { + const CounterBody({super.key, required this.counterNotifier}); + + final CounterModel counterNotifier; + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('Current counter value:'), + // Thanks to the ListenableBuilder, only the widget displaying the + // current count is rebuilt when counterValueNotifier notifies its + // listeners. The Text widget above and CounterBody itself aren't + // rebuilt. + ListenableBuilder( + listenable: counterNotifier, + builder: (BuildContext context, Widget? child) { + return Text('${counterNotifier.count}'); + }, + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.3.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.3.dart new file mode 100644 index 0000000000000000000000000000000000000000..8bc7ae1ed454c7826f83b7534ee1bda3aef176a1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/listenable_builder.3.dart @@ -0,0 +1,82 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math' as math; +import 'package:flutter/material.dart'; + +/// Flutter code sample for a [ChangeNotifier] with a [ListenableBuilder]. + +void main() { + runApp(const ListenableBuilderExample()); +} + +class ListModel with ChangeNotifier { + final List _values = []; + List get values => _values.toList(); // O(N), makes a new copy each time. + + void add(int value) { + _values.add(value); + notifyListeners(); + } +} + +class ListenableBuilderExample extends StatefulWidget { + const ListenableBuilderExample({super.key}); + + @override + State createState() => _ListenableBuilderExampleState(); +} + +class _ListenableBuilderExampleState extends State { + final ListModel _listNotifier = ListModel(); + final math.Random _random = math.Random(0); // fixed seed for reproducability + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('ListenableBuilder Example')), + body: ListBody(listNotifier: _listNotifier), + floatingActionButton: FloatingActionButton( + onPressed: () => _listNotifier.add(_random.nextInt(1 << 31)), // 1 << 31 is the maximum supported value + child: const Icon(Icons.add), + ), + ), + ); + } +} + +class ListBody extends StatelessWidget { + const ListBody({super.key, required this.listNotifier}); + + final ListModel listNotifier; + + @override + Widget build(BuildContext context) { + return Center( + child: Column( + crossAxisAlignment: CrossAxisAlignment.stretch, + children: [ + const Text('Current values:'), + Expanded( + child: ListenableBuilder( + listenable: listNotifier, + builder: (BuildContext context, Widget? child) { + // We rebuild the ListView each time the list changes, + // so that the framework knows to update the rendering. + final List values = listNotifier.values; // copy the list + return ListView.builder( + itemBuilder: (BuildContext context, int index) => ListTile( + title: Text('${values[index]}'), + ), + itemCount: values.length, + ); + }, + ), + ), + ], + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/matrix_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/matrix_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..2d687a31e7a70b5158810ba7bb8932749d1e1197 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/matrix_transition.0.dart @@ -0,0 +1,75 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'dart:math'; + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [MatrixTransition]. + +void main() => runApp(const MatrixTransitionExampleApp()); + +class MatrixTransitionExampleApp extends StatelessWidget { + const MatrixTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: MatrixTransitionExample(), + ); + } +} + +class MatrixTransitionExample extends StatefulWidget { + const MatrixTransitionExample({super.key}); + + @override + State createState() => _MatrixTransitionExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _MatrixTransitionExampleState extends State with TickerProviderStateMixin { + late AnimationController _controller; + late Animation _animation; + + @override + void initState() { + super.initState(); + _controller = AnimationController( + duration: const Duration(seconds: 2), + vsync: this, + )..repeat(); + _animation = CurvedAnimation( + parent: _controller, + curve: Curves.linear, + ); + } + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: MatrixTransition( + animation: _animation, + child: const Padding( + padding: EdgeInsets.all(8.0), + child: FlutterLogo(size: 150.0), + ), + onTransform: (double value) { + return Matrix4.identity() + ..setEntry(3, 2, 0.004) + ..rotateY(pi * 2.0 * value); + }, + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/positioned_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/positioned_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..5adf8b161f1290d61204ec7e6c3678391af681e1 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/positioned_transition.0.dart @@ -0,0 +1,77 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [PositionedTransition]. + +void main() => runApp(const PositionedTransitionExampleApp()); + +class PositionedTransitionExampleApp extends StatelessWidget { + const PositionedTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: PositionedTransitionExample(), + ); + } +} + +class PositionedTransitionExample extends StatefulWidget { + const PositionedTransitionExample({super.key}); + + @override + State createState() => _PositionedTransitionExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _PositionedTransitionExampleState extends State with TickerProviderStateMixin { + late final AnimationController _controller = AnimationController( + duration: const Duration(seconds: 2), + vsync: this, + )..repeat(reverse: true); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + const double smallLogo = 100; + const double bigLogo = 200; + + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + final Size biggest = constraints.biggest; + return Stack( + children: [ + PositionedTransition( + rect: RelativeRectTween( + begin: RelativeRect.fromSize( + const Rect.fromLTWH(0, 0, smallLogo, smallLogo), + biggest, + ), + end: RelativeRect.fromSize( + Rect.fromLTWH(biggest.width - bigLogo, biggest.height - bigLogo, bigLogo, bigLogo), + biggest, + ), + ).animate(CurvedAnimation( + parent: _controller, + curve: Curves.elasticInOut, + )), + child: const Padding( + padding: EdgeInsets.all(8), + child: FlutterLogo(), + ), + ), + ], + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/relative_positioned_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/relative_positioned_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..3b5f57c0530849412e9823eebad98571a6e70696 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/relative_positioned_transition.0.dart @@ -0,0 +1,78 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [RelativePositionedTransition]. + +void main() => runApp(const RelativePositionedTransitionExampleApp()); + +class RelativePositionedTransitionExampleApp extends StatelessWidget { + const RelativePositionedTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: RelativePositionedTransitionExample(), + ); + } +} + +class RelativePositionedTransitionExample extends StatefulWidget { + const RelativePositionedTransitionExample({super.key}); + + @override + State createState() => _RelativePositionedTransitionExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _RelativePositionedTransitionExampleState extends State + with TickerProviderStateMixin { + late final AnimationController _controller = AnimationController( + duration: const Duration(seconds: 2), + vsync: this, + )..repeat(reverse: true); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + const double smallLogo = 100; + const double bigLogo = 200; + + return LayoutBuilder( + builder: (BuildContext context, BoxConstraints constraints) { + final Size biggest = constraints.biggest; + return Stack( + children: [ + RelativePositionedTransition( + size: biggest, + rect: RectTween( + begin: const Rect.fromLTWH(0, 0, bigLogo, bigLogo), + end: Rect.fromLTWH( + biggest.width - smallLogo, + biggest.height - smallLogo, + smallLogo, + smallLogo, + ), + ).animate(CurvedAnimation( + parent: _controller, + curve: Curves.elasticInOut, + )), + child: const Padding( + padding: EdgeInsets.all(8), + child: FlutterLogo(), + ), + ), + ], + ); + }, + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/rotation_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/rotation_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..58001daf30f24fae49d4e308f4f4e5d6b4a26826 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/rotation_transition.0.dart @@ -0,0 +1,61 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [RotationTransition]. + +void main() => runApp(const RotationTransitionExampleApp()); + +class RotationTransitionExampleApp extends StatelessWidget { + const RotationTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: RotationTransitionExample(), + ); + } +} + +class RotationTransitionExample extends StatefulWidget { + const RotationTransitionExample({super.key}); + + @override + State createState() => _RotationTransitionExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _RotationTransitionExampleState extends State with TickerProviderStateMixin { + late final AnimationController _controller = AnimationController( + duration: const Duration(seconds: 2), + vsync: this, + )..repeat(reverse: true); + late final Animation _animation = CurvedAnimation( + parent: _controller, + curve: Curves.elasticOut, + ); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: RotationTransition( + turns: _animation, + child: const Padding( + padding: EdgeInsets.all(8.0), + child: FlutterLogo(size: 150.0), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/scale_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/scale_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..34b3527354e410dbbea9c8e081051eb9fc18209f --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/scale_transition.0.dart @@ -0,0 +1,61 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ScaleTransition]. + +void main() => runApp(const ScaleTransitionExampleApp()); + +class ScaleTransitionExampleApp extends StatelessWidget { + const ScaleTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ScaleTransitionExample(), + ); + } +} + +class ScaleTransitionExample extends StatefulWidget { + const ScaleTransitionExample({super.key}); + + @override + State createState() => _ScaleTransitionExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _ScaleTransitionExampleState extends State with TickerProviderStateMixin { + late final AnimationController _controller = AnimationController( + duration: const Duration(seconds: 2), + vsync: this, + )..repeat(reverse: true); + late final Animation _animation = CurvedAnimation( + parent: _controller, + curve: Curves.fastOutSlowIn, + ); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: ScaleTransition( + scale: _animation, + child: const Padding( + padding: EdgeInsets.all(8.0), + child: FlutterLogo(size: 150.0), + ), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/size_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/size_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..cfd9525c7834d88db46c63c50f40a4f58a475c56 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/size_transition.0.dart @@ -0,0 +1,60 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SizeTransition]. + +void main() => runApp(const SizeTransitionExampleApp()); + +class SizeTransitionExampleApp extends StatelessWidget { + const SizeTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: SizeTransitionExample(), + ); + } +} + +class SizeTransitionExample extends StatefulWidget { + const SizeTransitionExample({super.key}); + + @override + State createState() => _SizeTransitionExampleState(); +} + +/// [AnimationController]s can be created with `vsync: this` because of +/// [TickerProviderStateMixin]. +class _SizeTransitionExampleState extends State with TickerProviderStateMixin { + late final AnimationController _controller = AnimationController( + duration: const Duration(seconds: 3), + vsync: this, + )..repeat(); + late final Animation _animation = CurvedAnimation( + parent: _controller, + curve: Curves.fastOutSlowIn, + ); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return Scaffold( + body: SizeTransition( + sizeFactor: _animation, + axis: Axis.horizontal, + axisAlignment: -1, + child: const Center( + child: FlutterLogo(size: 200.0), + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/slide_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/slide_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..861dc7f5d4934d1331f23ecc02b1861166e07e47 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/slide_transition.0.dart @@ -0,0 +1,63 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SlideTransition]. + +void main() => runApp(const SlideTransitionExampleApp()); + +class SlideTransitionExampleApp extends StatelessWidget { + const SlideTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SlideTransition Sample')), + body: const Center( + child: SlideTransitionExample(), + ), + ), + ); + } +} + +class SlideTransitionExample extends StatefulWidget { + const SlideTransitionExample({super.key}); + + @override + State createState() => _SlideTransitionExampleState(); +} + +class _SlideTransitionExampleState extends State with SingleTickerProviderStateMixin { + late final AnimationController _controller = AnimationController( + duration: const Duration(seconds: 2), + vsync: this, + )..repeat(reverse: true); + late final Animation _offsetAnimation = Tween( + begin: Offset.zero, + end: const Offset(1.5, 0.0), + ).animate(CurvedAnimation( + parent: _controller, + curve: Curves.elasticIn, + )); + + @override + void dispose() { + _controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return SlideTransition( + position: _offsetAnimation, + child: const Padding( + padding: EdgeInsets.all(8.0), + child: FlutterLogo(size: 150.0), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/sliver_fade_transition.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/sliver_fade_transition.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..bdd364b859a63be28093fa656fb8e91a69bee1b6 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/transitions/sliver_fade_transition.0.dart @@ -0,0 +1,82 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [SliverFadeTransition]. + +void main() => runApp(const SliverFadeTransitionExampleApp()); + +class SliverFadeTransitionExampleApp extends StatelessWidget { + const SliverFadeTransitionExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('SliverFadeTransition Sample')), + body: const Center( + child: SliverFadeTransitionExample(), + ), + ), + ); + } +} + +class SliverFadeTransitionExample extends StatefulWidget { + const SliverFadeTransitionExample({super.key}); + + @override + State createState() => _SliverFadeTransitionExampleState(); +} + +class _SliverFadeTransitionExampleState extends State with SingleTickerProviderStateMixin { + late final AnimationController controller = AnimationController( + duration: const Duration(milliseconds: 1000), + vsync: this, + ); + late final Animation animation = CurvedAnimation( + parent: controller, + curve: Curves.easeIn, + ); + + @override + void initState() { + super.initState(); + animation.addStatusListener((AnimationStatus status) { + if (status == AnimationStatus.completed) { + controller.reverse(); + } else if (status == AnimationStatus.dismissed) { + controller.forward(); + } + }); + controller.forward(); + } + + @override + void dispose() { + controller.dispose(); + super.dispose(); + } + + @override + Widget build(BuildContext context) { + return CustomScrollView(slivers: [ + SliverFadeTransition( + opacity: animation, + sliver: SliverFixedExtentList( + itemExtent: 100.0, + delegate: SliverChildBuilderDelegate( + (BuildContext context, int index) { + return Container( + color: index.isEven ? Colors.indigo[200] : Colors.orange[200], + ); + }, + childCount: 5, + ), + ), + ), + ]); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/tween_animation_builder/tween_animation_builder.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/tween_animation_builder/tween_animation_builder.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..65d9587818acbaae0f3b285addef39c75126ba94 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/tween_animation_builder/tween_animation_builder.0.dart @@ -0,0 +1,57 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [TweenAnimationBuilder]. + +void main() => runApp(const TweenAnimationBuilderExampleApp()); + +class TweenAnimationBuilderExampleApp extends StatelessWidget { + const TweenAnimationBuilderExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: const Text('TweenAnimationBuilder Sample')), + body: const Center( + child: TweenAnimationBuilderExample(), + ), + ), + ); + } +} + +class TweenAnimationBuilderExample extends StatefulWidget { + const TweenAnimationBuilderExample({super.key}); + + @override + State createState() => _TweenAnimationBuilderExampleState(); +} + +class _TweenAnimationBuilderExampleState extends State { + double targetValue = 24.0; + + @override + Widget build(BuildContext context) { + return TweenAnimationBuilder( + tween: Tween(begin: 0, end: targetValue), + duration: const Duration(seconds: 1), + builder: (BuildContext context, double size, Widget? child) { + return IconButton( + iconSize: size, + color: Colors.blue, + icon: child!, + onPressed: () { + setState(() { + targetValue = targetValue == 24.0 ? 48.0 : 24.0; + }); + }, + ); + }, + child: const Icon(Icons.aspect_ratio), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/undo_history/undo_history_controller.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/undo_history/undo_history_controller.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..33a0dfec052eb6d70c65ae29fbef691a6e2a4fec --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/undo_history/undo_history_controller.0.dart @@ -0,0 +1,78 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [UndoHistoryController]. + +void main() { + runApp(const UndoHistoryControllerExampleApp()); +} + +class UndoHistoryControllerExampleApp extends StatelessWidget { + const UndoHistoryControllerExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: MyHomePage(), + ); + } +} + +class MyHomePage extends StatefulWidget { + const MyHomePage({super.key}); + + @override + State createState() => _MyHomePageState(); +} + +class _MyHomePageState extends State { + final TextEditingController _controller = TextEditingController(); + final FocusNode _focusNode = FocusNode(); + final UndoHistoryController _undoController = UndoHistoryController(); + + TextStyle? get enabledStyle => Theme.of(context).textTheme.bodyMedium; + TextStyle? get disabledStyle => Theme.of(context).textTheme.bodyMedium?.copyWith(color: Colors.grey); + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + TextField( + maxLines: 4, + controller: _controller, + focusNode: _focusNode, + undoController: _undoController, + ), + ValueListenableBuilder( + valueListenable: _undoController, + builder: (BuildContext context, UndoHistoryValue value, Widget? child) { + return Row( + children: [ + TextButton( + child: Text('Undo', style: value.canUndo ? enabledStyle : disabledStyle), + onPressed: () { + _undoController.undo(); + }, + ), + TextButton( + child: Text('Redo', style: value.canRedo ? enabledStyle : disabledStyle), + onPressed: () { + _undoController.redo(); + }, + ), + ], + ); + }, + ), + ], + ), + ), + ); + } +} diff --git a/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/value_listenable_builder/value_listenable_builder.0.dart b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/value_listenable_builder/value_listenable_builder.0.dart new file mode 100644 index 0000000000000000000000000000000000000000..07b91848a3448db82258f15a6abb067cac561259 --- /dev/null +++ b/novelforge-project/agent-workspace/flutter/examples/api/lib/widgets/value_listenable_builder/value_listenable_builder.0.dart @@ -0,0 +1,94 @@ +// Copyright 2014 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +import 'package:flutter/material.dart'; + +/// Flutter code sample for [ValueListenableBuilder]. + +void main() => runApp(const ValueListenableBuilderExampleApp()); + +class ValueListenableBuilderExampleApp extends StatelessWidget { + const ValueListenableBuilderExampleApp({super.key}); + + @override + Widget build(BuildContext context) { + return const MaterialApp( + home: ValueListenableBuilderExample(), + ); + } +} + +class ValueListenableBuilderExample extends StatefulWidget { + const ValueListenableBuilderExample({super.key}); + + @override + State createState() => _ValueListenableBuilderExampleState(); +} + +class _ValueListenableBuilderExampleState extends State { + final ValueNotifier _counter = ValueNotifier(0); + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text('ValueListenableBuilder Sample'), + ), + body: Center( + child: Column( + mainAxisAlignment: MainAxisAlignment.center, + children: [ + const Text('You have pushed the button this many times:'), + ValueListenableBuilder( + builder: (BuildContext context, int value, Widget? child) { + // This builder will only get called when the _counter + // is updated. + return Row( + mainAxisAlignment: MainAxisAlignment.center, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + CountDisplay(count: value), + child!, + ], + ); + }, + valueListenable: _counter, + // The child parameter is most helpful if the child is + // expensive to build and does not depend on the value from + // the notifier. + child: const Padding( + padding: EdgeInsets.all(10.0), + child: SizedBox( + width: 40, + height: 40, + child: FlutterLogo(size: 40), + ), + ), + ), + ], + ), + ), + floatingActionButton: FloatingActionButton( + child: const Icon(Icons.plus_one), + onPressed: () => _counter.value += 1, + ), + ); + } +} + +class CountDisplay extends StatelessWidget { + const CountDisplay({super.key, required this.count}); + + final int count; + + @override + Widget build(BuildContext context) { + return Container( + width: 100, + height: 100, + padding: const EdgeInsetsDirectional.all(10), + child: Text('$count', style: Theme.of(context).textTheme.headlineMedium), + ); + } +} diff --git a/novelforge-project/agent_workspace/docs/project_enhancement_completion_report.pdf b/novelforge-project/agent_workspace/docs/project_enhancement_completion_report.pdf index 39e3ebad6f63d439d8f54478f16d29dc0d723c52..a6e6fbcf00882f25cdf661dabedf2bc943fd1f61 100644 --- a/novelforge-project/agent_workspace/docs/project_enhancement_completion_report.pdf +++ b/novelforge-project/agent_workspace/docs/project_enhancement_completion_report.pdf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:d3fd8415d7c16da731f6e162f118ffcee140b50d4ab5405250aa2e8127b758a3 -size 794208 +oid sha256:6101489c4f2564d988289bbf5c6bbcb69a460a07a788f9d8cebf2ab3645a73e8 +size 131 diff --git a/novelforge-project/agent_workspace/novelforge-sentinel-pro/images/panel-bg.jpg b/novelforge-project/agent_workspace/novelforge-sentinel-pro/images/panel-bg.jpg index 3d8a70b1e518dec0d6674ab9ff6cc9ae1d6ab4b3..ada70732a02df744ef48016cd3510b677ecaa24a 100644 --- a/novelforge-project/agent_workspace/novelforge-sentinel-pro/images/panel-bg.jpg +++ b/novelforge-project/agent_workspace/novelforge-sentinel-pro/images/panel-bg.jpg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:2b2e9a1f201997e140c40830c4c8a35bb375876bd902b444b2691f7bb42016b7 -size 197203 +oid sha256:4f177a57f4c625ad56b1f83063471b0da7fcd724ed00e9037d1aec7a99680ca9 +size 131 diff --git a/novelforge-project/agent_workspace/novelforge-sentinel-pro/images/writing-space.jpg b/novelforge-project/agent_workspace/novelforge-sentinel-pro/images/writing-space.jpg index ee7e9d567ad9bbb0727a22ae26f4ce94a3c5d35e..80e25872edf75ae6bbb208f37ec17dfe6d949d4d 100644 --- a/novelforge-project/agent_workspace/novelforge-sentinel-pro/images/writing-space.jpg +++ b/novelforge-project/agent_workspace/novelforge-sentinel-pro/images/writing-space.jpg @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a0f82bcc6e11fd5320ab2e7426b40311bf632c50896a7cc2c04f8ff3cd568ceb -size 1291103 +oid sha256:c69d3bea9e0adf6078dff1c9531dc7ce4f682e4cd105e03450ef787023189634 +size 132