Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- novelforge-project/agent-workspace/flutter_linux_3.19.6-stable.tar.xzAdded+3
- novelforge-project/agent-workspace/flutter_linux_3.24.0-stable.tar.xzAdded+3
- novelforge-project/flutter/examples/api/README.mdAdded+154
- novelforge-project/flutter/examples/api/analysis_options.yamlAdded+10
- novelforge-project/flutter/examples/api/pubspec.lockAdded+531
- novelforge-project/flutter/examples/api/pubspec.yamlAdded+96
- novelforge-project/flutter/examples/catalog/catalog.imlAdded+14
- novelforge-project/flutter/examples/flutter_gallery/android.imlAdded+12
- novelforge-project/flutter/examples/flutter_gallery/flutter_gallery.imlAdded+14
- novelforge-project/flutter/examples/flutter_view/README.mdAdded+18
- novelforge-project/flutter/examples/flutter_view/android/build.gradleAdded+51
- novelforge-project/flutter/examples/flutter_view/android/buildscript-gradle.lockfileAdded+163
- novelforge-project/flutter/examples/flutter_view/android/gradle.propertiesAdded+3
- novelforge-project/flutter/examples/flutter_view/android/project-app.lockfileAdded+138
- novelforge-project/flutter/examples/flutter_view/android/settings.gradleAdded+21
- novelforge-project/flutter/examples/flutter_view/assets/flutter-mark-square-64.pngAdded
- novelforge-project/flutter/examples/flutter_view/flutter_view.imlAdded+14
- novelforge-project/flutter/examples/flutter_view/lib/main.dartAdded+92
- novelforge-project/flutter/examples/flutter_view/macos/Flutter/Flutter-Debug.xcconfigAdded+1
- novelforge-project/flutter/examples/flutter_view/macos/Flutter/Flutter-Release.xcconfigAdded+1
- novelforge-project/flutter/examples/flutter_view/macos/Main.storyboardAdded+161
- novelforge-project/flutter/examples/flutter_view/macos/Runner/AppDelegate.swiftAdded+13
- novelforge-project/flutter/examples/flutter_view/macos/Runner/DebugProfile.entitlementsAdded+12
- novelforge-project/flutter/examples/flutter_view/pubspec.lockAdded+55
- novelforge-project/flutter/examples/flutter_view/pubspec.yamlAdded+22
- novelforge-project/flutter/examples/flutter_view/windows/CMakeLists.txtAdded+105
- novelforge-project/flutter/examples/flutter_view/windows/flutter/CMakeLists.txtAdded+113
- novelforge-project/flutter/examples/flutter_view/windows/runner/CMakeLists.txtAdded+43
- novelforge-project/flutter/examples/flutter_view/windows/runner/Runner.rcAdded+121
- novelforge-project/flutter/examples/flutter_view/windows/runner/flutter_window.cppAdded+75
- novelforge-project/flutter/examples/flutter_view/windows/runner/flutter_window.hAdded+37
- novelforge-project/flutter/examples/flutter_view/windows/runner/main.cppAdded+47
- novelforge-project/flutter/examples/flutter_view/windows/runner/resource.hAdded+20
- novelforge-project/flutter/examples/flutter_view/windows/runner/runner.exe.manifestAdded+20
- novelforge-project/flutter/examples/flutter_view/windows/runner/utils.cppAdded+68
- novelforge-project/flutter/examples/flutter_view/windows/runner/utils.hAdded+23
- novelforge-project/flutter/examples/flutter_view/windows/runner/win32_window.cppAdded+253
- novelforge-project/flutter/examples/flutter_view/windows/runner/win32_window.hAdded+103
- novelforge-project/flutter/examples/hello_world/README.mdAdded+8
- novelforge-project/flutter/examples/hello_world/android.imlAdded+12
- novelforge-project/flutter/examples/hello_world/android/app/build.gradleAdded+56
- novelforge-project/flutter/examples/hello_world/android/app/build.gradle.ktsAdded+38
- novelforge-project/flutter/examples/hello_world/android/app/src/main/AndroidManifest.xmlAdded+42
- novelforge-project/flutter/examples/hello_world/android/app/src/main/res/mipmap-hdpi/ic_launcher.pngAdded
- novelforge-project/flutter/examples/hello_world/android/app/src/main/res/mipmap-mdpi/ic_launcher.pngAdded
- novelforge-project/flutter/examples/hello_world/android/app/src/main/res/mipmap-xhdpi/ic_launcher.pngAdded
- novelforge-project/flutter/examples/hello_world/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngAdded
- novelforge-project/flutter/examples/hello_world/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngAdded
- novelforge-project/flutter/examples/hello_world/android/gradle/wrapper/gradle-wrapper.propertiesAdded+5
- novelforge-project/flutter/examples/hello_world/hello_world.imlAdded+14
123version https://git-lfs.github.com/spec/v1oid sha256:ec6613df8fc058009c7d5aaaf865772168bceee0d513eda302e8926c77021aa0size 128123version https://git-lfs.github.com/spec/v1oid sha256:5ed06b26e462e8edff27af0a1d2a1ca507e748c8ec7ced01ab689600332856f8size 128123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154# API Example Code
This directory contains the API sample code that is referenced from the APIdocumentation in the framework.
The examples can be run individually by just specifying the path to the exampleon the command line (or in the run configuration of an IDE).
For example (no pun intended!), to run the first example from the `Curve2D`class in Chrome, you would run it like so from the [api](.) directory:
```% flutter run -d chrome lib/animation/curves/curve2_d.0.dart```
All of these same examples are available on the API docs site. For instance, theexample above is available on [this page](https://api.flutter.dev/flutter/animation/Curve2D-class.html#animation.Curve2D.1).Most of the samples are available as interactive examples in[Dartpad](https://dartpad.dev), but some (the ones marked with `{@tool sample}`in the framework source code), just don't make sense on the web, and so areavailable as standalone examples that can be run here. For instance, setting thesystem overlay style doesn't make sense on the web (it only changes thenotification area background color on Android), so you can run the example forthat on an Android device like so:
```% flutter run -d MyAndroidDevice lib/services/system_chrome/system_chrome.set_system_u_i_overlay_style.1.dart```
## Naming
> `lib/library/file/class_name.n.dart`>> `lib/library/file/class_name.member_name.n.dart`
The naming scheme for the files is similar to the hierarchy under[packages/flutter/lib/src](../../packages/flutter/lib/src), except that thefiles are represented as directories (without the `.dart` suffix), and eachsample in the file is a separate file in that directory. So, for the exampleabove, where the examples are from the[packages/flutter/lib/src/animation/curves.dart](../../packages/flutter/lib/src/animation/curves.dart)file, the `Curve2D` class, the first sample (hence the index "0") for thatsymbol resides in the file named[lib/animation/curves/curve2_d.0.dart](lib/animation/curves/curve2_d.0.dart).
Symbol names are converted from "CamelCase" to "snake_case". Dots are leftbetween symbol names, so the first example for symbol`InputDecoration.prefixIconConstraints` would be converted to`input_decoration.prefix_icon_constraints.0.dart`.
If the same example is linked to from multiple symbols, the source will be inthe canonical location for one of the symbols, and the link in the API docsblock for the other symbols will point to the first symbol's example location.
## Authoring
> For more detailed information about authoring examples, see> [the snippets package](https://pub.dev/packages/snippets).
When authoring examples, first place a block in the Dartdoc documentation forthe symbol you would like to attach it to. Here's what it might look like if youwanted to add a new example to the `Curve2D` class:
```dart/// {@tool dartpad}/// Write a description of the example here. This description will appear in the/// API web documentation to introduce the example.////// ** See code in examples/api/lib/animation/curves/curve2_d.0.dart **/// {@end-tool}```
The "See code in" line needs to be formatted exactly as above, with no wrappingor newlines, one space after the "`**`" at the beginning, and one space beforethe "`**`" at the end, and the words "See code in" at the beginning of the line.This is what the snippets tool use when finding the example source code that youare creating.
Use `{@tool dartpad}` for Dartpad examples, and use `{@tool sample}` forexamples that shouldn't be run/shown in Dartpad.
Once that comment block is inserted in the source code, create a new file at theappropriate path under [`examples/api`](.). See the[sample_templates](./lib/sample_templates/) directory for examples of differenttypes of samples with some best practices applied.
The filename should match the location of the source file it is linked from, andis named for the symbol it is attached to, in lower_snake_case, with an indexrelating to their order within the doc comment. So, for the `Curve2D` exampleabove, since it's in the `animation` library, in a file called `curves.dart`,and it's the first example, it should have the name`examples/api/lib/animation/curves/curve2_d.0.dart`.
You should also add tests for your sample code under[`examples/api/test`](./test), that matches their location under [lib](./lib),ending in `_test.dart`. See the section on [writing tests](#writing-tests) formore information on what kinds of tests to write.
The entire example should be in a single file, so that Dartpad can load it.
Only packages that can be loaded by Dartpad may be imported. If you use one thathasn't been used in an example before, you may have to add it to the[pubspec.yaml](pubspec.yaml) in the api directory.
## Snippets
There is another type of example that can also be authored, using `{@toolsnippet}`. Snippet examples are just written inline in the source, like so:
```dart/// {@tool dartpad}/// Write a description of the example here. This description will appear in the/// API web documentation to introduce the example.////// ```dart/// // Sample code goes here, e.g.:/// const Widget emptyBox = SizedBox();/// ```/// {@end-tool}```
The source for these snippets isn't stored under the [`examples/api`](.)directory, or available in Dartpad in the API docs, since they're not intendedto be runnable, they just show some incomplete snippet of example code. It mustcompile (in the context of the sample analyzer), but doesn't need to doanything. See [the snippets documentation](https://pub.dev/packages/snippets#snippet-tool) for more information about thecontext that the analyzer uses.
## Writing Tests
Examples are required to have tests. There is already a "smoke test" that simplybuilds and runs all the API examples, just to make sure that they start upwithout crashing. Functionality tests are required the examples, and generallyjust do what is normally done for writing tests. The one thing that makes itmore challenging to do for examples is that they can't really be written fortestability in any obvious way, since that would complicate the examples andmake them harder to explain.
As an example, in regular framework code, you might include a parameter for a`Platform` object that can be overridden by a test to supply a dummy platform,but in the example. This would be unnecessarily complex for the example. In allother ways, these are just normal tests. You don't need to re-test thefunctionality of the widget being used in the example, but you should test thefunctionality and integrity of the example itself.
Tests go into a directory under [test](./test) that matches their location under[lib](./lib). They are named the same as the example they are testing, with`_test.dart` at the end, like other tests. For instance, a `LayoutBuilder`example that resides in [`lib/widgets/layout_builder/layout_builder.0.dart`](./lib/widgets/layout_builder/layout_builder.0.dart) would have its tests in afile named [`test/widgets/layout_builder/layout_builder.0_test.dart`](./test/widgets/layout_builder/layout_builder.0_test.dart)12345678910# This file is also used by dev/bots/analyze_snippet_code.dart to analyze code snippets (`{@tool snippet}` sections).
include: ../../analysis_options.yaml
linter: rules: # Samples want to print things pretty often. avoid_print: false # Samples are sometimes incomplete and don't show usage of everything. unreachable_from_main: false123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531# Generated by pub# See https://dart.dev/tools/pub/glossary#lockfilepackages: _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 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" 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" 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: "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_goldens: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" flutter_localizations: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" flutter_web_plugins: dependency: "direct dev" 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_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 dev" description: flutter source: sdk version: "0.0.0" intl: dependency: "direct dev" 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" 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 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" 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 dev" 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 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: "direct dev" 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: 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" 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" 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 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" 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: ">=2.5.0-6.0.pre.30"123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596# This file is also used by dev/bots/analyze_snippet_code.dart to analyze code snippets (`{@tool snippet}` sections).
name: flutter_api_samplesdescription: API code samples for the Flutter repo.publish_to: 'none'
version: 1.0.0
environment: sdk: '>=3.2.0-0 <4.0.0' flutter: ">=2.5.0-6.0.pre.30 <3.0.0"
dependencies: cupertino_icons: 1.0.6 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: integration_test: sdk: flutter flutter_driver: sdk: flutter flutter_goldens: sdk: flutter flutter_localizations: sdk: flutter flutter_test: sdk: flutter flutter_web_plugins: 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" clock: 1.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" 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" intl: 0.18.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" 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" 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" 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" 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" 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: e00b1234567891011121314<?xml version="1.0" encoding="UTF-8"?><module type="WEB_MODULE" version="4"> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <excludeFolder url="file://$MODULE_DIR$/.idea" /> <excludeFolder url="file://$MODULE_DIR$/build" /> </content> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="Dart SDK" level="project" /> <orderEntry type="library" name="Dart Packages" level="project" /> <orderEntry type="library" name="Flutter Plugins" level="project" /> </component></module>123456789101112<?xml version="1.0" encoding="UTF-8"?><module type="JAVA_MODULE" version="4"> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$/android"> <sourceFolder url="file://$MODULE_DIR$/android/app/src/main/java" isTestSource="false" /> </content> <orderEntry type="jdk" jdkName="Android API 29 Platform" jdkType="Android SDK" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="Flutter for Android" level="project" /> </component></module>1234567891011121314<?xml version="1.0" encoding="UTF-8"?><module type="WEB_MODULE" version="4"> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <excludeFolder url="file://$MODULE_DIR$/.idea" /> <excludeFolder url="file://$MODULE_DIR$/build" /> </content> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="Dart Packages" level="project" /> <orderEntry type="library" name="Dart SDK" level="project" /> <orderEntry type="library" name="Flutter Plugins" level="project" /> </component></module>123456789101112131415161718# Example of embedding Flutter using FlutterView
This project demonstrates how to embed Flutter within an iOS or Androidapplication. On iOS, the iOS and Flutter components are built with Xcode. OnAndroid, the Android and Flutter components are built with Android Studio orGradle.
You can read more about[accessing platform and third-party services in Flutter](https://flutter.dev/platform-services/).
## iOS
You can open `ios/Runner.xcworkspace` in Xcode and build the project asusual.
## Android
You can open `android/` in Android Studio and build the project as usual.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051// Copyright 2014 The Flutter 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.5.31' repositories { google() mavenCentral() }
dependencies { classpath 'com.android.tools.build:gradle:7.2.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}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163# This is a Gradle generated file for dependency locking.# Manual edits can break the build and are not advised.# This file is expected to be part of source control.androidx.databinding:databinding-common:7.2.0=classpathandroidx.databinding:databinding-compiler-common:7.2.0=classpathcom.android.databinding:baseLibrary:7.2.0=classpathcom.android.tools.analytics-library:crash:30.2.0=classpathcom.android.tools.analytics-library:protos:30.2.0=classpathcom.android.tools.analytics-library:shared:30.2.0=classpathcom.android.tools.analytics-library:tracker:30.2.0=classpathcom.android.tools.build.jetifier:jetifier-core:1.0.0-beta09=classpathcom.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09=classpathcom.android.tools.build:aapt2-proto:7.2.0-7984345=classpathcom.android.tools.build:aaptcompiler:7.2.0=classpathcom.android.tools.build:apksig:7.2.0=classpathcom.android.tools.build:apkzlib:7.2.0=classpathcom.android.tools.build:builder-model:7.2.0=classpathcom.android.tools.build:builder-test-api:7.2.0=classpathcom.android.tools.build:builder:7.2.0=classpathcom.android.tools.build:bundletool:1.8.2=classpathcom.android.tools.build:gradle-api:7.2.0=classpathcom.android.tools.build:gradle:7.2.0=classpathcom.android.tools.build:manifest-merger:30.2.0=classpathcom.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api=classpathcom.android.tools.ddms:ddmlib:30.2.0=classpathcom.android.tools.layoutlib:layoutlib-api:30.2.0=classpathcom.android.tools.lint:lint-model:30.2.0=classpathcom.android.tools.lint:lint-typedef-remover:30.2.0=classpathcom.android.tools.utp:android-device-provider-ddmlib-proto:30.2.0=classpathcom.android.tools.utp:android-device-provider-gradle-proto:30.2.0=classpathcom.android.tools.utp:android-test-plugin-host-additional-test-output-proto:30.2.0=classpathcom.android.tools.utp:android-test-plugin-host-coverage-proto:30.2.0=classpathcom.android.tools.utp:android-test-plugin-host-retention-proto:30.2.0=classpathcom.android.tools.utp:android-test-plugin-result-listener-gradle-proto:30.2.0=classpathcom.android.tools:annotations:30.2.0=classpathcom.android.tools:common:30.2.0=classpathcom.android.tools:dvlib:30.2.0=classpathcom.android.tools:repository:30.2.0=classpathcom.android.tools:sdk-common:30.2.0=classpathcom.android.tools:sdklib:30.2.0=classpathcom.android:signflinger:7.2.0=classpathcom.android:zipflinger:7.2.0=classpathcom.fasterxml.jackson.core:jackson-annotations:2.11.1=classpathcom.fasterxml.jackson.core:jackson-core:2.11.1=classpathcom.fasterxml.jackson.core:jackson-databind:2.11.1=classpathcom.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.11.1=classpathcom.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.11.1=classpathcom.fasterxml.jackson.module:jackson-module-kotlin:2.11.1=classpathcom.fasterxml.woodstox:woodstox-core:6.2.1=classpathcom.github.gundy:semver4j:0.16.4=classpathcom.google.android:annotations:4.1.1.4=classpathcom.google.api.grpc:proto-google-common-protos:1.12.0=classpathcom.google.auto.value:auto-value-annotations:1.6.2=classpathcom.google.code.findbugs:jsr305:3.0.2=classpathcom.google.code.gson:gson:2.8.6=classpathcom.google.crypto.tink:tink:1.3.0-rc2=classpathcom.google.dagger:dagger:2.28.3=classpathcom.google.errorprone:error_prone_annotations:2.3.4=classpathcom.google.flatbuffers:flatbuffers-java:1.12.0=classpathcom.google.guava:failureaccess:1.0.1=classpathcom.google.guava:guava:30.1-jre=classpathcom.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=classpathcom.google.j2objc:j2objc-annotations:1.3=classpathcom.google.jimfs:jimfs:1.1=classpathcom.google.protobuf:protobuf-java-util:3.10.0=classpathcom.google.protobuf:protobuf-java:3.10.0=classpathcom.google.testing.platform:core-proto:0.0.8-alpha07=classpathcom.googlecode.json-simple:json-simple:1.1=classpathcom.googlecode.juniversalchardet:juniversalchardet:1.0.3=classpathcom.squareup:javapoet:1.10.0=classpathcom.squareup:javawriter:2.5.0=classpathcom.sun.activation:javax.activation:1.2.0=classpathcom.sun.istack:istack-commons-runtime:3.0.8=classpathcom.sun.xml.fastinfoset:FastInfoset:1.2.16=classpathcommons-codec:commons-codec:1.11=classpathcommons-io:commons-io:2.4=classpathcommons-logging:commons-logging:1.2=classpathde.undercouch:gradle-download-task:4.1.1=classpathio.grpc:grpc-api:1.21.1=classpathio.grpc:grpc-context:1.21.1=classpathio.grpc:grpc-core:1.21.1=classpathio.grpc:grpc-netty:1.21.1=classpathio.grpc:grpc-protobuf-lite:1.21.1=classpathio.grpc:grpc-protobuf:1.21.1=classpathio.grpc:grpc-stub:1.21.1=classpathio.netty:netty-buffer:4.1.34.Final=classpathio.netty:netty-codec-http2:4.1.34.Final=classpathio.netty:netty-codec-http:4.1.34.Final=classpathio.netty:netty-codec-socks:4.1.34.Final=classpathio.netty:netty-codec:4.1.34.Final=classpathio.netty:netty-common:4.1.34.Final=classpathio.netty:netty-handler-proxy:4.1.34.Final=classpathio.netty:netty-handler:4.1.34.Final=classpathio.netty:netty-resolver:4.1.34.Final=classpathio.netty:netty-transport:4.1.34.Final=classpathio.opencensus:opencensus-api:0.21.0=classpathio.opencensus:opencensus-contrib-grpc-metrics:0.21.0=classpathit.unimi.dsi:fastutil:8.4.0=classpathjakarta.activation:jakarta.activation-api:1.2.1=classpathjakarta.xml.bind:jakarta.xml.bind-api:2.3.2=classpathjavax.inject:javax.inject:1=classpathnet.java.dev.jna:jna-platform:5.6.0=classpathnet.java.dev.jna:jna:5.6.0=classpathnet.sf.jopt-simple:jopt-simple:4.9=classpathnet.sf.kxml:kxml2:2.3.0=classpathorg.apache.commons:commons-compress:1.20=classpathorg.apache.httpcomponents:httpclient:4.5.9=classpathorg.apache.httpcomponents:httpcore:4.4.11=classpathorg.apache.httpcomponents:httpmime:4.5.6=classpathorg.bitbucket.b_c:jose4j:0.7.0=classpathorg.bouncycastle:bcpkix-jdk15on:1.56=classpathorg.bouncycastle:bcprov-jdk15on:1.56=classpathorg.checkerframework:checker-qual:3.5.0=classpathorg.codehaus.mojo:animal-sniffer-annotations:1.17=classpathorg.codehaus.woodstox:stax2-api:4.2.1=classpathorg.glassfish.jaxb:jaxb-runtime:2.3.2=classpathorg.glassfish.jaxb:txw2:2.3.2=classpathorg.jdom:jdom2:2.0.6=classpathorg.jetbrains.dokka:dokka-core:1.4.32=classpathorg.jetbrains.intellij.deps:trove4j:1.0.20181211=classpathorg.jetbrains.kotlin:kotlin-android-extensions:1.5.31=classpathorg.jetbrains.kotlin:kotlin-annotation-processing-gradle:1.5.31=classpathorg.jetbrains.kotlin:kotlin-build-common:1.5.31=classpathorg.jetbrains.kotlin:kotlin-compiler-embeddable:1.5.31=classpathorg.jetbrains.kotlin:kotlin-compiler-runner:1.5.31=classpathorg.jetbrains.kotlin:kotlin-daemon-client:1.5.31=classpathorg.jetbrains.kotlin:kotlin-daemon-embeddable:1.5.31=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin-api:1.5.31=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin-model:1.5.31=classpathorg.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31=classpathorg.jetbrains.kotlin:kotlin-klib-commonizer-api:1.5.31=classpathorg.jetbrains.kotlin:kotlin-native-utils:1.5.31=classpathorg.jetbrains.kotlin:kotlin-project-model:1.5.31=classpathorg.jetbrains.kotlin:kotlin-reflect:1.5.31=classpathorg.jetbrains.kotlin:kotlin-scripting-common:1.5.31=classpathorg.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.5.31=classpathorg.jetbrains.kotlin:kotlin-scripting-compiler-impl-embeddable:1.5.31=classpathorg.jetbrains.kotlin:kotlin-scripting-jvm:1.5.31=classpathorg.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=classpathorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.31=classpathorg.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.31=classpathorg.jetbrains.kotlin:kotlin-stdlib:1.5.31=classpathorg.jetbrains.kotlin:kotlin-tooling-metadata:1.5.31=classpathorg.jetbrains.kotlin:kotlin-util-io:1.5.31=classpathorg.jetbrains.kotlin:kotlin-util-klib:1.5.31=classpathorg.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0=classpathorg.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0=classpathorg.jetbrains:annotations:13.0=classpathorg.jetbrains:markdown-jvm:0.2.1=classpathorg.jetbrains:markdown:0.2.1=classpathorg.json:json:20180813=classpathorg.jsoup:jsoup:1.13.1=classpathorg.jvnet.staxex:stax-ex:1.8.1=classpathorg.ow2.asm:asm-analysis:9.1=classpathorg.ow2.asm:asm-commons:9.1=classpathorg.ow2.asm:asm-tree:9.1=classpathorg.ow2.asm:asm-util:9.1=classpathorg.ow2.asm:asm:9.1=classpathorg.slf4j:slf4j-api:1.7.30=classpathorg.tensorflow:tensorflow-lite-metadata:0.1.0-rc2=classpathxerces:xercesImpl:2.12.0=classpathxml-apis:xml-apis:1.4.01=classpathempty=123org.gradle.jvmargs=-Xmx4Gandroid.useAndroidX=trueandroid.enableJetifier=true123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138# This is a Gradle generated file for dependency locking.# Manual edits can break the build and are not advised.# This file is expected to be part of source control.androidx.activity:activity:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.annotation:annotation-experimental:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.annotation:annotation:1.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.appcompat:appcompat-resources:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.appcompat:appcompat:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.arch.core:core-common:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.arch.core:core-runtime:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.asynclayoutinflater:asynclayoutinflater:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.cardview:cardview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.collection:collection:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.coordinatorlayout:coordinatorlayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.core:core:1.6.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.cursoradapter:cursoradapter:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.customview:customview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.documentfile:documentfile:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.drawerlayout:drawerlayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.fragment:fragment:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.interpolator:interpolator:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.legacy:legacy-support-core-ui:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.legacy:legacy-support-core-utils:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-common-java8:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-common:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-livedata-core:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-livedata:2.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-runtime:2.2.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.lifecycle:lifecycle-viewmodel:2.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.loader:loader:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.localbroadcastmanager:localbroadcastmanager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.print:print:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.recyclerview:recyclerview:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.savedstate:savedstate:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.slidingpanelayout:slidingpanelayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.swiperefreshlayout:swiperefreshlayout:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.tracing:tracing:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.transition:transition:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.vectordrawable:vectordrawable-animated:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.vectordrawable:vectordrawable:1.1.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.versionedparcelable:versionedparcelable:1.1.1=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.viewpager:viewpager:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.window:window-java:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathandroidx.window:window:1.0.0-beta04=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathcom.android.tools.analytics-library:protos:27.1.3=lintClassPathcom.android.tools.analytics-library:shared:27.1.3=lintClassPathcom.android.tools.analytics-library:tracker:27.1.3=lintClassPathcom.android.tools.build:aapt2-proto:4.1.0-alpha01-6193524=lintClassPathcom.android.tools.build:aapt2:4.1.3-6503028=_internal_aapt2_binarycom.android.tools.build:apksig:4.1.3=lintClassPathcom.android.tools.build:apkzlib:4.1.3=lintClassPathcom.android.tools.build:builder-model:4.1.3=lintClassPathcom.android.tools.build:builder-test-api:4.1.3=lintClassPathcom.android.tools.build:builder:4.1.3=lintClassPathcom.android.tools.build:gradle-api:4.1.3=lintClassPathcom.android.tools.build:manifest-merger:27.1.3=lintClassPathcom.android.tools.ddms:ddmlib:27.1.3=lintClassPathcom.android.tools.external.com-intellij:intellij-core:27.1.3=lintClassPathcom.android.tools.external.com-intellij:kotlin-compiler:27.1.3=lintClassPathcom.android.tools.external.org-jetbrains:uast:27.1.3=lintClassPathcom.android.tools.layoutlib:layoutlib-api:27.1.3=lintClassPathcom.android.tools.lint:lint-api:27.1.3=lintClassPathcom.android.tools.lint:lint-checks:27.1.3=lintClassPathcom.android.tools.lint:lint-gradle-api:27.1.3=lintClassPathcom.android.tools.lint:lint-gradle:27.1.3=lintClassPathcom.android.tools.lint:lint-model:27.1.3=lintClassPathcom.android.tools.lint:lint:27.1.3=lintClassPathcom.android.tools:annotations:27.1.3=lintClassPathcom.android.tools:common:27.1.3=lintClassPathcom.android.tools:dvlib:27.1.3=lintClassPathcom.android.tools:repository:27.1.3=lintClassPathcom.android.tools:sdk-common:27.1.3=lintClassPathcom.android.tools:sdklib:27.1.3=lintClassPathcom.android:signflinger:4.1.3=lintClassPathcom.android:zipflinger:4.1.3=lintClassPathcom.google.android.material:material:1.0.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathcom.google.code.findbugs:jsr305:3.0.2=lintClassPathcom.google.code.gson:gson:2.8.5=lintClassPathcom.google.errorprone:error_prone_annotations:2.3.2=lintClassPathcom.google.guava:failureaccess:1.0.1=lintClassPathcom.google.guava:guava:28.1-jre=lintClassPathcom.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=lintClassPathcom.google.j2objc:j2objc-annotations:1.3=lintClassPathcom.google.jimfs:jimfs:1.1=lintClassPathcom.google.protobuf:protobuf-java:3.10.0=lintClassPathcom.googlecode.json-simple:json-simple:1.1=lintClassPathcom.squareup:javawriter:2.5.0=lintClassPathcom.sun.activation:javax.activation:1.2.0=lintClassPathcom.sun.istack:istack-commons-runtime:3.0.7=lintClassPathcom.sun.xml.fastinfoset:FastInfoset:1.2.15=lintClassPathcommons-codec:commons-codec:1.10=lintClassPathcommons-logging:commons-logging:1.2=lintClassPathit.unimi.dsi:fastutil:7.2.0=lintClassPathjavax.activation:javax.activation-api:1.2.0=lintClassPathjavax.inject:javax.inject:1=lintClassPathjavax.xml.bind:jaxb-api:2.3.1=lintClassPathnet.sf.jopt-simple:jopt-simple:4.9=lintClassPathnet.sf.kxml:kxml2:2.3.0=lintClassPathorg.apache.commons:commons-compress:1.12=lintClassPathorg.apache.httpcomponents:httpclient:4.5.6=lintClassPathorg.apache.httpcomponents:httpcore:4.4.10=lintClassPathorg.apache.httpcomponents:httpmime:4.5.6=lintClassPathorg.bouncycastle:bcpkix-jdk15on:1.56=lintClassPathorg.bouncycastle:bcprov-jdk15on:1.56=lintClassPathorg.checkerframework:checker-qual:2.8.1=lintClassPathorg.codehaus.groovy:groovy-all:2.4.15=lintClassPathorg.codehaus.mojo:animal-sniffer-annotations:1.18=lintClassPathorg.glassfish.jaxb:jaxb-runtime:2.3.1=lintClassPathorg.glassfish.jaxb:txw2:2.3.1=lintClassPathorg.jacoco:org.jacoco.agent:0.8.7=androidJacocoAntorg.jacoco:org.jacoco.ant:0.8.7=androidJacocoAntorg.jacoco:org.jacoco.core:0.8.7=androidJacocoAntorg.jacoco:org.jacoco.report:0.8.7=androidJacocoAntorg.jetbrains.kotlin:kotlin-reflect:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib-common:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib-common:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib-jdk7:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.30=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlin:kotlin-stdlib:1.3.72=lintClassPathorg.jetbrains.kotlin:kotlin-stdlib:1.5.31=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jetbrains.trove4j:trove4j:20160824=lintClassPathorg.jetbrains:annotations:13.0=debugAndroidTestCompileClasspath,debugCompileClasspath,debugRuntimeClasspath,debugUnitTestCompileClasspath,debugUnitTestRuntimeClasspath,lintClassPath,profileCompileClasspath,profileRuntimeClasspath,profileUnitTestCompileClasspath,profileUnitTestRuntimeClasspath,releaseCompileClasspath,releaseRuntimeClasspath,releaseUnitTestCompileClasspath,releaseUnitTestRuntimeClasspathorg.jvnet.staxex:stax-ex:1.8=lintClassPathorg.ow2.asm:asm-analysis:7.0=lintClassPathorg.ow2.asm:asm-analysis:9.1=androidJacocoAntorg.ow2.asm:asm-commons:7.0=lintClassPathorg.ow2.asm:asm-commons:9.1=androidJacocoAntorg.ow2.asm:asm-tree:7.0=lintClassPathorg.ow2.asm:asm-tree:9.1=androidJacocoAntorg.ow2.asm:asm-util:7.0=lintClassPathorg.ow2.asm:asm:7.0=lintClassPathorg.ow2.asm:asm:9.1=androidJacocoAntempty=androidApis,androidJdkImage,androidTestUtil,compile,coreLibraryDesugaring,debugAndroidTestAnnotationProcessorClasspath,debugAndroidTestRuntimeClasspath,debugAnnotationProcessorClasspath,debugReverseMetadataValues,debugUnitTestAnnotationProcessorClasspath,debugWearBundling,lintChecks,lintPublish,profileAnnotationProcessorClasspath,profileReverseMetadataValues,profileUnitTestAnnotationProcessorClasspath,profileWearBundling,releaseAnnotationProcessorClasspath,releaseReverseMetadataValues,releaseUnitTestAnnotationProcessorClasspath,releaseWearBundling,testCompile123456789101112131415161718192021// Copyright 2014 The Flutter 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.
include ':app'
enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT')
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"1234567891011121314<?xml version="1.0" encoding="UTF-8"?><module type="WEB_MODULE" version="4"> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <excludeFolder url="file://$MODULE_DIR$/.idea" /> <excludeFolder url="file://$MODULE_DIR$/build" /> </content> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="Dart SDK" level="project" /> <orderEntry type="library" name="Dart Packages" level="project" /> <orderEntry type="library" name="Flutter Plugins" level="project" /> </component></module>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192// Copyright 2014 The Flutter Authors. 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';import 'package:flutter/services.dart';
void main() { runApp(const FlutterView());}
class FlutterView extends StatelessWidget { const FlutterView({super.key});
@override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter View', theme: ThemeData( primarySwatch: Colors.grey, ), home: const MyHomePage(), ); }}
class MyHomePage extends StatefulWidget { const MyHomePage({super.key});
@override State<MyHomePage> createState() => _MyHomePageState();}
class _MyHomePageState extends State<MyHomePage> { static const String _channel = 'increment'; static const String _pong = 'pong'; static const String _emptyMessage = ''; static const BasicMessageChannel<String?> platform = BasicMessageChannel<String?>(_channel, StringCodec());
int _counter = 0;
@override void initState() { super.initState(); platform.setMessageHandler(_handlePlatformIncrement); }
Future<String> _handlePlatformIncrement(String? message) async { setState(() { _counter++; }); return _emptyMessage; }
void _sendFlutterIncrement() { platform.send(_pong); }
@override Widget build(BuildContext context) { return Scaffold( body: Column( crossAxisAlignment: CrossAxisAlignment.start, children: <Widget>[ Expanded( child: Center( child: Text( 'Platform button tapped $_counter time${ _counter == 1 ? '' : 's' }.', style: const TextStyle(fontSize: 17.0), ), ), ), Container( padding: const EdgeInsets.only(bottom: 15.0, left: 5.0), child: Row( children: <Widget>[ Image.asset('assets/flutter-mark-square-64.png', scale: 1.5), const Text('Flutter', style: TextStyle(fontSize: 30.0)), ], ), ), ], ), floatingActionButton: FloatingActionButton( onPressed: _sendFlutterIncrement, child: const Icon(Icons.add), ), ); }}1#include "ephemeral/Flutter-Generated.xcconfig"1#include "ephemeral/Flutter-Generated.xcconfig"123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161<?xml version="1.0" encoding="UTF-8"?><document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="21208.1" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <dependencies> <deployment identifier="macosx"/> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21208.1"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> </dependencies> <scenes> <!--Flutter View Controller--> <scene sceneID="MPq-6h-HP0"> <objects> <viewController id="7GY-dJ-cew" userLabel="Flutter View Controller" customClass="FlutterViewController" sceneMemberID="viewController"> <view key="view" id="eEt-A6-Jxk"> <rect key="frame" x="0.0" y="0.0" width="450" height="404"/> <autoresizingMask key="autoresizingMask"/> </view> </viewController> <customObject id="eTc-YD-UwH" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/> </objects> <point key="canvasLocation" x="287" y="704"/> </scene> <!--Main View Controller--> <scene sceneID="OoP-iw-RGx"> <objects> <viewController storyboardIdentifier="MainViewController" id="Zco-B0-Eo5" customClass="MainViewController" customModule="flutter_view" customModuleProvider="target" sceneMemberID="viewController"> <view key="view" id="yo2-24-9SJ"> <rect key="frame" x="0.0" y="0.0" width="913" height="683"/> <autoresizingMask key="autoresizingMask"/> <subviews> <stackView distribution="fill" orientation="horizontal" alignment="top" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" detachesHiddenViews="YES" translatesAutoresizingMaskIntoConstraints="NO" id="vIi-fL-74a"> <rect key="frame" x="0.0" y="0.0" width="913" height="683"/> <subviews> <containerView translatesAutoresizingMaskIntoConstraints="NO" id="NLg-mU-To9"> <rect key="frame" x="0.0" y="1" width="450" height="682"/> <connections> <segue destination="fkR-dw-CPc" kind="embed" identifier="NativeViewControllerSegue" id="JOW-cD-XX0"/> </connections> </containerView> <containerView translatesAutoresizingMaskIntoConstraints="NO" id="AGJ-Cf-BSz"> <rect key="frame" x="458" y="1" width="455" height="682"/> <connections> <segue destination="7GY-dJ-cew" kind="embed" identifier="FlutterViewControllerSegue" id="0Il-tC-ptk"/> </connections> </containerView> </subviews> <constraints> <constraint firstItem="AGJ-Cf-BSz" firstAttribute="height" secondItem="NLg-mU-To9" secondAttribute="height" id="5bU-7q-KyD"/> <constraint firstItem="AGJ-Cf-BSz" firstAttribute="width" secondItem="NLg-mU-To9" secondAttribute="width" multiplier="1.01111" id="PQE-oI-RoL"/> </constraints> <visibilityPriorities> <integer value="1000"/> <integer value="1000"/> </visibilityPriorities> <customSpacing> <real value="3.4028234663852886e+38"/> <real value="3.4028234663852886e+38"/> </customSpacing> </stackView> </subviews> <constraints> <constraint firstAttribute="bottom" secondItem="vIi-fL-74a" secondAttribute="bottom" id="ORj-Up-bVE"/> <constraint firstAttribute="trailing" secondItem="vIi-fL-74a" secondAttribute="trailing" id="XqL-pC-rc8"/> <constraint firstItem="vIi-fL-74a" firstAttribute="leading" secondItem="yo2-24-9SJ" secondAttribute="leading" id="kXT-6f-V55"/> <constraint firstItem="vIi-fL-74a" firstAttribute="top" secondItem="yo2-24-9SJ" secondAttribute="top" id="ws7-M4-M5U"/> </constraints> </view> </viewController> <customObject id="RER-RE-Ii7" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/> </objects> <point key="canvasLocation" x="13.5" y="26.5"/> </scene> <!--Native View Controller--> <scene sceneID="6te-4i-Zpy"> <objects> <viewController id="fkR-dw-CPc" userLabel="Native View Controller" customClass="NativeViewController" customModule="flutter_view" customModuleProvider="target" sceneMemberID="viewController"> <view key="view" id="lMy-hx-gLK"> <rect key="frame" x="0.0" y="0.0" width="450" height="404"/> <autoresizingMask key="autoresizingMask"/> <subviews> <stackView distribution="fillProportionally" orientation="vertical" alignment="leading" spacing="0.0" horizontalStackHuggingPriority="249.99998474121094" verticalStackHuggingPriority="249.99998474121094" detachesHiddenViews="YES" translatesAutoresizingMaskIntoConstraints="NO" id="bEP-zh-PC4"> <rect key="frame" x="0.0" y="0.0" width="450" height="404"/> <subviews> <customView translatesAutoresizingMaskIntoConstraints="NO" id="7vK-z0-I0z" userLabel="Top"> <rect key="frame" x="0.0" y="70" width="450" height="334"/> <subviews> <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ic4-Iq-BCT"> <rect key="frame" x="207" y="163" width="4" height="16"/> <textFieldCell key="cell" lineBreakMode="clipping" id="EHZ-Ff-uN9"> <font key="font" metaFont="system" size="17"/> <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> </textFieldCell> </textField> </subviews> <constraints> <constraint firstItem="ic4-Iq-BCT" firstAttribute="centerX" secondItem="7vK-z0-I0z" secondAttribute="centerX" id="edj-sZ-5O7"/> <constraint firstItem="ic4-Iq-BCT" firstAttribute="centerY" secondItem="7vK-z0-I0z" secondAttribute="centerY" id="v3Q-Xa-flH"/> </constraints> </customView> <customView autoresizesSubviews="NO" translatesAutoresizingMaskIntoConstraints="NO" id="O0r-UF-j95" userLabel="Bottom"> <rect key="frame" x="0.0" y="0.0" width="450" height="70"/> <subviews> <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Ocn-t9-rHR"> <rect key="frame" x="18" y="20" width="100" height="35"/> <textFieldCell key="cell" lineBreakMode="clipping" title="macOS" id="TOF-2b-RIY"> <font key="font" metaFont="system" size="30"/> <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> </textFieldCell> </textField> <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="uyM-Dx-MIG"> <rect key="frame" x="375" y="14" width="55" height="57"/> <constraints> <constraint firstAttribute="height" constant="55" id="2Zv-ge-8fE"/> <constraint firstAttribute="width" constant="55" id="bQo-k1-1eM"/> </constraints> <buttonCell key="cell" type="smallSquare" title="+" bezelStyle="smallSquare" alignment="center" lineBreakMode="truncatingTail" state="on" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="az3-aa-8jC"> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <font key="font" metaFont="system" size="18"/> </buttonCell> <connections> <action selector="handleIncrement:" target="fkR-dw-CPc" id="7k2-NW-4LI"/> </connections> </button> </subviews> <constraints> <constraint firstItem="Ocn-t9-rHR" firstAttribute="leading" secondItem="O0r-UF-j95" secondAttribute="leading" constant="20" symbolic="YES" id="KhQ-Xf-SiD"/> <constraint firstAttribute="trailing" secondItem="uyM-Dx-MIG" secondAttribute="trailing" constant="20" symbolic="YES" id="LFX-ph-6nb"/> <constraint firstAttribute="bottom" secondItem="Ocn-t9-rHR" secondAttribute="bottom" constant="20" symbolic="YES" id="Ofu-fn-RDS"/> <constraint firstAttribute="height" constant="70" id="V41-3J-PYi"/> <constraint firstAttribute="bottom" secondItem="uyM-Dx-MIG" secondAttribute="bottom" constant="15" id="Xfq-yS-emb"/> </constraints> </customView> </subviews> <visibilityPriorities> <integer value="1000"/> <integer value="1000"/> </visibilityPriorities> <customSpacing> <real value="3.4028234663852886e+38"/> <real value="3.4028234663852886e+38"/> </customSpacing> </stackView> </subviews> <constraints> <constraint firstItem="bEP-zh-PC4" firstAttribute="top" secondItem="lMy-hx-gLK" secondAttribute="top" id="6Fg-dO-Yhl"/> <constraint firstItem="bEP-zh-PC4" firstAttribute="leading" secondItem="lMy-hx-gLK" secondAttribute="leading" id="ZiX-CF-CPT"/> <constraint firstAttribute="bottom" secondItem="bEP-zh-PC4" secondAttribute="bottom" id="doI-ip-Pbz"/> <constraint firstAttribute="trailing" secondItem="bEP-zh-PC4" secondAttribute="trailing" id="jrN-ON-H5M"/> </constraints> </view> <connections> <outlet property="incrementLabel" destination="ic4-Iq-BCT" id="M3U-fC-vbY"/> </connections> </viewController> <customObject id="v3R-qm-QoP" userLabel="First Responder" customClass="NSResponder" sceneMemberID="firstResponder"/> </objects> <point key="canvasLocation" x="-218" y="704"/> </scene> </scenes></document>12345678910111213// Copyright 2014 The Flutter Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.
import Cocoaimport FlutterMacOS
@NSApplicationMainclass AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true }}123456789101112<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict> <key>com.apple.security.app-sandbox</key> <true/> <key>com.apple.security.cs.allow-jit</key> <true/> <key>com.apple.security.network.server</key> <true/></dict></plist>12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455# Generated by pub# See https://dart.dev/tools/pub/glossary#lockfilepackages: 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"12345678910111213141516171819202122name: flutter_viewdescription: A new flutter project.
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"
flutter: uses-material-design: true assets: - assets/flutter-mark-square-64.png
# PUBSPEC CHECKSUM: 4694123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105# Copyright 2014 The Flutter Authors. All rights reserved.# Use of this source code is governed by a BSD-style license that can be# found in the LICENSE file.
# Project-level configuration.cmake_minimum_required(VERSION 3.14)project(flutter_view 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 "flutter_view")
# 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 "$<$<CONFIG:Debug>:_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 "$<TARGET_FILE_DIR:${BINARY_NAME}>")# 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)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113# Copyright 2014 The Flutter 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 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} $<CONFIG> VERBATIM)add_custom_target(flutter_assemble DEPENDS "${FLUTTER_LIBRARY}" ${FLUTTER_LIBRARY_HEADERS} ${CPP_WRAPPER_SOURCES_CORE} ${CPP_WRAPPER_SOURCES_PLUGIN} ${CPP_WRAPPER_SOURCES_APP})12345678910111213141516171819202122232425262728293031323334353637383940414243# Copyright 2014 The Flutter Authors. All rights reserved.# Use of this source code is governed by a BSD-style license that can be# found in the LICENSE file.
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_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)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121// 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", "io.flutter.examples" "\0"
VALUE "FileDescription", "flutter_view" "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "flutter_view" "\0"
VALUE "LegalCopyright", "Copyright (C) 2022 io.flutter.examples. All rights reserved." "\0"
VALUE "OriginalFilename", "flutter_view.exe" "\0"
VALUE "ProductName", "flutter_view" "\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_INVOKED123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475// Copyright 2014 The Flutter 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 <optional>
#include "flutter/generated_plugin_registrant.h"
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<flutter::FlutterViewController>( 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());
flutter_controller_->engine()->SetNextFrameCallback([&]() { this->Show(); });
// 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();
return true;}
void FlutterWindow::OnDestroy() { if (flutter_controller_) { flutter_controller_ = nullptr; }
Win32Window::OnDestroy();}
LRESULTFlutterWindow::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<LRESULT> 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);}12345678910111213141516171819202122232425262728293031323334353637// Copyright 2014 The Flutter 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 <flutter/dart_project.h>#include <flutter/flutter_view_controller.h>
#include <memory>
#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::FlutterViewController> flutter_controller_;};
#endif // RUNNER_FLUTTER_WINDOW_H_1234567891011121314151617181920212223242526272829303132333435363738394041424344454647// Copyright 2014 The Flutter 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/dart_project.h>#include <flutter/flutter_view_controller.h>#include <windows.h>
#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<std::string> 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"flutter_view", origin, size)) { return EXIT_FAILURE; } window.SetQuitOnClose(true);
::MSG msg; while (::GetMessage(&msg, nullptr, 0, 0)) { ::TranslateMessage(&msg); ::DispatchMessage(&msg); }
::CoUninitialize(); return EXIT_SUCCESS;}1234567891011121314151617181920// Copyright 2014 The Flutter 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#endif1234567891011121314151617181920<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <application xmlns="urn:schemas-microsoft-com:asm.v3"> <windowsSettings> <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness> </windowsSettings> </application> <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> <application> <!-- Windows 10 and Windows 11 --> <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/> <!-- Windows 8.1 --> <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/> <!-- Windows 8 --> <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/> <!-- Windows 7 --> <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/> </application> </compatibility></assembly>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768// Copyright 2014 The Flutter 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 <flutter_windows.h>#include <io.h>#include <stdio.h>#include <windows.h>
#include <iostream>
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<std::string> 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::string>(); }
std::vector<std::string> 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 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, -1, utf8_string.data(), target_length, nullptr, nullptr); if (converted_length == 0) { return std::string(); } return utf8_string;}1234567891011121314151617181920212223// Copyright 2014 The Flutter 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 <string>#include <vector>
// 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<std::string>,// encoded in UTF-8. Returns an empty std::vector<std::string> on failure.std::vector<std::string> GetCommandLineArguments();
#endif // RUNNER_UTILS_H_123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253// Copyright 2014 The Flutter 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 <flutter_windows.h>
#include "resource.h"
namespace {
constexpr const wchar_t kWindowClassName[] = L"FLUTTER_RUNNER_WIN32_WINDOW";
// 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 factorint Scale(int source, double scale_factor) { return static_cast<int>(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<EnableNonClientDpiScaling*>( 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<LONG>(origin.x), static_cast<LONG>(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; }
return OnCreate();}
bool Win32Window::Show() { return ShowWindow(window_handle_, SW_SHOWNORMAL);}
// staticLRESULT 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<CREATESTRUCT*>(lparam); SetWindowLongPtr(window, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(window_struct->lpCreateParams));
auto that = static_cast<Win32Window*>(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);}
LRESULTWin32Window::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<RECT*>(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; }
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<Win32Window*>( 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.}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103// Copyright 2014 The Flutter 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 <windows.h>
#include <functional>#include <memory>#include <string>
// 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 handlingclass 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;
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_12345678## To run the Hello World demo:```flutter run```## To run the Hello World demo showing Arabic:```flutter run lib/arabic.dart```123456789101112<?xml version="1.0" encoding="UTF-8"?><module type="JAVA_MODULE" version="4"> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$/android"> <sourceFolder url="file://$MODULE_DIR$/android/app/src/main/java" isTestSource="false" /> </content> <orderEntry type="jdk" jdkName="Android API 29 Platform" jdkType="Android SDK" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="Flutter for Android" level="project" /> </component></module>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556// Copyright 2014 The Flutter Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.
plugins { id "com.android.application" id "dev.flutter.flutter-gradle-plugin"}
def localProperties = new Properties()def localPropertiesFile = rootProject.file('local.properties')if (localPropertiesFile.exists()) { localPropertiesFile.withReader('UTF-8') { reader -> localProperties.load(reader) }}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')if (flutterVersionCode == null) { flutterVersionCode = '1'}
def flutterVersionName = localProperties.getProperty('flutter.versionName')if (flutterVersionName == null) { flutterVersionName = '1.0'}
android { namespace "io.flutter.examples.hello_world" compileSdk flutter.compileSdkVersion
compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }
defaultConfig { applicationId "io.flutter.examples.hello_world" 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 '../..'}1234567891011121314151617181920212223242526272829303132333435363738// Copyright 2014 The Flutter Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.
plugins { id("com.android.application") id("dev.flutter.flutter-gradle-plugin")}
android { namespace = "io.flutter.examples.hello_world" compileSdk = flutter.compileSdkVersion
compileOptions { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 }
defaultConfig { applicationId = "io.flutter.examples.hello_world" minSdk = flutter.minSdkVersion targetSdk = flutter.targetSdkVersion versionCode = flutter.versionCode versionName = flutter.versionName }
buildTypes { named("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.getByName("debug") } }}
flutter { source = "../.."}123456789101112131415161718192021222324252627282930313233343536373839404142<!-- Copyright 2014 The Flutter Authors. All rights reserved.Use of this source code is governed by a BSD-style license that can befound in the LICENSE file. -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- The INTERNET permission is required for development. Specifically, flutter needs it to communicate with the running application to allow setting breakpoints, to provide hot reload, etc. --> <uses-permission android:name="android.permission.INTERNET"/>
<application android:label="hello_world" android:icon="@mipmap/ic_launcher"> <activity android:name="io.flutter.embedding.android.FlutterActivity" android:exported="true" android:theme="@android:style/Theme.Black.NoTitleBar" android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android:hardwareAccelerated="true" android:windowSoftInputMode="adjustResize"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> <!-- Don't delete the meta-data below. This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> <meta-data android:name="flutterEmbedding" android:value="2" /> </application> <!-- Required to query activities that can process text, see: https://developer.android.com/training/package-visibility?hl=en and https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --> <queries> <intent> <action android:name="android.intent.action.PROCESS_TEXT"/> <data android:mimeType="text/plain"/> </intent> </queries></manifest>12345distributionBase=GRADLE_USER_HOMEdistributionPath=wrapper/distszipStoreBase=GRADLE_USER_HOMEzipStorePath=wrapper/distsdistributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip1234567891011121314<?xml version="1.0" encoding="UTF-8"?><module type="WEB_MODULE" version="4"> <component name="NewModuleRootManager" inherit-compiler-output="true"> <exclude-output /> <content url="file://$MODULE_DIR$"> <excludeFolder url="file://$MODULE_DIR$/.idea" /> <excludeFolder url="file://$MODULE_DIR$/build" /> </content> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="Dart Packages" level="project" /> <orderEntry type="library" name="Dart SDK" level="project" /> <orderEntry type="library" name="Flutter Plugins" level="project" /> </component></module>novelforge-project/agent-workspace/flutter_linux_3.19.6-stable.tar.xzAdded+3
novelforge-project/agent-workspace/flutter_linux_3.24.0-stable.tar.xzAdded+3
novelforge-project/flutter/examples/api/README.mdAdded+154
novelforge-project/flutter/examples/api/analysis_options.yamlAdded+10
novelforge-project/flutter/examples/api/pubspec.lockAdded+531
novelforge-project/flutter/examples/api/pubspec.yamlAdded+96
novelforge-project/flutter/examples/catalog/catalog.imlAdded+14
novelforge-project/flutter/examples/flutter_gallery/android.imlAdded+12
novelforge-project/flutter/examples/flutter_gallery/flutter_gallery.imlAdded+14
novelforge-project/flutter/examples/flutter_view/README.mdAdded+18
novelforge-project/flutter/examples/flutter_view/android/build.gradleAdded+51
novelforge-project/flutter/examples/flutter_view/android/buildscript-gradle.lockfileAdded+163
novelforge-project/flutter/examples/flutter_view/android/gradle.propertiesAdded+3
novelforge-project/flutter/examples/flutter_view/android/project-app.lockfileAdded+138
novelforge-project/flutter/examples/flutter_view/android/settings.gradleAdded+21
novelforge-project/flutter/examples/flutter_view/assets/flutter-mark-square-64.pngAdded

novelforge-project/flutter/examples/flutter_view/flutter_view.imlAdded+14
novelforge-project/flutter/examples/flutter_view/lib/main.dartAdded+92
novelforge-project/flutter/examples/flutter_view/macos/Flutter/Flutter-Debug.xcconfigAdded+1
novelforge-project/flutter/examples/flutter_view/macos/Flutter/Flutter-Release.xcconfigAdded+1
novelforge-project/flutter/examples/flutter_view/macos/Main.storyboardAdded+161
novelforge-project/flutter/examples/flutter_view/macos/Runner/AppDelegate.swiftAdded+13
novelforge-project/flutter/examples/flutter_view/macos/Runner/DebugProfile.entitlementsAdded+12
novelforge-project/flutter/examples/flutter_view/pubspec.lockAdded+55
novelforge-project/flutter/examples/flutter_view/pubspec.yamlAdded+22
novelforge-project/flutter/examples/flutter_view/windows/CMakeLists.txtAdded+105
novelforge-project/flutter/examples/flutter_view/windows/flutter/CMakeLists.txtAdded+113
novelforge-project/flutter/examples/flutter_view/windows/runner/CMakeLists.txtAdded+43
novelforge-project/flutter/examples/flutter_view/windows/runner/Runner.rcAdded+121
novelforge-project/flutter/examples/flutter_view/windows/runner/flutter_window.cppAdded+75
novelforge-project/flutter/examples/flutter_view/windows/runner/flutter_window.hAdded+37
novelforge-project/flutter/examples/flutter_view/windows/runner/main.cppAdded+47
novelforge-project/flutter/examples/flutter_view/windows/runner/resource.hAdded+20
novelforge-project/flutter/examples/flutter_view/windows/runner/runner.exe.manifestAdded+20
novelforge-project/flutter/examples/flutter_view/windows/runner/utils.cppAdded+68
novelforge-project/flutter/examples/flutter_view/windows/runner/utils.hAdded+23
novelforge-project/flutter/examples/flutter_view/windows/runner/win32_window.cppAdded+253
novelforge-project/flutter/examples/flutter_view/windows/runner/win32_window.hAdded+103
novelforge-project/flutter/examples/hello_world/README.mdAdded+8
novelforge-project/flutter/examples/hello_world/android.imlAdded+12
novelforge-project/flutter/examples/hello_world/android/app/build.gradleAdded+56
novelforge-project/flutter/examples/hello_world/android/app/build.gradle.ktsAdded+38
novelforge-project/flutter/examples/hello_world/android/app/src/main/AndroidManifest.xmlAdded+42
novelforge-project/flutter/examples/hello_world/android/app/src/main/res/mipmap-hdpi/ic_launcher.pngAdded

novelforge-project/flutter/examples/hello_world/android/app/src/main/res/mipmap-mdpi/ic_launcher.pngAdded

novelforge-project/flutter/examples/hello_world/android/app/src/main/res/mipmap-xhdpi/ic_launcher.pngAdded

novelforge-project/flutter/examples/hello_world/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.pngAdded

novelforge-project/flutter/examples/hello_world/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.pngAdded

novelforge-project/flutter/examples/hello_world/android/gradle/wrapper/gradle-wrapper.propertiesAdded+5
novelforge-project/flutter/examples/hello_world/hello_world.imlAdded+14